gdb: avoid accessing global C++ language implementation functions
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
2c75ccb2
AB
12020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * dwarf2/read.c (dwarf2_compute_name): Call methods on C++
4 language object instead of calling global functions directly.
5
016382f8
AB
62020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
7
8 * valprint.c (print_char_chars): Delete definition.
9 * valprint.h (print_char_chars): Delete declaration.
10
06f6f78f
ST
112020-12-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
12
13 * i386-gnu-tdep.c (I386_GNU_UCONTEXT_T_THREAD_STATE_OFFSET): New
14 macro.
15 (i386_gnu_sigcontext_addr): Detect between legacy and siginfo from the
16 second parameter, which is a small sigcode in the legacy case, and a
17 pointer in the siginfo case.
18
05ecfa47
ST
19 * MAINTAINERS (Write After Approval): Add myself.
20
e512699a
SV
212020-12-22 Shahab Vahedi <shahab@synopsys.com>
22
23 * frame.c: Remove trailing white spaces.
24 * frame.h: Likewise.
25
acf10cac
SV
262020-12-22 Shahab Vahedi <shahab@synopsys.com>
27
28 * arc-linux-tdep.c: Replace "regnum" with "REGNUM" in comments.
29
04c9f85e
AK
302020-12-22 Anton Kolesov <anton.kolesov@synopsys.com>
31
32 * Makefile.in (ALLDEPFILES): Add arc-linux-nat.c.
33 * configure.host (host to gdb names): Add arc*-*-linux*.
34 * configure.nat (gdb_host_cpu): Add arc.
35 * arc-linux-nat.c: New.
36
46023bbe
SV
372020-12-22 Shahab Vahedi <shahab@synopsys.com>
38
39 * arc-linux-tdep.c (supply_register): New.
40 (arc_linux_supply_gregset, arc_linux_supply_v2_regset,
41 arc_linux_collect_v2_regset): Consider REGNUM.
42
d4af7272
AK
432020-12-22 Anton Kolesov <anton.kolesov@synopsys.com>
44
45 * arc-linux-tdep.c (arc_linux_sc_reg_offsets): New static variable.
46 (arc_linux_is_sigtramp): New function.
47 (arc_linux_sigcontext_addr): Likewise.
48 (arc_linux_init_osabi): Use them.
49
b4e3cd04
AK
502020-12-22 Anton Kolesov <anton.kolesov@synopsys.com>
51
52 * arc-tdep.c (arc_make_sigtramp_frame_cache): New function.
53 (arc_sigtramp_frame_this_id): Likewise.
54 (arc_sigtramp_frame_prev_register): Likewise.
55 (arc_sigtramp_frame_sniffer): Likewise.
56 (arc_siftramp_frame_unwind): New global variable.
57 (arc_gdbarch_init): Use sigtramp capabilities.
58 (arc_dump_tdep): Print sigtramp fields.
59 * arc-tdep.h (gdbarch_tdep): Add sigtramp fields.
60
6c078f0b
TT
612020-12-21 Tom Tromey <tom@tromey.com>
62
63 * expression.h (enum noside): Move earlier.
64
e1ff6226
PW
652020-12-21 Peter Waller <p@pwaller.net>
66
67 * interps.c (interpreter_exec_cmd): Restore streams pointers.
68
98d837f0
MM
692020-12-21 Markus Metzger <markus.t.metzger@intel.com>
70
71 * record.c (require_record_target): Rephrase error message.
72 (info_record_command): Likewise.
73
fa639f55
HD
742020-12-19 Hannes Domani <ssbssa@yahoo.de>
75
76 PR exp/27070
77 * gdbtypes.c (check_types_equal): Don't compare types of enum fields.
78
0455b7d3
BE
792020-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
80
81 * configure.ac: Move the static libs vs. source-highlight
82 error message to a better place.
83 * configure: Regenerate.
84
e51765f9
HD
852020-12-18 Hannes Domani <ssbssa@yahoo.de>
86
87 * gdb-gdb.py.in: Fix main_type field name.
88
4aea001f
HD
892020-12-18 Hannes Domani <ssbssa@yahoo.de>
90
91 * python/py-value.c (valpy_format_string): Implement address keyword.
92
b3f9469b
HD
932020-12-18 Hannes Domani <ssbssa@yahoo.de>
94
95 * python/py-type.c (typy_get_composite): Add TYPE_CODE_METHOD.
96
a9e48095
JN
972020-12-18 Jameson Nash <vtjnash@gmail.com>
98
99 * coffread.c (linetab_offset): Change type to file_ptr.
100 (linetab_size): Likewise.
101 (enter_linenos): Change parameter type to file_ptr.
102 (init_lineno): Likewise.
103 (init_stringtab): Likewise.
104 (coff_symtab_read): Likewise.
105 (coff_symfile_read): Change variable types to file_ptr.
106
844a6538
TT
1072020-12-17 Tom Tromey <tromey@adacore.com>
108
109 * printcmd.c (print_variable_and_value): Don't use n_spaces.
110
32f47895
TT
1112020-12-17 Tom Tromey <tromey@adacore.com>
112
113 * gdbtypes.c (print_args, dump_fn_fieldlists, print_cplus_stuff)
114 (print_gnat_stuff, print_fixed_point_type_info)
115 (recursive_dump_type): Update.
116 * go32-nat.c (go32_sysinfo, display_descriptor): Update.
117 * c-typeprint.c (c_type_print_base_struct_union)
118 (c_type_print_base_1): Update.
119 * rust-lang.c (rust_internal_print_type): Update.
120 * f-typeprint.c (f_language::f_type_print_base): Update.
121 * utils.h (fprintfi_filtered, printfi_filtered): Remove.
122 * m2-typeprint.c (m2_record_fields): Update.
123 * p-typeprint.c (pascal_type_print_base): Update.
124 * compile/compile-loc2c.c (push, pushf, unary, binary)
125 (do_compile_dwarf_expr_to_c): Update.
126 * utils.c (fprintfi_filtered, printfi_filtered): Remove.
127
c5c41205
TT
1282020-12-16 Tom Tromey <tom@tromey.com>
129
130 * rust-exp.y (rust_lex_tests): Update.
131 * parser-defs.h (parser_state): Add void_p parameter.
132 <void_context_p>: New member.
133 * parse.c (parse_exp_in_context): Update.
134 * language.h (language_defn::post_parser): Remove void_context_p,
135 completing, tracker parameters. Add parser state.
136 * ada-lang.c (ada_language::post_parser): Update.
137
35c1ab60
TT
1382020-12-16 Tom Tromey <tom@tromey.com>
139
140 * parse.c (parse_exp_1, parse_expression_for_completion): Update.
141 (parse_exp_in_context): Change void_context_p to bool.
142 * language.h (struct language_defn) <post_parser>: Change
143 void_context_p to bool.
144 * ada-lang.c (class ada_language) <post_parser>: Update.
145
2f228731
TT
1462020-12-16 Tom Tromey <tom@tromey.com>
147 Tom Tromey <tromey@redhat.com>
148 Tom de Vries <tdevries@suse.de>
149
150 * utils.h (get_chars_per_line): Declare.
151 * utils.c (get_chars_per_line): New function.
152 (fputs_maybe_filtered): Handle '\r'.
153 * ui-out.h (ui_out::progress_meter): New class.
154 (ui_out::progress, ui_out::do_progress_start)
155 (ui_out::do_progress_notify, ui_out::do_progress_end): New
156 methods.
157 * ui-out.c (do_progress_end)
158 (make_cleanup_ui_out_progress_begin_end, ui_out_progress): New
159 functions.
160 * mi/mi-out.h (mi_ui_out::do_progress_start)
161 (mi_ui_out::do_progress_notify, mi_ui_out::do_progress_end): New
162 methods.
163 * cli-out.h (struct cli_ui_out) <do_progress_start,
164 do_progress_notify, do_progress_end>: New methods.
165 <enum meter_stat, struct cli_progress_info>: New.
166 <m_meters>: New member.
167 * cli-out.c (cli_ui_out::do_progress_start)
168 (cli_ui_out::do_progress_notify, cli_ui_out::do_progress_end): New
169 methods.
170
bfbe4b84
LM
1712020-12-16 Luis Machado <luis.machado@linaro.org>
172
173 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Record FPSR.
174
19007d95
LM
1752020-12-16 Luis Machado <luis.machado@linaro.org>
176
177 * aarch64-linux-nat.c
178 (aarch64_linux_nat_target::stopped_data_address): Handle the TBI.
179
a33fc9ae
RK
1802020-12-15 Rae Kim <rae.kim@gmail.com>
181
182 * cli/cli-script.c (do_document_command): Rename from
183 document_command. Handle multi-line input.
184 (multi_line_command_p): Handle document_control.
185 (build_command_line): Likewise.
186 (execute_control_command_1): Likewise.
187 (process_next_line): Likewise.
188 (document_command): Call do_document_command.
189 * cli/cli-script.h (enum command_control_type): Add
190 document_control.
191
efd7ff14
TT
1922020-12-15 Tom Tromey <tom@tromey.com>
193
194 * stap-probe.c (stap_probe::evaluate_argument): Use
195 evaluate_expression.
196 * dtrace-probe.c (dtrace_probe::evaluate_argument): Use
197 evaluate_expression.
198 * value.h (evaluate_expression): Add expect_type parameter.
199 * objc-lang.c (print_object_command): Call evaluate_expression.
200 * eval.c (evaluate_expression): Add expect_type parameter.
201
2adab65c
TT
2022020-12-15 Tom Tromey <tom@tromey.com>
203
204 * varobj.c (varobj_create): Use first_opcode.
205 * value.c (init_if_undefined_command): Use first_opcode.
206 * typeprint.c (whatis_exp): Use first_opcode.
207 * tracepoint.c (validate_actionline): Use first_opcode.
208 (encode_actions_1): Use first_opcode.
209 * stack.c (return_command): Use first_opcode.
210 * expression.h (struct expression) <first_opcode>: New method.
211 * eval.c (parse_and_eval_type): Use first_opcode.
212 * dtrace-probe.c (dtrace_process_dof_probe): Use first_opcode.
213
1ab8280d
TT
2142020-12-15 Tom Tromey <tom@tromey.com>
215
216 * f-lang.c (evaluate_subexp_f): Update.
217 * expression.h (evaluate_subexp_do_call): Update.
218 * eval.c (evaluate_subexp_do_call): Add callee parameter. Replace
219 nargs, argvec with array_view.
220 (evaluate_funcall): Update.
221
cf608cc4
TT
2222020-12-15 Tom Tromey <tom@tromey.com>
223
224 * ada-lang.c (num_component_specs): Remove.
225 (assign_aggregate): Update.
226 (aggregate_assign_positional, aggregate_assign_from_choices)
227 (aggregate_assign_others, add_component_interval): Change
228 arguments.
229
0e5ad442
TT
2302020-12-15 Tom Tromey <tromey@adacore.com>
231
232 * cli/cli-decode.c (deprecated_cmd_warning): Use title style for
233 command names.
234
a6f3c8a1
TT
2352020-12-14 Tom Tromey <tom@tromey.com>
236
237 * dtrace-probe.c (dtrace_process_dof_probe): Use value_type.
238 * typeprint.c (whatis_exp): Always use evaluate_type.
239 (maintenance_print_type): Likewise. Simplify.
240
86b44259
TT
2412020-12-14 Tom Tromey <tromey@adacore.com>
242
243 * dictionary.c (language_defn::search_name_hash): Ignore "B".
244 * ada-lang.c (advance_wild_match): Ignore "B".
245 (full_match): Remove.
246 (do_full_match): Rewrite.
247
25a1127b
TT
2482020-12-14 Tom Tromey <tromey@adacore.com>
249
250 * ada-lang.c (get_var_value): Only consider exact matches.
251
e26624c6
TT
2522020-12-14 Tom Tromey <tromey@adacore.com>
253
254 * dwarf2/read.c (rewrite_array_type): New function.
255 (quirk_ada_thick_pointer_struct): Use rewrite_array_type.
256
a3bdae4e
TT
2572020-12-14 Tom Tromey <tromey@adacore.com>
258
259 * valarith.c (fixed_point_binop): Call error on division by zero.
260
f5756acc
TT
2612020-12-13 Tom Tromey <tom@tromey.com>
262
263 * gdbtypes.c (safe_parse_type): Make argument const.
264 * value.h (parse_and_eval_type): Make argument const.
265 * eval.c (parse_and_eval_type): Make argument const.
266
ee9812a0
AB
2672020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
268
269 * NEWS: Mention new commands.
270 * target-dcache.c: Add 'cli/cli-cmds.h' include.
271 (maint_flush_dcache_command): New function.
272 (_initialize_target_dcache): Create new 'maint flush dcache'
273 command.
274
50a5f187
AB
2752020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
276
277 * NEWS: Mention new commands, and that the old commands are now
278 deprecated.
279 * cli/cli-cmds.c (maintenanceflushlist): Define.
280 * cli/cli-cmds.h (maintenanceflushlist): Declare.
281 * maint.c (_initialize_maint_cmds): Initialise
282 maintenanceflushlist.
283 * regcache.c: Add 'cli/cli-cmds.h' include.
284 (reg_flush_command): Add header comment.
285 (_initialize_regcache): Create new 'maint flush register-cache'
286 command, make 'flushregs' an alias.
287 * symtab.c: Add 'cli/cli-cmds.h' include.
288 (_initialize_symtab): Create new 'maint flush symbol-cache'
289 command, make old command an alias.
290
19c659f1
AB
2912020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
292
293 * cli/cli-decode.c (deprecated_cmd_warning): Ignore the prefix
294 result from lookup_cmd_composition_1, use the prefixes from both
295 the command and the alias instead.
296 (lookup_cmd_composition_1): Initial prefix command is the based on
297 the search list being passed in. Simplify the logic for tracking
298 the prefix command. Replace a use of alloca with a local
299 std::string.
300
44c77c32
AB
3012020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
302
303 * cli/cli-decode.c (deprecated_cmd_warning): Use nullptr instead
304 of NULL. Don't print message piece by piece, but sentence at a
305 time to allow internationalisation. Some whitespace cleanup.
306
9ef6d4a1
AB
3072020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
308
309 PR cli/15104
310 * cli/cli-decode.c (lookup_cmd_1): Pass command list to
311 deprecated_cmd_warning.
312 (deprecated_cmd_warning): Take extra parameter, call
313 lookup_cmd_composition_1 and pass new parameter through.
314 (lookup_cmd_composition_1): New function, takes implementation of
315 lookup_cmd_composition but with extra parameter.
316 (lookup_cmd_composition): Now calls lookup_cmd_composition_1
317 passing in cmdlist.
318 * command.h (deprecated_cmd_warning): Add extra parameter to
319 declaration.
320 * top.c (execute_command): Pass cmdlist to deprecated_cmd_warning.
321
1536146f
AB
3222020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
323
324 * cli/cli-decode.c (lookup_cmd_1): Move header comment into
325 command.h, add extra parameter, and use this to guard giving a
326 warning.
327 * command.h (lookup_cmd_1): Add comment from cli/cli-decode.c,
328 include argument names in declaration, add new argument.
329 * completer.c (complete_line_internal_1): Remove unneeded
330 brackets, pass extra argument to lookup_cmd_1.
331
94ba44a6
SM
3322020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
333
334 * infrun.h (debug_infrun): Make a bool.
335 * infrun.c (debug_infrun): Make a bool.
336 (_initialize_infrun): Use add_setshow_boolean_cmd to define "set
337 debug infrun".
338
74b773fc
SM
3392020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
340
341 * displaced-stepping.h (displaced_debug_printf): Use
342 debug_prefixed_printf_cond.
343 * dwarf2/read.c (dwarf_read_debug_printf): Likewise.
344 (dwarf_read_debug_printf_v): Likewise.
345 * infrun.h (infrun_debug_printf): Likewise.
346 * linux-nat.c (linux_nat_debug_printf): Likewise.
347
02c72701
TT
3482020-12-11 Tom Tromey <tom@tromey.com>
349
350 * p-exp.y (intvar): Remove global.
351 (DOLLAR_VARIABLE): Change type.
352 (start): Update.
353 (exp): Call write_dollar_variable here...
354 (yylex): ... not here.
355 * m2-exp.y (DOLLAR_VARIABLE): Change type.
356 (variable): Call write_dollar_variable here...
357 (yylex): ... not here.
358 * f-exp.y (DOLLAR_VARIABLE): Change type.
359 (exp): Call write_dollar_variable here...
360 (yylex): ... not here.
361
07d9937a
TT
3622020-12-11 Tom Tromey <tom@tromey.com>
363
364 * varobj.c (varobj_create): Update.
365 (install_variable): Return void.
366
1345dee2
TT
3672020-12-11 Tom Tromey <tom@tromey.com>
368
369 * varobj.c (instantiate_pretty_printer): Use gdbpy_ref.
370
446d2c03
TT
3712020-12-11 Tom Tromey <tom@tromey.com>
372
373 * varobj.c (varobj_clear_saved_item): Remove.
374 (update_dynamic_varobj_children): Update.
375 (varobj::~varobj): Don't call varobj_clear_saved_item.
376
11106495
TT
3772020-12-11 Tom Tromey <tom@tromey.com>
378
379 * varobj.c (install_dynamic_child, varobj_clear_saved_item)
380 (update_dynamic_varobj_children, create_child)
381 (create_child_with_value): Update.
382 * varobj-iter.h (struct varobj_item) <value>: Now a
383 value_ref_ptr.
384 * python/py-varobj.c (py_varobj_iter::next): Call release_value.
385
24fd95b4
TT
3862020-12-11 Tom Tromey <tom@tromey.com>
387
388 * varobj.c (struct varobj_dynamic) <child_iter>: Now unique_ptr.
389 (varobj_get_iterator): Return unique_ptr.
390 (update_dynamic_varobj_children, install_visualizer)
391 (varobj::~varobj): Update.
392 * python/python-internal.h (py_varobj_get_iterator): Return
393 unique_ptr.
394 * python/py-varobj.c (py_varobj_get_iterator): Return unique_ptr.
395
74462664
TT
3962020-12-11 Tom Tromey <tom@tromey.com>
397
398 * varobj.c (struct varobj_dynamic) <saved_item>: Now unique_ptr.
399 (varobj_clear_saved_item, update_dynamic_varobj_children):
400 Update.
401
60ee72f6
TT
4022020-12-11 Tom Tromey <tom@tromey.com>
403
404 * varobj.c (update_dynamic_varobj_children): Update.
405 * varobj-iter.h (struct varobj_iter) <next>: Change return type.
406 * python/py-varobj.c (struct py_varobj_iter) <next>: Change return
407 type.
408 (py_varobj_iter::next): Likewise.
409
54746ce3
TT
4102020-12-11 Tom Tromey <tom@tromey.com>
411
412 * varobj.c (update_dynamic_varobj_children, install_visualizer)
413 (varobj::~varobj): Update.
414 * varobj-iter.h (struct varobj_iter): Change to interface class.
415 (struct varobj_iter_ops): Remove.
416 (varobj_iter_next, varobj_iter_delete): Remove.
417 * python/py-varobj.c (struct py_varobj_iter): Derive from
418 varobj_iter. Add constructor, destructor. Rename members.
419 (py_varobj_iter::~py_varobj_iter): Rename from
420 py_varobj_iter_dtor.
421 (py_varobj_iter::next): Rename from py_varobj_iter_next.
422 (py_varobj_iter_ops): Remove.
423 (py_varobj_iter): Rename from py_varobj_iter_ctor.
424 (py_varobj_iter_new): Remove.
425 (py_varobj_get_iterator): Update.
426
d8f168dd
TT
4272020-12-11 Tom Tromey <tom@tromey.com>
428
429 * varobj.h (all_root_varobjs): Take a function_view.
430 * varobj.c (all_root_varobjs): Take a function_view.
431 (varobj_invalidate_iter): Remove unused parameter.
432 (varobj_invalidate): Update.
433 * mi/mi-cmd-var.c (struct mi_cmd_var_update): Remove.
434 (mi_cmd_var_update_iter): Change parameters.
435
76deb5d9
TT
4362020-12-11 Tom Tromey <tom@tromey.com>
437
438 * varobj.c (struct varobj_root) <next>: Remove.
439 (struct vlist): Remove.
440 (rootlist): Now a std::list.
441 (install_variable, uninstall_variable, all_root_varobjs): Update.
442
2c1413a9
TT
4432020-12-11 Tom Tromey <tom@tromey.com>
444
445 * varobj.c (VAROBJ_TABLE_SIZE): Remove.
446 (varobj_table): Now htab_t.
447 (varobj_get_handle, install_variable, uninstall_variable):
448 Update.
449 (hash_varobj, eq_varobj_and_string): New functions.
450 (hash_varobj): Update.
451
b6433ede
TT
4522020-12-11 Tom Tromey <tom@tromey.com>
453
454 * inline-frame.c (stopped_by_user_bp_inline_frame): Update.
455 * ada-lang.c (check_status_exception): Update.
456 * breakpoint.c (free_bp_location): Remove.
457 (decref_bp_location): Use bp_location_ref_policy.
458 (bpstats::bpstats): Don't call incref_bp_location.
459 (bpstats::~bpstats): Remove.
460 (bpstats::bpstats): Update.
461 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
462 (bp_location::bp_location): Update.
463 (incref_bp_location): Remove.
464 (bkpt_print_it): Update.
465 * breakpoint.h (class bp_location): Derive from
466 refcounted_object.
467 (struct bpstats): Remove destructor.
468 <bp_location_at>: Now a bp_location_ref_ptr.
469 <refc>: Remove.
470 (bp_location_ref_ptr): New typedef.
471 (struct bp_location_ref_policy): New.
472
bfcb9db8
TT
4732020-12-11 Tom Tromey <tom@tromey.com>
474
475 * thread.c (class scoped_inc_dec_ref): Remove.
476 (tp_array_compar_ascending, tp_array_compar_descending): Change
477 parameter types.
478 (thread_apply_all_command): Use thread_info_ref.
479
d634cd0b
TT
4802020-12-11 Tom Tromey <tom@tromey.com>
481
482 * infrun.c (struct stop_context) <thread>: Now a thread_info_ref.
483 (stop_context::stop_context): Update.
484 (stop_context::~stop_context): Remove.
485
51107df5
TT
4862020-12-11 Tom Tromey <tom@tromey.com>
487
488 * inferior.c (current_inferior_): Change type.
489 (current_inferior, set_current_inferior, initialize_inferiors):
490 Update.
491
15f4dddd
TT
4922020-12-11 Tom Tromey <tom@tromey.com>
493
494 * gdbthread.h (class enable_thread_stack_temporaries) <m_thr>:
495 Change type.
496
a9f14fa5
TT
4972020-12-11 Tom Tromey <tromey@adacore.com>
498
499 * ada-tasks.c (struct ada_tasks_pspace_data) <cpu_id_offset>: New
500 field.
501 (ada_get_tcb_types_info): Look for __gnat_gdb_cpu_first_id.
502 (read_atcb): Use cpu_id_offset.
503
2ccee230
KB
5042020-12-10 Kevin Buettner <kevinb@redhat.com>
505
506 * ada-lang.c (ada_fold_name): Fix off-by-one error.
507
ae1f4d2d
LM
5082020-12-10 Luis Machado <luis.machado@linaro.org>
509
510 * breakpoint.c (should_be_inserted): Don't output newline.
511
6afcd2d4
LM
5122020-12-10 Luis Machado <luis.machado@linaro.org>
513
514 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg) New function.
515 (aarch64_linux_sigframe_init): Call aarch64_linux_restore_vreg.
516 * aarch64-tdep.h (V_REGISTER_SIZE): Move to ...
517 * arch/aarch64.h: ... here.
518 * nat/aarch64-sve-linux-ptrace.c: Include endian.h.
519 (aarch64_maybe_swab128): New function.
520 (aarch64_sve_regs_copy_to_reg_buf)
521 (aarch64_sve_regs_copy_from_reg_buf): Adjust FPSIMD entries.
522 * trad-frame.c (trad_frame_reset_saved_regs): Initialize
523 the data field.
524 (TF_REG_VALUE_BYTES): New enum value.
525 (trad_frame_value_bytes_p): New function.
526 (trad_frame_set_value_bytes): New function.
527 (trad_frame_set_reg_value_bytes): New function.
528 (trad_frame_get_prev_register): Handle register values saved as bytes.
529 * trad-frame.h (trad_frame_set_reg_value_bytes): New prototype.
530 (struct trad_frame_saved_reg) <data>: New field.
531 (trad_frame_set_value_bytes): New prototype.
532 (trad_frame_value_bytes_p): New prototype.
533
15cc148f
MS
5342020-12-07 Mihails Strasuns <mihails.strasuns@intel.com>
535
536 * jit.c (mem_bfd*, bfd_open_from_target_memory): Removed.
537 * gdb_bfd.h (gdb_bfd_open_from_target_memory): New function.
538 * gdb_bfd.c (mem_bfd*, gdb_bfd_open_from_target_memory): New functions.
539
12932e2c
TT
5402020-12-09 Tom Tromey <tromey@adacore.com>
541
542 * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.
543
5cde1d82
TT
5442020-12-09 Tom Tromey <tromey@adacore.com>
545
546 * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator"
547 and "denominator" to gdb_mpz. Handle block forms.
548 (get_dwarf2_unsigned_rational_constant): Change "numerator" and
549 "denominator" to gdb_mpz.
550 (finish_fixed_point_type): Update.
551 (has_zero_over_zero_small_attribute): Update.
552
d9c3a9c0
TT
5532020-12-09 Tom Tromey <tromey@adacore.com>
554
555 * expprint.c (op_name): Update.
556 * expression.h (enum exp_opcode): Update.
557 * std-operator.def: Add more opcodes.
558 * ada-operator.def, fortran-operator.def: Remove, moving contents
559 into std-operator.def.
560
6ad368b8
SM
5612020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
562
563 * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
564 Return {} instead of false.
565 (get_discrete_bounds): Compute high bound only if low bound is
566 valid.
567
5b56203a
SM
5682020-12-09 Simon Marchi <simon.marchi@efficios.com>
569
570 PR 26875, PR 26901
571 * gdbtypes.c (get_discrete_low_bound): Make non-static.
572 (get_discrete_high_bound): Make non-static.
573 * gdbtypes.h (get_discrete_low_bound): New declaration.
574 (get_discrete_high_bound): New declaration.
575 * valarith.c (value_subscript): Only fetch high bound if
576 necessary.
577
14c09924
SM
5782020-12-09 Simon Marchi <simon.marchi@efficios.com>
579
580 * gdbtypes.c (get_discrete_bounds): Implement with
581 get_discrete_low_bound and get_discrete_high_bound.
582 (get_discrete_low_bound): New.
583 (get_discrete_high_bound): New.
584
1f8d2881
SM
5852020-12-09 Simon Marchi <simon.marchi@efficios.com>
586
587 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
588 callers.
589 * gdbtypes.c (get_discrete_bounds): Return bool.
590
6244c119
SM
5912020-12-09 Simon Marchi <simon.marchi@efficios.com>
592
593 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
594 (ada_value_slice): Adjust.
595 (pos_atr): Adjust.
596 * gdbtypes.c (get_discrete_bounds): Adjust.
597 (discrete_position): Return optional.
598 * gdbtypes.h (discrete_position): Return optional.
599
a4915e8d
TT
6002020-12-07 Tom Tromey <tromey@adacore.com>
601
602 * maint.c (_initialize_maint_cmds): Use expression command
603 completer for "maint print type".
604
1f58f6c2
TBA
6052020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
606
607 * completer.c (complete_explicit_location): Also add keywords
608 that start with '-' to the completion list.
609
5759831a
TBA
6102020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
611
612 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
613 keyword may be followed by any keyword.
614 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
615 'toklen' in the case for "-force-condition".
616
21e051b3
TBA
6172020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
618
619 * main.c (catch_command_errors): Add a flag parameter; invoke
620 `bpstat_do_actions` if the flag is set.
621 (execute_cmdargs): Update a call to `catch_command_errors`.
622
f51f9f1d
TV
6232020-12-07 Tom de Vries <tdevries@suse.de>
624
625 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
626
00158a68
TT
6272020-12-06 Tom Tromey <tom@tromey.com>
628
629 PR ada/26999
630 * ada-lang.c (replace_operator_with_call): Rewrite.
631
296cfb88
GF
6322020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
633
634 PR breakpoints/27009
635 * s390-tdep.h (op_bc): Correct BC opcode value.
636
63c457b9
JB
6372020-12-06 Joel Brobecker <brobecker@adacore.com>
638
639 * gmp-utils.h (gdb_mpz::safe_export): New private method.
640 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
641 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
642 (gdb_mpz::safe_export): New method.
643 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
644 Update function description.
645 (check_as_integer_raises_out_of_range_error): New function.
646 (gdb_mpz_as_integer_out_of_range): New function.
647 (_initialize_gmp_utils_selftests): Register
648 gdb_mpz_as_integer_out_of_range as a selftest.
649
3c7ba803
JB
6502020-12-05 Joel Brobecker <brobecker@adacore.com>
651
652 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
653 TARGET_CHAR_BIT.
654 (gdb_mpz::write): Likewise.
655
372ff58f
SM
6562020-12-04 Simon Marchi <simon.marchi@efficios.com>
657
658 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
659 number of displaced step buffers.
660
480af54c
SM
6612020-12-04 Simon Marchi <simon.marchi@efficios.com>
662
663 * displaced-stepping.h (struct displaced_step_buffer): Rename
664 to...
665 (struct displaced_step_buffers): ... this.
666 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
667 <struct displaced_step_buffer>: New inner class.
668 <m_buffers>: New.
669 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
670 to...
671 (displaced_step_buffers::prepare): ... this, adjust for multiple
672 buffers.
673 (displaced_step_buffer::finish): Rename to...
674 (displaced_step_buffers::finish): ... this, adjust for multiple
675 buffers.
676 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
677 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
678 adjust for multiple buffers.
679 (displaced_step_buffer::restore_in_ptid): Rename to...
680 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
681 multiple buffers.
682 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
683 for num_disp_step_buffers.
684 * linux-tdep.c (struct linux_gdbarch_data)
685 <num_disp_step_buffers>: New field.
686 (struct linux_info) <disp_step_buf>: Rename to...
687 <disp_step_bufs>: ... this, change type to
688 displaced_step_buffers.
689 (linux_displaced_step_prepare): Use
690 linux_gdbarch_data::num_disp_step_buffers to create that number
691 of buffers.
692 (linux_displaced_step_finish): Adjust.
693 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
694 (linux_displaced_step_restore_all_in_ptid): Adjust.
695 (linux_init_abi): Change supports_displaced_step parameter for
696 num_disp_step_buffers, save it in linux_gdbarch_data.
697 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
698 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
699 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
700 supports_displaced_step parameter for num_disp_step_buffers.
701 (amd64_linux_init_abi): Adjust.
702 (amd64_x32_linux_init_abi): Adjust.
703 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
704 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
705 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
706 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
707 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
708 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
709 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
710 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
711 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
712 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
713 * m68k-linux-tdep.c (m68k_linux_init_abi):
714 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
715 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
716 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
717 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
718 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
719 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
720 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
721 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
722 Change type to displaced_step_buffers.
723 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
724 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
725 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
726 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
727 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
728 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
729 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
730
d9655058
SM
7312020-12-04 Simon Marchi <simon.marchi@efficios.com>
732
733 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
734 obkstack.
735 (_initialize_linux_tdep): Register pre-init gdb data instead of
736 post-init.
737
187b041e
SM
7382020-12-04 Simon Marchi <simon.marchi@efficios.com>
739
740 * displaced-stepping.h (struct
741 displaced_step_copy_insn_closure): Adjust comments.
742 (struct displaced_step_inferior_state) <step_thread,
743 step_gdbarch, step_closure, step_original, step_copy,
744 step_saved_copy>: Remove fields.
745 (struct displaced_step_thread_state): New.
746 (struct displaced_step_buffer): New.
747 * displaced-stepping.c (displaced_step_buffer::prepare): New.
748 (write_memory_ptid): Move from infrun.c.
749 (displaced_step_instruction_executed_successfully): New,
750 factored out of displaced_step_finish.
751 (displaced_step_buffer::finish): New.
752 (displaced_step_buffer::copy_insn_closure_by_addr): New.
753 (displaced_step_buffer::restore_in_ptid): New.
754 * gdbarch.sh (displaced_step_location): Remove.
755 (displaced_step_prepare, displaced_step_finish,
756 displaced_step_copy_insn_closure_by_addr,
757 displaced_step_restore_all_in_ptid): New.
758 * gdbarch.c: Re-generate.
759 * gdbarch.h: Re-generate.
760 * gdbthread.h (class thread_info) <displaced_step_state>: New
761 field.
762 (thread_step_over_chain_remove): New declaration.
763 (thread_step_over_chain_next): New declaration.
764 (thread_step_over_chain_length): New declaration.
765 * thread.c (thread_step_over_chain_remove): Make non-static.
766 (thread_step_over_chain_next): New.
767 (global_thread_step_over_chain_next): Use
768 thread_step_over_chain_next.
769 (thread_step_over_chain_length): New.
770 (global_thread_step_over_chain_enqueue): Add debug print.
771 (global_thread_step_over_chain_remove): Add debug print.
772 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
773 Remove.
774 * infrun.c (get_displaced_stepping_state): New.
775 (displaced_step_in_progress_any_inferior): Remove.
776 (displaced_step_in_progress_thread): Adjust.
777 (displaced_step_in_progress): Adjust.
778 (displaced_step_in_progress_any_thread): New.
779 (get_displaced_step_copy_insn_closure_by_addr): Remove.
780 (gdbarch_supports_displaced_stepping): Use
781 gdbarch_displaced_step_prepare_p.
782 (displaced_step_reset): Change parameter from inferior to
783 thread.
784 (displaced_step_prepare_throw): Implement using
785 gdbarch_displaced_step_prepare.
786 (write_memory_ptid): Move to displaced-step.c.
787 (displaced_step_restore): Remove.
788 (displaced_step_finish): Implement using
789 gdbarch_displaced_step_finish.
790 (start_step_over): Allow starting more than one displaced step.
791 (prepare_for_detach): Handle possibly multiple threads doing
792 displaced steps.
793 (handle_inferior_event): Handle possibility that fork event
794 happens while another thread displaced steps.
795 * linux-tdep.h (linux_displaced_step_prepare): New.
796 (linux_displaced_step_finish): New.
797 (linux_displaced_step_copy_insn_closure_by_addr): New.
798 (linux_displaced_step_restore_all_in_ptid): New.
799 (linux_init_abi): Add supports_displaced_step parameter.
800 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
801 (linux_displaced_step_prepare): New.
802 (linux_displaced_step_finish): New.
803 (linux_displaced_step_copy_insn_closure_by_addr): New.
804 (linux_displaced_step_restore_all_in_ptid): New.
805 (linux_init_abi): Add supports_displaced_step parameter,
806 register displaced step methods if true.
807 (_initialize_linux_tdep): Register inferior_execd observer.
808 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
809 supports_displaced_step parameter, adjust call to
810 linux_init_abi. Remove call to
811 set_gdbarch_displaced_step_location.
812 (amd64_linux_init_abi): Adjust call to
813 amd64_linux_init_abi_common.
814 (amd64_x32_linux_init_abi): Likewise.
815 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
816 linux_init_abi. Remove call to
817 set_gdbarch_displaced_step_location.
818 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
819 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
820 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
821 linux_init_abi.
822 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
823 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
824 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
825 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
826 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
827 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
828 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
829 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
830 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
831 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
832 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
833 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
834 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
835 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
836 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
837 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
838 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
839 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
840 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
841 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
842 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
843 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
844 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
845 linux_init_abi. Remove call to
846 set_gdbarch_displaced_step_location.
847 * arm-tdep.c (arm_pc_is_thumb): Call
848 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
849 get_displaced_step_copy_insn_closure_by_addr.
850 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
851 clear gdbarch methods.
852 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
853 (get_ppc_per_inferior): New function.
854 (ppc_displaced_step_prepare): New function.
855 (ppc_displaced_step_finish): New function.
856 (ppc_displaced_step_restore_all_in_ptid): New function.
857 (rs6000_gdbarch_init): Register new gdbarch methods.
858 * s390-tdep.c (s390_gdbarch_init): Don't call
859 set_gdbarch_displaced_step_location, set new gdbarch methods.
860
c7acb87b
SM
8612020-12-04 Simon Marchi <simon.marchi@efficios.com>
862
863 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
864 * aarch64-tdep.h: Include displaced-stepping.h.
865 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
866 Move here.
867 (displaced_step_copy_insn_closure_up): Move here.
868 (struct buf_displaced_step_copy_insn_closure): Move here.
869 (struct displaced_step_inferior_state): Move here.
870 (debug_displaced): Move here.
871 (displaced_debug_printf_1): Move here.
872 (displaced_debug_printf): Move here.
873 * displaced-stepping.c: New file.
874 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
875 * gdbarch.h: Re-generate.
876 * inferior.h: Include displaced-stepping.h.
877 * infrun.h (debug_displaced): Move to displaced-stepping.h.
878 (displaced_debug_printf_1): Likewise.
879 (displaced_debug_printf): Likewise.
880 (struct displaced_step_copy_insn_closure): Likewise.
881 (displaced_step_copy_insn_closure_up): Likewise.
882 (struct buf_displaced_step_copy_insn_closure): Likewise.
883 (struct displaced_step_inferior_state): Likewise.
884 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
885 (displaced_debug_printf_1): Likewise.
886 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
887 Likewise.
888 (_initialize_infrun): Don't register "set/show debug displaced".
889
94b24c74
SM
8902020-12-04 Simon Marchi <simon.marchi@efficios.com>
891
892 * linux-tdep.c (get_linux_inferior_data): Add inferior
893 parameter.
894 (linux_vsyscall_range): Pass current inferior.
895
bab37966
SM
8962020-12-04 Simon Marchi <simon.marchi@efficios.com>
897
898 * infrun.c (displaced_step_prepare_throw): Change return type to
899 displaced_step_prepare_status.
900 (displaced_step_prepare): Likewise.
901 (displaced_step_finish): Change return type to
902 displaced_step_finish_status.
903 (resume_1): Adjust.
904 (stop_all_threads): Adjust.
905 * displaced-stepping.h: New file.
906
7def77a1
SM
9072020-12-04 Simon Marchi <simon.marchi@efficios.com>
908
909 * infrun.c (displaced_step_fixup): Rename to...
910 (displaced_step_finish): ... this, update all callers.
911
1152d984
SM
9122020-12-04 Simon Marchi <simon.marchi@efficios.com>
913
914 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
915 (get_displaced_step_copy_insn_closure_by_addr): ... this.
916 Update all users.
917 (displaced_step_closure): Rename to...
918 (displaced_step_copy_insn_closure): ... this. Update all users.
919 (displaced_step_closure_up): Rename to...
920 (displaced_step_copy_insn_closure_up). ... this. Update all
921 users.
922 (buf_displaced_step_closure): Rename to...
923 (buf_displaced_step_copy_insn_closure): ... this. Update all
924 users.
925 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
926 (get_displaced_step_copy_insn_closure_by_addr): ... this.
927 Update all users.
928 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
929 (aarch64_displaced_step_copy_insn_closure): ... this. Update
930 all users.
931 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
932 (amd64_displaced_step_copy_insn_closure): ... this. Update all
933 users.
934 * arm-tdep.h (arm_displaced_step_closure): Rename to...
935 (arm_displaced_step_copy_insn_closure): ... this. Update all
936 users.
937 * i386-tdep.h (i386_displaced_step_closure): Rename to...
938 (i386_displaced_step_copy_insn_closure): ... this. Update all
939 users.
940 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
941 (ppc_displaced_step_copy_insn_closure): ... this. Update all
942 users.
943 * s390-tdep.c (s390_displaced_step_closure): Rename to...
944 (s390_displaced_step_copy_insn_closure): ... this. Update all
945 users.
946 * gdbarch.h: Re-generate.
947 * gdbarch.c: Re-generate.
948
28d5518b
SM
9492020-12-04 Simon Marchi <simon.marchi@efficios.com>
950
951 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
952 (global_thread_step_over_chain_enqueue): ... this. Update all
953 users.
954 (thread_step_over_chain_remove): Rename to...
955 (global_thread_step_over_chain_remove): ... this. Update all
956 users.
957 (thread_step_over_chain_next): Rename to...
958 (global_thread_step_over_chain_next): ... this. Update all
959 users.
960 * infrun.h (step_over_queue_head): Rename to...
961 (global_thread_step_over_chain_head): ... this. Update all
962 users.
963 * infrun.c (step_over_queue_head): Rename to...
964 (global_thread_step_over_chain_head): ... this. Update all
965 users.
966 * thread.c (step_over_chain_remove): Rename to...
967 (thread_step_over_chain_remove): ... this. Update all users.
968 (thread_step_over_chain_next): Rename to...
969 (global_thread_step_over_chain_next): ... this. Update all
970 users.
971 (thread_step_over_chain_enqueue): Rename to...
972 (global_thread_step_over_chain_enqueue): ... this. Update all
973 users.
974 (thread_step_over_chain_remove): Rename to...
975 (global_thread_step_over_chain_remove): ... this. Update all
976 users.
977
f5f01699
SM
9782020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
979
980 * infrun.c (get_displaced_stepping_state): Remove, change
981 callers to access the field directly.
982
c0aba012
SM
9832020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
984
985 * infrun.c (handle_inferior_event): Restore displaced step
986 buffer bytes in child process when handling fork, even if fork
987 happened in another thread than the displaced-stepping one.
988
3b7a962d
SM
9892020-12-04 Simon Marchi <simon.marchi@efficios.com>
990
991 * infrun.c (infrun_inferior_execd): New function.
992 (_initialize_infrun): Attach inferior_execd observer.
993
42a4fec5
SM
9942020-12-04 Simon Marchi <simon.marchi@efficios.com>
995
996 * observable.h (inferior_execd): Declare new observable.
997 * observable.c (inferior_execd): Declare new observable.
998 * infrun.c (follow_exec): Notify inferior_execd observer.
999 * jit.c (jit_inferior_created_hook): Make static.
1000 (_initialize_jit): Register inferior_execd observer.
1001 * jit.h (jit_inferior_created_hook): Remove declaration.
1002 * solib.c (_initialize_solib): Register inferior_execd observer.
1003
aafdfb4e
TV
10042020-12-04 Tom de Vries <tdevries@suse.de>
1005
1006 PR gdb/27003
1007 * completer.c (completion_tracker::build_completion_result): Don't
1008 access match_list[0][-1].
1009
f99b5177
TT
10102020-12-04 Tom Tromey <tromey@adacore.com>
1011
1012 * linespec.c (struct linespec_token): Rename; remove typedef.
1013 * guile/scm-block.c (struct block_smob): Remove typedef.
1014 (struct block_syms_progress_smob): Likewise.
1015 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
1016 * guile/scm-symtab.c (symtab_smob): Remove typedef.
1017 (struct sal_smob): Remove typedef.
1018 * guile/scm-param.c (struct param_smob): Remove typedef.
1019 * guile/scm-progspace.c (struct pspace_smob): Rename.
1020 * guile/scm-objfile.c (struct objfile_smob): Rename.
1021 * guile/scm-iterator.c (struct iterator_smob): Rename.
1022 * guile/scm-frame.c (struct frame_smob): Rename.
1023 * guile/scm-arch.c (struct arch_smob): Rename.
1024 * guile/scm-type.c (struct field_smob): Remove typedef.
1025 (struct type_smob): Rename.
1026 * guile/scm-cmd.c (struct command_smob): Remove typedef.
1027 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
1028 * guile/scm-value.c (struct value_smob): Remove typedef.
1029 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
1030 * guile/guile-internal.h (struct scheme_variable)
1031 (struct scheme_function, struct scheme_integer_constant)
1032 (struct gdb_smob, struct chained_gdb_smob)
1033 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
1034 (objfile_smob, pspace_smob, type_smob): Remove typedef.
1035 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
1036 (struct pretty_printer_worker_smob): Remove typedef.
1037 * guile/scm-exception.c (struct exception_smob): Remove typedef.
1038 * python/py-block.c (struct block_object): Remove typedef.
1039 (block_syms_iterator_object): Update.
1040 (set_block): Update.
1041 (block_syms_iterator_object): Remove typedef.
1042 * python/py-inferior.c (struct membuf_object): Remove typedef.
1043 * python/py-symtab.c (struct symtab_object): Remove typedef.
1044 (set_symtab): Update.
1045 (sal_object): Remove typedef.
1046 (set_sal): Update.
1047 * python/py-frame.c (frame_object): Remove typedef.
1048 * python/py-record-btrace.c (struct btpy_list_object): Remove
1049 typedef.
1050 * python/py-arch.c (struct arch_object): Remove typedef.
1051 * python/py-linetable.c (struct linetable_entry_object)
1052 (linetable_object, struct ltpy_iterator_object): Remove typedef.
1053 * python/py-events.h (eventregistry_object): Remove typedef.
1054 (struct events_object): Remove typedef.
1055 * python/python-internal.h (gdbpy_breakpoint_object): Remove
1056 typedef.
1057 (thread_object): Remove typedef.
1058 * python/py-progspace.c (pspace_object): Remove typedef.
1059 * python/py-value.c (struct value_object): Remove typedef.
1060 * python/py-record.h (recpy_record_object): Remove typedef.
1061 (struct recpy_element_object): Remove typedef.
1062 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
1063 * python/py-objfile.c (objfile_object): Remove typedef.
1064 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
1065 * python/py-type.c (type_object): Remove typedef.
1066 (typy_iterator_object): Update.
1067 (set_type): Update.
1068 (field_object): Remove typedef.
1069 (typy_iterator_object): Remove typedef.
1070 * python/py-registers.c (register_descriptor_iterator_object):
1071 Remove typedef.
1072 (struct register_descriptor_object)
1073 (struct reggroup_iterator_object, struct reggroup_object): Remove
1074 typedef.
1075 * python/py-record.c (recpy_gap_object): Remove typedef.
1076 * python/py-symbol.c (symbol_object): Remove typedef.
1077 (set_symbol): Update.
1078 * python/py-event.h (event_object): Remove typedef.
1079 * python/py-param.c (parmpy_object): Remove typedef.
1080 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
1081 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
1082 (unwind_info_object, struct cached_frame_info): Likewise.
1083
91f87213
TT
10842020-12-04 Tom Tromey <tromey@adacore.com>
1085
1086 * value.c (value_internal_function_name): Make return type const.
1087 * value.h (value_internal_function_name): Make return type const.
1088
5382f971
LM
10892020-12-04 Luis Machado <luis.machado@linaro.org>
1090
1091 * aarch64-tdep.c (submask, bit, bits): Remove.
1092 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
1093 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
1094 (aarch64_decode_cb, aarch64_decode_tb)
1095 (aarch64_decode_ldr_literal): Use sbits to extract a signed
1096 immediate.
1097 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
1098
b6a6aa07
TV
10992020-12-04 Tom de Vries <tdevries@suse.de>
1100
1101 PR tdep/27007
1102 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
1103
0bc2e38d
SM
11042020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
1105
1106 PR gdb/26876
1107 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
1108 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
1109
25428040
AB
11102020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
1111
1112 * arch/riscv.c: Include 'rv32e-xregs.c'.
1113 (riscv_create_target_description): Update to handle rv32e.
1114 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
1115 member variable.
1116 <operator==>: Update to account for new field.
1117 <hash>: Likewise.
1118 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
1119 * features/riscv/rv32e-xregs.c: Generated.
1120 * features/riscv/rv32e-xregs.xml: New file.
1121 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
1122 file.
1123 (riscv_debug_infcall): Likewise.
1124 (riscv_debug_unwinder): Likewise.
1125 (riscv_debug_gdbarch): Likewise.
1126 (enum riscv_register_required_status): Delete.
1127 (struct riscv_register_feature): Add constructor, delete default
1128 constructor, copy, and assign constructors.
1129 (struct riscv_register_feature::register_info) <required>: Delete.
1130 <check>: Update comment and arguments.
1131 (struct riscv_register_feature) <name>: Change to member function.
1132 <prefer_first_name>: Delete.
1133 <tdesc_feature>: New member function.
1134 <registers>: Rename to...
1135 <m_registers>: ...this.
1136 <m_feature_name>: New member variable.
1137 (riscv_register_feature::register_info::check): Update arguments.
1138 (riscv_xreg_feature): Rewrite as class, create a single static
1139 instance of the class.
1140 (riscv_freg_feature): Likewise.
1141 (riscv_virtual_feature): Likewise.
1142 (riscv_csr_feature): Likewise.
1143 (riscv_create_csr_aliases): Has become a member function inside
1144 riscv_csr_feature class.
1145 (riscv_abi_embedded): New function definition.
1146 (riscv_register_name): Adjust to use new feature objects.
1147 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
1148 and adjust available argument registers.
1149 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
1150 (riscv_check_tdesc_feature): Delete.
1151 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
1152 (riscv_gdbarch_init): Delete target description checking code, and
1153 instead call to the new feature objects to perform the checks.
1154 Reorder handling of no abi information case, allows small code
1155 simplification.
1156 (_initialize_riscv_tdep): Remove call, this is now done in the
1157 riscv_csr_feature constructor.
1158 * riscv-tdep.h (riscv_abi_embedded): Declare.
1159
533b2ae0
AB
11602020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
1161
1162 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
1163 DECLARE_CSR_ALIAS.
1164
e4502042
AB
11652020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
1166
1167 * riscv-tdep.c (riscv_is_unknown_csr): New function,
1168 implementation moved from riscv_register_reggroup_p.
1169 (riscv_register_reggroup_p): Update group handling for unknown
1170 CSRs.
1171
2bf3b79d
SDJ
11722020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
1173
1174 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
1175 (dwarf2_get_dwz_file): Convert 'filename' to a
1176 std::string. Use dwz_search_other_debugdirs to search for DWZ
1177 files in the debug-file-directories provided by the user as well.
1178
77bf7e99
TT
11792020-12-01 Tom Tromey <tom@tromey.com>
1180
1181 * parse.c (expr_builder::expr_builder): Initialize expout.
1182 (expr_builder::release): Use expression::resize.
1183 (expression::expression, expression::~expression)
1184 (expression::resize): New methods.
1185 (write_exp_elt): Use expression::resize.
1186 (prefixify_expression): Update.
1187 (increase_expout_size): Use expression::resize.
1188 * expression.h (struct expression): Add constructor, destructor.
1189 <resize>: New method.
1190 (expression_up): Change type.
1191
539d71e8
RA
11922020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1193 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
1194 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
1195 set region.
1196
7ce05d21
TV
11972020-11-30 Tom de Vries <tdevries@suse.de>
1198
1199 PR symtab/26905
1200 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
1201 is_reference parameter.
1202 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
1203
88b91969
TT
12042020-11-30 Tom Tromey <tom@tromey.com>
1205
1206 * rust-lang.c (rust_op_name): Remove.
1207 (exp_descriptor_rust): Update.
1208 * parser-defs.h (op_name_standard): Don't declare.
1209 (struct exp_descriptor) <op_name>: Remove.
1210 * parse.c (exp_descriptor_standard): Update.
1211 * opencl-lang.c (exp_descriptor_opencl): Update.
1212 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
1213 * f-lang.c (op_name_f): Remove.
1214 (f_language::exp_descriptor_tab): Update.
1215 * expression.h (op_name): Update.
1216 * expprint.c (op_name): Rewrite.
1217 (op_name_standard): Remove.
1218 (dump_raw_expression, dump_subexp): Update.
1219 * c-lang.c (exp_descriptor_c): Update.
1220 * ax-gdb.c (gen_expr): Update.
1221 * ada-lang.c (ada_op_name): Remove.
1222 (ada_exp_descriptor): Update.
1223
1cd49c43
TT
12242020-11-30 Tom Tromey <tom@tromey.com>
1225
1226 * eval.c (init_array_element): Remove.
1227 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
1228
96fb9086
HD
12292020-11-29 Hannes Domani <ssbssa@yahoo.de>
1230
1231 PR tui/26973
1232 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
1233 static locator win info.
1234
b4132322
AR
12352020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
1236
1237 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
1238 program.
1239
3df8c6af
AB
12402020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1241
1242 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
1243 is always initialized.
1244
0ae45769
RA
12452020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
1246 * MAINTAINERS (Write After Approval): Add myself.
1247
239ca5e4
PW
12482020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1249
1250 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
1251 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
1252
cbfa382a
TT
12532020-11-25 Tom Tromey <tom@tromey.com>
1254
1255 * eval.c (evaluate_subexp_standard): Remove unnecessary
1256 variables.
1257
af30c400
TT
12582020-11-25 Tom Tromey <tom@tromey.com>
1259
1260 * d-lang.c: Include parser-defs.h.
1261 * rust-lang.c: Include parser-defs.h.
1262 * c-lang.h: Do not include parser-defs.h.
1263
1c64f6cb
SM
12642020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1265
1266 * regcache.h (struct cached_reg): Remove typedef.
1267
2c20a601
JB
12682020-11-24 Joel Brobecker <brobecker@adacore.com>
1269
1270 * README: Fix the URL of the MPFR library.
1271
c609df64
JB
12722020-11-24 Joel Brobecker <brobecker@adacore.com>
1273
1274 * README: Document the --with-libgmp-prefix configure option.
1275
fa123c32
JB
12762020-11-24 Joel Brobecker <brobecker@adacore.com>
1277
1278 * NEWS: Add entry documenting support for DWARF-based fixed
1279 point types.
1280
0fb8bb02
JB
12812020-11-24 Joel Brobecker <brobecker@adacore.com>
1282
1283 * NEWS: Document that building GDB now requires GMP.
1284
4afa9fd9
JB
12852020-11-24 Joel Brobecker <brobecker@adacore.com>
1286
1287 * typeprint.c (print_type_scalar): Add handling of
1288 TYPE_CODE_FIXED_POINT.
1289
af619ce9
JB
12902020-11-24 Joel Brobecker <brobecker@adacore.com>
1291
1292 * valarith.c (fixed_point_binop): Replace the
1293 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
1294 users accordingly.
1295
e6fcee3a
JB
12962020-11-24 Joel Brobecker <brobecker@adacore.com>
1297
1298 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
1299 replacing fixed_point_scaling_factor. All callers updated
1300 throughout this project.
1301 (fixed_point_scaling_factor): Delete declaration.
1302 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
1303 fixed_point_scaling_factor. Adjust implementation accordingly.
1304
d19937a7
JB
13052020-11-24 Joel Brobecker <brobecker@adacore.com>
1306
1307 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
1308 replacing the fixed_point_type_base_type function. All callers
1309 updated throughout this project.
1310 (fixed_point_type_base_type): Remove declaration.
1311 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
1312 fixed_point_type_base_type. Adjust implementation accordingly.
1313
2a12c336
JB
13142020-11-24 Joel Brobecker <brobecker@adacore.com>
1315
1316 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
1317 New methods.
1318 (INIT_FIXED_POINT_SPECIFIC): Adjust.
1319 (TYPE_FIXED_POINT_INFO): Delete macro.
1320 (allocate_fixed_point_type_info): Change return type to void.
1321 * gdbtypes.c (copy_type_recursive): Replace the use of
1322 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1323 (fixed_point_scaling_factor): Likewise.
1324 (allocate_fixed_point_type_info): Change return type to void.
1325 Adjust implementation accordingly.
1326 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
1327 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1328
c9f0b43f
JB
13292020-11-24 Joel Brobecker <brobecker@adacore.com>
1330
1331 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
1332 into one single gdb::array_view parameter.
1333 (gdb_mpz::write): Likewise.
1334 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1335 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
1336 into one single gdb::array_view parameter.
1337 Adjust implementation accordingly.
1338 (gdb_mpz::write): Likewise.
1339 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1340 * unittests/gmp-utils-selftests.c: Adapt following changes above.
1341 * valarith.c, valops.c, valprint.c, value.c: Likewise.
1342
987b6703
JB
13432020-11-24 Joel Brobecker <brobecker@adacore.com>
1344
1345 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
1346 Change return type to std::string. Update all callers.
1347 * gmp-utils.c (gmp_string_printf): Likewise.
1348
4fbb7cce
JB
13492020-11-24 Joel Brobecker <brobecker@adacore.com>
1350
1351 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
1352 instead of mpq_set_ui to initialize our GMP rational.
1353
d6ab69dd
TV
13542020-11-23 Tom de Vries <tdevries@suse.de>
1355
1356 * debuginfod-support.c (debuginfod_source_query)
1357 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
1358
dab72643
TT
13592020-11-21 Tom Tromey <tom@tromey.com>
1360
1361 * breakpoint.c (watchpoint_exp_is_const): Return bool.
1362
c0ad05d5
SM
13632020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1364
1365 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
1366 Pass 2.0 to pow.
1367 (gdb_mpz_write_all_from_small): Likewise.
1368
a43b29c9
SM
13692020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1370
1371 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
1372 of abs.
1373
ae41200b
NA
13742020-11-20 Nick Alcock <nick.alcock@oracle.com>
1375
1376 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
1377 ctf_arc_open_by_name.
1378
139633c3
NA
13792020-11-20 Nick Alcock <nick.alcock@oracle.com>
1380
1381 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
1382 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
1383
cbbcd7a7
PA
13842020-11-20 Pedro Alves <pedro@palves.net>
1385
1386 * language.c (language_arch_info::lookup_primitive_type): Use
1387 gdb::function_view instead of gdb::function.
1388 (template language_lookup_primitive_type): Rename to ...
1389 (language_lookup_primitive_type_1): ... this, and make static.
1390 (language_lookup_primitive_type(const struct language_defn *,
1391 struct gdbarch *, const char *): Make non-template.
1392 (language_lookup_primitive_type(const struct language_defn *,
1393 struct gdbarch *, std::function<bool (struct type *)>): Make
1394 non-template and use gdb::function_view.
1395 * language.h (language_arch_info::lookup_primitive_type): Use
1396 gdb::function_view instead of std::function.
1397 (language_lookup_primitive_type): No longer template.
1398 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
1399 lambda instead of a std::function.
1400
d5ef21c3
AA
14012020-11-19 Andreas Arnez <arnez@linux.ibm.com>
1402
1403 PR tdep/26916
1404 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
1405 and STOCFH.
1406
a5adb8f3
SM
14072020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1408
1409 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
1410
70125a45
SM
14112020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1412
1413 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
1414 in `loop_cb` parameter.
1415 * gdbarch.c: Re-generate.
1416 * gdbarch.h: Re-generate.
1417 * arch-utils.c (default_read_core_file_mappings): Remove `other`
1418 parameter.
1419 * arch-utils.h (default_read_core_file_mappings): Likewise.
1420 * corelow.c (core_target::build_file_mappings): Likewise.
1421 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
1422 (linux_core_info_proc_mappings): Likewise.
1423
a5c641b5
AB
14242020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1425
1426 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
1427 * NEWS: Mention new options.
1428 * f-array-walker.h: New file.
1429 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
1430 (repack_array_slices): New static global.
1431 (show_repack_array_slices): New function.
1432 (fortran_array_slicing_debug): New static global.
1433 (show_fortran_array_slicing_debug): New function.
1434 (value_f90_subarray): Delete.
1435 (skip_undetermined_arglist): Delete.
1436 (class fortran_array_repacker_base_impl): New class.
1437 (class fortran_lazy_array_repacker_impl): New class.
1438 (class fortran_array_repacker_impl): New class.
1439 (fortran_value_subarray): Complete rewrite.
1440 (set_fortran_list): New static global.
1441 (show_fortran_list): Likewise.
1442 (_initialize_f_language): Register new commands.
1443 (fortran_adjust_dynamic_array_base_address_hack): New function.
1444 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
1445 Declare.
1446 * f-valprint.c: Include 'f-array-walker.h'.
1447 (class fortran_array_printer_impl): New class.
1448 (f77_print_array_1): Delete.
1449 (f77_print_array): Delete.
1450 (fortran_print_array): New.
1451 (f_value_print_inner): Update to call fortran_print_array.
1452 * gdbtypes.c: Include 'f-lang.h'.
1453 (resolve_dynamic_type_internal): Call
1454 fortran_adjust_dynamic_array_base_address_hack.
1455
a15a5258
AB
14562020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1457
1458 * breakpoint.c (struct watch_options): New struct.
1459 (watch_option_defs): New static global.
1460 (make_watch_options_def_group): New function.
1461 (watch_maybe_just_location): Convert option parsing.
1462 (watch_command_completer): New function.
1463 (_initialize_breakpoint): Build help text using options mechanism.
1464
2e362716
AB
14652020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1466
1467 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
1468 (watch_command_1): Update parameter types. Convert locals to
1469 bool.
1470 (watch_command_wrapper): Change parameter type.
1471 (watch_maybe_just_location): Change locals to bool.
1472 (rwatch_command_wrapper): Update parameter type.
1473 (awatch_command_wrapper): Update parameter type.
1474 * breakpoint.h (watch_command_wrapper): Change parameter type.
1475 (rwatch_command_wrapper): Update parameter type.
1476 (awatch_command_wrapper): Update parameter type.
1477 * eval.c (fetch_subexp_value): Change parameter type.
1478 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
1479 'false' not '0'.
1480 * value.h (fetch_subexp_value): Change parameter type in
1481 declaration.
1482
b3ff61f8
AB
14832020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1484
1485 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
1486 skip_spaces.
1487
5b7d45d3
KS
14882020-11-18 Keith Seitz <keiths@redhat.com>
1489
1490 * linux-tdep.c (dump_note_entry_p): Return true instead of
1491 checking `filename'.
1492
c44191f8
TV
14932020-11-18 Tom de Vries <tdevries@suse.de>
1494
1495 * debuginfod-support.c (debuginfod_source_query)
1496 (debuginfod_debuginfo_query): Also do early exit if
1497 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
1498
5d8254e1
TV
14992020-11-18 Tom de Vries <tdevries@suse.de>
1500
1501 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
1502 warning.
1503
584903d3
SM
15042020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1505
1506 * gdbtypes.h (get_array_bounds): Return bool, adjust some
1507 callers. Move doc here.
1508 * gdbtypes.c (get_array_bounds): Return bool
1509
6f2643db
AB
15102020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1511
1512 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
1513 assert.
1514 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
1515 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
1516 case to the default.
1517
037d7135
AB
15182020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1519
1520 * printcmd.c: Include 'safe-ctype.c'.
1521 (skip_over_slash_fmt): New function.
1522 (print_command_completer): Call skip_over_slash_fmt.
1523 (display_and_x_command_completer): New function.
1524 (_initialize_printcmd): Add command completion for 'x' and
1525 'display'.
1526
2b3cb400
PA
15272020-11-16 Pedro Alves <pedro@palves.net>
1528
1529 * frame.c (get_prev_frame): Move get_frame_id call from here ...
1530 (get_prev_frame_always_1): ... to here.
1531 * inline-frame.c (inline_frame_this_id): Mention
1532 get_prev_frame_always_1 in comment.
1533
b74dbc20
JB
15342020-11-15 Joel Brobecker <brobecker@adacore.com>
1535
1536 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
1537 handling.
1538 (value_less): Add fixed-point handling.
1539
0a12719e
JB
15402020-11-15 Joel Brobecker <brobecker@adacore.com>
1541
1542 * eval.c (binop_promote): Add fixed-point type handling.
1543 * valarith.c (fixed_point_binop): New function.
1544 (scalar_binop): Add fixed-point type handling.
1545 (value_neg): Add fixed-point type handling.
1546 * valops.c (value_cast_to_fixed_point): New function.
1547 (value_cast): Add fixed-point type handling.
1548
0c9150e4
JB
15492020-11-15 Joel Brobecker <brobecker@adacore.com>
1550
1551 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
1552 range types.
1553 * c-typeprint.c (c_type_print_varspec_prefix)
1554 (c_type_print_varspec_suffix, c_type_print_base_1): Add
1555 TYPE_CODE_FIXED_POINT handling.
1556 * p-typeprint.c (pascal_type_print_varspec_prefix)
1557 (pascal_type_print_varspec_suffix): Likewise.
1558 * typeprint.c (print_type_fixed_point): New function.
1559 * typeprint.h (print_type_fixed_point): Add declaration.
1560
b26daff9
JB
15612020-11-15 Joel Brobecker <brobecker@adacore.com>
1562
1563 * printcmd.c (print_scalar_formatted): Add fixed-point type
1564 handling when options->format is set.
1565
09584414
JB
15662020-11-15 Joel Brobecker <brobecker@adacore.com>
1567
1568 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1569 * dwarf2/read.c (get_dwarf2_rational_constant)
1570 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1571 (has_zero_over_zero_small_attribute): New functions.
1572 read_base_type, set_die_type): Add fixed-point type handling.
1573 * gdb-gdb.py.in: Add fixed-point type handling.
1574 * gdbtypes.c: #include "gmp-utils.h".
1575 (create_range_type, set_type_code): Add fixed-point type handling.
1576 (init_fixed_point_type): New function.
1577 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1578 (print_fixed_point_type_info): New function.
1579 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1580 handling.
1581 (fixed_point_type_storage): New typedef.
1582 (fixed_point_objfile_key): New static global.
1583 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1584 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1585 functions.
1586 * gdbtypes.h: #include "gmp-utils.h".
1587 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1588 (union type_specific) <fixed_point_info>: New field.
1589 (struct fixed_point_type_info): New struct.
1590 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1591 (init_fixed_point_type, is_fixed_point_type)
1592 (fixed_point_type_base_type, fixed_point_scaling_factor)
1593 (allocate_fixed_point_type_info): Add declarations.
1594 * valprint.c (generic_val_print_fixed_point): New function.
1595 (generic_value_print): Add fixed-point type handling.
1596 * value.c (value_as_address, unpack_long): Add fixed-point type
1597 handling.
1598
e55c6530
JB
15992020-11-15 Joel Brobecker <brobecker@adacore.com>
1600
1601 * utils.h (uinteger_pow): Add declaration.
1602 * utils.c (uinteger_pow): Moved here (without changes)...
1603 * valarith.c (uinteger_pow): ... from here.
1604
b34c74ab
JB
16052020-11-15 Joel Brobecker <brobecker@adacore.com>
1606
40d9d2fd 1607 * gmp-utils.h, gmp-utils.c: New file.
b34c74ab
JB
1608 * unittests/gmp-utils-selftests.c: New file.
1609 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1610 unittests/gmp-utils-selftests.c.
1611 (COMMON_SFILES) Add gmp-utils.c.
1612 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1613
1b4ac058
JB
16142020-11-15 Joel Brobecker <brobecker@adacore.com>
1615
1616 * configure.ac: Generate an error if a usable GMP library
1617 could not be found.
1618 * configure: Regenerate.
1619
2c947d9b
JB
16202020-11-15 Joel Brobecker <brobecker@adacore.com>
1621
1622 * configure.ac: Add support for --with-libgmp-prefix.
1623 * Makefile.in (LIBGMP): New variable.
1624 (CLIBS): Include $(LIBGMP).
1625 * configure, config.in: Regenerate
1626
9dd02fc0
AB
16272020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1628
1629 PR cli/26879
1630 * f-exp.y (COMPLETE): New token.
1631 (exp): Two new rules for tab-completion.
1632 (saw_name_at_eof): New static global.
1633 (last_was_structop): Likewise.
1634 (yylex): Set new variables, and return COMPLETE token at the end
1635 of the input stream in some cases.
1636
758cb810
TT
16372020-11-14 Tom Tromey <tom@tromey.com>
1638
1639 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1640
749065b7
TT
16412020-11-14 Tom Tromey <tom@tromey.com>
1642
1643 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1644
2c5b1849
SM
16452020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1646
1647 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1648
e8b2f0d9
TT
16492020-11-13 Tom Tromey <tom@tromey.com>
1650
1651 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1652 (convert_escape, parse_one_string): Constify.
1653
25f4c262
KS
16542020-11-13 Keith Seitz <keiths@redhat.com>
1655
1656 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1657 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1658 outside of ELF segments" warning for debugin
1659
9d3ab915
KS
16602020-11-13 Keith Seitz <keiths@redhat.com>
1661
1662 PR gdb/23034
1663 * elfread.c (elf_symfile_segments): Output a BFD file name
1664 for the "Loadable section ... outside of ELF segments" warning.
1665
9ecab40c
SM
16662020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1667
1668 PR gdb/26835
1669 * arm-tdep.c (class arm_instruction_reader): New.
1670 (target_arm_instruction_reader): New.
1671 (arm_analyze_prologue): Add instruction reader parameter and use
1672 it. Use arm_expand_immediate.
1673 (class target_arm_instruction_reader): Adjust.
1674 (arm_skip_prologue): Adjust.
1675 (arm_expand_immediate): New.
1676 (arm_scan_prologue): Adjust.
1677 (arm_analyze_prologue_test): New.
1678 (class test_arm_instruction_reader): New.
1679
5a7cf527
AB
16802020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1681
1682 * f-lang.c (fortran_argument_convert): Add declaration. Add
1683 header comment, taken from f-lang.h. Make static.
1684 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1685 (fortran_argument_convert): Delete declaration.
1686
7bea47f0
AB
16872020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1688
1689 * ada-exp.y (find_primitive_type): Make parameter const.
1690 * ada-lang.c (enum ada_primitive_types): Delete.
1691 (ada_language::language_arch_info): Update.
1692 * c-lang.c (enum c_primitive_types): Delete.
1693 (c_language_arch_info): Update.
1694 (enum cplus_primitive_types): Delete.
1695 (cplus_language::language_arch_info): Update.
1696 * d-lang.c (enum d_primitive_types): Delete.
1697 (d_language::language_arch_info): Update.
1698 * f-lang.c (enum f_primitive_types): Delete.
1699 (f_language::language_arch_info): Update.
1700 * go-lang.c (enum go_primitive_types): Delete.
1701 (go_language::language_arch_info): Update.
1702 * language.c (auto_or_unknown_language::language_arch_info):
1703 Update.
1704 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1705 (language_string_char_type): Add header comment, call function in
1706 language_arch_info.
1707 (language_bool_type): Likewise
1708 (language_arch_info::bool_type): Define.
1709 (language_lookup_primitive_type_1): Delete.
1710 (language_lookup_primitive_type): Rewrite as a templated function
1711 to call function in language_arch_info, then instantiate twice.
1712 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1713 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1714 (language_arch_info::lookup_primitive_type): Define twice with
1715 different signatures.
1716 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1717 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1718 member function in language_arch_info.
1719 * language.h (language_arch_info): Complete rewrite.
1720 (language_lookup_primitive_type): Make templated.
1721 * m2-lang.c (enum m2_primitive_types): Delete.
1722 (m2_language::language_arch_info): Update.
1723 * opencl-lang.c (OCL_P_TYPE): Delete.
1724 (enum opencl_primitive_types): Delete.
1725 (opencl_type_data): Delete.
1726 (builtin_opencl_type): Delete.
1727 (lookup_opencl_vector_type): Update.
1728 (opencl_language::language_arch_info): Update, lots of content
1729 moved from...
1730 (build_opencl_types): ...here. This function is now deleted.
1731 (_initialize_opencl_language): Delete.
1732 * p-lang.c (enum pascal_primitive_types): Delete.
1733 (pascal_language::language_arch_info): Update.
1734 * rust-lang.c (enum rust_primitive_types): Delete.
1735 (rust_language::language_arch_info): Update.
1736
bf6e5d01
SM
17372020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1738
1739 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1740 dwarf2_queue_guard.
1741
1350c3b4
SM
17422020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1743
1744 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1745 comment.
1746
6f738b01
SM
17472020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1748
1749 * dwarf2/read.c (dwarf_read_debug_printf,
1750 dwarf_read_debug_printf_v): New macros, use throughout the file.
1751
10c19fad
SV
17522020-11-12 Shahab Vahedi <shahab@synopsys.com>
1753
10806efd 1754 PR tdep/27015
10c19fad
SV
1755 * arc-linux-tdep.c (collect_register): Populate "eret" by
1756 "pc" value from the regcache when asked for "pc" value.
1757
1f2624a3
TT
17582020-11-12 Tom Tromey <tom@tromey.com>
1759
1760 PR rust/26799:
1761 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1762 exist.
1763
ab33b152
AB
17642020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1765
1766 * features/Makefile (XMLTOC): Add rx.xml.
1767 (FEATURE_XMLFILES): Remove rx.xml.
1768 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1769 * features/rx.c: Regenerate.
1770 * features/rx.xml: Wrap in `target` tags, and reindent.
1771 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1772 structure.
1773 (maint_print_c_tdesc_opt_def): New typedef.
1774 (maint_print_c_tdesc_opt_defs): New static global.
1775 (make_maint_print_c_tdesc_options_def_group): New function.
1776 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1777 print single feature C file for target descriptions containing a
1778 single feature.
1779 (maint_print_c_tdesc_cmd_completer): New function.
1780 (_initialize_target_descriptions): Update call to register command
1781 completer, and include command line flag in help text.
1782
550820e1
AB
17832020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1784
1785 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1786 numbers.
1787 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1788 enum values.
1789
baf20f76
TT
17902020-11-10 Tom Tromey <tom@tromey.com>
1791
1792 * value.h (internalvar_name): Update.
1793 * value.c (internalvar_name): Make return type const.
1794
caaece0e
TT
17952020-11-10 Tom Tromey <tom@tromey.com>
1796
1797 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1798 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1799 const.
1800
8e20b4be
TT
18012020-11-10 Tom Tromey <tom@tromey.com>
1802
1803 * objc-lang.h (value_nsstring): Update.
1804 * objc-lang.c (value_nsstring): Make "ptr" const.
1805
86775fab
AB
18062020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1807
1808 * expprint.c (print_subexp_funcall): Increment expression position
1809 after reading argument count.
1810 * f-lang.c (print_subexp_f): Skip over opcode before calling
1811 common function.
1812 (dump_subexp_body_f): Likewise.
1813
3fed4c0b
RG
18142020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1815
1816 PR python/26832
1817 * configure: Regenerate.
1818 * configure.ac: Check for python modules ctypes instead of
1819 itertools.
1820
ac3d4064
PA
18212020-11-06 Pedro Alves <pedro@palves.net>
1822
1823 * macroexp.c (struct macro_buffer): Split in two classes. Add
1824 uses adjusted.
1825 (struct shared_macro_buffer): New, factored out from struct
1826 macro_buffer.
1827 (struct growable_macro_buffer): New, factored out from struct
1828 macro_buffer.
1829 (set_token, get_comment, get_identifier, get_pp_number)
1830 (get_character_constant, get_string_literal, get_punctuator)
1831 (get_next_token_for_substitution): Constify parameters.
1832 (substitute_args): Constify locals.
1833
606decb2
TT
18342020-11-05 Tom Tromey <tom@tromey.com>
1835
1836 * dwarf2/read.c (read_cutu_die_from_dwo)
1837 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1838 (build_type_psymtabs_1): Update.
1839 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1840 parameter.
1841 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1842 Don't read section. Add assert.
1843
9c91c725
TT
18442020-11-04 Tom Tromey <tromey@adacore.com>
1845
1846 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1847
8d9fd3a1
TT
18482020-11-04 Tom Tromey <tromey@adacore.com>
1849
1850 * ada-typeprint.c (ada_print_type): Handle __T types.
1851
d8f62e84
TT
18522020-11-04 Tom Tromey <tromey@adacore.com>
1853
1854 * dwarf2/read.c (add_partial_symbol, process_die):
1855 Handle DW_TAG_array_type.
1856 (is_type_tag_for_partial): Add "lang" parameter.
1857 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1858
7ff5b937
TT
18592020-11-04 Tom Tromey <tromey@adacore.com>
1860
1861 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1862
10f6a3ad
TT
18632020-11-04 Tom Tromey <tromey@adacore.com>
1864
1865 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1866 array.
1867
b72795a8
TT
18682020-11-04 Tom Tromey <tromey@adacore.com>
1869
1870 * gdbtypes.c (update_static_array_size): Handle bit stride.
1871
24aa1b02
TT
18722020-11-04 Tom Tromey <tromey@adacore.com>
1873
1874 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1875
c9a28cbe
TT
18762020-11-04 Tom Tromey <tromey@adacore.com>
1877
1878 * ada-lang.c (ada_is_any_packed_array_type): New function.
1879 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1880
57567375
TT
18812020-11-04 Tom Tromey <tromey@adacore.com>
1882
1883 * dwarf2/read.c (recognize_bound_expression)
1884 (quirk_ada_thick_pointer): New functions.
1885 (read_array_type): Call quirk_ada_thick_pointer.
1886 (set_die_type): Add "skip_data_location" parameter.
1887 (quirk_ada_thick_pointer): New function.
1888 (process_structure_scope): Call quirk_ada_thick_pointer.
1889 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1890 (decode_packed_array_bitsize): Handle thick pointers without
1891 parallel types.
1892 (ada_is_gnat_encoded_packed_array_type): Rename from
1893 ada_is_packed_array_type.
1894 (ada_is_constrained_packed_array_type): Update.
1895 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1896 (ada_value_print_1): Use ada_get_decoded_value.
1897
a7400e44
TT
18982020-11-04 Tom Tromey <tromey@adacore.com>
1899
1900 * ada-lang.c (recursively_update_array_bitsize): New function.
1901 (decode_constrained_packed_array_type): Call it.
1902
75fd6a26
TT
19032020-11-04 Tom Tromey <tromey@adacore.com>
1904
1905 * ada-lang.c (to_fixed_array_type): Error if
1906 decode_constrained_packed_array_type returns NULL.
1907
93f9561e
TT
19082020-11-04 Tom Tromey <tromey@adacore.com>
1909
1910 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1911
257e02d8
TT
19122020-11-02 Tom Tromey <tromey@adacore.com>
1913
1914 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1915 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1916 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1917 * amd64-ravenscar-thread.c: New file.
1918 * amd64-ravenscar-thread.h: New file.
1919 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1920 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1921
74d877e5
AB
19222020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1923
1924 * main.c (execute_cmdargs): New function.
1925 (captured_main_1): Make use of execute_cmdargs.
1926
64aaad63
AB
19272020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1928
1929 * NEWS: Mention changes to config file search path.
1930 * main.c
1931
5b3d3560
TT
19322020-11-02 Tom Tromey <tromey@adacore.com>
1933
1934 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1935 (python_GdbModuleDef): Move earlier. Now static.
1936 (do_start_initialization): Consolidate some IS_PY3K blocks.
1937
dda83cd7
SM
19382020-11-02 Simon Marchi <simon.marchi@efficios.com>
1939
1940 * aarch64-linux-tdep.c: Fix indentation.
1941 * aarch64-ravenscar-thread.c: Fix indentation.
1942 * aarch64-tdep.c: Fix indentation.
1943 * aarch64-tdep.h: Fix indentation.
1944 * ada-lang.c: Fix indentation.
1945 * ada-lang.h: Fix indentation.
1946 * ada-tasks.c: Fix indentation.
1947 * ada-typeprint.c: Fix indentation.
1948 * ada-valprint.c: Fix indentation.
1949 * ada-varobj.c: Fix indentation.
1950 * addrmap.c: Fix indentation.
1951 * addrmap.h: Fix indentation.
1952 * agent.c: Fix indentation.
1953 * aix-thread.c: Fix indentation.
1954 * alpha-bsd-nat.c: Fix indentation.
1955 * alpha-linux-tdep.c: Fix indentation.
1956 * alpha-mdebug-tdep.c: Fix indentation.
1957 * alpha-nbsd-tdep.c: Fix indentation.
1958 * alpha-obsd-tdep.c: Fix indentation.
1959 * alpha-tdep.c: Fix indentation.
1960 * amd64-bsd-nat.c: Fix indentation.
1961 * amd64-darwin-tdep.c: Fix indentation.
1962 * amd64-linux-nat.c: Fix indentation.
1963 * amd64-linux-tdep.c: Fix indentation.
1964 * amd64-nat.c: Fix indentation.
1965 * amd64-obsd-tdep.c: Fix indentation.
1966 * amd64-tdep.c: Fix indentation.
1967 * amd64-windows-tdep.c: Fix indentation.
1968 * annotate.c: Fix indentation.
1969 * arc-tdep.c: Fix indentation.
1970 * arch-utils.c: Fix indentation.
1971 * arch/arm-get-next-pcs.c: Fix indentation.
1972 * arch/arm.c: Fix indentation.
1973 * arm-linux-nat.c: Fix indentation.
1974 * arm-linux-tdep.c: Fix indentation.
1975 * arm-nbsd-tdep.c: Fix indentation.
1976 * arm-pikeos-tdep.c: Fix indentation.
1977 * arm-tdep.c: Fix indentation.
1978 * arm-tdep.h: Fix indentation.
1979 * arm-wince-tdep.c: Fix indentation.
1980 * auto-load.c: Fix indentation.
1981 * auxv.c: Fix indentation.
1982 * avr-tdep.c: Fix indentation.
1983 * ax-gdb.c: Fix indentation.
1984 * ax-general.c: Fix indentation.
1985 * bfin-linux-tdep.c: Fix indentation.
1986 * block.c: Fix indentation.
1987 * block.h: Fix indentation.
1988 * blockframe.c: Fix indentation.
1989 * bpf-tdep.c: Fix indentation.
1990 * break-catch-sig.c: Fix indentation.
1991 * break-catch-syscall.c: Fix indentation.
1992 * break-catch-throw.c: Fix indentation.
1993 * breakpoint.c: Fix indentation.
1994 * breakpoint.h: Fix indentation.
1995 * bsd-uthread.c: Fix indentation.
1996 * btrace.c: Fix indentation.
1997 * build-id.c: Fix indentation.
1998 * buildsym-legacy.h: Fix indentation.
1999 * buildsym.c: Fix indentation.
2000 * c-typeprint.c: Fix indentation.
2001 * c-valprint.c: Fix indentation.
2002 * c-varobj.c: Fix indentation.
2003 * charset.c: Fix indentation.
2004 * cli/cli-cmds.c: Fix indentation.
2005 * cli/cli-decode.c: Fix indentation.
2006 * cli/cli-decode.h: Fix indentation.
2007 * cli/cli-script.c: Fix indentation.
2008 * cli/cli-setshow.c: Fix indentation.
2009 * coff-pe-read.c: Fix indentation.
2010 * coffread.c: Fix indentation.
2011 * compile/compile-cplus-types.c: Fix indentation.
2012 * compile/compile-object-load.c: Fix indentation.
2013 * compile/compile-object-run.c: Fix indentation.
2014 * completer.c: Fix indentation.
2015 * corefile.c: Fix indentation.
2016 * corelow.c: Fix indentation.
2017 * cp-abi.h: Fix indentation.
2018 * cp-namespace.c: Fix indentation.
2019 * cp-support.c: Fix indentation.
2020 * cp-valprint.c: Fix indentation.
2021 * cris-linux-tdep.c: Fix indentation.
2022 * cris-tdep.c: Fix indentation.
2023 * darwin-nat-info.c: Fix indentation.
2024 * darwin-nat.c: Fix indentation.
2025 * darwin-nat.h: Fix indentation.
2026 * dbxread.c: Fix indentation.
2027 * dcache.c: Fix indentation.
2028 * disasm.c: Fix indentation.
2029 * dtrace-probe.c: Fix indentation.
2030 * dwarf2/abbrev.c: Fix indentation.
2031 * dwarf2/attribute.c: Fix indentation.
2032 * dwarf2/expr.c: Fix indentation.
2033 * dwarf2/frame.c: Fix indentation.
2034 * dwarf2/index-cache.c: Fix indentation.
2035 * dwarf2/index-write.c: Fix indentation.
2036 * dwarf2/line-header.c: Fix indentation.
2037 * dwarf2/loc.c: Fix indentation.
2038 * dwarf2/macro.c: Fix indentation.
2039 * dwarf2/read.c: Fix indentation.
2040 * dwarf2/read.h: Fix indentation.
2041 * elfread.c: Fix indentation.
2042 * eval.c: Fix indentation.
2043 * event-top.c: Fix indentation.
2044 * exec.c: Fix indentation.
2045 * exec.h: Fix indentation.
2046 * expprint.c: Fix indentation.
2047 * f-lang.c: Fix indentation.
2048 * f-typeprint.c: Fix indentation.
2049 * f-valprint.c: Fix indentation.
2050 * fbsd-nat.c: Fix indentation.
2051 * fbsd-tdep.c: Fix indentation.
2052 * findvar.c: Fix indentation.
2053 * fork-child.c: Fix indentation.
2054 * frame-unwind.c: Fix indentation.
2055 * frame-unwind.h: Fix indentation.
2056 * frame.c: Fix indentation.
2057 * frv-linux-tdep.c: Fix indentation.
2058 * frv-tdep.c: Fix indentation.
2059 * frv-tdep.h: Fix indentation.
2060 * ft32-tdep.c: Fix indentation.
2061 * gcore.c: Fix indentation.
2062 * gdb_bfd.c: Fix indentation.
2063 * gdbarch.sh: Fix indentation.
2064 * gdbarch.c: Re-generate
2065 * gdbarch.h: Re-generate.
2066 * gdbcore.h: Fix indentation.
2067 * gdbthread.h: Fix indentation.
2068 * gdbtypes.c: Fix indentation.
2069 * gdbtypes.h: Fix indentation.
2070 * glibc-tdep.c: Fix indentation.
2071 * gnu-nat.c: Fix indentation.
2072 * gnu-nat.h: Fix indentation.
2073 * gnu-v2-abi.c: Fix indentation.
2074 * gnu-v3-abi.c: Fix indentation.
2075 * go32-nat.c: Fix indentation.
2076 * guile/guile-internal.h: Fix indentation.
2077 * guile/scm-cmd.c: Fix indentation.
2078 * guile/scm-frame.c: Fix indentation.
2079 * guile/scm-iterator.c: Fix indentation.
2080 * guile/scm-math.c: Fix indentation.
2081 * guile/scm-ports.c: Fix indentation.
2082 * guile/scm-pretty-print.c: Fix indentation.
2083 * guile/scm-value.c: Fix indentation.
2084 * h8300-tdep.c: Fix indentation.
2085 * hppa-linux-nat.c: Fix indentation.
2086 * hppa-linux-tdep.c: Fix indentation.
2087 * hppa-nbsd-nat.c: Fix indentation.
2088 * hppa-nbsd-tdep.c: Fix indentation.
2089 * hppa-obsd-nat.c: Fix indentation.
2090 * hppa-tdep.c: Fix indentation.
2091 * hppa-tdep.h: Fix indentation.
2092 * i386-bsd-nat.c: Fix indentation.
2093 * i386-darwin-nat.c: Fix indentation.
2094 * i386-darwin-tdep.c: Fix indentation.
2095 * i386-dicos-tdep.c: Fix indentation.
2096 * i386-gnu-nat.c: Fix indentation.
2097 * i386-linux-nat.c: Fix indentation.
2098 * i386-linux-tdep.c: Fix indentation.
2099 * i386-nto-tdep.c: Fix indentation.
2100 * i386-obsd-tdep.c: Fix indentation.
2101 * i386-sol2-nat.c: Fix indentation.
2102 * i386-tdep.c: Fix indentation.
2103 * i386-tdep.h: Fix indentation.
2104 * i386-windows-tdep.c: Fix indentation.
2105 * i387-tdep.c: Fix indentation.
2106 * i387-tdep.h: Fix indentation.
2107 * ia64-libunwind-tdep.c: Fix indentation.
2108 * ia64-libunwind-tdep.h: Fix indentation.
2109 * ia64-linux-nat.c: Fix indentation.
2110 * ia64-linux-tdep.c: Fix indentation.
2111 * ia64-tdep.c: Fix indentation.
2112 * ia64-tdep.h: Fix indentation.
2113 * ia64-vms-tdep.c: Fix indentation.
2114 * infcall.c: Fix indentation.
2115 * infcmd.c: Fix indentation.
2116 * inferior.c: Fix indentation.
2117 * infrun.c: Fix indentation.
2118 * iq2000-tdep.c: Fix indentation.
2119 * language.c: Fix indentation.
2120 * linespec.c: Fix indentation.
2121 * linux-fork.c: Fix indentation.
2122 * linux-nat.c: Fix indentation.
2123 * linux-tdep.c: Fix indentation.
2124 * linux-thread-db.c: Fix indentation.
2125 * lm32-tdep.c: Fix indentation.
2126 * m2-lang.c: Fix indentation.
2127 * m2-typeprint.c: Fix indentation.
2128 * m2-valprint.c: Fix indentation.
2129 * m32c-tdep.c: Fix indentation.
2130 * m32r-linux-tdep.c: Fix indentation.
2131 * m32r-tdep.c: Fix indentation.
2132 * m68hc11-tdep.c: Fix indentation.
2133 * m68k-bsd-nat.c: Fix indentation.
2134 * m68k-linux-nat.c: Fix indentation.
2135 * m68k-linux-tdep.c: Fix indentation.
2136 * m68k-tdep.c: Fix indentation.
2137 * machoread.c: Fix indentation.
2138 * macrocmd.c: Fix indentation.
2139 * macroexp.c: Fix indentation.
2140 * macroscope.c: Fix indentation.
2141 * macrotab.c: Fix indentation.
2142 * macrotab.h: Fix indentation.
2143 * main.c: Fix indentation.
2144 * mdebugread.c: Fix indentation.
2145 * mep-tdep.c: Fix indentation.
2146 * mi/mi-cmd-catch.c: Fix indentation.
2147 * mi/mi-cmd-disas.c: Fix indentation.
2148 * mi/mi-cmd-env.c: Fix indentation.
2149 * mi/mi-cmd-stack.c: Fix indentation.
2150 * mi/mi-cmd-var.c: Fix indentation.
2151 * mi/mi-cmds.c: Fix indentation.
2152 * mi/mi-main.c: Fix indentation.
2153 * mi/mi-parse.c: Fix indentation.
2154 * microblaze-tdep.c: Fix indentation.
2155 * minidebug.c: Fix indentation.
2156 * minsyms.c: Fix indentation.
2157 * mips-linux-nat.c: Fix indentation.
2158 * mips-linux-tdep.c: Fix indentation.
2159 * mips-nbsd-tdep.c: Fix indentation.
2160 * mips-tdep.c: Fix indentation.
2161 * mn10300-linux-tdep.c: Fix indentation.
2162 * mn10300-tdep.c: Fix indentation.
2163 * moxie-tdep.c: Fix indentation.
2164 * msp430-tdep.c: Fix indentation.
2165 * namespace.h: Fix indentation.
2166 * nat/fork-inferior.c: Fix indentation.
2167 * nat/gdb_ptrace.h: Fix indentation.
2168 * nat/linux-namespaces.c: Fix indentation.
2169 * nat/linux-osdata.c: Fix indentation.
2170 * nat/netbsd-nat.c: Fix indentation.
2171 * nat/x86-dregs.c: Fix indentation.
2172 * nbsd-nat.c: Fix indentation.
2173 * nbsd-tdep.c: Fix indentation.
2174 * nios2-linux-tdep.c: Fix indentation.
2175 * nios2-tdep.c: Fix indentation.
2176 * nto-procfs.c: Fix indentation.
2177 * nto-tdep.c: Fix indentation.
2178 * objfiles.c: Fix indentation.
2179 * objfiles.h: Fix indentation.
2180 * opencl-lang.c: Fix indentation.
2181 * or1k-tdep.c: Fix indentation.
2182 * osabi.c: Fix indentation.
2183 * osabi.h: Fix indentation.
2184 * osdata.c: Fix indentation.
2185 * p-lang.c: Fix indentation.
2186 * p-typeprint.c: Fix indentation.
2187 * p-valprint.c: Fix indentation.
2188 * parse.c: Fix indentation.
2189 * ppc-linux-nat.c: Fix indentation.
2190 * ppc-linux-tdep.c: Fix indentation.
2191 * ppc-nbsd-nat.c: Fix indentation.
2192 * ppc-nbsd-tdep.c: Fix indentation.
2193 * ppc-obsd-nat.c: Fix indentation.
2194 * ppc-ravenscar-thread.c: Fix indentation.
2195 * ppc-sysv-tdep.c: Fix indentation.
2196 * ppc64-tdep.c: Fix indentation.
2197 * printcmd.c: Fix indentation.
2198 * proc-api.c: Fix indentation.
2199 * producer.c: Fix indentation.
2200 * producer.h: Fix indentation.
2201 * prologue-value.c: Fix indentation.
2202 * prologue-value.h: Fix indentation.
2203 * psymtab.c: Fix indentation.
2204 * python/py-arch.c: Fix indentation.
2205 * python/py-bpevent.c: Fix indentation.
2206 * python/py-event.c: Fix indentation.
2207 * python/py-event.h: Fix indentation.
2208 * python/py-finishbreakpoint.c: Fix indentation.
2209 * python/py-frame.c: Fix indentation.
2210 * python/py-framefilter.c: Fix indentation.
2211 * python/py-inferior.c: Fix indentation.
2212 * python/py-infthread.c: Fix indentation.
2213 * python/py-objfile.c: Fix indentation.
2214 * python/py-prettyprint.c: Fix indentation.
2215 * python/py-registers.c: Fix indentation.
2216 * python/py-signalevent.c: Fix indentation.
2217 * python/py-stopevent.c: Fix indentation.
2218 * python/py-stopevent.h: Fix indentation.
2219 * python/py-threadevent.c: Fix indentation.
2220 * python/py-tui.c: Fix indentation.
2221 * python/py-unwind.c: Fix indentation.
2222 * python/py-value.c: Fix indentation.
2223 * python/py-xmethods.c: Fix indentation.
2224 * python/python-internal.h: Fix indentation.
2225 * python/python.c: Fix indentation.
2226 * ravenscar-thread.c: Fix indentation.
2227 * record-btrace.c: Fix indentation.
2228 * record-full.c: Fix indentation.
2229 * record.c: Fix indentation.
2230 * reggroups.c: Fix indentation.
2231 * regset.h: Fix indentation.
2232 * remote-fileio.c: Fix indentation.
2233 * remote.c: Fix indentation.
2234 * reverse.c: Fix indentation.
2235 * riscv-linux-tdep.c: Fix indentation.
2236 * riscv-ravenscar-thread.c: Fix indentation.
2237 * riscv-tdep.c: Fix indentation.
2238 * rl78-tdep.c: Fix indentation.
2239 * rs6000-aix-tdep.c: Fix indentation.
2240 * rs6000-lynx178-tdep.c: Fix indentation.
2241 * rs6000-nat.c: Fix indentation.
2242 * rs6000-tdep.c: Fix indentation.
2243 * rust-lang.c: Fix indentation.
2244 * rx-tdep.c: Fix indentation.
2245 * s12z-tdep.c: Fix indentation.
2246 * s390-linux-tdep.c: Fix indentation.
2247 * score-tdep.c: Fix indentation.
2248 * ser-base.c: Fix indentation.
2249 * ser-mingw.c: Fix indentation.
2250 * ser-uds.c: Fix indentation.
2251 * ser-unix.c: Fix indentation.
2252 * serial.c: Fix indentation.
2253 * sh-linux-tdep.c: Fix indentation.
2254 * sh-nbsd-tdep.c: Fix indentation.
2255 * sh-tdep.c: Fix indentation.
2256 * skip.c: Fix indentation.
2257 * sol-thread.c: Fix indentation.
2258 * solib-aix.c: Fix indentation.
2259 * solib-darwin.c: Fix indentation.
2260 * solib-frv.c: Fix indentation.
2261 * solib-svr4.c: Fix indentation.
2262 * solib.c: Fix indentation.
2263 * source.c: Fix indentation.
2264 * sparc-linux-tdep.c: Fix indentation.
2265 * sparc-nbsd-tdep.c: Fix indentation.
2266 * sparc-obsd-tdep.c: Fix indentation.
2267 * sparc-ravenscar-thread.c: Fix indentation.
2268 * sparc-tdep.c: Fix indentation.
2269 * sparc64-linux-tdep.c: Fix indentation.
2270 * sparc64-nbsd-tdep.c: Fix indentation.
2271 * sparc64-obsd-tdep.c: Fix indentation.
2272 * sparc64-tdep.c: Fix indentation.
2273 * stabsread.c: Fix indentation.
2274 * stack.c: Fix indentation.
2275 * stap-probe.c: Fix indentation.
2276 * stubs/ia64vms-stub.c: Fix indentation.
2277 * stubs/m32r-stub.c: Fix indentation.
2278 * stubs/m68k-stub.c: Fix indentation.
2279 * stubs/sh-stub.c: Fix indentation.
2280 * stubs/sparc-stub.c: Fix indentation.
2281 * symfile-mem.c: Fix indentation.
2282 * symfile.c: Fix indentation.
2283 * symfile.h: Fix indentation.
2284 * symmisc.c: Fix indentation.
2285 * symtab.c: Fix indentation.
2286 * symtab.h: Fix indentation.
2287 * target-float.c: Fix indentation.
2288 * target.c: Fix indentation.
2289 * target.h: Fix indentation.
2290 * tic6x-tdep.c: Fix indentation.
2291 * tilegx-linux-tdep.c: Fix indentation.
2292 * tilegx-tdep.c: Fix indentation.
2293 * top.c: Fix indentation.
2294 * tracefile-tfile.c: Fix indentation.
2295 * tracepoint.c: Fix indentation.
2296 * tui/tui-disasm.c: Fix indentation.
2297 * tui/tui-io.c: Fix indentation.
2298 * tui/tui-regs.c: Fix indentation.
2299 * tui/tui-stack.c: Fix indentation.
2300 * tui/tui-win.c: Fix indentation.
2301 * tui/tui-winsource.c: Fix indentation.
2302 * tui/tui.c: Fix indentation.
2303 * typeprint.c: Fix indentation.
2304 * ui-out.h: Fix indentation.
2305 * unittests/copy_bitwise-selftests.c: Fix indentation.
2306 * unittests/memory-map-selftests.c: Fix indentation.
2307 * utils.c: Fix indentation.
2308 * v850-tdep.c: Fix indentation.
2309 * valarith.c: Fix indentation.
2310 * valops.c: Fix indentation.
2311 * valprint.c: Fix indentation.
2312 * valprint.h: Fix indentation.
2313 * value.c: Fix indentation.
2314 * value.h: Fix indentation.
2315 * varobj.c: Fix indentation.
2316 * vax-tdep.c: Fix indentation.
2317 * windows-nat.c: Fix indentation.
2318 * windows-tdep.c: Fix indentation.
2319 * xcoffread.c: Fix indentation.
2320 * xml-syscall.c: Fix indentation.
2321 * xml-tdesc.c: Fix indentation.
2322 * xstormy16-tdep.c: Fix indentation.
2323 * xtensa-config.c: Fix indentation.
2324 * xtensa-linux-nat.c: Fix indentation.
2325 * xtensa-linux-tdep.c: Fix indentation.
2326 * xtensa-tdep.c: Fix indentation.
2327
e1f57067
AB
23282020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
2329 Craig Blackmore <craig.blackmore@embecosm.com>
2330
2331 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
2332 as an unsigned value.
2333
ae7754b2
TT
23342020-11-01 Tom Tromey <tom@tromey.com>
2335
2336 * dbxread.c (dbx_end_psymtab): Update.
2337 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2338 (build_type_psymtabs_reader): Update.
2339 * xcoffread.c (xcoff_end_psymtab): Update.
2340 * ctfread.c (scan_partial_symbols): Update.
2341 * psymtab.c (sort_pst_symbols): Remove.
2342 (partial_symtab::end): Rename from end_psymtab_common. Inline
2343 sort_pst_symbols.
2344 * psympriv.h (struct partial_symtab) <end>: New method.
2345 (end_psymtab_common): Don't declare.
2346
0684bb51
TT
23472020-11-01 Tom Tromey <tom@tromey.com>
2348
2349 * symmisc.c (count_psyms): New function.
2350 (print_objfile_statistics): Use it.
2351 * psymtab.c (append_psymbol_to_list): Remove.
2352 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
2353 * objfiles.h (struct objstats) <n_psyms>: Remove.
2354
089002bb
TT
23552020-11-01 Tom Tromey <tom@tromey.com>
2356
2357 * dbxread.c (dbx_end_psymtab): Update.
2358 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
2359 (build_type_psymtabs_reader): Update.
2360 * xcoffread.c (xcoff_end_psymtab): Update.
2361 * ctfread.c (scan_partial_symbols): Update.
2362 * psympriv.h (end_psymtab_common): Update.
2363 * psymtab.c (end_psymtab_common): Remove objfile parameter.
2364 (sort_pst_symbols): Likewise.
2365
525454d6
TT
23662020-11-01 Tom Tromey <tom@tromey.com>
2367
2368 * dbxread.c (dbx_symfile_read): Update.
2369 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2370 * xcoffread.c (xcoff_initial_scan): Update.
2371 * psympriv.h (init_psymbol_list): Don't declare.
2372 * psymtab.c (init_psymbol_list): Remove.
2373
60bd1d53
JB
23742020-11-01 Joel Brobecker <brobecker@adacore.com>
2375
2376 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
2377 gnat_encoded_fixed_type_info. Update all callers.
2378
db99d0d0
JB
23792020-11-01 Joel Brobecker <brobecker@adacore.com>
2380
2381 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
2382 line too long.
2383
75f24e86
JB
23842020-11-01 Joel Brobecker <brobecker@adacore.com>
2385
2386 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
2387 cast_from_fixed. Update all callers.
2388 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
2389 Update all callers.
2390 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
2391 Update all callers.
2392 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
2393 ada_scaling_factor.
2394 * ada-typeprint.c: Replace call to ada_scaling_factor by call
2395 to print_gnat_encoded_fixed_point_type.
2396 * ada-valprint.c: Likewise.
2397
4f0469cd
AB
23982020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2399
2400 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
2401 (debug_prefixed_printf): Add check of debug_displaced flag.
2402 * linux-nat.c (linux_nat_debug_printf): Add check of
2403 debug_linux_nat flag.
2404
17417fb0
SM
24052020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2406
2407 * infrun.c (infrun_debug_printf_1): Remove.
2408 (displaced_debug_printf_1): Remove.
2409 (stop_all_threads): Use debug_prefixed_printf.
2410 * infrun.h (infrun_debug_printf_1): Remove.
2411 (infrun_debug_printf): Use debug_prefixed_printf.
2412 (displaced_debug_printf_1): Remove.
2413 (displaced_debug_printf): Use debug_prefixed_printf.
2414 * linux-nat.c (linux_nat_debug_printf_1): Remove.
2415 (linux_nat_debug_printf): Use debug_prefixed_printf.
2416
ad6dba1c
SM
24172020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2418
2419 * configure: Re-generate.
2420 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
2421 AC_LANG_PROGRAM.
2422
b6fb30ed
SM
24232020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2424
2425 * configure: Re-generate.
2426
5164c117
SM
24272020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2428
2429 * configure: Re-generate.
2430
864ca435
SM
24312020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2432
2433 * configure: Re-generate.
2434
b9442ec1
SM
24352020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2436
2437 * configure: Re-generate.
2438
294f2697
SM
24392020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2440
2441 * acinclude.m4: Modernize.
2442 * configure: Re-generate.
2443
5593a99a
SM
24442020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2445
2446 * configure.ac: Modernize.
2447 * configure: Re-generate.
2448
e41fda1d
SM
24492020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2450
2451 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
2452 * configure: Re-generate.
2453 * configure.ac: Remove AM_PROG_CC_STDC.
2454
91e1a0ed
SM
24552020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2456
2457 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
2458 AC_CANONICAL_SYSTEM.
2459 * configure: Re-generate.
2460
136821d9
SM
24612020-10-30 Simon Marchi <simon.marchi@efficios.com>
2462
2463 * infrun.h (displaced_debug_printf): New macro. Replace
2464 displaced debug prints throughout to use it.
2465 (displaced_debug_printf_1): New declaration.
2466 (displaced_step_dump_bytes): Return string, remove ui_file
2467 parameter, update all callers.
2468 * infrun.c (displaced_debug_printf_1): New function.
2469 (displaced_step_dump_bytes): Return string, remove ui_file
2470 parameter
2471
aa2045e7
SM
24722020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
2473
2474 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
2475
b1ec2735
TT
24762020-10-30 Tom Tromey <tromey@adacore.com>
2477
2478 * Makefile.in (stamp-init): Depend on config.status.
2479
b78b3a29
TBA
24802020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2481
2482 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
2483
d70bdd3c
PA
24842020-10-30 Pedro Alves <pedro@palves.net>
2485
2486 * thread.c (lookup_selected_frame): Move ...
2487 * frame.c (lookup_selected_frame): ... here.
2488
79952e69
PA
24892020-10-30 Pedro Alves <pedro@palves.net>
2490
2491 * blockframe.c (block_innermost_frame): Use get_selected_frame.
2492 * frame.c
2493 (scoped_restore_selected_frame::scoped_restore_selected_frame):
2494 Use save_selected_frame. Save language as well.
2495 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
2496 Use restore_selected_frame, and restore language as well.
2497 (selected_frame_id, selected_frame_level): New.
2498 (selected_frame): Update comments.
2499 (save_selected_frame, restore_selected_frame): New.
2500 (get_selected_frame): Use lookup_selected_frame.
2501 (get_selected_frame_if_set): Delete.
2502 (select_frame): Record selected_frame_level and selected_frame_id.
2503 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
2504 fields.
2505 (get_selected_frame): Make 'message' parameter optional.
2506 (get_selected_frame_if_set): Delete declaration.
2507 (select_frame): Update comments.
2508 (save_selected_frame, restore_selected_frame)
2509 (lookup_selected_frame): Declare.
2510 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
2511 * infrun.c (struct infcall_control_state) <selected_frame_level>:
2512 New field.
2513 (save_infcall_control_state): Use save_selected_frame.
2514 (restore_selected_frame): Delete.
2515 (restore_infcall_control_state): Use restore_selected_frame.
2516 * stack.c (select_frame_command_core, frame_command_core): Use
2517 get_selected_frame.
2518 * thread.c (restore_selected_frame): Rename to ...
2519 (lookup_selected_frame): ... this and make extern. Select the
2520 current frame if the frame level is -1.
2521 (scoped_restore_current_thread::restore): Also restore the
2522 language.
2523 (scoped_restore_current_thread::~scoped_restore_current_thread):
2524 Don't try/catch.
2525 (scoped_restore_current_thread::scoped_restore_current_thread):
2526 Save the language as well. Use save_selected_frame.
2527
58103c33
SM
25282020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2529
2530 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
2531 documentation.
2532 * gdbarch.h: Re-generate.
2533
40a53766
SM
25342020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2535
2536 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
2537 parameter.
2538 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
2539 Likewise.
2540 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2541 Likewise.
2542 * arch-utils.c (default_displaced_step_hw_singlestep):
2543 Likewise.
2544 * arch-utils.h (default_displaced_step_hw_singlestep):
2545 Likewise.
2546 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
2547 Likewise.
2548 * s390-tdep.c (s390_displaced_step_hw_singlestep):
2549 Likewise.
2550 * gdbarch.c: Re-generate.
2551 * gdbarch.h: Re-generate.
2552 * infrun.c (resume_1): Adjust.
2553
8407f91b
TT
25542020-10-29 Tom Tromey <tom@tromey.com>
2555
2556 * progspace.c (program_space::~program_space): Don't call
2557 exec_close.
2558
5008b3b2
TT
25592020-10-29 Tom Tromey <tom@tromey.com>
2560
2561 * exec.c (exec_target::close): Don't change current program
2562 space.
2563
d9eebde0
TT
25642020-10-29 Tom Tromey <tom@tromey.com>
2565
2566 * symfile.c (add_symbol_file_command): Update.
2567 * exec.c (program_space::add_target_sections): Rename.
2568 * symfile-mem.c (symbol_file_add_from_memory): Update.
2569 * progspace.h (struct program_space) <add_target_sections>:
2570 Declare new overload.
2571 * exec.h (add_target_sections_of_objfile): Don't declare.
2572
3769e227
TT
25732020-10-29 Tom Tromey <tom@tromey.com>
2574
2575 * solib.c (solib_map_sections): Update.
2576 * exec.c (program_space::add_target_sections): Now a method.
2577 (exec_file_attach): Update.
2578 * exec.h (add_target_sections): Don't declare.
2579 * progspace.h (struct program_space) <add_target_sections>:
2580 Declare.
2581
2a3f84af
TT
25822020-10-29 Tom Tromey <tom@tromey.com>
2583
2584 * progspace.h (struct program_space) <remove_target_sections>:
2585 Declare.
2586 * exec.c (program_space::remove_target_sections): Now a method.
2587 * exec.h (remove_target_sections): Don't declare.
2588
004eecfd
TT
25892020-10-29 Tom Tromey <tom@tromey.com>
2590
2591 * inferior.c (delete_inferior): Update.
2592 * progspace.c (program_space::empty): Rename from
2593 program_space_empty_p. Return bool.
2594 * progspace.h (struct program_space) <empty>: New method.
2595 (program_space_empty_p): Don't declare.
2596
e39fb971
TT
25972020-10-29 Tom Tromey <tom@tromey.com>
2598
2599 * progspace.c (program_space::~program_space): Don't call
2600 clear_program_space_solib_cache.
2601 (program_space::clear_solib_cache): Rename from
2602 clear_solib_cache.
2603 * solib.c (handle_solib_event): Update.
2604 * progspace.h (struct program_space) <clear_solib_cache>: New
2605 method.
2606 (clear_program_space_solib_cache): Don't declare.
2607
a42d7dd8
TT
26082020-10-29 Tom Tromey <tom@tromey.com>
2609
2610 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2611 * target.c (info_target_command): Update.
2612 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2613 (symbol_file_clear, reread_symbols): Update.
2614 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2615 * stabsread.c (scan_file_globals): Update.
2616 * solib.c (update_solib_list): Update.
2617 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2618 (svr4_fetch_objfile_link_map, enable_break)
2619 (svr4_relocate_main_executable)
2620 (svr4_iterate_over_objfiles_in_search_order): Update.
2621 * solib-frv.c (lm_base, enable_break)
2622 (frv_relocate_main_executable): Update.
2623 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2624 (frv_fetch_objfile_link_map): Update.
2625 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2626 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2627 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2628 * remote.c (remote_target::get_offsets): Update.
2629 (remote_target::start_remote)
2630 (extended_remote_target::post_attach): Update.
2631 * objfiles.c (entry_point_address_query): Update.
2632 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2633 * minsyms.c (get_symbol_leading_char): Update.
2634 * frame.c (inside_main_func): Update.
2635 * progspace.h (symfile_objfile): Remove macro.
2636
19f6550e
TT
26372020-10-29 Tom Tromey <tom@tromey.com>
2638
2639 * exec.c (exec_file_attach): Update.
2640 * progspace.c (program_space::exec_close): Update.
2641 * progspace.h (struct program_space) <ebfd>: Now a
2642 gdb_bfd_ref_ptr.
2643 <set_exec_bfd>: Change argument type.
2644 <exec_bfd>: Update.
2645
7e10abd1
TT
26462020-10-29 Tom Tromey <tom@tromey.com>
2647
2648 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2649 * symfile.c (reread_symbols): Update.
2650 * symfile-mem.c (add_symbol_file_from_memory_command)
2651 (add_vsyscall_page): Update.
2652 * source-cache.c (source_cache::get_plain_source_lines): Update.
2653 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2654 (svr4_current_sos_direct, svr4_exec_displacement)
2655 (svr4_relocate_main_executable): Update.
2656 (svr4_iterate_over_objfiles_in_search_order): Update.
2657 * solib-frv.c (enable_break2, enable_break): Update.
2658 * solib-dsbt.c (lm_base, enable_break): Update.
2659 * solib-darwin.c (find_program_interpreter)
2660 (darwin_solib_create_inferior_hook): Update.
2661 * sol-thread.c (rw_common, ps_pdmodel): Update.
2662 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2663 * remote.c (compare_sections_command)
2664 (remote_target::trace_set_readonly_regions): Update.
2665 * remote-sim.c (get_sim_inferior_data)
2666 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2667 (gdbsim_target_open, gdbsim_target::files_info): Update.
2668 * exec.h (exec_bfd): Remove macro.
2669 * progspace.c (initialize_progspace): Update.
2670 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2671 Update.
2672 * nto-procfs.c (nto_procfs_target::post_attach)
2673 (nto_procfs_target::create_inferior): Update.
2674 * maint.c (maintenance_info_sections): Update.
2675 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2676 Update.
2677 * infcmd.c (post_create_inferior): Update.
2678 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2679 (objfile_find_memory_regions): Update.
2680 * exec.c (validate_exec_file, exec_file_attach)
2681 (exec_read_partial_read_only, print_section_info): Update.
2682 * corelow.c (core_target_open): Update.
2683 * corefile.c (reopen_exec_file, validate_files): Update.
2684 * arm-tdep.c (gdb_print_insn_arm): Update.
2685 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2686 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2687 methods.
2688
b55221ab
TT
26892020-10-29 Tom Tromey <tom@tromey.com>
2690
2691 * progspace.h (current_target_sections): Remove macro.
2692 * solib-svr4.c (scan_dyntag): Update.
2693 * solib-dsbt.c (scan_dyntag): Update.
2694 * exec.c (exec_target::close): Update.
2695 (add_target_sections, add_target_sections_of_objfile)
2696 (remove_target_sections, exec_target::get_section_table)
2697 (exec_target::files_info, set_section_command)
2698 (exec_set_section_address, exec_target::has_memory)
2699 (exec_target::has_memory): Update.
2700
5a36e715
TT
27012020-10-29 Tom Tromey <tom@tromey.com>
2702
2703 * source-cache.c (source_cache::get_plain_source_lines): Use
2704 current_program_space.
2705 * corefile.c (reopen_exec_file): Use current_program_space.
2706 * exec.c (exec_file_attach): Use current_program_space.
2707 * exec.h (exec_bfd_mtime): Remove.
2708
784c8592
TT
27092020-10-29 Tom Tromey <tom@tromey.com>
2710
2711 * gcore.c (default_gcore_mach): Remove.
2712 (create_gcore_bfd): Update.
2713
8a4f1402
TT
27142020-10-29 Tom Tromey <tom@tromey.com>
2715
2716 * progspace.c (program_space::exec_close): New method, from
2717 exec_close in exec.c.
2718 * exec.c (exec_close): Move to progspace.c.
2719 (exec_target::close, exec_file_attach): Update.
2720 * progspace.h (struct program_space) <exec_close>: Declare
2721 method.
2722
c20cb686
TT
27232020-10-29 Tom Tromey <tom@tromey.com>
2724
2725 * progspace.h (struct program_space) <exec_filename>: Rename from
2726 pspace_exec_filename. Now a unique_xmalloc_ptr.
2727 * inferior.c (print_selected_inferior): Update.
2728 (print_inferior): Update.
2729 * mi/mi-main.c (print_one_inferior): Update.
2730 * exec.h (exec_filename): Remove macro.
2731 * corefile.c (get_exec_file): Update.
2732 * exec.c (exec_close): Update.
2733 (exec_file_attach): Update.
2734 * progspace.c (clone_program_space): Update.
2735 (print_program_space): Update.
2736
6be2a9ab
TT
27372020-10-29 Tom Tromey <tom@tromey.com>
2738
2739 * target-section.h (struct target_section): Add constructor.
2740 * exec.c (build_section_table, add_target_sections_of_objfile):
2741 Update.
2742 * corelow.c (core_target::build_file_mappings): Update.
2743
cfaa8f76
TBA
27442020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2745
2746 PR gdb/19318
2747 * inferior.c (detach_inferior_command): Restore the current thread.
2748 (kill_inferior_command): Ditto.
2749
1b00ef06
TV
27502020-10-28 Tom de Vries <tdevries@suse.de>
2751
2752 PR symtab/26772
2753 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2754 map, check it in the "best match" loop.
2755
7f40ce1a
SM
27562020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2757
2758 * m32c-tdep.c: Remove unused includes.
2759
5eb9e3f5
SM
27602020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2761
2762 * xtensa-tdep.c: Remove includes.
2763
b1d4d8d1
TBA
27642020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2765
2766 * breakpoint.c (struct condition_command_opts): New struct.
2767 (condition_command_option_defs): New static global.
2768 (make_condition_command_options_def_group): New function.
2769 (condition_completer): Update to consider the '-force' flag.
2770 (condition_command): Use gdb::option for the '-force' flag.
2771
bd24c5d6
TV
27722020-10-27 Tom de Vries <tdevries@suse.de>
2773
2774 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2775 symbols in section check.
2776
61eb46a4
TV
27772020-10-27 Tom de Vries <tdevries@suse.de>
2778
2779 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2780
733d554a
TBA
27812020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2782
2783 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2784 * breakpoint.c: Update the help text of the 'condition' and 'break'
2785 commands.
2786 (set_breakpoint_condition): Take a new bool parameter
2787 to control whether condition definition should be forced even when
2788 the condition expression is invalid in all of the current locations.
2789 (condition_command): Update the call to 'set_breakpoint_condition'.
2790 (find_condition_and_thread): Take the "-force-condition" flag into
2791 account.
2792 * linespec.c (linespec_keywords): Add "-force-condition" as an
2793 element.
2794 (FORCE_KEYWORD_INDEX): New #define.
2795 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2796 as a keyword.
2797 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2798 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2799 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2800 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2801
b5fa468f
TBA
28022020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2803
2804 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2805 * breakpoint.c (set_breakpoint_location_condition): New function.
2806 (set_breakpoint_condition): Disable a breakpoint location if parsing
2807 the condition string gives an error.
2808 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2809 (build_target_condition_list): Ditto.
2810 (build_target_command_list): Ditto.
2811 (build_bpstat_chain): Ditto.
2812 (print_one_breakpoint_location): Ditto.
2813 (print_one_breakpoint): Ditto.
2814 (breakpoint_1): Ditto.
2815 (bp_location::bp_location): Ditto.
2816 (locations_are_equal): Ditto.
2817 (update_breakpoint_locations): Ditto.
2818 (enable_disable_bp_num_loc): Ditto.
2819 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2820 (find_condition_and_thread_for_sals): New static function.
2821 (create_breakpoint): Call find_condition_and_thread_for_sals.
2822 (location_to_sals): Call find_condition_and_thread_for_sals instead
2823 of find_condition_and_thread.
2824
1c47ec3e
TV
28252020-10-26 Tom de Vries <tdevries@suse.de>
2826
2827 * dwarf2/read.c (process_full_comp_unit): Call
2828 dwarf2_find_base_address.
2829
6390859c
TT
28302020-10-26 Tom Tromey <tromey@adacore.com>
2831
2832 * gdbtypes.c (create_range_type): Revert previous patch. Add
2833 comment.
2834
d744f0f9
PA
28352020-10-26 Pedro Alves <pedro@palves.net>
2836
2837 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2838 (my_waitpid): Use gdb::handle_eintr.
2839
006811bc
SM
28402020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2841
2842 * acinclude.m4: Update ptrace.m4 path.
2843 * ptrace.m4: Moved to gdbsupport.
2844
c75e31a1
SM
28452020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2846
2847 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2848 instead of target_gdbarch.
2849
32495661
SM
28502020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2851
2852 * jit.c (jit_reader_load_command): Pass current inferior.
2853 (jit_inferior_init): Change parameter type to inferior, use it.
2854 (jit_inferior_created): Remove.
2855 (jit_inferior_created_hook): Pass inferior parameter down.
2856 (_initialize_jit): Use jit_inferior_created_hook instead of
2857 jit_inferior_created.
2858 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2859 * infrun.c (follow_exec): Pass inferior to
2860 jit_inferior_created_hook.
2861
3f66685e
SM
28622020-10-24 Simon Marchi <simon.marchi@efficios.com>
2863
2864 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2865 parameter and use it.
2866 (thread_db_inferior_created): Pass inferior argument.
2867
a0ff652f
SM
28682020-10-24 Simon Marchi <simon.marchi@efficios.com>
2869
2870 * aix-thread.c (aix_thread_inferior_created): Add inferior
2871 parameter.
2872 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2873 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2874 * jit.c (jit_inferior_created): Likewise.
2875 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2876 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2877 * observable.h (inferior_created): Likewise.
2878 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2879 * symfile-mem.c (add_vsyscall_page): Likewise.
2880 * infcmd.c (post_create_inferior): Pass inferior argument.
2881
3c67532c
JB
28822020-10-24 Joel Brobecker <brobecker@adacore.com>
2883
2884 GDB 10.1 released.
2885
8747316e
JB
28862020-10-23 Joel Brobecker <brobecker@adacore.com>
2887
2888 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2889 to ada_check_typedef.
2890
1a0ea399
AB
28912020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2892
2893 * f-exp.y (f_parse): Rename to...
2894 (f_language::parser): ...this.
2895 * f-lang.c (f_get_encoding): Rename to...
2896 (f_language::get_encoding): ...this.
2897 (f_op_print_tab): Rename to...
2898 (f_language::op_print_tab): ...this.
2899 (exp_descriptor_f): Rename to...
2900 (f_language::exp_descriptor_tab): ...this.
2901 (class f_language): Moved to f-lang.h.
2902 (f_language::language_arch_info): New function, moved out of class
2903 declaration.
2904 (f_language::search_name_hash): Likewise.
2905 (f_language::lookup_symbol_nonlocal): Likewise.
2906 (f_language::get_symbol_name_matcher_inner): Likewise.
2907 * f-lang.h: Add 'valprint.h' include.
2908 (class f_language): Moved here from f-lang.c.
2909 * f-typeprint.c (f_type_print_args): Delete commented out
2910 declaration.
2911 (f_print_typedef): Rename to...
2912 (f_language::print_typedef): ...this.
2913 (f_print_type): Rename to...
2914 (f_language::print_type): ...this.
2915 (f_type_print_varspec_prefix): Delete declaration and rename to...
2916 (f_language::f_type_print_varspec_prefix): ...this.
2917 (f_type_print_varspec_suffix): Delete declaration and rename to...
2918 (f_language::f_type_print_varspec_suffix): ...this.
2919 (f_type_print_base): Delete declaration and rename to...
2920 (f_language::f_type_print_base): ...this.
2921 * f-valprint.c (f_value_print_inner): Rename to...
2922 (f_language::value_print_inner): ...this.
2923 * parse.c: Delete 'f-lang.h' include.
2924
88cefd9b
AB
29252020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2926
2927 * language.h (language_defn::print_type): Add variable names in
2928 declaration, and update header comment.
2929
5399db93
AB
29302020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2931
2932 * ada-lang.c (ada_language::demangle): Rename to...
2933 (ada_language::demangle_symbol): ...this.
2934 * c-lang.c (cplus_language::demangle): Rename to...
2935 (cplus_language::demangle_symbol): ...this.
2936 * d-lang.c (d_language::demangle): Rename to...
2937 (d_language::demangle_symbol): ...this.
2938 * f-lang.c (f_language::demangle): Rename to...
2939 (f_language::demangle_symbol): ...this.
2940 * go-lang.c (go_language::demangle): Rename to...
2941 (go_language::demangle_symbol): ...this.
2942 * language.c (language_demangle): Update call to demangle_symbol.
2943 (auto_or_unknown_language::demangle): Rename to...
2944 (auto_or_unknown_language::demangle_symbol): ...this.
2945 * language.h (language_defn::demangle): Rename to...
2946 (language_defn::demangle_symbol): ...this.
2947 * objc-lang.c (objc_language::demangle): Rename to...
2948 (objc_language::demangle_symbol): ...this.
2949 * rust-lang.c (rust_language::demangle): Rename to...
2950 (rust_language::demangle_symbol): ...this.
2951
4b2f86ef
AB
29522020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2953
2954 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2955 (iterate_over_file_blocks): Replace use of macro with the macros
2956 definition.
2957
e74b39de
AB
29582020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2959
2960 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2961 * valprint.c (maybe_print_array_index): Replace use of macro with
2962 the macros definition.
2963
00c696a6
AB
29642020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2965
2966 * ada-lang.c (ada_language::print_array_index): Call value_print
2967 directly.
2968 * language.c (language_defn::print_array_index): Likewise.
2969 * language.h (LA_VALUE_PRINT): Delete.
2970 * valprint.c (value_print): Call value_print on the
2971 current_language directly.
2972
d3b67c56
AB
29732020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2974
2975 * language.h (LA_PRINT_TYPEDEF): Delete.
2976 * typeprint.c (typedef_print): Call print_typedef directly on the
2977 current_language object.
2978
790e2a12
AB
29792020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2980
2981 * m2-exp.y (m2_parse): Rename to...
2982 (m2_language::parser): ...this. Update function signature.
2983 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2984 (m2_op_print): Rename to...
2985 (m2_language::op_print_tab): ...this, and make const.
2986 (exp_descriptor_modula2): Rename to...
2987 (m2_language::exp_descriptor_modula2): ...this.
2988 (class m2_language): Move to m2-lang.h.
2989 (m2_language::language_arch_info): New function, moved out of
2990 class declaration.
2991 (m2_language::printchar): New function, body from m2_printchar.
2992 (m2_language::printstr): New function, moved out of class
2993 declaration.
2994 (m2_language::emitchar): Likewise.
2995 * m2-lang.h (m2_parse): Delete declaration.
2996 (m2_print_typedef): Delete declaration.
2997 (m2_value_print_inner): Delete declaration.
2998 (class m2_language): Class declaration moved from m2-lang.c,
2999 larger functions are left in m2-lang.c.
3000 * m2-typeprint.c (m2_print_typedef): Rename to...
3001 (m2_language::print_typedef): ...this, and update function
3002 signature.
3003 * m2-valprint.c (m2_value_print_inner): Rename to...
3004 (m2_language::value_print_inner): ...this, replace use of
3005 LA_PRINT_STRING with a direct call to printstr member function,
3006 and update recursive call.
3007
b01175fc
AB
30082020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
3009
3010 * language.c (default_is_string_type_p): Delete, implementation
3011 moved into auto_or_unknown_language::is_string_type_p.
3012 (unk_op_print_tab): Moved into
3013 auto_or_unknown_language::opcode_print_table.
3014 (unknown_language_arch_info): Delete, implementation moved into
3015 auto_or_unknown_language::language_arch_info.
3016 (class auto_or_unknown_language): New class, member functions
3017 copied from unknown_language class, with some updates.
3018 (class unknown_language): Most member functions moved into
3019 auto_or_unknown_language class. Inherit from
3020 auto_or_unknown_language class.
3021 (class auto_language): Inherit from auto_or_unknown_language.
3022 Delete most member functions.
3023
1a97fe8c
HD
30242020-10-22 Hannes Domani <ssbssa@yahoo.de>
3025
3026 * stabsread.c (read_member_functions): Remove gdb_assert.
3027
6b9d0dfd
HD
30282020-10-22 Hannes Domani <ssbssa@yahoo.de>
3029
3030 * gdbtypes.c (init_complex_type): Check target type name.
3031
4b4bb603
SM
30322020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
3033
3034 * target-debug.h (target_debug_print_struct_target_ops_p):
3035 Remove.
3036 (target_debug_print_async_callback_ftype_p): Remove.
3037 (target_debug_print_struct_trace_state_variable_p): Remove.
3038 (target_debug_print_struct_traceframe_info_p): Remove.
3039 (target_debug_print_VEC__btrace_block_s__pp): Remove.
3040 (target_debug_print_enum_btrace_format): Remove.
3041 (target_debug_print_enum_info_proc_what): Remove.
3042 (target_debug_print_thread_info_pp): Remove.
3043
24f5300a
SM
30442020-10-22 Simon Marchi <simon.marchi@efficios.com>
3045
3046 * target.h (struct target_ops) <make_corefile_notes>:
3047 Change return type to unique pointer.
3048 * target.c (dummy_make_corefile_notes): Likewise.
3049 * exec.c (struct exec_target) <make_corefile_notes>:
3050 Likewise.
3051 (exec_target::make_corefile_notes): Likewise.
3052 * procfs.c (class procfs_target) <make_corefile_notes>:
3053 Likewise.
3054 (procfs_do_thread_registers): Adjust to unique pointer.
3055 (struct procfs_corefile_thread_data): Add constructor.
3056 <note_data>: Change type to unique pointer.
3057 (procfs_corefile_thread_callback): Adjust to unique pointer.
3058 (procfs_target::make_corefile_notes): Change return type to
3059 unique pointer.
3060 * target-delegates.c: Re-generate.
3061 * gcore.c (write_gcore_file_1): Adjust.
3062 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
3063 New.
3064
5fb4027f
TV
30652020-10-22 Tom de Vries <tdevries@suse.de>
3066
3067 * block.c (find_block_in_blockvector): Make sure the returned block
3068 contains pc.
3069
4a636814
SM
30702020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
3071
3072 PR gdb/26693
3073 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
3074 parameter.
3075 (load_cu): Pass existing CU.
3076 (process_imported_unit_die): Likewise.
3077 (follow_die_offset): Likewise.
3078
1bd57575
LM
30792020-10-22 Luis Machado <luis.machado@linaro.org>
3080
3081 * corelow.c (core_target::xfer_partial): Also check for an empty
3082 m_core_unavailable_mappings vector.
3083
6b4c676c
AB
30842020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
3085
3086 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
3087 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
3088 * f-exp.y (arglist): Allow for a series of subranges.
3089 (subrange): Add cases for subranges with strides.
3090 * f-lang.c (value_f90_subarray): Catch use of array strides and
3091 throw an error.
3092 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
3093
f2d8e4c5
AB
30942020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
3095
3096 * expprint.c (print_subexp_standard): Change enum range_type to
3097 range_flag and rename variables to match.
3098 (dump_subexp_body_standard): Likewise.
3099 * expression.h (enum range_type): Rename to...
3100 (enum range_flag): ...this.
3101 (range_types): Rename to...
3102 (range_flags): ...this.
3103 * f-lang.c (value_f90_subarray): Change enum range_type to
3104 range_flag and rename variables to match.
3105 * parse.c (operator_length_standard): Likewise.
3106 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
3107 range_type to range_flag.
3108 * rust-lang.c (rust_evaluate_funcall): Likewise.
3109 (rust_range): Likewise.
3110 (rust_compute_range): Likewise.
3111 (rust_subscript): Likewise.
3112
2f1b18db
AB
31132020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
3114
3115 * expprint.c (print_subexp_standard): Update to reflect changes to
3116 enum range_type.
3117 (dump_subexp_body_standard): Likewise.
3118 * expression.h (enum range_type): Convert to a bit field enum, and
3119 make the enum unsigned.
3120 * f-exp.y (subrange): Update to reflect changes to enum
3121 range_type.
3122 * f-lang.c (value_f90_subarray): Likewise.
3123 * parse.c (operator_length_standard): Likewise.
3124 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
3125 * rust-lang.c (rust_range): Likewise.
3126 (rust_compute_range): Likewise.
3127 (rust_subscript): Likewise.
3128
a46d1843
SM
31292020-10-21 Simon Marchi <simon.marchi@efficios.com>
3130
3131 * infrun.c (displaced_step_in_progress_thread): Fix comment.
3132 (displaced_step_in_progress): Fix comment.
3133
c21f37a8
SM
31342020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
3135
3136 * gdbarch.sh (make_corefile_notes): Return unique pointer.
3137 * gdbarch.c: Re-generate.
3138 * gdbarch.h: Re-generate.
3139 * gcore.c (write_gcore_file_1): Adjust.
3140 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
3141 constructor.
3142 <note_data>: Change type to unique pointer.
3143 <abort_iteration>: Change type to bool.
3144 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
3145 (fbsd_collect_thread_registers): Return void, adjust.
3146 (struct fbsd_corefile_thread_data): Add construtor.
3147 <note_data>: Change type to unique pointer.
3148 (fbsd_corefile_thread): Adjust.
3149 (fbsd_make_corefile_notes): Return unique pointer, adjust.
3150 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
3151 to unique pointer, adjust.
3152 (struct linux_collect_regset_section_cb_data): Add constructor.
3153 <note_data>: Change type to unique pointer.
3154 <abort_iteration>: Change type to bool.
3155 (linux_collect_thread_registers): Return void, adjust.
3156 (struct linux_corefile_thread_data): Add constructor.
3157 <note_data>: Change type to unique pointer.
3158 (linux_corefile_thread): Adjust.
3159 (linux_make_corefile_notes): Return unique pointer, adjust.
3160
07fbbd01
SM
31612020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3162
3163 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
3164 * gdbarch.c: Re-generate.
3165 * gdbarch.h: Re-generate.
3166 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
3167 bool.
3168 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
3169 Likewise.
3170 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
3171 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
3172 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
3173 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
3174
39535193
SM
31752020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3176
3177 * gdbarch.sh: Make generated predicates return bool.
3178 * gdbarch.c: Re-generate.
3179 * gdbarch.h: Re-generate.
3180
ad523d01
TT
31812020-10-20 Tom Tromey <tom@tromey.com>
3182
3183 * varobj-iter.h (struct varobj_item): Remove typedef.
3184
c4464ade
SM
31852020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3186
3187 * infrun.c (currently_stepping): Change int to bool
3188 (maybe_software_singlestep): Likewise.
3189 (show_stop_on_solib_events): Likewise.
3190 (stepping_past_nonsteppable_watchpoint): Likewise.
3191 (displaced_step_in_progress_any_inferior): Likewise.
3192 (displaced_step_in_progress_thread): Likewise.
3193 (keep_going_stepped_thread): Likewise.
3194 (thread_still_needs_step_over): Likewise.
3195 (start_step_over): Likewise.
3196 (do_target_resume): Likewise.
3197 (resume_1): Likewise.
3198 (clear_proceed_status): Likewise.
3199 (thread_still_needs_step_over_bp): Likewise.
3200 (proceed): Likewise.
3201 (switch_back_to_stepped_thread): Likewise.
3202 (adjust_pc_after_break): Likewise.
3203 (stepped_in_from): Likewise.
3204 (handle_stop_requested): Likewise.
3205 (handle_syscall_event): Likewise.
3206 (handle_no_resumed): Likewise.
3207 (handle_inferior_event): Likewise.
3208 (finish_step_over): Likewise.
3209 (handle_signal_stop): Likewise.
3210 (process_event_stop_test): Likewise.
3211
2eb20436
SM
32122020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3213
3214 * infrun.c (get_displaced_stepping_state): Fix comment.
3215
e0c45ded
AS
32162020-10-20 Andreas Schwab <schwab@linux-m68k.org>
3217
3218 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
3219
22cc388e
TT
32202020-10-19 Tom Tromey <tromey@adacore.com>
3221
3222 PR tui/26719
3223 * tui/tui-winsource.h (struct tui_source_window_base)
3224 <refresh_window>: Rename from refresh_pad.
3225 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3226 Rename from refresh_pad.
3227 (tui_source_window_base::show_source_content)
3228 (tui_source_window_base::do_scroll_horizontal): Update.
3229
3c6eb4d4
TBA
32302020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3231
3232 * thread.c (_initialize_thread): Fine-tune the help text of
3233 'info threads'.
3234
26703721
TBA
32352020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3236
3237 * frame.c: Remove the unused 'uinteger_option_def' type alias.
3238
61c26be8
MS
32392020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
3240
3241 * breakpoint.c (handle_jit_event): Add an argument, change how
3242 `jit_event_handler` is called.
3243
932539d7
TT
32442020-10-17 Tom Tromey <tom@tromey.com>
3245
3246 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
3247 (scan_xcoff_symtab): Update.
3248 * psymtab.h (class psymtab_storage) <global_psymbols,
3249 static_psymbols, current_global_psymbols,
3250 current_static_psymbols>: Remove.
3251 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
3252 (match_partial_symbol, lookup_partial_symbol): Update.
3253 (print_partial_symbols): Change parameters.
3254 (dump_psymtab, recursively_search_psymtabs)
3255 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
3256 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
3257 (concat): Remove.
3258 (end_psymtab_common): Simplify.
3259 (append_psymbol_to_list): Change parameters.
3260 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
3261 (init_psymbol_list): Simplify.
3262 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3263 * psympriv.h (struct partial_symtab) <empty>: New method.
3264 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
3265 Remove.
3266 <global_psymbols, static_psymbols>: New members.
3267 <add_psymbol>: New methods.
3268 (add_psymbol_to_list): Don't declare.
3269 (psymbol_placement): Move earlier.
3270 * mdebugread.c (parse_partial_symbols): Update.
3271 (handle_psymbol_enumerators): Change parameters.
3272 (mdebug_expand_psymtab): Update.
3273 * dwarf2/read.c (process_psymtab_comp_unit_reader)
3274 (add_partial_symbol): Update.
3275 * dwarf2/index-write.c (write_psymbols): Change parameters.
3276 (write_one_signatured_type): Update.
3277 (recursively_count_psymbols): Update.
3278 (recursively_write_psymbols): Update.
3279 (class debug_names) <recursively_write_psymbols>: Update.
3280 <write_psymbols>: Change parameters.
3281 <write_one_signatured_type>: Update.
3282 * dbxread.c (read_dbx_symtab): Update.
3283 (dbx_end_psymtab): Use partial_symtab::empty.
3284 * ctfread.c (struct ctf_context) <pst>: New member.
3285 (create_partial_symtab): Set it.
3286 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
3287 (scan_partial_symbols): Use the psymtab's context. Update.
3288
cfabbd35
TT
32892020-10-17 Tom Tromey <tom@tromey.com>
3290
3291 * valprint.c (generic_value_print): Remove comment.
3292 * m2-valprint.c (m2_value_print_inner): Remove comment.
3293 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
3294 type.
3295
520596f2
TV
32962020-10-17 Tom de Vries <tdevries@suse.de>
3297
3298 PR symtab/26317
3299 * source.c (select_source_symtab): Handling sal.symtab == NULL for
3300 symbol main.
3301
76547ab3
TV
33022020-10-14 Tom de Vries <tdevries@suse.de>
3303
3304 PR gdb/26733
3305 * solib.c (solib_contains_address_p): Handle
3306 'solib->sections == nullptr'.
3307
d3a07122
SM
33082020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3309
3310 PR gdb/26642
3311 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
3312 target can't do async.
3313 * target.c (target_wait): Assert that we don't pass
3314 TARGET_WNOHANG to a target that can't async.
3315
1b71cfcf
KR
33162020-10-13 Kamil Rytarowski <n54@gmx.com>
3317
3318 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
3319 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
3320 * alpha-bsd-nat.c: Adjust include.
3321 * alpha-bsd-tdep.h: Adjust comment.
3322 * alpha-nbsd-tdep.c: Rename to ...
3323 * alpha-netbsd-tdep.c: ... this, adjust include.
3324 * amd64-nbsd-nat.c: Rename to ...
3325 * amd64-netbsd-nat.c: ... this, adjust include.
3326 * amd64-nbsd-tdep.c: Rename to ...
3327 * amd64-netbsd-tdep.c: ... this, adjust include.
3328 * amd64-tdep.h: Adjust include.
3329 * arm-nbsd-nat.c: Rename to ...
3330 * arm-netbsd-nat.c: ... this, adjust include.
3331 * arm-nbsd-tdep.c: Rename to ...
3332 * arm-netbsd-tdep.c: ... this, adjust include.
3333 * arm-nbsd-tdep.h: Rename to ...
3334 * arm-netbsd-tdep.h: ... this, adjust include.
3335 * configure.nat: Adjust file lists.
3336 * configure.tgt: Likewise.
3337 * hppa-nbsd-nat.c: Rename to ...
3338 * hppa-netbsd-nat.c: ... this, adjust include.
3339 * hppa-nbsd-tdep.c: Rename to ...
3340 * hppa-netbsd-tdep.c: ... this, adjust include.
3341 * i386-nbsd-nat.c: Rename to ...
3342 * i386-netbsd-nat.c: ... this, adjust include.
3343 * i386-nbsd-tdep.c: Rename to ...
3344 * i386-netbsd-tdep.c: ... this, adjust include.
3345 * m68k-bsd-nat.c: Adjust include.
3346 * mips-nbsd-nat.c: Rename to ...
3347 * mips-netbsd-nat.c: ... this, adjust include.
3348 * mips-nbsd-tdep.c: Rename to ...
3349 * mips-netbsd-tdep.c: ... this, adjust include.
3350 * mips-nbsd-tdep.h: Rename to ...
3351 * mips-netbsd-tdep.h: ... this.
3352 * nbsd-nat.c: Rename to ...
3353 * netbsd-nat.c: ... this, adjust include.
3354 * nbsd-nat.h: Rename to ...
3355 * netbsd-nat.h: ... this, adjust include.
3356 * nbsd-tdep.c: Rename to ...
3357 * netbsd-tdep.c: ... this, adjust include.
3358 * nbsd-tdep.h: Rename to ...
3359 * netbsd-tdep.h: ... this.
3360 * ppc-nbsd-nat.c: Rename to ...
3361 * ppc-netbsd-nat.c: ... this, adjust include.
3362 * ppc-nbsd-tdep.c: Rename to ...
3363 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
3364 * ppc-nbsd-tdep.h: Rename to ...
3365 * ppc-netbsd-tdep.h: ... this.
3366 * sh-nbsd-nat.c: Rename to ...
3367 * sh-netbsd-nat.c: ... this, adjust include.
3368 * sh-nbsd-tdep.c: Rename to ...
3369 * sh-netbsd-tdep.c: ... this, adjust include.
3370 * sparc-nbsd-nat.c: Rename to ...
3371 * sparc-netbsd-nat.c: ... this.
3372 * sparc-nbsd-tdep.c: Rename to ...
3373 * sparc-netbsd-tdep.c: ... this, adjust include.
3374 * sparc64-nbsd-nat.c: Rename to ...
3375 * sparc64-netbsd-nat.c: ... this.
3376 * sparc64-nbsd-tdep.c: Rename to ...
3377 * sparc64-netbsd-tdep.c: ... this, adjust include.
3378 * sparc64-tdep.h: Adjust comment.
3379 * vax-bsd-nat.c: Adjust include.
3380 * vax-nbsd-tdep.c: Rename to ...
3381 * vax-netbsd-tdep.c: ... this, adjust include.
3382
d7a78e5c
TT
33832020-10-12 Tom Tromey <tom@tromey.com>
3384
3385 * target.h (struct target_ops) <get_section_table>: Update.
3386 (target_get_section_table): Update.
3387 * target.c (target_get_section_table, target_section_by_addr)
3388 (memory_xfer_partial_1): Update.
3389 * target-section.h (target_section_table): Now an alias.
3390 * target-delegates.c: Rebuild.
3391 * target-debug.h (target_debug_print_target_section_table_p):
3392 Rename from target_debug_print_struct_target_section_table_p.
3393 * symfile.c (build_section_addr_info_from_section_table): Update.
3394 * solib.c (solib_map_sections, solib_contains_address_p): Update.
3395 * solib-svr4.c (scan_dyntag): Update.
3396 * solib-dsbt.c (scan_dyntag): Update.
3397 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3398 Update.
3399 * record-full.c (record_full_core_target::xfer_partial): Update.
3400 * progspace.h (struct program_space) <target_sections>: Update.
3401 * exec.h (print_section_info): Update.
3402 * exec.c (exec_target::close, build_section_table)
3403 (add_target_sections, add_target_sections_of_objfile)
3404 (remove_target_sections, exec_on_vfork)
3405 (section_table_available_memory)
3406 (section_table_xfer_memory_partial)
3407 (exec_target::get_section_table, exec_target::xfer_partial)
3408 (print_section_info, set_section_command)
3409 (exec_set_section_address, exec_target::has_memory): Update.
3410 * corelow.c (core_target::build_file_mappings)
3411 (core_target::xfer_partial, core_target::info_proc_mappings)
3412 (core_target::info_proc_mappings): Update.
3413 * bfd-target.c (class target_bfd): Update
3414
eda214ce
TT
34152020-10-12 Tom Tromey <tom@tromey.com>
3416
3417 * progspace.c (program_space::~program_space): Don't call
3418 clear_section_table.
3419 * exec.h (clear_section_table): Don't declare.
3420 * exec.c (exec_target::close): Update.
3421 (clear_section_table): Remove.
3422
91840ee3
TT
34232020-10-12 Tom Tromey <tom@tromey.com>
3424
3425 * exec.c (add_target_sections_of_objfile): Simplify.
3426
2d128614
TT
34272020-10-12 Tom Tromey <tom@tromey.com>
3428
3429 * solib.c (solib_map_sections): Update.
3430 * record-full.c (record_full_core_open_1): Update.
3431 * exec.h (build_section_table): Return a target_section_table.
3432 * exec.c (exec_file_attach): Update.
3433 (build_section_table): Return a target_section_table.
3434 * corelow.c (core_target::core_target): Update.
3435 * bfd-target.c (target_bfd::target_bfd): Update.
3436
bb2a6777
TT
34372020-10-12 Tom Tromey <tom@tromey.com>
3438
3439 * target.c (target_section_by_addr, memory_xfer_partial_1):
3440 Update.
3441 * target-section.h (struct target_section_table): Use
3442 std::vector.
3443 * symfile.h (build_section_addr_info_from_section_table): Take a
3444 target_section_table.
3445 * symfile.c (build_section_addr_info_from_section_table): Take a
3446 target_section_table.
3447 * solist.h (struct so_list) <sections>: Change type.
3448 <sections_end>: Remove.
3449 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
3450 (solib_contains_address_p): Update.
3451 * solib-svr4.c (scan_dyntag): Update.
3452 * solib-dsbt.c (scan_dyntag): Update.
3453 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3454 Update.
3455 * record-full.c (record_full_core_start, record_full_core_end):
3456 Remove.
3457 (record_full_core_sections): New global.
3458 (record_full_core_open_1, record_full_core_target::xfer_partial):
3459 Update.
3460 * exec.h (build_section_table, section_table_xfer_memory_partial)
3461 (add_target_sections): Take a target_section_table.
3462 * exec.c (exec_file_attach, clear_section_table): Update.
3463 (resize_section_table): Remove.
3464 (build_section_table, add_target_sections): Take a
3465 target_section_table.
3466 (add_target_sections_of_objfile, remove_target_sections)
3467 (exec_on_vfork): Update.
3468 (section_table_available_memory): Take a target_section_table.
3469 (section_table_read_available_memory): Update.
3470 (section_table_xfer_memory_partial): Take a target_section_table.
3471 (print_section_info, set_section_command)
3472 (exec_set_section_address, exec_target::has_memory): Update.
3473 * corelow.c (class core_target) <m_core_section_table,
3474 m_core_file_mappings>: Remove braces.
3475 <~core_target>: Remove.
3476 (core_target::core_target): Update.
3477 (core_target::~core_target): Remove.
3478 (core_target::build_file_mappings)
3479 (core_target::xfer_memory_via_mappings)
3480 (core_target::xfer_partial, core_target::info_proc_mappings):
3481 Update.
3482 * bfd-target.c (target_bfd::xfer_partial): Update.
3483 (target_bfd::target_bfd): Update.
3484 (target_bfd::~target_bfd): Remove.
3485
7b466b10
TT
34862020-10-12 Tom Tromey <tom@tromey.com>
3487
3488 * target.h (struct target_section, struct target_section_table):
3489 Move to target-section.h.
3490 * target-section.h: New file.
3491
87a37e5e
PA
34922020-10-12 Pedro Alves <pedro@palves.net>
3493
3494 PR exp/26602
3495 * valops.c (struct struct_field_searcher): New.
3496 (update_search_result): Rename to ...
3497 (struct_field_searcher::update_result): ... this. Simplify
3498 prototype. Record all found fields.
3499 (do_search_struct_field): Rename to ...
3500 (struct_field_searcher::search): ... this. Simplify prototype.
3501 Maintain stack of visited baseclass path. Call update_result for
3502 fields too. Keep searching fields in baseclasses instead of
3503 stopping at the first found field.
3504 (search_struct_field): Use struct_field_searcher. When looking
3505 for fields, report ambiguous access attempts.
3506
9370fd51
AB
35072020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
3508
3509 * frame.c (inside_main_func): Check full symbols as well as
3510 minimal symbols.
3511
59c8a30b
JB
35122020-10-09 Joel Brobecker <brobecker@adacore.com>
3513
3514 * ada-lang.c (advance_wild_match): Rewrite the function's
3515 description. Change the type of target0, t0 and t1 to char.
3516
7c184d33
TT
35172020-10-09 Tom Tromey <tromey@adacore.com>
3518
3519 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
3520
5c4258f4
TT
35212020-10-09 Tom Tromey <tromey@adacore.com>
3522
3523 * ada-lang.h (ada_encode): Return std::string.
3524 * ada-lang.c (ada_encode_1): Return std::string.
3525 (ada_encode): Likewise.
3526 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
3527 Update.
3528 * ada-exp.y (block_lookup, write_var_or_type): Update.
3529
3d87245c
HD
35302020-10-09 Hannes Domani <ssbssa@yahoo.de>
3531
3532 PR exp/26714
3533 * printcmd.c (print_formatted): Handle void results as
3534 unformatted prints.
3535
bbb826f5
AB
35362020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3537
3538 * arch/aarch32.c (aarch32_create_target_description): Release the
3539 target_desc_up as late as possible.
3540 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3541 * arch/amd64.c (amd64_create_target_description): Likewise.
3542 * arch/arc.c (arc_create_target_description): Return a
3543 target_desc_up, don't release it.
3544 * arch/arc.h (arc_create_target_description): Update declaration.
3545 (arc_lookup_target_description): Move target_desc_up into the
3546 cache, and return a borrowed pointer.
3547 * arch/arm.c (arm_create_target_description): Release the
3548 target_desc_up as late as possible.
3549 * arch/i386.c (i386_create_target_description): Likewise.
3550 * arch/riscv.h (riscv_create_target_description): Update
3551 declaration to match definition.
3552 * arch/tic6x.c (tic6x_create_target_description): Release the
3553 target_desc_up as late as possible.
3554
361cb219
AB
35552020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3556
3557 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
3558 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
3559
f5c4b229
JV
35602020-10-09 Jan Vrany <jan.vrany@labware.com>
3561
3562 * source.c (directory_command): Notify observers that "directories"
3563 parameter has changed.
3564
b2701685
TT
35652020-10-08 Tom Tromey <tom@tromey.com>
3566
3567 * cli/cli-cmds.c (print_disassembly): Style function name and
3568 addresses. Add _() wrappers.
3569
ada508b6
SV
35702020-10-08 Shahab Vahedi <shahab@synopsys.com>
3571
3572 * NEWS: Mention ARC support in GDBserver.
3573
51a948fd
AB
35742020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3575
3576 * arch/aarch32.c (aarch32_create_target_description): Release
3577 unique_ptr returned from allocate_target_description.
3578 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3579 * arch/amd64.c (amd64_create_target_description): Likewise.
3580 * arch/arc.c (arc_create_target_description): Likewise.
3581 * arch/arm.c (arm_create_target_description): Likewise.
3582 * arch/i386.c (i386_create_target_description): Likewise.
3583 * arch/riscv.c (riscv_create_target_description): Update return
3584 type. Handle allocate_target_description returning a unique_ptr.
3585 (riscv_lookup_target_description): Update to handle unique_ptr.
3586 * arch/tic6x.c (tic6x_create_target_description): Release
3587 unique_ptr returned from allocate_target_description.
3588 * features/microblaze-with-stack-protect.c: Regenerate.
3589 * features/microblaze.c: Regenerate.
3590 * features/mips-dsp-linux.c: Regenerate.
3591 * features/mips-linux.c: Regenerate.
3592 * features/mips64-dsp-linux.c: Regenerate.
3593 * features/mips64-linux.c: Regenerate.
3594 * features/nds32.c: Regenerate.
3595 * features/nios2.c: Regenerate.
3596 * features/or1k.c: Regenerate.
3597 * features/rs6000/powerpc-32.c: Regenerate.
3598 * features/rs6000/powerpc-32l.c: Regenerate.
3599 * features/rs6000/powerpc-403.c: Regenerate.
3600 * features/rs6000/powerpc-403gc.c: Regenerate.
3601 * features/rs6000/powerpc-405.c: Regenerate.
3602 * features/rs6000/powerpc-505.c: Regenerate.
3603 * features/rs6000/powerpc-601.c: Regenerate.
3604 * features/rs6000/powerpc-602.c: Regenerate.
3605 * features/rs6000/powerpc-603.c: Regenerate.
3606 * features/rs6000/powerpc-604.c: Regenerate.
3607 * features/rs6000/powerpc-64.c: Regenerate.
3608 * features/rs6000/powerpc-64l.c: Regenerate.
3609 * features/rs6000/powerpc-7400.c: Regenerate.
3610 * features/rs6000/powerpc-750.c: Regenerate.
3611 * features/rs6000/powerpc-860.c: Regenerate.
3612 * features/rs6000/powerpc-altivec32.c: Regenerate.
3613 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3614 * features/rs6000/powerpc-altivec64.c: Regenerate.
3615 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3616 * features/rs6000/powerpc-e500.c: Regenerate.
3617 * features/rs6000/powerpc-e500l.c: Regenerate.
3618 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3619 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3620 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3621 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3622 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3623 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3624 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3625 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3626 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3627 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3628 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3629 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3630 * features/rs6000/powerpc-vsx32.c: Regenerate.
3631 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3632 * features/rs6000/powerpc-vsx64.c: Regenerate.
3633 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3634 * features/rs6000/rs6000.c: Regenerate.
3635 * features/rx.c: Regenerate.
3636 * features/s390-gs-linux64.c: Regenerate.
3637 * features/s390-linux32.c: Regenerate.
3638 * features/s390-linux32v1.c: Regenerate.
3639 * features/s390-linux32v2.c: Regenerate.
3640 * features/s390-linux64.c: Regenerate.
3641 * features/s390-linux64v1.c: Regenerate.
3642 * features/s390-linux64v2.c: Regenerate.
3643 * features/s390-te-linux64.c: Regenerate.
3644 * features/s390-tevx-linux64.c: Regenerate.
3645 * features/s390-vx-linux64.c: Regenerate.
3646 * features/s390x-gs-linux64.c: Regenerate.
3647 * features/s390x-linux64.c: Regenerate.
3648 * features/s390x-linux64v1.c: Regenerate.
3649 * features/s390x-linux64v2.c: Regenerate.
3650 * features/s390x-te-linux64.c: Regenerate.
3651 * features/s390x-tevx-linux64.c: Regenerate.
3652 * features/s390x-vx-linux64.c: Regenerate.
3653 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3654 from allocate_target_description.
3655 * target-descriptions.c (allocate_target_description): Update
3656 return type.
3657 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3658 allocate_target_description.
3659
485c47e5
TT
36602020-10-07 Tom Tromey <tromey@adacore.com>
3661
3662 * unittests/search-memory-selftests.c: New file.
3663 * Makefile.in (SELFTESTS_SRCS): Add
3664 unittests/search-memory-selftests.c.
3665
3a135a91
TT
36662020-10-07 Tom Tromey <tromey@adacore.com>
3667
3668 PR gdb/16930:
3669 * findcmd.c (_initialize_mem_search): Mention that the range is
3670 inclusive.
3671
4a72de73
TT
36722020-10-07 Tom Tromey <tromey@adacore.com>
3673
3674 * target.h (simple_search_memory): Don't declare.
3675 * target.c (simple_search_memory): Move to gdbsupport.
3676 (default_search_memory): Update.
3677 * remote.c (remote_target::search_memory): Update.
3678
a038ffd8
SM
36792020-10-07 Simon Marchi <simon.marchi@efficios.com>
3680
3681 * Makefile.in (COMPILE): Add CXXFLAGS.
3682 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3683 (check-headers): Add CXXFLAGS.
3684
cc463201
AK
36852020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3686
3687 * arc-linux-tdep.h: New file.
3688 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3689 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3690 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3691 arc_linux_gregset, arc_linux_v2_regset,
3692 arc_linux_iterate_over_regset_sections,
3693 arc_linux_core_read_description): Implement.
3694 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3695 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3696 (arc_gdbarch_features_create): Add.
3697 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3698
e4bd363f
SV
36992020-10-07 Shahab Vahedi <shahab@synopsys.com>
3700
3701 * arch/arc.h: Rename "arc_gdbarch_features" to
3702 "arc_arch_features".
3703 * arc-tdep.h: Likewise.
3704 * arc-tdep.c: Likewise.
3705
b68bef99
TBA
37062020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3707
3708 * infcmd.c (attach_command): Remove the redundant call to
3709 `clear_proceed_status`.
3710
4641551a
KR
37112020-10-07 Kamil Rytarowski <n54@gmx.com>
3712
3713 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3714
91e5e8db
KR
37152020-10-07 Kamil Rytarowski <n54@gmx.com>
3716
3717 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3718 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3719 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3720
64c03bdb
SM
37212020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3722
3723 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3724 (_initialize_break_catch_sig): Don't allocate array.
3725
31a8f60f
AB
37262020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3727
3728 * symtab.c (find_pc_line): Return unmapped addresses when the
3729 requested address is also unmapped.
3730
9e6dbd8b
SM
37312020-10-05 Simon Marchi <simon.marchi@efficios.com>
3732
3733 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3734 tui/tui-out.h.
3735
a1d217e8
SM
37362020-10-05 Simon Marchi <simon.marchi@efficios.com>
3737
3738 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3739 type::is_vector instead of TYPE_VECTOR.
3740
7d144117
SM
37412020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3742
3743 * auto-load.c (auto_load_objfile_script_1): Don't use
3744 debugfile_holder as temporary variable when stripping drive
3745 letter.
3746
cd096ec8
HD
37472020-10-05 Hannes Domani <ssbssa@yahoo.de>
3748
3749 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3750 Add TYPE_CODE_COMPLEX.
3751 (amd64_windows_return_value): Fix types returned via XMM0.
3752
b58e7f72
AH
37532020-10-05 Alan Hayward <alan.hayward@arm.com>
3754
3755 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3756 AArch64/ARM maintainers.
3757
8d378f27
SM
37582020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3759
3760 * NEWS: Mention set/show debug event-loop.
3761
d5519913
TT
37622020-10-02 Tom Tromey <tromey@adacore.com>
3763
3764 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3765 REG_EXTENDED.
3766
18b67edc
SM
37672020-10-02 Simon Marchi <simon.marchi@efficios.com>
3768
3769 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3770 * procfs.c (procfs_inferior_created): Remove.
3771 (_initialize_procfs): Don't register procfs_inferior_created.
3772
6b01403b
SM
37732020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3774
3775 * async-event.c (invoke_async_signal_handlers): Add debug
3776 print.
3777 (check_async_event_handlers): Likewise.
3778 * event-top.c (show_debug_event_loop): New function.
3779 (_initialize_event_top): Register "set debug event-loop"
3780 setting.
3781
ba988419
SM
37822020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3783
3784 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3785 * debug.h: Remove.
3786 * infrun.c: Include gdbsupport/common-debug.h.
3787 * linux-nat.c: Likewise.
3788
db20ebdf
SM
37892020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3790
3791 * async-event.h (create_async_signal_handler): Add name
3792 parameter.
3793 (create_async_event_handler): Likewise.
3794 * async-event.c (struct async_signal_handler) <name>: New field.
3795 (struct async_event_handler) <name>: New field.
3796 (create_async_signal_handler): Assign name.
3797 (create_async_event_handler): Assign name.
3798 * event-top.c (async_init_signals): Pass name when creating
3799 handler.
3800 * infrun.c (_initialize_infrun): Likewise.
3801 * record-btrace.c (record_btrace_push_target): Likewise.
3802 * record-full.c (record_full_open): Likewise.
3803 * remote-notif.c (remote_notif_state_allocate): Likewise.
3804 * remote.c (remote_target::open_1): Likewise.
3805 * tui/tui-win.c (tui_initialize_win): Likewise.
3806
2554f6f5
SM
38072020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3808
3809 * async-event.c (initialize_async_signal_handlers): Pass name to
3810 add_file_handler
3811 * event-top.c (ui_register_input_event_handler): Likewise.
3812 * linux-nat.c (linux_nat_target::async): Likewise.
3813 * run-on-main-thread.c (_initialize_run_on_main_thread):
3814 Likewise
3815 * ser-base.c (reschedule): Likewise.
3816 (ser_base_async): Likewise.
3817 * tui/tui-io.c: Likewise.
3818 * top.h (struct ui) <num>: New field.
3819 * top.c (highest_ui_num): New variable.
3820 (ui::ui): Initialize num.
3821
a7aba266
SM
38222020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3823
3824 * observable.h <inferior_created>: Remove parameters. Update all
3825 listeners.
3826 * inferior.h (post_create_inferior): Remove target parameter.
3827 Update all callers.
3828
048fde1e 38292020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3830
3831 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3832 and DW_MACRO_undef_strx.
3833 (dwarf_decode_macros): Likewise
3834 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3835 which is the value of DW_AT_str_offsets_base.
3836 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3837 str_offsets_base.
3838
064280be
KR
38392020-10-01 Kamil Rytarowski <n54@gmx.com>
3840
3841 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3842
6ff33035
KR
38432020-10-01 Kamil Rytarowski <n54@gmx.com>
3844
3845 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3846 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3847
1eb6eb79
KR
38482020-10-01 Kamil Rytarowski <n54@gmx.com>
3849
3850 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3851
95eb9e54
TV
38522020-09-30 Tom de Vries <tdevries@suse.de>
3853
3854 PR symtab/26683
3855 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3856
cae21f8e
TT
38572020-09-30 Tom Tromey <tromey@adacore.com>
3858
3859 * dwarf2/read.c (handle_variant): Use constant_value.
3860
529908cb
TT
38612020-09-29 Tom Tromey <tom@tromey.com>
3862
3863 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3864 (read_file_scope, dwarf2_get_pc_bounds)
3865 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3866 (read_structure_type, handle_struct_member_die)
3867 (read_enumeration_type, read_array_type, read_set_type)
3868 (read_tag_pointer_type, read_tag_reference_type)
3869 (read_subroutine_type, read_base_type, read_subrange_type)
3870 (read_full_die_1, partial_die_info::read)
3871 (partial_die_info::read, by, new_symbol)
3872 (dwarf2_const_value_data, dwarf2_const_value_attr)
3873 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3874 (prepare_one_comp_unit): Update.
3875 * dwarf2/attribute.h (DW_UNSND): Remove.
3876
c45bc3f8
TT
38772020-09-29 Tom Tromey <tom@tromey.com>
3878
3879 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3880 (read_subroutine_type, partial_die_info::read)
3881 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3882 (dwarf2_add_member_fn): Update.
3883 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3884 * dwarf2/attribute.c (attribute::as_boolean): New method.
3885
23dca5c3
TT
38862020-09-29 Tom Tromey <tom@tromey.com>
3887
3888 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3889 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3890 method.
3891 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3892
52c14d11
TT
38932020-09-29 Tom Tromey <tom@tromey.com>
3894
3895 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3896 the attribute's form.
3897
e8e5c158
TT
38982020-09-29 Tom Tromey <tom@tromey.com>
3899
3900 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3901 (dwarf2_add_member_fn): Update.
3902 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3903 * dwarf2/attribute.c (attribute::defaulted): New method, from
3904 is_valid_DW_AT_defaulted.
3905
d4df075e
TT
39062020-09-29 Tom Tromey <tom@tromey.com>
3907
3908 * dwarf2/read.c (dw2_get_file_names_reader)
3909 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3910 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3911 (dwarf2_symbol_mark_computed): Use as_unsigned.
3912 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3913 method.
3914 <form_is_section_offset>: Update comment.
3915
bf23a268
TT
39162020-09-29 Tom Tromey <tom@tromey.com>
3917
3918 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3919 dwarf2_default_access_attribute. Look up attribute.
3920 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3921 Update.
3922
7a5f294d
TT
39232020-09-29 Tom Tromey <tom@tromey.com>
3924
3925 * dwarf2/read.c (skip_one_die): Update.
3926 (read_full_die_1): Change how reprocessing is done.
3927 (partial_die_info::read): Update.
3928 (read_attribute_value): Remove need_reprocess parameter.
3929 (read_attribute): Likewise.
3930 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3931 New method.
3932
36d378cf
TT
39332020-09-29 Tom Tromey <tom@tromey.com>
3934
3935 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3936 (dwarf2_const_value_attr, dump_die_shallow)
3937 (dwarf2_fetch_constant_bytes): Update.
3938 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3939 comment.
3940 <set_address>: New method.
3941 (DW_ADDR): Remove.
3942 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3943 (attribute::as_string, attribute::as_address): Add assert.
3944
fe56917a
TT
39452020-09-29 Tom Tromey <tom@tromey.com>
3946
3947 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3948 (read_attribute_reprocess, read_attribute_value): Update.
3949 (read_attribute): Clear requires_reprocessing.
3950 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3951 form_requires_reprocessing>: New methods.
3952 <string_init>: Clear requires_reprocessing.
3953 <set_unsigned_reprocess>: New method.
3954 <name>: Shrink by one bit.
3955 <requires_reprocessing>: New member.
3956 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3957 method.
3958
414ad644
TT
39592020-09-29 Tom Tromey <tom@tromey.com>
3960
3961 * dwarf2/read.c (read_attribute_value): Update.
3962 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3963 set_unsigned>: New methods.
3964 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3965
1bc397c5
TT
39662020-09-29 Tom Tromey <tom@tromey.com>
3967
3968 * dwarf2/read.c (get_alignment, read_array_order)
3969 (read_attribute_value, dwarf2_const_value_attr)
3970 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3971 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3972 New methods.
3973 (DW_SND): Remove.
3974
630ed6b9
TT
39752020-09-29 Tom Tromey <tom@tromey.com>
3976
3977 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3978 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3979 Update.
3980 * dwarf2/attribute.h (struct attribute) <as_signature,
3981 set_signature>: New methods.
3982 (DW_SIGNATURE): Remove.
3983
9d2246fc
TT
39842020-09-29 Tom Tromey <tom@tromey.com>
3985
3986 * dwarf2/read.c (read_call_site_scope)
3987 (handle_data_member_location, dwarf2_add_member_fn)
3988 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3989 (partial_die_info::read, read_attribute_value)
3990 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3991 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3992 (dwarf2_symbol_mark_computed): Update.
3993 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3994 methods.
3995 (DW_BLOCK): Remove.
3996 * dwarf2/attribute.c (attribute::form_is_block): Add
3997 DW_FORM_data16.
3998
c6481205
TT
39992020-09-29 Tom Tromey <tom@tromey.com>
4000
4001 * dwarf2/read.c (read_cutu_die_from_dwo)
4002 (read_attribute_reprocess, read_attribute_value, read_attribute)
4003 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
4004 (dwarf2_fetch_constant_bytes): Update.
4005 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
4006 <set_string_noncanonical, set_string_canonical>: New methods.
4007 <string_is_canonical>: Update comment.
4008 <canonical_string_p>: Add assert.
4009 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
4010 * dwarf2/attribute.c (attribute::form_is_string): New method.
4011 (attribute::string): Use it.
4012
3b64bf15
TT
40132020-09-29 Tom Tromey <tom@tromey.com>
4014
4015 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
4016 (dump_die_shallow): Use canonical_string_p.
4017 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
4018 method.
4019
2c830f54
TT
40202020-09-29 Tom Tromey <tom@tromey.com>
4021
4022 * dwarf2/read.c (partial_die_info::read)
4023 (dwarf2_const_value_attr, anonymous_struct_prefix, )
4024 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
4025 attribute::as_string.
4026
6c412691
TT
40272020-09-29 Tom Tromey <tom@tromey.com>
4028
4029 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
4030 DW_ADDR.
4031 (attribute::string): Don't use DW_STRING.
4032 (attribute::get_ref_die_offset): Don't use DW_UNSND.
4033 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
4034
95f982e5
TT
40352020-09-29 Tom Tromey <tom@tromey.com>
4036
4037 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
4038 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
4039 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
4040 * dwarf2/attribute.h (struct attribute): Rename methods.
4041 * dwarf2/attribute.c (attribute::as_address): Rename from
4042 value_as_address.
4043 (attribute::as_string): Rename from value_as_string.
4044
f800b00e
TT
40452020-09-29 Tom Tromey <tom@tromey.com>
4046
4047 * dwarf2/read.c (partial_die_info::read) <case
4048 DW_AT_linkage_name>: Use value_as_string.
4049 (dwarf2_string_attr): Use value_as_string.
4050 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4051 method.
4052 * dwarf2/attribute.c (attribute::value_as_string): New method.
4053
de38d64a
PA
40542020-09-29 Pedro Alves <pedro@palves.net>
4055
4056 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
4057 defined before using '#pragma GCC diagnostic' instead of checking
4058 __clang__.
4059
9aed480c
TT
40602020-09-28 Tom Tromey <tom@tromey.com>
4061
4062 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
4063 (handle_signal_stop): Update.
4064 * procfs.c (procfs_target::insert_watchpoint): Update.
4065 * target.h (target_have_steppable_watchpoint): Now a function.
4066
8a3ecb79
TT
40672020-09-28 Tom Tromey <tom@tromey.com>
4068
4069 * infrun.c (set_schedlock_func): Update.
4070 * target.h (target_can_lock_scheduler): Now a function.
4071
55f6301a
TT
40722020-09-28 Tom Tromey <tom@tromey.com>
4073
4074 * inferior.h (class inferior) <has_execution>: Update.
4075 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
4076 * valops.c (find_function_in_inferior)
4077 (value_allocate_space_in_inferior): Update.
4078 * top.c (kill_or_detach): Update.
4079 * target.c (target_preopen, set_target_permissions): Update.
4080 (target_has_execution_current): Remove.
4081 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
4082 Update.
4083 * solib.c (update_solib_list, reload_shared_libraries): Update.
4084 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
4085 * solib-dsbt.c (enable_break): Update.
4086 * score-tdep.c (score7_fetch_inst): Update.
4087 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
4088 Update.
4089 * remote.c (remote_target::start_remote)
4090 (remote_target::remote_check_symbols, remote_target::open_1)
4091 (remote_target::remote_detach_1, remote_target::verify_memory)
4092 (remote_target::xfer_partial, remote_target::read_description)
4093 (remote_target::get_min_fast_tracepoint_insn_len): Update.
4094 * record-full.c (record_full_open_1): Update.
4095 * record-btrace.c (record_btrace_target_open): Update.
4096 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4097 (value_nsstring): Update.
4098 * linux-thread-db.c (add_thread_db_info)
4099 (thread_db_find_new_threads_silently, check_thread_db_callback)
4100 (try_thread_db_load_1, record_thread): Update.
4101 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
4102 Update.
4103 * linux-fork.c (checkpoint_command): Update.
4104 * infrun.c (set_non_stop, set_observer_mode)
4105 (check_multi_target_resumption, for_each_just_stopped_thread)
4106 (maybe_remove_breakpoints, normal_stop)
4107 (class infcall_suspend_state): Update.
4108 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
4109 (info_program_command, attach_command): Update.
4110 * infcall.c (call_function_by_hand_dummy): Update.
4111 * inf-loop.c (inferior_event_handler): Update.
4112 * gcore.c (gcore_command, derive_heap_segment): Update.
4113 * exec.c (exec_file_command): Update.
4114 * eval.c (evaluate_subexp): Update.
4115 * compile/compile.c (compile_to_object): Update.
4116 * cli/cli-dump.c (restore_command): Update.
4117 * breakpoint.c (update_watchpoint)
4118 (update_inserted_breakpoint_locations)
4119 (insert_breakpoint_locations, get_bpstat_thread): Update.
4120 * target.h (target_has_execution): Remove macro.
4121 (target_has_execution_current): Don't declare.
4122 (target_has_execution): Rename from target_has_execution_1. Add
4123 argument default.
4124
05374cfd
TT
41252020-09-28 Tom Tromey <tom@tromey.com>
4126
4127 * mi/mi-main.c (exec_reverse_continue)
4128 (mi_cmd_list_target_features): Update.
4129 * infrun.c (set_exec_direction_func): Update.
4130 * target.c (default_execution_direction): Update.
4131 * reverse.c (exec_reverse_once): Update.
4132 * target.h (target_can_execute_reverse): Now a function.
4133
9dccd06e
TT
41342020-09-28 Tom Tromey <tom@tromey.com>
4135
4136 * tui/tui-regs.c (tui_get_register)
4137 (tui_data_window::show_registers): Update.
4138 * thread.c (scoped_restore_current_thread::restore)
4139 (scoped_restore_current_thread::scoped_restore_current_thread):
4140 Update.
4141 * regcache-dump.c (regcache_print): Update.
4142 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
4143 Update.
4144 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
4145 * mep-tdep.c (current_me_module, current_options): Update.
4146 * linux-thread-db.c (thread_db_load): Update.
4147 * infcmd.c (registers_info, info_vector_command)
4148 (info_float_command): Update.
4149 * ia64-tdep.c (ia64_frame_prev_register)
4150 (ia64_sigtramp_frame_prev_register): Update.
4151 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
4152 * gcore.c (derive_stack_segment): Update.
4153 * frame.c (get_current_frame, has_stack_frames): Update.
4154 * findvar.c (language_defn::read_var_value): Update.
4155 * arm-tdep.c (arm_pc_is_thumb): Update.
4156 * target.c (target_has_registers): Rename from
4157 target_has_registers_1.
4158 * target.h (target_has_registers): Remove macro.
4159 (target_has_registers): Rename from target_has_registers_1.
4160
841de120
TT
41612020-09-28 Tom Tromey <tom@tromey.com>
4162
4163 * windows-tdep.c (tlb_make_value): Update.
4164 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4165 * thread.c (scoped_restore_current_thread::restore)
4166 (scoped_restore_current_thread::scoped_restore_current_thread)
4167 (thread_command): Update.
4168 * stack.c (backtrace_command_1, frame_apply_level_command)
4169 (frame_apply_all_command, frame_apply_command): Update.
4170 * infrun.c (siginfo_make_value, restore_infcall_control_state):
4171 Update.
4172 * gcore.c (derive_stack_segment): Update.
4173 * frame.c (get_current_frame, has_stack_frames): Update.
4174 * auxv.c (info_auxv_command): Update.
4175 * ada-tasks.c (ada_build_task_list): Update.
4176 * target.c (target_has_stack): Rename from target_has_stack_1.
4177 * target.h (target_has_stack): Remove macro.
4178 (target_has_stack): Rename from target_has_stack_1.
4179
a739972c
TT
41802020-09-28 Tom Tromey <tom@tromey.com>
4181
4182 * target.c (target_has_memory): Rename from target_has_memory_1.
4183 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4184 * thread.c (scoped_restore_current_thread::restore)
4185 (scoped_restore_current_thread::scoped_restore_current_thread):
4186 Update.
4187 * frame.c (get_current_frame, has_stack_frames): Update.
4188 * target.h (target_has_memory): Remove macro.
4189 (target_has_memory): Rename from target_has_memory_1.
4190
5b8a4776
TT
41912020-09-28 Tom Tromey <tom@tromey.com>
4192
4193 * target.c (target_has_all_memory_1): Remove.
4194 * target.h (target_has_all_memory): Remove define.
4195 (target_has_all_memory_1): Don't declare.
4196
bd356ec6
SM
41972020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
4198
4199 * ser-base.c: Adjust comments formatting.
4200
2c72d5e5
TT
42012020-09-27 Tom Tromey <tom@tromey.com>
4202
4203 PR tui/25342:
4204 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
4205
35a98237
TT
42062020-09-27 Tom Tromey <tom@tromey.com>
4207
4208 PR tui/25342:
4209 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
4210
9e820dec
TT
42112020-09-27 Tom Tromey <tom@tromey.com>
4212
4213 * unittests/tui-selftests.c: Update.
4214 * tui/tui-winsource.h (struct tui_source_window_base)
4215 <extra_margin, show_line_number, refresh_pad>: New methods.
4216 <m_max_length, m_pad>: New members.
4217 (tui_copy_source_line): Update.
4218 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
4219 first_col, line_width, ndigits parameters. Add length.
4220 (tui_source_window_base::show_source_line): Write to pad. Line
4221 number now 0-based.
4222 (tui_source_window_base::refresh_pad): New method.
4223 (tui_source_window_base::show_source_content): Write to pad. Call
4224 refresh_pad.
4225 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
4226 not refill.
4227 (tui_source_window_base::update_exec_info): Call
4228 show_line_number.
4229 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
4230 method.
4231 <m_digits>: New member.
4232 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
4233 and m_max_length.
4234 (tui_source_window::show_line_number): New method.
4235 * tui/tui-io.h (tui_puts): Fix comment.
4236 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
4237 m_max_length.
4238
c15c15c8
TT
42392020-09-27 Tom Tromey <tom@tromey.com>
4240
4241 * tui/tui-winsource.c
4242 (tui_source_window_base::set_is_exec_point_at): Don't call
4243 show_source_line.
4244
149830c1
TT
42452020-09-27 Tom Tromey <tom@tromey.com>
4246
4247 * python/py-tui.c (class tui_py_window) <refresh_window>: New
4248 method.
4249 <erase>: Update.
4250 <cursor_x, cursor_y>: Remove.
4251 <m_inner_window>: New member.
4252 (tui_py_window::rerender): Create inner window.
4253 (tui_py_window::output): Write to inner window.
4254
8f9929bb
GR
42552020-09-26 Gareth Rees <grees@undo.io> (tiny change)
4256
4257 PR python/26586
4258 * cli/cli-script.c (execute_control_commands): don't set
4259 instream to nullptr here as this breaks the from_tty argument
4260 to gdb.execute in Python.
4261 (execute_user_command): set instream to nullptr here instead.
4262
956bdb59
SM
42632020-09-25 Simon Marchi <simon.marchi@efficios.com>
4264
4265 * infrun.h (infrun_debug_printf): Fix formatting.
4266 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
4267
3b93626b
SJ
42682020-09-25 Saagar Jha <saagar@saagarjha.com>
4269
4270 * compile/compile-object-load.h (struct munmap_list): Add
4271 explicitly-defined move constructor.
4272
b551a89f
TT
42732020-09-24 Tom Tromey <tromey@adacore.com>
4274
4275 PR tui/26638:
4276 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
4277 method.
4278 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
4279 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
4280 (tui_prev_win): Rewrite.
4281
99bb393f
HD
42822020-09-23 Hannes Domani <ssbssa@yahoo.de>
4283
4284 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
4285 in WOW64 processes as SIGINT.
4286 * nat/windows-nat.h: Make wow64_process a shared variable.
4287 * windows-nat.c: Remove static wow64_process variable.
4288
20a5fcbd
TT
42892020-09-23 Tom Tromey <tom@tromey.com>
4290
4291 PR symtab/25470:
4292 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
4293 offset and bit size.
4294 * printcmd.c (print_scalar_formatted): Handle zero-length
4295 integer.
4296 (print_scalar_formatted): Use bit_size_differs_p.
4297 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
4298 constant.
4299 (union type_specific): <int_stuff>: New member.
4300 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
4301 methods.
4302 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
4303 TYPE_SPECIFIC_FIELD.
4304 (recursive_dump_type, copy_type_recursive): Update.
4305 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
4306 DW_AT_data_bit_offset.
4307
bac51ab7
TT
43082020-09-23 Tom Tromey <tom@tromey.com>
4309
4310 * utils.h (class gdb_argv): Add move operators.
4311 <append>: New methods.
4312 * compile/compile.c (build_argc_argv): Remove.
4313 (compile_args_argc): Remove.
4314 (compile_args_argv): Change type.
4315 (set_compile_args): Simplify.
4316 (append_args): Remove.
4317 (filter_args): Remove argcp parameter.
4318 (get_args): Return gdb_argv. Simplify.
4319 (compile_to_object): Update.
4320
92677124
TT
43212020-09-23 Tom Tromey <tom@tromey.com>
4322
4323 * compile/compile-object-run.c (do_module_cleanup)
4324 <~do_module_cleanup> :Remove.
4325 (do_module_cleanup): Update.
4326 * compile/compile-object-load.h (struct munmap_list): Add move
4327 assignment operator.
4328 <source_file>: Now a std::string.
4329 <munmap_list>: Rename. No longer a pointer.
4330 * compile/compile-object-load.c (struct setup_sections_data): Add
4331 constructor.
4332 <setup_one_section>: Declare.
4333 <munmap_list>: Move earlier.
4334 <m_bfd>: New member.
4335 <m_last_size, m_last_section_first, m_last_prot,
4336 m_last_max_alignment>: Rename, add initializers where needed.
4337 (setup_sections_data::setup_one_section): Rename from
4338 setup_sections. Update.
4339 (compile_object_load): Update. Don't use bfd_map_over_sections.
4340
e616f60a
TT
43412020-09-23 Tom Tromey <tom@tromey.com>
4342
4343 * compile/compile-object-run.c (struct do_module_cleanup): Add
4344 parameters to constructor. Update destructor.
4345 <source_file, scope, scope_data, out_value_type, out_value_addr,
4346 munmap_list_head, objfile_name_string>: Remove.
4347 <module>: New member.
4348 (do_module_cleanup): Update.
4349 (compile_object_run): Update.
4350
e947a848
TT
43512020-09-23 Tom Tromey <tom@tromey.com>
4352
4353 * compile/compile.c (eval_compile_command): Update.
4354 * compile/compile-object-run.h (compile_object_run): Take a
4355 compile_module_up.
4356 * compile/compile-object-run.c (compile_object_run): Take a
4357 compile_module_up.
4358 * compile/compile-object-load.h (struct compile_module): Add
4359 constructor, destructor.
4360 (compile_module_up): New typedef.
4361 (compile_object_load): Return compile_object_up.
4362 * compile/compile-object-load.c (compile_object_load): Return
4363 compile_module_up.
4364
0dbf6ee6
TT
43652020-09-23 Tom Tromey <tom@tromey.com>
4366
4367 * compile/compile-object-run.c (struct do_module_cleanup): Add
4368 constructor, destructor.
4369 <objfile_name_string>: Don't use struct hack.
4370 (do_module_cleanup): Use delete.
4371 (compile_object_run): Use new.
4372
ebe824f5
TT
43732020-09-23 Tom Tromey <tom@tromey.com>
4374
4375 * compile/compile-cplus-types.c
4376 (compile_cplus_convert_struct_or_union): Use std::vector.
4377 (compile_cplus_convert_func): Likewise.
4378 * compile/compile-c-types.c (convert_func): Use std::vector.
4379
5dd918d9
TT
43802020-09-21 Tom Tromey <tromey@adacore.com>
4381
4382 * sparc-tdep.c (sparc32_skip_prologue): Use
4383 skip_prologue_using_sal.
4384
5486c517
TT
43852020-09-19 Tom Tromey <tom@tromey.com>
4386
4387 * symfile.c (add_section_size_callback): Remove.
4388 (load_one_section): Rename from load_section_callback. Change
4389 parameters.
4390 (generic_load): Use foreach.
4391
8a6bb1d1
TT
43922020-09-19 Tom Tromey <tom@tromey.com>
4393
4394 * exec.c (add_to_section_table): Remove.
4395 (build_section_table): Use foreach.
4396
08f93a1a
TT
43972020-09-19 Tom Tromey <tom@tromey.com>
4398
4399 * elfread.c (elf_locate_sections): Change parameters.
4400 (elf_symfile_read): Use foreach.
4401
03cd72b8
TT
44022020-09-19 Tom Tromey <tom@tromey.com>
4403
4404 * cli/cli-dump.c (struct callback_data): Remove.
4405 (restore_one_section): Rename from restore_section_callback.
4406 Change parameters.
4407 (restore_binary_file): Change parameters.
4408 (restore_command): Use foreach.
4409
f4f2b85f
TT
44102020-09-19 Tom Tromey <tom@tromey.com>
4411
4412 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
4413 (gcore_copy_callback): Likewise.
4414 (gcore_memory_sections): Use foreach.
4415
b35c1d1c
TT
44162020-09-19 Tom Tromey <tom@tromey.com>
4417
4418 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
4419 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
4420 parameters.
4421 (generic_elf_osabi_sniffer): Use foreach.
4422 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
4423 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
4424
5bb6e9dd
TT
44252020-09-19 Tom Tromey <tom@tromey.com>
4426
4427 * dwarf2/read.c (locate_dwz_sections): Change parameters.
4428 (dwarf2_get_dwz_file): Use foreach.
4429 (dwarf2_locate_dwo_sections): Change parameters.
4430 (open_and_init_dwo_file): Use foreach.
4431 (dwarf2_locate_common_dwp_sections): Change parameters.
4432 (open_and_init_dwp_file): Use foreach.
4433
ad7277da
TT
44342020-09-19 Tom Tromey <tom@tromey.com>
4435
4436 * symfile.h: (find_lowest_section): Don't declare.
4437 * symfile.c (find_lowest_section): Now static. Change
4438 parameters.
4439 (struct place_section_arg): Remove.
4440 (place_section): Change parameters.
4441 (addr_info_make_relative): Use foreach.
4442 (symfile_dummy_outputs): Remove.
4443 (default_symfile_relocate): Use foreach.
4444
cb814f2e
TT
44452020-09-19 Tom Tromey <tom@tromey.com>
4446
4447 * objfiles.c (add_to_objfile_sections): Rename from
4448 add_to_objfile_sections_full.
4449 (add_to_objfile_sections): Remove.
4450 (build_objfile_section_table): Use foreach.
4451
3cabfd26
TT
44522020-09-19 Tom Tromey <tom@tromey.com>
4453
4454 * stap-probe.c (get_stap_base_address_1): Remove.
4455 (get_stap_base_address): Use foreach.
4456
1ce51eb5
TT
44572020-09-19 Tom Tromey <tom@tromey.com>
4458
4459 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
4460 parameters.
4461 (gdb_bfd_close_or_warn): Use foreach.
4462
a190fabb
TT
44632020-09-19 Tom Tromey <tom@tromey.com>
4464
4465 * corelow.c (add_to_thread_list): Change parameters.
4466 (core_target_open): Use foreach.
4467
cafb0d81
TT
44682020-09-19 Tom Tromey <tom@tromey.com>
4469
4470 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
4471 existing function.
4472
c8d5abea
AB
44732020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4474
4475 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
4476 for arrays.
4477
6d816919
AB
44782020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4479
4480 * eval.c: Remove 'f-lang.h' include.
4481 (value_f90_subarray): Moved to f-lang.c.
4482 (eval_call): Renamed to...
4483 (evaluate_subexp_do_call): ...this, is no longer static, header
4484 comment moved into header file.
4485 (evaluate_funcall): Update call to eval_call.
4486 (skip_undetermined_arglist): Moved to f-lang.c.
4487 (fortran_value_subarray): Likewise.
4488 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4489 moved to evaluate_subexp_f.
4490 (calc_f77_array_dims): Moved to f-lang.c
4491 * expprint.c (print_subexp_funcall): New function.
4492 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4493 moved to print_subexp_f, OP_FUNCALL uses new function.
4494 (dump_subexp_body_funcall): New function.
4495 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
4496 moved to dump_subexp_f, OP_FUNCALL uses new function.
4497 * expression.h (evaluate_subexp_do_call): Declare.
4498 * f-lang.c (value_f90_subarray): Moved from eval.c.
4499 (skip_undetermined_arglist): Likewise.
4500 (calc_f77_array_dims): Likewise.
4501 (fortran_value_subarray): Likewise.
4502 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
4503 (operator_length_f): Likewise.
4504 (print_subexp_f): Likewise.
4505 (dump_subexp_body_f): Likewise.
4506 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
4507 declaration of this operation to here.
4508 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
4509 support moved to operator_length_f.
4510 * parser-defs.h (dump_subexp_body_funcall): Declare.
4511 (print_subexp_funcall): Declare.
4512 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
4513 fortran-operator.def.
4514
8c37706a
AB
45152020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4516
4517 * eval.c (fortran_value_subarray): New function, content is taken
4518 from...
4519 (evaluate_subexp_standard): ...here, in two places. Now arrays
4520 and strings both call the new function.
4521 (calc_f77_array_dims): Add header comment, handle strings.
4522
14f9473c
VC
45232020-09-18 Victor Collod <vcollod@nvidia.com>
4524
4525 PR gdb/26635
4526 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
4527 (i386_analyze_prologue): Call i386_skip_endbr.
4528
b60cea74
TT
45292020-09-18 Tom Tromey <tromey@adacore.com>
4530
4531 * windows-nat.c (struct windows_nat_target) <wait>: Update.
4532 (windows_nat_target::wait): Update.
4533 * target/wait.h (enum target_wait_flag): New. Use
4534 DEF_ENUM_FLAGS_TYPE.
4535 * target/target.h (target_wait): Change type of options.
4536 * target.h (target_options_to_string, default_target_wait):
4537 Update.
4538 (struct target_ops) <wait>: Change type of options.
4539 * target.c (target_wait, default_target_wait, do_option): Change
4540 type of "options".
4541 (target_options_to_string): Likewise.
4542 * target-delegates.c: Rebuild.
4543 * target-debug.h (target_debug_print_target_wait_flags): Rename
4544 from target_debug_print_options.
4545 * sol-thread.c (class sol_thread_target) <wait>: Update.
4546 (sol_thread_target::wait): Update.
4547 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
4548 (rs6000_nat_target::wait): Update.
4549 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
4550 Update.
4551 (remote_target::wait_ns, remote_target::wait_as): Change type of
4552 "options".
4553 (remote_target::wait): Update.
4554 * remote-sim.c (struct gdbsim_target) <wait>: Update.
4555 (gdbsim_target::wait): Update.
4556 * record-full.c (class record_full_base_target) <wait>: Update.
4557 (record_full_wait_1): Change type of "options".
4558 (record_full_base_target::wait): Update.
4559 * record-btrace.c (class record_btrace_target) <wait>: Update.
4560 (record_btrace_target::wait): Update.
4561 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
4562 Update.
4563 (ravenscar_thread_target::wait): Update.
4564 * procfs.c (class procfs_target) <wait>: Update.
4565 (procfs_target::wait): Update.
4566 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4567 * obsd-nat.c (obsd_nat_target::wait): Update.
4568 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4569 (nto_procfs_target::wait): Update.
4570 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4571 * nbsd-nat.c (nbsd_wait): Change type of "options".
4572 (nbsd_nat_target::wait): Update.
4573 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4574 (thread_db_target::wait): Update.
4575 * linux-nat.h (class linux_nat_target) <wait>: Update.
4576 * linux-nat.c (linux_nat_target::wait): Update.
4577 (linux_nat_wait_1): Update.
4578 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4579 "options".
4580 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4581 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4582 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4583 (go32_nat_target::wait): Update.
4584 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4585 * gnu-nat.c (gnu_nat_target::wait): Update.
4586 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4587 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4588 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4589 * darwin-nat.c (darwin_nat_target::wait): Update.
4590 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4591 (bsd_uthread_target::wait): Update.
4592 * aix-thread.c (class aix_thread_target) <wait>: Update.
4593 (aix_thread_target::wait): Update.
4594
0295dde6
AB
45952020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4596
4597 * compile/compile-object-run.c (create_copied_type_recursive): New
4598 function.
4599 (compile_object_run): Use new function.
4600
d3483b43
JT
46012020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4602
4603 * NEWS: Mention x86_64 Cygwin core file support.
4604
e7d612ad
JT
46052020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4606
4607 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4608 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4609
aff9d387
JT
46102020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4611
62a5151b
JT
4612 * windows-tdep.h: Add prototypes.
4613 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4614 (i386_windows_core_pid_to_str): Move and rename ...
4615 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4616 (windows_core_pid_to_str): ... and here.
4617 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4618
46192020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
4620 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4621 (amd64_windows_init_abi_common): ... and register.
4622
7d155da3
JT
46232020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4624
4625 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4626 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4627
e8ef12b9
PA
46282020-09-18 Pedro Alves <pedro@palves.net>
4629
4630 PR gdb/26631
4631 * thread.c (thread_find_command): Switch inferior before calling
4632 target methods.
4633
c1e1314d
TT
46342020-09-17 Tom Tromey <tromey@adacore.com>
4635
4636 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4637 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4638 (tdesc_arch_data_up): New typedef.
4639 (tdesc_use_registers, tdesc_data_alloc): Update.
4640 (tdesc_data_cleanup): Don't declare.
4641 * target-descriptions.c (tdesc_data_alloc): Return a
4642 tdesc_arch_data_up.
4643 (tdesc_arch_data_deleter::operator()): Rename from
4644 tdesc_data_cleanup. Change argument type.
4645 (tdesc_use_registers): Change early_data to an rvalue reference.
4646 (tdesc_use_registers): Don't use delete.
4647 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4648 * s390-tdep.c (s390_gdbarch_init): Update.
4649 * rx-tdep.c (rx_gdbarch_init): Update.
4650 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4651 * riscv-tdep.c (riscv_gdbarch_init): Update.
4652 * or1k-tdep.c (or1k_gdbarch_init): Update.
4653 * nios2-tdep.c (nios2_gdbarch_init): Update.
4654 * nds32-tdep.c (nds32_gdbarch_init): Update.
4655 * mips-tdep.c (mips_gdbarch_init): Update.
4656 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4657 * m68k-tdep.c (m68k_gdbarch_init): Update.
4658 * i386-tdep.c (i386_gdbarch_init): Update.
4659 * arm-tdep.c (arm_gdbarch_init): Update.
4660 * arc-tdep.c (arc_tdesc_init): Update.
4661 (arc_gdbarch_init): Update.
4662 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4663
0363df3d
HD
46642020-09-17 Hannes Domani <ssbssa@yahoo.de>
4665
4666 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4667 for WOW64 processes.
4668
280a9412
TT
46692020-09-17 Tom Tromey <tom@tromey.com>
4670
4671 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4672
6108fd18
TT
46732020-09-17 Tom Tromey <tom@tromey.com>
4674
4675 * value.c (preserve_values): Update.
4676 * python/py-type.c (save_objfile_types): Update.
4677 * guile/scm-type.c (save_objfile_types): Update.
4678 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4679 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4680 * compile/compile-object-run.c (compile_object_run): Update.
4681
fa9b1164
TT
46822020-09-17 Tom Tromey <tom@tromey.com>
4683
4684 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4685 Remove.
4686 <m_table>: Now htab_up.
4687 * typeprint.c (typedef_hash_table::recursively_update)
4688 (typedef_hash_table::add_template_parameters)
4689 (typedef_hash_table::typedef_hash_table): Update.
4690 (typedef_hash_table::~typedef_hash_table): Remove.
4691 (typedef_hash_table::typedef_hash_table)
4692 (typedef_hash_table::find_global_typedef)
4693 (typedef_hash_table::find_typedef): Update.
4694
eb53f105
TT
46952020-09-17 Tom Tromey <tom@tromey.com>
4696
4697 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4698
7a8a5d47
TT
46992020-09-17 Tom Tromey <tom@tromey.com>
4700
4701 * linespec.c (class decode_compound_collector)
4702 <~decode_compound_collector>: Remove.
4703 <m_unique_syms>: Now htab_up.
4704 (decode_compound_collector::operator ()): Update.
4705 (class symtab_collector) <~symtab_collector>: Remove.
4706 <m_symtab_table>: Now htab_up.
4707 (symtab_collector::operator ()): Update.
4708
99032cfc
TT
47092020-09-17 Tom Tromey <tom@tromey.com>
4710
4711 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4712 (filename_seen_cache::clear): Update.
4713 (~filename_seen_cache): Remove.
4714 (filename_seen_cache::seen): Update.
4715 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4716 htab_up.
4717 <~filename_seen_cache>: Remove.
4718 <traverse>: Update.
4719
32580f6d
TT
47202020-09-17 Tom Tromey <tom@tromey.com>
4721
4722 * completer.c (completion_tracker::discard_completions)
4723 (completion_tracker::~completion_tracker)
4724 (completion_tracker::maybe_add_completion)
4725 (completion_tracker::remove_completion)
4726 (completion_tracker::recompute_lowest_common_denominator)
4727 (completion_tracker::build_completion_result): Update.
4728 * completer.h (class completion_tracker) <have_completions>:
4729 Update.
4730 <m_entries_hash>: Now htab_up.
4731
c1fb9836
TT
47322020-09-17 Tom Tromey <tom@tromey.com>
4733
4734 * breakpoint.c (ambiguous_names_p): Use htab_up.
4735
88f07206
TT
47362020-09-17 Tom Tromey <tom@tromey.com>
4737
4738 * auto-load.c (struct auto_load_pspace_info)
4739 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4740 <loaded_script_files, loaded_script_texts>: Change type to
4741 htab_up.
4742 (~auto_load_pspace_info) Remove.
4743 (init_loaded_scripts_info, maybe_add_script_file)
4744 (maybe_add_script_text, auto_load_info_scripts): Update.
4745
9519b2ee
TT
47462020-09-17 Tom Tromey <tromey@adacore.com>
4747
4748 * c-exp.y (name_obstack): Now static.
4749
d2cd4113
CC
47502020-09-17 Chungyi Chi <demonic@csie.io>
4751
4752 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4753
b650a282
SM
47542020-09-16 Simon Marchi <simon.marchi@efficios.com>
4755
4756 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4757 (add_solib_catchpoint): Likewise.
4758 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4759 to bool.
4760 (add_solib_catchpoint): Change int parameter/variable to bool.
4761 (catch_load_or_unload): Likewise.
4762 (init_catchpoint): Likewise.
4763 (create_fork_vfork_event_catchpoint): Likewise.
4764 (catch_fork_command_1): Likewise.
4765 (catch_exec_command_1): Likewise.
4766
4d0bcfcf
SM
47672020-09-16 Simon Marchi <simon.marchi@efficios.com>
4768
4769 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4770 Change instance_flags to m_instance_flags.
4771
fe830662
TT
47722020-09-16 Tom Tromey <tromey@adacore.com>
4773
4774 PR gdb/26598:
4775 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4776
fe5ddfc3
JB
47772020-09-16 John Baldwin <jhb@FreeBSD.org>
4778
4779 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4780 PL_FLAG_EXEC.
4781 (fbsd_nat_target::insert_exec_catchpoint)
4782 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4783 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4784 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4785
e911c666
JB
47862020-09-16 John Baldwin <jhb@FreeBSD.org>
4787
4788 * configure.ac: Remove check for kinfo_getvmmap().
4789 * configure, config.in: Regenerate.
4790 * fbsd-nat.c (fbsd_read_mapping): Remove
4791 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4792 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4793 kinfo_get_vmmap() are always present.
4794
1f17d372
JB
47952020-09-16 John Baldwin <jhb@FreeBSD.org>
4796
4797 * fbsd-nat.c: Always include support for
4798 TARGET_OBJECT_SIGNAL_INFO.
4799
bcb1da7f
JB
48002020-09-16 John Baldwin <jhb@FreeBSD.org>
4801
4802 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4803 sysctl and remove procfs fallback.
4804
5515f729
JB
48052020-09-16 John Baldwin <jhb@FreeBSD.org>
4806
4807 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4808 * fbsd-nat.h: Likewise.
4809
da1df1db
TBA
48102020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4811
4812 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4813 argument.
4814
0e25e767
AB
48152020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4816
4817 * ada-lang.c (ada_language_data): Delete.
4818 (ada_language): Remove references to ada_language_data.
4819 * c-lang.c (c_language_data): Delete.
4820 (c_language): Remove references to c_language_data.
4821 (cplus_language_data): Delete.
4822 (cplus_language): Remove references to cplus_language_data.
4823 (asm_language_data): Delete.
4824 (asm_language): Remove references to asm_language_data.
4825 (minimal_language_data): Delete.
4826 (minimal_language): Remove references to minimal_language_data.
4827 * d-lang.c (d_language_data): Delete.
4828 (d_language): Remove references to d_language_data.
4829 * f-lang.c (f_language_data): Delete.
4830 (f_language): Remove references to f_language_data.
4831 * go-lang.c (go_language_data): Delete.
4832 (go_language): Remove references to go_language_data.
4833 * language.c (unknown_language_data): Delete.
4834 (unknown_language): Remove references to unknown_language_data.
4835 (auto_language_data): Delete.
4836 (auto_language): Remove references to auto_language_data.
4837 * language.h (language_data): Delete struct.
4838 (language_defn): No longer inherit from language_data.
4839 * m2-lang.c (m2_language_data): Delete.
4840 (m2_language): Remove references to m2_language_data.
4841 * objc-lang.c (objc_language_data): Delete.
4842 (objc_language): Remove references to objc_language_data.
4843 * opencl-lang.c (opencl_language_data): Delete.
4844 (opencl_language): Remove references to opencl_language_data.
4845 * p-lang.c (pascal_language_data): Delete.
4846 (pascal_language): Remove references to pascal_language_data.
4847 * rust-lang.c (rust_language_data): Delete.
4848 (rust_language): Remove references to rust_language_data.
4849
b7c6e27d
AB
48502020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4851
4852 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4853 initializer.
4854 (ada_language::opcode_print_table): New member function.
4855 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4856 (c_language::opcode_print_table): New member function.
4857 (cplus_language_data): Remove la_op_print_tab initializer.
4858 (cplus_language::opcode_print_table): New member function.
4859 (asm_language_data): Remove la_op_print_tab initializer.
4860 (asm_language::opcode_print_table): New member function.
4861 (minimal_language_data): Remove la_op_print_tab initializer.
4862 (minimal_language::opcode_print_table): New member function.
4863 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4864 (d_language::opcode_print_table): New member function.
4865 * expprint.c (print_subexp_standard): Update call to
4866 opcode_print_table.
4867 (op_string): Likewise.
4868 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4869 (f_language::opcode_print_table): New member function.
4870 * go-lang.c (go_language_data): Remove la_op_print_tab
4871 initializer.
4872 (go_language::opcode_print_table): New member function.
4873 * language.c (unknown_language_data): Remove la_op_print_tab
4874 initializer.
4875 (unknown_language::opcode_print_table): New member function.
4876 (auto_language_data): Remove la_op_print_tab initializer.
4877 (auto_language::opcode_print_table): New member function.
4878 * language.h (language_data): Remove la_op_print_tab field.
4879 (language_defn::opcode_print_table): Declare new member function.
4880 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4881 initializer.
4882 (m2_language::opcode_print_table): New member function.
4883 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4884 initializer.
4885 (objc_language::opcode_print_table): New member function.
4886 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4887 initializer.
4888 (opencl_language::opcode_print_table): New member function.
4889 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4890 initializer.
4891 (pascal_language::opcode_print_table): New member function.
4892 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4893 initializer.
4894 (rust_language::opcode_print_table): New member function.
4895
5aba6ebe
AB
48962020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4897
4898 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4899 (ada_language::expression_ops): New member function.
4900 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4901 (c_language::expression_ops): New member function.
4902 (cplus_language_data): Remove la_exp_desc initializer.
4903 (cplus_language::expression_ops): New member function.
4904 (asm_language_data): Remove la_exp_desc initializer.
4905 (asm_language::expression_ops): New member function.
4906 (minimal_language_data): Remove la_exp_desc initializer.
4907 (minimal_language::expression_ops): New member function.
4908 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4909 (d_language::expression_ops): New member function.
4910 * eval.c (evaluate_subexp): Update call to expression_ops.
4911 * expprint.c (print_subexp): Likewise.
4912 (op_name): Likewise.
4913 (dump_subexp_body): Likewise.
4914 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4915 (f_language::expression_ops): New member function.
4916 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4917 (go_language::expression_ops): New member function.
4918 * language.c (language_defn::expression_ops): New function.
4919 (unknown_language_data): Remove la_exp_desc initializer.
4920 (auto_language_data): Likewise.
4921 * language.h (language_data): Remove la_exp_desc field.
4922 (language_defn::expression_ops): Declare new member function.
4923 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4924 (m2_language::expression_ops): New member function.
4925 * objc-lang.c (objc_language_data): Remove la_exp_desc
4926 initializer.
4927 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4928 initializer.
4929 (opencl_language::expression_ops): New member function.
4930 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4931 * parse.c (operator_length): Update call to expression_ops.
4932 (exp_iterate): Likewise.
4933 * rust-lang.c (rust_language_data): Remove la_exp_desc
4934 initializer.
4935 (ruse_language::expression_ops): New member function.
4936
b63a3f3f
AB
49372020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4938
4939 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4940 initializer.
4941 (ada_language::varobj_ops): New member function.
4942 * c-lang.c (c_language_data): Remove la_varobj_ops
4943 initializer.
4944 (cplus_language_data): Likewise.
4945 (cplus_language::varobj_ops): New member function.
4946 (asm_language_data): Remove la_varobj_ops initializer.
4947 (minimal_language_data): Likewise.
4948 * d-lang.c (d_language_data): Likewise.
4949 * f-lang.c (f_language_data): Likewise.
4950 * go-lang.c (go_language_data): Likewise.
4951 * language.c (language_defn::varobj_ops): New function.
4952 (unknown_language_data): Remove la_varobj_ops
4953 initializer.
4954 (auto_language_data): Likewise.
4955 * language.h (language_data): Remove la_varobj_ops field.
4956 (language_defn::varobj_ops): Declare new member function.
4957 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4958 * objc-lang.c (objc_language_data): Likewise.
4959 * opencl-lang.c (opencl_language_data): Likewise.
4960 * p-lang.c (pascal_language_data): Likewise.
4961 * rust-lang.c (rust_language_data): Likewise.
4962 * varobj.c (varobj_create): Update call to varobj_ops.
4963 * varobj.h (default_varobj_ops): Delete define.
4964
1ac14a04
AB
49652020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4966
4967 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4968 initializer.
4969 * c-lang.c (c_language_data): Likewise.
4970 (c_language::macro_expansion): New member function.
4971 (cplus_language_data): Likewise.
4972 (cplus_language::macro_expansion): New member function.
4973 (asm_language_data): Likewise.
4974 (asm_language::macro_expansion): New member function.
4975 (minimal_language_data): Likewise.
4976 (minimal_language::macro_expansion): New member function.
4977 * d-lang.c (d_language_data): Remove la_macro_expansion
4978 initializer.
4979 * f-lang.c (f_language_data): Likewise.
4980 * go-lang.c (go_language_data): Likewise.
4981 * language.c (unknown_language_data): Likewise.
4982 (auto_language_data): Likewise.
4983 * language.h (language_data): Remove la_macro_expansion field.
4984 (language_defn::macro_expansion): New member function.
4985 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4986 initializer.
4987 * objc-lang.c (objc_language_data): Likewise.
4988 (objc_language::macro_expansion): New member function.
4989 * opencl-lang.c (opencl_language_data): Likewise.
4990 (opencl_language::macro_expansion): New member function.
4991 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4992 initializer.
4993 * rust-lang.c (rust_language_data): Likewise.
4994 * symtab.c (default_collect_symbol_completion_matches_break_on):
4995 Update call to macro_expansion.
4996
3a3440fb
AB
49972020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4998
4999 * ada-lang.c (ada_language_data): Remove la_array_ordering
5000 initializer.
5001 * c-lang.c (c_language_data): Likewise.
5002 (cplus_language_data): Likewise.
5003 (asm_language_data): Likewise.
5004 (minimal_language_data): Likewise.
5005 * d-lang.c (d_language_data): Likewise.
5006 * dwarf2/read.c (read_array_order): Update for call to
5007 array_ordering.
5008 * f-lang.c (f_language_data): Remove la_array_ordering
5009 initializer.
5010 (f_language::array_ordering): New member function.
5011 * go-lang.c (go_language_data): Remove la_array_ordering
5012 initializer.
5013 * language.c (unknown_language_data): Likewise.
5014 (auto_language_data): Likewise.
5015 * language.h (language_data): Delete la_array_ordering field.
5016 (language_defn::array_ordering): New member function.
5017 * m2-lang.c (m2_language_data): Remove la_array_ordering
5018 initializer.
5019 * objc-lang.c (objc_language_data): Likewise.
5020 * opencl-lang.c (opencl_language_data): Likewise.
5021 * p-lang.c (pascal_language_data): Likewise.
5022 * rust-lang.c (rust_language_data): Likewise.
5023
0d201fa4
AB
50242020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5025
5026 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
5027 initializer.
5028 * c-lang.c (c_language_data): Likewise.
5029 (cplus_language_data): Likewise.
5030 (asm_language_data): Likewise.
5031 (minimal_language_data): Likewise.
5032 * d-lang.c (d_language_data): Likewise.
5033 * f-lang.c (f_language_data): Likewise.
5034 (f_language::case_sensitivity): New member function.
5035 * go-lang.c (go_language_data): Remove la_case_sensitivity
5036 initializer.
5037 * language.c (enum case_mode): Moved here from language.h.
5038 (case_mode): Make static.
5039 (show_case_command): Update for case_sensitivity being a method.
5040 (set_case_command): Likewise.
5041 (set_range_case): Likewise.
5042 (unknown_language_data): Remove la_case_sensitivity initializer.
5043 (auto_language_data): Likewise.
5044 * language.h (case_mode): Delete, move enum declaration to
5045 language.c.
5046 (language_data): Delete la_case_sensitivity field.
5047 (language_defn::case_sensitivity): New member function.
5048 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
5049 initializer.
5050 * objc-lang.c (objc_language_data): Likewise.
5051 * opencl-lang.c (opencl_language_data): Likewise.
5052 * p-lang.c (pascal_language_data): Likewise.
5053 * rust-lang.c (rust_language_data): Likewise.
5054
efdf6a73
AB
50552020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5056
5057 * ada-lang.c (ada_language_data): Remove la_range_check
5058 initializer.
5059 * c-lang.c (c_language_data): Likewise.
5060 (cplus_language_data): Likewise.
5061 (asm_language_data): Likewise.
5062 (minimal_language_data): Likewise.
5063 * d-lang.c (d_language_data): Likewise.
5064 * f-lang.c (f_language_data): Likewise.
5065 (f_language::range_checking_on_by_default): New member function.
5066 * go-lang.c (go_language_data): Remove la_range_check initializer.
5067 * language.c (enum range_mode): Moved here from language.h.
5068 (range_mode): Made static.
5069 (show_range_command): Update to use
5070 range_checking_on_by_default.
5071 (set_range_command): Likewise.
5072 (set_range_case): Likewise.
5073 (unknown_language_data): Remove la_range_check initializer.
5074 (auto_language_data): Likewise.
5075 * language.h (range_mode): Delete. Enum definition moved to
5076 language.c.
5077 (language_data): Remove la_range_check field.
5078 (language_defn::range_checking_on_by_default): New member
5079 function.
5080 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
5081 (m2_language::range_checking_on_by_default): New member function.
5082 * objc-lang.c (objc_language_data): Remove la_range_check
5083 initializer.
5084 * opencl-lang.c (opencl_language_data): Likewise.
5085 * p-lang.c (pascal_language_data): Likewise.
5086 (pascal_language::range_checking_on_by_default): New member
5087 function.
5088 * rust-lang.c (rust_language_data): Remove la_range_check
5089 initializer.
5090 (rust_language::range_checking_on_by_default): New member
5091 function.
5092
bf92aec5
AB
50932020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5094
5095 * dwarf2/read.c (dwarf2_physname): Remove special case for
5096 language_go.
5097 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
5098 member function.
5099
d3355e4d
AB
51002020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5101
5102 * ada-lang.c (ada_language_data): Remove
5103 la_store_sym_names_in_linkage_form_p initializer.
5104 (ada_language::store_sym_names_in_linkage_form_p): New member
5105 function.
5106 * c-lang.c (c_language_data): Remove
5107 la_store_sym_names_in_linkage_form_p initializer.
5108 (c_language::store_sym_names_in_linkage_form_p): New member
5109 function.
5110 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
5111 initializer.
5112 (asm_language_data): Likewise.
5113 (asm_language::store_sym_names_in_linkage_form_p): New member
5114 function.
5115 (minimal_language_data): Remove
5116 la_store_sym_names_in_linkage_form_p initializer.
5117 (minimal_language::store_sym_names_in_linkage_form_p): New member
5118 function.
5119 * d-lang.c (d_language_data): Remove
5120 la_store_sym_names_in_linkage_form_p initializer.
5121 * dwarf2/read.c (dwarf2_physname): Update call to
5122 store_sym_names_in_linkage_form_p.
5123 * f-lang.c (f_language_data): Remove
5124 la_store_sym_names_in_linkage_form_p initializer.
5125 * go-lang.c (go_language_data): Remove
5126 la_store_sym_names_in_linkage_form_p initializer.
5127 * language.c (unknown_language_data): Remove
5128 la_store_sym_names_in_linkage_form_p initializer.
5129 (unknown_language::store_sym_names_in_linkage_form_p): New member
5130 function.
5131 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
5132 initializer.
5133 (auto_language::store_sym_names_in_linkage_form_p): New member
5134 function.
5135 * language.h (language_data): Remove
5136 la_store_sym_names_in_linkage_form_p member variable.
5137 (language_defn::store_sym_names_in_linkage_form_p): New member
5138 function.
5139 * m2-lang.c (m2_language_data): Remove
5140 la_store_sym_names_in_linkage_form_p initializer.
5141 * objc-lang.c (objc_language_data): Likewise.
5142 * opencl-lang.c (opencl_language_data): Likewise.
5143 * p-lang.c (pascal_language_data): Likewise.
5144 * rust-lang.c (rust_language_data): Likewise.
5145
22c12a6c
AB
51462020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5147
5148 * ada-lang.c (ada_language_data): Remove string_lower_bound
5149 initializer.
5150 * c-lang.c (c_language_data): Likewise.
5151 (cplus_language_data): Likewise.
5152 (asm_language_data): Likewise.
5153 (minimal_language_data): Likewise.
5154 * d-lang.c (d_language_data): Likewise.
5155 * f-lang.c (f_language_data): Likewise.
5156 * go-lang.c (go_language_data): Likewise.
5157 * language.c (unknown_language_data): Likewise.
5158 (auto_language_data): Likewise.
5159 * language.h (language_data): Remove string_lower_bound field.
5160 (language_defn::string_lower_bound): New member function.
5161 * m2-lang.c (m2_language_data): Remove string_lower_bound
5162 initializer.
5163 (m2_language::string_lower_bound): New member function.
5164 * objc-lang.c (objc_language_data): Remove string_lower_bound
5165 initializer.
5166 * opencl-lang.c (opencl_language_data): Likewise.
5167 * p-lang.c (pascal_language_data): Likewise.
5168 * rust-lang.c (rust_language_data): Likewise.
5169 * valops.c (value_cstring): Update call to string_lower_bound.
5170 (value_string): Likewise.
5171 * value.c (allocate_repeated_value): Likewise.
5172
1c236ddd
AB
51732020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5174
5175 * valops.c (value_repeat): Fix incorrect argument name in comment.
5176
67bd3fd5
AB
51772020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5178
5179 * ada-lang.c (ada_language_data): Remove c_style_arrays
5180 initializer.
5181 (ada_language::c_style_arrays_p): New member fuction.
5182 * c-lang.c (c_language_data): Remove c_style_arrays
5183 initializer.
5184 (cplus_language_data): Likewise.
5185 (asm_language_data): Likewise.
5186 (minimal_language_data): Likewise.
5187 * d-lang.c (d_language_data): Likewise.
5188 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
5189 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
5190 (f_language::c_style_arrays_p): New member function.
5191 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
5192 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
5193 * language.c (unknown_language_data): Remove c_style_arrays
5194 initializer.
5195 (auto_language_data): Likewise.
5196 * language.h (language_data): Remove c_style_arrays field.
5197 (language_defn::c_style_arrays_p): New member function.
5198 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
5199 (m2_language::c_style_arrays_p): New member function.
5200 * objc-lang.c (objc_language_data): Remove c_style_arrays
5201 initializer.
5202 * opencl-lang.c (opencl_language_data): Likewise.
5203 * p-lang.c (pascal_language_data): Likewise.
5204 * rust-lang.c (rust_language_data): Likewise.
5205 * valarith.c (value_subscript): Update call to c_style_arrays_p,
5206 and update local variable to a bool.
5207 * valops.c (value_cast): Update call to c_style_arrays_p.
5208 (value_array): Likewise.
5209 * value.c (coerce_array): Likewise.
5210
85967615
AB
52112020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5212
5213 * ada-lang.c (ada_language_data): Remove la_language initializer.
5214 * c-lang.c (c_language_data): Likewise.
5215 (cplus_language_data): Likewise.
5216 (asm_language_data): Likewise.
5217 (minimal_language_data): Likewise.
5218 * d-lang.c (d_language_data): Likewise.
5219 * f-lang.c (f_language_data): Likewise.
5220 * go-lang.c (go_language_data): Likewise.
5221 * language.c (unknown_language_data): Likewise.
5222 (auto_language_data): Likewise.
5223 * language.h (language_data): Remove la_language field.
5224 (language_defn::language_defn): Initialise la_language field.
5225 (language_defn::la_language): New member variable.
5226 * m2-lang.c (m2_language_data): Remove la_language field.
5227 * objc-lang.c (objc_language_data): Likewise.
5228 * opencl-lang.c (opencl_language_data): Likewise.
5229 * p-lang.c (pascal_language_data): Likewise.
5230 * rust-lang.c (rust_language_data): Likewise.
5231
e171d6f1
AB
52322020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5233
5234 * ada-lang.c (ada_extensions): Delete, moved into
5235 ada_language::filename_extensions.
5236 (ada_language_data): Remove la_filename_extensions initializer.
5237 (ada_language::filename_extensions): New member function.
5238 * c-lang.c (c_extensions): Delete, moved into
5239 c_language::filename_extensions.
5240 (c_language_data): Remove la_filename_extensions initializer.
5241 (c_language::filename_extensions): New member function.
5242 (cplus_extensions): Delete, moved into
5243 cplus_language::filename_extensions.
5244 (cplus_language_data): Remove la_filename_extensions initializer.
5245 (cplus_language::filename_extensions): New member function.
5246 (asm_extensions): Delete, moved into
5247 asm_language::filename_extensions.
5248 (asm_language_data): Remove la_filename_extensions initializer.
5249 (asm_language::filename_extensions): New member function.
5250 (minimal_language_data): Remove la_filename_extensions
5251 initializer.
5252 * d-lang.c (d_extensions): Delete, moved into
5253 d_language::filename_extensions.
5254 (d_language_data): Remove la_filename_extensions initializer.
5255 (d_language::filename_extensions): New member function.
5256 * f-lang.c (f_extensions): Delete, moved into
5257 f_language::filename_extensions.
5258 (f_language_data): Remove la_filename_extensions initializer.
5259 (f_language::filename_extensions): New member function.
5260 * go-lang.c (go_language_data): Remove la_filename_extensions
5261 initializer.
5262 * language.c (add_set_language_command): Update now that
5263 filename_extensions returns a vector.
5264 (unknown_language_data): Remove la_filename_extensions
5265 initializer.
5266 (auto_language_data): Likewise.
5267 * language.h (language_data): Remove la_filename_extensions field.
5268 (language_defn::filename_extensions): New member function.
5269 * m2-lang.c (m2_language_data): Remove la_filename_extensions
5270 initializer.
5271 * objc-lang.c (objc_extensions): Delete, moved into
5272 objc_language::filename_extensions.
5273 (objc_language_data): Remove la_filename_extensions initializer.
5274 (objc_language::filename_extensions): New member function.
5275 * opencl-lang.c (opencl_language_data): Remove
5276 la_filename_extensions initializer.
5277 * p-lang.c (pascal_extensions): Delete, moved into
5278 pascal_language::filename_extensions.
5279 (pascal_language_data): Remove la_filename_extensions initializer.
5280 (pascal_language::filename_extensions): New member function.
5281 * rust-lang.c (rust_extensions): Delete, moved into
5282 rust_language::filename_extensions.
5283 (rust_language_data): Remove la_filename_extensions initializer.
5284 (rust_language::filename_extensions): New member function.
5285 * symfile.c (add_filename_language): Add new assert.
5286
6f7664a9
AB
52872020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5288
5289 * ada-lang.c (ada_language_data): Remove la_name and
5290 la_natural_name initializers.
5291 (ada_language::name): New member function.
5292 (ada_language::natural_name): New member function.
5293 * c-lang.c (c_language_data): Remove la_name and
5294 la_natural_name initializers.
5295 (c_language::name): New member function.
5296 (c_language::natural_name): New member function.
5297 (cplus_language_data): Remove la_name and
5298 la_natural_name initializers.
5299 (cplus_language::name): New member function.
5300 (cplus_language::natural_name): New member function.
5301 (asm_language_data): Remove la_name and
5302 la_natural_name initializers.
5303 (asm_language::name): New member function.
5304 (asm_language::natural_name): New member function.
5305 (minimal_language_data): Remove la_name and
5306 la_natural_name initializers.
5307 (minimal_language::name): New member function.
5308 (minimal_language::natural_name): New member function.
5309 * compile/compile.c (compile_to_object): Update call to
5310 lanugage_defn::name.
5311 * d-lang.c (d_language_data): Remove la_name and
5312 la_natural_name initializers.
5313 (d_language::name): New member function.
5314 (d_language::natural_name): New member function.
5315 * expprint.c (print_subexp_standard): Update call to
5316 language_defn::name.
5317 (dump_raw_expression): Likewise
5318 (dump_prefix_expression): Likewise.
5319 * f-lang.c (f_language_data): Remove la_name and
5320 la_natural_name initializers.
5321 (f_language::name): New member function.
5322 (f_language::natural_name): New member function.
5323 * go-lang.c (go_language_data): Remove la_name and
5324 la_natural_name initializers.
5325 (go_language::name): New member function.
5326 (go_language::natural_name): New member function.
5327 * language.c (show_language_command): Update call to
5328 language_defn::name.
5329 (set_language_command): Likewise.
5330 (language_enum): Likewise.
5331 (language_str): Likewise.
5332 (add_set_language_command): Likewise, use
5333 language_defn::natural_name in the doc string.
5334 (unknown_language_data): Remove la_name and
5335 la_natural_name initializers.
5336 (unknown_language::name): New member function.
5337 (unknown_language::natural_name): New member function.
5338 (auto_language_data): Remove la_name and
5339 la_natural_name initializers.
5340 (auto_language::name): New member function.
5341 (auto_language::natural_name): New member function.
5342 (language_lookup_primitive_type_as_symbol): Update call to
5343 language_defn::name.
5344 * language.h (language_data): Remove la_name and la_natural_name
5345 member variables.
5346 (language_defn::name): New member function.
5347 (language_defn::natural_name): New member function.
5348 * m2-lang.c (m2_language_data): Remove la_name and
5349 la_natural_name initializers.
5350 (m2_language::name): New member function.
5351 (m2_language::natural_name): New member function.
5352 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
5353 language_defn::natural_name.
5354 * objc-lang.c (objc_language_data): Remove la_name and
5355 la_natural_name initializers.
5356 (objc_language::name): New member function.
5357 (objc_language::natural_name): New member function.
5358 * opencl-lang.c (opencl_language_data): Remove la_name and
5359 la_natural_name initializers.
5360 (opencl_language::name): New member function.
5361 (opencl_language::natural_name): New member function.
5362 * p-lang.c (pascal_language_data): Remove la_name and
5363 la_natural_name initializers.
5364 (pascal_language::name): New member function.
5365 (pascal_language::natural_name): New member function.
5366 * rust-lang.c (rust_language_data): Remove la_name and
5367 la_natural_name initializers.
5368 (rust_language::name): New member function.
5369 (rust_language::natural_name): New member function.
5370 * symtab.c (lookup_language_this): Update call to
5371 language_defn::name.
5372
5bae7c4e
AB
53732020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5374
5375 * ada-lang.c (ada_language_data): Remove la_name_of_this
5376 initializer.
5377 * ax-gdb.c (gen_expr): Update call to name_of_this.
5378 * c-exp.y (classify_name): Likewise.
5379 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
5380 (cplus_language_data): Likewise.
5381 (cplus_language::name_of_this): New member function.
5382 (asm_language_data): Remove la_name_of_this initializer.
5383 (minimal_language_data): Likewise.
5384 * d-lang.c (d_language_data): Likewise.
5385 (d_language::name_of_this): New member function.
5386 * expprint.c (print_subexp_standard): Update call to name_of_this.
5387 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
5388 * go-lang.c (go_language_data): Likewise.
5389 * language.c (unknown_language_data): Likewise.
5390 (unknown_language::name_of_this): New member function.
5391 (auto_language_data): Remove la_name_of_this initializer.
5392 (auto_language::name_of_this): New member function.
5393 * language.h (language_data): Delete la_name_of_this member
5394 variable.
5395 (language_defn::name_of_this): New member function.
5396 * m2-lang.c (m2_language_data): Remove la_name_of_this
5397 initializer.
5398 * objc-lang.c (objc_language_data): Likewise.
5399 (objc_language::name_of_this): New member function.
5400 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
5401 initializer.
5402 * p-lang.c (pascal_language_data): Likewise.
5403 (pascal_language::name_of_this): New member function.
5404 * rust-lang.c (rust_language_data): Remove la_name_of_this
5405 initializer.
5406 * symtab.c (lookup_language_this): Update call to name_of_this.
5407 (lookup_symbol_aux): Likewise.
5408 * valops.c (value_of_this): Likewise.
5409
22e3f3ed
AB
54102020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5411
5412 * ada-lang.c (ada_language_data): Remove
5413 la_struct_too_deep_ellipsis initializer.
5414 (ada_language::struct_too_deep_ellipsis): New member function.
5415 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
5416 initializer.
5417 (cplus_language_data): Likewise.
5418 (asm_language_data): Likewise.
5419 (minimal_language_data): Likewise.
5420 * cp-valprint.c (cp_print_value): Update call to
5421 struct_too_deep_ellipsis.
5422 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
5423 initializer.
5424 * f-lang.c (f_language_data): Likewise.
5425 (f_language::struct_too_deep_ellipsis): New member function.
5426 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
5427 initializer.
5428 * language.c (unknown_language_data): Likewise.
5429 (auto_language_data): Likewise.
5430 * language.h (language_data): Delete la_struct_too_deep_ellipsis
5431 member variable.
5432 (language_defn::struct_too_deep_ellipsis): New member function.
5433 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
5434 initializer.Q
5435 * objc-lang.c (objc_language_data): Likewise.
5436 * opencl-lang.c (opencl_language_data): Likewise.
5437 * p-lang.c (pascal_language_data): Likewise.
5438 * rust-lang.c (rust_language_data): Likewise.
5439 * valprint.c (val_print_check_max_depth): Update call to
5440 struct_too_deep_ellipsis.
5441
ed29e1c7
FW
54422020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
5443
5444 * MAINTAINERS (Write After Approval): Add myself.
5445
12d8f940
TT
54462020-09-15 Tom Tromey <tom@tromey.com>
5447
5448 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
5449 Remove.
5450
6b5a7bc7
TT
54512020-09-15 Tom Tromey <tom@tromey.com>
5452
5453 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
5454 and TYPE_CODE_METHODPTR cases.
5455 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
5456 (c_value_print_inner): Update.
5457 * valprint.c (generic_value_print_memberptr): New function, from
5458 c_value_print_memberptr.
5459 (generic_value_print): Use it. Call cplus_print_method_ptr.
5460
47f0e2ff
TT
54612020-09-15 Tom Tromey <tromey@adacore.com>
5462
5463 * python/python-internal.h (PyInt_FromLong): Remove define.
5464 * python/py-value.c (convert_value_from_python): Use
5465 gdb_py_object_from_longest.
5466 * python/py-type.c (typy_get_code): Use
5467 gdb_py_object_from_longest.
5468 * python/py-symtab.c (salpy_get_line): Use
5469 gdb_py_object_from_longest.
5470 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
5471 gdb_py_object_from_longest.
5472 * python/py-record.c (recpy_gap_reason_code): Use
5473 gdb_py_object_from_longest.
5474 * python/py-record-btrace.c (recpy_bt_insn_size)
5475 (recpy_bt_func_level, btpy_list_count): Use
5476 gdb_py_object_from_longest.
5477 * python/py-infthread.c (gdbpy_create_ptid_object): Use
5478 gdb_py_object_from_longest. Fix error handling.
5479 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
5480 gdb_py_object_from_longest.
5481 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
5482 gdb_py_object_from_longest.
5483 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
5484 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
5485 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
5486
512116ce
TT
54872020-09-15 Tom Tromey <tromey@adacore.com>
5488
5489 * python/python.c (gdbpy_parameter_value): Use
5490 gdb_py_object_from_ulongest.
5491
4ab1029c
TT
54922020-09-15 Tom Tromey <tromey@adacore.com>
5493
5494 * python/py-infevents.c (create_register_changed_event_object):
5495 Use gdb_py_object_from_longest.
5496 * python/py-exitedevent.c (create_exited_event_object): Use
5497 gdb_py_object_from_longest.
5498
062534d4
TT
54992020-09-15 Tom Tromey <tromey@adacore.com>
5500
5501 * python/python.c (gdbpy_parameter_value): Use
5502 gdb_py_object_from_longest.
5503 * python/py-type.c (convert_field, typy_range): Use
5504 gdb_py_object_from_longest.
5505 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
5506 gdb_py_object_from_longest.
5507 * python/py-lazy-string.c (stpy_get_length): Use
5508 gdb_py_object_from_longest.
5509 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
5510 gdb_py_object_from_longest.
5511 * python/py-infevents.c (create_memory_changed_event_object): Use
5512 gdb_py_object_from_longest.
5513 * python/py-inferior.c (infpy_get_num): Use
5514 gdb_py_object_from_longest.
5515 (infpy_get_pid): Likewise.
5516
d1cab987
TT
55172020-09-15 Tom Tromey <tromey@adacore.com>
5518
5519 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
5520 defines.
5521 * python/py-value.c (valpy_long): Use
5522 gdb_py_object_from_ulongest.
5523 * python/py-symtab.c (salpy_get_pc): Use
5524 gdb_py_object_from_ulongest.
5525 (salpy_get_last): Likewise.
5526 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
5527 gdb_py_object_from_ulongest.
5528 * python/py-lazy-string.c (stpy_get_address): Use
5529 gdb_py_object_from_ulongest.
5530 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
5531 * python/py-arch.c (archpy_disassemble): Use
5532 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
5533 error handling.
5534
4bde49dc
TT
55352020-09-15 Tom Tromey <tromey@adacore.com>
5536
5537 * python/python-internal.h (gdb_py_long_from_longest): Remove
5538 defines.
5539 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
5540 * python/py-type.c (convert_field, typy_get_sizeof): Use
5541 gdb_py_object_from_longest.
5542 * python/py-record-btrace.c (btpy_list_index): Use
5543 gdb_py_object_from_longest.
5544
37431074
TT
55452020-09-15 Tom Tromey <tromey@adacore.com>
5546
5547 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
5548 * python/py-record.c (recpy_element_number): Use
5549 gdb_py_object_from_longest.
5550 (recpy_gap_number): Likewise.
5551
cbe25684
TT
55522020-09-15 Tom Tromey <tromey@adacore.com>
5553
5554 * top.c (ui::ui): Update.
5555 (highest_ui_num): Remove.
5556 * top.h (struct ui) <num>: Remove.
5557
db92ac45
TT
55582020-09-15 Tom Tromey <tromey@adacore.com>
5559
5560 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
5561 * ui-style.c (ansi_regex_text): Now array.
5562 * rust-exp.y (number_regex_text): Now array.
5563 * linespec.c (linespec_quote_characters): Now array.
5564 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
5565 Now arrays.
5566
d2b31b67
SM
55672020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5568
5569 * debuginfod-support.c (debuginfod_client_deleter): New.
5570 (debuginfod_client_up): New.
5571 (debuginfod_init): Return debuginfod_client_up.
5572 (debuginfod_source_query): Adjust.
5573 (debuginfod_debuginfo_query): Adjust.
5574
3246bd8e
SM
55752020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5576
5577 * debuginfod-support.c (debuginfod_source_query): Use
5578 make_unique_xstrdup.
5579
10242f36
SM
55802020-09-14 Simon Marchi <simon.marchi@efficios.com>
5581
5582 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5583 with `type::instance_flags`.
5584
e1044e6a
MM
55852020-09-14 Michael Mullin <masmullin@gmail.com>
5586
5587 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5588 Remove baton parameter.
5589
04902b09
PA
55902020-09-14 Pedro Alves <pedro@palves.net>
5591
5592 * Makefile.in (SELFTESTS_SRCS): Add
5593 unittests/enum-flags-selftests.c.
5594 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5595 btrace_function_flags instead of enum btrace_function_flag.
5596 * compile/compile-c-types.c (convert_qualified): Use
5597 enum_flags::raw.
5598 * compile/compile-cplus-symbols.c (convert_one_symbol)
5599 (convert_symbol_bmsym):
5600 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5601 (compile_cplus_convert_struct_or_union_methods)
5602 (compile_cplus_instance::convert_qualified_base):
5603 * go-exp.y (parse_string_or_char): Add cast to int.
5604 * unittests/enum-flags-selftests.c: New file.
5605 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5606 type to btrace_thread_flags from btrace_thread_flag.
5607 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5608 local's type to btrace_thread_flags from btrace_thread_flag. Add
5609 cast in DEBUG call.
5610
69896a2c
PA
56112020-09-14 Pedro Alves <pedro@palves.net>
5612
5613 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5614 * gdbtypes.c (address_space_name_to_int): Rename to ...
5615 (address_space_name_to_type_instance_flags): ... this.
5616 (address_space_int_to_name): Rename to ...
5617 (address_space_type_instance_flags_to_name): ... this.
5618 * gdbtypes.h (address_space_name_to_int): Rename to ...
5619 (address_space_name_to_type_instance_flags): ... this.
5620 (address_space_int_to_name): Rename to ...
5621 (address_space_type_instance_flags_to_name): ... this.
5622 * type-stack.c (type_stack::insert): Adjust to rename.
5623 * type-stack.h (type_stack::insert): Likewise.
5624
314ad88d
PA
56252020-09-14 Pedro Alves <pedro@palves.net>
5626 Andrew Burgess <andrew.burgess@embecosm.com>
5627
5628 * avr-tdep.c (avr_address_class_type_flags): Return
5629 type_instance_flags.
5630 (avr_address_class_type_flags_to_name): Take a
5631 type_instance_flags.
5632 (avr_address_class_name_to_type_flags): Return bool and take a
5633 type_instance_flags.
5634 * d-lang.c (build_d_types): Use type::set_instance_flags.
5635 * ft32-tdep.c (ft32_address_class_type_flags): Return
5636 type_instance_flags.
5637 (ft32_address_class_type_flags_to_name): Take a
5638 type_instance_flags.
5639 (ft32_address_class_name_to_type_flags): Return bool and take a
5640 type_instance_flags.
5641 (ft32_gdbarch_init): Use type::set_instance_flags.
5642 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5643 * gdbarch.h, gdbarch.c: Regenerate.
5644 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5645 (address_class_name_to_type_flags): Use type_instance_flags and
5646 bool.
5647 * gdbtypes.c (address_space_name_to_int)
5648 (address_space_int_to_name, make_qualified_type): Use
5649 type_instance_flags.
5650 (make_qualified_type): Use type_instance_flags and
5651 type::set_instance_flags.
5652 (make_type_with_address_space, make_cv_type, make_vector_type)
5653 (check_typedef): Use type_instance_flags.
5654 (recursive_dump_type): Cast type_instance_flags to unsigned for
5655 printing.
5656 (copy_type_recursive): Use type::set_instance_flags.
5657 (gdbtypes_post_init): Use type::set_instance_flags.
5658 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5659 <m_instance_flags>: ... this.
5660 <instance_flags, set_instance_flags>: New methods.
5661 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5662 (SET_TYPE_INSTANCE_FLAGS): New.
5663 (address_space_name_to_int, address_space_int_to_name)
5664 (make_type_with_address_space): Pass flags using
5665 type_instance_flags instead of int.
5666 * stabsread.c (cleanup_undefined_types_noname): Use
5667 type::set_instance_flags.
5668 * s390-tdep.c (s390_address_class_type_flags): Return
5669 type_instance_flags.
5670 (s390_address_class_type_flags_to_name): Take a
5671 type_instance_flags.
5672 (s390_address_class_name_to_type_flags): Return bool and take a
5673 type_instance_flags.
5674 * type-stack.c (type_stack::follow_types): Use
5675 type_instance_flags.
5676 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5677
27087b7f
TT
56782020-09-14 Tom Tromey <tromey@adacore.com>
5679
5680 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5681 * x86-tdep.c (x86_is_thunk_register_name)
5682 (x86_in_indirect_branch_thunk): Update.
5683 * sparc64-tdep.c (sparc64_fpu_register_names)
5684 (sparc64_cp0_register_names, sparc64_register_names)
5685 (sparc64_pseudo_register_names): Now const.
5686 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5687 cp0_registers_num>: Now const.
5688 * sparc-tdep.c (sparc_core_register_names)
5689 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5690 (sparc32_pseudo_register_names): Now const.
5691 (validate_tdesc_registers): Update.
5692 * rust-lang.c (rust_extensions): Now const.
5693 * p-lang.c (p_extensions): Now const.
5694 * objc-lang.c (objc_extensions): Now const.
5695 * nto-tdep.c (nto_thread_state_str): Now const.
5696 * moxie-tdep.c (moxie_register_names): Now const.
5697 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5698 Now const.
5699 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5700 (mips_linux_reg_names): Now const.
5701 (mips_gdbarch_init): Update.
5702 * microblaze-tdep.c (microblaze_register_names): Now const.
5703 * m68k-tdep.c (m68k_register_names): Now const.
5704 * m32r-tdep.c (m32r_register_names): Now const.
5705 * ia64-tdep.c (ia64_register_names): Now const.
5706 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5707 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5708 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5709 ymm_avx512_register_names, pkeys_register_names>: Now const.
5710 * i386-tdep.c (i386_register_names, i386_zmm_names)
5711 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5712 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5713 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5714 * f-lang.c (f_extensions): Now const.
5715 * d-lang.c (d_extensions): Now const.
5716 * csky-tdep.c (csky_register_names): Now const.
5717 * charset.c (default_charset_names, charset_enum): Now const.
5718 (_initialize_charset): Update.
5719 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5720 const.
5721 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5722 (bsd_uthread_solib_loaded): Update.
5723 (bsd_uthread_state): Now const.
5724 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5725 (amd64_ymm_avx512_names, amd64_ymmh_names)
5726 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5727 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5728 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5729 (amd64_dword_names): Now const.
5730 * agent.c (can_use_agent_enum): Now const.
5731 * ada-tasks.c (task_states, long_task_states): Now const.
5732 * ada-lang.c (known_runtime_file_name_patterns)
5733 (known_auxiliary_function_name_patterns, attribute_names)
5734 (standard_exc, ada_extensions): Now const.
5735
89806626
SM
57362020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5737
5738 * bcache.h (struct bcache) <bcache>: Remove constructor.
5739 <m_hash_function, m_compare_function>: Remove.
5740 <~bcache>: Make virtual.
5741 <compare>: Remove static method, introduce virtual method.
5742 <default_hash>: Remove.
5743 <hash>: New virtual method.
5744 * bcache.c (bcache::expand_hash_table): Update.
5745 (bcache::insert): Update.
5746 (bcache::hash): New.
5747 (bcache::compare): Update comment and parameter names.
5748 * gdbtypes.c (types_deeply_equal): Update.
5749 * psymtab.h (struct psymbol_bcache): New struct.
5750 (class psymtab_storage) <psymtab_storage>: Make default.
5751 <psymbol_cache>: Change type to psymbol_bcache.
5752 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5753 (psymbol_hash): Change to...
5754 (psymbol_bcache::hash): ... this.
5755 (psymbol_compare): Change to...
5756 (psymbol_bcache::compare): ... this.
5757
677c92fe
SM
57582020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5759
5760 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5761 checking for initial lwp.
5762
3eba3a01
TT
57632020-09-14 Tom Tromey <tromey@adacore.com>
5764
5765 * m68k-tdep.c (m68k_extract_return_value): Use
5766 pointer_result_regnum.
5767 (m68k_store_return_value): Likewise.
5768 (m68k_reg_struct_return_p): Handle vectors and arrays.
5769 (m68k_return_value): Handle arrays.
5770 (m68k_svr4_return_value): Fix single-element aggregate handling.
5771 Handle long double. Adjust for embedded ABI.
5772 (m68k_svr4_init_abi): Set pointer_result_regnum.
5773 (m68k_embedded_init_abi): New function.
5774 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5775 (m68k_osabi_sniffer): New function.
5776 (_initialize_m68k_tdep): Register osabi sniffer.
5777 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5778 member.
5779
33f4dd48
SM
57802020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5781
5782 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5783 with gdb::unique_xmalloc_ptr<char>.
5784
8400a90d
SM
57852020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5786
5787 * xml-support.h (xml_fetch_another): Change type to be a
5788 function_view.
5789 (xml_process_xincludes): Remove baton parameter.
5790 (xml_fetch_content_from_file): Change baton parameter to
5791 dirname.
5792 * xml-support.c (struct xinclude_parsing_data)
5793 <xinclude_parsing_data>: Remove baton parameter.
5794 <fetcher_baton>: Remove.
5795 (xinclude_start_include): Adjust.
5796 (xml_process_xincludes): Adjust.
5797 (xml_fetch_content_from_file): Replace baton parameter with
5798 dirname.
5799 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5800 (xml_init_syscalls_info): Use a lambda.
5801 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5802 (file_read_description_xml): Use a lambda.
5803 (fetch_available_features_from_target): Change baton parameter
5804 to target_ops.
5805 (target_read_description_xml): Use a lambda.
5806 (target_fetch_description_xml): Use a lambda.
5807 (string_read_description_xml): Update.
5808
04f5bab2
SM
58092020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5810
5811 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5812 uses with type::endianity_is_not_default.
5813
db558e34
SM
58142020-09-14 Simon Marchi <simon.marchi@efficios.com>
5815
5816 * gdbtypes.h (struct type) <endianity_is_not_default,
5817 set_endianity_is_not_default>: New methods.
5818 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5819 type::endianity_is_not_default, change all write call sites to
5820 use type::set_endianity_is_not_default.
5821
22c4c60c
SM
58222020-09-14 Simon Marchi <simon.marchi@efficios.com>
5823
5824 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5825 uses with type::is_fixed_instance.
5826
9cdd0d12
SM
58272020-09-14 Simon Marchi <simon.marchi@efficios.com>
5828
5829 * gdbtypes.h (struct type) <is_fixed_instance,
5830 set_is_fixed_instance>: New methods.
5831 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5832 write call sites to use type::set_is_fixed_instance.
5833
0becda7a
SM
58342020-09-14 Simon Marchi <simon.marchi@efficios.com>
5835
5836 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5837 uses with type::is_gnu_ifunc.
5838
03cc7249
SM
58392020-09-14 Simon Marchi <simon.marchi@efficios.com>
5840
5841 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5842 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5843 use type::set_is_gnu_ifunc.
5844
3f46044c
SM
58452020-09-14 Simon Marchi <simon.marchi@efficios.com>
5846
5847 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5848 uses with type::stub_is_supported.
5849
9baccff6
SM
58502020-09-14 Simon Marchi <simon.marchi@efficios.com>
5851
5852 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5853 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5854 use type::set_stub_is_supported.
5855
bd63c870
SM
58562020-09-14 Simon Marchi <simon.marchi@efficios.com>
5857
5858 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5859 uses with type::is_vector.
5860
2062087b
SM
58612020-09-14 Simon Marchi <simon.marchi@efficios.com>
5862
5863 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5864 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5865 use type::set_is_vector.
5866
a409645d
SM
58672020-09-14 Simon Marchi <simon.marchi@efficios.com>
5868
5869 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5870 uses with type::has_varargs.
5871
1d6286ed
SM
58722020-09-14 Simon Marchi <simon.marchi@efficios.com>
5873
5874 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5875 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5876 use type::set_has_varargs.
5877
7f9f399b
SM
58782020-09-14 Simon Marchi <simon.marchi@efficios.com>
5879
5880 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5881 uses with type::is_prototyped.
5882
27e69b7a
SM
58832020-09-14 Simon Marchi <simon.marchi@efficios.com>
5884
5885 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5886 New methods.
5887 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5888 call sites to use type::set_is_prototyped.
5889
d2183968
SM
58902020-09-14 Simon Marchi <simon.marchi@efficios.com>
5891
5892 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5893 uses with type::target_is_stub.
5894
8f53807e
SM
58952020-09-14 Simon Marchi <simon.marchi@efficios.com>
5896
5897 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5898 New methods.
5899 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5900 sites to use type::set_target_is_stub.
5901
e46d3488
SM
59022020-09-14 Simon Marchi <simon.marchi@efficios.com>
5903
5904 * gdbtypes.h (TYPE_STUB): Remove, replace all
5905 uses with type::is_stub.
5906
b4b73759
SM
59072020-09-14 Simon Marchi <simon.marchi@efficios.com>
5908
5909 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5910 (TYPE_STUB): Use type::is_stub, change all write call sites to
5911 use type::set_is_stub.
5912
20ce4123
SM
59132020-09-14 Simon Marchi <simon.marchi@efficios.com>
5914
5915 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5916 type::has_no_signedness.
5917
15152a54
SM
59182020-09-14 Simon Marchi <simon.marchi@efficios.com>
5919
5920 * gdbtypes.h (struct type) <has_no_signedness,
5921 set_has_no_signedness>: New methods.
5922 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5923 call sites to use type::set_has_no_signedness.
5924
c6d940a9
SM
59252020-09-14 Simon Marchi <simon.marchi@efficios.com>
5926
5927 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5928 type::is_unsigned.
5929
653223d3
SM
59302020-09-14 Simon Marchi <simon.marchi@efficios.com>
5931
5932 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5933 methods.
5934 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5935 sites to use type::set_is_unsigned.
5936
55ea94da 59372020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 5938 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 5939
e851246a
SM
5940 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5941 pointer and stack frame offset when unwinding.
55ea94da 5942
6791b117
PA
59432020-09-13 Pedro Alves <pedro@palves.net>
5944
5945 * NEWS: Document "-break-insert --qualified".
5946 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5947
77f2120b
PA
59482020-09-13 Pedro Alves <pedro@palves.net>
5949
5950 * linespec.c (classify_mtype, compare_msyms): Delete.
5951 (search_minsyms_for_name): Remove classification logic. Instead
5952 filter out trampoline symbols if we also found an external
5953 function of the same name.
5954
ed6a896c
JB
59552020-09-13 Joel Brobecker <brobecker@adacore.com>
5956
5957 * NEWS: Create a new section for the next release branch.
5958 Rename the section of the current branch, now that it has
5959 been cut.
5960
32aea73e
JB
59612020-09-13 Joel Brobecker <brobecker@adacore.com>
5962
5963 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5964 * version.in: Bump version to 11.0.50.DATE-git.
5965
8087c3fa
JB
59662020-09-12 Joel Brobecker <brobecker@adacore.com>
5967
5968 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5969
2a67f09d
FW
59702020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5971 Felix Willgerodt <Felix.Willgerodt@intel.com>
5972
5973 * gdbarch.sh: Added bfloat16 type.
5974 * gdbarch.c: Regenerated.
5975 * gdbarch.h: Regenerated.
5976 * gdbtypes.c (floatformats_bfloat16): New struct.
5977 (gdbtypes_post_init): Add builtin_bfloat16.
5978 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5979 (floatformats_bfloat16): New struct.
5980 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5981 (i386_ymm_type): Add field "v16_bfloat16"
5982 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5983 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5984 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5985 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5986 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5987 * features/i386/64bit-avx512.c: Regenerated.
5988 * features/i386/64bit-sse.xml: Add bfloat16 type.
5989 * features/i386/64bit-sse.c: Regenerated.
5990
1347d111
FW
59912020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5992
5993 * i386-tdep.c (i386_zmm_type): Fix field names.
5994 (i386_ymm_type): Fix field names.
5995
7a4e8e7d
TBA
59962020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5997
5998 * breakpoint.c: Fix typo in the help message of the
5999 "set breakpoint condition-evaluation" command.
6000
cf4ac4be
KR
60012020-09-10 Kamil Rytarowski <n54@gmx.com>
6002
6003 * nbsd-nat.c: Include "nat/netbsd-nat.h".
6004 * (nbsd_nat_target::pid_to_exec_file)
6005 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
6006 (nbsd_nat_target::post_startup_inferior)
6007 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
6008 (nbsd_add_threads): Switch local code to common gdb/nat functions.
6009 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
6010 * (nbsd_thread_lister): Remove.
6011
f404573e
KR
60122020-09-10 Kamil Rytarowski <n54@gmx.com>
6013
6014 * fork-inferior.c (startup_inferior): Avoid double free.
6015
1ccb2c17
KR
60162020-09-10 Kamil Rytarowski <n54@gmx.com>
6017
6018 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
6019 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
6020
feedfcc7
KR
60212020-09-10 Kamil Rytarowski <n54@gmx.com>
6022
6023 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
6024 * netbsd-nat.c: Include <sys/ptrace.h>.
6025 * (netbsd_nat::enable_proc_events): Add.
6026
c489f8c6
KR
60272020-09-10 Kamil Rytarowski <n54@gmx.com>
6028
6029 * netbsd-nat.h: Include "gdbsupport/function-view.h".
6030 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
6031 (netbsd_nat::for_each_thread): Add.
6032 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
6033 "gdbsupport/common-debug.h".
6034 * (netbsd_nat::netbsd_thread_lister)
6035 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
6036 (netbsd_nat::for_each_thread): Add.
6037
330662f6
KR
60382020-09-10 Kamil Rytarowski <n54@gmx.com>
6039
6040 * netbsd-nat.h: Include <unistd.h>.
6041 * (netbsd_nat::pid_to_exec_file): Add.
6042 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
6043 * (netbsd_nat::pid_to_exec_file) Add.
6044
70b67307
KR
60452020-09-10 Kamil Rytarowski <n54@gmx.com>
6046
6047 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
6048
99cf6da6
KR
60492020-09-10 Kamil Rytarowski <n54@gmx.com>
6050
6051 * netbsd-nat.h: New file.
6052 * netbsd-nat.c: Likewise.
6053
1b788fb6
TT
60542020-09-09 Tom Tromey <tromey@adacore.com>
6055
6056 * ada-lang.c (remove_extra_symbols): Do not increment when
6057 removing an element
6058
03b0a45f
TT
60592020-09-08 Tom Tromey <tromey@adacore.com>
6060
6061 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
6062
3cae4447
TT
60632020-09-08 Tom Tromey <tromey@adacore.com>
6064
6065 PR win32/25302:
6066 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
6067 (gdb_bfd_init_data): New function.
6068 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
6069
7f08fd51
TBA
60702020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6071
6072 * infrun.c (fetch_inferior_event): Use
6073 `switch_to_target_no_thread` to switch the target.
6074
3e6ff933
TT
60752020-09-06 Tom Tromey <tom@tromey.com>
6076
6077 * symfile.h (dwarf2_free_objfile): Don't declare.
6078
e56798df
AKS
60792020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6080
6081 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
6082 to match 16 byte real/complex type generated by Flang compiler.
6083
8f5c6526
TV
60842020-09-03 Tom de Vries <tdevries@suse.de>
6085
6086 PR breakpoint/26546
6087 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
6088 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
6089
c5065df0
SM
60902020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
6091
6092 * maint.c (index_digits): New function.
6093 (struct maint_print_section_data): Remove.
6094 (print_bfd_section_info): Remove print_data parameter, add arg
6095 and index_digits.
6096 (print_objfile_section_info): Likewise.
6097 (print_bfd_section_info_maybe_relocated): Likewise (plus
6098 objfile).
6099 (maintenance_info_sections): Adjust calls.
6100
02c6f3f1
TT
61012020-09-02 Tom Tromey <tromey@adacore.com>
6102
6103 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
6104 for null pointers.
6105 (ada_varobj_adjust_for_child_access): Special-case null pointers.
6106
ef5e5b0b
SM
61072020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
6108
6109 * bcache.h (struct bcache) <insert>: Change type of `added` to
6110 pointer to bool.
6111 * bcache.c (bcache::insert): Likewise.
6112 * gdbtypes.c (check_types_worklist): Adjust.
6113 * psymtab.c (add_psymbol_to_bcache): Adjust.
6114
973695d6
KB
61152020-08-31 Kevin Buettner <kevinb@redhat.com>
6116
6117 * corelow.c (unordered_set): Include.
6118 (class core_target): Add field 'm_core_unavailable_mappings'.
6119 (core_target::build_file_mappings): Print only one warning
6120 per inaccessible file. Add unavailable/broken mappings
6121 to m_core_unavailable_mappings.
6122 (core_target::xfer_partial): Call...
6123 (core_target::xfer_memory_via_mappings): New method.
6124
264fc0e2
SM
61252020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
6126
6127 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
6128 type to bool.
6129
2de01bdb
SM
61302020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
6131
6132 * dwarf2/read.c (struct field_info): Fix indentation.
6133
f3bd50f1
SM
61342020-08-31 Simon Marchi <simon.marchi@efficios.com>
6135
6136 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
6137 ordering in comment.
6138 * frame.c (frame_id_eq): Fix indentation.
6139
22b9b4b0
SL
61402020-08-31 Scott Linder <scott@scottlinder.com>
6141 Simon Marchi <simon.marchi@efficios.com>
6142
6143 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
6144 inline frame ids in outer frame.
6145
84154d16
SM
61462020-08-31 Simon Marchi <simon.marchi@efficios.com>
6147
6148 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
6149 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
6150 (outer_frame_id): Use FID_STACK_OUTER instead of
6151 FID_STACK_INVALID.
6152 (frame_id_p): Don't check for outer_frame_id.
6153
8efaf6b3
SM
61542020-08-31 Simon Marchi <simon.marchi@efficios.com>
6155
6156 * frame-unwind.c (frame_unwind_got_optimized): Don't set
6157 regnum/frame in value. Call allocate_value_lazy.
6158 * frame.c (frame_unwind_register_value): Use
6159 val_print_not_saved.
6160
fe1fe7ea
SM
61612020-08-31 Simon Marchi <simon.marchi@efficios.com>
6162
6163 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
6164
f7c7700d
PA
61652020-08-29 Pedro Alves <pedro@palves.net>
6166
6167 * progspace.c (print_program_space): Use all_inferiors. Switch to
6168 the inferior before calling target_pid_to_str.
6169
e0814aae
TT
61702020-08-28 Tom Tromey <tom@tromey.com>
6171
6172 * xcoffread.c (xcoff_end_psymtab): Update comment.
6173 * dbxread.c (dbx_end_psymtab): Update comment.
6174
626d2320
TV
61752020-08-28 Tom de Vries <tdevries@suse.de>
6176
6177 PR breakpoint/26544
6178 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
6179 event_location.
6180 (create_breakpoint): Same.
6181 (base_breakpoint_decode_location): Same.
6182 (bkpt_create_sals_from_location): Same.
6183 (bkpt_decode_location): Same.
6184 (bkpt_probe_create_sals_from_location): Same.
6185 (bkpt_probe_decode_location): Same.
6186 (tracepoint_create_sals_from_location): Same.
6187 (tracepoint_decode_location): Same.
6188 (tracepoint_probe_decode_location): Same.
6189 (strace_marker_create_sals_from_location): Same.
6190 (strace_marker_decode_location): Same.
6191 (create_sals_from_location_default): Same.
6192 (decode_location_default): Same.
6193 * breakpoint.h (struct breakpoint_ops): Same.
6194 (create_breakpoint): Same.
6195 * linespec.h (decode_line_full): Same.
6196 * linespec.c (decode_line_full): Same. Throw error if
6197 result.size () == 0.
6198
df631783
PA
61992020-08-27 Pedro Alves <pedro@palves.net>
6200
6201 PR gdb/26524
6202 * breakpoint.c (until_break_fsm) <location_breakpoint,
6203 caller_breakpoint>: Delete fields.
6204 <breakpoints>: New field.
6205 <until_break_fsm>: Adjust to save a breakpoint vector instead of
6206 two individual breakpoints.
6207 (until_break_fsm::should_stop): Loop over breakpoints in the
6208 breakpoint vector.
6209 (until_break_fsm::clean_up): Adjust to clear the breakpoints
6210 vector.
6211 (until_break_command): Handle location expanding into multiple
6212 sals.
6213
b2b38aa4
PA
62142020-08-27 Pedro Alves <pedro@palves.net>
6215
6216 PR gdb/26523
6217 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
6218 bp_until breakpoints user-specified locations. Update intro
6219 comment.
6220
b886559f
SM
62212020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
6222
6223 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
6224 gdb_bfd_sections): New.
6225 * maint.c (print_bfd_section_info): Change param type to
6226 maint_print_section_data.
6227 (print_objfile_section_info): Likewise.
6228 (print_bfd_section_info_maybe_relocated): Likewise.
6229 (maintenance_info_sections): Use gdb_bfd_sections.
6230
4c6e63bf
SV
62312020-08-25 Shahab Vahedi <shahab@synopsys.com>
6232
6233 * MAINTAINERS: Add ARC target and maintainer.
6234
8d7f0635
AK
62352020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
6236
6237 * configure.tgt: ARC support for GNU/Linux.
6238 * Makefile.in (ALL_TARGET_OBJS): Likewise.
6239 * arc-linux-tdep.c: New file.
6240 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
6241 * arc-tdep.c (arc_write_pc): Use it.
6242
fdd8731b
SV
62432020-08-25 Shahab Vahedi <shahab@synopsys.com>
6244
6245 * arc-tdep.c (arc_check_for_hardware_loop): New.
6246 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
6247
22459524
SV
62482020-08-25 Shahab Vahedi <shahab@synopsys.com>
6249
6250 * arc-tdep.h: Include "gdbarch.h".
6251
995d3a19
SV
62522020-08-25 Shahab Vahedi <shahab@synopsys.com>
6253
6254 * arch/arc.h
6255 (arc_gdbarch_features): New class to stir the selection of target XML.
6256 (arc_create_target_description): Use FEATURES to choose XML target.
6257 (arc_lookup_target_description): Use arc_create_target_description
6258 to create _new_ target descriptions or return the already created
6259 ones if the FEATURES is the same.
6260 * arch/arc.c: Implementation of prototypes described above.
6261 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
6262 (arc_gdbarch_features_init): Initialize the FEATURES struct.
6263 * arc-tdep.c (*_feature_name): Make feature names consistent.
6264 (arc_register_feature): A new struct to hold information about
6265 registers of a particular target/feature.
6266 (arc_check_tdesc_feature): Check if XML provides registers in
6267 compliance with ARC_REGISTER_FEATURE structs.
6268 (arc_update_acc_reg_names): Add aliases for r58 and r59.
6269 (determine_*_reg_feature_set): Which feature name to look for.
6270 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
6271 (mach_type_to_arc_isa): Convert from a set of binutils machine types
6272 to expected ISA enums to be used in arc_gdbarch_features structs.
6273 * features/Makefile (FEATURE_XMLFILES): Add new files.
6274 * gdb/features/arc/v1-aux.c: New file.
6275 * gdb/features/arc/v1-aux.xml: Likewise.
6276 * gdb/features/arc/v1-core.c: Likewise.
6277 * gdb/features/arc/v1-core.xml: Likewise.
6278 * gdb/features/arc/v2-aux.c: Likewise.
6279 * gdb/features/arc/v2-aux.xml: Likewise.
6280 * gdb/features/arc/v2-core.c: Likewise.
6281 * gdb/features/arc/v2-core.xml: Likewise.
6282 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
6283
3945d2d7
GM
62842020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
6285 Andrew Burgess <andrew.burgess@embecosm.com>
6286
6287 PR m2/26372
fc5d6901 6288 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
6289 an assert. Remove single element array indexing pattern as the
6290 MULTI_SUBSCRIPT support will handle this case too.
6291
2677f2d3
SM
62922020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
6293
6294 * value.h (valprint_check_validity): Move declaration from
6295 here...
6296 * valprint.h (valprint_check_validity): ... to here.
6297
c426fddb
SM
62982020-08-24 Simon Marchi <simon.marchi@efficios.com>
6299
6300 * debug.h: New file.
6301 * debug.c (debug_prefixed_vprintf): New function.
6302 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
6303 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
6304
1eb8556f
SM
63052020-08-24 Simon Marchi <simon.marchi@efficios.com>
6306
6307 * infrun.h (infrun_debug_printf_1): New function declaration.
6308 (infrun_debug_printf): New macro.
6309 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
6310 throughout.
6311 (infrun_debug_printf): New function.
6312 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
6313 (handle_jit_event): Likewise.
6314
b8fff44e
MW
63152020-08-21 Mark Wielaard <mark@klomp.org>
6316
6317 * ada-lex.l: Extend register warnings diagnostics comment for g++.
6318
d19c3068
SM
63192020-08-22 Simon Marchi <simon.marchi@efficios.com>
6320
6321 * frame.c (enum class frame_id_status): New.
6322 (struct frame_info) <this_id::p>: Change type to frame_id_status.
6323 (fprintf_frame): Update.
6324 (compute_frame_id): Set frame id status to "computing" on entry.
6325 Set it back to "not_computed" on failure and to "computed" on
6326 success.
6327 (get_frame_id): Assert the frame id is not being computed.
6328 (create_sentinel_frame): Use frame_id_status::COMPUTED.
6329 (create_new_frame): Likewise.
6330 (frame_cleanup_after_sniffer): Update assert.
6331
b70e516e
SM
63322020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6333
6334 * regcache.c (pid_ptid_regcache_map): New type.
6335 (target_ptid_regcache_map): Remove.
6336 (target_pid_ptid_regcache_map): New type.
6337 (regcaches): Change type to target_pid_ptid_regcache_map.
6338 (get_thread_arch_aspace_regcache): Update.
6339 (regcache_thread_ptid_changed): Update, handle pid-like ptid
6340 case.
6341 (regcaches_size): Update.
6342 (regcache_count): Update.
6343 (registers_changed_ptid_target_pid_test): New.
6344 (_initialize_regcache): Register new test.
6345
cdd9148a
SM
63462020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6347
6348 * regcache.c (regcache_count): New.
6349 (struct regcache_test_data): New.
6350 (regcache_test_data_up): New.
6351 (populate_regcaches_for_test): New.
6352 (regcaches_test): Remove.
6353 (get_thread_arch_aspace_regcache_test): New.
6354 (registers_changed_ptid_all_test): New.
6355 (registers_changed_ptid_target_test): New.
6356 (registers_changed_ptid_target_ptid_test): New.
6357 (regcache_thread_ptid_changed): Remove regcache_count lambda.
6358 (_initialize_regcache): Register new tests.
6359
dd125343
SM
63602020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6361
6362 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
6363 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
6364 gdbarch and aspace parameter. Use current inferior's aspace.
6365 Validate regcache's arch value.
6366 (regcaches_test): Update.
6367
3ee93972
SM
63682020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6369
6370 * regcache.c (regcaches_test): Call registers_changed.
6371
33bf4c5c
TBA
63722020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6373
6374 * infrun.c (process_event_stop_test): Fix typo "breapoint".
6375
c2fd7fae
AKS
63762020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6377
6378 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
6379 to find the end of prologue for flang compiled binaries.
6380 * arm-tdep.c (arm_skip_prologue): Likewise.
6381 * i386-tdep.c (i386_skip_prologue): Likewise.
6382 * producer.c (producer_is_llvm): New function.
6383 (producer_parsing_tests): Added new tests for clang/flang.
6384 * producer.h (producer_is_llvm): New declaration.
6385
9327494e
SM
63862020-08-18 Simon Marchi <simon.marchi@efficios.com>
6387
6388 * linux-nat.c (linux_nat_debug_printf): New function.
6389 (linux_nat_debug_printf_1): New macro. Use throughout the file.
6390
d138725a
AM
63912020-08-18 Aaron Merey <amerey@redhat.com>
6392
6393 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
6394 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
6395 (CLIBS): Add DEBUGINFOD_LIBS.
6396
f9b11e6b
ST
63972020-08-17 Sergei Trofimovich <siarheit@google.com>
6398
6399 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
6400 'gdbarch_num_regs'.
6401
3ae7ab99
TT
64022020-08-17 Tom Tromey <tromey@adacore.com>
6403
6404 * ada-varobj.c (ada_varobj_decode_var): Handle case where
6405 ada_get_decoded_value returns NULL.
6406
b017825f
TT
64072020-08-17 Tom Tromey <tromey@adacore.com>
6408
6409 * python/py-inferior.c (infpy_search_memory): Use
6410 gdb_py_object_from_ulongest.
6411 * python/py-infevents.c (create_inferior_call_event_object)
6412 (create_memory_changed_event_object): Use
6413 gdb_py_object_from_ulongest.
6414 * python/py-linetable.c (ltpy_entry_get_pc): Use
6415 gdb_py_object_from_ulongest.
6416
7635cf79
SM
64172020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6418
6419 * loc.c (class symbol_needs_eval_context): Fix indentation.
6420
f54be24b
SM
64212020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6422
6423 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
6424 bool.
6425
53d5a2a5
TV
64262020-08-17 Tom de Vries <tdevries@suse.de>
6427
6428 PR gdb/26393
6429 * gdbtypes.c (dump_dynamic_prop): New function.
6430 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
6431
547ce8f0
TV
64322020-08-15 Tom de Vries <tdevries@suse.de>
6433
6434 PR backtrace/26390
6435 * stack.c (print_frame_args): Temporarily set the selected
6436 frame to FRAME while printing the frame's arguments.
6437
6ea815e7
PFC
64382020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6439
6440 PR breakpoints/26385
6441 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
6442 Always clear watchpoint with PTRACE_SET_DEBUGREG.
6443
6e562fa3
PFC
64442020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6445
6446 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
6447 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
6448 and >= to check return value instead of == -1 and != -1.
6449
d369b608
SM
64502020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
6451
6452 * utils.h (class gdb_argv) <as_array_view>: New method.
6453 * utils.c (gdb_argv_as_array_view_test): New.
6454 (_initialize_utils): Register selftest.
6455 * maint.c (maintenance_selftest): Use the new method.
6456
b31488a3
KR
64572020-08-13 Kamil Rytarowski <n54@gmx.com>
6458
6459 * target.h (supports_dumpcore, dumpcore): New
6460 function declarations.
6461 * target.c (supports_dumpcore, dumpcore): New
6462 functions.
6463 * target-delegates.c: Rebuild.
6464 * gcore.c (gcore_command): Use target_supports_dumpcore ()
6465 and target_dumpcore ().
6466
002a3166
AM
64672020-08-13 Aaron Merey <amerey@redhat.com>
6468
6469 * debuginfod-support.c: Replace global variables with user_data.
6470
ece5bc8a
SM
64712020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
6472
6473 * maint.c (maintenance_selftest): Split args and pass array_view
6474 to run_tests.
6475
6d8a0a5e
LM
64762020-08-12 Luis Machado <luis.machado@linaro.org>
6477
6478 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
6479 type's length.
6480 Use %s and pulongest to print the length.
6481
7cf663a9
PA
64822020-08-12 Pedro Alves <palves@redhat.com>
6483
6484 * NEWS: Move "Multi-target debugging support" item to the
6485 "Changes since GDB 9" section.
6486
27c7b875
PA
64872020-08-12 Pedro Alves <palves@redhat.com>
6488
6489 PR gdb/26336
6490 * progspace.c (program_space::remove_objfile): Invalidate the
6491 frame cache.
6492
1796a2a1
TV
64932020-08-11 Tom de Vries <tdevries@suse.de>
6494
6495 * MAINTAINERS: Mark ms1 as deleted.
6496
f8e3fe0d
LM
64972020-08-10 Luis Machado <luis.machado@linaro.org>
6498
6499 PR gdb/26310
6500
6501 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
6502 act accordingly.
6503 (aarch64_analyze_prologue_test): Add more unit tests to exercise
6504 movz/str/stur/stp skipping behavior.
6505
cc308722
LM
65062020-08-10 Luis Machado <luis.machado@linaro.org>
6507
6508 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
6509 struct user_sve_header instead of struct sve_context.
6510
041d9819
SM
65112020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
6512
6513 * read.h (dwarf2_fetch_die_loc_sect_off,
6514 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
6515 `void *` parameter with function_view.
6516 * read.c (dwarf2_fetch_die_loc_sect_off,
6517 dwarf2_fetch_die_loc_cu_off): Likewise.
6518 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
6519 (per_cu_dwarf_call): Adjust.
6520 (get_frame_address_in_block_wrapper): Remove.
6521 (indirect_synthetic_pointer): Adjust.
6522 (get_ax_pc): Remove.
6523 (dwarf2_compile_expr_to_ax): Adjust.
6524
38f8aa06
TV
65252020-08-08 Tom de Vries <tdevries@suse.de>
6526
6527 PR build/26344
6528 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
6529 constructor.
6530 * regcache.c (get_thread_arch_aspace_regcache): Same.
6531
a52b3ae2
TT
65322020-08-07 Tom Tromey <tromey@adacore.com>
6533
6534 * ravenscar-thread.c
6535 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
6536 New method.
6537 (ravenscar_thread_target::wait): Check
6538 runtime_initialized.
6539 (ravenscar_thread_target::prepare_to_store)
6540 (ravenscar_thread_target::stopped_by_sw_breakpoint)
6541 (ravenscar_thread_target::stopped_by_hw_breakpoint)
6542 (ravenscar_thread_target::stopped_by_watchpoint)
6543 (ravenscar_thread_target::stopped_data_address)
6544 (ravenscar_thread_target::core_of_thread): Use
6545 scoped_restore_current_thread and
6546 set_base_thread_from_ravenscar_task.
6547
0e29517d
TT
65482020-08-07 Tom Tromey <tromey@adacore.com>
6549
6550 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
6551
592f9bd7
TT
65522020-08-07 Tom Tromey <tromey@adacore.com>
6553
6554 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
6555 update_inferior_ptid before update_thread_list.
6556 (temporarily_change_regcache_ptid): New class.
6557 (ravenscar_thread_target::fetch_registers)
6558 (ravenscar_thread_target::store_registers)
6559 (ravenscar_thread_target::prepare_to_store): Use base thread when
6560 forwarding operation.
6561
39e2018a
TT
65622020-08-07 Tom Tromey <tromey@adacore.com>
6563
6564 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
6565 "is_pid" case.
6566
2080266b
TT
65672020-08-07 Tom Tromey <tromey@adacore.com>
6568
6569 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6570 New methods.
6571 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6572 first.
6573 (ravenscar_thread_target::add_thread): Rename from
6574 ravenscar_add_thread.
6575 (ravenscar_thread_target::update_thread_list): Use a lambda.
6576 (ravenscar_thread_target::xfer_partial): New method.
6577
78c02f21
TT
65782020-08-07 Tom Tromey <tromey@adacore.com>
6579
6580 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6581 gdb::function_view.
6582 (iterate_over_live_ada_tasks): Change type of argument.
6583 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6584 of argument.
6585
d5d833af
TT
65862020-08-07 Tom Tromey <tromey@adacore.com>
6587
6588 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6589 Remove.
6590 (ravenscar_thread_target::extra_thread_info): Remove.
6591 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6592 defer to target beneath for non-Ravenscar threads.
6593
a8ac85bb
TT
65942020-08-07 Tom Tromey <tromey@adacore.com>
6595
6596 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6597 get_base_thread_from_ravenscar_task>: Now methods.
6598 <m_cpu_map>: New member.
6599 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6600 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6601 (ravenscar_thread_target::task_is_currently_active): Update.
6602 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6603 Now a method.
6604 (ravenscar_thread_target::add_active_thread): Put initial thread
6605 into the m_cpu_map.
6606
550ab58d
TT
66072020-08-07 Tom Tromey <tromey@adacore.com>
6608
6609 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6610 event_ptid.
6611
e9546579
TT
66122020-08-07 Tom Tromey <tromey@adacore.com>
6613
6614 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6615 runtime_initialized.
6616
3d4470e5
TT
66172020-08-07 Tom Tromey <tromey@adacore.com>
6618
6619 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6620 add_active_thread.
6621 (ravenscar_thread_target::add_active_thread): Now public.
6622 (ravenscar_inferior_created): Call add_active_thread after pushing
6623 the target.
6624
888bdb2b
SM
66252020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6626
6627 * regcache.c (ptid_regcache_map): New type.
6628 (target_ptid_regcache_map): New type.
6629 (regcaches): Change type to target_ptid_regcache_map.
6630 (get_thread_arch_aspace_regcache): Update to regcaches' new
6631 type.
6632 (regcache_thread_ptid_changed): Likewise.
6633 (registers_changed_ptid): Likewise.
6634 (regcaches_size): Likewise.
6635 (regcaches_test): Update.
6636 (regcache_thread_ptid_changed): Update.
6637 * regcache.h (regcache_up): New type.
6638 * gdbsupport/ptid.h (hash_ptid): New struct.
6639
b161a60d
SM
66402020-08-07 Simon Marchi <simon.marchi@efficios.com>
6641
6642 * observable.h (thread_ptid_changed): Add parameter
6643 `process_stratum_target *`.
6644 * infrun.c (infrun_thread_ptid_changed): Add parameter
6645 `process_stratum_target *` and use it.
6646 (selftests): New namespace.
6647 (infrun_thread_ptid_changed): New function.
6648 (_initialize_infrun): Register selftest.
6649 * regcache.c (regcache_thread_ptid_changed): Add parameter
6650 `process_stratum_target *` and use it.
6651 (regcache_thread_ptid_changed): New function.
6652 (_initialize_regcache): Register selftest.
6653 * thread.c (thread_change_ptid): Pass target to
6654 thread_ptid_changed observable.
6655
d2854d8d
CT
66562020-08-06 Caroline Tice <cmtice@google.com>
6657
fe4c3d43
SM
6658 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6659 (struct dwp_sections): Update field comments. Add loclists and
6660 rnglists fields.
6661 (struct virtual_v2_dwo_sections): Rename struct to
6662 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6663 size & offset fields for loclists and rnglists.
6664 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6665 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6666 skipping dummy type units.
6667 (create_dwp_hash_table): Update the large comment above the function to
6668 discuss Version 5 DWP files as well, with references. Update all the
6669 version checks in the function to check for version 5 as well. Add new
6670 section at the end to create dwp hash table for version 5.
6671 (create_dwp_v2_section): Rename function to
6672 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6673 Add V5 to error message text.
6674 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6675 into calls to create_dwp_v2_or_v5_section.
6676 (create_dwo_unit_in_dwp_v5): New function.
6677 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6678 check for version2; add else clause to handle version 5.
6679 (open_and_init_dwo_file): Add code to check dwarf version & only call
6680 create_debug_types_hash_table (with sections.types) if version is not 5;
6681 else call create_debug_type_hash_table, with sections.info.
6682 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6683 version 5.
6684 (dwarf2_locate_v5_dwp_sections): New function.
6685 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6686 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 6687
159ed7d9
SM
66882020-08-06 Simon Marchi <simon.marchi@efficios.com>
6689
6690 * regcache.h (class regcache): Remove friend
6691 registers_changed_ptid.
6692 <regcache_thread_ptid_changed>: Remove.
6693 <regcaches>: Remove.
6694 * regcache.c (regcache::regcaches): Rename to...
6695 (regcaches): ... this. Make static.
6696 (get_thread_arch_aspace_regcache): Update.
6697 (regcache::regcache_thread_ptid_changed): Rename to...
6698 (regcache_thread_ptid_changed): ... this. Update.
6699 (class regcache_access): Remove.
6700 (regcaches_test): Update.
6701 (_initialize_regcache): Update.
6702 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6703 <forward_list>.
6704
174981ae
SM
67052020-08-06 Simon Marchi <simon.marchi@efficios.com>
6706
6707 * regcache.h (class regcache) <current_regcache>: Rename to...
6708 <regcaches>: ... this. Move doc here.
6709 * regcache.c (regcache::current_regcache) Rename to...
6710 (regcache::regcaches): ... this. Move doc to header.
6711 (get_thread_arch_aspace_regcache): Update.
6712 (regcache::regcache_thread_ptid_changed): Update.
6713 (registers_changed_ptid): Update.
6714 (class regcache_access) <current_regcache_size>: Rename to...
6715 <regcaches_size>: ... this.
6716 (current_regcache_test): Rename to...
6717 (regcaches_test): ... this.
6718 (_initialize_regcache): Update.
6719
ed908db6
VC
67202020-08-06 Victor Collod <vcollod@nvidia.com>
6721
6722 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6723
b5582ab7
KB
67242020-08-05 Kevin Buettner <kevinb@redhat.com>
6725
6726 * corelow.c (core_target::build_file_mappings): Don't output
6727 null pathname in warning.
6728
ea946b86
SM
67292020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6730
6731 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6732 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6733 gdb.dwarf2/dw2-single-line-discriminators.exp,
6734 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6735
57d02173
TT
67362020-08-05 Tom Tromey <tromey@adacore.com>
6737
6738 PR rust/26197:
6739 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6740 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6741 Fix off-by-one and type size errors in ordinary case.
6742
5555c86d
TV
67432020-08-05 Tom de Vries <tdevries@suse.de>
6744
6745 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6746 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6747
97916bfe
SM
67482020-08-04 Simon Marchi <simon.marchi@efficios.com>
6749
6750 * frame.h (frame_id_p): Return bool.
6751 (frame_id_artificial_p): Return bool.
6752 (frame_id_eq): Return bool.
6753 (has_stack_frames): Return bool.
6754 (get_selected_frame): Fix typo in comment.
6755 (get_frame_pc_if_available): Return bool.
6756 (get_frame_address_in_block_if_available): Return bool.
6757 (get_frame_func_if_available): Return bool.
6758 (read_frame_register_unsigned): Return bool.
6759 (get_frame_register_bytes): Return bool.
6760 (safe_frame_unwind_memory): Return bool.
6761 (deprecated_frame_register_read): Return bool.
6762 (frame_unwinder_is): Return bool.
6763 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6764 bool.
6765 <this_id::p>: Likewise.
6766 <prev_p>: Likewise.
6767 (frame_stash_add): Return bool.
6768 (get_frame_id): Use bool.
6769 (frame_id_build_special) Use bool.
6770 (frame_id_build_unavailable_stack): Use bool.
6771 (frame_id_build): Use bool.
6772 (frame_id_p): Return bool, use true/false instead of 1/0.
6773 (frame_id_artificial_p): Likewise.
6774 (frame_id_eq): Likewise.
6775 (frame_id_inner): Likewise.
6776 (get_frame_func_if_available): Likewise.
6777 (read_frame_register_unsigned): Likewise.
6778 (deprecated_frame_register_read): Likewise.
6779 (get_frame_register_bytes): Likewise.
6780 (has_stack_frames): Likewise.
6781 (inside_main_func): Likewise.
6782 (inside_entry_func): Likewise.
6783 (get_frame_pc_if_available): Likewise.
6784 (get_frame_address_in_block_if_available): Likewise.
6785 (frame_unwinder_is): Likewise.
6786 (safe_frame_unwind_memory): Likewise.
6787 (frame_unwind_arch): Likewise.
6788
fedfee88
SM
67892020-08-04 Simon Marchi <simon.marchi@efficios.com>
6790
6791 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6792 type to cached_copy_status.
6793 (fprintf_frame): Adjust.
6794 (get_frame_func_if_available): Adjust.
6795 (frame_cleanup_after_sniffer): Adjust.
6796
6cfa9b59
MW
67972020-08-04 Mark Wielaard <mark@klomp.org>
6798
6799 * MAINTAINERS (Write After Approval): Update email address.
6800
66d6346b
SM
68012020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6802
6803 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6804 dynamic_prop::const_val.
6805
8a6d5e35
SM
68062020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6807
6808 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6809 dynamic_prop::kind.
6810
51d6067d
SM
68112020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6812
6813 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6814
b26e2ae7
JM
68152020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6816
6817 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6818
39791af2
JM
68192020-08-04 Weimin Pan <weimin.pan@oracle.com>
6820 Jose E. Marchesi <jose.marchesi@oracle.com>
6821
6822 * configure.tgt: Add entry for bpf-*-*.
6823 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6824 (ALLDEPFILES): Add bpf-tdep.c.
6825 * bpf-tdep.c: New file.
6826 * MAINTAINERS: Add bpf target and maintainer.
6827 * NEWS: Mention the support for the new target.
6828
521894aa
TV
68292020-08-04 Tom de Vries <tdevries@suse.de>
6830
6831 PR symtab/23270
6832 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6833 Error.
6834
5d6356e9
JB
68352020-08-03 John Baldwin <jhb@FreeBSD.org>
6836
6837 * syscalls/freebsd.xml: Regenerate.
6838
0cf82b81
JB
68392020-08-03 John Baldwin <jhb@FreeBSD.org>
6840
6841 * syscalls/update-freebsd.sh: Fix usage and year range.
6842
8f34b746
TV
68432020-08-03 Tom de Vries <tdevries@suse.de>
6844
6845 PR symtab/26333
6846 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6847 DW_LNE_lo_user/DW_LNE_hi_user range.
6848
5e500d33
SM
68492020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6850
6851 PR ada/26318
6852 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6853 kind.
6854
78319c15
TBA
68552020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6856
6857 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6858
4c55e970
TBA
68592020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6860
6861 * breakpoint.c (set_breakpoint_condition): Update the condition
6862 expressions after checking that the input condition string parses
6863 successfully and does not contain junk at the end.
6864
1e620590
TBA
68652020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6866
6867 * breakpoint.c (set_breakpoint_condition): Update the
6868 condition string after parsing the new condition successfully.
6869
c8693053
RO
68702020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6871
6872 * proc-api.c (_STRUCTURED_PROC): Don't define.
6873 * proc-events.c: Likewise.
6874 * proc-flags.c: Likewise.
6875 * proc-why.c: Likewise.
6876 * procfs.c: Likewise.
6877
6878 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6879 * configure, config.in: Regenerate.
6880
5a99adb8
TV
68812020-07-30 Tom de Vries <tdevries@suse.de>
6882
6883 PR build/26320
6884 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6885 m_red/m_green/m_blue in a union.
6886
8ba83e91
TV
68872020-07-29 Tom de Vries <tdevries@suse.de>
6888
6889 PR tdep/26280
6890 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6891
f75a0693
AB
68922020-07-28 Tom Tromey <tromey@adacore.com>
6893
6894 PR symtab/26270:
6895 * symtab.h (find_pc_partial_function_sym): Declare.
6896 * cli/cli-cmds.c (disassemble_command): Use
6897 find_pc_partial_function_sym. Check asm_demangle.
6898 * blockframe.c (cache_pc_function_sym): New global.
6899 (cache_pc_function_name): Remove.
6900 (clear_pc_function_cache): Update.
6901 (find_pc_partial_function_sym): New function, from
6902 find_pc_partial_function.
6903 (find_pc_partial_function): Rewrite using
6904 find_pc_partial_function_sym.
6905
16f3242c
TT
69062020-07-28 Tom Tromey <tromey@adacore.com>
6907
6908 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6909 help. Add usage.
6910
4888741a
TT
69112020-07-28 Tom Tromey <tromey@adacore.com>
6912
6913 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6914 <DW_OP_GNU_variable_value>: Cast to address type.
6915
4d46f402
KR
69162020-07-28 Kamil Rytarowski <n54@gmx.com>
6917
6918 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6919 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6920 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6921 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6922 (nbsd_get_siginfo_type): New.
6923 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6924 (_initialize_nbsd_tdep): New.
6925
d70f978b
L
69262020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6927
6928 PR binutils/26301
6929 * configure: Regenerated.
6930
377170fa
L
69312020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6932
6933 PR binutils/26301
6934 * configure: Regenerated.
6935
43d5901d
AB
69362020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6937
6938 * python/py-frame.c: Remove 'user-regs.h' include.
6939 (frapy_read_register): Rewrite to make use of
6940 gdbpy_parse_register_id.
6941 * python/py-registers.c (gdbpy_parse_register_id): New function,
6942 moved here from python/py-unwind.c. Updated the return type, and
6943 also accepts register descriptor objects.
6944 * python/py-unwind.c: Remove 'user-regs.h' include.
6945 (pyuw_parse_register_id): Moved to python/py-registers.c.
6946 (unwind_infopy_add_saved_register): Update to use
6947 gdbpy_parse_register_id.
6948 (pending_framepy_read_register): Likewise.
6949 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6950
14fa8fb3
AB
69512020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6952
6953 * python/py-registers.c: Add 'user-regs.h' include.
6954 (register_descriptor_iter_find): New function.
6955 (register_descriptor_iterator_object_methods): New static global
6956 methods array.
6957 (register_descriptor_iterator_object_type): Add pointer to methods
6958 array.
6959
ddce1758
JB
69602020-07-27 John Baldwin <jhb@FreeBSD.org>
6961
6962 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6963 for all architectures on FreeBSD 11.3 and later.
6964
a4089f52
TT
69652020-07-27 Tom Tromey <tromey@adacore.com>
6966
6967 * gcore.h (load_corefile): Don't declare.
6968
95420d30
TV
69692020-07-27 Tom de Vries <tdevries@suse.de>
6970
6971 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6972 * config.in: Regenerate.
6973 * configure: Regenerate.
6974
05a6b8c2
EZ
69752020-07-26 Eli Zaretskii <eliz@gnu.org>
6976
6977 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6978 ws2tcpip.h. When checking whether socklen_t type is defined, use
6979 ws2tcpip.h if it is available and sys/socket.h isn't.
6980 * configure: Regenerate.
6981 * config.in: Regenerate.
6982
e79eb02f
AB
69832020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6984
6985 PR fortran/23051
6986 PR fortran/26139
6987 * valops.c (value_ind): Pass address to
6988 readjust_indirect_value_type.
6989 * value.c (readjust_indirect_value_type): Make parameter
6990 non-const, and add extra address parameter. Resolve original type
6991 before using it.
6992 * value.h (readjust_indirect_value_type): Update function
6993 signature and comment.
6994
876518dd
TV
69952020-07-25 Tom de Vries <tdevries@suse.de>
6996
6997 PR symtab/26243
6998 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6999 entries.
7000
f6720b1c
AM
70012020-07-24 Aaron Merey <amerey@redhat.com>
7002
7003 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
7004 * configure: Rebuild.
7005
513487e1
KB
70062020-07-23 Kevin Buettner <kevinb@redhat.com>
7007
7008 PR corefiles/26294
7009 * corelow.c (_initialize_corelow): Add period to help text
7010 for "maintenance print core-file-backed-mappings".
7011
e7bc9db8
PA
70122020-07-23 Pedro Alves <pedro@palves.net>
7013
7014 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
7015 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
7016 meanwhile.
7017 * frame.c (frame_cache_generation, get_frame_cache_generation):
7018 New.
7019 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
7020 (get_prev_frame_if_no_cycle): On exception, don't touch
7021 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
7022 * frame.h (get_frame_cache_generation): Declare.
7023
90fcc466
TV
70242020-07-23 Tom de Vries <tdevries@suse.de>
7025
7026 PR tui/26282
7027 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
7028 New default constructor.
7029
78344df7
AB
70302020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
7031
7032 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
7033 exclude non-statement entries.
7034
b089853a
KB
70352020-07-22 Kevin Buettner <kevinb@redhat.com>
7036
7037 * NEWS (New commands): Mention new command
7038 "maintenance print core-file-backed-mappings".
7039
09c2f5d4
KB
70402020-07-22 Kevin Buettner <kevinb@redhat.com>
7041
7042 * corelow.c (gdbcmd.h): Include.
7043 (core_target::info_proc_mappings): New method.
7044 (get_current_core_target): New function.
7045 (maintenance_print_core_file_backed_mappings): New function.
7046 (_initialize_corelow): Add core-file-backed-mappings to
7047 "maint print" commands.
7048
9c5ec5c2 70492020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 7050
9c5ec5c2
KB
7051 * linux-tdep.c (dump_note_entry_p): New function.
7052 (linux_dump_mapping_p_ftype): New typedef.
7053 (linux_find_memory_regions_full): Add new parameter,
7054 should_dump_mapping_p.
7055 (linux_find_memory_regions): Adjust call to
7056 linux_find_memory_regions_full.
7057 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
7058 call to linux_find_memory_regions_full.
7059
db082f59
KB
70602020-07-22 Kevin Buettner <kevinb@redhat.com>
7061
7062 * corelow.c (solist.h, unordered_map): Include.
7063 (class core_target): Add field m_core_file_mappings and
7064 method build_file_mappings.
7065 (core_target::core_target): Call build_file_mappings.
7066 (core_target::~core_target): Free memory associated with
7067 m_core_file_mappings.
7068 (core_target::build_file_mappings): New method.
7069 (core_target::xfer_partial): Use m_core_file_mappings
7070 for memory transfers.
7071 * linux-tdep.c (linux_read_core_file_mappings): New
7072 function.
7073 (linux_core_info_proc_mappings): Rewrite to use
7074 linux_read_core_file_mappings.
7075 (linux_init_abi): Register linux_read_core_file_mappings.
7076
7e183d27
KB
70772020-07-22 Kevin Buettner <kevinb@redhat.com>
7078
7079 * arch-utils.c (default_read_core_file_mappings): New function.
7080 * arch-utils.c (default_read_core_file_mappings): Declare.
7081 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
7082 * gdbarch.h, gdbarch.c: Regenerate.
7083
2735d421
KB
70842020-07-22 Kevin Buettner <kevinb@redhat.com>
7085
7086 PR corefiles/25631
7087 * corelow.c (core_target:xfer_partial): Revise
7088 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
7089 case after first checking the stratum beneath the core
7090 target.
7091 (has_all_memory): Return true.
7092 * target.c (raw_memory_xfer_partial): Revise comment
7093 regarding use of has_all_memory.
7094
e56cb451
KB
70952020-07-22 Kevin Buettner <kevinb@redhat.com>
7096
7097 * exec.h (section_table_xfer_memory): Revise declaration,
7098 replacing section name parameter with an optional callback
7099 predicate.
7100 * exec.c (section_table_xfer_memory): Likewise.
7101 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
7102 of section_table_xfer_memory.
7103
32fa152e
TT
71042020-07-22 Tom Tromey <tromey@adacore.com>
7105
7106 * mi/mi-cmd-stack.c (list_args_or_locals): Use
7107 lookup_symbol_search_name.
7108
a67a1c41
AB
71092020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
7110
7111 * python/py-registers.c (gdbpy_register_object_data_init): Remove
7112 redundant local variable.
7113 (gdbpy_get_register_descriptor): Extract descriptor vector as a
7114 reference, not pointer, update code accordingly.
7115
a7b4ff4f
SM
71162020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7117 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7118
7119 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
7120 * jit.c (jit_breakpoint_re_set_internal): Use the
7121 `skip_jit_symbol_lookup` field.
7122
2340e834
SM
71232020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7124 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7125
7126 * jit.c (jit_read_descriptor): Define the descriptor address once,
7127 use twice.
7128 (jit_breakpoint_deleted): Move the declaration of the loop variable
7129 `iter` into the loop header.
7130 (jit_breakpoint_re_set_internal): Move the declaration of the local
7131 variable `objf_data` to the first point of definition.
7132 (jit_event_handler): Move the declaration of local variables
7133 `code_entry`, `entry_addr`, and `objf` to their first point of use.
7134 Rename `objf` to `jited`.
7135
c1072906
SM
71362020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7137
7138 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
7139 Remove.
7140 * jit.c (get_jiter_objfile_data): Update.
7141
c8474dc3
TBA
71422020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7143 Simon Marchi <simon.marchi@polymtl.ca>
7144
7145 * jit.c (struct jit_program_space_data): Remove.
7146 (jit_program_space_key): Remove.
7147 (jiter_objfile_data::~jiter_objfile_data): Remove program space
7148 stuff.
7149 (get_jit_program_space_data): Remove.
7150 (jit_breakpoint_deleted): Iterate on all of the program space's
7151 objfiles.
7152 (jit_inferior_init): Likewise.
7153 (jit_breakpoint_re_set_internal): Likewise. Also change return
7154 type to void.
7155 (jit_breakpoint_re_set): Pass current_program_space to
7156 jit_breakpoint_re_set_internal.
7157
77208eb7
SM
71582020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7159
7160 * jit.h (struct jiter_objfile_data) <cached_code_address,
7161 jit_breakpoint>: Move to here from ...
7162 * jit.c (jit_program_space_data): ... here.
7163 (jiter_objfile_data::~jiter_objfile_data): Update.
7164 (jit_breakpoint_deleted): Update.
7165 (jit_breakpoint_re_set_internal): Update.
7166
8c1c720f
SM
71672020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7168
7169 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
7170 checks.
7171 (jit_read_descriptor): Remove NULL check.
7172 (jit_event_handler): Add an assertion.
7173
0e74a041
SM
71742020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7175
7176 * jit.h (struct jit_objfile_data): Split into...
7177 (struct jiter_objfile_data): ... this ...
7178 (struct jited_objfile_data): ... and this.
7179 * objfiles.h (struct objfile) <jit_data>: Remove.
7180 <jiter_data, jited_data>: New fields.
7181 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
7182 (jiter_objfile_data::~jiter_objfile_data): ... this.
7183 (get_jit_objfile_data): Rename to ...
7184 (get_jiter_objfile_data): ... this.
7185 (add_objfile_entry): Update.
7186 (jit_read_descriptor): Use get_jiter_objfile_data.
7187 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
7188 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
7189 (jit_inferior_exit_hook): Use objfile's jited_data field.
7190
238b5c9f
SM
71912020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7192
7193 * jit.h: Forward-declare `struct minimal_symbol`.
7194 (struct jit_objfile_data): Migrate to here from jit.c; also add a
7195 constructor, destructor, and an objfile* field.
7196 * jit.c (jit_objfile_data): Remove.
7197 (struct jit_objfile_data): Migrate from here to jit.h.
7198 (jit_objfile_data::~jit_objfile_data): New destructor
7199 implementation with code moved from free_objfile_data.
7200 (free_objfile_data): Delete.
7201 (get_jit_objfile_data): Update to use the jit_data field of objfile.
7202 (jit_find_objf_with_entry_addr): Ditto.
7203 (jit_inferior_exit_hook): Ditto.
7204 (_initialize_jit): Remove the call to
7205 register_objfile_data_with_cleanup.
7206 * objfiles.h (struct objfile) <jit_data>: New field.
7207
fe053b9e
TBA
72082020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7209
7210 * jit.h: Forward-declare `struct objfile`.
7211 (jit_event_handler): Add a second parameter, the JITer objfile.
7212 * jit.c (jit_read_descriptor): Change the signature to take the
7213 JITer objfile as an argument instead of the jit_program_space_data.
7214 (jit_inferior_init): Update the call to jit_read_descriptor.
7215 (jit_event_handler): Use the new JITer objfile argument when calling
7216 jit_read_descriptor.
7217 * breakpoint.c (handle_jit_event): Update the call to
7218 jit_event_handler to pass the JITer objfile.
7219
4cec0c66
JB
72202020-07-21 John Baldwin <jhb@FreeBSD.org>
7221
7222 * gdbarch.c: Regenerate.
7223 * gdbarch.h: Regenerate.
7224 * gdbarch.sh (handle_segmentation_fault): Remove method.
7225 * infrun.c (handle_segmentation_fault): Remove.
7226 (print_signal_received_reason): Remove call to
7227 handle_segmentation_fault.
7228
0e42f66a
JB
72292020-07-21 John Baldwin <jhb@FreeBSD.org>
7230
7231 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
7232 Rename to sparc64_linux_report_signal_info and add siggnal
7233 argument.
7234 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
7235 instead of sparc64_linux_handle_segmentation_fault.
7236
77bdfeb2
JB
72372020-07-21 John Baldwin <jhb@FreeBSD.org>
7238
7239 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
7240 i386_linux_report_signal_info instead of
7241 i386_linux_handle_segmentation_fault.
7242 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
7243 to i386_linux_report_signal_info and add siggnal argument.
7244 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
7245 of i386_linux_handle_segmentation_fault.
7246 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
7247 to i386_linux_report_signal_info and add siggnal argument.
7248
ad97bfc5
JB
72492020-07-21 John Baldwin <jhb@FreeBSD.org>
7250
7251 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
7252 hook if present.
7253
272bb05c
JB
72542020-07-21 John Baldwin <jhb@FreeBSD.org>
7255
7256 * gdbarch.c: Regenerate.
7257 * gdbarch.h: Regenerate.
7258 * gdbarch.sh (report_signal_info): New method.
7259 * infrun.c (print_signal_received_reason): Invoke gdbarch
7260 report_signal_info hook if present.
7261
baf8791e
AB
72622020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7263
7264 * python/py-registers.c : Add 'unordered_map' include.
7265 (gdbpy_new_reggroup): Renamed to...
7266 (gdbpy_get_reggroup): ...this. Update to only create register
7267 group descriptors when needed.
7268 (gdbpy_reggroup_iter_next): Update.
7269
f7306dac
AB
72702020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7271
7272 * python/py-registers.c (gdbpy_register_object_data): New static
7273 global.
7274 (gdbpy_register_object_data_init): New function.
7275 (gdbpy_new_register_descriptor): Renamed to...
7276 (gdbpy_get_register_descriptor): ...this, and update to reuse
7277 existing register descriptors where possible.
7278 (gdbpy_register_descriptor_iter_next): Update.
7279 (gdbpy_initialize_registers): Register new gdbarch data.
7280
05c309a8
SM
72812020-07-21 Simon Marchi <simon.marchi@efficios.com>
7282
7283 * linux-nat.c (stopped_pids): Make static.
7284
d1fd641e
SM
72852020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
7286
7287 PR ada/26235
7288 * gdbtypes.c (ada_discrete_type_low_bound,
7289 ada_discrete_type_high_bound): Handle undefined bounds.
7290
1de14d77
KR
72912020-07-21 Kamil Rytarowski <n54@gmx.com>
7292
7293 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
7294 declaration.
7295 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
7296 function.
7297
ed810cc7
JB
72982020-07-20 John Baldwin <jhb@FreeBSD.org>
7299
7300 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
7301 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
7302 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
7303 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
7304 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
7305 method.
7306
ae5369e7
LC
73072020-07-20 Ludovic Courtès <ludo@gnu.org>
7308
7309 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
7310 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
7311 which are deprecated in Guile 3.0.
7312 * configure.ac (try_guile_versions): Add "guile-3.0".
7313 * configure (try_guile_versions): Regenerate.
7314 * NEWS: Update entry.
7315
68cf161c
LC
73162020-07-20 Ludovic Courtès <ludo@gnu.org>
7317 Doug Evans <dje@google.com>
7318
7319 PR gdb/21104
7320 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
7321 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
7322 USING_GUILE_BEFORE_2_2.
7323 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
7324 Change type to 'scm_t_port_type *'.
7325 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
7326 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
7327 parameter and honor it. Update callers.
7328 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
7329 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
7330 functions.
7331 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
7332 USING_GUILE_BEFORE_2_2.
7333 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
7334 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
7335 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
7336 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
7337 and 'SCM_PORT_TYPE'.
7338 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
7339 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
7340 (gdbscm_memory_port_read, gdbscm_memory_port_write)
7341 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
7342 [!USING_GUILE_BEFORE_2_2]: New functions.
7343 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
7344 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
7345 'gdbscm_memory_port_read'.
7346 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
7347 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
7348 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
7349 function.
7350 (ioscm_init_memory_port): Remove.
7351 (ioscm_init_memory_port_stream): New function
7352 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
7353 function.
7354 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7355 Return scm_from_uint (0).
7356 (gdbscm_set_memory_port_read_buffer_size_x)
7357 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7358 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7359 Return scm_from_uint (0).
7360 (gdbscm_set_memory_port_write_buffer_size_x)
7361 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7362 * configure.ac (try_guile_versions): Add "guile-2.2".
7363 * configure: Regenerate.
7364 * NEWS: Add entry.
7365
aee91db3
TT
73662020-07-18 Tom Tromey <tom@tromey.com>
7367
7368 * linux-nat.c (linux_multi_process): Remove.
7369 (linux_nat_target::supports_multi_process): Return true.
7370
0e267416
AB
73712020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7372
7373 * arch/riscv.c (riscv_tdesc_cache): Change map type.
7374 (riscv_lookup_target_description): Return pointer out of
7375 unique_ptr.
7376 * target-descriptions.c (allocate_target_description): Add
7377 comment.
7378 (target_desc_deleter::operator()): Likewise.
7379 * target-descriptions.h (struct target_desc_deleter): Moved to
7380 gdbsupport/tdesc.h.
7381 (target_desc_up): Likewise.
7382
f80c8ec4
TT
73832020-07-17 Tom Tromey <tromey@adacore.com>
7384
7385 * linux-nat.c (linux_nat_target::supports_non_stop)
7386 (linux_nat_target::always_non_stop_p): Use "true".
7387 (linux_nat_target::supports_disable_randomization): Use "true" and
7388 "false".
7389
d0ce17d8
CT
73902020-07-16 Caroline Tice <cmtice@google.com>
7391
7392 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
7393 (RNGLIST_HEADER_SIZE64): New constant definition.
7394 (struct dwop_section_names): Add rnglists_dwo.
7395 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
7396 (struct loclist_header): Rename to 'loclists_rnglists_header'.
7397 (struct dwo_sections): Add rnglists field.
7398 (read_attribut_reprocess): Add tag parameter.
7399 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
7400 (cu_debug_rnglists_section): New function (decl & definition).
7401 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
7402 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
7403 die whose range is being checked; get rnglist section from
7404 cu_debug_rnglists_section, to get from either objfile or dwo file as
7405 appropriate. Add cases for DW_RLE_base_addressx,
7406 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
7407 the base address to DW_RLE_offset_pairs (not to all ranges), moving
7408 test inside if-condition and updating complaint message.
7409 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
7410 dwarf2_rnglists_process.
7411 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
7412 dwarf2_ranges_process.
7413 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
7414 need_ranges_base and update comment appropriately. Also pass die tag
7415 to dwarf2_ranges_read.
7416 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
7417 need_ranges_base and update comment appropriately. Also pass die tag
7418 to dwarf2_ranges_process.
7419 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
7420 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
7421 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
7422 need_ranges_base and update comment appropriately. Also pass die tag
7423 to read_attribute_reprocess and dwarf2_ranges_read.
7424 (read_loclist_header): Rename function to read_loclists_rnglists_header,
7425 and update function comment appropriately.
7426 (read_loclist_index): Call read_loclists_rnglists_header instead of
7427 read_loclist_header.
7428 (read_rnglist_index): New function.
7429 (read_attribute_reprocess): Add tag parameter. Add code for
7430 DW_FORM_rnglistx, passing tag to read_rnglist_index.
7431 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
7432
3dcc261c
AB
74332020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
7434
7435 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
7436 being resolved.
7437
ccb9eba6
AB
74382020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
7439
7440 * arch-utils.c (show_architecture): Update formatting of messages.
7441
cf88be68
SM
74422020-07-12 Simon Marchi <simon.marchi@efficios.com>
7443
7444 * gdbtypes.h (struct type) <bounds>: Handle array and string
7445 types.
7446 * ada-lang.c (assign_aggregate): Use type::bounds on
7447 array/string type.
7448 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
7449 * c-varobj.c (c_number_of_children): Likewise.
7450 (c_describe_child): Likewise.
7451 * eval.c (evaluate_subexp_for_sizeof): Likewise.
7452 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
7453 (f_type_print_base): Likewise.
7454 * f-valprint.c (f77_array_offset_tbl): Likewise.
7455 (f77_get_upperbound): Likewise.
7456 (f77_print_array_1): Likewise.
7457 * guile/scm-type.c (gdbscm_type_range): Likewise.
7458 * m2-typeprint.c (m2_array): Likewise.
7459 (m2_is_long_set_of_type): Likewise.
7460 * m2-valprint.c (get_long_set_bounds): Likewise.
7461 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7462 * python/py-type.c (typy_range): Likewise.
7463 * rust-lang.c (rust_internal_print_type): Likewise.
7464 * type-stack.c (type_stack::follow_types): Likewise.
7465 * valarith.c (value_subscripted_rvalue): Likewise.
7466 * valops.c (value_cast): Likewise.
7467
509971ae
SM
74682020-07-12 Simon Marchi <simon.marchi@efficios.com>
7469
7470 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
7471 callers to use the equivalent accessor methods.
7472
107406b7
SM
74732020-07-12 Simon Marchi <simon.marchi@efficios.com>
7474
7475 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
7476 (struct type) <bit_stride>: New method.
7477 (TYPE_BIT_STRIDE): Remove.
7478 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
7479
bb789949
SM
74802020-07-12 Simon Marchi <simon.marchi@efficios.com>
7481
7482 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
7483 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
7484 callers to use the equivalent accessor methods instead.
7485
39498edb
SM
74862020-07-12 Simon Marchi <simon.marchi@efficios.com>
7487
7488 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
7489 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
7490 callers to use the equivalent accessor methods instead.
7491
3b606f38
SM
74922020-07-12 Simon Marchi <simon.marchi@efficios.com>
7493
7494 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
7495 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
7496 to use dynamic_prop::kind.
7497
064d9cb9
SM
74982020-07-12 Simon Marchi <simon.marchi@efficios.com>
7499
7500 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
7501 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
7502 to get the bound property's kind and check against
7503 PROP_UNDEFINED.
7504
5537ddd0
SM
75052020-07-12 Simon Marchi <simon.marchi@efficios.com>
7506
7507 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
7508 all callers to use type::range_bounds followed by
7509 dynamic_prop::{low,high}.
7510
8c2e4e06
SM
75112020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7512
7513 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
7514 const_val, set_const_val, baton, set_locexpr, set_loclist,
7515 set_addr_offset, variant_parts, set_variant_parts,
7516 original_type, set_original_type>: New methods.
7517 <kind>: Rename to...
7518 <m_kind>: ... this. Update all users to use the new methods
7519 instead.
7520 <data>: Rename to...
7521 <m_data>: ... this. Update all users to use the new methods
7522 instead.
7523
7c6f2712
SM
75242020-07-12 Simon Marchi <simon.marchi@efficios.com>
7525
7526 * gdbtypes.c (get_discrete_bounds): Return failure if
7527 the range type's bounds are not both defined and constant
7528 values.
7529 (get_array_bounds): Update comment. Remove undefined bound check.
7530
599088e3
SM
75312020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7532
7533 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
7534 the type::bounds method directly.
7535
c4dfcb36
SM
75362020-07-12 Simon Marchi <simon.marchi@efficios.com>
7537
7538 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
7539 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
7540 are used to set the range type's bounds to use set_bounds.
7541
0a278aa7
PW
75422020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7543
7544 * exec.c (_initialize_exec): Update exec-file-mismatch help.
7545
cce20f10
PA
75462020-07-10 Pedro Alves <pedro@palves.net>
7547
7548 * gdbthread.h (inferior_ref): Define.
7549 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
7550 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
7551 * thread.c
7552 (scoped_restore_current_thread::restore):
7553 Adjust to gdb::ref_ptr.
7554 (scoped_restore_current_thread::~scoped_restore_current_thread):
7555 Remove manual decref handling.
7556 (scoped_restore_current_thread::scoped_restore_current_thread):
7557 Adjust to use
7558 inferior_ref::new_reference/thread_info_ref::new_reference.
7559 Incref the thread before calling get_frame_id instead of after.
7560 Let TARGET_CLOSE_ERROR propagate.
7561
6d7aa592
PA
75622020-07-10 Pedro Alves <pedro@palves.net>
7563
7564 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
7565 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
7566 NOT_AVAILABLE_ERROR.
7567 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7568 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7569
b3e3a4c1
SM
75702020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7571 Pedro Alves <pedro@palves.net>
7572
7573 PR gdb/26199
7574 * infrun.c (threads_are_resumed_pending_p): Delete.
7575 (do_target_wait): Remove threads_are_executing and
7576 threads_are_resumed_pending_p checks from the inferior_matches
7577 lambda. Update comments.
7578
d6cc5d98
PA
75792020-07-10 Pedro Alves <pedro@palves.net>
7580
7581 PR gdb/26199
7582 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7583 executing threads.
7584
7d3badc6
PA
75852020-07-10 Pedro Alves <pedro@palves.net>
7586
7587 PR gdb/26199
7588 * infrun.c (handle_no_resumed): Handle multiple targets.
7589
42bd97a6
PA
75902020-07-10 Pedro Alves <pedro@palves.net>
7591
7592 PR gdb/26199
7593 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7594 target_is_async_p.
7595
43667cc6
PA
75962020-07-10 Pedro Alves <pedro@palves.net>
7597
7598 PR gdb/26199
7599 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7600 threads, not all threads.
7601
96118d11
PA
76022020-07-10 Pedro Alves <pedro@palves.net>
7603
7604 PR gdb/26199
7605 * remote.c (remote_target::open_1): Pass remote target pointer as
7606 data to create_async_event_handler.
7607 (remote_async_inferior_event_handler): Mark async event handler
7608 before returning if the remote target still has either pending
7609 events or unacknowledged notifications.
7610
54904d81
JB
76112020-07-10 John Baldwin <jhb@FreeBSD.org>
7612
7613 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7614 declaration.
7615 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7616 function.
7617
f37e5866
JB
76182020-07-09 John Baldwin <jhb@FreeBSD.org>
7619
7620 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7621 inferior_ptid.
7622
fc238d4a
JB
76232020-07-09 John Baldwin <jhb@FreeBSD.org>
7624
7625 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7626 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7627 AT_FREEBSD_PS_STRINGS.
7628
6e2469ff
HD
76292020-07-08 Hannes Domani <ssbssa@yahoo.de>
7630
7631 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7632 of debugfile path on Windows.
7633
d1076c41
JB
76342020-07-08 John Baldwin <jhb@FreeBSD.org>
7635
7636 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7637 argument to 'data'.
7638
15f3b077
TT
76392020-07-08 Tom Tromey <tromey@adacore.com>
7640
7641 * ada-lang.c (ada_exception_message_1): Use read_memory.
7642
9fc501fd
AB
76432020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7644
7645 PR python/22748
7646 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7647 special handling for inline frames.
7648 * findvar.c (value_of_register_lazy): Skip inline frames when
7649 creating lazy register values.
7650 * frame.c (frame_id_computed_p): Delete definition.
7651 * frame.h (frame_id_computed_p): Delete declaration.
7652
64cb3757
AB
76532020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7654
7655 * NEWS: Mention additions to Python API.
7656 * python/py-arch.c (archpy_register_groups): New function.
7657 (arch_object_methods): Add 'register_groups' method.
7658 * python/py-registers.c (reggroup_iterator_object): New struct.
7659 (reggroup_object): New struct.
7660 (gdbpy_new_reggroup): New function.
7661 (gdbpy_reggroup_to_string): New function.
7662 (gdbpy_reggroup_name): New function.
7663 (gdbpy_reggroup_iter): New function.
7664 (gdbpy_reggroup_iter_next): New function.
7665 (gdbpy_new_reggroup_iterator): New function
7666 (gdbpy_initialize_registers): Register new types.
7667 (reggroup_iterator_object_type): Define new Python type.
7668 (gdbpy_reggroup_getset): New static global.
7669 (reggroup_object_type): Define new Python type.
7670 * python/python-internal.h
7671
0f767f94
AB
76722020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7673
7674 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7675 * python/py-arch.c (archpy_registers): New function.
7676 (arch_object_methods): Add 'registers' method.
7677 * python/py-registers.c: New file.
7678 * python/python-internal.h
7679 (gdbpy_new_register_descriptor_iterator): Declare.
7680 (gdbpy_initialize_registers): Declare.
7681 * python/python.c (do_start_initialization): Call
7682 gdbpy_initialize_registers.
7683 * NEWS: Mention additions to the Python API.
7684
87dbc774
AB
76852020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7686
7687 * NEWS: Mention new Python API method.
7688 * python/py-unwind.c (pending_framepy_architecture): New function.
7689 (pending_frame_object_methods): Add architecture method.
7690
3bc98c0c
AB
76912020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7692
7693 * gdbarch.c: Regenerate.
7694 * gdbarch.h: Regenerate.
7695 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7696 (gdbarch_data): Use internal_error for the case where
7697 deprecated_set_gdbarch_data was originally needed.
7698 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7699 and use passed in obstack.
7700 (libunwind_frame_set_descr): Should no longer get back NULL from
7701 gdbarch_data.
7702 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7703 type.
7704 * user-regs.c (user_regs_init): Update parameters, and use passed
7705 in obstack.
7706 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7707 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7708
d8cc8af6
TV
77092020-07-06 Tom de Vries <tdevries@suse.de>
7710
7711 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7712 End-Of-Sequence in lte_is_less_than.
7713 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7714 "gdb: Don't reorder line table entries too much when sorting".
7715
947f7597
TV
77162020-07-06 Tom de Vries <tdevries@suse.de>
7717
7718 PR tui/26205
7719 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7720
1e7c1b22
TV
77212020-07-05 Tom de Vries <tdevries@suse.de>
7722
7723 PR build/26187
7724 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7725 std::uncaught_exceptions instead of deprecated
7726 std::uncaught_exception.
7727
a36158ec
SM
77282020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7729
7730 * macroexp.h (macro_stringify): Return
7731 gdb::unique_xmalloc_ptr<char>.
7732 * macroexp.c (macro_stringify): Likewise.
7733 * macrotab.c (fixup_definition): Update.
7734
14d960c8
SM
77352020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7736
7737 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7738 (lex_one_token): Update.
7739 * macroexp.c (struct macro_buffer) <release>: Return
7740 gdb::unique_xmalloc_ptr<char>.
7741 (macro_stringify): Update.
7742 (macro_expand): Update.
7743 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7744 * macroexp.h (macro_expand_next): Likewise.
7745
211d5b1c
SM
77462020-07-02 Simon Marchi <simon.marchi@efficios.com>
7747
7748 * macroexp.h (macro_lookup_ftype): Remove.
7749 (macro_expand, macro_expand_once, macro_expand_next): Remove
7750 lookup function parameters, add scope parameter.
7751 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7752 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7753 * macroscope.h (standard_macro_lookup): Change parameter type
7754 to macro_scope.
7755 * macroscope.c (standard_macro_lookup): Likewise.
7756 * c-exp.y (lex_one_token): Update.
7757 * macrocmd.c (macro_expand_command): Likewise.
7758 (macro_expand_once_command): Likewise.
7759
b1a35af2
SM
77602020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7761
7762 * inf-loop.c (inferior_event_handler): Remove client_data param.
7763 * inf-loop.h (inferior_event_handler): Likewise.
7764 * infcmd.c (step_1): Adjust.
7765 * infrun.c (proceed): Adjust.
7766 (fetch_inferior_event): Remove client_data param.
7767 (infrun_async_inferior_event_handler): Adjust.
7768 * infrun.h (fetch_inferior_event): Remove `void *` param.
7769 * linux-nat.c (handle_target_event): Adjust.
7770 * record-btrace.c (record_btrace_handle_async_inferior_event):
7771 Adjust.
7772 * record-full.c (record_full_async_inferior_event_handler):
7773 Adjust.
7774 * remote.c (remote_async_inferior_event_handler): Adjust.
7775
1cdf9e33
TT
77762020-07-01 Tom Tromey <tom@tromey.com>
7777
7778 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7779 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7780
32c1e210
TT
77812020-07-01 Tom Tromey <tom@tromey.com>
7782
7783 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7784 tui_gen_win_info.
7785 (tui_win_info::make_window): Merge with
7786 tui_gen_win_info::make_window.
7787 (tui_win_info::make_visible): Move from tui_gen_win_info.
7788 * tui/tui-win.c (tui_win_info::max_width): Move from
7789 tui_gen_win_info.
7790 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7791 type.
7792 <window_factory>: Likewise.
7793 * tui/tui-layout.c (tui_win_info::resize): Move from
7794 tui_gen_win_info.
7795 (make_standard_window): Change return type.
7796 (get_locator_window, tui_get_window_by_name): Likewise.
7797 (tui_layout_window::apply): Remove a cast.
7798 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7799 (struct tui_win_info): Merge with tui_gen_win_info.
7800 (struct tui_gen_win_info): Remove.
7801
a30cb6da
TT
78022020-07-01 Tom Tromey <tom@tromey.com>
7803
7804 * tui/tui-stack.h (struct tui_locator_window): Derive from
7805 tui_win_info.
7806 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7807 <can_box>: New method.
7808
1eb2161f
TT
78092020-07-01 Tom Tromey <tom@tromey.com>
7810
7811 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7812
7134f2eb
TT
78132020-07-01 Tom Tromey <tom@tromey.com>
7814
7815 * tui/tui-regs.c (tui_data_window::display_registers_from)
7816 (tui_data_window::display_registers_from)
7817 (tui_data_window::first_data_item_displayed)
7818 (tui_data_window::delete_data_content_windows): Update.
7819 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7820 Remove.
7821 (tui_data_window::check_register_values): Update.
7822 (tui_data_item_window::rerender): Add parameters. Update.
7823 (tui_data_item_window::refresh_window): Remove.
7824 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7825 virtual.
7826 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7827 tui_gen_win_info.
7828 <refresh_window, max_height, min_height>: Remove.
7829 <rerender>: Add parameters.
7830 <x, y, visible>: New members.
7831 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7832 <m_item_width>: New member.
7833
22b7b041
TT
78342020-07-01 Tom Tromey <tom@tromey.com>
7835
7836 * tui/tui-regs.c (tui_data_window::show_register_group)
7837 (tui_data_window::check_register_values): Update.
7838 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7839 from item_no.
7840
c9753adb
TT
78412020-07-01 Tom Tromey <tom@tromey.com>
7842
7843 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7844 useless "if".
7845
9ab26b4a
TT
78462020-07-01 Tom Tromey <tom@tromey.com>
7847
7848 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7849 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7850
e555083f
TT
78512020-07-01 Tom Tromey <tom@tromey.com>
7852
7853 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7854 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7855 (struct tui_line_or_address): Move from tui-data.h.
7856 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7857 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7858 (tui_cmd_window, tui_source_window_base, tui_source_window)
7859 (tui_disasm_window): Don't declare.
7860 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7861 to tui-winsource.h.
7862 (SINGLE_KEY): Move to tui-stack.c.
7863
7a02bab7
TT
78642020-07-01 Tom Tromey <tom@tromey.com>
7865
7866 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7867 std::string.
7868 * tui/tui-regs.c (class tab_expansion_file): New.
7869 (tab_expansion_file::write): New method.
7870 (tui_register_format): Change return type. Use
7871 tab_expansion_file.
7872 (tui_get_register, tui_data_window::display_registers_from)
7873 (tui_data_item_window::rerender): Update.
7874 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7875 * tui/tui-io.c (tui_expand_tabs): Remove.
7876
ea68593b
TT
78772020-07-01 Tom Tromey <tom@tromey.com>
7878
7879 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7880
a8caed5d
FS
78812020-07-01 Fangrui Song <maskray@google.com>
7882
7883 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7884
9cdf9820
AKS
78852020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7886
7887 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7888 forms for DW_AT_associated and DW_AT_allocated attributes,
7889 which is already checked in function attr_to_dynamic_prop.
7890
a1520ad8
TT
78912020-06-30 Tom Tromey <tromey@adacore.com>
7892
7893 * dwarf2/read.c (quirk_rust_enum): Correctly call
7894 alloc_rust_variant for default-less enum.
7895
5ac58899
TT
78962020-06-30 Tom Tromey <tromey@adacore.com>
7897
7898 PR build/26183:
7899 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7900 gdb::to_string.
7901
19b187a9
SM
79022020-06-29 Simon Marchi <simon.marchi@efficios.com>
7903
7904 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7905 * gdbarch.h: Re-generate.
7906
cd4c4c07
TT
79072020-06-28 Tom Tromey <tom@tromey.com>
7908
7909 * command.h (cmd_types): Remove.
7910 (cmd_type): Don't declare.
7911 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7912 typedef.
7913 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7914 * cli/cli-decode.c (cmd_type): Remove.
7915
05779d57
PA
79162020-06-27 Pedro Alves <palves@redhat.com>
7917
7918 * fork-child.c (prefork_hook): Adjust.
7919 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7920 Delete.
7921 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7922 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7923 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7924 Remove declarations.
7925 (struct inferior) <set_tty, tty>: New methods.
7926 (struct inferior) <terminal>: Rename to ...
7927 (struct inferior) <m_terminal>: ... this and make private.
7928 * main.c (captured_main_1): Adjust.
7929 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7930 (mi_cmd_inferior_tty_show): Adjust.
7931 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7932 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7933
1776e3e5
NA
79342020-06-26 Nick Alcock <nick.alcock@oracle.com>
7935
7936 * configure.ac: Add --enable-libctf: handle --disable-static
7937 properly.
7938 * acinclude.m4: sinclude ../config/enable.m4.
7939 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7940 (LIBCTF): Substitute in.
7941 (CTF_DEPS): New, likewise.
7942 (CLIBS): libctf needs symbols from libbfd: move earlier.
7943 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7944 flags.
7945 * ctfread.c: Surround in ENABLE_LIBCTF.
7946 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7947 * configure: Regenerate.
7948 * config.in: Likewise.
7949
58373b80
SM
79502020-06-25 Simon Marchi <simon.marchi@efficios.com>
7951
7952 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7953
277474ee
SM
79542020-06-25 Simon Marchi <simon.marchi@efficios.com>
7955
7956 * inferior.h (struct inferior) <terminal>: Change type to
7957 gdb::unique_xmalloc_ptr<char>.
7958 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7959 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7960 field, adjust to unique pointer.
7961 (get_inferior_io_terminal): Adjust to unique pointer.
7962
6d74da72
AB
79632020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7964
7965 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7966 registers, not just the known core set of registers.
7967
2e52d038
AB
79682020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7969
7970 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7971 fflags, frm, and fcsr registers.
7972 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7973 restore groups.
7974 (riscv_tdesc_unknown_reg): New function.
7975 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7976 tdesc_use_registers.
7977 * riscv-tdep.h (struct gdbarch_tdep): Add
7978 unknown_csrs_first_regnum, unknown_csrs_count,
7979 duplicate_fflags_regnum, duplicate_frm_regnum, and
7980 duplicate_fcsr_regnum fields.
7981
be64fd07
AB
79822020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7983
7984 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7985 callback, use the callback (when not null) to help number unknown
7986 registers.
7987 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7988 (tdesc_use_registers): Add extra parameter to declaration.
7989
3b9fce96
AB
79902020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7991
7992 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7993 in the file.
7994 (class riscv_pending_register_alias): Likewise.
7995 (riscv_register_feature::register_info): Change 'required_p' field
7996 to 'required', and change its type. Add 'check' member function.
7997 (riscv_register_feature::register_info::check): Define new member
7998 function.
7999 (riscv_xreg_feature): Change initialisation of 'required' field.
8000 (riscv_freg_feature): Likewise.
8001 (riscv_virtual_feature): Likewise.
8002 (riscv_csr_feature): Likewise.
8003 (riscv_check_tdesc_feature): Take extra parameter, the csr
8004 tdesc_feature, rewrite the function to use the new
8005 riscv_register_feature::register_info::check function.
8006 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
8007
865bad26
AB
80082020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8009
8010 * features/Makefile: Remove all references to the deleted files
8011 below.
8012 * features/riscv/32bit-csr.c: Deleted.
8013 * features/riscv/32bit-csr.xml: Deleted.
8014 * features/riscv/64bit-csr.c: Deleted.
8015 * features/riscv/64bit-csr.xml: Deleted.
8016 * features/riscv/rebuild-csr-xml.sh: Deleted.
8017
ed69cbc8
AB
80182020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8019
8020 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
8021 whitespace error for declaration of names member variable.
8022 (struct riscv_register_feature): Add new prefer_first_name member
8023 variable, and fix whitespace error in declaration of registers.
8024 (riscv_xreg_feature): Initialize prefer_first_name field.
8025 (riscv_freg_feature): Likewise.
8026 (riscv_virtual_feature): Likewise.
8027 (riscv_csr_feature): Likewise.
8028 (riscv_register_name): Expand on comments. Remove register name
8029 modifications for CSR and virtual registers.
8030
4445e8f5
AB
80312020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8032
8033 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
8034 errors.
8035
767a879e
AB
80362020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8037
8038 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
8039 riscv-opc.h.
8040 (class riscv_pending_register_alias): New class.
8041 (riscv_check_tdesc_feature): Take vector of pending aliases and
8042 populate it as appropriate.
8043 (riscv_setup_register_aliases): Delete.
8044 (riscv_gdbarch_init): Create vector of pending aliases and pass it
8045 to riscv_check_tdesc_feature in all cases. Use the vector to
8046 create the register aliases.
8047
bb6e55f3
RO
80482020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8049
8050 * sol2-tdep.c (sol2_static_transform_name): Remove.
8051 (sol2_init_abi): Don't register it.
8052 * gdbarch.sh (static_transform_name): Remove.
8053 * gdbarch.c, gdbarch.h: Regenerate.
8054
8055 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
8056 gdbarch_static_transform_name.
8057 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
8058 * stabsread.c (define_symbol) <'X'>: Remove.
8059 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
8060 handling.
8061 <'V'>: Likewise.
8062 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
8063 <'S'>: Remove call to gdbarch_static_transform_name.
8064
c6d36836
RO
80652020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8066
8067 * procfs.c (procfs_pre_trace): New function.
8068 (procfs_target::create_inferior): Pass it to fork_inferior.
8069
a7e6196b
RO
80702020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8071
8072 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
8073 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
8074 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
8075 sol2-tdep.o, sparc-sol2-tdep.o.
8076 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
8077 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
8078 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
8079 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
8080
d412e696
RO
80812020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8082
8083 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
8084 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
8085 Call sol2_init_abi.
8086 Remove calls to set_gdbarch_skip_solib_resolver,
8087 set_gdbarch_core_pid_to_str.
8088 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
8089 (i386_sol2_static_transform_name): Remove.
8090 (i386_sol2_init_abi): Call sol2_init_abi.
8091 Remove calls to set_gdbarch_sofun_address_maybe_missing,
8092 set_gdbarch_static_transform_name,
8093 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
8094 Use sol2_sigtramp_p.
8095 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
8096 (sol2_sigtramp_p): New function.
8097 (sol2_static_transform_name): New function.
8098 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
8099 (sol2_init_abi): New function.
8100 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
8101 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
8102 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
8103 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
8104 (sparc_sol2_static_transform_name): Remove.
8105 (sparc32_sol2_init_abi): Call sol2_init_abi.
8106 Remove calls to set_gdbarch_sofun_address_maybe_missing,
8107 set_gdbarch_static_transform_name,
8108 set_gdbarch_skip_solib_resolver,
8109 set_gdbarch_core_pid_to_str.
8110 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
8111 (sparc_sol2_static_transform_name): Remove
8112 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
8113 call sol2_sigtramp_p.
8114 (sparc64_sol2_init_abi): Call sol2_init_abi.
8115 Remove calls to set_gdbarch_sofun_address_maybe_missing,
8116 set_gdbarch_static_transform_name,
8117 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
8118
a8654e7d
PW
81192020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8120
8121 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
8122 * exec.c (validate_exec_file): If from_tty, set both
8123 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
8124 * symfile.c (symbol_file_add_with_addrs): if always_confirm
8125 and from_tty, unconditionally ask a confirmation.
8126
caa7fd04
AB
81272020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8128
8129 * target-descriptions.c (tdesc_architecture_name): Protect against
8130 NULL pointer dereference.
8131 (maint_print_xml_tdesc_cmd): New function.
8132 (_initialize_target_descriptions): Register new 'maint print
8133 xml-tdesc' command and give it the filename completer.
8134 * NEWS: Mention new 'maint print xml-tdesc' command.
8135
fbf42f4e
AB
81362020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8137
8138 * target-descriptions.c (class tdesc_compatible_info): New class.
8139 (struct target_desc): Change type of compatible vector.
8140 (tdesc_compatible_p): Update for change in type of
8141 target_desc::compatible.
8142 (tdesc_compatible_info_list): New function.
8143 (tdesc_compatible_info_arch_name): New function.
8144 (tdesc_add_compatible): Update for change in type of
8145 target_desc::compatible.
8146 (print_c_tdesc::visit_pre): Likewise.
8147
20821f4e
AB
81482020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8149
8150 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
8151 whitespace to underscore.
8152 (maint_print_c_tdesc_cmd): Use fake filename for target
8153 descriptions that came from the target.
8154 (_initialize_target_descriptions): Add filename command completion
8155 for 'maint print c-tdesc'.
8156
1fb5ee62
SM
81572020-06-23 Simon Marchi <simon.marchi@efficios.com>
8158
8159 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
8160 lines.
8161
fc3ecb3e
SM
81622020-06-23 Simon Marchi <simon.marchi@efficios.com>
8163
8164 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
8165 lines.
8166 (dwarf2_find_location_expression): Likewise.
8167 (call_site_parameter_matches): Likewise.
8168 (dwarf2_compile_expr_to_ax): Likewise.
8169 (disassemble_dwarf_expression): Likewise.
8170 (loclist_describe_location): Likewise.
8171
236ef034
PA
81722020-06-23 Pedro Alves <palves@redhat.com>
8173
8174 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
8175 progspace-and-thread.h. Include scoped-mock-context.h instead.
8176 (register_to_value_test): Use scoped_mock_context.
8177 * regcache.c: Include "scoped-mock-context.h".
8178 (cooked_read_test): Don't error out if a target is already pushed.
8179 Use scoped_mock_context. Adjust.
8180 * scoped-mock-context.h: New file.
8181
39e7ecca
AB
81822020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8183
8184 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
8185 initializer.
8186 (ada_language::is_string_type_p): New member function.
8187 * c-lang.c (c_language_data): Delete la_is_string_type_p
8188 initializer.
8189 (cplus_language_data): Likewise.
8190 (asm_language_data): Likewise.
8191 (minimal_language_data): Likewise.
8192 * d-lang.c (d_language_data): Likewise.
8193 * f-lang.c (f_is_string_type_p): Delete function, implementation
8194 moved to f_language::is_string_type_p.
8195 (f_language_data): Delete la_is_string_type_p initializer.
8196 (f_language::is_string_type_p): New member function,
8197 implementation from f_is_string_type_p.
8198 * go-lang.c (go_is_string_type_p): Delete function, implementation
8199 moved to go_language::is_string_type_p.
8200 (go_language_data): Delete la_is_string_type_p initializer.
8201 (go_language::is_string_type_p): New member function,
8202 implementation from go_is_string_type_p.
8203 * language.c (language_defn::is_string_type_p): Define new member
8204 function.
8205 (default_is_string_type_p): Make static, add comment copied from
8206 header file.
8207 (unknown_language_data): Delete la_is_string_type_p initializer.
8208 (unknown_language::is_string_type_p): New member function.
8209 (auto_language_data): Delete la_is_string_type_p initializer.
8210 (auto_language::is_string_type_p): New member function.
8211 * language.h (language_data): Delete la_is_string_type_p field.
8212 (language_defn::is_string_type_p): Declare new function.
8213 (default_is_string_type_p): Delete desclaration, move comment to
8214 definition.
8215 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
8216 moved to m2_language::is_string_type_p.
8217 (m2_language_data): Delete la_is_string_type_p initializer.
8218 (m2_language::is_string_type_p): New member function,
8219 implementation from m2_is_string_type_p.
8220 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
8221 initializer.
8222 * opencl-lang.c (opencl_language_data): Likewise.
8223 * p-lang.c (pascal_is_string_type_p): Delete function,
8224 implementation moved to pascal_language::is_string_type_p.
8225 (pascal_language_data): Delete la_is_string_type_p initializer.
8226 (pascal_language::is_string_type_p): New member function,
8227 implementation from pascal_is_string_type_p.
8228 * rust-lang.c (rust_is_string_type_p): Delete function,
8229 implementation moved to rust_language::is_string_type_p.
8230 (rust_language_data): Delete la_is_string_type_p initializer.
8231 (rust_language::is_string_type_p): New member function,
8232 implementation from rust_is_string_type_p.
8233 * valprint.c (val_print_scalar_or_string_type_p): Update call to
8234 is_string_type_p.
8235
4ffc13fb
AB
82362020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8237
8238 * ada-lang.c (ada_language_data): Delete la_print_typedef
8239 initializer.
8240 (ada_language::print_typedef): New member function.
8241 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
8242 (cplus_language_data): Likewise.
8243 (asm_language_data): Likewise.
8244 (minimal_language_data): Likewise.
8245 * d-lang.c (d_language_data): Likewise.
8246 * f-lang.c (f_language_data): Likewise.
8247 (f_language::print_typedef): New member function.
8248 * go-lang.c (go_language_data): Delete la_print_typedef
8249 initializer.
8250 * language.c (language_defn::print_typedef): Define member
8251 function.
8252 (unknown_language_data): Delete la_print_typedef initializer.
8253 (unknown_language::print_typedef): New member function.
8254 (auto_language_data): Delete la_print_typedef initializer.
8255 (auto_language::print_typedef): New member function.
8256 * language.h (language_data): Delete la_print_typedef field.
8257 (language_defn::print_typedef): Declare new member function.
8258 (LA_PRINT_TYPEDEF): Update call to print_typedef.
8259 (default_print_typedef): Delete declaration.
8260 * m2-lang.c (m2_language_data): Delete la_print_typedef
8261 initializer.
8262 (m2_language::print_typedef): New member function.
8263 * objc-lang.c (objc_language_data): Delete la_print_typedef
8264 initializer.
8265 * opencl-lang.c (opencl_language_data): Likewise.
8266 * p-lang.c (pascal_language_data): Likewise.
8267 (pascal_language::print_typedef): New member function.
8268 * rust-lang.c (rust_print_typedef): Delete function,
8269 implementation moved to rust_language::print_typedef.
8270 (rust_language): Delete la_print_typedef initializer.
8271 (rust_language::print_typedef): New member function,
8272 implementation from rust_print_typedef.
8273 * typeprint.c (default_print_typedef): Delete.
8274
d711ee67
AB
82752020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8276
8277 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
8278 (ada_language::printstr): New member function.
8279 * c-lang.c (c_language_data): Delete la_printstr initializer.
8280 (cplus_language_data): Likewise.
8281 (asm_language_data): Likewise.
8282 (minimal_language_data): Likewise.
8283 * d-lang.c (d_language_data): Likewise.
8284 * f-lang.c (f_printstr): Rename to f_language::printstr.
8285 (f_language_data): Delete la_printstr initializer.
8286 (f_language::printstr): New member function, implementation from
8287 f_printstr.
8288 * go-lang.c (go_language_data): Delete la_printstr initializer.
8289 * language.c (language_defn::printstr): Define new member
8290 function.
8291 (unk_lang_printstr): Delete.
8292 (unknown_language_data): Delete la_printstr initializer.
8293 (unknown_language::printstr): New member function.
8294 (auto_language_data): Delete la_printstr initializer.
8295 (auto_language::printstr): New member function.
8296 * language.h (language_data): Delete la_printstr field.
8297 (language_defn::printstr): Declare new member function.
8298 (LA_PRINT_STRING): Update call to printstr.
8299 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
8300 (m2_language_data): Delete la_printstr initializer.
8301 (m2_language::printstr): New member function, implementation from
8302 m2_printstr.
8303 * objc-lang.c (objc_language_data): Delete la_printstr
8304 initializer.
8305 * opencl-lang.c (opencl_language_data): Likewise.
8306 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
8307 (pascal_language_data): Delete la_printstr initializer.
8308 (pascal_language::printstr): New member function, implementation
8309 from pascal_printstr.
8310 * p-lang.h (pascal_printstr): Delete declaration.
8311 * rust-lang.c (rust_printstr): Update header comment.
8312 (rust_language_data): Delete la_printstr initializer.
8313 (rust_language::printstr): New member function.
8314
52b50f2c
AB
83152020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8316
8317 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
8318 (ada_language::printchar): New member function.
8319 * c-lang.c (c_language_data): Delete la_printchar initializer.
8320 (cplus_language_data): Likewise.
8321 (asm_language_data): Likewise.
8322 (minimal_language_data): Likewise.
8323 * d-lang.c (d_language_data): Likewise.
8324 * f-lang.c (f_printchar): Rename to f_language::printchar.
8325 (f_language_data): Delete la_printchar initializer.
8326 (f_language::printchar): New member function, implementation from
8327 f_printchar.
8328 * go-lang.c (go_language_data): Delete la_printchar initializer.
8329 * language.c (unk_lang_printchar): Delete.
8330 (language_defn::printchar): Define new member function.
8331 (unknown_language_data): Delete la_printchar initializer.
8332 (unknown_language::printchar): New member function.
8333 (auto_language_data): Delete la_printchar initializer.
8334 (auto_language::printchar): New member function.
8335 * language.h (language_data): Delete la_printchar field.
8336 (language_defn::printchar): Declare new member function.
8337 (LA_PRINT_CHAR): Update call to printchar.
8338 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
8339 (m2_language::printchar): New member function.
8340 * objc-lang.c (objc_language_data): Delete la_printchar
8341 initializer.
8342 * opencl-lang.c (opencl_language_data): Likewise.
8343 * p-lang.c (pascal_language_data): Delete la_printchar
8344 initializer.
8345 (pascal_language::printchar): New member function.
8346 * rust-lang.c (rust_printchar): Rename to
8347 rust_language::printchar.
8348 (rust_language_data): Delete la_printchar initializer.
8349 (rust_language::printchar): New member function, implementation
8350 from rust_printchar.
8351
ec8cec5b
AB
83522020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8353
8354 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
8355 (ada_language_data): Delete la_emitchar initializer.
8356 (ada_language::emitchar): New member function, implementation from
8357 emit_char.
8358 * c-lang.c (c_language_data): Delete la_emitchar initializer.
8359 (cplus_language_data): Likewise.
8360 (asm_language_data): Likewise.
8361 (minimal_language_data): Likewise.
8362 * d-lang.c (d_language_data): Likewise.
8363 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
8364 (f_language_data): Delete la_emitchar initializer.
8365 (f_language::emitchar): New member function, implementation from
8366 f_emit_char.
8367 * go-lang.c (go_language_data): Delete la_emitchar initializer.
8368 * language.c (unk_lang_emit_char): Delete.
8369 (language_defn::emitchar): New member function definition.
8370 (unknown_language_data): Delete la_emitchar initializer.
8371 (unknown_language::emitchar): New member function.
8372 (auto_language_data): Delete la_emitchar initializer.
8373 (auto_language::emitchar): New member function.
8374 * language.h (language_data): Delete la_emitchar field.
8375 (language_defn::emitchar): New member field declaration.
8376 (LA_EMIT_CHAR): Update call to emitchar.
8377 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
8378 (m2_language_data): Delete la_emitchar initializer.
8379 (m2_language::emitchar): New member function, implementation from
8380 m2_emit_char.
8381 * objc-lang.c (objc_language_data): Delete la_emitchar
8382 initializer.
8383 * opencl-lang.c (opencl_language_data): Likewise.
8384 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
8385 (pascal_language_data): Delete la_emitchar initializer.
8386 (pascal_language::emitchar): New member function, implementation
8387 from pascal_emit_char.
8388 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
8389 (rust_language_data): Delete la_emitchar initializer.
8390 (rust_language::emitchar): New member function, implementation
8391 from rust_emitchar.
8392
1bf9c363
AB
83932020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8394
8395 * ada-lang.c (resolve): Rename to ada_language::post_parser.
8396 (ada_language_data): Delete la_post_parser initializer.
8397 (ada_language::post_parser): New member function.
8398 * c-lang.c (c_language_data): Delete la_post_parser initializer.
8399 (cplus_language_data): Likewise.
8400 (asm_language_data): Likewise.
8401 (minimal_language_data): Likewise.
8402 * d-lang.c (d_language_data): Likewise.
8403 * f-lang.c (f_language_data): Likewise.
8404 * go-lang.c (go_language_data): Likewise.
8405 * language.c (unknown_language_data): Likewise.
8406 (auto_language_data): Likewise.
8407 * language.h (language_data): Delete la_post_parser field.
8408 (language_defn::post_parser): New member function.
8409 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
8410 * objc-lang.c (objc_language_data): Likewise.
8411 * opencl-lang.c (opencl_language_data): Likewise.
8412 * p-lang.c (pascal_language_data): Likewise.
8413 * parse.c (parse_exp_in_context): Update call to post_parser.
8414 (null_post_parser): Delete definition.
8415 * parser-defs.h (null_post_parser): Delete declaration.
8416 * rust-lang.c (rust_language_data): Delete la_post_parser
8417 initializer.
8418
87afa652
AB
84192020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8420
8421 * ada-lang.c (parse): Rename to ada_language::parser.
8422 (ada_language_data): Delete la_parser initializer.
8423 (ada_language::parser): New member function, implementation from
8424 parse.
8425 * c-lang.c (c_language_data): Delete la_parser initializer.
8426 (cplus_language_data): Likewise.
8427 (asm_language_data): Likewise.
8428 (minimal_language_data): Likewise.
8429 * d-lang.c (d_language_data): Likewise.
8430 (d_language::parser): New member function.
8431 * f-lang.c (f_language_data): Delete la_parser initializer.
8432 (f_language::parser): New member function.
8433 * go-lang.c (go_language_data): Delete la_parser initializer.
8434 (go_language::parser): New member function.
8435 * language.c (unk_lang_parser): Delete.
8436 (language_defn::parser): Define new member function.
8437 (unknown_language_data): Delete la_parser initializer.
8438 (unknown_language::parser): New member function.
8439 (auto_language_data): Delete la_parser initializer.
8440 (auto_language::parser): New member function.
8441 * language.h (language_data): Delete la_parser field.
8442 (language_defn::parser): Declare new member function.
8443 * m2-lang.c (m2_language_data): Delete la_parser initializer.
8444 (m2_language::parser): New member function.
8445 * objc-lang.c (objc_language_data): Delete la_parser initializer.
8446 * opencl-lang.c (opencl_language_data): Likewise.
8447 * p-lang.c (pascal_language_data): Likewise.
8448 (pascal_language::parser): New member function.
8449 * parse.c (parse_exp_in_context): Update call to parser.
8450 * rust-lang.c (rust_language_data): Delete la_parser initializer.
8451 (rust_language::parser): New member function.
8452
37825800
AB
84532020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8454
8455 * top.c (print_gdb_configuration): Print --with-python-libdir
8456 configuration value.
8457
5b860c93
PW
84582020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8459
8460 * NEWS: Mention change to the alias command.
8461
cf00cd6f
PW
84622020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8463
8464 * cli/cli-cmds.c (lookup_cmd_for_default_args)
8465 (alias_command_completer)
8466 (make_alias_options_def_group): New functions.
8467 (alias_opts, alias_option_defs): New struct and array.
8468 (alias_usage_error): Update usage.
8469 (alias_command): Handles optional DEFAULT-ARGS... arguments.
8470 Use option framework.
8471 (_initialize_cli_cmds): Update alias command help.
8472 Update aliases command help.
8473 (show_user):
8474 Add NULL for new default_args lookup_cmd argument.
8475 (valid_command_p): Rename to validate_aliased_command.
8476 Add NULL for new default_args lookup_cmd argument. Verify that the
8477 aliased_command has no default args.
8478 * cli/cli-decode.c (help_cmd): Show aliases definitions.
8479 (lookup_cmd_1, lookup_cmd): New argument default_args.
8480 (add_alias_cmd):
8481 Add NULL for new default_args lookup_cmd argument.
8482 (print_help_for_command): Show default args under the layout
8483 alias some_alias = some_aliased_cmd some_alias_default_arg.
8484 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
8485 xfree default_args in destructor.
8486 * cli/cli-script.c (process_next_line, do_define_command):
8487 Add NULL for new default_args lookup_cmd argument.
8488 * command.h: Declare new default_args argument in lookup_cmd
8489 and lookup_cmd_1.
8490 * completer.c (complete_line_internal_1):
8491 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8492 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
8493 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
8494 Likewise.
8495 * infcmd.c (_initialize_infcmd): Likewise.
8496 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
8497 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
8498 * python/py-param.c (add_setshow_generic): Likewise.
8499 * remote.c (_initialize_remote): Likewise.
8500 * top.c (execute_command): Prepend default_args if command has some.
8501 (set_verbose):
8502 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8503 * tracepoint.c (validate_actionline, encode_actions_1):
8504 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8505
bd920864
TBA
85062020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8507
8508 * jit.c (jit_read_descriptor): Use bool as the return type.
8509 (jit_breakpoint_re_set_internal): Use bool as the return type.
8510 Invert the return value logic; return true if the jit breakpoint
8511 has been successfully initialized.
8512 (jit_inferior_init): Update the call to
8513 jit_breakpoint_re_set_internal.
8514
f8098322
PA
85152020-06-22 Pedro Alves <palves@redhat.com>
8516
8517 PR gdb/25939
8518 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
8519 Use the current inferior instead. Don't return
8520 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
8521 wait again.
8522 * sol-thread.c (sol_thread_target::wait): Don't reference
8523 inferior_ptid.
8524 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
8525 (sol_update_thread_list_callback): Use the current inferior's pid
8526 instead of inferior_ptid.
8527
196535a6
RO
85282020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8529
8530 * procfs.c: Cleanup many comments.
8531
8532 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
8533 (AFTER_WATCHFLAG): Replace by value.
8534
8535 (MAIN_PROC_NAME_FORMAT): Inline ...
8536 (create_procinfo): ... here.
8537
8538 (procfs_debug_inferior): Remove SYS_exec handling.
8539 (syscall_is_exec): Likewise.
8540 (procfs_set_exec_trap): Likewise.
8541
8542 (syscall_is_lwp_exit): Inline in callers.
8543 (syscall_is_exit): Likewise.
8544 (syscall_is_exec): Likewise.
8545 (syscall_is_lwp_create): Likewise.
8546
8547 (invalidate_cache): Remove #if 0 code.
8548
8549 (make_signal_thread_runnable): Remove.
8550 (procfs_target::resume): Remove #if 0 code.
8551
cf6f3e86
RO
85522020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8553
8554 PR gdb/25939
8555 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
8556 call ...
8557 (procfs_target::create_inferior): ... here.
8558
48e9cc84
PW
85592020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8560
8561 * exec.c (validate_exec_file): Ensure the build-id is up to
8562 date by calling reopen_exec_file (that checks file timestamp
8563 to decide to re-read the file).
8564
3922b302
PA
85652020-06-18 Pedro Alves <palves@redhat.com>
8566
8567 PR gdb/25412
8568 * gdbthread.h (delete_thread, delete_thread_silent)
8569 (find_thread_ptid): Update comments.
8570 * thread.c (current_thread_): New global.
8571 (is_current_thread): Move higher, and reimplement.
8572 (inferior_thread): Reimplement.
8573 (set_thread_exited): Use bool. Add assertions.
8574 (add_thread_silent): Simplify thread-reuse handling by always
8575 calling delete_thread.
8576 (delete_thread): Remove intro comment.
8577 (find_thread_ptid): Skip exited threads.
8578 (switch_to_thread_no_regs): Write to current_thread_.
8579 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8580 INFERIOR_PTID. Clear current_thread_.
8581
6dbdab44
PA
85822020-06-18 Pedro Alves <palves@redhat.com>
8583
8584 * aix-thread.c (pd_update): Use switch_to_thread.
8585
2da4b788
PA
85862020-06-18 Pedro Alves <palves@redhat.com>
8587
8588 * ravenscar-thread.c (ravenscar_thread_target): Update.
8589 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8590 (ravenscar_thread_target::add_active_thread): ... this. Don't
8591 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8592 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8593
50838d1b
PA
85942020-06-18 Pedro Alves <palves@redhat.com>
8595
8596 * nat/windows-nat.c (current_windows_thread): Remove.
8597 * nat/windows-nat.h (current_windows_thread): Remove.
8598 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8599 Adjust.
8600 (display_selectors): Adjust to fetch the current
8601 windows_thread_info based on inferior_ptid.
8602 (fake_create_process): No longer write to current_windows_thread.
8603 (windows_nat_target::get_windows_debug_event):
8604 Don't set inferior_ptid or current_windows_thread.
8605 (windows_nat_target::wait): Adjust to not rely on
8606 current_windows_thread.
8607 (do_initial_windows_stuff): Now a method of windows_nat_target.
8608 Switch to the last_ptid thread.
8609 (windows_nat_target::attach): Adjust.
8610 (windows_nat_target::detach): Use switch_to_no_thread instead of
8611 writing to inferior_ptid directly.
8612 (windows_nat_target::create_inferior): Adjust.
8613
31ce04e9
PA
86142020-06-18 Pedro Alves <palves@redhat.com>
8615
8616 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8617
1ee1a363
PA
86182020-06-18 Pedro Alves <palves@redhat.com>
8619
8620 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8621 after creating it, instead of writing to inferior_ptid. Don't
8622 write to inferior_ptid.
8623
6d350754
PA
86242020-06-18 Pedro Alves <palves@redhat.com>
8625
8626 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8627
5d971d48
PA
86282020-06-18 Pedro Alves <palves@redhat.com>
8629
8630 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8631 it, instead of writing to inferior_ptid.
8632
86e57d1b
PA
86332020-06-18 Pedro Alves <palves@redhat.com>
8634
8635 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8636 to inferior_ptid.
8637
f2e1c129
PA
86382020-06-18 Pedro Alves <palves@redhat.com>
8639
8640 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8641 instead of writing to inferior_ptid directly.
8642
60db1b85
PA
86432020-06-18 Pedro Alves <palves@redhat.com>
8644
8645 * corelow.c (core_target::close): Use switch_to_no_thread instead
8646 of writing to inferior_ptid directly.
8647 (add_to_thread_list, core_target_open): Use switch_to_thread
8648 instead of writing to inferior_ptid directly.
8649
fe7d6a8d
PA
86502020-06-18 Pedro Alves <palves@redhat.com>
8651
8652 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8653 inferior_ptid.
8654 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8655 inferior_ptid.
8656 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8657 inferior_ptid directly.
8658 (darwin_nat_target::init_thread_list): Switch to thread, instead
8659 of writing to inferior_ptid.
8660 (darwin_nat_target::attach): Don't write to inferior_ptid.
8661 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8662
975f8708
PA
86632020-06-18 Pedro Alves <palves@redhat.com>
8664
8665 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8666 thread.
8667 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8668 Instead use switch_to_thread.
8669 (gnu_nat_target::detach): Use switch_to_no_thread
8670 instead of writing to inferior_ptid directly. Used passed-in
8671 inferior instead of looking up the inferior by pid.
8672
1a204730
PA
86732020-06-18 Pedro Alves <palves@redhat.com>
8674
8675 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8676 inferior_ptid.
8677
ebe84f23
PA
86782020-06-18 Pedro Alves <palves@redhat.com>
8679
8680 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8681 inferior_ptid.
8682 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8683 thread.
8684 (nto_procfs_target::detach): Avoid referencing
8685 inferior_ptid. Use switch_to_no_thread instead of writing to
8686 inferior_ptid directly.
8687 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8688 instead of writing to inferior_ptid directly.
8689 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8690 to thread.
8691
191f02e5
PA
86922020-06-18 Pedro Alves <palves@redhat.com>
8693
8694 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8695 after creating it, instead of writing to inferior_ptid.
8696 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8697 to inferior_ptid directly.
8698 (gdbsim_target::wait): Don't write to inferior_ptid.
8699
0ac55310
PA
87002020-06-18 Pedro Alves <palves@redhat.com>
8701
8702 * remote.c (remote_target::remote_notice_new_inferior): Use
8703 switch_to_thread instead of writing to inferior_ptid directly.
8704 (remote_target::add_current_inferior_and_thread): Use
8705 switch_to_no_thread instead of writing to inferior_ptid directly.
8706 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8707 and switch_to_thread instead of using set_current_inferior or
8708 writing to inferior_ptid directly.
8709
5233f39b
PA
87102020-06-18 Pedro Alves <palves@redhat.com>
8711
8712 * tracectf.c (ctf_target_open): Switch to added thread instead of
8713 writing to inferior_ptid directly.
8714 (ctf_target::close): Use switch_to_no_thread instead of writing to
8715 inferior_ptid directly.
8716
087e161b
PA
87172020-06-18 Pedro Alves <palves@redhat.com>
8718
8719 * tracefile-tfile.c (tfile_target_open): Don't write to
8720 inferior_ptid directly, instead switch to added thread.
8721 (tfile_target::close): Use switch_to_no_thread instead of writing
8722 to inferior_ptid directly.
8723
7fb43e53
PA
87242020-06-18 Pedro Alves <palves@redhat.com>
8725
8726 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8727 (procfs_target::detach): Use switch_to_no_thread
8728 instead of writing to inferior_ptid directly.
8729 (do_attach): Change return type to void. Switch to the added
8730 thread.
8731 (procfs_target::create_inferior): Switch to the added thread.
8732 (procfs_do_thread_registers): Don't write to inferior_ptid.
8733
18493a00
PA
87342020-06-18 Pedro Alves <palves@redhat.com>
8735
8736 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8737 of writing to inferior_ptid.
8738 (scoped_restore_exited_inferior): Delete.
8739 (handle_vfork_child_exec_or_exit): Simplify using
8740 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8741 instead of writing to inferior_ptid.
8742 (THREAD_STOPPED_BY): Delete.
8743 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8744 (thread_stopped_by_hw_breakpoint): Delete.
8745 (save_waitstatus): Use
8746 scoped_restore_current_thread+switch_to_thread, and call
8747 target_stopped_by_watchpoint instead of
8748 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8749 instead of thread_stopped_by_sw_breakpoint, and
8750 target_stopped_by_hw_breakpoint instead of
8751 thread_stopped_by_hw_breakpoint.
8752 (handle_inferior_event)
8753 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8754 inferior_ptid directly, nor
8755 set_current_inferior/set_current_program_space. Use
8756 switch_to_thread / switch_to_inferior_no_thread instead.
8757
a0776b13
PA
87582020-06-18 Pedro Alves <palves@redhat.com>
8759
8760 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8761 instead of writing to inferior_ptid.
8762
6155c136
PA
87632020-06-18 Pedro Alves <palves@redhat.com>
8764
8765 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8766 added thread.
8767 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8768 to the added thread.
8769 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8770 instead of writing to inferior_ptid.
8771
c5316fc6
PA
87722020-06-18 Pedro Alves <palves@redhat.com>
8773
8774 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8775 (register_to_value_test): Mock a program_space too. Heap-allocate
8776 the address space. Don't write to inferior_ptid. Use
8777 switch_to_thread instead.
8778
8df01799
PA
87792020-06-18 Pedro Alves <palves@redhat.com>
8780
8781 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8782 Delete.
8783 (find_signalled_thread()): New, factored out from
8784 linux_make_corefile_notes and adjusted to handle exited threads.
8785 (linux_make_corefile_notes): Adjust to use the new
8786 find_signalled_thread.
8787
41792d68
PA
87882020-06-18 Pedro Alves <palves@redhat.com>
8789
8790 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8791 of saving/restoring inferior_ptid.
8792
612f258a
TT
87932020-06-17 Tom Tromey <tom@tromey.com>
8794
8795 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8796 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8797 declare.
8798 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8799
efb763a5
SM
88002020-06-15 Simon Marchi <simon.marchi@efficios.com>
8801
8802 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8803 of partial symtabs.
8804
2951f6c0
SM
88052020-06-17 Simon Marchi <simon.marchi@efficios.com>
8806
8807 * regformats/reg-arm.dat: Remove.
8808 * regformats/reg-bfin.dat: Remove.
8809 * regformats/reg-cris.dat: Remove.
8810 * regformats/reg-crisv32.dat: Remove.
8811 * regformats/reg-m32r.dat: Remove.
8812 * regformats/reg-tilegx.dat: Remove.
8813 * regformats/reg-tilegx32.dat: Remove.
8814
7d458ea5
SM
88152020-06-17 Simon Marchi <simon.marchi@efficios.com>
8816
8817 * features/Makefile (WHICH): Remove arm files.
8818 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8819 * regformats/arm/arm-with-neon.dat: Remove.
8820 * regformats/arm/arm-with-vfpv2.dat: Remove.
8821 * regformats/arm/arm-with-vfpv3.dat: Remove.
8822
3af96c0d
SM
88232020-06-17 Simon Marchi <simon.marchi@efficios.com>
8824
8825 * features/Makefile (XMLTOC): Remove rx.xml.
8826
b25e22fd
PA
88272020-06-17 Pedro Alves <palves@redhat.com>
8828
8829 * gdbthread.h (thread_control_state) <trap_expected> Update
8830 comments.
8831
a78a19b1
AB
88322020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8833
8834 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8835 ada_language::lookup_symbol_nonlocal.
8836 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8837 (ada_language::lookup_symbol_nonlocal): New member function,
8838 implementation from ada_lookup_symbol_nonlocal.
8839 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8840 initializer.
8841 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8842 initializer.
8843 (cplus_language::lookup_symbol_nonlocal): New member function.
8844 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8845 (minimal_language_data) Likewise.
8846 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8847 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8848 initializer.
8849 (d_language::lookup_symbol_nonlocal): New member function.
8850 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8851 initializer.
8852 (f_language::lookup_symbol_nonlocal): New member function.
8853 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8854 initializer.
8855 * language.c (unknown_language_data): Likewise.
8856 (auto_language_data): Likewise.
8857 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8858 field.
8859 (language_defn::lookup_symbol_nonlocal): New member function.
8860 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8861 initializer.
8862 * objc-lang.c (objc_language_data): Likewise.
8863 * opencl-lang.c (opencl_language_data): Likewise.
8864 * p-lang.c (pascal_language_data): Likewise.
8865 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8866 rust_language::lookup_symbol_nonlocal.
8867 (rust_language_data): Delete la_lookup_symbol_nonlocal
8868 initializer.
8869 (rust_language::lookup_symbol_nonlocal): New member function,
8870 implementation from rust_lookup_symbol_nonlocal.
8871 * symtab.c (lookup_symbol_aux): Update call to
8872 lookup_symbol_nonlocal.
8873 (basic_lookup_symbol_nonlocal): Rename to...
8874 (language_defn::lookup_symbol_nonlocal): ...this, and update
8875 header comment. Remove language_defn parameter, and replace with
8876 uses of `this'.
8877 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8878
ebe2334e
AB
88792020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8880
8881 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8882 initializer.
8883 (ada_language::value_print_inner): New member function.
8884 * c-lang.c (c_language_data): Delete la_value_print_inner
8885 initializer.
8886 (cplus_language_data): Likewise.
8887 (asm_language_data): Likewise.
8888 (minimal_language_data): Likewise.
8889 * d-lang.c (d_language_data): Likewise.
8890 (d_language::value_print_inner): New member function.
8891 * f-lang.c (f_language_data): Delete la_value_print_inner
8892 initializer.
8893 (f_language::value_print_inner): New member function.
8894 * f-lang.h (f_value_print_innner): Rename to...
8895 (f_value_print_inner): ...this (note spelling of 'inner').
8896 * f-valprint.c (f_value_print_innner): Rename to...
8897 (f_value_print_inner): ...this (note spelling of 'inner').
8898 * go-lang.c (go_language_data): Delete la_value_print_inner
8899 initializer.
8900 (go_language::value_print_inner): New member function.
8901 * language.c (language_defn::value_print_inner): Define new member
8902 function.
8903 (unk_lang_value_print_inner): Delete.
8904 (unknown_language_data): Delete la_value_print_inner initializer.
8905 (unknown_language::value_print_inner): New member function.
8906 (auto_language_data): Delete la_value_print_inner initializer.
8907 (auto_language::value_print_inner): New member function.
8908 * language.h (language_data): Delete la_value_print_inner field.
8909 (language_defn::value_print_inner): Delcare new member function.
8910 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8911 initializer.
8912 (m2_language::value_print_inner): New member function.
8913 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8914 initializer.
8915 * opencl-lang.c (opencl_language_data): Likewise.
8916 * p-lang.c (pascal_language_data): Likewise.
8917 (pascal_language::value_print_inner): New member function.
8918 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8919 initializer.
8920 (rust_language::value_print_inner): New member function.
8921 * valprint.c (do_val_print): Update call to value_print_inner.
8922
a1d1fa3e
AB
89232020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8924
8925 * ada-lang.c (ada_language_data): Delete la_value_print
8926 initializer.
8927 (ada_language::value_print): New member function.
8928 * c-lang.c (c_language_data): Delete la_value_print initializer.
8929 (cplus_language_data): Likewise.
8930 (asm_language_data): Likewise.
8931 (minimal_language_data): Likewise.
8932 * d-lang.c (d_language_data): Likewise.
8933 * f-lang.c (f_language_data): Likewise.
8934 * go-lang.c (go_language_data): Likewise.
8935 * language.c (unk_lang_value_print): Delete.
8936 (language_defn::value_print): Define new member function.
8937 (unknown_language_data): Delete la_value_print initializer.
8938 (unknown_language::value_print): New member function.
8939 (auto_language_data): Delete la_value_print initializer.
8940 (auto_language::value_print): New member function.
8941 * language.h (language_data): Delete la_value_print field.
8942 (language_defn::value_print): Declare new member function.
8943 (LA_VALUE_PRINT): Update call to value_print.
8944 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8945 * objc-lang.c (objc_language_data): Likewise.
8946 * opencl-lang.c (opencl_language_data): Likewise.
8947 * p-lang.c (pascal_language_data): Likewise.
8948 (pascal_language::value_print): New member function.
8949 * rust-lang.c (rust_language_data): Delete la_value_print
8950 initializer.
8951
f16a9f57
AB
89522020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8953
8954 * ada-lang.c (ada_watch_location_expression): Rename to
8955 ada_language::watch_location_expression.
8956 (ada_language_data): Delete la_watch_location_expression
8957 initializer.
8958 (ada_language::watch_location_expression): New member function,
8959 implementation from ada_watch_location_expression.
8960 * breakpoint.c (watch_command_1): Update call to
8961 watch_location_expression.
8962 * c-lang.c (c_watch_location_expression): Rename to
8963 language_defn::watch_location_expression.
8964 (c_language_data): Delete la_watch_location_expression
8965 initializer.
8966 (cplus_language_data): Likewise.
8967 (asm_language_data): Likewise.
8968 (minimal_language_data): Likewise.
8969 * c-lang.h (c_watch_location_expression): Delete declaration.
8970 * d-lang.c (d_language_data): Delete la_watch_location_expression
8971 initializer.
8972 * f-lang.c (f_language_data): Likewise.
8973 * go-lang.c (go_language_data): Likewise.
8974 * language.c (language_defn::watch_location_expression): Member
8975 function implementation from c_watch_location_expression.
8976 (unknown_language_data): Delete la_watch_location_expression
8977 initializer.
8978 (auto_language_data): Likewise.
8979 * language.h (language_data): Delete la_watch_location_expression
8980 field.
8981 (language_defn::watch_location_expression): Declare new member
8982 function.
8983 * m2-lang.c (m2_language_data): Delete
8984 la_watch_location_expression initializer.
8985 * objc-lang.c (objc_language_data): Likewise.
8986 * opencl-lang.c (opencl_language_data): Likewise.
8987 * p-lang.c (pascal_language_data): Likewise.
8988 * rust-lang.c (rust_watch_location_expression): Rename to
8989 rust_language::watch_location_expression.
8990 (rust_language_data): Delete la_watch_location_expression
8991 initializer.
8992 (rust_language::watch_location_expression): New member function,
8993 implementation from rust_watch_location_expression.
8994
7e56227d
AB
89952020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8996
8997 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8998 ada_language::collect_symbol_completion_matches.
8999 (ada_language_data): Delete la_collect_symbol_completion_matches
9000 initializer.
9001 (ada_language::collect_symbol_completion_matches): New member
9002 function, implementation from
9003 ada_collect_symbol_completion_matches.
9004 * c-lang.c (c_language_data): Delete
9005 la_collect_symbol_completion_matches initializer.
9006 (cplus_language_data): Likewise.
9007 (asm_language_data): Likewise.
9008 (minimal_language_data): Likewise.
9009 * d-lang.c (d_language_data): Likewise.
9010 * f-lang.c (f_collect_symbol_completion_matches): Rename to
9011 f_language::collect_symbol_completion_matches.
9012 (f_language_data): Delete la_collect_symbol_completion_matches
9013 initializer.
9014 (f_language::collect_symbol_completion_matches) New member
9015 function, implementation from f_collect_symbol_completion_matches.
9016 * go-lang.c (go_language_data): Delete
9017 la_collect_symbol_completion_matches initializer.
9018 * language.c (unknown_language_data): Likewise.
9019 (auto_language_data): Likewise.
9020 * language.h (language_data): Delete
9021 la_collect_symbol_completion_matches field.
9022 (language_defn::collect_symbol_completion_matches): New member
9023 function.
9024 * m2-lang.c (m2_language_data): Delete
9025 la_collect_symbol_completion_matches initializer.
9026 * objc-lang.c (objc_language_data): Likewise.
9027 * opencl-lang.c (opencl_language_data): Likewise.
9028 * p-lang.c (pascal_language_data): Likewise.
9029 * rust-lang.c (rust_language_data): Likewise.
9030 * symtab.c (default_collect_symbol_completion_matches): Delete.
9031 (collect_symbol_completion_matches): Update call to
9032 collect_symbol_completion_matches.
9033 (collect_symbol_completion_matches_type): Likewise.
9034 * symtab.h (default_collect_symbol_completion_matches): Delete
9035 declaration.
9036
53fc67f8
AB
90372020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9038
9039 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
9040 (ada_language_data): Delete la_word_break_characters initializer.
9041 (ada_language::word_break_characters): New member function.
9042 * c-lang.c (c_language_data): Delete la_word_break_characters
9043 initializer.
9044 (cplus_language_data): Likewise.
9045 (asm_language_data): Likewise.
9046 (minimal_language_data): Likewise.
9047 * completer.c: Update global comment.
9048 (advance_to_expression_complete_word_point): Update call to
9049 word_break_characters.
9050 (complete_files_symbols): Likewise.
9051 (complete_line_internal_1): Likewise.
9052 (default_completer_handle_brkchars): Likewise.
9053 (skip_quoted_chars): Likewise.
9054 * d-lang.c (d_language_data): Delete la_word_break_characters
9055 initializer.
9056 * f-lang.c (f_word_break_characters): Delete.
9057 (f_language_data): Delete la_word_break_characters initializer.
9058 (f_language::word_break_characters): New member function.
9059 * go-lang.c (go_language_data): Delete la_word_break_characters
9060 initializer.
9061 * language.c (unknown_language_data): Likewise.
9062 (auto_language_data): Likewise.
9063 * language.h (default_word_break_characters): Move declaration to
9064 earlier in the file.
9065 (language_data): Delete la_word_break_characters field.
9066 (language_defn::word_break_characters): New member function.
9067 * m2-lang.c (m2_language_data): Delete la_word_break_characters
9068 initializer.
9069 * objc-lang.c (objc_language_data): Likewise.
9070 * opencl-lang.c (opencl_language_data): Likewise.
9071 * p-lang.c (pascal_language_data): Likewise.
9072 * rust-lang.c (rust_language_data): Likewise.
9073
c9debfb9
AB
90742020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9075
9076 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
9077 (ada_language_data): Delete la_get_symbol_name_matcher
9078 initializer.
9079 (language_defn::get_symbol_name_matcher_inner): New member
9080 function.
9081 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
9082 initializer.
9083 (cplus_language_data): Likewise.
9084 (cplus_language::get_symbol_name_matcher_inner): New member
9085 function.
9086 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
9087 (minimal_language_data): Likewise.
9088 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
9089 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
9090 initializer.
9091 * dictionary.c (iter_match_first_hashed): Update call to
9092 get_symbol_name_matcher.
9093 (iter_match_next_hashed): Likewise.
9094 (iter_match_next_linear): Likewise.
9095 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
9096 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
9097 initializer.
9098 (f_language::get_symbol_name_matcher_inner): New member function.
9099 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
9100 initializer.
9101 * language.c (default_symbol_name_matcher): Update header comment,
9102 make static.
9103 (language_defn::get_symbol_name_matcher): New definition.
9104 (language_defn::get_symbol_name_matcher_inner): Likewise.
9105 (get_symbol_name_matcher): Delete.
9106 (unknown_language_data): Delete la_get_symbol_name_matcher
9107 initializer.
9108 (auto_language_data): Likewise.
9109 * language.h (language_data): Delete la_get_symbol_name_matcher
9110 field.
9111 (language_defn::get_symbol_name_matcher): New member function.
9112 (language_defn::get_symbol_name_matcher_inner): Likewise.
9113 (default_symbol_name_matcher): Delete declaration.
9114 * linespec.c (find_methods): Update call to
9115 get_symbol_name_matcher.
9116 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
9117 initializer.
9118 * minsyms.c (lookup_minimal_symbol): Update call to
9119 get_symbol_name_matcher.
9120 (iterate_over_minimal_symbols): Likewise.
9121 * objc-lang.c (objc_language_data): Delete
9122 la_get_symbol_name_matcher initializer.
9123 * opencl-lang.c (opencl_language_data): Likewise.
9124 * p-lang.c (pascal_language_data): Likewise.
9125 * psymtab.c (psymbol_name_matches): Update call to
9126 get_symbol_name_matcher.
9127 * rust-lang.c (rust_language_data): Delete
9128 la_get_symbol_name_matcher initializer.
9129 * symtab.c (symbol_matches_search_name): Update call to
9130 get_symbol_name_matcher.
9131 (compare_symbol_name): Likewise.
9132
9a49ad8c
AB
91332020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9134
9135 * ada-lang.c (ada_language_data): Delete la_compute_program
9136 initializer.
9137 * c-lang.c (c_language_data): Likewise.
9138 (c_language::compute_program): New member function.
9139 (cplus_language_data): Delete la_compute_program initializer.
9140 (cplus_language::compute_program): New member function.
9141 (asm_language_data): Delete la_compute_program initializer.
9142 (minimal_language_data): Likewise.
9143 * c-lang.h (c_compute_program): Update comment.
9144 (cplus_compute_program): Likewise.
9145 * compile/compile-c-support.c (c_compute_program): Likewise.
9146 (cplus_compute_program): Likewise.
9147 * compile/compile.c (compile_to_object): Update call to
9148 la_compute_program.
9149 * d-lang.c (d_language_data): Delete la_compute_program
9150 initializer.
9151 * f-lang.c (f_language_data): Likewise.
9152 * go-lang.c (go_language_data): Likewise.
9153 * language.c (unknown_language_data): Likewise.
9154 (auto_language_data): Likewise.
9155 * language.h (language_data): Delete la_compute_program field.
9156 (language_defn::compute_program): New member function.
9157 * m2-lang.c (m2_language_data): Delete la_compute_program
9158 initializer.
9159 * objc-lang.c (objc_language_data): Likewise.
9160 * opencl-lang.c (opencl_language_data): Likewise.
9161 * p-lang.c (pascal_language_data): Likewise.
9162 * rust-lang.c (rust_language_data): Likewise.
9163
eff93b4d
AB
91642020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9165
9166 * ada-lang.c (ada_language_data) Delete
9167 la_class_name_from_physname initializer.
9168 * c-lang.c (c_language_data): Likewise.
9169 (cplus_language_data): Likewise.
9170 (cplus_language::class_name_from_physname): New member function.
9171 (asm_language_data): Delete la_class_name_from_physname
9172 initializer.
9173 (minimal_language_data): Likewise.
9174 * d-lang.c (d_language_data): Likewise.
9175 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
9176 method on language_defn class.
9177 (guess_full_die_structure_name): Likewise.
9178 * f-lang.c (f_language_data): Delete la_class_name_from_physname
9179 initializer.
9180 * go-lang.c (go_language_data): Likewise.
9181 * language.c (language_class_name_from_physname): Delete.
9182 (unk_lang_class_name): Delete.
9183 (unknown_language_data): Delete la_class_name_from_physname
9184 initializer.
9185 (auto_language_data): Likewise.
9186 * language.h (language_data): Delete la_class_name_from_physname
9187 field.
9188 (language_defn::class_name_from_physname): New function.
9189 (language_class_name_from_physname): Delete declaration.
9190 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
9191 initializer.
9192 * objc-lang.c (objc_language_data): Likewise.
9193 * opencl-lang.c (opencl_language_data): Likewise.
9194 * p-lang.c (pascal_language_data): Likewise.
9195 * rust-lang.c (rust_language_data): Likewise.
9196
de543742
TT
91972020-06-16 Tom Tromey <tom@tromey.com>
9198
9199 * tui/tui-data.h (STATUS_NAME): New macro.
9200 * tui/tui-layout.c (tui_remove_some_windows)
9201 (initialize_known_windows, tui_register_window)
9202 (tui_layout_split::remove_windows, initialize_layouts)
9203 (tui_new_layout_command): Don't use hard-coded window names.
9204
a350efd4
TT
92052020-06-16 Tom Tromey <tom@tromey.com>
9206
9207 PR tui/25348:
9208 * tui/tui.c (tui_ensure_readline_initialized): Rename from
9209 tui_initialize_readline. Only run once. Call rl_initialize.
9210 * tui/tui.h (tui_ensure_readline_initialized): Rename from
9211 tui_initialize_readline.
9212 * tui/tui-io.c (tui_setup_io): Call
9213 tui_ensure_readline_initialized.
9214 * tui/tui-interp.c (tui_interp::init): Update.
9215
39ec0490
TT
92162020-06-16 Tom Tromey <tom@tromey.com>
9217
9218 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
9219 Also preserve the status window.
9220
d2d1ea20
TT
92212020-06-16 Tom Tromey <tom@tromey.com>
9222
9223 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
9224 where m_window==nullptr.
9225
66920317
TT
92262020-06-15 Tom Tromey <tromey@adacore.com>
9227
9228 * windows-nat.c (windows_nat::handle_output_debug_string):
9229 Update.
9230 (windows_nat::handle_ms_vc_exception): Update.
9231 * target.h (target_read_string): Change API.
9232 * target.c (target_read_string): Change API.
9233 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
9234 Update.
9235 * solib-frv.c (frv_current_sos): Update.
9236 * solib-dsbt.c (dsbt_current_sos): Update.
9237 * solib-darwin.c (darwin_current_sos): Update.
9238 * linux-thread-db.c (inferior_has_bug): Update.
9239 * expprint.c (print_subexp_standard): Update.
9240 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
9241 (ada_exception_message_1): Update.
9242
a5d871dd
TT
92432020-06-15 Tom Tromey <tromey@adacore.com>
9244
9245 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
9246
670e35fa
TT
92472020-06-15 Tom Tromey <tromey@adacore.com>
9248
9249 * valprint.c (read_string): Update comment.
9250 * target.c (MIN): Remove.
9251 (target_read_string): Rewrite.
9252
f5272a3b
TT
92532020-06-15 Tom Tromey <tromey@adacore.com>
9254
9255 * corefile.c (read_memory_string): Remove.
9256 * ada-valprint.c (ada_value_print_ptr): Update.
9257 * ada-lang.h (ada_tag_name): Change return type.
9258 * ada-lang.c (type_from_tag): Update.
9259 (ada_tag_name_from_tsd): Change return type. Use
9260 target_read_string.
9261 (ada_tag_name): Likewise.
9262 * gdbcore.h (read_memory_string): Don't declare.
9263
2c074f49
HD
92642020-06-14 Hannes Domani <ssbssa@yahoo.de>
9265
9266 * symtab.c (rbreak_command): Ignore Windows drive colon.
9267
6a17d503
SM
92682020-06-12 Simon Marchi <simon.marchi@efficios.com>
9269
9270 * NEWS: Mention removed GDBserver host support.
9271
453c733f
NC
92722020-06-12 Nelson Chu <nelson.chu@sifive.com>
9273
9274 * features/riscv/rebuild-csr-xml.sh: Updated.
9275
2b4e6a3f
TT
92762020-06-11 Tom Tromey <tom@tromey.com>
9277
9278 PR gdb/18318:
9279 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
9280
4412332f
JG
92812020-06-09 Jonny Grant <jg@jguk.org>
92822020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
9283
9284 * main.c (captured_main_1): Don't print new line after help.
9285 (print_gdb_help): add mailing list and IRC channel information
9286 to --help. Add new lines between items in the footer. Remove
9287 quotes around bug url.
9288
2f33032a
KS
92892020-06-11 Keith Seitz <keiths@redhat.com>
9290
9291 PR gdb/21356
9292 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
9293 Resolve typedefs for type length calculations.
9294
7ab96794
TV
92952020-06-10 Tom de Vries <tdevries@suse.de>
9296
9297 PR ada/24713
9298 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
9299 (write_psymbols): Enable .gdb_index for ada.
9300 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
9301 ada.
9302
e5f3ece2
TV
93032020-06-10 Tom de Vries <tdevries@suse.de>
9304
9305 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
9306 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
9307 namei" instead of "const char *name" argument.
9308 (dw2_map_matching_symbols): Use "offset_type namei" variant of
9309 dw2_symtab_iter_init.
9310
940da03e
SM
93112020-06-08 Simon Marchi <simon.marchi@efficios.com>
9312
9313 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
9314 to use type::field and field::type instead.
9315
b6cdac4b
SM
93162020-06-08 Simon Marchi <simon.marchi@efficios.com>
9317
9318 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
9319 to use field::type instead.
9320
5d14b6e5
SM
93212020-06-08 Simon Marchi <simon.marchi@efficios.com>
9322
9323 * gdbtypes.h (struct field) <type, set_type>: New methods.
9324 Rename `type` field to...
9325 <m_type>: ... this. Change references throughout to use type or
9326 set_type methods.
9327 (FIELD_TYPE): Use field::type. Change call sites that modify
9328 the field's type to use field::set_type instead.
9329
3d967001
SM
93302020-06-08 Simon Marchi <simon.marchi@efficios.com>
9331
9332 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
9333 to use type::index_type instead.
9334
262abc0d
SM
93352020-06-08 Simon Marchi <simon.marchi@efficios.com>
9336
9337 * gdbtypes.h (struct type) <index_type, set_index_type>: New
9338 methods.
9339 (TYPE_INDEX_TYPE): Use type::index_type.
9340 * gdbtypes.c (create_array_type_with_stride): Likewise.
9341
82836c92
TT
93422020-06-07 Tom Tromey <tom@tromey.com>
9343
9344 * valprint.c (generic_val_print_float): Remove "embedded_offset"
9345 parameter.
9346 (generic_value_print): Update.
9347
940dace9
AB
93482020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9349
9350 Revert commit 982a38f60b0.
9351 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
9352
982a38f6
AB
93532020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9354
9355 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
9356 avoid use after free.
9357
82f06518
TV
93582020-06-05 Tom de Vries <tdevries@suse.de>
9359
9360 * NEWS: Fix typos.
9361
f8c41851
SM
93622020-06-04 Simon Marchi <simon.marchi@efficios.com>
9363
9364 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
9365 the per_bfd object.
9366 (dwarf2_read_debug_names): Likewise.
9367 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
9368 object when re-using a per_bfd object with an index.
9369
f9b5d5ea
TV
93702020-06-03 Tom de Vries <tdevries@suse.de>
9371
9372 PR symtab/26046
9373 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
9374 children for C++.
9375 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
9376 DW_TAG_subprogram.
9377
f6eee2d0
AB
93782020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9379
9380 * ada-lang.c (ada_language_data): Delete skip_trampoline
9381 initializer.
9382 * c-lang.c (c_language_data): Likewise.
9383 (cplus_language_data): Likewise.
9384 (cplus_language::skip_trampoline): New member function.
9385 (asm_language_data): Delete skip_trampoline initializer.
9386 (minimal_language_data): Likewise.
9387 * d-lang.c (d_language_data): Likewise.
9388 * f-lang.c (f_language_data): Likewise.
9389 * go-lang.c (go_language_data): Likewise.
9390 * language.c (unk_lang_trampoline): Delete function.
9391 (skip_language_trampoline): Update.
9392 (unknown_language_data): Delete skip_trampoline initializer.
9393 (auto_language_data): Likewise.
9394 * language.h (language_data): Delete skip_trampoline field.
9395 (language_defn::skip_trampoline): New function.
9396 * m2-lang.c (m2_language_data): Delete skip_trampoline
9397 initializer.
9398 * objc-lang.c (objc_skip_trampoline): Delete function, move
9399 implementation to objc_language::skip_trampoline.
9400 (objc_language_data): Delete skip_trampoline initializer.
9401 (objc_language::skip_trampoline): New member function with
9402 implementation from objc_skip_trampoline.
9403 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
9404 initializer.
9405 * p-lang.c (pascal_language_data): Likewise.
9406 * rust-lang.c (rust_language_data): Likewise.
9407
0a50df5d
AB
94082020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9409
9410 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
9411 (ada_language::demangle): New member function.
9412 * c-lang.c (c_language_data): Delete la_demangle initializer.
9413 (cplus_language_data): Delete la_demangle initializer.
9414 (cplus_language::demangle): New member function.
9415 (asm_language_data): Delete la_demangle initializer.
9416 (minimal_language_data): Delete la_demangle initializer.
9417 * d-lang.c (d_language_data): Delete la_demangle initializer.
9418 (d_language::demangle): New member function.
9419 * f-lang.c (f_language_data): Delete la_demangle initializer.
9420 (f_language::demangle): New member function.
9421 * go-lang.c (go_language_data): Delete la_demangle initializer.
9422 (go_language::demangle): New member function.
9423 * language.c (language_demangle): Update.
9424 (unk_lang_demangle): Delete.
9425 (unknown_language_data): Delete la_demangle initializer.
9426 (unknown_language::demangle): New member function.
9427 (auto_language_data): Delete la_demangle initializer.
9428 (auto_language::demangle): New member function.
9429 * language.h (language_data): Delete la_demangle field.
9430 (language_defn::demangle): New function.
9431 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
9432 * objc-lang.c (objc_language_data): Delete la_demangle
9433 initializer.
9434 (objc_language::demangle): New member function.
9435 * opencl-lang.c (opencl_language_data): Delete la_demangle
9436 initializer.
9437 * p-lang.c (pascal_language_data): Likewise.
9438 * rust-lang.c (rust_language_data): Likewise.
9439 (rust_language::demangle): New member function.
9440
fbfb0a46
AB
94412020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9442
9443 * ada-lang.c (ada_language_data): Delete la_print_type
9444 initializer.
9445 (ada_language::print_type): New member function.
9446 * c-lang.c (c_language_data): Delete la_print_type initializer.
9447 (c_language::print_type): New member function.
9448 (cplus_language_data): Delete la_print_type initializer.
9449 (cplus_language::print_type): New member function.
9450 (asm_language_data): Delete la_print_type initializer.
9451 (asm_language::print_type): New member function.
9452 (minimal_language_data): Delete la_print_type initializer.
9453 (minimal_language::print_type): New member function.
9454 * d-lang.c (d_language_data): Delete la_print_type initializer.
9455 (d_language::print_type): New member function.
9456 * f-lang.c (f_language_data): Delete la_print_type initializer.
9457 (f_language::print_type): New member function.
9458 * go-lang.c (go_language_data): Delete la_print_type initializer.
9459 (go_language::print_type): New member function.
9460 * language.c (unk_lang_print_type): Delete.
9461 (unknown_language_data): Delete la_print_type initializer.
9462 (unknown_language::print_type): New member function.
9463 (auto_language_data): Delete la_print_type initializer.
9464 (auto_language::print_type): New member function.
9465 * language.h (language_data): Delete la_print_type field.
9466 (language_defn::print_type): New function.
9467 (LA_PRINT_TYPE): Update.
9468 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
9469 (m2_language::print_type): New member function.
9470 * objc-lang.c (objc_language_data): Delete la_print_type
9471 initializer.
9472 (objc_language::print_type): New member function.
9473 * opencl-lang.c (opencl_print_type): Delete, implementation moved
9474 to opencl_language::print_type.
9475 (opencl_language_data): Delete la_print_type initializer.
9476 (opencl_language::print_type): New member function, implementation
9477 from opencl_print_type.
9478 * p-lang.c (pascal_language_data): Delete la_print_type
9479 initializer.
9480 (pascal_language::print_type): New member function.
9481 * rust-lang.c (rust_print_type): Delete, implementation moved to
9482 rust_language::print_type.
9483 (rust_language_data): Delete la_print_type initializer.
9484 (rust_language::print_type): New member function, implementation
9485 from rust_print_type.
9486
6f827019
AB
94872020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9488
9489 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
9490 implementation moves to...
9491 (ada_language::sniff_from_mangled_name): ...here. Update return
9492 type.
9493 (ada_language_data): Delete la_sniff_from_mangled_name
9494 initializer.
9495 * c-lang.c (c_language_data): Likewise.
9496 (cplus_language_data): Likewise.
9497 (cplus_language::sniff_from_mangled_name): New member function,
9498 implementation taken from gdb_sniff_from_mangled_name.
9499 (asm_language_data): Delete la_sniff_from_mangled_name
9500 initializer.
9501 (minimal_language_data): Likewise.
9502 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
9503 implementation moves to cplus_language::sniff_from_mangled_name.
9504 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
9505 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
9506 moves to...
9507 (d_language::sniff_from_mangled_name): ...here.
9508 (d_language_data): Delete la_sniff_from_mangled_name initializer.
9509 * f-lang.c (f_language_data): Likewise.
9510 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
9511 moves to...
9512 (go_language::sniff_from_mangled_name): ...here.
9513 (go_language_data): Delete la_sniff_from_mangled_name initializer.
9514 * language.c (language_sniff_from_mangled_name): Delete.
9515 (unknown_language_data): Delete la_sniff_from_mangled_name
9516 initializer.
9517 (auto_language_data): Likewise.
9518 * language.h (language_data): Delete la_sniff_from_mangled_name
9519 field.
9520 (language_defn::sniff_from_mangled_name): New function.
9521 (language_sniff_from_mangled_name): Delete declaration.
9522 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
9523 field.
9524 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
9525 implementation moves to...
9526 (objc_language::sniff_from_mangled_name): ...here.
9527 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
9528 * opencl-lang.c (opencl_language_data): Likewise.
9529 * p-lang.c (pascal_language_data): Likewise.
9530 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
9531 implementation moves to...
9532 (rust_language::sniff_from_mangled_name): ...here.
9533 (rust_language_data): Delete la_sniff_from_mangled_name
9534 initializer.
9535 * symtab.c (symbol_find_demangled_name): Call
9536 sniff_from_mangled_name member function.
9537
fb8006fd
AB
95382020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9539
9540 * ada-lang.c (ada_language_data): Delete la_search_name_hash
9541 initializer.
9542 * c-lang.c (c_language_data): Likewise.
9543 (cplus_language_data): Likewise.
9544 (cplus_language::search_name_hash): New member function.
9545 (asm_language_data): Delete la_search_name_hash initializer.
9546 (minimal_language_data): Likewise.
9547 * d-lang.c (d_language_data): Likewise.
9548 * dictionary.c (default_search_name_hash): Rename to...
9549 (language_defn::search_name_hash): ...this.
9550 * f-lang.c (f_language_data): Likewise.
9551 (f_language::search_name_hash): New member function.
9552 * go-lang.c (go_language_data): Delete la_search_name_hash
9553 initializer.
9554 * language.c (unknown_language_data): Likewise.
9555 (auto_language_data): Likewise.
9556 * language.h (struct language_data): Delete la_search_name_hash
9557 field.
9558 (language_defn::search_name_hash): Declare new member function.
9559 (default_search_name_hash): Delete declaration.
9560 * m2-lang.c (m2_language_data): Delete la_search_name_hash
9561 initializer.
9562 * objc-lang.c (objc_language_data): Likewise.
9563 * opencl-lang.c (opencl_language_data): Likewise.
9564 * p-lang.c (pascal_language_data): Likewise.
9565 * rust-lang.c (rust_language_data): Likewise.
9566 * symtab.c (search_name_hash): Update call.
9567
8e25bafe
AB
95682020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9569
9570 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9571 initializer.
9572 * c-lang.c (class compile_instance): Declare.
9573 (c_language_data): Delete la_get_compile_instance initializer.
9574 (c_language::get_compile_instance): New member function.
9575 (cplus_language_data): Delete la_get_compile_instance initializer.
9576 (cplus_language::get_compile_instance): New member function.
9577 (asm_language_data): Delete la_get_compile_instance initializer.
9578 (minimal_language_data): Likewise.
9579 * c-lang.h (c_get_compile_context): Update comment.
9580 (cplus_get_compile_context): Update comment.
9581 * compile/compile.c (compile_to_object): Update calls, don't rely
9582 on function pointer being NULL.
9583 * d-lang.c (d_language_data): Delete la_get_compile_instance
9584 initializer.
9585 * f-lang.c (f_language_data): Likewise.
9586 * go-lang.c (go_language_data): Likewise.
9587 * language.c (unknown_language_data): Likewise.
9588 (auto_language_data): Likewise.
9589 * language.h (language_data): Delete la_get_compile_instance field.
9590 (language_defn::get_compile_instance): New member function.
9591 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9592 initializer.
9593 * objc-lang.c (objc_language_data): Likewise.
9594 * opencl-lang.c (opencl_language_data): Likewise.
9595 * p-lang.c (pascal_language_data): Likewise.
9596 * rust-lang.c (rust_language_data): Likewise.
9597
4009ee92
AB
95982020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9599
9600 * ada-lang.c (ada_add_all_symbols): Update comment.
9601 (ada_iterate_over_symbols): Delete, move implementation to...
9602 (ada_language::iterate_over_symbols): ...here, a new member
9603 function, rewrite to use range based for loop.
9604 (ada_language_data): Delete la_iterate_over_symbols initializer.
9605 * c-lang.c (c_language_data): Likewise.
9606 (cplus_language_data): Likewise.
9607 (asm_language_data): Likewise.
9608 (minimal_language_data): Likewise.
9609 * d-lang.c (d_language_data): Likewise.
9610 * f-lang.c (f_language_data): Likewise.
9611 * go-lang.c (go_language_data): Likewise.
9612 * language.c (unknown_language_data): Likewise.
9613 (auto_language_data): Likewise.
9614 * language.h (language_data): Delete la_iterate_over_symbols field.
9615 (language_defn::iterate_over_symbols): New member function.
9616 (LA_ITERATE_OVER_SYMBOLS): Update.
9617 * linespec.c (iterate_over_all_matching_symtabs): Update.
9618 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9619 initializer.
9620 * objc-lang.c (objc_language_data): Likewise.
9621 * opencl-lang.c (opencl_language_data): Likewise.
9622 * p-lang.c (pascal_language_data): Likewise.
9623 * rust-lang.c (rust_language_data): Likewise.
9624
54f4ca46
AB
96252020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9626
9627 * ada-lang.c (ada_language_data): Delete
9628 la_lookup_transparent_type initializer.
9629 * c-lang.c (c_language_data): Likewise.
9630 (cplus_language_data): Likewise.
9631 (cplus_language::lookup_transparent_type): New member function.
9632 (asm_language_data): Delete la_lookup_transparent_type
9633 initializer.
9634 (minimal_language_data): Likewise.
9635 * d-lang.c (d_language_data): Likewise.
9636 * f-lang.c (f_language_data): Likewise.
9637 * go-lang.c (go_language_data): Likewise.
9638 * language.c (unknown_language_data): Likewise.
9639 (auto_language_data): Likewise.
9640 * language.h (struct language_data): Delete
9641 la_lookup_transparent_type field.
9642 (language_defn::lookup_transparent_type): New member function.
9643 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9644 initializer.
9645 * objc-lang.c (objc_language_data): Likewise.
9646 * opencl-lang.c (opencl_language_data): Likewise.
9647 * p-lang.c (pascal_language_data): Likewise.
9648 * rust-lang.c (rust_language_data): Likewise.
9649 * symtab.c (symbol_matches_domain): Update call.
9650
1fb314aa
AB
96512020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9652
9653 * ada-lang.c (ada_language_arch_info): Delete function, move
9654 implementation to...
9655 (ada_language::language_arch_info): ...here, a new member
9656 function.
9657 (ada_language_data): Delete la_language_arch_info.
9658 * c-lang.c (c_language_data): Likewise.
9659 (c_language::language_arch_info): New member function.
9660 (cplus_language_arch_info): Delete function, move
9661 implementation to...
9662 (cplus_language::language_arch_info): ...here, a new member
9663 function.
9664 (cplus_language_data): Delete la_language_arch_info.
9665 (asm_language_data): Likewise.
9666 (asm_language::language_arch_info): New member function.
9667 (minimal_language_data): Delete la_language_arch_info.
9668 (minimal_language::language_arch_info): New member function.
9669 * d-lang.c (d_language_arch_info): Delete function, move
9670 implementation to...
9671 (d_language::language_arch_info): ...here, a new member
9672 function.
9673 (d_language_data): Delete la_language_arch_info.
9674 * f-lang.c (f_language_arch_info): Delete function, move
9675 implementation to...
9676 (f_language::language_arch_info): ...here, a new member
9677 function.
9678 (f_language_data): Delete la_language_arch_info.
9679 * go-lang.c (go_language_arch_info): Delete function, move
9680 implementation to...
9681 (go_language::language_arch_info): ...here, a new member
9682 function.
9683 (go_language_data): Delete la_language_arch_info.
9684 * language.c (unknown_language_data): Likewise.
9685 (unknown_language::language_arch_info): New member function.
9686 (auto_language_data): Delete la_language_arch_info.
9687 (auto_language::language_arch_info): New member function.
9688 (language_gdbarch_post_init): Update call to
9689 la_language_arch_info.
9690 * language.h (language_data): Delete la_language_arch_info
9691 function pointer.
9692 (language_defn::language_arch_info): New function.
9693 * m2-lang.c (m2_language_arch_info): Delete function, move
9694 implementation to...
9695 (m2_language::language_arch_info): ...here, a new member
9696 function.
9697 (m2_language_data): Delete la_language_arch_info.
9698 * objc-lang.c (objc_language_arch_info): Delete function, move
9699 implementation to...
9700 (objc_language::language_arch_info): ...here, a new member
9701 function.
9702 (objc_language_data): Delete la_language_arch_info.
9703 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9704 implementation to...
9705 (opencl_language::language_arch_info): ...here, a new member
9706 function.
9707 (opencl_language_data): Delete la_language_arch_info.
9708 * p-lang.c (pascal_language_arch_info): Delete function, move
9709 implementation to...
9710 (pascal_language::language_arch_info): ...here, a new member
9711 function.
9712 (pascal_language_data): Delete la_language_arch_info.
9713 * rust-lang.c (rust_language_arch_info): Delete function, move
9714 implementation to...
9715 (rust_language::language_arch_info): ...here, a new member
9716 function.
9717 (rust_language_data): Delete la_language_arch_info.
9718
48448202
AB
97192020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9720
9721 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9722 initializer.
9723 * c-lang.c (c_language_data): Likewise.
9724 (cplus_language_data): Likewise.
9725 (cplus_language::pass_by_reference_info): New method.
9726 (asm_language_data): Delete la_pass_by_reference initializer.
9727 (minimal_language_data): Likewise.
9728 * cp-abi.c (cp_pass_by_reference): Remove use of
9729 default_pass_by_reference.
9730 * d-lang.c (d_language_data): Likewise.
9731 * f-lang.c (f_language_data): Likewise.
9732 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9733 default_pass_by_reference.
9734 * go-lang.c (go_language_data): Likewise.
9735 * language.c (language_pass_by_reference): Update.
9736 (default_pass_by_reference): Delete.
9737 (unknown_language_data): Delete la_pass_by_reference
9738 initializer.
9739 (auto_language_data): Likewise.
9740 * language.h (struct language_data): Delete la_pass_by_reference
9741 field.
9742 (language_defn::pass_by_reference_info): New member function.
9743 (default_pass_by_reference): Delete declaration.
9744 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9745 initializer.
9746 * objc-lang.c (objc_language_data): Likewise.
9747 * opencl-lang.c (opencl_language_data): Likewise.
9748 * p-lang.c (pascal_language_data): Likewise.
9749 * rust-lang.c (rust_language_data): Likewise.
9750
15e5fd35
AB
97512020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9752
9753 * ada-lang.c (ada_read_var_value): Delete function, move
9754 implementation to...
9755 (ada_language::read_var_value): ...here.
9756 (ada_language_data): Delete la_read_var_value initializer.
9757 * c-lang.c (c_language_data): Likewise.
9758 (cplus_language_data): Likewise.
9759 (minimal_language_data): Likewise.
9760 * d-lang.c (d_language_data): Likewise.
9761 * f-lang.c (f_language_data): Likewise.
9762 * findvar.c (default_read_var_value): Rename to...
9763 (language_defn::read_var_value): ...this.
9764 * findvar.c (read_var_value): Update header comment, and change to
9765 call member function instead of function pointer.
9766 * go-lang.c (go_language_data): Likewise.
9767 * language.c (unknown_language_data): Delete la_read_var_value
9768 initializer.
9769 (auto_language_data): Likewise.
9770 * language.h (struct language_data): Delete la_read_var_value
9771 field.
9772 (language_defn::read_var_value): New member function.
9773 (default_read_var_value): Delete declaration.
9774 * m2-lang.c (m2_language_data): Delete la_read_var_value
9775 initializer.
9776 * objc-lang.c (objc_language_data): Likewise.
9777 * opencl-lang.c (opencl_language_data): Likewise.
9778 * p-lang.c (pascal_language_data): Likewise.
9779 * rust-lang.c (rust_language_data): Likewise.
9780 * value.h (default_read_var_value): Delete declaration.
9781
5bd40f2a
AB
97822020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9783
9784 * ada-lang.c (ada_print_array_index): Delete function, move
9785 implementation to...
9786 (ada_language::print_array_index): ...here.
9787 (ada_language_data): Delete la_print_array_index initializer.
9788 * c-lang.c (c_language_data): Likewise.
9789 (cplus_language_data): Likewise.
9790 (minimal_language_data): Likewise.
9791 * d-lang.c (d_language_data): Likewise.
9792 * f-lang.c (f_language_data): Likewise.
9793 * go-lang.c (go_language_data): Likewise.
9794 * language.c (default_print_array_index): Delete function, move
9795 implementation to...
9796 (language_defn::print_array_index): ...here.
9797 (unknown_language_data): Delete la_print_array_index initializer.
9798 (auto_language_data): Likewise.
9799 * language.h (struct language_data): Delete la_print_array_index
9800 field.
9801 (language_defn::print_array_index): New member function.
9802 (LA_PRINT_ARRAY_INDEX): Update.
9803 (default_print_array_index): Delete declaration.
9804 * m2-lang.c (m2_language_data): Delete la_print_array_index
9805 initializer.
9806 * objc-lang.c (objc_language_data): Likewise.
9807 * opencl-lang.c (opencl_language_data): Likewise.
9808 * p-lang.c (pascal_language_data): Likewise.
9809 * rust-lang.c (rust_language_data): Likewise.
9810
0874fd07
AB
98112020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9812
9813 * gdb/ada-lang.c (ada_language_defn): Convert to...
9814 (ada_language_data): ...this.
9815 (class ada_language): New class.
9816 (ada_language_defn): New static global.
9817 * gdb/c-lang.c (c_language_defn): Convert to...
9818 (c_language_data): ...this.
9819 (class c_language): New class.
9820 (c_language_defn): New static global.
9821 (cplus_language_defn): Convert to...
9822 (cplus_language_data): ...this.
9823 (class cplus_language): New class.
9824 (cplus_language_defn): New static global.
9825 (asm_language_defn): Convert to...
9826 (asm_language_data): ...this.
9827 (class asm_language): New class.
9828 (asm_language_defn): New static global.
9829 (minimal_language_defn): Convert to...
9830 (minimal_language_data): ...this.
9831 (class minimal_language): New class.
9832 (minimal_language_defn): New static global.
9833 * gdb/d-lang.c (d_language_defn): Convert to...
9834 (d_language_data): ...this.
9835 (class d_language): New class.
9836 (d_language_defn): New static global.
9837 * gdb/f-lang.c (f_language_defn): Convert to...
9838 (f_language_data): ...this.
9839 (class f_language): New class.
9840 (f_language_defn): New static global.
9841 * gdb/go-lang.c (go_language_defn): Convert to...
9842 (go_language_data): ...this.
9843 (class go_language): New class.
9844 (go_language_defn): New static global.
9845 * gdb/language.c (unknown_language_defn): Remove declaration.
9846 (current_language): Initialize to nullptr, real initialization is
9847 moved to _initialize_language.
9848 (languages): Delete global.
9849 (language_defn::languages): Define.
9850 (set_language_command): Use language_defn::languages.
9851 (set_language): Likewise.
9852 (range_error): Likewise.
9853 (language_enum): Likewise.
9854 (language_def): Likewise.
9855 (add_set_language_command): Use language_def::languages for the
9856 language list, and language_def to lookup language pointers.
9857 (skip_language_trampoline): Use language_defn::languages.
9858 (unknown_language_defn): Convert to...
9859 (unknown_language_data): ...this.
9860 (class unknown_language): New class.
9861 (unknown_language_defn): New static global.
9862 (auto_language_defn): Convert to...
9863 (auto_language_data): ...this.
9864 (class auto_language): New class.
9865 (auto_language_defn): New static global.
9866 (language_gdbarch_post_init): Use language_defn::languages.
9867 (_initialize_language): Initialize current_language.
9868 * gdb/language.h (struct language_defn): Rename to...
9869 (struct language_data): ...this.
9870 (struct language_defn): New.
9871 (auto_language_defn): Delete.
9872 (unknown_language_defn): Delete.
9873 (minimal_language_defn): Delete.
9874 (ada_language_defn): Delete.
9875 (asm_language_defn): Delete.
9876 (c_language_defn): Delete.
9877 (cplus_language_defn): Delete.
9878 (d_language_defn): Delete.
9879 (f_language_defn): Delete.
9880 (go_language_defn): Delete.
9881 (m2_language_defn): Delete.
9882 (objc_language_defn): Delete.
9883 (opencl_language_defn): Delete.
9884 (pascal_language_defn): Delete.
9885 (rust_language_defn): Delete.
9886 * gdb/m2-lang.c (m2_language_defn): Convert to...
9887 (m2_language_data): ...this.
9888 (class m2_language): New class.
9889 (m2_language_defn): New static global.
9890 * gdb/objc-lang.c (objc_language_defn): Convert to...
9891 (objc_language_data): ...this.
9892 (class objc_language): New class.
9893 (objc_language_defn): New static global.
9894 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9895 (opencl_language_data): ...this.
9896 (class opencl_language): New class.
9897 (opencl_language_defn): New static global.
9898 * gdb/p-lang.c (pascal_language_defn): Convert to...
9899 (pascal_language_data): ...this.
9900 (class pascal_language): New class.
9901 (pascal_language_defn): New static global.
9902 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9903 language pointer, update comment format.
9904 * gdb/rust-lang.c (rust_language_defn): Convert to...
9905 (rust_language_data): ...this.
9906 (class rust_language): New class.
9907 (rust_language_defn): New static global.
9908
1313c56e
AB
99092020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9910
9911 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9912 member variable.
9913 <m_stmt_at_address>: New member variable.
9914 (lnp_state_machine::record_line): Don't record some lines, update
9915 tracking of is_stmt at the same address.
9916 (lnp_state_machine::lnp_state_machine): Initialise new member
9917 variables.
9918
b7ed9f3d
ST
99192020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9920
9921 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9922 "-include gnu-nat-mig.h".
9923 * gnu-nat-mig.h: New file.
9924 * gnu-nat.c: Include "gnu-nat-mig.h".
9925 (exc_server, msg_reply_server, notify_server,
9926 process_reply_server): Remove declarations.
9927
14a8ad62
ST
99282020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9929
9930 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9931 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9932 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9933 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9934 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9935 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9936 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9937 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9938 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9939 to gnu_nat_target class.
9940 * gnu-nat.c: Likewise.
9941 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9942 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9943 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9944 object.
9945 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9946 instead of `gnu_target'.
9947
0af5e106
ST
99482020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9949
9950 * i386-gnu-tdep.c: Include "gdbcore.h"
9951 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9952 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9953 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9954 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9955 i386_gnu_sigcontext_addr): New functions
9956 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9957 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9958 tdep.
9959
078f2fc9
ST
99602020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9961
9962 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9963 before fork_inferior call. Avoid calling it if target_is_pushed returns
9964 true.
9965
53dff92c
ST
99662020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9967
9968 * gnu-nat.h (gnu_target): New variable declaration.
9969 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9970 gnu_target.
9971 * gnu-nat.c (gnu_target): New variable.
9972 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9973 add_thread_silent, and add_thread calls.
9974 (gnu_nat_target::create_inferior): Pass gnu_target to
9975 add_thread_silent, thread_change_ptid call.
9976 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9977 call.
9978
5a8b8627
ST
99792020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9980
9981 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9982 (gnu_nat_target::find_memory_regions): Remove unused
9983 `old_address' variable.
9984
366f550a
ST
99852020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9986
9987 * gnu-nat.c: Include "gdbarch.h".
9988
f14871bf
ST
99892020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9990
9991 * reply_mig_hack.awk (Error return): Cast function through
9992 void *, to bypass compiler function call check.
9993
c6887cfb
ST
99942020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9995
9996 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9997 $(srcdir)/reply_mig_hack.awk.
9998
6930bffe
ST
99992020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10000
10001 * gnu-nat.h (gnu_debug_flag): Set type to bool.
10002
112c22ed
JG
100032020-05-30 Jonny Grant <jg@jguk.org>
10004
10005 * configure.ac (ACX_BUGURL): change bug URL to https.
10006
f68f85b5
PA
100072020-05-30 Pedro Alves <palves@redhat.com>
10008
10009 * cp-support.c (replace_typedefs_template): New.
10010 (replace_typedefs_qualified_name): Handle
10011 DEMANGLE_COMPONENT_TEMPLATE.
10012
976ca316
SM
100132020-05-29 Simon Marchi <simon.marchi@efficios.com>
10014
10015 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
10016 dwarf2/index-cache.h, dwarf2/index-write.c,
10017 dwarf2/index-write.h, dwarf2/line-header.c,
10018 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
10019 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
10020 variables and fields from `dwarf2_per_objfile` to just
10021 `per_objfile` throughout.
10022
989ade05
SM
100232020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
10024
10025 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10026 <push_dwarf_reg_entry_value>: Add comment.
10027
c47bae85
KB
100282020-05-28 Kevin Buettner <kevinb@redhat.com>
10029 Keith Seitz <keiths@redhat.com>
10030
10031 * python/python.c (do_start_initialization): Call PyEval_SaveThread
10032 instead of PyEval_ReleaseLock.
10033 (class gdbpy_gil): Move to earlier in file.
10034 (finalize_python): Set gdb_python_initialized.
10035 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
10036 when not initialized.
10037
44486dcf
SM
100382020-05-28 Simon Marchi <simon.marchi@efficios.com>
10039
10040 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10041 <push_dwarf_reg_entry_value>: Remove assert. Override
10042 per_objfile with caller_per_objfile.
10043
f030440d
TV
100442020-05-28 Tom de Vries <tdevries@suse.de>
10045
10046 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
10047 PR gold/15646 workaround to symbol kind "type".
10048
f0fbb768
TT
100492020-05-27 Tom Tromey <tromey@adacore.com>
10050
10051 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
10052
af0b2a3e
TT
100532020-05-27 Tom Tromey <tromey@adacore.com>
10054
10055 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
10056 Use htab_find_with_hash.
10057 <add_abbrev>: Remove "abbrev_number" parameter.
10058 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
10059 "abbrev_number" parameter. Use htab_find_slot_with_hash.
10060 (hash_abbrev): Add comment.
10061 (abbrev_table::lookup_abbrev): Move to header file.
10062 (abbrev_table::read): Update.
10063
7d00ffec
TT
100642020-05-27 Tom Tromey <tromey@adacore.com>
10065
10066 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
10067 method.
10068 <canonical_name>: New member.
10069 <raw_name>: Rename from "name".
10070 (partial_die_info): Initialize canonical_name.
10071 (scan_partial_symbols): Check raw_name.
10072 (partial_die_parent_scope, partial_die_full_name)
10073 (add_partial_symbol, add_partial_subprogram)
10074 (add_partial_enumeration, load_partial_dies): Use "name" method.
10075 (partial_die_info::name): New method.
10076 (partial_die_info::read, guess_partial_die_structure_name)
10077 (partial_die_info::fixup): Update.
10078
697bba18
TT
100792020-05-27 Tom Tromey <tromey@adacore.com>
10080
10081 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
10082 <get_ref_die_offset>: Inline.
10083 <get_ref_die_offset_complaint>: New method.
10084 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
10085 (attribute::get_ref_die_offset_complaint): Rename from
10086 get_ref_die_offset. Just issue complaint.
10087
c17ace43
HD
100882020-05-27 Hannes Domani <ssbssa@yahoo.de>
10089
10090 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
10091
96445f0b
HD
100922020-05-27 Hannes Domani <ssbssa@yahoo.de>
10093
10094 * exec.c (exec_file_attach): Use errno value of first openp failure.
10095
ac637ec3
HD
100962020-05-27 Hannes Domani <ssbssa@yahoo.de>
10097
10098 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
10099 Don't close thread handle.
10100
17ee85fc
TT
101012020-05-27 Tom Tromey <tom@tromey.com>
10102 Simon Marchi <simon.marchi@efficios.com>
10103
10104 * objfiles.h (struct objfile) <partial_symtabs>: Now a
10105 shared_ptr.
10106 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
10107 member.
10108 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
10109 dwarf2_per_bfd_objfile_data_key>: New globals.
10110 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
10111 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
10112 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
10113 shared.
10114 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
10115 short-circuit when sharing.
10116 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
10117 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
10118
39b16f87
SM
101192020-05-27 Simon Marchi <simon.marchi@efficios.com>
10120
10121 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
10122 to...
10123 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
10124 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
10125
fcf23d5b
SM
101262020-05-27 Simon Marchi <simon.marchi@efficios.com>
10127
10128 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
10129 build_name_components, find_name_components_bounds>:
10130 Add per_objfile parameter.
10131 (struct mapped_index) <symbol_name_at>: Likewise.
10132 (struct mapped_debug_names): Remove constructor.
10133 <dwarf2_per_objfile>: Remove field.
10134 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
10135 (mapped_index_base::find_name_components_bounds,
10136 mapped_index_base::build_name_components,
10137 dw2_expand_symtabs_matching_symbol): Likewise.
10138 (class mock_mapped_index) <symbol_name_at>: Likewise.
10139 (check_match): Likewise.
10140 (check_find_bounds_finds): Likewise.
10141 (test_mapped_index_find_name_component_bounds): Update.
10142 (CHECK_MATCH): Update.
10143 (dw2_expand_symtabs_matching): Update.
10144 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
10145 per_objfile parameter.
10146 <find_vec_in_debug_names>: Likewise.
10147 <m_per_objfile>: New field.
10148 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
10149 parameter.
10150 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
10151 (dw2_debug_names_iterator::next): Update.
10152 (dw2_debug_names_lookup_symbol): Update.
10153 (dw2_debug_names_expand_symtabs_for_function): Update.
10154 (dw2_debug_names_map_matching_symbols): Update.
10155 (dw2_debug_names_expand_symtabs_matching): Update.
10156 (dwarf2_read_debug_names): Update.
10157
7188ed02
SM
101582020-05-27 Simon Marchi <simon.marchi@efficios.com>
10159
10160 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
10161 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
10162 move to dwarf2_per_objfile.
10163 <read_in_chain>: Remove.
10164 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
10165 remove_all_cus, age_comp_units>: New methods.
10166 <m_dwarf2_cus>: New member.
10167 (struct dwarf2_per_cu_data) <cu>: Remove.
10168 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
10169 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
10170 moved to methods of dwarf2_per_objfile.
10171 (dwarf2_clear_marks): Remove.
10172 (dwarf2_queue_item::~dwarf2_queue_item): Update.
10173 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
10174 (dwarf2_per_bfd::free_cached_comp_units): Remove.
10175 (dwarf2_per_objfile::remove_all_cus): New.
10176 (class free_cached_comp_units) <~free_cached_comp_units>:
10177 Update.
10178 (load_cu): Update.
10179 (dw2_do_instantiate_symtab): Adjust.
10180 (fill_in_sig_entry_from_dwo_entry): Adjust.
10181 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10182 (cutu_reader::cutu_reader): Likewise.
10183 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
10184 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
10185 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
10186 and dwarf2_per_objfile::age_comp_units.
10187 (load_partial_comp_unit): Update.
10188 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
10189 (process_queue): Likewise.
10190 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
10191 backlink.
10192 (dwarf2_read_addr_index): Likewise.
10193 (follow_die_offset): Likewise.
10194 (dwarf2_fetch_die_loc_sect_off): Likewise.
10195 (dwarf2_fetch_constant_bytes): Likewise.
10196 (dwarf2_fetch_die_type_sect_off): Likewise.
10197 (follow_die_sig_1): Likewise.
10198 (load_full_type_unit): Likewise.
10199 (read_signatured_type): Likewise.
10200 (dwarf2_cu::dwarf2_cu): Don't set cu field.
10201 (dwarf2_cu::~dwarf2_cu): Remove.
10202 (dwarf2_per_objfile::get_cu): New.
10203 (dwarf2_per_objfile::set_cu): New.
10204 (age_cached_comp_units): Rename to...
10205 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
10206 to std::unordered_map.
10207 (free_one_cached_comp_unit): Rename to...
10208 (dwarf2_per_objfile::remove_cu): ... this. Adjust
10209 to std::unordered_map.
10210 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
10211 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
10212 a dwarf2_per_objfile in data.
10213 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
10214 (dwarf2_clear_marks): Remove.
10215
2e671100
SM
102162020-05-27 Simon Marchi <simon.marchi@efficios.com>
10217
10218 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
10219 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
10220 (init_tu_and_read_dwo_dies): Likewise.
10221 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
10222 (cutu_reader::cutu_reader): Likewise.
10223 (load_partial_comp_unit): Likewise.
10224 (process_psymtab_comp_unit): Update.
10225 (build_type_psymtabs_1): Update.
10226 (process_skeletonless_type_unit): Update.
10227 (load_full_comp_unit): Update.
10228 (find_partial_die): Update.
10229 (dwarf2_read_addr_index): Update.
10230 (read_signatured_type): Update.
10231
2e6a9f79
SM
102322020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10233
10234 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
10235 m_header_read_in>: New fields.
10236 <get_header>: New method.
10237 * dwarf2/read.c (per_cu_header_read_in): Remove.
10238 (dwarf2_per_cu_data::get_header): New.
10239 (dwarf2_per_cu_data::addr_size): Update.
10240 (dwarf2_per_cu_data::offset_size): Update.
10241 (dwarf2_per_cu_data::ref_addr_size): Update.
10242
1b555f17
SM
102432020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10244
10245 * dwarf2/read.c (load_cu): Return dwarf2_cu.
10246 (dw2_do_instantiate_symtab): Update.
10247 (queue_and_load_all_dwo_tus): Change parameter from
10248 dwarf2_per_cu_data to dwarf2_cu.
10249 (dwarf2_fetch_die_loc_sect_off): Update.
10250 (dwarf2_fetch_constant_bytes): Update.
10251 (dwarf2_fetch_die_type_sect_off): Update.
10252
8fc0b21d
SM
102532020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10254
10255 * dwarf2/read.c (process_full_comp_unit,
10256 process_full_type_unit): Remove per_cu, per_objfile paramters.
10257 Add dwarf2_cu parameter.
10258 (process_queue): Update.
10259
168c9250
SM
102602020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10261
10262 * dwarf2/read.c (create_cu_from_index_list): Replace
10263 dwarf2_per_objfile parameter with dwarf2_per_bfd.
10264 (create_cus_from_index_list): Likewise.
10265 (create_cus_from_index): Likewise.
10266 (create_signatured_type_table_from_index): Likewise.
10267 (create_cus_from_debug_names_list): Likewise.
10268 (create_cus_from_debug_names): Likewise.
10269 (dwarf2_read_gdb_index): Update.
10270 (dwarf2_read_debug_names): Update.
10271
e286671b
TT
102722020-05-27 Tom Tromey <tom@tromey.com>
10273 Simon Marchi <simon.marchi@efficios.com>
10274
10275 * dwarf2/read.h (struct dwarf2_per_objfile)
10276 <get_type_for_signatured_type, set_type_for_signatured_type>:
10277 New methods.
10278 <m_type_map>: New member.
10279 (struct signatured_type) <type>: Remove.
10280 * dwarf2/read.c
10281 (dwarf2_per_objfile::get_type_for_signatured_type,
10282 dwarf2_per_objfile::set_type_for_signatured_type): New.
10283 (get_signatured_type): Use new methods.
10284
8adb8487
TT
102852020-05-27 Tom Tromey <tom@tromey.com>
10286 Simon Marchi <simon.marchi@efficios.com>
10287
10288 * dwarf2/read.h (struct type_unit_group_unshareable): New.
10289 (struct dwarf2_per_objfile) <type_units>: New member.
10290 <get_type_unit_group_unshareable>: New method.
10291 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
10292 num_symtabs, symtabs>: Remove; move to
10293 type_unit_group_unshareable.
10294 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
10295 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
10296 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
10297
127bbf4b
SM
102982020-05-27 Simon Marchi <simon.marchi@efficios.com>
10299
10300 * dwarf2/read.h (struct dwarf2_per_cu_data):
10301 <dwarf2_per_objfile>: Remove.
10302 * dwarf2/read.c (create_cu_from_index_list): Don't assign
10303 dwarf2_per_objfile.
10304 (create_signatured_type_table_from_index): Likewise.
10305 (create_signatured_type_table_from_debug_names): Likewise.
10306 (create_debug_type_hash_table): Likewise.
10307 (fill_in_sig_entry_from_dwo_entry): Likewise.
10308 (create_type_unit_group): Likewise.
10309 (read_comp_units_from_section): Likewise.
10310 (create_cus_hash_table): Likewise.
10311
f6e649dd
SM
103122020-05-27 Simon Marchi <simon.marchi@efficios.com>
10313
10314 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
10315 dwarf2_per_cu_data::dwarf2_per_objfile.
10316 (compute_compunit_symtab_includes): Likewise.
10317 (dwarf2_cu::start_symtab): Likewise.
10318
aa66c379
SM
103192020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10320
10321 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
10322 parameter.
10323 * dwarf2/read.c (get_die_type_at_offset): Likewise.
10324 (read_namespace_alias): Update.
10325 (lookup_die_type): Update.
10326 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
10327 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
10328 Update.
10329 (disassemble_dwarf_expression): Update.
10330
120ce1b5
SM
103312020-05-27 Simon Marchi <simon.marchi@efficios.com>
10332
10333 * dwarf2/read.h (struct dwarf2_queue_item): Add
10334 dwarf2_per_objfile parameter, assign new parameter.
10335 <per_objfile>: New field.
10336 * dwarf2/read.c (free_one_cached_comp_unit): Add
10337 dwarf2_per_objfile parameter.
10338 (queue_comp_unit): Likewise.
10339 (dw2_do_instantiate_symtab): Update.
10340 (process_psymtab_comp_unit): Update.
10341 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
10342 (process_imported_unit_die): Update.
10343 (queue_and_load_dwo_tu): Update.
10344 (follow_die_offset): Update.
10345 (follow_die_sig_1): Update.
10346
9f47c707
SM
103472020-05-27 Simon Marchi <simon.marchi@efficios.com>
10348
10349 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
10350 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
10351 (read_call_site_scope): Assign per_objfile.
10352 (dwarf2_per_cu_data::objfile): Remove.
10353 * gdbtypes.h (struct call_site) <per_objfile>: New member.
10354 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
10355 dwarf2_per_objfile parameter.
10356 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
10357 dwarf2_per_objfile parameter.
10358 (dwarf_expr_reg_to_entry_parameter): Add output
10359 dwarf2_per_objfile parameter.
10360 (locexpr_get_frame_base): Update.
10361 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
10362 <push_dwarf_reg_entry_value>: Update.
10363 <call_site_to_target_addr>: Update.
10364 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
10365 parameter.
10366 (value_of_dwarf_reg_entry): Update.
10367 (rw_pieced_value): Update.
10368 (indirect_synthetic_pointer): Update.
10369 (dwarf2_evaluate_property): Update.
10370 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
10371 parameter.
10372 (locexpr_read_variable): Update.
10373 (locexpr_get_symbol_read_needs): Update.
10374 (loclist_read_variable): Update.
10375
14095eb3
SM
103762020-05-27 Simon Marchi <simon.marchi@efficios.com>
10377
10378 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10379 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10380 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10381 parameter.
10382 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10383 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10384 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10385 parameter.
10386 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
10387 sect_variable_value): Add dwarf2_per_objfile parameter.
10388 (class dwarf_evaluate_loc_desc) <dwarf_call,
10389 dwarf_variable_value>: Update.
10390 (fetch_const_value_from_synthetic_pointer): Add
10391 dwarf2_per_objfile parameter.
10392 (fetch_const_value_from_synthetic_pointer): Update.
10393 (coerced_pieced_ref): Update.
10394 (class symbol_needs_eval_context) <dwarf_call,
10395 dwarf_variable_value>: Update.
10396 (dwarf2_compile_expr_to_ax): Update.
10397
3c3cd3d4
SM
103982020-05-27 Simon Marchi <simon.marchi@efficios.com>
10399
10400 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
10401 parameter.
10402 (dwarf2_evaluate_loc_desc_full): Update.
10403
82ca3f51
SM
104042020-05-27 Simon Marchi <simon.marchi@efficios.com>
10405
10406 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
10407 parameter.
10408 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
10409 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
10410 dwarf2_per_objfile parameter.
10411 (decode_debug_loc_dwo_addresses): Likewise.
10412 (dwarf2_find_location_expression): Update.
10413 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
10414 (locexpr_describe_location_piece): Add dwarf2_per_objfile
10415 parameter.
10416 (disassemble_dwarf_expression): Add dwarf2_per_objfile
10417 parameter.
10418 (locexpr_describe_location_1): Likewise.
10419 (locexpr_describe_location): Update.
10420
4b167ea1
SM
104212020-05-27 Simon Marchi <simon.marchi@efficios.com>
10422
10423 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
10424 Remove.
10425 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
10426 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
10427 (dwarf2_compile_property_to_c): Update.
10428 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
10429 use text offset from objfile.
10430 (locexpr_tracepoint_var_ref): Update.
10431 (locexpr_generate_c_location): Update.
10432 (loclist_describe_location): Update.
10433 (loclist_tracepoint_var_ref): Update.
10434 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
10435 dwarf2_per_objfile parameter.
10436 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
10437 use text offset from objfile.
10438 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
10439
89b07335
SM
104402020-05-27 Simon Marchi <simon.marchi@efficios.com>
10441
10442 * dwarf2/expr.h (struct dwarf_expr_context)
10443 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
10444 <offset>: Remove.
10445 <per_objfile>: New member.
10446 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
10447 dwarf2_per_objfile parameter. Don't set offset, set
10448 per_objfile.
10449 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
10450 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
10451 a dwarf2_per_objfile object instead of an offset.
10452 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
10453 constructor.
10454 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
10455 to dwarf2_expr_executor constructor. Don't set offset.
10456 (dwarf2_fetch_cfa_info): Update.
10457 (struct dwarf2_frame_cache) <text_offset>: Remove.
10458 <per_objfile>: New field.
10459 (dwarf2_frame_cache): Update.
10460 (dwarf2_frame_prev_register): Update.
10461 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10462 <dwarf_evaluate_loc_desc>: Add constructor.
10463 (dwarf2_evaluate_loc_desc_full): Update.
10464 (dwarf2_locexpr_baton_eval): Update.
10465 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
10466 Add constructor.
10467 (dwarf2_loc_desc_get_symbol_read_needs): Update.
10468
293e7e51
SM
104692020-05-27 Simon Marchi <simon.marchi@efficios.com>
10470
10471 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
10472 addr_sized_int_type>: Move to dwarf2_cu.
10473 <int_type>: Move to dwarf2_per_objfile.
10474 (struct dwarf2_per_objfile) <int_type>: Move here.
10475 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
10476 addr_sized_int_type>: Move here.
10477 (read_func_scope): Update.
10478 (read_array_type): Update.
10479 (read_tag_string_type): Update.
10480 (attr_to_dynamic_prop): Update.
10481 (dwarf2_per_cu_data::int_type): Rename to...
10482 (dwarf2_per_objfile::int_type): ... this.
10483 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
10484 (dwarf2_cu::addr_sized_int_type): ... this.
10485 (read_subrange_type): Update.
10486 (dwarf2_per_cu_data::addr_type): Rename to...
10487 (dwarf2_cu::addr_type): ... this.
10488 (set_die_type): Update.
10489
64874a40
SM
104902020-05-27 Simon Marchi <simon.marchi@efficios.com>
10491
10492 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
10493 data through per_cu->cu.
10494
4ab09049
SM
104952020-05-27 Simon Marchi <simon.marchi@efficios.com>
10496
10497 * dwarf2/read.c (lookup_dwo_comp_unit): Change
10498 dwarf2_per_cu_data parameter fo dwarf2_cu.
10499 (lookup_dwo_type_unit): Likewise.
10500 (read_cutu_die_from_dwo): Likewise.
10501 (lookup_dwo_unit): Likewise.
10502 (open_and_init_dwo_file): Likewise.
10503 (lookup_dwo_cutu): Likewise.
10504 (lookup_dwo_comp_unit): Likewise.
10505 (lookup_dwo_type_unit): Likewise.
10506 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10507 (cutu_reader::cutu_reader): Update.
10508
47b14e86
SM
105092020-05-27 Simon Marchi <simon.marchi@efficios.com>
10510
10511 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
10512 parameter.
10513 (process_full_type_unit): Likewise.
10514 (process_queue): Update.
10515
43182c09
SM
105162020-05-27 Simon Marchi <simon.marchi@efficios.com>
10517
10518 * dwarf2/read.c (recursively_compute_inclusions): Add
10519 dwarf2_per_objfile parameter.
10520 (compute_compunit_symtab_includes): Likewise.
10521 (process_cu_includes): Update.
10522
7aa104c4
SM
105232020-05-27 Simon Marchi <simon.marchi@efficios.com>
10524
10525 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
10526 parameter.
10527 (create_type_unit_group): Update.
10528 (process_psymtab_comp_unit_reader): Update.
10529 (build_type_psymtabs_reader): Update.
10530
e3beb21d
SM
105312020-05-27 Simon Marchi <simon.marchi@efficios.com>
10532
10533 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
10534 object through m_this_cu->cu.
10535
d460f660
SM
105362020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10537
10538 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
10539 the info parameter.
10540 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
10541
ab432490
SM
105422020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10543
10544 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
10545 per_objfile parameter.
10546 (load_full_type_unit): Add per_objfile parameter.
10547 (read_signatured_type): Likewise.
10548 (load_full_comp_unit): Likewise.
10549 (load_cu): Likewise.
10550 (dw2_do_instantiate_symtab): Likewise.
10551 (dw2_get_file_names): Likewise.
10552 (dw2_map_symtabs_matching_filename): Update.
10553 (dw_expand_symtabs_matching_file_matcher): Update.
10554 (dw2_map_symbol_filenames): Update.
10555 (process_psymtab_comp_unit): Add per_objfile parameter.
10556 (build_type_psymtabs_1): Update.
10557 (process_skeletonless_type_unit): Update.
10558 (dwarf2_build_psymtabs_hard): Update.
10559 (load_partial_comp_unit): Add per_objfile parameter.
10560 (scan_partial_symbols): Update.
10561 (load_full_comp_unit): Add per_objfile parameter.
10562 (process_imported_unit_die): Update.
10563 (create_cus_hash_table): Update.
10564 (find_partial_die): Update.
10565 (dwarf2_read_addr_index): Update.
10566 (follow_die_offset): Update.
10567 (dwarf2_fetch_die_loc_sect_off): Update.
10568 (dwarf2_fetch_constant_bytes): Update.
10569 (dwarf2_fetch_die_type_sect_off): Update.
10570 (follow_die_sig_1): Update.
10571 (load_full_type_unit): Add per_objfile parameter.
10572 (read_signatured_type): Likewise.
10573
313bad1b
SM
105742020-05-27 Simon Marchi <simon.marchi@efficios.com>
10575
10576 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10577 of objfile_name.
10578
c3699833
SM
105792020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10580
10581 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10582 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10583 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10584 field.
10585 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10586 (create_cus_from_index): Update.
10587 (dwarf2_read_gdb_index): Update.
10588 (create_cus_from_debug_names): Update.
10589 (dwarf2_read_debug_names): Update.
10590 (get_abbrev_section_for_cu): Update.
10591 (create_all_comp_units): Update.
10592 (read_attribute_value): Update.
10593 (get_debug_line_section): Update.
10594 * dwarf2/index-cache.c (index_cache::store): Update.
10595 * dwarf2/index-write.c (save_gdb_index_command): Update.
10596 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10597
1859c670
SM
105982020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10599
10600 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10601 member.
10602 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10603 dwarf2_per_cu_data::per_bfd.
10604 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10605 (create_type_unit_group): Likewise.
10606 (queue_comp_unit): Remove reference to
10607 per_cu->dwarf2_per_objfile.
10608 (maybe_queue_comp_unit): Likewise.
10609 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10610 (create_cus_hash_table): Assign new field.
10611
5e22e966
SM
106122020-05-27 Simon Marchi <simon.marchi@efficios.com>
10613
10614 * dwarf2/read.c: Replace
10615 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10616 dwarf2_cu->per_objfile throughout.
10617
97a1449a
SM
106182020-05-27 Simon Marchi <simon.marchi@efficios.com>
10619
10620 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10621 parameter, don't use per_cu->dwarf2_per_objfile.
10622 (dw2_instantiate_symtab): Likewise.
10623 (dw2_find_last_source_symtab): Update.
10624 (dw2_map_expand_apply): Update.
10625 (dw2_lookup_symbol): Update.
10626 (dw2_expand_symtabs_for_function): Update.
10627 (dw2_expand_all_symtabs): Update.
10628 (dw2_expand_symtabs_with_fullname): Update.
10629 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10630 don't use per_cu->dwarf2_per_objfile.
10631 (dw2_expand_marked_cus): Update.
10632 (dw2_find_pc_sect_compunit_symtab): Update.
10633 (dw2_debug_names_lookup_symbol): Update.
10634 (dw2_debug_names_expand_symtabs_for_function): Update.
10635 (dw2_debug_names_map_matching_symbols): Update.
10636 (dwarf2_psymtab::expand_psymtab): Update.
10637
9e021579
SM
106382020-05-27 Simon Marchi <simon.marchi@efficios.com>
10639
10640 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10641 <per_objfile>: New member.
10642 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10643 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10644 call to dwarf2_cu.
10645 (cutu_reader::cutu_reader): Update.
10646 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10647
ae090bdb
SM
106482020-05-27 Simon Marchi <simon.marchi@efficios.com>
10649
10650 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10651 struct dwarf2_per_objfile.
10652 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10653 dwarf2_per_bfd.
10654 * dwarf2/read.c (set_die_type): Update.
10655 (get_die_type_at_offset): Update.
10656
af758d11
SM
106572020-05-27 Tom Tromey <tom@tromey.com>
10658 Simon Marchi <simon.marchi@efficios.com>
10659
10660 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10661 method.
10662 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10663 get_symtab, set_symtab>: New methods.
10664 <m_symtabs>: New field.
10665 (struct dwarf2_psymtab): Derive from partial_symtab.
10666 <readin_p, get_compunit_symtab>: Declare methods.
10667 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10668 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10669 New methods.
10670 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10671 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10672 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10673 (dw2_symtab_iter_next, dw2_print_stats)
10674 (dw2_expand_symtabs_with_fullname)
10675 (dw2_expand_symtabs_matching_one)
10676 (dw_expand_symtabs_matching_file_matcher)
10677 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10678 (dw2_debug_names_iterator::next)
10679 (dw2_debug_names_map_matching_symbols)
10680 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10681 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10682 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10683 New methods.
10684 (get_compunit_symtab, process_full_comp_unit)
10685 (process_full_type_unit): Update.
10686 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10687
5989a64e
SM
106882020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10689
10690 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10691 then introduce a new dwarf2_per_objfile type.
10692 <read_line_string>: Move to the new dwarf2_per_objfile type.
10693 <objfile>: Likewise.
10694 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10695 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10696 dwarf2_per_objfile->per_bfd.
10697 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10698 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10699 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10700 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10701 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10702 (dwarf2_per_objfile::locate_sections): Rename to...
10703 (dwarf2_per_bfd::locate_sections): ... this.
10704 (dwarf2_per_objfile::get_cutu): Rename to...
10705 (dwarf2_per_bfd::get_cutu): ... this.
10706 (dwarf2_per_objfile::get_cu): Rename to...
10707 (dwarf2_per_bfd::get_cu): ... this.
10708 (dwarf2_per_objfile::get_tu): Rename to...
10709 (dwarf2_per_bfd::get_tu): ... this.
10710 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10711 (dwarf2_per_bfd::allocate_per_cu): ... this.
10712 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10713 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10714 (get_gdb_index_contents_ftype): Change parameter from
10715 dwarf2_per_objfile to dwarf2_per_bfd.
10716 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10717 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10718
a50264ba
TT
107192020-05-27 Tom Tromey <tom@tromey.com>
10720 Simon Marchi <simon.marchi@efficios.com>
10721
10722 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10723 (allocate_piece_closure): Set "per_objfile" member.
10724 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10725 (locexpr_describe_location, loclist_describe_location): Use new
10726 member.
10727 * dwarf2/read.c (read_call_site_scope)
10728 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10729 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10730 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10731 handle_data_member_location): Set per_objfile member.
10732 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10733 member.
10734 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10735
d3473f0c
TT
107362020-05-27 Tom Tromey <tom@tromey.com>
10737
10738 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10739 allocate_signatured_type>: Declare new methods.
10740 <m_num_psymtabs>: New member.
10741 (struct dwarf2_per_cu_data) <index>: New member.
10742 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10743 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10744 (create_cu_from_index_list): Use allocate_per_cu.
10745 (create_signatured_type_table_from_index)
10746 (create_signatured_type_table_from_debug_names)
10747 (create_debug_type_hash_table, add_type_unit)
10748 (read_comp_units_from_section): Use allocate_signatured_type.
10749
5717c425
TT
107502020-05-27 Tom Tromey <tom@tromey.com>
10751
10752 * psymtab.c (partial_map_expand_apply)
10753 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10754 (psym_lookup_global_symbol_language)
10755 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10756 (psym_print_stats, psym_expand_symtabs_for_function)
10757 (psym_map_symbol_filenames, psym_map_matching_symbols)
10758 (psym_expand_symtabs_matching)
10759 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10760 (maintenance_check_psymtabs): Update.
10761 * psympriv.h (struct partial_symtab) <readin_p,
10762 get_compunit_symtab>: Add objfile parameter.
10763 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10764 Likewise.
10765 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10766 get_compunit_symtab>: Likewise.
10767 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10768
45940949
TT
107692020-05-27 Tom Tromey <tom@tromey.com>
10770
10771 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10772 member.
10773 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10774 (create_cu_from_index_list)
10775 (create_signatured_type_table_from_index)
10776 (create_signatured_type_table_from_debug_names)
10777 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10778 (dwarf2_create_include_psymtab)
10779 (create_debug_type_hash_table, add_type_unit)
10780 (create_type_unit_group, read_comp_units_from_section)
10781 (dwarf2_compute_name, create_cus_hash_table)
10782 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10783 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10784 obstack.
10785 (dw2_get_real_path): Likewise. Change argument to
10786 dwarf2_per_objfile.
10787
f8c6d152
LM
107882020-05-27 Luis Machado <luis.machado@linaro.org>
10789
10790 PR tdep/26000
10791 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10792 for ldrd (immediate).
10793
e98d2e6d
PW
107942020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10795
10796 * command.h: Add comment giving the name of class_tui.
10797 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10798 create the fake command for the help for class_tui.
10799
53a47a3e
TT
108002020-05-26 Tom Tromey <tromey@adacore.com>
10801
10802 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10803 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10804 (val_atr): New function.
10805 (value_val_atr): Use it.
10806 * ada-valprint.c (print_optional_low_bound): Change low bound
10807 handling for enums.
10808 (val_print_packed_array_elements): Don't call discrete_position.
10809 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10810 discrete_position for enum types.
10811 * language.c (default_print_array_index): Change type.
10812 * language.h (struct language_defn) <la_print_array_index>: Add
10813 index_type parameter, change type of index_value.
10814 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10815 (default_print_array_index): Update.
10816 * valprint.c (maybe_print_array_index): Don't call
10817 value_from_longest. Update.
10818 (value_print_array_elements): Don't call discrete_position.
10819
0bc2354b
TT
108202020-05-26 Tom Tromey <tromey@adacore.com>
10821
10822 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10823 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10824
1218a4bf
CDA
108252020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10826
10827 PR gdb/13519
10828 * avr-tdep.c (avr_integer_to_address): Return data or code
10829 address accordingly to the second 'type' argument of the
10830 function.
10831
92651b1d
MW
108322020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10833
10834 * infcmd.c, inferior.h: (construct_inferior_arguments):
10835 Moved function from here to gdbsupport/common-inferior.{h,cc}
10836
0a4f5f8c
TT
108372020-05-23 Tom Tromey <tom@tromey.com>
10838
10839 Revert commit eca1f90c:
10840 * NEWS: Remove entry for completion styling.
10841 * completer.c (_rl_completion_prefix_display_length): Move
10842 declaration later.
10843 (gdb_fnprint): Revert.
10844 (gdb_display_match_list_1): Likewise.
10845 * cli/cli-style.c (completion_prefix_style)
10846 (completion_difference_style, completion_suffix_style): Remove.
10847 (_initialize_cli_style): Revert.
10848 * cli/cli-style.h (completion_prefix_style)
10849 (completion_difference_style, completion_suffix_style): Don't
10850 declare.
10851
e08bd6c5
PA
108522020-05-24 Pedro Alves <palves@redhat.com>
10853
10854 * symtab.c (completion_list_add_name): Return boolean indication
10855 of whether the symbol matched.
10856 (completion_list_add_symbol): Don't try to remove C++ aliases if
10857 the symbol didn't match in the first place.
10858 * symtab.h (completion_list_add_name): Return bool.
10859
ceacbf6e
SM
108602020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10861
10862 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10863 type::field.
10864
26f16254
JB
108652020-05-23 Joel Brobecker <brobecker@adacore.com>
10866
10867 GDB 9.2 released.
10868
eca1f90c
TT
108692020-05-23 Tom Tromey <tom@tromey.com>
10870
10871 * NEWS: Add entry for completion styling.
10872 * completer.c (_rl_completion_prefix_display_length): Move
10873 declaration earlier.
10874 (gdb_fnprint): Use completion_style.
10875 (gdb_display_match_list_1): Likewise.
10876 * cli/cli-style.c (completion_prefix_style)
10877 (completion_difference_style, completion_suffix_style): New
10878 globals.
10879 (_initialize_cli_style): Register new globals.
10880 * cli/cli-style.h (completion_prefix_style)
10881 (completion_difference_style, completion_suffix_style): Declare.
10882
51e2cfa2
PA
108832020-05-23 Pedro Alves <palves@redhat.com>
10884
10885 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10886 (parse_escape): Use ISDIGIT instead of isdigit.
10887 (puts_debug): Use gdb_isprint instead of isprint.
10888 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10889 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10890 ISSPACE instead of isspace.
10891 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10892 instead of isspace.
10893 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10894 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10895 instead of isxdigit and ISDIGIT instead of isdigit.
10896
80fc5e77
SM
108972020-05-22 Simon Marchi <simon.marchi@efficios.com>
10898
10899 * gdbtypes.h (struct type) <field>: New method.
10900 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10901 or type::field.
10902
3cabb6b0
SM
109032020-05-22 Simon Marchi <simon.marchi@efficios.com>
10904
10905 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10906 (TYPE_FIELDS): Use type::fields. Change all call sites that
10907 modify the propery to use type::set_fields instead.
10908
1f704f76
SM
109092020-05-22 Simon Marchi <simon.marchi@efficios.com>
10910
10911 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10912 type::num_fields instead.
10913
5e33d5f4
SM
109142020-05-22 Simon Marchi <simon.marchi@efficios.com>
10915
10916 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10917 methods.
10918 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10919 that modify the number of fields to use type::set_num_fields
10920 instead.
10921
9392ebb3
TT
109222020-05-22 Tom Tromey <tromey@adacore.com>
10923
10924 * compile/compile-object-load.h (munmap_list_free): Don't
10925 declare.
10926
7c13f4e8
AB
109272020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10928
10929 * annotate.c (annotate_source_line): Update return type, add call
10930 to update current symtab and line.
10931 * annotate.h (annotate_source_line): Update return type, and
10932 extend header comment.
10933 * source.c (info_line_command): Check annotation_level before
10934 calling annotate_source_line.
10935 * stack.c (print_frame_info): If calling annotate_source_line
10936 returns true, then don't print any other source line information.
10937
aa370940
SM
109382020-05-21 Simon Marchi <simon.marchi@efficios.com>
10939
10940 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10941
84d53fa9
SM
109422020-05-21 Simon Marchi <simon.marchi@efficios.com>
10943
10944 * coffread.c (patch_type): Remove NULL check before xfree.
10945 * corefile.c (set_gnutarget): Likewise.
10946 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10947 * exec.c (build_section_table): Likewise.
10948 * remote.c (remote_target::pass_signals): Likewise.
10949 * utils.c (n_spaces): Likewise.
10950 * cli/cli-script.c (document_command): Likewise.
10951 * i386-windows-tdep.c (core_process_module_section): Likewise.
10952 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10953
9d428aae
SM
109542020-05-20 Simon Marchi <simon.marchi@efficios.com>
10955
10956 * symfile.c (reread_symbols): Clear objfile's section_offsets
10957 vector and section indices, re-compute them by calling
10958 sym_offsets.
10959
250106a7
TT
109602020-05-20 Tom Tromey <tromey@adacore.com>
10961
10962 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 10963 (desc_one_bound, desc_index_type): Compute field name.
250106a7 10964
9a0bacfb
TV
109652020-05-20 Tom de Vries <tdevries@suse.de>
10966
10967 PR symtab/25833
10968 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10969
7b958a48
AM
109702020-05-20 Alan Modra <amodra@gmail.com>
10971
10972 PR 25993
10973 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10974 bfd_set_filename.
10975 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10976 passed to bfd_set_filename.
10977 * symfile-mem.c (add_vsyscall_page): Likewise for string
10978 passed to symbol_file_add_from_memory.
10979 (symbol_file_add_from_memory): Make name param a const char* and
10980 don't strdup.
10981
c7e97679
AM
109822020-05-20 Alan Modra <amodra@gmail.com>
10983
10984 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10985 rather than accessing bfd->filename directly.
10986 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10987 and use bfd_section_name.
10988 * dwarf2/frame.c (decode_frame_entry): Likewise.
10989 * exec.c (exec_set_section_address): Likewise.
10990 * solib-aix.c (solib_aix_bfd_open): Likewise.
10991 * stap-probe.c (get_stap_base_address): Likewise.
10992 * symfile.c (reread_symbols): Likewise.
10993
563c591b
TT
109942020-05-19 Tom Tromey <tromey@adacore.com>
10995
10996 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10997
f408d82c
SM
109982020-05-19 Simon Marchi <simon.marchi@efficios.com>
10999
11000 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
11001
98c59b52
PA
110022020-05-19 Pedro Alves <palves@redhat.com>
11003
11004 * NEWS (set exec-file-mismatch): Adjust entry.
11005 * exec.c: Include "build-id.h".
11006 (validate_exec_file): Try to match build IDs instead of filenames.
11007 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
11008 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
11009 and pass down 'warn_if_slow'.
11010 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
11011 gdb_bfd_open_closure to pass it down.
11012 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
11013
4111f652
PA
110142020-05-19 Pedro Alves <palves@redhat.com>
11015
11016 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
11017 * target.c (target_fileio_open_1): Rename to target_fileio_open
11018 and make extern. Use bool.
11019 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
11020 (target_fileio_read_alloc_1): Adjust.
11021 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
11022 (target_fileio_open_warn_if_slow): Delete declaration.
11023
ad80db5b
PA
110242020-05-19 Pedro Alves <palves@redhat.com>
11025
11026 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
11027 Adjust all callers.
11028
1d6ce4d3
YS
110292020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
11030
11031 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
11032 whether disp is negative.
11033
9005fbbb
SM
110342020-05-19 Simon Marchi <simon.marchi@efficios.com>
11035
11036 * symfile.h (struct symfile_segment_data)
11037 <~symfile_segment_data>: Remove.
11038 <segment_info>: Change to std::vector.
11039 * symfile.c (default_symfile_segments): Update.
11040 * elfread.c (elf_symfile_segments): Update.
11041
68b888ff
SM
110422020-05-19 Simon Marchi <simon.marchi@efficios.com>
11043
11044 * symfile.h (struct symfile_segment_data) <struct segment>: New.
11045 <segments>: New.
11046 <segment_bases, segment_sizes>: Remove.
11047 * symfile.c (default_symfile_segments): Update.
11048 * elfread.c (elf_symfile_segments): Update.
11049 * remote.c (remote_target::get_offsets): Update.
11050 * solib-target.c (solib_target_relocate_section_addresses):
11051 Update.
11052
62982abd
SM
110532020-05-19 Simon Marchi <simon.marchi@efficios.com>
11054
11055 * symfile.h (struct symfile_segment_data): Initialize fields.
11056 <~symfile_segment_data>: Add.
11057 (symfile_segment_data_up): New.
11058 (struct sym_fns) <sym_segments>: Return a
11059 symfile_segment_data_up.
11060 (default_symfile_segments): Return a symfile_segment_data_up.
11061 (free_symfile_segment_data): Remove.
11062 (get_symfile_segment_data): Return a symfile_segment_data_up.
11063 * symfile.c (default_symfile_segments): Likewise.
11064 (get_symfile_segment_data): Likewise.
11065 (free_symfile_segment_data): Remove.
11066 (symfile_find_segment_sections): Update.
11067 * elfread.c (elf_symfile_segments): Return a
11068 symfile_segment_data_up.
11069 * remote.c (remote_target::get_offsets): Update.
11070 * solib-target.c (solib_target_relocate_section_addresses):
11071 Update.
11072 * symfile-debug.c (debug_sym_segments): Return a
11073 symfile_segment_data_up.
11074
7f204339
RO
110752020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11076
e52a0f1b
RO
11077 PR build/25981
11078 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
11079 Hardcode register numbers.
11080
7f204339
RO
11081 PR build/25981
11082 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
11083 procfs_find_LDT_entry): Remove.
11084 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
11085 procfs_find_LDT_entry): Remove.
11086 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
11087 Remove.
11088
7f32a4d5
PA
110892020-05-17 Pedro Alves <palves@redhat.com>
11090 Andrew Burgess <andrew.burgess@embecosm.com>
11091 Keno Fischer <keno@juliacomputing.com>
11092
11093 PR gdb/25741
11094 * breakpoint.c (build_target_condition_list): Update comments.
11095 (build_target_command_list): Update comments and skip matching
11096 locations.
11097 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
11098 a separate function. Simplify "set breakpoint auto-hw off"
11099 handling.
11100 (insert_breakpoints): Update comment.
11101 (tracepoint_locations_match): New parameter. For breakpoints,
11102 compare location types too, if the caller wants to.
11103 (handle_automatic_hardware_breakpoints): New functions.
11104 (bp_location_is_less_than): Also sort by location type and
11105 hardware breakpoint length.
11106 (update_global_location_list): Handle "set breakpoint auto-hw on"
11107 here.
11108 (update_breakpoint_locations): Ask breakpoint_locations_match to
11109 ignore location types.
11110
7d93a1e0
SM
111112020-05-16 Simon Marchi <simon.marchi@efficios.com>
11112
11113 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
11114 type::name instead.
11115
d0e39ea2
SM
111162020-05-16 Simon Marchi <simon.marchi@efficios.com>
11117
11118 * gdbtypes.h (struct type) <name, set_name>: New methods.
11119 (TYPE_CODE): Use type::name. Change all call sites used to set
11120 the name to use type::set_name instead.
11121
2dab0c7b
TT
111222020-05-16 Tom Tromey <tom@tromey.com>
11123
11124 * top.c (quit_force): Update.
11125 * infrun.c (handle_no_resumed): Update.
11126 * top.h (all_uis): New function.
11127 (ALL_UIS): Remove.
11128
59f7bd8d
SM
111292020-05-16 Simon Marchi <simon.marchi@efficios.com>
11130
11131 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
11132
9bf058f0
PA
111332020-05-16 Pedro Alves <palves@redhat.com>
11134
11135 * ia64-linux-nat.c
11136 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
11137 Declare method.
11138 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
11139
8f86ae1a
SM
111402020-05-15 Simon Marchi <simon.marchi@efficios.com>
11141
11142 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
11143 (sparc64_adi_info): Likewise.
11144
d6bc0792
TT
111452020-05-15 Tom Tromey <tom@tromey.com>
11146
11147 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
11148 block_objfile.
11149 (lookup_objfile_from_block): Remove.
11150 (lookup_symbol_in_block, lookup_symbol_in_static_block)
11151 (lookup_global_symbol): Use block_objfile.
11152 * symtab.h (lookup_objfile_from_block): Don't declare.
11153 * printcmd.c (clear_dangling_display_expressions): Use
11154 block_objfile.
11155 * parse.c (operator_check_standard): Use block_objfile.
11156
8c14c3a3
TT
111572020-05-15 Tom Tromey <tom@tromey.com>
11158
11159 * language.c (language_alloc_type_symbol): Set
11160 SYMBOL_SECTION.
11161 * symtab.c (initialize_objfile_symbol): Remove.
11162 (allocate_symbol): Remove.
11163 (allocate_template_symbol): Remove.
11164 * dwarf2/read.c (fixup_go_packaging): Use "new".
11165 (new_symbol): Use "new".
11166 (read_variable): Don't call initialize_objfile_symbol. Use
11167 "new".
11168 (read_func_scope): Use "new".
11169 * xcoffread.c (process_xcoff_symbol): Don't call
11170 initialize_objfile_symbol.
11171 (SYMBOL_DUP): Remove.
11172 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
11173 "new".
11174 * symtab.h (allocate_symbol, initialize_objfile_symbol)
11175 (allocate_template_symbol): Don't declare.
11176 (struct symbol): Add copy constructor. Change defaults.
11177 * jit.c (finalize_symtab): Use "new".
11178 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
11179 Use "new".
11180 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
11181 (common_block_end): Use "new".
11182 * mdebugread.c (parse_symbol): Use "new".
11183 (new_symbol): Likewise.
11184
5b4a1a8d
PW
111852020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11186
11187 * NEWS: Mention changes to help and apropos.
11188
57b4f16e
PW
111892020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11190
11191 * command.h (enum command_class): Improve comments, document
11192 that class_alias is for user-defined aliases, give the class
11193 name for each class, remove unused class_xdb.
11194 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
11195 * breakpoint.c (_initialize_breakpoint): Replace class_alias
11196 by a precise class.
11197 * infcmd.c (_initialize_infcmd): Likewise.
11198 * reverse.c (_initialize_reverse): Likewise.
11199 * stack.c (_initialize_stack): Likewise.
11200 * symfile.c (_initialize_symfile): Likewise.
11201 * tracepoint.c (_initialize_tracepoint): Likewise.
11202
7c05caf7
PW
112032020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11204
11205 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
11206 when their aliased command is traversed.
11207 (help_cmd): Add fput_command_names_styled call to
11208 output command name and aliases when command has an alias.
11209
3b3aaacb
PW
112102020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11211
11212 * cli/cli-decode.h (help_cmd_list): Remove declaration.
11213 * cli/cli-decode.c (help_cmd_list): Declare as static,
11214 remove prefix argument, use bool for recurse arg, rework to show the aliases of
11215 a command together with the command.
11216 (fput_command_name_styled, fput_command_names_styled): New functions.
11217 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
11218 fput_command_name_styled.
11219 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
11220 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
11221
7aa1b46f
PW
112222020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11223
11224 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
11225 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
11226 * command.h (cmd_show_list): Likewise.
11227 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
11228 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
11229
89bcba74
PW
112302020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11231
11232 * unittests/command-def-selftests.c (traverse_command_structure):
11233 Verify all commands of a list have the same prefix command and
11234 that only the top cmdlist commands have a null prefix.
11235
3f4d92eb
PW
112362020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11237
11238 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
11239 as prefix, not one of its aliases.
11240 (set_cmd_prefix): Remove.
11241 (do_add_cmd): Centralize the setting of the prefix of a command, when
11242 command is defined after its full chain of prefix commands.
11243 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
11244 (add_setshow_cmd_full): Likewise.
11245 (update_prefix_field_of_prefixed_commands): New function.
11246 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
11247 update_prefix_field_of_prefixed_commands.
11248 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
11249 addresses of remote_set_cmdlist and remote_show_cmdlist given
11250 as argument, not the address of an argument.
11251 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
11252 * gdb/remote.c (_initialize_remote): Likewise.
11253
0605465f
PW
112542020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11255
11256 * cli/cli-cmds.c (alias_command): Check for an existing alias
11257 using lookup_cmd_composition, as valid_command_p is too strict
11258 and forbids aliases that are the prefix of an existing alias
11259 or command.
11260 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
11261 command is properly recognised as a valid command.
11262
58e6ac70
PW
112632020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11264
11265 * unittests/help-doc-selftests.c: Rename to
11266 unittests/command-def-selftests.c
11267 * unittests/command-def-selftests.c (help_doc_tests): Update some
11268 comments.
11269 (command_structure_tests, traverse_command_structure): New namespace
11270 and function.
11271 (command_structure_invariants_tests): New function.
11272 (_initialize_command_def_selftests) Renamed from
11273 _initialize_help_doc_selftests, register command_structure_invariants
11274 selftest.
11275
a7b9ceb8
PW
112762020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11277
11278 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
11279 an alias of 'show'.
11280
b2188a06
JB
112812020-05-15 Joel Brobecker <brobecker@adacore.com>
11282
11283 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
11284 ada_is_fixed_point_type. Update all callers.
11285 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
11286 all callers.
11287 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
11288 Update all callers.
11289 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
11290 print_fixed_point_type. Update all callers.
11291 * ada-valprint.c (ada_value_print_num): Replace call to
11292 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
11293
a51951c2
KB
112942020-05-14 Kevin Buettner <kevinb@redhat.com>
11295
11296 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
11297 processors.
11298 (cpu_supports_bts): Add CV_AMD case.
11299
29d6859f
LM
113002020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
11301 Simon Marchi <simon.marchi@efficios.com>
11302
11303 * infrun.c (stop_all_threads): Collect multiple wait events at
11304 each pass.
11305
78134374
SM
113062020-05-14 Simon Marchi <simon.marchi@efficios.com>
11307
11308 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
11309 type::code instead.
11310
67607e24
SM
113112020-05-14 Simon Marchi <simon.marchi@efficios.com>
11312
11313 * gdbtypes.h (struct type) <code, set_code>: New methods.
11314 (TYPE_CODE): Use type::code. Change all call sites used to set
11315 the code to use type::set_code instead.
11316
a05575d3
TBA
113172020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11318 Tom de Vries <tdevries@suse.de>
11319 Pedro Alves <palves@redhat.com>
11320
11321 PR threads/25478
11322 * infrun.c (stop_all_threads): Do NOT ignore
11323 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
11324 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
11325 received.
11326 (handle_no_resumed): Remove code handling a live inferior with no
11327 threads.
11328 * remote.c (has_single_non_exited_thread): New.
11329 (remote_target::update_thread_list): Do not delete a thread if is
11330 the last thread of the process.
11331 * thread.c (thread_select): Call delete_exited_threads instead of
11332 prune_threads.
11333
6ad82919
TBA
113342020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11335
11336 * infrun.c (stop_all_threads): Enable/disable thread events of all
11337 targets. Move a debug message denoting the end of the function
11338 into the SCOPED_EXIT block.
11339
d890404b
TBA
113402020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11341
11342 * process-stratum-target.h: Include <set>.
11343 (all_non_exited_process_targets, switch_to_target_no_thread): New
11344 function declarations.
11345 * process-stratum-target.c (all_non_exited_process_targets)
11346 (switch_to_target_no_thread): New function implementations.
11347
293b3ebc
TBA
113482020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11349
11350 * infrun.c (handle_inferior_event): Extract out a piece of code
11351 into...
11352 (mark_non_executing_threads): ...this new function.
11353
7ca9b62a
TBA
113542020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11355
11356 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
11357 use.
11358
fc75c28b
TBA
113592020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11360
11361 * regcache.c (regcache_read_pc_protected): New function
11362 implementation that returns 0 if the PC cannot read via
11363 'regcache_read_pc'.
11364 * infrun.c (proceed): Call 'regcache_read_pc_protected'
11365 instead of 'regcache_read_pc'.
11366 (keep_going_pass_signal): Ditto.
11367
a89febbd
TT
113682020-05-13 Tom Tromey <tromey@adacore.com>
11369
11370 * ada-lang.c (align_value): Remove.
11371 (ada_template_to_fixed_record_type_1): Use align_up.
11372
f7e23710
TBA
113732020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11374
11375 * async-event.c: Update the copyright year.
11376 * async-event.h: Update the copyright year.
11377
02ff80c2
SM
113782020-05-12 Simon Marchi <simon.marchi@efficios.com>
11379
11380 * objfiles.h (is_addr_in_objfile,
11381 shared_objfile_contains_address_p): Return bool.
11382 * objfile.c (is_addr_in_objfile,
11383 shared_objfile_contains_address_p): Return bool.
11384
4fd6c7e8
TT
113852020-05-11 Tom Tromey <tromey@adacore.com>
11386
11387 * cli/cli-cmds.c (info_command): Restore.
11388 (_initialize_cli_cmds): Use add_prefix_command for "info".
11389 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
11390
5eb68a39
TT
113912020-05-11 Tom Tromey <tromey@adacore.com>
11392
11393 * ada-lang.c (ada_value_primitive_field): Now public.
11394 * ada-lang.h (ada_value_primitive_field): Declare.
11395 * ada-valprint.c (print_field_values): Use
11396 ada_value_primitive_field for wrapper fields.
11397
7666722f
TV
113982020-05-11 Tom de Vries <tdevries@suse.de>
11399
11400 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
11401 MODULE_DOMAIN.
11402
3ee6bb11
TV
114032020-05-11 Tom de Vries <tdevries@suse.de>
11404
11405 PR symtab/25941
11406 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
11407 with length 0, if not gdb-produced.
11408 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
11409
43434996
TV
114102020-05-09 Tom de Vries <tdevries@suse.de>
11411
11412 PR gdb/25955
11413 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
11414 calculation.
11415
2f78cffc
TT
114162020-05-09 Tom Tromey <tom@tromey.com>
11417
11418 * top.c (server_command): Now bool.
11419 * top.h (server_command): Now bool.
11420
4f7bc5ed
TT
114212020-05-08 Tom Tromey <tromey@adacore.com>
11422
11423 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
11424 already being processed.
11425
8be4b118
TT
114262020-05-08 Tom Tromey <tom@tromey.com>
11427
11428 * printcmd.c (struct display) <next>: Remove.
11429 <display>: New constructor.
11430 <exp_string>: Now a std::string.
11431 <enabled_p>: Now a bool.
11432 (display_number): Move definition earlier.
11433 (displays): Rename from display_chain. Now a std::vector.
11434 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
11435 (display_command): Update.
11436 (do_one_display, disable_display)
11437 (enable_disable_display_command, do_enable_disable_display):
11438 Update.
11439 (free_display): Remove.
11440 (clear_displays): Rewrite.
11441 (delete_display): Update.
11442 (map_display_numbers): Use function_view. Remove "data"
11443 parameter. Update.
11444 (do_delete_display): Remove.
11445 (undisplay_command): Update.
11446 (do_one_display, do_displays, disable_display)
11447 (info_display_command): Update.
11448 (do_enable_disable_display): Remove.
11449 (enable_disable_display_command)
11450 (clear_dangling_display_expressions): Update.
11451
94c93c35
TT
114522020-05-08 Tom Tromey <tom@tromey.com>
11453
11454 * symtab.c (set_symbol_cache_size)
11455 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
11456 (maintenance_print_symbol_cache_statistics): Update.
11457 * symmisc.c (print_symbol_bcache_statistics)
11458 (print_objfile_statistics, maintenance_print_objfiles)
11459 (maintenance_info_symtabs, maintenance_check_symtabs)
11460 (maintenance_expand_symtabs, maintenance_info_line_tables):
11461 Update.
11462 * symfile-debug.c (set_debug_symfile): Update.
11463 * source.c (forget_cached_source_info): Update.
11464 * python/python.c (gdbpy_progspaces): Update.
11465 * psymtab.c (maintenance_info_psymtabs): Update.
11466 * probe.c (parse_probes): Update.
11467 * linespec.c (iterate_over_all_matching_symtabs)
11468 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
11469 * guile/scm-progspace.c (gdbscm_progspaces): Update.
11470 * exec.c (exec_target::close): Update.
11471 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
11472 * breakpoint.c (print_one_breakpoint_location)
11473 (create_longjmp_master_breakpoint)
11474 (create_std_terminate_master_breakpoint): Update.
11475 * progspace.c (program_spaces): Now a std::vector.
11476 (maybe_new_address_space): Update.
11477 (add_program_space): Remove.
11478 (program_space::program_space): Update.
11479 (remove_program_space): Update.
11480 (number_of_program_spaces): Remove.
11481 (print_program_space, update_address_spaces): Update.
11482 * progspace.h (program_spaces): Change type.
11483 (ALL_PSPACES): Remove.
11484 (number_of_program_spaces): Don't declare.
11485 (struct program_space) <next>: Remove.
11486
a1fd1ac9
TT
114872020-05-08 Tom Tromey <tom@tromey.com>
11488
11489 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
11490 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
11491 (enable_break): Update.
11492 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
11493 (frv_fdpic_find_canonical_descriptor): Update.
11494 (frv_fetch_objfile_link_map): Update.
11495 * progspace.c (program_space::free_all_objfiles): Update.
11496 (program_space::solibs): New method.
11497 * progspace.h (struct program_space) <solibs>: New method.
11498 * solist.h (master_so_list): Don't declare.
11499 (ALL_SO_LIBS): Remove.
11500 * solib.h (so_list_head): Remove.
11501 (update_solib_list): Update comment.
11502 * solib.c (master_so_list): Remove.
11503 (solib_used, update_solib_list, solib_add)
11504 (info_sharedlibrary_command, clear_solib)
11505 (reload_shared_libraries_1, remove_user_added_objfile): Update.
11506
38eae084
TT
115072020-05-08 Tom Tromey <tom@tromey.com>
11508
11509 * extension.c (extension_languages): Now a std::array.
11510 (ALL_EXTENSION_LANGUAGES): Remove.
11511 (get_ext_lang_defn, get_ext_lang_of_file)
11512 (eval_ext_lang_from_control_command): Update.
11513 (finish_ext_lang_initialization)
11514 (auto_load_ext_lang_scripts_for_objfile)
11515 (ext_lang_type_printers::ext_lang_type_printers)
11516 (apply_ext_lang_type_printers)
11517 (ext_lang_type_printers::~ext_lang_type_printers)
11518 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
11519 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
11520 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
11521 (get_matching_xmethod_workers, ext_lang_colorize)
11522 (ext_lang_before_prompt): Update.
11523 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
11524
596dc4ad
TT
115252020-05-08 Tom Tromey <tom@tromey.com>
11526
11527 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
11528 overload.
11529 <swap_string, m_string>: Remove.
11530 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
11531 Update.
11532 * stabsread.c (define_symbol, read_type): Update.
11533 * linespec.c (find_linespec_symbols): Update.
11534 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
11535 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
11536 * dbxread.c (read_dbx_symtab): Update.
11537 * cp-support.h (cp_canonicalize_string_full)
11538 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
11539 Return unique_xmalloc_ptr.
11540 * cp-support.c (inspect_type): Update.
11541 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
11542 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
11543 Likewise.
11544 * c-typeprint.c (print_name_maybe_canonical): Update.
11545 * break-catch-throw.c (check_status_exception_catchpoint):
11546 Update.
11547
bf4cb9be
TV
115482020-05-08 Tom de Vries <tdevries@suse.de>
11549
11550 * infrun.c (follow_fork): Copy current_line and current_symtab to
11551 child thread.
11552
a1b68f28
SM
115532020-05-07 Simon Marchi <simon.marchi@efficios.com>
11554
11555 * async-event.c (struct async_signal_handler, struct
11556 async_event_handler): Reformat, remove typedef.
11557
98d48915
SM
115582020-05-07 Simon Marchi <simon.marchi@efficios.com>
11559
11560 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
11561 access thistype->main_type->dyn_prop_list directly.
11562
7aa91313
SM
115632020-05-07 Simon Marchi <simon.marchi@efficios.com>
11564
11565 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
11566 (remove_dyn_prop): Remove. Update all users to use
11567 type::remove_dyn_prop.
11568 * gdbtypes.c (remove_dyn_prop): Rename to...
11569 (type::remove_dyn_prop): ... this.
11570
5c54719c
SM
115712020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11572
11573 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11574 (add_dyn_prop): Remove. Update all users to use
11575 type::add_dyn_prop.
11576 * gdbtypes.c (add_dyn_prop): Rename to...
11577 (type::add_dyn_prop): ... this.
11578
24e99c6c
SM
115792020-05-07 Simon Marchi <simon.marchi@efficios.com>
11580
11581 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11582 (get_dyn_prop): Remove. Update all users to use
11583 type::dyn_prop.
11584 * gdbtypes.c (get_dyn_prop): Rename to...
11585 (type::dyn_prop): ... this.
11586
0d4bf016
SM
115872020-05-06 Simon Marchi <simon.marchi@efficios.com>
11588
11589 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11590
ac4a4f1c
SM
115912020-05-06 Simon Marchi <simon.marchi@efficios.com>
11592
11593 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11594 instruction, skip it if it's there.
11595
a3bbacc1
SM
115962020-05-05 Simon Marchi <simon.marchi@efficios.com>
11597
11598 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11599
c3236f84
SM
116002020-05-04 Simon Marchi <simon.marchi@efficios.com>
11601
11602 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11603 * gdbtypes.c (recursive_dump_type): Remove use of
11604 TYPE_INCOMPLETE.
11605
3b6acaee
TT
116062020-05-03 Tom Tromey <tom@tromey.com>
11607
11608 * breakpoint.c (catch_command, tcatch_command): Remove.
11609 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11610 add_show_prefix_cmd.
11611 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11612 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11613 Remove.
11614 (add_internal_problem_command): Use add_basic_prefix_cmd,
11615 add_show_prefix_cmd.
11616 * mips-tdep.c (set_mipsfpu_command): Remove.
11617 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11618 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11619 (_initialize_index_cache): Use add_basic_prefix_cmd.
11620 * memattr.c (dummy_cmd): Remove.
11621 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11622 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11623 (_initialize_tui_win): Use add_basic_prefix_cmd,
11624 add_show_prefix_cmd.
11625 * cli/cli-logging.c (set_logging_command): Remove.
11626 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11627 add_show_prefix_cmd.
11628 (show_logging_command): Remove.
11629 * target.c (target_command): Remove.
11630 (add_target): Use add_basic_prefix_cmd.
11631
a51119cd
HD
116322020-05-02 Hannes Domani <ssbssa@yahoo.de>
11633
11634 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11635
652fc23a 116362020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 11637
652fc23a
PW
11638 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11639 info_command.
11640
117539e6
KR
116412020-04-30 Kamil Rytarowski <n54@gmx.com>
11642
11643 * nbsd-nat.c (nbsd_enable_proc_events)
11644 (nbsd_nat_target::post_startup_inferior): Add.
11645 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11646 (nbsd_nat_target::update_thread_list): Rewrite.
11647 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11648 "PTRACE_LWP_CREATE".
11649 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11650
102e38eb 116512020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 11652
102e38eb
PW
11653 * stack.c (_initialize_stack): Remove duplicated creation
11654 of "frame" command and "f" alias.
11655
ee9d1e5f
HD
116562020-04-30 Hannes Domani <ssbssa@yahoo.de>
11657
11658 PR gdb/18706
11659 * gdbtypes.c (check_typedef): Calculate size of array of
11660 stubbed type.
11661
627c7fb8
HD
116622020-04-30 Hannes Domani <ssbssa@yahoo.de>
11663
11664 PR gdb/15559
11665 * i386-tdep.c (i386_push_dummy_call): Call
11666 i386_thiscall_push_dummy_call.
11667 (i386_thiscall_push_dummy_call): New function.
11668 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11669 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11670 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11671
ffc2844e
SM
116722020-04-29 Simon Marchi <simon.marchi@efficios.com>
11673
11674 * gdbarch.sh (do_read): Add shellcheck disable directive for
11675 warning SC2162.
11676
1207375d
SM
116772020-04-29 Simon Marchi <simon.marchi@efficios.com>
11678
11679 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11680 "referenced but not assigned" warning.
11681
9fdb2916
SM
116822020-04-29 Simon Marchi <simon.marchi@efficios.com>
11683
11684 * gdbarch.sh: Remove code that sets fallbackdefault.
11685
759cea5e
SM
116862020-04-29 Simon Marchi <simon.marchi@efficios.com>
11687
11688 * gdbarch.sh: Use shell operators && and || instead of
11689 -a and -o.
11690
cb02ab24
SM
116912020-04-29 Simon Marchi <simon.marchi@efficios.com>
11692
11693 * gdbarch.sh: Use $(...) instead of `...`.
11694
a6fc5ffc
SM
116952020-04-29 Simon Marchi <simon.marchi@efficios.com>
11696
11697 * gdbarch.sh: Use double quotes around variables.
11698
8d113d13
SM
116992020-04-29 Simon Marchi <simon.marchi@efficios.com>
11700
11701 * gdbarch.sh: Use %s with printf, instead of variables in the
11702 format string.
11703
ed6acedd
TT
117042020-04-29 Tom Tromey <tromey@adacore.com>
11705
11706 PR ada/25875:
11707 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11708 type fields here.
11709 (read_enumeration_type): Call
11710 update_enumeration_type_from_children later. Update comments.
11711 (process_enumeration_scope): Don't create type fields.
11712
b68b1b58
KR
117132020-04-29 Kamil Rytarowski <n54@gmx.com>
11714
11715 * nbsd-tdep.c: Include "xml-syscall.h".
11716 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11717
f94b2e03
KR
117182020-04-29 Kamil Rytarowski <n54@gmx.com>
11719
11720 * nbsd-nat.c: Include "sys/wait.h".
11721 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11722 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11723 (nbsd_nat_target::remove_exec_catchpoint)
11724 (nbsd_nat_target::set_syscall_catchpoint): Add.
11725 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11726 (nbsd_nat_target::insert_exec_catchpoint)
11727 (nbsd_nat_target::remove_exec_catchpoint)
11728 (nbsd_nat_target::set_syscall_catchpoint): Add.
11729 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11730 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11731 `nbsd_get_syscall_number'.
11732
fc49bc72
TT
117332020-04-29 Tom Tromey <tom@tromey.com>
11734
11735 * stack.c (print_block_frame_labels): Remove.
11736
d642b692
HD
117372020-04-29 Hannes Domani <ssbssa@yahoo.de>
11738
11739 PR gdb/17320
11740 * ada-valprint.c (val_print_packed_array_elements): Move array
11741 end bracket to new line.
11742 (ada_val_print_string): Remove extra spaces before first array
11743 element.
11744 * c-valprint.c (c_value_print_array): Likewise.
11745 * m2-valprint.c (m2_print_array_contents): Likewise.
11746 (m2_value_print_inner): Likewise.
11747 * p-valprint.c (pascal_value_print_inner): Likewise.
11748 * valprint.c (generic_val_print_array): Likewise.
11749 (value_print_array_elements): Move first array element and array
11750 end bracket to new line.
11751
ea90f227
TV
117522020-04-29 Tom de Vries <tdevries@suse.de>
11753
11754 PR symtab/25889
11755 * linespec.c (find_method): Fix ix calculation.
11756
4498ef4f
KR
117572020-04-28 Kamil Rytarowski <n54@gmx.com>
11758
11759 * syscalls/update-netbsd.sh: New file.
11760 * syscalls/netbsd.xml: Regenerate.
11761 * data-directory/Makefile.in: Register `netbsd.xml' in
11762 `SYSCALLS_FILES'.
11763
a55e30b5
SM
117642020-04-28 Simon Marchi <simon.marchi@efficios.com>
11765
11766 * syscalls/update-freebsd.sh: Add double quotes.
11767
2b2fbab8
TT
117682020-04-28 Tom Tromey <tom@tromey.com>
11769
11770 * NEWS: Update.
11771 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11772 (cmdpy_init): Allow class_tui.
11773
a65189c9
TV
117742020-04-28 Mark Williams <mark@myosotissp.com>
11775
11776 PR gdb/24480
11777 * dwarf2read.c: Add missing assingments to list_in_scope when
11778 start_symtab was already called.
11779
1b95cdb7
SM
117802020-04-28 Simon Marchi <simon.marchi@efficios.com>
11781
11782 PR gdb/25881
11783 * dwarf2/read.c (offset_map_type): Use
11784 gdb:hash_enum<sect_offset> as hash function.
11785
15cd93d0
TV
117862020-04-28 Tom de Vries <tdevries@suse.de>
11787
11788 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11789 with DW_AT_signature.
11790
1eb39914
SM
117912020-04-27 Simon Marchi <simon.marchi@efficios.com>
11792
11793 * configure.ac: Remove check for fs_base/gs_base in
11794 user_regs_struct.
11795 * configure: Re-generate.
11796 * config.in: Re-generate.
11797 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11798 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11799 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11800
991a3e2e
LM
118012020-04-27 Luis Machado <luis.machado@linaro.org>
11802
11803 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11804 problematic inline frame unwinding situation.
11805 * frame.c (frame_id_computed_p): New function.
11806 * frame.h (frame_id_computed_p): New prototype.
11807
361ba0e8
TT
118082020-04-26 Tom Tromey <tom@tromey.com>
11809
11810 * command.h (enum command_class) <class_pseudo>: Remove.
11811
bc3609fd
PW
118122020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11813
11814 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11815 and whitespace.
11816
b9771db7
KR
118172020-04-25 Kamil Rytarowski <n54@gmx.com>
11818
ec16513e
SM
11819 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11820 `PT_GET_PROCESS_STATE' block.
b9771db7 11821
7151c1af
TT
118222020-04-24 Tom Tromey <tom@tromey.com>
11823
11824 * symtab.h (symbol_get_demangled_name): Don't declare.
11825 * symtab.c (symbol_get_demangled_name): Remove.
11826 (general_symbol_info::natural_name)
11827 (general_symbol_info::demangled_name): Update.
11828
906bb4c5
TT
118292020-04-24 Tom Tromey <tom@tromey.com>
11830
11831 PR rust/25025:
11832 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11833
bcfe6157
TT
118342020-04-24 Tom Tromey <tom@tromey.com>
11835
11836 PR symtab/12707:
11837 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11838 exists.
11839 (new_symbol): Likewise.
11840 * compile/compile-object-load.c (get_out_value_type): Use
11841 symbol_matches_search_name.
11842
f049a313
TT
118432020-04-24 Tom Tromey <tom@tromey.com>
11844
11845 * dwarf2/read.c (add_partial_symbol): Do not call
11846 compute_and_set_names.
11847
76e288d1
TT
118482020-04-24 Tom Tromey <tom@tromey.com>
11849
11850 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11851 overload.
11852
2467f4f6
TT
118532020-04-24 Tom Tromey <tom@tromey.com>
11854
11855 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11856 (add_psymbol_to_list): New overload. Make old overload call new
11857 one.
11858 * psympriv.h (add_psymbol_to_list): New overload.
11859
e61108c9
TT
118602020-04-24 Tom Tromey <tom@tromey.com>
11861
11862 * dwarf2/read.c (partial_die_info::read) <case
11863 DW_AT_linkage_name>: Use value_as_string.
11864 (dwarf2_string_attr): Use value_as_string.
11865 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11866 method.
11867 * dwarf2/attribute.c (attribute::value_as_string): New method.
11868
8c87a452
TT
118692020-04-24 Tom Tromey <tom@tromey.com>
11870
11871 * symtab.c (general_symbol_info::natural_name)
11872 (general_symbol_info::demangled_name): Check for language_rust.
11873
787de330
TT
118742020-04-24 Tom Tromey <tom@tromey.com>
11875
11876 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11877 (dwarf2_physname): ... from here.
11878 (partial_die_info::read): Add Rust "{" hack.
11879
ff985671
TT
118802020-04-24 Tom Tromey <tom@tromey.com>
11881
11882 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11883 method.
11884 (symbol_set_demangled_name): Don't declare.
11885 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11886 symbol_set_demangled_name.
11887 (general_symbol_info::set_language)
11888 (general_symbol_info::compute_and_set_names): Update.
11889 * minsyms.c (minimal_symbol_reader::install): Update.
11890 * dwarf2/read.c (new_symbol): Update.
11891
1acda803
TT
118922020-04-24 Tom Tromey <tromey@adacore.com>
11893
11894 PR python/23662:
11895 * python/py-type.c (convert_field): Handle
11896 FIELD_LOC_KIND_DWARF_BLOCK.
11897 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11898 (typy_get_dynamic): Nw function.
11899 (type_object_getset): Add "dynamic".
11900 * NEWS: Add entry.
11901
d656f129
TT
119022020-04-24 Tom Tromey <tromey@adacore.com>
11903
11904 * ada-typeprint.c (print_choices, print_variant_part)
11905 (print_record_field_types_dynamic): New functions.
11906 (print_record_field_types): Use print_record_field_types_dynamic.
11907
7d79de9a
TT
119082020-04-24 Tom Tromey <tromey@adacore.com>
11909
11910 * dwarf2/read.c (handle_data_member_location): New overload.
11911 (dwarf2_add_field): Use it.
11912 (decode_locdesc): Add "computed" parameter. Update comment.
11913 * gdbtypes.c (is_dynamic_type_internal): Also look for
11914 FIELD_LOC_KIND_DWARF_BLOCK.
11915 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11916 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11917 virtual base classes.
11918 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11919 FIELD_LOC_KIND_DWARF_BLOCK.
11920
f8e89861
TT
119212020-04-24 Tom Tromey <tromey@adacore.com>
11922
11923 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11924 * gdbtypes.c (is_dynamic_type_internal): Check
11925 TYPE_HAS_DYNAMIC_LENGTH.
11926 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11927 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11928 New macros.
11929 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11930 constant.
11931
9c6a1327
TT
119322020-04-24 Tom Tromey <tromey@adacore.com>
11933
11934 * dwarf2/read.c (struct variant_field): Rewrite.
11935 (struct variant_part_builder): New.
11936 (struct nextfield): Remove "variant" field. Add "offset".
11937 (struct field_info): Add "current_variant_part" and
11938 "variant_parts".
11939 (alloc_discriminant_info): Remove.
11940 (alloc_rust_variant): New function.
11941 (quirk_rust_enum): Update.
11942 (dwarf2_add_field): Set "offset" member. Don't handle
11943 DW_TAG_variant_part.
11944 (offset_map_type): New typedef.
11945 (convert_variant_range, create_one_variant)
11946 (create_one_variant_part, create_variant_parts)
11947 (add_variant_property): New functions.
11948 (dwarf2_attach_fields_to_type): Call add_variant_property.
11949 (read_structure_type): Don't handle DW_TAG_variant_part.
11950 (handle_variant_part, handle_variant): New functions.
11951 (handle_struct_member_die): Use them.
11952 (process_structure_scope): Don't handle variant parts.
11953 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11954 (struct discriminant_info): Remove.
11955 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11956 (struct main_type) <flag_discriminated_union>: Remove.
11957 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11958 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11959 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11960 Update.
11961 * valops.c (value_union_variant): Remove.
11962 * value.h (value_union_variant): Don't declare.
11963
b249d2c2
TT
119642020-04-24 Tom Tromey <tromey@adacore.com>
11965
11966 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11967 (ada_value_primitive_packed_val): Update.
11968 * ada-valprint.c (ada_value_print_1): Update.
11969 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11970 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11971 just an address. Use evaluate_for_locexpr_baton.
11972 (dwarf2_evaluate_property): Update.
11973 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11974 array_view.
11975 * findvar.c (default_read_var_value): Update.
11976 * gdbtypes.c (compute_variant_fields_inner)
11977 (resolve_dynamic_type_internal): Update.
11978 (resolve_dynamic_type): Change type of valaddr parameter.
11979 * gdbtypes.h (resolve_dynamic_type): Update.
11980 * valarith.c (value_subscripted_rvalue): Update.
11981 * value.c (value_from_contents_and_address): Update.
11982
61122aa9
TT
119832020-04-24 Tom Tromey <tromey@adacore.com>
11984
11985 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11986 "push_initial_value" parameter.
11987 (dwarf2_evaluate_property): Likewise.
11988 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11989
ef83a141
TT
119902020-04-24 Tom Tromey <tromey@adacore.com>
11991
11992 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11993 (variant::matches, compute_variant_fields_recurse)
11994 (compute_variant_fields_inner, compute_variant_fields): New
11995 functions.
11996 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11997 Use resolved_type after type is made.
11998 (operator==): Add new cases.
11999 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
12000 (struct discriminant_range, struct variant, struct variant_part):
12001 New.
12002 (union dynamic_prop_data) <variant_parts, original_type>: New
12003 members.
12004 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
12005 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
12006 constants.
12007 * value.c (unpack_bits_as_long): Now public.
12008 * value.h (unpack_bits_as_long): Declare.
12009
675127ec
TT
120102020-04-24 Tom Tromey <tromey@adacore.com>
12011
12012 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
12013 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
12014
9852ceef
HD
120152020-04-24 Hannes Domani <ssbssa@yahoo.de>
12016
12017 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
12018
7632c6ce
KR
120192020-04-24 Kamil Rytarowski <n54@gmx.com>
12020
12021 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
12022 (remove_fork_catchpoint, post_startup_inferior)
12023 (post_attach): Move...
12024 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
12025 (remove_fork_catchpoint, post_startup_inferior)
12026 (post_attach): ...here.
12027 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
12028 (remove_fork_catchpoint, post_startup_inferior)
12029 (post_attach): Move...
12030 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
12031 (remove_fork_catchpoint, post_startup_inferior)
12032 (post_attach): ...here.
12033
7be2bb4f
TT
120342020-04-24 Tom Tromey <tromey@adacore.com>
12035
12036 * nat/windows-nat.h (struct windows_thread_info)
12037 <pc_adjusted>: New member.
12038 * windows-nat.c (windows_fetch_one_register): Check
12039 pc_adjusted.
12040 (windows_nat_target::get_windows_debug_event)
12041 (windows_nat_target::wait): Set pc_adjusted.
12042
f80cb3b4
TV
120432020-04-24 Tom de Vries <tdevries@suse.de>
12044
12045 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
12046 Run gdb-add-index inside temp dir.
12047
29514b87
TT
120482020-04-23 Tom Tromey <tromey@adacore.com>
12049
12050 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
12051 in loop.
12052
5939967b
LM
120532020-04-23 Luis Machado <luis.machado@linaro.org>
12054
12055 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
12056 get_frame_register instead of gdbarch_unwind_pc.
12057
70bc38f5
TV
120582020-04-23 Tom de Vries <tdevries@suse.de>
12059
12060 * symtab.c (lookup_global_symbol): Prefer def over decl.
12061
de82891c
TV
120622020-04-23 Tom de Vries <tdevries@suse.de>
12063
12064 PR symtab/25807
12065 * block.c (best_symbol, better_symbol): Promote to external.
12066 * block.h (best_symbol, better_symbol): Declare.
12067 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
12068 decl.
12069
ecc6c606
TT
120702020-04-23 Tom Tromey <tromey@adacore.com>
12071
12072 PR ada/25837:
12073 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
12074 "const char *", not a "const std::string &".
12075 <name_and_matcher::operator==>: Update.
12076 * unittests/lookup_name_info-selftests.c: Change type of
12077 "result".
12078
740480b8
TT
120792020-04-23 Tom Tromey <tom@tromey.com>
12080
12081 * inferior.h (iterate_over_inferiors): Don't declare.
12082 * inferior.c (iterate_over_inferiors): Remove.
12083 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
12084 Remove.
12085 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
12086 use iterate_over_inferiors.
12087 (darwin_resume_inferior_it)
12088 (struct resume_inferior_threads_param)
12089 (darwin_resume_inferior_threads_it): Remove.
12090 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
12091
ae3ab1f0
TV
120922020-04-23 Tom de Vries <tdevries@suse.de>
12093
12094 * blockframe.c (find_pc_partial_function): Use
12095 find_pc_sect_compunit_symtab rather than
12096 objfile->sf->qf->find_pc_sect_compunit_symtab.
12097
317d2668
TV
120982020-04-22 Tom de Vries <tdevries@suse.de>
12099
12100 PR symtab/25764
12101 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
12102 in psymtabs.
12103
eea9e357
TV
121042020-04-22 Tom de Vries <tdevries@suse.de>
12105
12106 PR symtab/25801
12107 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
12108 symtabs.
12109
3d5afab3
TV
121102020-04-22 Tom de Vries <tdevries@suse.de>
12111
12112 PR symtab/25700
12113 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
12114 CU if already created.
12115
d43b7a2d
TBA
121162020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12117
12118 * infrun.c (displaced_step_fixup): Switch to the event_thread
12119 before calling displaced_step_restore, not after.
12120
d89edf9b
MM
121212020-04-21 Markus Metzger <markus.t.metzger@intel.com>
12122
12123 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
12124 its inferior is not recorded by us.
12125 (record_btrace_target_open): Replace call to
12126 all_non_exited_threads () with call to current_inferior
12127 ()->non_exited_threads ().
12128 (record_btrace_target::stop_recording): Likewise.
12129 (record_btrace_target::close): Likewise.
12130 (record_btrace_target::wait): Likewise.
12131 (record_btrace_target::record_stop_replaying): Likewise.
12132
5897fd49
MM
121332020-04-21 Markus Metzger <markus.t.metzger@intel.com>
12134
12135 * btrace.c (btrace_enable): Throw an error on double enables and
12136 when enabling recording fails.
12137 (btrace_disable): Throw an error if the thread is not recorded.
12138
1a476b6d
MM
121392020-04-21 Markus Metzger <markus.t.metzger@intel.com>
12140
12141 * record-btrace.c (record_btrace_target::fetch_registers): Forward
12142 request if we do not have a thread_info.
12143
4778a5f8
TV
121442020-04-21 Tom de Vries <tdevries@suse.de>
12145
12146 PR gdb/25471
12147 * thread.c
12148 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
12149 exception in get_frame_id.
12150
0fa7617d
TT
121512020-04-20 Tom Tromey <tromey@adacore.com>
12152
12153 * python/python.c (struct gdbpy_event): Mark move constructor as
12154 noexcept.
12155 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
12156 constructor as noexcept.
12157 * completer.h (struct completion_result): Mark move constructor as
12158 noexcept.
12159 * completer.c (completion_result::completion_result): Use
12160 initialization style. Don't call reset_match_list.
12161
ad23bda0
MS
121622020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
12163
12164 * MAINTAINERS (Write After Approval): Add myself.
12165
45e1f031
TT
121662020-04-18 Tom Tromey <tom@tromey.com>
12167
12168 * windows-tdep.c (init_w32_command_list)
12169 (w32_prefix_command_valid): Restore.
12170 (_initialize_windows_tdep): Call init_w32_command_list.
12171
08feed99
TT
121722020-04-18 Tom Tromey <tom@tromey.com>
12173
12174 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
12175 * value.c (value_fn_field): Update.
12176 * valops.c (find_function_in_inferior)
12177 (value_allocate_space_in_inferior): Update.
12178 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12179 Update.
12180 * tui/tui-source.c (tui_source_window::set_contents): Update.
12181 * symtab.c (lookup_global_or_static_symbol)
12182 (find_function_start_sal_1, skip_prologue_sal)
12183 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
12184 * symmisc.c (dump_msymbols, dump_symtab_1)
12185 (maintenance_print_one_line_table): Update.
12186 * symfile.c (init_entry_point_info, section_is_mapped)
12187 (list_overlays_command, simple_read_overlay_table)
12188 (simple_overlay_update_1): Update.
12189 * stap-probe.c (handle_stap_probe): Update.
12190 * stabsread.c (dbx_init_float_type, define_symbol)
12191 (read_one_struct_field, read_enum_type, read_range_type): Update.
12192 * source.c (info_line_command): Update.
12193 * python/python.c (gdbpy_source_objfile_script)
12194 (gdbpy_execute_objfile_script): Update.
12195 * python/py-type.c (save_objfile_types): Update.
12196 * python/py-objfile.c (py_free_objfile): Update.
12197 * python/py-inferior.c (python_new_objfile): Update.
12198 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
12199 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
12200 (maintenance_check_psymtabs): Update.
12201 * printcmd.c (info_address_command): Update.
12202 * objfiles.h (struct objfile) <arch>: New method, from
12203 get_objfile_arch.
12204 (get_objfile_arch): Don't declare.
12205 * objfiles.c (get_objfile_arch): Remove.
12206 (filter_overlapping_sections): Update.
12207 * minsyms.c (msymbol_is_function): Update.
12208 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
12209 (output_nondebug_symbol): Update.
12210 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
12211 (mdebug_expand_psymtab): Update.
12212 * machoread.c (macho_add_oso_symfile): Update.
12213 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
12214 Update.
12215 * linux-fork.c (checkpoint_command): Update.
12216 * linespec.c (convert_linespec_to_sals): Update.
12217 * jit.c (finalize_symtab): Update.
12218 * infrun.c (insert_exception_resume_from_probe): Update.
12219 * ia64-tdep.c (ia64_find_unwind_table): Update.
12220 * hppa-tdep.c (internalize_unwinds): Update.
12221 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
12222 Update.
12223 * gcore.c (call_target_sbrk): Update.
12224 * elfread.c (record_minimal_symbol, elf_symtab_read)
12225 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
12226 (elf_gnu_ifunc_resolve_by_got): Update.
12227 * dwarf2/read.c (create_addrmap_from_index)
12228 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12229 (read_debug_names_from_section)
12230 (process_psymtab_comp_unit_reader, add_partial_symbol)
12231 (add_partial_subprogram, process_full_comp_unit)
12232 (read_file_scope, read_func_scope, read_lexical_block_scope)
12233 (read_call_site_scope, dwarf2_ranges_read)
12234 (dwarf2_record_block_ranges, dwarf2_add_field)
12235 (mark_common_block_symbol_computed, read_tag_pointer_type)
12236 (read_tag_string_type, dwarf2_init_float_type)
12237 (dwarf2_init_complex_target_type, read_base_type)
12238 (partial_die_info::read, partial_die_info::read)
12239 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
12240 (dwarf2_fetch_die_loc_sect_off): Update.
12241 * dwarf2/loc.c (dwarf2_find_location_expression)
12242 (class dwarf_evaluate_loc_desc, rw_pieced_value)
12243 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
12244 (dwarf2_loc_desc_get_symbol_read_needs)
12245 (locexpr_describe_location_piece, locexpr_describe_location_1)
12246 (loclist_describe_location): Update.
12247 * dwarf2/index-write.c (write_debug_names): Update.
12248 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
12249 * dtrace-probe.c (dtrace_process_dof): Update.
12250 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
12251 (process_one_symbol): Update.
12252 * ctfread.c (ctf_init_float_type, read_base_type): Update.
12253 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
12254 (coff_read_enum_type): Update.
12255 * cli/cli-cmds.c (edit_command, list_command): Update.
12256 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
12257 * breakpoint.c (create_overlay_event_breakpoint)
12258 (create_longjmp_master_breakpoint)
12259 (create_std_terminate_master_breakpoint)
12260 (create_exception_master_breakpoint, get_sal_arch): Update.
12261 * block.c (block_gdbarch): Update.
12262 * annotate.c (annotate_source_line): Update.
12263
0743fc83
TT
122642020-04-17 Tom Tromey <tromey@adacore.com>
12265
12266 * auto-load.c (show_auto_load_cmd): Remove.
12267 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
12268 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
12269 (maintenance_print_arc_command): Remove.
12270 * tui/tui-win.c (tui_command): Remove.
12271 (tui_get_cmd_list): Use add_basic_prefix_cmd.
12272 * tui/tui-layout.c (tui_layout_command): Remove.
12273 (_initialize_tui_layout): Use add_basic_prefix_cmd.
12274 * python/python.c (user_set_python, user_show_python): Remove.
12275 (_initialize_python): Use add_basic_prefix_cmd,
12276 add_show_prefix_cmd.
12277 * guile/guile.c (set_guile_command, show_guile_command): Remove.
12278 (install_gdb_commands): Use add_basic_prefix_cmd,
12279 add_show_prefix_cmd.
12280 (info_guile_command): Remove.
12281 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
12282 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
12283 add_show_prefix_cmd.
12284 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
12285 Remove do_set and do_show parameters.
12286 * cli/cli-style.c (set_style, show_style): Remove.
12287 (_initialize_cli_style): Use add_basic_prefix_cmd,
12288 add_show_prefix_cmd.
12289 (cli_style_option::add_setshow_commands): Remove do_set and
12290 do_show parameters.
12291 (cli_style_option::add_setshow_commands): Use
12292 add_basic_prefix_cmd, add_show_prefix_cmd.
12293 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
12294 (set_style_name): Remove.
12295 * cli/cli-dump.c (dump_command, append_command): Remove.
12296 (srec_dump_command, ihex_dump_command, verilog_dump_command)
12297 (tekhex_dump_command, binary_dump_command)
12298 (binary_append_command): Remove.
12299 (_initialize_cli_dump): Use add_basic_prefix_cmd.
12300 * windows-tdep.c (w32_prefix_command_valid): Remove global.
12301 (init_w32_command_list): Remove; move into ...
12302 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
12303 * valprint.c (set_print, show_print, set_print_raw)
12304 (show_print_raw): Remove.
12305 (_initialize_valprint): Use add_basic_prefix_cmd,
12306 add_show_prefix_cmd.
12307 * typeprint.c (set_print_type, show_print_type): Remove.
12308 (_initialize_typeprint): Use add_basic_prefix_cmd,
12309 add_show_prefix_cmd.
12310 * record.c (set_record_command, show_record_command): Remove.
12311 (_initialize_record): Use add_basic_prefix_cmd,
12312 add_show_prefix_cmd.
12313 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
12314 add_show_prefix_cmd.
12315 (info_command, show_command, set_debug, show_debug): Remove.
12316 * top.h (set_history, show_history): Don't declare.
12317 * top.c (set_history, show_history): Remove.
12318 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
12319 (unset_tdesc_cmd): Remove.
12320 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
12321 add_show_prefix_cmd.
12322 * symtab.c (info_module_command): Remove.
12323 (_initialize_symtab): Use add_basic_prefix_cmd.
12324 * symfile.c (overlay_command): Remove.
12325 (_initialize_symfile): Use add_basic_prefix_cmd.
12326 * sparc64-tdep.c (info_adi_command): Remove.
12327 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
12328 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
12329 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
12330 add_show_prefix_cmd.
12331 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
12332 (_initialize_serial): Use add_basic_prefix_cmd,
12333 add_show_prefix_cmd.
12334 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
12335 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
12336 add_show_prefix_cmd.
12337 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
12338 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
12339 add_show_prefix_cmd.
12340 * riscv-tdep.c (show_riscv_command, set_riscv_command)
12341 (show_debug_riscv_command, set_debug_riscv_command): Remove.
12342 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
12343 add_show_prefix_cmd.
12344 * remote.c (remote_command, set_remote_cmd): Remove.
12345 (_initialize_remote): Use add_basic_prefix_cmd.
12346 * record-full.c (set_record_full_command)
12347 (show_record_full_command): Remove.
12348 (_initialize_record_full): Use add_basic_prefix_cmd,
12349 add_show_prefix_cmd.
12350 * record-btrace.c (cmd_set_record_btrace)
12351 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
12352 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
12353 (cmd_show_record_btrace_pt): Remove.
12354 (_initialize_record_btrace): Use add_basic_prefix_cmd,
12355 add_show_prefix_cmd.
12356 * ravenscar-thread.c (set_ravenscar_command)
12357 (show_ravenscar_command): Remove.
12358 (_initialize_ravenscar): Use add_basic_prefix_cmd,
12359 add_show_prefix_cmd.
12360 * mips-tdep.c (show_mips_command, set_mips_command)
12361 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
12362 add_show_prefix_cmd.
12363 * maint.c (maintenance_command, maintenance_info_command)
12364 (maintenance_check_command, maintenance_print_command)
12365 (maintenance_set_cmd, maintenance_show_cmd): Remove.
12366 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
12367 add_show_prefix_cmd.
12368 (show_per_command_cmd): Remove.
12369 * maint-test-settings.c (maintenance_set_test_settings_cmd):
12370 Remove.
12371 (maintenance_show_test_settings_cmd): Remove.
12372 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
12373 add_show_prefix_cmd.
12374 * maint-test-options.c (maintenance_test_options_command):
12375 Remove.
12376 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
12377 * macrocmd.c (macro_command): Remove
12378 (_initialize_macrocmd): Use add_basic_prefix_cmd.
12379 * language.c (set_check, show_check): Remove.
12380 (_initialize_language): Use add_basic_prefix_cmd,
12381 add_show_prefix_cmd.
12382 * infcmd.c (unset_command): Remove.
12383 (_initialize_infcmd): Use add_basic_prefix_cmd.
12384 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
12385 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
12386 add_show_prefix_cmd.
12387 * go32-nat.c (go32_info_dos_command): Remove.
12388 (_initialize_go32_nat): Use add_basic_prefix_cmd.
12389 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
12390 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
12391 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
12392 (_initialize_frame): Use add_basic_prefix_cmd,
12393 add_show_prefix_cmd.
12394 * dcache.c (set_dcache_command, show_dcache_command): Remove.
12395 (_initialize_dcache): Use add_basic_prefix_cmd,
12396 add_show_prefix_cmd.
12397 * cp-support.c (maint_cplus_command): Remove.
12398 (_initialize_cp_support): Use add_basic_prefix_cmd.
12399 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
12400 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
12401 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
12402 add_basic_prefix_cmd, add_show_prefix_cmd.
12403 * breakpoint.c (save_command): Remove.
12404 (_initialize_breakpoint): Use add_basic_prefix_cmd.
12405 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
12406 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
12407 add_show_prefix_cmd.
12408 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
12409 (set_ada_command, show_ada_command): Remove.
12410 (_initialize_ada_language): Use add_basic_prefix_cmd,
12411 add_show_prefix_cmd.
12412 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
12413
3557f442
KR
124142020-04-16 Kamil Rytarowski <n54@gmx.com>
12415
12416 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
12417 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
12418
16197208
SM
124192020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12420
12421 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
12422 warning messages.
12423
00ac85d3
SM
124242020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12425
12426 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
12427 import table is not at beginning of .idata section.
12428
381ce63f
PA
124292020-04-16 Pedro Alves <palves@redhat.com>
12430
12431 * inferior.c (delete_inferior): Use delete operator directly
12432 instead of delete_program_space.
12433 * progspace.c (add_program_space): New, factored out from
12434 program_space::program_space.
12435 (remove_program_space): New, factored out from
12436 delete_program_space.
12437 (program_space::program_space): Remove intro comment. Rewrite.
12438 (program_space::~program_space): Remove intro comment. Call
12439 remove_program_space.
12440 (delete_program_space): Delete.
12441 * progspace.h (program_space::program_space): Make explicit. Move
12442 intro comment here, adjusted.
12443 (program_space::~program_space): Move intro comment here,
12444 adjusted.
12445 (delete_program_space): Remove.
12446
a010605f
TT
124472020-04-16 Tom Tromey <tromey@adacore.com>
12448
12449 * windows-nat.c (windows_nat::handle_access_violation): New
12450 function.
12451 * nat/windows-nat.h (handle_access_violation): Declare.
12452 * nat/windows-nat.c (handle_exception): Move Cygwin code to
12453 windows-nat.c. Call handle_access_violation.
12454
efba5c23
TV
124552020-04-16 Tom de Vries <tdevries@suse.de>
12456
12457 PR symtab/25791
12458 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
12459 CUs without psymtab.
12460
97ed802d
KB
124612020-04-16 Kevin Buettner <kevinb@redhat.com>
12462
12463 * python/python.c (do_start_initialization): Don't call
12464 PyEval_InitThreads for Python 3.9 and beyond.
12465
c7d64809
KR
124662020-04-15 Kamil Rytarowski <n54@gmx.com>
12467
12468 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
12469 thread functions.
12470 (obsd_nat_target::wait): Likewise.
12471
ce127a96
TT
124722020-04-15 Tom Tromey <tromey@adacore.com>
12473
12474 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
12475 (DEBUG_EXCEPT): Use debug_printf.
12476
99f1bc6a
AB
124772020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
12478
12479 * completer.c (class completion_tracker::completion_hash_entry)
12480 <hash_name>: New member function.
12481 (completion_tracker::discard_completions): New callback to hash a
12482 completion_hash_entry, pass this to htab_create_alloc.
12483
a0e9b532
JT
124842016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
12485
12486 * windows-nat.c (windows_make_so): Warn rather than stopping with
12487 an error if realpath() fails.
12488
06ca5dd4
KR
124892020-04-14 Kamil Rytarowski <n54@gmx.com>
12490
12491 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
12492 (nbsd_nat_target::info_proc): Add do_status.
12493
194d088f
TV
124942020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
12495 Tom de Vries <tdevries@suse.de>
12496
12497 PR symtab/25718
12498 * psympriv.h (struct partial_symtab::read_symtab)
12499 (struct partial_symtab::expand_psymtab)
12500 (struct partial_symtab::read_dependencies): Update comments.
12501 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
12502 read_symtab for includer.
12503 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
12504 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
12505 (struct dwarf2_include_psymtab::m_readin): Remove.
12506 (struct dwarf2_include_psymtab::includer): New member function.
12507 (dwarf2_psymtab::expand_psymtab): Assert !readin.
12508
c1a66c06
TV
125092020-04-14 Tom de Vries <tdevries@suse.de>
12510
12511 PR symtab/25720
12512 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
12513 with NULL symbol_matcher and lookup_name.
12514 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
12515 and lookup_name.
12516 * dwarf2/read.c (dw2_expand_symtabs_matching)
12517 (dw2_debug_names_expand_symtabs_matching): Same.
12518 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
12519 Make lookup_name a pointer. Update comment.
12520 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
12521 lookup_name being a pointer.
12522 * symfile.c (expand_symtabs_matching): Same.
12523 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
12524 * linespec.c (iterate_over_all_matching_symtabs): Same.
12525
400b5eca
TT
125262020-04-13 Tom Tromey <tom@tromey.com>
12527
12528 * run-on-main-thread.c: Update include.
12529 * unittests/main-thread-selftests.c: Update include.
12530 * tui/tui-win.c: Update include.
12531 * tui/tui-io.c: Update include.
12532 * tui/tui-interp.c: Update include.
12533 * tui/tui-hooks.c: Update include.
12534 * top.h: Update include.
12535 * top.c: Update include.
12536 * ser-base.c: Update include.
12537 * remote.c: Update include.
12538 * remote-notif.c: Update include.
12539 * remote-fileio.c: Update include.
12540 * record-full.c: Update include.
12541 * record-btrace.c: Update include.
12542 * python/python.c: Update include.
12543 * posix-hdep.c: Update include.
12544 * mingw-hdep.c: Update include.
12545 * mi/mi-main.c: Update include.
12546 * mi/mi-interp.c: Update include.
12547 * main.c: Update include.
12548 * linux-nat.c: Update include.
12549 * interps.c: Update include.
12550 * infrun.c: Update include.
12551 * inf-loop.c: Update include.
12552 * event-top.c: Update include.
12553 * event-loop.c: Move to ../gdbsupport/.
12554 * event-loop.h: Move to ../gdbsupport/.
12555 * async-event.h: Update include.
12556 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
12557
93b54c8e
TT
125582020-04-13 Tom Tromey <tom@tromey.com>
12559
12560 * tui/tui-win.c: Include async-event.h.
12561 * remote.c: Include async-event.h.
12562 * remote-notif.c: Include async-event.h.
12563 * record-full.c: Include async-event.h.
12564 * record-btrace.c: Include async-event.h.
12565 * infrun.c: Include async-event.h.
12566 * event-top.c: Include async-event.h.
12567 * event-loop.h: Move some declarations to async-event.h.
12568 * event-loop.c: Don't include ser-event.h or top.h. Move some
12569 code to async-event.c.
12570 * async-event.h: New file.
12571 * async-event.c: New file.
12572 * Makefile.in (COMMON_SFILES): Add async-event.c.
12573 (HFILES_NO_SRCDIR): Add async-event.h.
12574
c1cd3163
TT
125752020-04-13 Tom Tromey <tom@tromey.com>
12576
12577 * utils.c (flush_streams): New function.
12578 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12579
29f2bf4f
TT
125802020-04-13 Tom Tromey <tom@tromey.com>
12581
12582 * event-loop.c (handle_file_event): Use warning, not
12583 printf_unfiltered.
12584
98029d02
TT
125852020-04-13 Tom Tromey <tom@tromey.com>
12586
12587 * event-loop.c: Include <chrono>.
12588
06cc9596
TT
125892020-04-13 Tom Tromey <tom@tromey.com>
12590
12591 * gdb_select.h: Move to ../gdbsupport/.
12592 * event-loop.c: Update include path.
12593 * top.c: Update include path.
12594 * ser-base.c: Update include path.
12595 * ui-file.c: Update include path.
12596 * ser-tcp.c: Update include path.
12597 * guile/scm-ports.c: Update include path.
12598 * posix-hdep.c: Update include path.
12599 * ser-unix.c: Update include path.
12600 * gdb_usleep.c: Update include path.
12601 * mingw-hdep.c: Update include path.
12602 * inflow.c: Update include path.
12603 * infrun.c: Update include path.
12604 * event-top.c: Update include path.
12605
8ae8e197
TT
126062020-04-13 Tom Tromey <tom@tromey.com>
12607
12608 * configure: Rebuild.
12609 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12610
58cf28e8
TT
126112020-04-13 Tom Tromey <tom@tromey.com>
12612
12613 * event-loop.h (start_event_loop): Don't declare.
12614 * event-loop.c (start_event_loop): Move...
12615 * main.c (start_event_loop): ...here. Now static.
12616
b7f999ae
SDJ
126172020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12618
12619 * MAINTAINERS: Update my email address.
12620
1085dfd4
KR
126212020-04-12 Kamil Rytarowski <n54@gmx.com>
12622
12623 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12624 IP_ALL.
12625
49d1d1f5
KR
126262020-04-12 Kamil Rytarowski <n54@gmx.com>
12627
12628 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 12629 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 12630
b4848d2a
KR
126312020-04-12 Kamil Rytarowski <n54@gmx.com>
12632
12633 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 12634 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 12635
51c133d5
KR
126362020-04-12 Kamil Rytarowski <n54@gmx.com>
12637
12638 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12639
54b8cbd0
KR
126402020-04-11 Kamil Rytarowski <n54@gmx.com>
12641
12642 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12643 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12644 (nbsd_nat_target::info_proc): New functions.
12645 * nbsd-nat.c (kinfo_get_vmmap): New function.
12646 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12647 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12648 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12649 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12650 functions.
12651 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12652 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12653 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12654 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12655 (KINFO_VME_FLAG_GROWS_DOWN): New.
12656
cf83625d
AS
126572020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12658
12659 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12660 bit shift.
12661
0c4311ab
TT
126622020-04-10 Tom Tromey <tromey@adacore.com>
12663
12664 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12665
3e65b3e9
TT
126662020-04-10 Tom Tromey <tromey@adacore.com>
12667
12668 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12669 separate debug files.
12670
13302e95
HD
126712020-04-10 Hannes Domani <ssbssa@yahoo.de>
12672
12673 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12674 Move to...
12675 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12676 ... here.
12677 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12678 Check for STATUS_WX86_BREAKPOINT.
12679 (windows_nat_target::wait): Same.
12680
bdfc1e8a
TV
126812020-04-10 Tom de Vries <tdevries@suse.de>
12682
12683 PR cli/25808
12684 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12685
f4460aec
SM
126862020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12687
12688 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12689 (Write After Approval): Remove Tom de Vries.
12690
a25198bb
BE
126912020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12692
12693 revert partially:
12694 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12695
aac66a4c
SM
12696 * buildsym.c (record_line): Fix undefined behavior and preserve
12697 lines at eof.
a25198bb 12698
206c98a6
KR
126992020-04-09 Kamil Rytarowski <n54@gmx.com>
12700
12701 * auxv.h (svr4_auxv_parse): New.
12702 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12703 and generic_auxv_parse.
12704 (svr4_auxv_parse): Add.
12705 * obsd-tdep.c: Include "auxv.h".
12706 (obsd_auxv_parse): Remove.
12707 (obsd_init_abi): Remove comment.
12708 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12709 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12710 * nbsd-tdep.c: Include "auxv.h".
12711 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12712
71fbdbaf
TT
127132020-04-08 Tom Tromey <tromey@adacore.com>
12714
12715 * nat/windows-nat.h (last_wait_event): Don't declare.
12716 (wait_for_debug_event): Update comment.
12717 * nat/windows-nat.c (last_wait_event): Now static.
12718
2c1d95e8
TT
127192020-04-08 Tom Tromey <tromey@adacore.com>
12720
12721 * windows-nat.c (wait_for_debug_event): Move to
12722 nat/windows-nat.c.
12723 * nat/windows-nat.h (wait_for_debug_event): Declare.
12724 * nat/windows-nat.c (wait_for_debug_event): Move from
12725 windows-nat.c. No longer static.
12726
d2977bc4
TT
127272020-04-08 Tom Tromey <tromey@adacore.com>
12728
12729 * windows-nat.c (get_windows_debug_event): Use
12730 fetch_pending_stop.
12731 * nat/windows-nat.h (fetch_pending_stop): Declare.
12732 * nat/windows-nat.c (fetch_pending_stop): New function.
12733
e758e19c
TT
127342020-04-08 Tom Tromey <tromey@adacore.com>
12735
12736 * windows-nat.c (windows_continue): Use matching_pending_stop and
12737 continue_last_debug_event.
12738 * nat/windows-nat.h (matching_pending_stop)
12739 (continue_last_debug_event): Declare.
12740 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12741 (matching_pending_stop, continue_last_debug_event): New
12742 functions.
12743
8d30e395
TT
127442020-04-08 Tom Tromey <tromey@adacore.com>
12745
12746 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12747 (handle_exception_result): Move to nat/windows-nat.h.
12748 (DEBUG_EXCEPTION_SIMPLE): Remove.
12749 (windows_nat::handle_ms_vc_exception): New function.
12750 (handle_exception): Move to nat/windows-nat.c.
12751 (get_windows_debug_event): Update.
12752 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12753 nat/windows-nat.c.
12754 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12755 (handle_exception_result): Move from windows-nat.c.
12756 (handle_exception): Declare.
12757 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12758 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12759 windows-nat.c.
12760
29de418d
TT
127612020-04-08 Tom Tromey <tromey@adacore.com>
12762
12763 * windows-nat.c (exception_count, event_count): Remove.
12764 (handle_exception, get_windows_debug_event)
12765 (do_initial_windows_stuff): Update.
12766
a816ba18
TT
127672020-04-08 Tom Tromey <tromey@adacore.com>
12768
12769 * windows-nat.c (windows_nat::handle_load_dll)
12770 (windows_nat::handle_unload_dll): Rename. No longer static.
12771 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12772 Declare.
12773
a00caa12
TT
127742020-04-08 Tom Tromey <tromey@adacore.com>
12775
12776 * complaints.h (stop_whining): Declare at top-level.
12777 (complaint): Don't declare stop_whining.
12778
d41b524f
TT
127792020-04-08 Tom Tromey <tromey@adacore.com>
12780
12781 * windows-nat.c (windows_nat::handle_output_debug_string):
12782 Rename. No longer static.
12783 * nat/windows-nat.h (handle_output_debug_string): Declare.
12784
3c76026d
TT
127852020-04-08 Tom Tromey <tromey@adacore.com>
12786
12787 * windows-nat.c (current_process_handle, current_process_id)
12788 (main_thread_id, last_sig, current_event, last_wait_event)
12789 (current_windows_thread, desired_stop_thread_id, pending_stops)
12790 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12791 (display_selectors, fake_create_process)
12792 (get_windows_debug_event): Update.
12793 * nat/windows-nat.h (current_process_handle, current_process_id)
12794 (main_thread_id, last_sig, current_event, last_wait_event)
12795 (current_windows_thread, desired_stop_thread_id, pending_stops)
12796 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12797 * nat/windows-nat.c (current_process_handle, current_process_id)
12798 (main_thread_id, last_sig, current_event, last_wait_event)
12799 (current_windows_thread, desired_stop_thread_id, pending_stops)
12800 (siginfo_er): New globals. Move from windows-nat.c.
12801
9d8679cc
TT
128022020-04-08 Tom Tromey <tromey@adacore.com>
12803
12804 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12805 (handle_load_dll): Update.
12806 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12807
28688adf
TT
128082020-04-08 Tom Tromey <tromey@adacore.com>
12809
12810 * windows-nat.c (enum thread_disposition_type): Move to
12811 nat/windows-nat.h.
12812 (windows_nat::thread_rec): Rename from thread_rec. No longer
12813 static.
12814 (windows_add_thread, windows_nat_target::fetch_registers)
12815 (windows_nat_target::store_registers, handle_exception)
12816 (windows_nat_target::resume, get_windows_debug_event)
12817 (windows_nat_target::get_tib_address)
12818 (windows_nat_target::thread_name)
12819 (windows_nat_target::thread_alive): Update.
12820 * nat/windows-nat.h (enum thread_disposition_type): Move from
12821 windows-nat.c.
12822 (thread_rec): Declare.
12823
4834dad0
TT
128242020-04-08 Tom Tromey <tromey@adacore.com>
12825
12826 * windows-nat.c: Add "using namespace".
12827 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12828 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12829
65bafd5b
TT
128302020-04-08 Tom Tromey <tromey@adacore.com>
12831
12832 * nat/windows-nat.h (struct windows_thread_info): Declare
12833 destructor.
12834 * nat/windows-nat.c (~windows_thread_info): New.
12835
0a4afda3
TT
128362020-04-08 Tom Tromey <tromey@adacore.com>
12837
12838 PR gdb/22992
12839 * windows-nat.c (current_event): Update comment.
12840 (last_wait_event, desired_stop_thread_id): New globals.
12841 (struct pending_stop): New.
12842 (pending_stops): New global.
12843 (windows_nat_target) <stopped_by_sw_breakpoint>
12844 <supports_stopped_by_sw_breakpoint>: New methods.
12845 (windows_fetch_one_register): Add assertions. Adjust PC.
12846 (windows_continue): Handle pending stops. Suspend other threads
12847 when stepping. Use last_wait_event
12848 (wait_for_debug_event): New function.
12849 (get_windows_debug_event): Use wait_for_debug_event. Handle
12850 pending stops. Queue spurious stops.
12851 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12852 (windows_nat_target::kill): Use wait_for_debug_event.
12853 * nat/windows-nat.h (struct windows_thread_info)
12854 <stopped_at_software_breakpoint>: New field.
12855 * nat/windows-nat.c (windows_thread_info::resume): Clear
12856 stopped_at_software_breakpoint.
12857
8e61ebec
TT
128582020-04-08 Tom Tromey <tromey@adacore.com>
12859
12860 * windows-nat.c (enum thread_disposition_type): New.
12861 (thread_rec): Replace "get_context" parameter with "disposition";
12862 change type.
12863 (windows_add_thread, windows_nat_target::fetch_registers)
12864 (windows_nat_target::store_registers, handle_exception)
12865 (windows_nat_target::resume, get_windows_debug_event)
12866 (windows_nat_target::get_tib_address)
12867 (windows_nat_target::thread_name)
12868 (windows_nat_target::thread_alive): Update.
12869
98a03287
TT
128702020-04-08 Tom Tromey <tromey@adacore.com>
12871
12872 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12873 (windows_continue): Use windows_continue::resume.
12874 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12875 resume>: Declare new methods.
12876 * nat/windows-nat.c: New file.
12877 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12878
7c7411bc
TT
128792020-04-08 Tom Tromey <tromey@adacore.com>
12880
12881 * windows-nat.c (windows_add_thread, windows_delete_thread)
12882 (windows_nat_target::fetch_registers)
12883 (windows_nat_target::store_registers, fake_create_process)
12884 (windows_nat_target::resume, windows_nat_target::resume)
12885 (get_windows_debug_event, windows_nat_target::wait)
12886 (windows_nat_target::pid_to_str)
12887 (windows_nat_target::get_tib_address)
12888 (windows_nat_target::get_ada_task_ptid)
12889 (windows_nat_target::thread_name)
12890 (windows_nat_target::thread_alive): Use lwp, not tid.
12891
2950fdf7
TT
128922020-04-08 Tom Tromey <tromey@adacore.com>
12893
12894 * windows-nat.c (handle_exception)
12895 (windows_nat_target::thread_name): Update.
12896 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12897 <name>: Now unique_xmalloc_ptr.
12898
62fe396b
TT
128992020-04-08 Tom Tromey <tromey@adacore.com>
12900
12901 * windows-nat.c (thread_rec)
12902 (windows_nat_target::fetch_registers): Update.
12903 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12904 Update comment.
12905 <debug_registers_changed, reload_context>: Now bool.
12906
e9534bd2
TT
129072020-04-08 Tom Tromey <tromey@adacore.com>
12908
12909 * windows-nat.c (windows_add_thread): Use new.
12910 (windows_init_thread_list, windows_delete_thread): Use delete.
12911 (get_windows_debug_event): Update.
12912 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12913 destructor, and initializers.
12914
ae1f8880
TT
129152020-04-08 Tom Tromey <tromey@adacore.com>
12916
12917 * windows-nat.c (struct windows_thread_info): Remove.
12918 * nat/windows-nat.h: New file.
12919
55a1e039
TT
129202020-04-08 Tom Tromey <tromey@adacore.com>
12921
12922 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12923 (thread_rec, windows_add_thread, windows_delete_thread)
12924 (windows_continue): Update.
12925
93366324
TT
129262020-04-08 Tom Tromey <tromey@adacore.com>
12927
12928 * windows-nat.c (struct windows_thread_info): Remove typedef.
12929 (thread_head): Remove.
12930 (thread_list): New global.
12931 (thread_rec, windows_add_thread, windows_init_thread_list)
12932 (windows_delete_thread, windows_continue): Update.
12933
0f2265e2
SM
129342020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12935
12936 * windows-tdep.h (windows_init_abi): Add comment.
12937 (cygwin_init_abi): New declaration.
12938 * windows-tdep.c: Split signal enumeration in two, one for
12939 Windows and one for Cygwin.
12940 (windows_gdb_signal_to_target): Only deal with signal of the
12941 Windows OS ABI.
12942 (cygwin_gdb_signal_to_target): New function.
12943 (windows_init_abi): Rename to windows_init_abi_common, don't set
12944 gdb_signal_to_target gdbarch method. Add new new function with
12945 this name.
12946 (cygwin_init_abi): New function.
12947 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12948 comment. Don't call windows_init_abi.
12949 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12950 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12951 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12952 i386_windows_init_abi_common, don't call windows_init_abi. Add
12953 a new function of this name.
12954 (i386_cygwin_init_abi): New function.
12955 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12956 OS ABI Cygwin.
12957
3810f182
SM
129582020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12959
12960 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12961 parameter.c.
12962 (dwarf2_read_gdb_index): Update.
12963
063f8e80
KR
129642020-04-07 Kamil Rytarowski <n54@gmx.com>
12965
12966 * nbsd-tdep.c: Include "objfiles.h".
12967 (nbsd_skip_solib_resolver): New.
12968 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12969
85a9510c 129702020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12971
12972 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12973 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12974 with DW_LLE_base_addressx are being emitted in DWARFv5.
12975 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12976 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12977 unsigned integer.
12978
9fc3eaae 129792020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12980
12981 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12982 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12983 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12984 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12985 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12986 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12987 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12988
12989
41144253 129902020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12991
12992 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12993 (read_loclist_index): New function definition.
12994 (lookup_loclist_base): New function definition.
12995 (read_loclist_header): New function definition.
12996 (dwarf2_cu): Add loclist_base and loclist_header field.
12997 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12998 (read_full_die_1): Read the value of DW_AT_loclists_base.
12999 (read_attribute_reprocess): Handle DW_FORM_loclistx.
13000 (read_attribute_value): Handle DW_FORM_loclistx.
13001 (skip_one_die): Handle DW_FORM_loclistx.
13002 (loclist_header): New structure declaration.
13003 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
13004
9f4e76a4
SM
130052020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
13006
13007 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
13008 constructor. Remove `addr` parameter from other constructor and
13009 add `per_cu` parameter.
13010 * dwarf2/read.c (create_partial_symtab): Update.
13011
25c11aca
TV
130122020-04-07 Tom de Vries <tdevries@suse.de>
13013
13014 PR symtab/25796
13015 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
13016 (partial_die_info::fixup): Inherit has_const_value.
13017
5707e24b
TV
130182020-04-07 Tom de Vries <tdevries@suse.de>
13019
13020 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
13021 symbols without address.
13022
05f00e22
KR
130232020-04-06 Kamil Rytarowski <n54@gmx.com>
13024
13025 * nbsd-nat.h (struct thread_info): Add forward declaration.
13026 (nbsd_nat_target::thread_alive): Add.
13027 (nbsd_nat_target::thread_name): Likewise.
13028 (nbsd_nat_target::update_thread_list): Likewise.
13029 (update_thread_list::post_attach): Likewise.
13030 (post_attach::pid_to_str): Likewise.
13031 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
13032 (nbsd_thread_lister): Add.
13033 (nbsd_nat_target::thread_alive): Likewise.
13034 (nbsd_nat_target::thread_name): Likewise.
13035 (nbsd_add_threads): Likewise.
13036 (update_thread_list::post_attach): Likewise.
13037 (nbsd_nat_target::update_thread_list): Likewise.
13038 (post_attach::pid_to_str): Likewise.
13039
6ee448cc
TT
130402020-04-06 Tom Tromey <tromey@adacore.com>
13041
13042 * ada-valprint.c (print_variant_part): Extract the variant field.
13043 (print_field_values): Use the field as the outer value when
13044 recursing.
13045
dea34e8c
TT
130462020-04-06 Tom Tromey <tromey@adacore.com>
13047
13048 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
13049 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
13050 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
13051 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
13052 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
13053
93689ce9
TT
130542020-04-06 Tom Tromey <tromey@adacore.com>
13055
13056 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
13057 TYPE_CODE_ERROR.
13058
79743962
KR
130592020-04-06 Kamil Rytarowski <n54@gmx.com>
13060
13061 * nbsd-tdep.c: Include "gdbarch.h".
13062 Define enum with NetBSD signal numbers.
13063 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
13064 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
13065 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
13066 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
13067 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
13068 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
13069 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
13070 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
13071 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
13072 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
13073 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
13074 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
13075
9e7c9a03
HD
130762020-04-03 Hannes Domani <ssbssa@yahoo.de>
13077
13078 PR gdb/25325
13079 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
13080
d9e49b61
TT
130812020-04-03 Tom Tromey <tromey@adacore.com>
13082
13083 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
13084 Read constant block.
13085
e0fc5c3f
SM
130862020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
13087
13088 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
13089 (gdb_bfd_get_full_section_contents): New declaration.
13090 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
13091 * windows-tdep.c (is_linked_with_cygwin_dll): Use
13092 gdb_bfd_get_full_section_contents.
13093
e2ff18a0
SM
130942020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
13095
13096 * exec.c (build_section_table): Replace internal_error with
13097 gdb_assert.
13098 (section_table_xfer_memory_partial): Likewise.
13099 * mdebugread.c (parse_partial_symbols): Likewise.
13100 * psymtab.c (lookup_partial_symbol): Likewise.
13101 * utils.c (wrap_here): Likewise.
13102
0830d301
TT
131032020-04-02 Tom Tromey <tromey@adacore.com>
13104
13105 * f-lang.c (build_fortran_types): Use arch_type to initialize
13106 builtin_complex_s32 in the TYPE_CODE_ERROR case.
13107
e7da7f8f
TT
131082020-04-02 Tom Tromey <tromey@adacore.com>
13109
13110 * dwarf2/read.c (partial_die_info::read): Do not create a vector
13111 of attributes.
13112
c90d28ac
AB
131132020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
13114 Bernd Edlinger <bernd.edlinger@hotmail.de>
13115 Tom Tromey <tromey@adacore.com>
13116
13117 * buildsym.c (buildsym_compunit::record_line): Remove
13118 deduplication code.
13119
1aa98955
TV
131202020-04-02 Tom de Vries <tdevries@suse.de>
13121
13122 PR ada/24671
13123 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
13124
d3214198
TV
131252020-04-02 Tom de Vries <tdevries@suse.de>
13126
13127 * dwarf2/read.c (dwarf2_gdb_index_functions,
13128 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
13129 NULL.
13130 * psymtab.c (psym_lookup_global_symbol_language): New function.
13131 (psym_functions): Init psym_lookup_global_symbol_language with
13132 psym_lookup_global_symbol_language.
13133 * symfile-debug.c (debug_sym_quick_functions): Init
13134 lookup_global_symbol_language with NULL.
13135 * symfile.c (set_initial_language): Remove fixme comment.
13136 * symfile.h (struct quick_symbol_functions): Add
13137 lookup_global_symbol_language.
13138 * symtab.c (find_quick_global_symbol_language): New function.
13139 (find_main_name): Use find_quick_global_symbol_language.
13140
2836752f
SM
131412020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
13142
13143 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
13144
64dc2d4b
BE
131452020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
13146
13147 * buildsym.c (record_line): Fix undefined behavior and preserve
13148 lines at eof.
13149
bbe3dc41
BE
131502020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
13151
13152 * buildsym.c (record_line): Fix the resizing condition.
13153
6b4a335b
TT
131542020-04-01 Tom Tromey <tom@tromey.com>
13155
13156 * value.h (value_literal_complex): Add comment.
13157 * valops.c (value_literal_complex): Refer to value.h.
13158
3638a098
TT
131592020-04-01 Tom Tromey <tom@tromey.com>
13160
13161 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
13162 (scalar_type): New rule, from typebase.
13163 (typebase): Use scalar_type. Recognize complex types.
13164 (field_name): Handle FLOAT_KEYWORD.
13165 (ident_tokens): Add _Complex and __complex__.
13166
c34e8714
TT
131672020-04-01 Tom Tromey <tom@tromey.com>
13168
13169 PR exp/25299:
13170 * valarith.c (promotion_type, complex_binop): New functions.
13171 (scalar_binop): Handle complex numbers. Use promotion_type.
13172 (value_pos, value_neg, value_complement): Handle complex numbers.
13173
fa649bb7
TT
131742020-04-01 Tom Tromey <tom@tromey.com>
13175
13176 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
13177 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
13178 (parse_number): Handle complex numbers.
13179
981c08ce
TT
131802020-04-01 Tom Tromey <tom@tromey.com>
13181
13182 * c-valprint.c (c_decorations): Change complex suffix to "i".
13183
4c99290d
TT
131842020-04-01 Tom Tromey <tom@tromey.com>
13185
13186 * valprint.c (generic_value_print_complex): Use accessors.
13187 * value.h (value_real_part, value_imaginary_part): Declare.
13188 * valops.c (value_real_part, value_imaginary_part): New
13189 functions.
13190 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
13191
5b930b45
TT
131922020-04-01 Tom Tromey <tom@tromey.com>
13193
13194 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
13195 (read_range_type): Update.
13196 * mdebugread.c (basic_type): Update.
13197 * go-lang.c (build_go_types): Use init_complex_type.
13198 * gdbtypes.h (struct main_type) <complex_type>: New member.
13199 (init_complex_type): Update.
13200 (arch_complex_type): Don't declare.
13201 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
13202 Make name if none given. Use alloc_type_copy. Look for cached
13203 complex type.
13204 (arch_complex_type): Remove.
13205 (gdbtypes_post_init): Use init_complex_type.
13206 * f-lang.c (build_fortran_types): Use init_complex_type.
13207 * dwarf2/read.c (read_base_type): Update.
13208 * d-lang.c (build_d_types): Use init_complex_type.
13209 * ctfread.c (read_base_type): Update.
13210
53cccef1
TBA
132112020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13212
13213 * infrun.c (stop_all_threads): Update assertion, plus when
13214 stopping threads, take into account that we might be trying
13215 to stop an all-stop target.
13216 (stop_waiting): Call 'stop_all_threads' if there exists a
13217 non-stop target.
13218
a0714d30
TBA
132192020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13220
13221 * target.h (exists_non_stop_target): New function declaration.
13222 * target.c (exists_non_stop_target): New function.
13223
60e22c1e
HD
132242020-04-01 Hannes Domani <ssbssa@yahoo.de>
13225
13226 PR gdb/24789
13227 * eval.c (is_integral_or_integral_reference): New function.
13228 (evaluate_subexp_standard): Allow integer references in
13229 pointer arithmetic.
13230
e139a727
TBA
132312020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13232
13233 * remote.c (remote_target::remote_parse_stop_reply): Remove the
13234 check for no ptid in the stop reply when the target is non-stop.
13235
e0802d59
TT
132362020-04-01 Tom Tromey <tromey@adacore.com>
13237
13238 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
13239 "name" parameter to rvalue reference. Initialize m_name_holder.
13240 <lookup_name_info>: New overloads.
13241 <name>: Return gdb::string_view.
13242 <c_str>: New method.
13243 <make_ignore_params>: Update.
13244 <search_name_hash>: Update.
13245 <language_lookup_name>: Return const char *.
13246 <m_name>: Change type.
13247 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
13248 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
13249 (lookup_name_info::match_any): Update.
13250 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
13251 Update.
13252 * minsyms.c (linkage_name_str): Update.
13253 * language.c (default_symbol_name_matcher): Update.
13254 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
13255 Update.
13256 * ada-lang.c (ada_fold_name): Change parameter to string_view.
13257 (ada_lookup_name_info::ada_lookup_name_info): Update.
13258 (literal_symbol_name_matcher): Update.
13259
8c072cb6
TT
132602020-04-01 Tom Tromey <tromey@adacore.com>
13261
13262 * psymtab.c (psymtab_search_name): Remove function.
13263 (psym_lookup_symbol): Create search name and lookup name here.
13264 (lookup_partial_symbol): Remove "name" parameter; add
13265 lookup_name.
13266 (psym_expand_symtabs_for_function): Update.
13267
6f29a534
TT
132682020-03-31 Joel Jones <joelkevinjones@gmail.com>
13269
13270 PR tui/25597:
13271 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
13272
af62665e
TT
132732020-03-31 Tom Tromey <tromey@adacore.com>
13274
13275 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
13276 memcpy.
13277
d1a89da5
NC
132782020-03-30 Nelson Chu <nelson.chu@sifive.com>
13279
13280 * features/riscv/32bit-csr.xml: Regenerated.
13281 * features/riscv/64bit-csr.xml: Regenerated.
13282
d8af9068
TT
132832020-03-30 Tom Tromey <tromey@adacore.com>
13284
13285 * ada-valprint.c (print_variant_part): Update.
13286 * ada-lang.h (ada_which_variant_applies): Update.
13287 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
13288 outer_valaddr parameters; replace with "outer" value parameter.
13289 (to_fixed_variant_branch_type): Update.
13290
227c0bf4
PFC
132912020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13292
13293 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
13294 <list>. Remove inclusion of observable.h.
13295 (PPC_DEBUG_CURRENT_VERSION): Move up define.
13296 (struct arch_lwp_info): New struct.
13297 (class ppc_linux_dreg_interface): New class.
13298 (struct ppc_linux_process_info): New struct.
13299 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
13300 <low_new_clone, low_forget_process, low_prepare_to_resume>
13301 <copy_thread_dreg_state, mark_thread_stale>
13302 <mark_debug_registers_changed, register_hw_breakpoint>
13303 <clear_hw_breakpoint, register_wp, clear_wp>
13304 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
13305 <num_memory_accesses, get_trigger_type>
13306 <create_watchpoint_request, hwdebug_point_cmp>
13307 <init_arch_lwp_info, get_arch_lwp_info>
13308 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
13309 methods.
13310 <struct ptid_hash>: New inner struct.
13311 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
13312 members.
13313 (saved_dabr_value, hwdebug_info, max_slots_number)
13314 (struct hw_break_tuple, struct thread_points, ppc_threads)
13315 (have_ptrace_hwdebug_interface)
13316 (hwdebug_find_thread_points_by_tid)
13317 (hwdebug_insert_point, hwdebug_remove_point): Remove.
13318 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
13319 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
13320 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
13321 use m_dreg_interface.
13322 (hwdebug_point_cmp): Change to...
13323 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
13324 reference arguments instead of pointers.
13325 (ppc_linux_nat_target::ranged_break_num_registers): Use
13326 m_dreg_interface.
13327 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
13328 m_dreg_interface. Call register_hw_breakpoint.
13329 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
13330 m_dreg_interface. Call clear_hw_breakpoint.
13331 (get_trigger_type): Change to...
13332 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
13333 comment.
13334 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
13335 use m_dreg_interface. Call register_hw_breakpoint.
13336 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
13337 use m_dreg_interface. Call clear_hw_breakpoint.
13338 (can_use_watchpoint_cond_accel): Change to...
13339 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
13340 method. Update comment, use m_dreg_interface and
13341 m_process_info.
13342 (calculate_dvc): Change to...
13343 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
13344 m_dreg_interface.
13345 (num_memory_accesses): Change to...
13346 (ppc_linux_nat_target::num_memory_accesses): ...this method.
13347 (check_condition): Change to...
13348 (ppc_linux_nat_target::check_condition): ...this method.
13349 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
13350 comment, use m_dreg_interface.
13351 (create_watchpoint_request): Change to...
13352 (ppc_linux_nat_target::create_watchpoint_request): ...this
13353 method. Use m_dreg_interface.
13354 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
13355 m_dreg_interface. Call register_hw_breakpoint or register_wp.
13356 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
13357 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
13358 (ppc_linux_nat_target::low_forget_process)
13359 (ppc_linux_nat_target::low_new_fork)
13360 (ppc_linux_nat_target::low_new_clone)
13361 (ppc_linux_nat_target::low_delete_thread)
13362 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
13363 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
13364 only call mark_thread_stale.
13365 (ppc_linux_thread_exit): Remove.
13366 (ppc_linux_nat_target::stopped_data_address): Change to...
13367 (ppc_linux_nat_target::low_stopped_data_address): This. Add
13368 comment, use m_dreg_interface and m_thread_hw_breakpoints.
13369 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
13370 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
13371 comment. Call low_stopped_data_address.
13372 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
13373 m_dreg_interface.
13374 (ppc_linux_nat_target::masked_watch_num_registers): Use
13375 m_dreg_interface.
13376 (ppc_linux_nat_target::copy_thread_dreg_state)
13377 (ppc_linux_nat_target::mark_thread_stale)
13378 (ppc_linux_nat_target::mark_debug_registers_changed)
13379 (ppc_linux_nat_target::register_hw_breakpoint)
13380 (ppc_linux_nat_target::clear_hw_breakpoint)
13381 (ppc_linux_nat_target::register_wp)
13382 (ppc_linux_nat_target::clear_wp)
13383 (ppc_linux_nat_target::init_arch_lwp_info)
13384 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
13385 (_initialize_ppc_linux_nat): Remove observer callback.
13386
4db10d8f
PFC
133872020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13388
13389 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
13390 (ppc_linux_nat_target::auxv_parse)
13391 (ppc_linux_nat_target::read_description)
13392 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
13393 Move up.
13394
1310c1b0
PFC
133952020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13396
13397 * linux-nat.h (low_new_clone): New method.
13398 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
13399
69b037c3
SM
134002020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13401
13402 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
13403 (dbx_expand_psymtab): ... this.
13404 (start_psymtab): Update.
13405 * mdebugread.c (psymtab_to_symtab_1): Rename to...
13406 (mdebug_expand_psymtab): ... this.
13407 (parse_partial_symbols): Update.
13408 (new_psymtab): Update.
13409 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
13410 (xcoff_expand_psymtab): ... this.
13411 (xcoff_start_psymtab): Update.
13412
48993951
SM
134132020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13414
13415 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
13416 <expand_dependencies>: ... this.
13417 * psymtab.c (partial_symtab::read_dependencies): Rename to...
13418 (partial_symtab::expand_dependencies): ... this.
13419 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
13420 Update.
13421 (dwarf2_psymtab::expand_psymtab): Update.
13422 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13423 * mdebugread.c (psymtab_to_symtab_1): Update.
13424 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13425
3ad83046
SM
134262020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13427
13428 * psympriv.h (discard_psymtab): Remove.
13429 * dbxread.c (dbx_end_psymtab): Update.
13430 * xcoffread.c (xcoff_end_psymtab): Update.
13431
4d1b9ab6
TT
134322020-03-28 Tom Tromey <tom@tromey.com>
13433
13434 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
13435 comment.
13436
f1749218
TT
134372020-03-28 Tom Tromey <tom@tromey.com>
13438
13439 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
13440
ebea7626
HD
134412020-03-27 Hannes Domani <ssbssa@yahoo.de>
13442
13443 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13444
a879b4d5
JB
134452020-03-26 John Baldwin <jhb@FreeBSD.org>
13446
13447 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
13448
0826b30a
TT
134492020-03-26 Tom Tromey <tom@tromey.com>
13450
13451 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
13452 (mark_common_block_symbol_computed, read_tag_string_type)
13453 (attr_to_dynamic_prop, read_subrange_type): Update.
13454 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
13455 to be methods on struct attribute.
13456 (skip_one_die, process_imported_unit_die, read_namespace_alias)
13457 (read_call_site_scope, partial_die_info::read)
13458 (partial_die_info::read, lookup_die_type, follow_die_ref):
13459 Update.
13460 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
13461 from dwarf2_get_ref_die_offset.
13462 (attribute::constant_value): New method, from
13463 dwarf2_get_attr_constant_value.
13464 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
13465 Declare method.
13466 <constant_value>: New method.
13467
2b2558bf
TT
134682020-03-26 Tom Tromey <tom@tromey.com>
13469
13470 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
13471 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
13472 (dwarf_type_encoding_name): Move to stringify.c.
13473 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
13474 * dwarf2/stringify.c: New file.
13475 * dwarf2/stringify.h: New file.
13476
eeb64781
TT
134772020-03-26 Tom Tromey <tom@tromey.com>
13478
13479 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
13480 Rewrite.
13481
a39fdb41
TT
134822020-03-26 Tom Tromey <tom@tromey.com>
13483
13484 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
13485 methods.
13486 * dwarf2/read.c (lookup_addr_base): Move to die.h.
13487 (lookup_ranges_base): Likewise.
13488 (read_cutu_die_from_dwo, read_full_die_1): Update.
13489
436c571c
TT
134902020-03-26 Tom Tromey <tom@tromey.com>
13491
13492 * dwarf2/read.c (read_import_statement, read_file_scope)
13493 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
13494 (read_lexical_block_scope, read_call_site_scope)
13495 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
13496 (handle_struct_member_die, process_structure_scope)
13497 (update_enumeration_type_from_children)
13498 (process_enumeration_scope, read_array_type, read_common_block)
13499 (read_namespace, read_module, read_subroutine_type): Update.
13500 (sibling_die): Remove.
13501
052c8bb8
TT
135022020-03-26 Tom Tromey <tom@tromey.com>
13503
13504 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
13505 (build_type_psymtabs_reader, read_structure_type)
13506 (read_enumeration_type, read_full_die_1): Update.
13507 (dwarf2_attr_no_follow): Move to die.h.
13508 * dwarf2/die.h (struct die_info) <attr>: New method.
13509
2b24b6e4
TT
135102020-03-26 Tom Tromey <tom@tromey.com>
13511
13512 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
13513 <base_address>: Now an optional.
13514 (dwarf2_find_base_address, dwarf2_rnglists_process)
13515 (dwarf2_ranges_process, fill_in_loclist_baton)
13516 (dwarf2_symbol_mark_computed): Update.
13517
c2d50fd0
TT
135182020-03-26 Tom Tromey <tom@tromey.com>
13519
13520 * dwarf2/read.c (struct die_info): Move to die.h.
13521 * dwarf2/die.h: New file.
13522
0df7ad3a
TT
135232020-03-26 Tom Tromey <tom@tromey.com>
13524
13525 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
13526 * dwarf2/read.c
13527 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13528 Move to line-header.c.
13529 (read_checked_initial_length_and_offset, read_formatted_entries):
13530 Likewise.
13531 (dwarf_decode_line_header): Split into two.
13532 * dwarf2/line-header.c
13533 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13534 Move from read.c.
13535 (read_checked_initial_length_and_offset, read_formatted_entries):
13536 Likewise.
13537 (dwarf_decode_line_header): New function, split from read.c.
13538
86c0bb4c
TT
135392020-03-26 Tom Tromey <tom@tromey.com>
13540
13541 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
13542 Declare method.
13543 * dwarf2/read.c (read_attribute_value): Update.
13544 (dwarf2_per_objfile::read_line_string): Rename from
13545 read_indirect_line_string.
13546 (read_formatted_entries): Update.
13547
2ef46c2f
TT
135482020-03-26 Tom Tromey <tom@tromey.com>
13549
13550 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
13551 variable.
13552
4f9c1eda
TT
135532020-03-26 Tom Tromey <tom@tromey.com>
13554
13555 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
13556 const.
13557 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
13558 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
13559 parameter const.
13560
5a0e026f
TT
135612020-03-26 Tom Tromey <tom@tromey.com>
13562
13563 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
13564 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
13565 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
13566 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13567
8844c11b
TT
135682020-03-26 Tom Tromey <tom@tromey.com>
13569
13570 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13571 file_names_size, file_full_name, file_file_name>: Use const.
13572 <file_name_at, file_names>: Add const overload.
13573 * dwarf2/line-header.c (line_header::file_file_name)
13574 (line_header::file_full_name): Update.
13575
c90ec28a
TT
135762020-03-26 Tom Tromey <tom@tromey.com>
13577
13578 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13579 (macro_start_file, consume_improper_spaces)
13580 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13581 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13582 (dwarf_decode_macros): Move to macro.c.
13583 * dwarf2/macro.c: New file.
13584 * dwarf2/macro.h: New file.
13585 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13586
4f44ae6c
TT
135872020-03-26 Tom Tromey <tom@tromey.com>
13588
13589 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13590 method.
13591 * dwarf2/section.c: New method. From
13592 read_indirect_string_at_offset_from.
13593 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13594 (read_indirect_string_at_offset_from): Move to section.c.
13595 (read_indirect_string_at_offset): Rewrite.
13596 (read_indirect_line_string_at_offset): Remove.
13597 (read_indirect_string, read_indirect_line_string)
13598 (dwarf_decode_macro_bytes): Update.
13599
a0194fa8
TT
136002020-03-26 Tom Tromey <tom@tromey.com>
13601
13602 * dwarf2/section.h (struct dwarf2_section_info)
13603 <overload_complaint>: Declare.
13604 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13605 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13606 Rename from dwarf2_section_buffer_overflow_complaint.
13607 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13608 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13609
3d27bbdb
TT
136102020-03-26 Tom Tromey <tom@tromey.com>
13611
13612 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13613 Declare.
13614 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13615 Move from read.c.
13616 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13617 to section.c.
13618
9eac9650
TT
136192020-03-26 Tom Tromey <tom@tromey.com>
13620
13621 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13622
bf80d710
TT
136232020-03-26 Tom Tromey <tom@tromey.com>
13624
13625 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13626 "builder".
13627 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13628 parameter.
13629 (dwarf_decode_macros): Update.
13630
0314b390
TT
136312020-03-26 Tom Tromey <tom@tromey.com>
13632
13633 * dwarf2/read.c (read_attribute_value): Update.
13634 (read_indirect_string_from_dwz): Move to dwz.c; change into
13635 method.
13636 (dwarf_decode_macro_bytes): Update.
13637 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13638 * dwarf2/dwz.c: New file.
13639 * Makefile.in (COMMON_SFILES): Add dwz.c.
13640
9fda78b6
TT
136412020-03-26 Tom Tromey <tom@tromey.com>
13642
13643 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13644 * dwarf2/read.c: Add include.
13645 * dwarf2/index-write.c: Add include.
13646 * dwarf2/index-cache.c: Add include.
13647 * dwarf2/dwz.h: New file.
13648
33aa3c10
TT
136492020-03-25 Tom Tromey <tom@tromey.com>
13650
13651 * compile/compile-object-load.c (get_out_value_type): Mention
13652 correct symbol name in error message.
13653
d503b685
HD
136542020-03-25 Hannes Domani <ssbssa@yahoo.de>
13655
13656 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13657
7b1eff95
TV
136582020-03-25 Tom de Vries <tdevries@suse.de>
13659
13660 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13661 * symmisc.c (dump_symtab_1): Print user and includes fields.
13662 (maintenance_info_symtabs): Same.
13663
dd895392
AB
136642020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13665
13666 PR gdb/25534
13667 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13668 (riscv_regcache_cooked_write): New function.
13669 (riscv_push_dummy_call): Use new function.
13670 (riscv_return_value): Likewise.
13671
5ab2fbf1
SM
136722020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13673
13674 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13675 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13676 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13677 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13678 * infrun.c (follow_fork): Likewise.
13679 (follow_fork_inferior): Likewise.
13680 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13681 * linux-nat.h (class linux_nat_target): Likewise.
13682 * remote.c (class remote_target) <follow_fork>: Likewise.
13683 (remote_target::follow_fork): Likewise.
13684 * target-delegates.c: Re-generate.
13685 * target.c (default_follow_fork): Likewise.
13686 (target_follow_fork): Likewise.
13687 * target.h (struct target_ops) <follow_fork>: Likewise.
13688 (target_follow_fork): Likewise.
13689
a64fafb5
TV
136902020-03-24 Tom de Vries <tdevries@suse.de>
13691
13692 * psymtab.c (maintenance_info_psymtabs): Print user field.
13693
fe26d3a3
TT
136942020-03-20 Tom Tromey <tromey@adacore.com>
13695
13696 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13697 const.
13698 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13699 const.
13700
c884cc46
SM
137012020-03-20 Simon Marchi <simon.marchi@efficios.com>
13702
13703 * ptrace.m4: Don't check for ptrace declaration.
13704 * config.in: Re-generate.
13705 * configure: Re-generate.
13706 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13707 not defined.
13708
1ff700c2
KR
137092020-03-20 Kamil Rytarowski <n54@gmx.com>
13710
13711 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13712 `PTRACE_TYPE_RET'.
13713 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13714 * sparc-nat.c (gdb_ptrace): Likewise.
13715 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13716
f7d4f0b1
TT
137172020-03-20 Tom Tromey <tromey@adacore.com>
13718
13719 * c-exp.y (lex_one_token): Fix assert.
13720
f67210ff
TT
137212020-03-20 Tom Tromey <tromey@adacore.com>
13722
13723 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13724 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13725 strncpy call.
13726
1773be9e
TT
137272020-03-20 Tom Tromey <tromey@adacore.com>
13728
13729 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13730
70304be9
TT
137312020-03-20 Tom Tromey <tromey@adacore.com>
13732
13733 * ada-valprint.c (print_variant_part): Remove parameters; switch
13734 to value-based API.
13735 (print_field_values): Likewise.
13736 (ada_val_print_struct_union): Likewise.
13737 (ada_value_print_1): Update.
13738
9faa006d
KR
137392020-03-20 Kamil Rytarowski <n54@gmx.com>
13740
13741 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13742 nbsd_nat_target instead of inf_ptrace_target.
13743 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13744 nbsd_nat_target.
13745
4a90f062
KR
137462020-03-20 Kamil Rytarowski <n54@gmx.com>
13747
13748 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13749 it to the ptrace call.
13750 * (store_registers): Likewise.
13751
137522020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
13753
13754 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13755 it to the ptrace call.
13756 * (store_registers): Likewise.
13757
2d07da27
LM
137582020-03-19 Luis Machado <luis.machado@linaro.org>
13759
13760 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13761 valid, fetch vg value from ptrace.
13762
f09db380
KR
137632020-03-19 Kamil Rytarowski <n54@gmx.com>
13764 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13765 * inf-ptrace.c: Likewise.
13766 * (gdb_ptrace): Add.
13767 * (inf_ptrace_target::resume): Update.
13768 * (inf_ptrace_target::xfer_partial): Likewise.
13769 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13770 * (inf_ptrace_peek_poke): Update.
13771
fcc7376e
KR
137722020-03-19 Kamil Rytarowski <n54@gmx.com>
13773
13774 * x86-bsd-nat.c (gdb_ptrace): New.
13775 * (x86bsd_dr_set): Add new argument `ptid'.
13776 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13777 x86bsd_dr_set_addr): Update.
13778
cada5fc9
AB
137792020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13780
13781 * remote.c (remote_target::process_stop_reply): Handle events for
13782 all threads differently.
13783
19a2740f
AB
137842020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13785
13786 * completer.c (completion_tracker::remove_completion): Define new
13787 function.
13788 * completer.h (completion_tracker::remove_completion): Declare new
13789 function.
13790 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13791 when adding a C++ function symbol.
13792
724fd9ba
AB
137932020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13794
13795 * completer.c (completion_tracker::completion_hash_entry): Define
13796 new class.
13797 (advance_to_filename_complete_word_point): Call
13798 recompute_lowest_common_denominator.
13799 (completion_tracker::completion_tracker): Call discard_completions
13800 to setup the hash table.
13801 (completion_tracker::discard_completions): Allow for being called
13802 from the constructor, pass new equal function, and element deleter
13803 when constructing the hash table. Initialise new class member
13804 variables.
13805 (completion_tracker::maybe_add_completion): Remove use of
13806 m_entries_vec, and store more information into m_entries_hash.
13807 (completion_tracker::recompute_lcd_visitor): New function, most
13808 content taken from...
13809 (completion_tracker::recompute_lowest_common_denominator):
13810 ...here, this now just visits each item in the hash calling the
13811 above visitor.
13812 (completion_tracker::build_completion_result): Remove use of
13813 m_entries_vec, call recompute_lowest_common_denominator.
13814 * completer.h (completion_tracker::have_completions): Remove use
13815 of m_entries_vec.
13816 (completion_tracker::completion_hash_entry): Declare new class.
13817 (completion_tracker::recompute_lowest_common_denominator): Change
13818 function signature.
13819 (completion_tracker::recompute_lcd_visitor): Declare new function.
13820 (completion_tracker::m_entries_vec): Delete.
13821 (completion_tracker::m_entries_hash): Initialize to NULL.
13822 (completion_tracker::m_lowest_common_denominator_valid): New
13823 member variable.
13824 (completion_tracker::m_lowest_common_denominator_max_length): New
13825 member variable.
13826
5a82b8a1
KR
138272020-03-17 Kamil Rytarowski <n54@gmx.com>
13828
13829 * regformats/regdef.h: Put reg in gdb namespace.
13830
fb516a69
KR
138312020-03-17 Kamil Rytarowski <n54@gmx.com>
13832
13833 * i386-bsd-nat.c (gdb_ptrace): New.
13834 * (i386bsd_fetch_inferior_registers,
13835 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13836 * (i386bsd_fetch_inferior_registers,
13837 i386bsd_store_inferior_registers) Use gdb_ptrace.
13838
1c0aa1fb
KR
138392020-03-17 Kamil Rytarowski <n54@gmx.com>
13840
13841 * amd64-bsd-nat.c (gdb_ptrace): New.
13842 * (amd64bsd_fetch_inferior_registers,
13843 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13844 * (amd64bsd_fetch_inferior_registers,
13845 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13846
5ccd2fb7
KR
138472020-03-17 Kamil Rytarowski <n54@gmx.com>
13848
13849 * user-regs.c (user_reg::read): Rename to...
13850 (user_reg::xread): ...this.
13851 * (append_user_reg): Rename argument `read' to `xread'.
13852 * (user_reg_add_builtin): Likewise.
13853 * (user_reg_add): Likewise.
13854 * (value_of_user_reg): Likewise.
13855
2108a63a
KR
138562020-03-17 Kamil Rytarowski <n54@gmx.com>
13857
13858 * sparc-nat.c (gdb_ptrace): New.
13859 * sparc-nat.c (sparc_fetch_inferior_registers)
13860 (sparc_store_inferior_registers) Remove obsolete comment.
13861 * sparc-nat.c (sparc_fetch_inferior_registers)
13862 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13863 * sparc-nat.c (sparc_fetch_inferior_registers)
13864 (sparc_store_inferior_registers) Use gdb_ptrace.
13865
a225c9a8
KR
138662020-03-17 Kamil Rytarowski <n54@gmx.com>
13867
13868 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13869 it to the ptrace call.
13870 * sh-nbsd-nat.c (store_registers): Likewise.
13871
98097623
KR
138722020-03-17 Kamil Rytarowski <n54@gmx.com>
13873
13874 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13875 nbsd_nat_target instead of inf_ptrace_target.
13876 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13877 nbsd_nat_target.
13878
9e38d619
KR
138792020-03-17 Kamil Rytarowski <n54@gmx.com>
13880
13881 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13882
a2ecbe9f
KR
138832020-03-17 Kamil Rytarowski <n54@gmx.com>
13884
13885 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13886 <sys/sysctl.h>.
13887 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13888
58990295
TV
138892020-03-17 Tom de Vries <tdevries@suse.de>
13890
13891 PR gdb/23710
13892 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13893 fields.
13894 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13895 fields.
13896 (process_imported_unit_die): Skip import of c++ CUs.
13897
771dd3a8
TT
138982020-03-16 Tom Tromey <tom@tromey.com>
13899
13900 * p-valprint.c (pascal_object_print_value): Initialize
13901 base_value.
13902
817a7585
AK
139032020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13904 Shahab Vahedi <shahab@synopsys.com>
13905
13906 * Makefile.in: Add arch/arc.o
13907 * configure.tgt: Likewise.
13908 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13909 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 13910 (arc_read_description): New function to cache target descriptions.
817a7585
AK
13911 * arc-tdep.h (arc_read_description): Add proto type.
13912 * arch/arc.c: New file.
13913 * arch/arc.h: Likewise.
13914 * features/Makefile: Replace old target descriptions with new.
13915 * features/arc-arcompact.c: Remove.
13916 * features/arc-arcompact.xml: Likewise.
13917 * features/arc-v2.c: Likewise
13918 * features/arc-v2.xml: Likewise
13919 * features/arc/aux-arcompact.xml: New file.
13920 * features/arc/aux-v2.xml: Likewise.
13921 * features/arc/core-arcompact.xml: Likewise.
13922 * features/arc/core-v2.xml: Likewise.
13923 * features/arc/aux-arcompact.c: Generate.
13924 * features/arc/aux-v2.c: Likewise.
13925 * features/arc/core-arcompact.c: Likewise.
13926 * features/arc/core-v2.c: Likewise.
13927 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13928
67430cd0
TT
139292020-03-16 Tom Tromey <tromey@adacore.com>
13930
13931 PR gdb/25663:
13932 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13933 putting value into bcache.
13934
30efb6c7
SM
139352020-03-16 Simon Marchi <simon.marchi@efficios.com>
13936
13937 PR gdb/21500
13938 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13939 to...
13940 (amd64_windows_init_abi_common): ... this. Don't set size of
13941 long type.
13942 (amd64_windows_init_abi): New function.
13943 (amd64_cygwin_init_abi): New function.
13944 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13945 the Cygwin OS ABI.
13946 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13947 comment.
13948
8db52437
SM
139492020-03-16 Simon Marchi <simon.marchi@efficios.com>
13950
13951 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13952 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13953 (pe_import_directory_entry): New struct type.
13954 (is_linked_with_cygwin_dll): New function.
13955 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13956 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13957 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13958
5982a56a
SM
139592020-03-16 Simon Marchi <simon.marchi@efficios.com>
13960
13961 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13962 i386_cygwin_core_osabi_sniffer.
13963
7a1998df
SM
139642020-03-16 Simon Marchi <simon.marchi@efficios.com>
13965
13966 * i386-cygwin-tdep.c: Rename to...
13967 * i386-windows-tdep.c: ... this.
13968 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13969 i386-windows-tdep.c.
13970 * configure.tgt: Likewise.
13971
053205cc
SM
139722020-03-16 Simon Marchi <simon.marchi@efficios.com>
13973
13974 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13975 * osabi.c (gdb_osabi_names): Add "Windows".
13976 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13977 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13978 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13979 i386_cygwin_osabi_sniffer.
13980 (_initialize_i386_cygwin_tdep): Register OS ABI
13981 GDB_OSABI_WINDOWS for i386.
13982 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13983 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13984 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13985 for x86-64.
13986 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13987 when the target matches '*-*-mingw*'.
13988
fe4b2ee6
SM
139892020-03-16 Simon Marchi <simon.marchi@efficios.com>
13990
13991 * defs.h (enum gdb_osabi): Move to...
13992 * osabi.h (enum gdb_osabi): ... here.
13993 * gdbarch.sh: Include osabi.h in gdbarch.h.
13994 * gdbarch.h: Re-generate.
13995
cb9b645d
SM
139962020-03-16 Simon Marchi <simon.marchi@efficios.com>
13997
13998 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13999 function.
14000 (_initialize_amd64_windows_tdep): Register osabi sniffer.
14001
3293bbaf
TT
140022020-03-14 Tom Tromey <tom@tromey.com>
14003
14004 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
14005 for C++.
14006 (c_type_print_modifier): Likewise. Add "language" parameter.
14007 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
14008 (c_type_print_base_1): Update.
14009 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
14010 constants.
14011 * type-stack.c (type_stack::insert): Handle tp_atomic and
14012 tp_restrict.
14013 (type_stack::follow_type_instance_flags): Likewise.
14014 (type_stack::follow_types): Likewise. Merge type-following code.
14015 * c-exp.y (RESTRICT, ATOMIC): New tokens.
14016 (space_identifier, cv_with_space_id)
14017 (const_or_volatile_or_space_identifier_noopt)
14018 (const_or_volatile_or_space_identifier): Remove.
14019 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
14020 rules.
14021 (ptr_operator, typebase): Update.
14022 (enum token_flag) <FLAG_C>: New constant.
14023 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
14024 "_Atomic".
14025 (lex_one_token): Handle FLAG_C.
14026
154151a6
KR
140272020-03-14 Kamil Rytarowski <n54@gmx.com>
14028
14029 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
14030 it to the ptrace call.
14031 * m68k-bsd-nat.c (store_registers): Likewise.
14032
bc107784
KR
140332020-03-14 Kamil Rytarowski <n54@gmx.com>
14034
14035 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
14036 gdb_byte *.
14037 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
14038 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
14039 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
14040
01a80117
KR
140412020-03-14 Kamil Rytarowski <n54@gmx.com>
14042
14043 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
14044 nbsd_nat_target instead of inf_ptrace_target.
14045 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
14046 nbsd_nat_target.
14047
f90280ca
KR
140482020-03-14 Kamil Rytarowski <n54@gmx.com>
14049
14050 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
14051 register_t.
14052
6def66f1
KR
140532020-03-14 Kamil Rytarowski <n54@gmx.com>
14054
14055 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
14056 it to the ptrace call.
14057 * alpha-bsd-nat.c (store_registers): Likewise.
14058
66eaca97
KR
140592020-03-14 Kamil Rytarowski <n54@gmx.com>
14060
14061 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
14062 includes.
14063 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
14064 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
14065 fill_fpregset): Likewise.
14066
4fed520b
KR
140672020-03-14 Kamil Rytarowski <n54@gmx.com>
14068
14069 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
14070 nbsd_nat_target instead of inf_ptrace_target.
14071 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
14072 nbsd_nat_target.
14073
2190cf06
KR
140742020-03-14 Kamil Rytarowski <n54@gmx.com>
14075
14076 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
14077 register_t.
14078
75c56d3d
KR
140792020-03-14 Kamil Rytarowski <n54@gmx.com>
14080
14081 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
14082 it to the ptrace call.
14083 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
14084 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
14085 * arm-nbsd-nat.c (store_register): Likewise.
14086 * arm-nbsd-nat.c (store_regs): Likewise.
14087 * arm-nbsd-nat.c (store_fp_register): Likewise.
14088 * arm-nbsd-nat.c (store_fp_regs): Likewise.
14089
6018d381
KR
140902020-03-14 Kamil Rytarowski <n54@gmx.com>
14091
14092 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
14093 nbsd_nat_target instead of inf_ptrace_target.
14094 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
14095 nbsd_nat_target.
14096
013f99f0
KR
140972020-03-14 Kamil Rytarowski <n54@gmx.com>
14098
14099 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
14100 it to the ptrace call.
14101 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
14102
12753073
KR
141032020-03-14 Kamil Rytarowski <n54@gmx.com>
14104
6227b330
KR
14105 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
14106 it to the ptrace call.
14107 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
14108
141092020-03-14 Kamil Rytarowski <n54@gmx.com>
14110
14111 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
14112 gdb_byte *.
12753073
KR
14113 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
14114
d5be5fa4
KR
141152020-03-14 Kamil Rytarowski <n54@gmx.com>
14116
14117 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
14118 instead of inf_ptrace_target.
14119 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
14120 nbsd_nat_target.
14121
8110f842
KR
141222020-03-14 Kamil Rytarowski <n54@gmx.com>
14123
14124 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14125 register_t.
14126
52feded7
KR
141272020-03-14 Kamil Rytarowski <n54@gmx.com>
14128
14129 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14130 register_t.
14131
25567eee
KR
141322020-03-14 Kamil Rytarowski <n54@gmx.com>
14133
14134 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
14135 register_t.
14136
426a9c18
TT
141372020-03-13 Tom Tromey <tom@tromey.com>
14138
14139 * value.h (val_print): Don't declare.
14140 * valprint.h (val_print_array_elements)
14141 (val_print_scalar_formatted, generic_val_print): Don't declare.
14142 * valprint.c (generic_val_print_array): Take a struct value.
14143 (generic_val_print_ptr, generic_val_print_memberptr)
14144 (generic_val_print_bool, generic_val_print_int)
14145 (generic_val_print_char, generic_val_print_complex)
14146 (generic_val_print): Remove.
14147 (generic_value_print): Update.
14148 (do_val_print): Remove unused parameters. Don't call
14149 la_val_print.
14150 (val_print): Remove.
14151 (common_val_print): Update. Don't call value_check_printable.
14152 (val_print_scalar_formatted, val_print_array_elements): Remove.
14153 * rust-lang.c (rust_val_print): Remove.
14154 (rust_language_defn): Update.
14155 * p-valprint.c (pascal_val_print): Remove.
14156 (pascal_value_print_inner): Update.
14157 (pascal_object_print_val_fields, pascal_object_print_val):
14158 Remove.
14159 (pascal_object_print_static_field): Update.
14160 * p-lang.h (pascal_val_print): Don't declare.
14161 * p-lang.c (pascal_language_defn): Update.
14162 * opencl-lang.c (opencl_language_defn): Update.
14163 * objc-lang.c (objc_language_defn): Update.
14164 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
14165 * m2-lang.h (m2_val_print): Don't declare.
14166 * m2-lang.c (m2_language_defn): Update.
14167 * language.h (struct language_defn) <la_val_print>: Remove.
14168 * language.c (unk_lang_value_print_inner): Rename. Change
14169 argument types.
14170 (unknown_language_defn, auto_language_defn): Update.
14171 * go-valprint.c (go_val_print): Remove.
14172 * go-lang.h (go_val_print): Don't declare.
14173 * go-lang.c (go_language_defn): Update.
14174 * f-valprint.c (f_val_print): Remove.
14175 * f-lang.h (f_value_print): Don't declare.
14176 * f-lang.c (f_language_defn): Update.
14177 * d-valprint.c (d_val_print): Remove.
14178 * d-lang.h (d_value_print): Don't declare.
14179 * d-lang.c (d_language_defn): Update.
14180 * cp-valprint.c (cp_print_value_fields)
14181 (cp_print_value_fields_rtti, cp_print_value): Remove.
14182 (cp_print_static_field): Update.
14183 * c-valprint.c (c_val_print_array, c_val_print_ptr)
14184 (c_val_print_struct, c_val_print_union, c_val_print_int)
14185 (c_val_print_memberptr, c_val_print): Remove.
14186 * c-lang.h (c_val_print_array, cp_print_value_fields)
14187 (cp_print_value_fields_rtti): Don't declare.
14188 * c-lang.c (c_language_defn, cplus_language_defn)
14189 (asm_language_defn, minimal_language_defn): Update.
14190 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
14191 (ada_val_print_enum): Take a struct value.
14192 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
14193 (ada_val_print): Remove.
14194 (ada_value_print_1): Update.
14195 (printable_val_type): Remove.
14196 * ada-lang.h (ada_val_print): Don't declare.
14197 * ada-lang.c (ada_language_defn): Update.
14198
42331a1e
TT
141992020-03-13 Tom Tromey <tom@tromey.com>
14200
14201 * valprint.c (do_val_print): Update.
14202 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
14203 a struct value.
14204 (value_to_value_object_no_release): Declare.
14205 * python/py-value.c (value_to_value_object_no_release): New
14206 function.
14207 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
14208 struct value.
14209 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
14210 function.
14211 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
14212 a struct value.
14213 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
14214 Declare.
14215 (gdbscm_apply_val_pretty_printer): Take a struct value.
14216 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
14217 value.
14218 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
14219 value.
14220 * extension-priv.h (struct extension_language_ops)
14221 <apply_val_pretty_printer>: Take a struct value.
14222 * cp-valprint.c (cp_print_value): Create a struct value.
14223 (cp_print_value): Update.
14224
3a916a97
TT
142252020-03-13 Tom Tromey <tom@tromey.com>
14226
14227 * ada-valprint.c (print_field_values): Call common_val_print.
14228
b59eac37
TT
142292020-03-13 Tom Tromey <tom@tromey.com>
14230
14231 * ada-valprint.c (val_print_packed_array_elements): Remove
14232 bitoffset and val parameters. Call common_val_print.
14233 (ada_val_print_string): Remove offset, address, and original_value
14234 parameters.
14235 (ada_val_print_array): Update.
14236 (ada_value_print_array): New function.
14237 (ada_value_print_1): Call it.
14238
03371129
TT
142392020-03-13 Tom Tromey <tom@tromey.com>
14240
14241 * ada-valprint.c (ada_value_print): Use common_val_print.
14242
2e088f8b
TT
142432020-03-13 Tom Tromey <tom@tromey.com>
14244
14245 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
14246
39ef85a8
TT
142472020-03-13 Tom Tromey <tom@tromey.com>
14248
14249 * ada-valprint.c (ada_value_print_num): New function.
14250 (ada_value_print_1): Use it.
14251
b9fa6e07
TT
142522020-03-13 Tom Tromey <tom@tromey.com>
14253
14254 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
14255
416595d6
TT
142562020-03-13 Tom Tromey <tom@tromey.com>
14257
14258 * ada-valprint.c (ada_value_print_ptr): New function.
14259 (ada_value_print_1): Use it.
14260
5b5e15ec
TT
142612020-03-13 Tom Tromey <tom@tromey.com>
14262
14263 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
14264 call common_val_print.
14265 (ada_val_print_1): Update.
14266 (ada_value_print_1): New function.
14267 (ada_value_print_inner): Rewrite.
14268
fbf54e75
TT
142692020-03-13 Tom Tromey <tom@tromey.com>
14270
14271 * cp-valprint.c (cp_print_value_fields): Update.
14272 (cp_print_value): New function.
14273
64b653ca
TT
142742020-03-13 Tom Tromey <tom@tromey.com>
14275
14276 * m2-valprint.c (m2_value_print_inner): Use
14277 cp_print_value_fields.
14278 * cp-valprint.c (cp_print_value_fields): New function.
14279 * c-valprint.c (c_value_print_struct): New function.
14280 (c_value_print_inner): Use c_value_print_struct.
14281 * c-lang.h (cp_print_value_fields): Declare.
14282
6999f067
TT
142832020-03-13 Tom Tromey <tom@tromey.com>
14284
14285 * c-valprint.c (c_value_print_array): New function.
14286 (c_value_print_inner): Use it.
14287
ce80b8bd
TT
142882020-03-13 Tom Tromey <tom@tromey.com>
14289
14290 * c-valprint.c (c_value_print_memberptr): New function.
14291 (c_value_print_inner): Use it.
14292
2faac269
TT
142932020-03-13 Tom Tromey <tom@tromey.com>
14294
14295 * c-valprint.c (c_value_print_int): New function.
14296 (c_value_print_inner): Use it.
14297
da3e2c29
TT
142982020-03-13 Tom Tromey <tom@tromey.com>
14299
14300 * c-valprint.c (c_value_print_ptr): New function.
14301 (c_value_print_inner): Use it.
14302
50836231
TT
143032020-03-13 Tom Tromey <tom@tromey.com>
14304
14305 * c-valprint.c (c_value_print_inner): Rewrite.
14306
4f412b6e
TT
143072020-03-13 Tom Tromey <tom@tromey.com>
14308
14309 * valprint.c (generic_value_print_complex): New function.
14310 (generic_value_print): Use it.
14311
f5354008
TT
143122020-03-13 Tom Tromey <tom@tromey.com>
14313
14314 * valprint.c (generic_val_print_float): Don't call
14315 val_print_scalar_formatted.
14316 (generic_val_print, generic_value_print): Update.
14317
3eec3b05
TT
143182020-03-13 Tom Tromey <tom@tromey.com>
14319
14320 * valprint.c (generic_value_print_char): New function
14321 (generic_value_print): Use it.
14322
fdddfccb
TT
143232020-03-13 Tom Tromey <tom@tromey.com>
14324
14325 * valprint.c (generic_value_print_int): New function.
14326 (generic_value_print): Use it.
14327
6dde7521
TT
143282020-03-13 Tom Tromey <tom@tromey.com>
14329
14330 * valprint.c (generic_value_print_bool): New function.
14331 (generic_value_print): Use it.
14332
4112d2e6
TT
143332020-03-13 Tom Tromey <tom@tromey.com>
14334
14335 * valprint.c (generic_val_print_func): Simplify.
14336 (generic_val_print, generic_value_print): Update.
14337
65786af6
TT
143382020-03-13 Tom Tromey <tom@tromey.com>
14339
14340 * valprint.c (generic_val_print_flags): Remove.
14341 (generic_val_print, generic_value_print): Update.
14342 (val_print_type_code_flags): Add original_value parameter.
14343
40f3ce18
TT
143442020-03-13 Tom Tromey <tom@tromey.com>
14345
14346 * valprint.c (generic_val_print): Update.
14347 (generic_value_print): Update.
14348 * valprint.c (generic_val_print_enum): Don't call
14349 val_print_scalar_formatted.
14350
2a5b130b
TT
143512020-03-13 Tom Tromey <tom@tromey.com>
14352
14353 * valprint.c (generic_value_print): Call generic_value_print_ptr.
14354 * valprint.c (generic_value_print_ptr): New function.
14355
abc66ce9
TT
143562020-03-13 Tom Tromey <tom@tromey.com>
14357
14358 * valprint.c (generic_value_print): Rewrite.
14359
07a32858
TT
143602020-03-13 Tom Tromey <tom@tromey.com>
14361
14362 * p-valprint.c (pascal_object_print_value_fields)
14363 (pascal_object_print_value): New functions.
14364
64d64d3a
TT
143652020-03-13 Tom Tromey <tom@tromey.com>
14366
14367 * p-valprint.c (pascal_value_print_inner): Rewrite.
14368
6a95a1f5
TT
143692020-03-13 Tom Tromey <tom@tromey.com>
14370
14371 * f-valprint.c (f_value_print_innner): Rewrite.
14372
59fcdac6
TT
143732020-03-13 Tom Tromey <tom@tromey.com>
14374
14375 * m2-valprint.c (m2_print_unbounded_array): New overload.
14376 (m2_print_unbounded_array): Update.
14377 (m2_print_array_contents): Take a struct value.
14378 (m2_value_print_inner): Rewrite.
14379
d133c3e1
TT
143802020-03-13 Tom Tromey <tom@tromey.com>
14381
14382 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
14383 (d_value_print_inner): New function.
14384 * d-lang.h (d_value_print_inner): Declare.
14385 * d-lang.c (d_language_defn): Use d_value_print_inner.
14386
23b0f06b
TT
143872020-03-13 Tom Tromey <tom@tromey.com>
14388
14389 * go-valprint.c (go_value_print_inner): New function.
14390 * go-lang.h (go_value_print_inner): Declare.
14391 * go-lang.c (go_language_defn): Use go_value_print_inner.
14392
5f56f7cb
TT
143932020-03-13 Tom Tromey <tom@tromey.com>
14394
14395 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
14396 API.
14397 (rust_val_print): Rewrite.
14398 (rust_value_print_inner): New function, from rust_val_print.
14399 (rust_language_defn): Use rust_value_print_inner.
14400
26792ee0
TT
144012020-03-13 Tom Tromey <tom@tromey.com>
14402
14403 * ada-valprint.c (ada_value_print_inner): New function.
14404 * ada-lang.h (ada_value_print_inner): Declare.
14405 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
14406
24051bbe
TT
144072020-03-13 Tom Tromey <tom@tromey.com>
14408
14409 * f-valprint.c (f_value_print_innner): New function.
14410 * f-lang.h (f_value_print_innner): Declare.
14411 * f-lang.c (f_language_defn): Use f_value_print_innner.
14412
c0941be6
TT
144132020-03-13 Tom Tromey <tom@tromey.com>
14414
14415 * p-valprint.c (pascal_value_print_inner): New function.
14416 * p-lang.h (pascal_value_print_inner): Declare.
14417 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
14418
62c4663d
TT
144192020-03-13 Tom Tromey <tom@tromey.com>
14420
14421 * m2-valprint.c (m2_value_print_inner): New function.
14422 * m2-lang.h (m2_value_print_inner): Declare.
14423 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
14424
62182190
TT
144252020-03-13 Tom Tromey <tom@tromey.com>
14426
14427 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
14428 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
14429 * c-valprint.c (c_value_print_inner): New function.
14430 * c-lang.h (c_value_print_inner): Declare.
14431 * c-lang.c (c_language_defn, cplus_language_defn)
14432 (asm_language_defn, minimal_language_defn): Use
14433 c_value_print_inner.
14434
1e592a8a
TT
144352020-03-13 Tom Tromey <tom@tromey.com>
14436
14437 * p-valprint.c (pascal_object_print_value_fields): Now static.
14438 * p-lang.h (pascal_object_print_value_fields): Don't declare.
14439
7fe471e9
TT
144402020-03-13 Tom Tromey <tom@tromey.com>
14441
14442 * c-valprint.c (c_val_print_array): Simplify.
14443
d121c6ce
TT
144442020-03-13 Tom Tromey <tom@tromey.com>
14445
14446 * valprint.c (value_print_array_elements): New function.
14447 * valprint.h (value_print_array_elements): Declare.
14448
4dba70ee
TT
144492020-03-13 Tom Tromey <tom@tromey.com>
14450
14451 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
14452 * mips-tdep.c (mips_print_register): Use
14453 value_print_scalar_formatted.
14454
4f9ae810
TT
144552020-03-13 Tom Tromey <tom@tromey.com>
14456
14457 * valprint.h (value_print_scalar_formatted): Declare.
14458 * valprint.c (value_print_scalar_formatted): New function.
14459
156bfec9
TT
144602020-03-13 Tom Tromey <tom@tromey.com>
14461
14462 * valprint.h (generic_value_print): Declare.
14463 * valprint.c (generic_value_print): New function.
14464
2b4e573d
TT
144652020-03-13 Tom Tromey <tom@tromey.com>
14466
14467 * valprint.c (do_val_print): Call la_value_print_inner, if
14468 available.
14469 * rust-lang.c (rust_language_defn): Update.
14470 * p-lang.c (pascal_language_defn): Update.
14471 * opencl-lang.c (opencl_language_defn): Update.
14472 * objc-lang.c (objc_language_defn): Update.
14473 * m2-lang.c (m2_language_defn): Update.
14474 * language.h (struct language_defn) <la_value_print_inner>: New
14475 member.
14476 * language.c (unknown_language_defn, auto_language_defn): Update.
14477 * go-lang.c (go_language_defn): Update.
14478 * f-lang.c (f_language_defn): Update.
14479 * d-lang.c (d_language_defn): Update.
14480 * c-lang.c (c_language_defn, cplus_language_defn)
14481 (asm_language_defn, minimal_language_defn): Update.
14482 * ada-lang.c (ada_language_defn): Update.
14483
a1f6a07c
TT
144842020-03-13 Tom Tromey <tom@tromey.com>
14485
14486 * c-valprint.c (c_value_print): Use common_val_print.
14487
410cf315
TT
144882020-03-13 Tom Tromey <tom@tromey.com>
14489
14490 * cp-valprint.c (cp_print_static_field): Use common_val_print.
14491
72a45c93
TT
144922020-03-13 Tom Tromey <tom@tromey.com>
14493
14494 * f-valprint.c (f77_print_array_1, f_val_print): Use
14495 common_val_print.
14496
040f66bd
TT
144972020-03-13 Tom Tromey <tom@tromey.com>
14498
14499 * riscv-tdep.c (riscv_print_one_register_info): Use
14500 common_val_print.
14501
a6e05a6c
TT
145022020-03-13 Tom Tromey <tom@tromey.com>
14503
14504 * mi/mi-main.c (output_register): Use common_val_print.
14505
3444c526
TT
145062020-03-13 Tom Tromey <tom@tromey.com>
14507
14508 * infcmd.c (default_print_one_register_info): Use
14509 common_val_print.
14510
c2a44efe
TT
145112020-03-13 Tom Tromey <tom@tromey.com>
14512
14513 * valprint.h (common_val_print_checked): Declare.
14514 * valprint.c (common_val_print_checked): New function.
14515 * stack.c (print_frame_arg): Use common_val_print_checked.
14516
b0c26e99
TT
145172020-03-13 Tom Tromey <tom@tromey.com>
14518
14519 * valprint.c (do_val_print): New function, from val_print.
14520 (val_print): Use do_val_print.
14521 (common_val_print): Use do_val_print.
14522
ce3acbe9
TT
145232020-03-13 Tom Tromey <tom@tromey.com>
14524
14525 * valprint.c (value_print): Use scoped_value_mark.
14526
96c7f873
TV
145272020-03-13 Tom de Vries <tdevries@suse.de>
14528
14529 PR symtab/25646
14530 * psymtab.c (partial_symtab::partial_symtab): Don't set
14531 globals_offset and statics_offset. Push element onto
14532 current_global_psymbols and current_static_psymbols stacks.
14533 (concat): New function.
14534 (end_psymtab_common): Set globals_offset and statics_offset. Pop
14535 element from current_global_psymbols and current_static_psymbols
14536 stacks. Concat popped elements to global_psymbols and
14537 static_symbols.
14538 (add_psymbol_to_list): Use current_global_psymbols and
14539 current_static_psymbols stacks.
14540 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
14541 current_static_psymbols fields.
14542
6ba0a321
CB
145432020-03-12 Christian Biesinger <cbiesinger@google.com>
14544
14545 * corelow.c (sniff_core_bfd): Remove.
14546 (class core_target) <m_core_vec>: Remove.
14547 (core_target::core_target): Update.
14548 (core_file_fns): Remove.
14549 (deprecated_add_core_fns): Remove.
14550 (default_core_sniffer): Remove.
14551 (sniff_core_bfd): Remove.
14552 (default_check_format): Remove.
14553 (gdb_check_format): Remove.
14554 (core_target_open): Update.
14555 (core_target::get_core_register_section): Update.
14556 (get_core_registers_cb): Update.
14557 (core_target::fetch_registers): Update.
14558 * gdbcore.h (struct core_fns): Remove.
14559 (deprecated_add_core_fns): Remove.
14560 (default_core_sniffer): Remove.
14561 (default_check_format): Remove.
14562
227031b2
TT
145632020-03-12 Tom Tromey <tom@tromey.com>
14564
14565 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
14566 CORE_ADDR.
14567 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14568
53807e9f
TT
145692020-03-12 Tom Tromey <tom@tromey.com>
14570
14571 * remote.c (remote_target::download_tracepoint)
14572 (remote_target::enable_tracepoint)
14573 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14574 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14575 sprintf_vma.
14576
64f25102
TT
145772020-03-12 Tom Tromey <tom@tromey.com>
14578
14579 * symfile-mem.c: Update CORE_ADDR size assert.
14580
272cd5a3
SM
145812020-03-12 Simon Marchi <simon.marchi@efficios.com>
14582
14583 * selftest.m4: Move to gdbsupport/.
14584 * acinclude.m4: Update path to selftest.m4.
14585
74cd3f9d
SM
145862020-03-12 Simon Marchi <simon.marchi@efficios.com>
14587
14588 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14589 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14590 gdbarch-selfselftests.c and selftest-arch.c.
14591 (SUBDIR_UNITTESTS_OBS): Rename to...
14592 (SELFTESTS_OBS): ... this.
14593 (COMMON_SFILES): Remove disasm-selftests.c and
14594 gdbarch-selftests.c.
14595 * configure.ac: Don't add selftest-arch.{c,o} to
14596 CONFIG_{SRCS,OBS}.
14597 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14598 preprocessor conditions.
14599
db6878ac
SM
146002020-03-12 Simon Marchi <simon.marchi@efficios.com>
14601
14602 * configure.ac: Don't source bfd/development.sh.
14603 * selftest.m4: Modify comment.
14604 * configure: Re-generate.
14605
4d696a5c
SM
146062020-03-12 Simon Marchi <simon.marchi@efficios.com>
14607
14608 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14609 not "true" or "false".
14610 * configure: Re-generate.
14611
8dd8e1c7
CB
146122020-03-12 Christian Biesinger <cbiesinger@google.com>
14613
14614 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14615 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14616 renamed to arm_nbsd_supply_gregset.
14617 (fetch_register): Update to call arm_nbsd_supply_gregset.
14618 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14619 (arm_netbsd_nat_target::fetch_registers): Update.
14620 (fetch_elfcore_registers): Removed.
14621 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14622 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14623 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14624 not require NetBSD system headers.
14625 (arm_nbsd_regset): New struct.
14626 (arm_nbsd_iterate_over_regset_sections): New function.
14627 (arm_netbsd_init_abi_common): Updated to call
14628 set_gdbarch_iterate_over_regset_sections.
14629 * arm-nbsd-tdep.h: New file.
14630
dd69bf7a
KB
146312020-03-11 Kevin Buettner <kevinb@redhat.com>
14632
14633 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14634 recursion.
14635
a0761e34
SM
146362020-03-11 Simon Marchi <simon.marchi@efficios.com>
14637
14638 * configure: Re-generate.
14639
e7a82140
TT
146402020-03-11 Tom Tromey <tromey@adacore.com>
14641
14642 * ada-typeprint.c (print_choices): Fix comment.
14643
dcc050c8
AB
146442020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14645
14646 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14647 previous item in the list, when the list has no items.
14648
1c33af77
TV
146492020-03-11 Tom de Vries <tdevries@suse.de>
14650
14651 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14652 PROP_LOCLIST handling code.
14653
8c95582d
AB
146542020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14655
14656 * buildsym-legacy.c (record_line): Pass extra parameter to
14657 record_line.
14658 * buildsym.c (buildsym_compunit::record_line): Take an extra
14659 parameter, reduce duplication in the line table, and record the
14660 is_stmt flag in the line table.
14661 * buildsym.h (buildsym_compunit::record_line): Add extra
14662 parameter.
14663 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14664 non-statement lines.
14665 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14666 this to the symtab builder.
14667 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14668 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14669 through to dwarf_record_line_1.
14670 * infrun.c (process_event_stop_test): When stepping, don't stop at
14671 a non-statement instruction, and only refresh the step info when
14672 we land in the middle of a line's range. Also add an extra
14673 comment.
14674 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14675 field.
14676 * record-btrace.c (btrace_find_line_range): Only record lines
14677 marked as is-statement.
14678 * stack.c (frame_show_address): Show the frame address if we are
14679 in a non-statement sal.
14680 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14681 (maintenance_print_one_line_table): Print a header for the is_stmt
14682 column, and include is_stmt information in the output.
14683 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14684 preference to non-statements.
14685 (find_pcs_for_symtab_line): Prefer is-statement entries.
14686 (find_line_common): Likewise.
14687 * symtab.h (struct linetable_entry): Add is_stmt field.
14688 (struct symtab_and_line): Likewise.
14689 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14690 arranging the line table.
14691
e4003a34
TV
146922020-03-07 Tom de Vries <tdevries@suse.de>
14693
14694 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14695 DIE.
14696
e8932576
TT
146972020-03-07 Tom Tromey <tom@tromey.com>
14698
14699 * valops.c (value_literal_complex): Remove obsolete comment.
14700 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14701 comment.
14702
29734269
SM
147032020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14704
14705 * infrun.h: Forward-declare thread_info.
14706 (set_step_info): Add thread_info parameter, add doc.
14707 * infrun.c (set_step_info): Add thread_info parameter, move doc
14708 to header.
14709 * infrun.c (process_event_stop_test): Pass thread to
14710 set_step_info call.
14711 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14712 set_step_info.
14713 (prepare_one_step): Add thread_info parameter, pass it to
14714 set_step_frame and prepare_one_step (recursive) call.
14715 (step_1): Pass thread to prepare_one_step call.
14716 (step_command_fsm::should_stop): Pass thread to
14717 prepare_one_step.
14718 (until_next_fsm): Pass thread to set_step_frame call.
14719 (finish_command): Pass thread to set_step_info call.
14720
b7d64b29
HD
147212020-03-06 Hannes Domani <ssbssa@yahoo.de>
14722
14723 * windows-tdep.c (windows_solib_create_inferior_hook):
14724 Check if inferior is running.
14725
09f2921c
TV
147262020-03-06 Tom de Vries <tdevries@suse.de>
14727
14728 * NEWS: Fix "the the".
14729 * ctfread.c: Same.
14730
fd760e79
TV
147312020-03-06 Tom de Vries <tdevries@suse.de>
14732
14733 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14734
20ea4a60
AB
147352020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14736
14737 * .dir-locals.el: Add a comment referencing the other copies of
14738 this file.
14739
0afbabf0
JB
147402020-03-05 John Baldwin <jhb@FreeBSD.org>
14741
14742 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14743 psargs.
14744
842806cb
TBA
147452020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14746
14747 * .gitattributes: New file.
14748
be1e3d3e
TT
147492020-03-04 Tom Tromey <tom@tromey.com>
14750
14751 * symmisc.c (print_symbol_bcache_statistics)
14752 (print_objfile_statistics): Update.
14753 * symfile.c (allocate_symtab): Use intern.
14754 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14755 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14756 macro_cache>: Remove.
14757 <string_cache>: New member.
14758 (struct objfile) <intern>: New methods.
14759 * elfread.c (elf_symtab_read): Use intern.
14760 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14761 (dwarf2_compute_name, dwarf2_physname)
14762 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14763 names.
14764 (guess_partial_die_structure_name): Update.
14765 (partial_die_info::fixup): Intern name.
14766 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14767 name.
14768 (dwarf2_name): Intern name. Update.
14769 * buildsym.c (buildsym_compunit::get_macro_table): Use
14770 string_cache.
14771
4e7625fd
TT
147722020-03-04 Tom Tromey <tom@tromey.com>
14773
14774 * jit.c (bfd_open_from_target_memory): Make "target" const.
14775 * corefile.c (gnutarget): Now const.
14776 * gdbcore.h (gnutarget): Now const.
14777
46f9f931
HD
147782020-03-04 Hannes Domani <ssbssa@yahoo.de>
14779
14780 * NEWS: Mention support for WOW64 processes.
14781 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14782 (amd64_windows_segment_register_p): Remove static.
14783 (_initialize_amd64_windows_nat): Update.
14784 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14785 * i386-windows-nat.c (context_offset): Update.
14786 (i386_mappings): Rename and remove static.
14787 (i386_windows_segment_register_p): Remove static.
14788 (_initialize_i386_windows_nat): Update.
14789 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14790 (STATUS_WX86_SINGLE_STEP): New macro.
14791 (EnumProcessModulesEx): New macro.
14792 (Wow64SuspendThread): New macro.
14793 (Wow64GetThreadContext): New macro.
14794 (Wow64SetThreadContext): New macro.
14795 (Wow64GetThreadSelectorEntry): New macro.
14796 (windows_set_context_register_offsets): Add static.
14797 (windows_set_segment_register_p): Likewise.
14798 (windows_add_thread): Adapt for WOW64 processes.
14799 (windows_fetch_one_register): Likewise.
14800 (windows_nat_target::fetch_registers): Likewise.
14801 (windows_store_one_register): Likewise.
14802 (display_selector): Likewise.
14803 (display_selectors): Likewise.
14804 (handle_exception): Likewise.
14805 (windows_continue): Likewise.
14806 (windows_nat_target::resume): Likewise.
14807 (windows_add_all_dlls): Likewise.
14808 (do_initial_windows_stuff): Likewise.
14809 (windows_nat_target::attach): Likewise.
14810 (windows_get_exec_module_filename): Likewise.
14811 (windows_nat_target::create_inferior): Likewise.
14812 (windows_xfer_siginfo): Likewise.
14813 (_initialize_loadable): Initialize Wow64SuspendThread,
14814 Wow64GetThreadContext, Wow64SetThreadContext,
14815 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14816 * windows-nat.h (windows_set_context_register_offsets):
14817 Remove declaration.
14818 (windows_set_segment_register_p): Likewise.
14819 (i386_windows_segment_register_p): Add declaration.
14820 (amd64_windows_segment_register_p): Likewise.
14821
440cf44e
LM
148222020-03-04 Luis Machado <luis.machado@linaro.org>
14823
14824 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14825 in "info registers" for AArch64/ARM.
14826
14827 The change caused "info registers" to not print GPR's.
14828
14829 gdb/ChangeLog:
14830
14831 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14832
14833 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14834 when reg->group is empty and reggroup is not.
14835
1009d92f
TT
148362020-03-03 Tom Tromey <tromey@adacore.com>
14837
14838 * dwarf2/frame.c (struct dwarf2_frame_cache)
14839 <checked_tailcall_bottom, entry_cfa_sp_offset,
14840 entry_cfa_sp_offset_p>: Remove members.
14841 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14842 (dwarf2_frame_prev_register): Don't call
14843 dwarf2_tailcall_sniffer_first.
14844 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14845 * frame-unwind.c (add_unwinder): New fuction.
14846 (frame_unwind_init): Use it. Add tailcall unwinder.
14847
5e5d66b6
AB
148482020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14849 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14850
14851 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14852 value should be printed as true.
14853
584cf46d
HD
148542020-03-03 Hannes Domani <ssbssa@yahoo.de>
14855
14856 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14857 (windows_init_abi): Set and use windows_so_ops.
14858
7b973adc
SDJ
148592020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14860
14861 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14862 when verifying if dealing with a convenience variable.
14863
bb7b70ab
LM
148642020-03-03 Luis Machado <luis.machado@linaro.org>
14865
14866 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14867
9822cb57
SM
148682020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14869
14870 * infrun.c (gdbarch_supports_displaced_stepping): New.
14871 (use_displaced_stepping): Break up conditions in smaller pieces.
14872 Use gdbarch_supports_displaced_stepping.
14873 (displaced_step_prepare_throw): Use
14874 gdbarch_supports_displaced_stepping.
14875
63e163f2
AB
148762020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14877
14878 * NEWS: Mention new behaviour of the history filename.
14879 * top.c (write_history_p): Add comment.
14880 (show_write_history_p): Add header comment, give a different
14881 message when history writing is on, but the history filename is
14882 empty.
14883 (history_filename): Add comment.
14884 (history_filename_empty): New function.
14885 (show_history_filename): Add header comment, give a different
14886 message when the filename is empty.
14887 (init_history): Compare history_filename against nullptr, and only
14888 read history if the filename is not empty.
14889 (set_history_filename): Add header comment, and only make
14890 non-empty filenames absolute.
14891 (init_main): Make the filename argument to 'set history filename'
14892 optional.
14893
81b86b97
CB
148942020-03-02 Christian Biesinger <cbiesinger@google.com>
14895
14896 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14897 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14898 (fetch_fp_register): Update.
14899 (fetch_fp_regs): Update.
14900 (store_fp_register): Update.
14901 (store_fp_regs): Update.
14902 (arm_netbsd_nat_target::read_description): New function.
14903 (fetch_elfcore_registers): Update.
14904
24ed6739
AB
149052020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14906
14907 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14908 general_thread if the stop reply is missing a thread-id.
14909 (remote_target::process_stop_reply): Use the first non-exited
14910 thread if the target didn't pass a thread-id.
14911 * infrun.c (do_target_wait): Move call to
14912 switch_to_inferior_no_thread to ....
14913 (do_target_wait_1): ... here.
14914
a84bb2a0
JT
149152020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14916
14917 * debuginfod-support.c: Include defs.h first.
14918
658dadf0
TV
149192020-02-28 Tom de Vries <tdevries@suse.de>
14920
14921 * symfile.c (set_initial_language): Use default language for lookup.
14922
4ebe4877
SM
149232020-02-28 Simon Marchi <simon.marchi@efficios.com>
14924
14925 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14926 reader variable, pass `this` to read_cutu_die_from_dwo.
14927
e5da1139
AM
149282020-02-27 Aaron Merey <amerey@redhat.com>
14929
14930 * source.c (open_source_file): Check for nullptr when computing
14931 srcpath.
14932
317f7127
TT
149332020-02-27 Tom Tromey <tromey@adacore.com>
14934
14935 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14936 member.
14937 (dwarf2_add_field): Don't update nfields.
14938 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14939
3104d9ee
AB
149402020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14941
14942 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14943 abs.
14944
b83470bf
TT
149452020-02-26 Tom Tromey <tom@tromey.com>
14946
14947 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14948 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14949 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14950 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14951 per_cu_data.
14952
edfe0a0c
TT
149532020-02-26 Tom Tromey <tom@tromey.com>
14954
14955 * dwarf2/index-write.c (psym_index_map): Change type.
14956 (add_address_entry_worker, write_one_signatured_type)
14957 (recursively_count_psymbols, recursively_write_psymbols)
14958 (class debug_names, psyms_seen_size, write_gdbindex)
14959 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14960
0d79cdc4
AM
149612020-02-26 Aaron Merey <amerey@redhat.com>
14962
14963 * Makefile.in: Handle optional debuginfod support.
14964 * NEWS: Update.
14965 * README: Add --with-debuginfod summary.
14966 * config.in: Regenerate.
14967 * configure: Regenerate.
14968 * configure.ac: Handle optional debuginfod support.
14969 * debuginfod-support.c: debuginfod helper functions.
14970 * debuginfod-support.h: Ditto.
14971 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14972 summary.
14973 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14974 when a dwz file cannot be found.
14975 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14976 debuginfo file cannot be found.
14977 * source.c (open_source_file): Query debuginfod servers when a
14978 source file cannot be found.
14979 * top.c (print_gdb_configuration): Include
14980 --{with,without}-debuginfod in the output.
14981
b65ce565
JG
149822020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14983
14984 * thread.c (thr_try_catch_cmd): Print thread name.
14985
d4c9a4f8
SM
149862020-02-26 Simon Marchi <simon.marchi@efficios.com>
14987
14988 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14989 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14990 dwarf2_fetch_die_type_sect_off): Move to...
14991 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14992 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14993 dwarf2_fetch_die_type_sect_off): ... here.
14994 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14995 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14996 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14997
0dce4280
TV
149982020-02-26 Tom de Vries <tdevries@suse.de>
14999
15000 PR gdb/25603
15001 * symfile.c (set_initial_language): Exit-early if
15002 language_mode == language_mode_manual.
15003
450a1bfc
SM
150042020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
15005
15006 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
15007 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
15008 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
15009
9e80cfa1
AB
150102020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
15011
15012 * gdbtypes.c (create_array_type_with_stride): Handle negative
15013 array strides.
15014 * valarith.c (value_subscripted_rvalue): Likewise.
15015
09624f1f
LM
150162020-02-25 Luis Machado <luis.machado@linaro.org>
15017
15018 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
15019
8cb5117c
SM
150202020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
15021
15022 * loc.h (dwarf2_get_die_type): Move to...
15023 * read.h (dwarf2_get_die_type): ... here.
15024 * read.c (dwarf2_get_die_type): Move doc to header.
15025
c325c44e
JB
150262020-02-25 Joel Brobecker <brobecker@adacore.com>
15027
15028 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
15029 'gnulib/Makefile.in' to the list.
15030
4ac93832
TT
150312020-02-24 Tom Tromey <tom@tromey.com>
15032
15033 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
15034 Remove.
15035 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
15036 XOBNEWVEC.
15037
197400e8
TT
150382020-02-24 Tom Tromey <tom@tromey.com>
15039
15040 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
15041 New method.
15042 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
15043 (dw2_do_instantiate_symtab, dw2_get_file_names)
15044 (build_type_psymtab_dependencies, load_full_type_unit): Update.
15045
76935768
TT
150462020-02-24 Tom Tromey <tom@tromey.com>
15047
15048 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
15049 make_scoped_restore.
15050 (dwarf2_psymtab::read_symtab): Don't clear
15051 reading_partial_symbols.
15052
a88ef40d
TV
150532020-02-24 Tom de Vries <tdevries@suse.de>
15054
15055 PR gdb/25592
15056 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
15057
c9af6521
TV
150582020-02-24 Tom de Vries <tdevries@suse.de>
15059
15060 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
15061 commands layout next/prev/regs.
15062
5707a07a
TT
150632020-02-22 Tom Tromey <tom@tromey.com>
15064
15065 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
15066 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
15067
3b0fb49e
TT
150682020-02-22 Tom Tromey <tom@tromey.com>
15069
15070 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
15071
283be8bf
TT
150722020-02-22 Tom Tromey <tom@tromey.com>
15073
15074 * tui/tui-win.c (_initialize_tui_win): Add usage text.
15075 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
15076 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
15077 * tui/tui.c (_initialize_tui): Add usage text.
15078
ca793b96
TT
150792020-02-22 Tom Tromey <tom@tromey.com>
15080
15081 * tui/tui-win.c (tui_set_focus_command)
15082 (tui_set_win_height_command): Use error_no_arg.
15083 (_initialize_tui_win): Update help text.
15084 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
15085
432b5c40
TT
150862020-02-22 Tom Tromey <tom@tromey.com>
15087
15088 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
15089 * tui/tui-disasm.h (struct tui_disasm_window)
15090 <display_start_addr>: Declare.
15091 * tui/tui-source.h (struct tui_source_window)
15092 <display_start_addr>: Declare.
15093 * tui/tui-winsource.h (struct tui_source_window_base)
15094 <show_source_line, display_start_addr>: New methods.
15095 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
15096 Rename and move to protected section.
15097 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
15098 (tui_source_window_base::do_erase_source_content): Update.
15099 (tui_source_window_base::show_source_line): Now a method.
15100 (tui_source_window_base::show_source_content)
15101 (tui_source_window_base::tui_source_window_base)
15102 (tui_source_window_base::rerender)
15103 (tui_source_window_base::refill)
15104 (tui_source_window_base::do_scroll_horizontal)
15105 (tui_source_window_base::set_is_exec_point_at)
15106 (tui_source_window_base::update_breakpoint_info)
15107 (tui_source_window_base::update_exec_info): Update.
15108 * tui/tui-source.c (tui_source_window::set_contents)
15109 (tui_source_window::showing_source_p)
15110 (tui_source_window::do_scroll_vertical)
15111 (tui_source_window::location_matches_p)
15112 (tui_source_window::line_is_displayed): Update.
15113 (tui_source_window::display_start_addr): New method.
15114 * tui/tui-disasm.c (tui_disasm_window::set_contents)
15115 (tui_disasm_window::do_scroll_vertical)
15116 (tui_disasm_window::location_matches_p): Update.
15117 (tui_disasm_window::display_start_addr): New method.
15118
01b1af32
TT
151192020-02-22 Tom Tromey <tom@tromey.com>
15120
15121 * NEWS: Add entry for gdb.register_window_type.
15122 * tui/tui-layout.h (window_factory): New typedef.
15123 (tui_register_window): Declare.
15124 * tui/tui-layout.c (saved_tui_windows): New global.
15125 (tui_apply_current_layout): Use it.
15126 (tui_register_window): New function.
15127 * python/python.c (do_start_initialization): Call
15128 gdbpy_initialize_tui.
15129 (python_GdbMethods): Add "register_window_type" function.
15130 * python/python-internal.h (gdbpy_register_tui_window)
15131 (gdbpy_initialize_tui): Declare.
15132 * python/py-tui.c: New file.
15133 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
15134
fc96d20b
TT
151352020-02-22 Tom Tromey <tom@tromey.com>
15136
15137 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
15138
935c78c0
TT
151392020-02-22 Tom Tromey <tom@tromey.com>
15140
15141 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
15142 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
15143 * tui/tui-data.c (tui_set_win_with_focus): Remove.
15144 (tui_set_win_focus_to): Move from tui-win.c.
15145
0240c8f1
TT
151462020-02-22 Tom Tromey <tom@tromey.com>
15147
15148 * tui/tui-layout.c (make_standard_window, get_locator_window): New
15149 functions.
15150 (known_window_types): New global.
15151 (tui_get_window_by_name): Reimplement.
15152 (initialize_known_windows): New function.
15153 (validate_window_name): Rewrite.
15154 (_initialize_tui_layout): Call initialize_known_windows.
15155
fdb01f0c
TT
151562020-02-22 Tom Tromey <tom@tromey.com>
15157
15158 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
15159 Remove constants.
15160 * tui/tui-winsource.h (struct tui_source_window_base)
15161 <tui_source_window_base>: Remove parameter.
15162 * tui/tui-winsource.c
15163 (tui_source_window_base::tui_source_window_base): Remove
15164 parameter.
15165 (tui_source_window_base::refill): Update.
15166 * tui/tui-stack.h (struct tui_locator_window)
15167 <tui_locator_window>: Update.
15168 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
15169 Default the constructor.
15170 * tui/tui-regs.h (struct tui_data_item_window)
15171 <tui_data_item_window>: Default the constructor.
15172 (struct tui_data_window) <tui_data_window>: Likewise.
15173 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
15174 Default the constructor.
15175 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
15176 Default the constructor.
15177 <type>: Remove.
15178 (struct tui_win_info) <tui_win_info>: Default the constructor.
15179 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
15180 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
15181 Default the constructor.
15182
865a5aec
TT
151832020-02-22 Tom Tromey <tom@tromey.com>
15184
15185 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
15186 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
15187 * tui/tui-win.c (tui_resize_all): Don't call
15188 tui_delete_invisible_windows.
15189 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
15190 done.
15191 (tui_set_layout): Update.
15192 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
15193 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
15194 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
15195
e098d18c
TT
151962020-02-22 Tom Tromey <tom@tromey.com>
15197
15198 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
15199 correctly.
15200
eb9c8874
TT
152012020-02-22 Tom Tromey <tom@tromey.com>
15202
15203 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
15204
7eed1a8e
TT
152052020-02-22 Tom Tromey <tom@tromey.com>
15206
15207 * tui/tui-winsource.h (struct tui_source_window_iterator)
15208 <inner_iterator>: New etytypedef.
15209 <tui_source_window_iterator>: Take "end" parameter.
15210 <tui_source_window_iterator>: Take iterator.
15211 <operator*, advance>: Update.
15212 <m_iter>: Change type.
15213 <m_end>: New field.
15214 (struct tui_source_windows) <begin, end>: Update.
15215 * tui/tui-layout.c (tui_windows): New global.
15216 (tui_apply_current_layout): Clear tui_windows.
15217 (tui_layout_window::apply): Update tui_windows.
15218 * tui/tui-data.h (tui_windows): Declare.
15219 (all_tui_windows): Now inline function.
15220 (class tui_window_iterator, struct all_tui_windows): Remove.
15221
7c043ba6
TT
152222020-02-22 Tom Tromey <tom@tromey.com>
15223
15224 PR tui/17850:
15225 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
15226 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
15227 "height" argument.
15228 (class tui_layout_window) <get_sizes>: Likewise.
15229 (class tui_layout_split) <tui_layout_split>: Add "vertical"
15230 argument.
15231 <get_sizes>: Add "height" argument.
15232 <m_vertical>: New field.
15233 * tui/tui-layout.c (tui_layout_split::clone): Update.
15234 (tui_layout_split::get_sizes): Add "height" argument.
15235 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
15236 (tui_new_layout_command): Parse "-horizontal".
15237 (_initialize_tui_layout): Update help string.
15238 (tui_layout_split::specification): Add "-horizontal" when needed.
15239 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
15240 argument.
15241 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
15242 New methods.
15243
6bc56648
TT
152442020-02-22 Tom Tromey <tom@tromey.com>
15245
15246 * tui/tui-layout.h (enum tui_adjust_result): New.
15247 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
15248 (class tui_layout_window) <adjust_size>: Return
15249 tui_adjust_result. Rewrite.
15250 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
15251 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
15252
c22fef7e
TT
152532020-02-22 Tom Tromey <tom@tromey.com>
15254
15255 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
15256 parameter and return types.
15257 (class tui_layout_base) <specification>: Add "depth".
15258 (class tui_layout_window) <specification>: Add "depth".
15259 (class tui_layout_split) <specification>: Add "depth".
15260 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
15261 and return types.
15262 (tui_new_layout_command): Parse sub-layouts.
15263 (_initialize_tui_layout): Update help string.
15264 (tui_layout_window::specification): Add "depth".
15265 (add_layout_command): Update.
15266
ee325b61
TT
152672020-02-22 Tom Tromey <tom@tromey.com>
15268
15269 * NEWS: Add "tui new-layout" item.
15270 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
15271 Add new-layout command to help text.
15272 (validate_window_name): New function.
15273 (tui_new_layout_command): New function.
15274 (_initialize_tui_layout): Register "new-layout".
15275 (tui_layout_window::specification): New method.
15276 (tui_layout_window::specification): New method.
15277 * tui/tui-layout.h (class tui_layout_base) <specification>: New
15278 method.
15279 (class tui_layout_window) <specification>: New method.
15280 (class tui_layout_split) <specification>: New method.
15281
416eb92d
TT
152822020-02-22 Tom Tromey <tom@tromey.com>
15283
15284 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
15285 * tui/tui-win.c (window_name_completer): Update comment.
15286 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
15287 Declare method.
15288 (class tui_layout_window) <replace_window>: Likewise.
15289 (class tui_layout_split) <replace_window>: Likewise.
15290 (tui_set_layout): Don't declare.
15291 (tui_set_initial_layout): Declare function.
15292 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
15293 (asm_regs_layout): New globals.
15294 (tui_current_layout, show_layout): Remove.
15295 (tui_set_layout, tui_add_win_to_layout): Rewrite.
15296 (find_layout, tui_apply_layout): New function.
15297 (layout_completer): Remove.
15298 (tui_next_layout): Reimplement.
15299 (tui_next_layout_command): New function.
15300 (tui_set_initial_layout, tui_prev_layout_command): New functions.
15301 (tui_regs_layout): Reimplement.
15302 (tui_regs_layout_command): New function.
15303 (extract_display_start_addr): Rewrite.
15304 (next_layout, prev_layout): Remove.
15305 (tui_layout_window::replace_window): New method.
15306 (tui_layout_split::replace_window): New method.
15307 (destroy_layout): New function.
15308 (layout_list): New global.
15309 (add_layout_command): New function.
15310 (initialize_layouts): Update.
15311 (tui_layout_command): New function.
15312 (_initialize_tui_layout): Install "layout" commands.
15313 * tui/tui-data.h (enum tui_layout_type): Remove.
15314 (tui_current_layout): Don't declare.
15315
0dbc2fc7
TT
153162020-02-22 Tom Tromey <tom@tromey.com>
15317
15318 * tui/tui-regs.c (tui_reg_layout): Remove.
15319 (tui_reg_command): Use tui_regs_layout.
15320 * tui/tui-layout.h (tui_reg_command): Declare.
15321 * tui/tui-layout.c (tui_reg_command): New function.
15322
5afe342e
TT
153232020-02-22 Tom Tromey <tom@tromey.com>
15324
15325 * tui/tui.c (tui_rl_delete_other_windows): Call
15326 tui_remove_some_windows.
15327 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
15328 Declare method.
15329 (class tui_layout_window) <remove_windows>: New method.
15330 (class tui_layout_split) <remove_windows>: Declare.
15331 (tui_remove_some_windows): Declare.
15332 * tui/tui-layout.c (tui_remove_some_windows): New function.
15333 (tui_layout_split::remove_windows): New method.
15334
427326a8
TT
153352020-02-22 Tom Tromey <tom@tromey.com>
15336
15337 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
15338 * tui/tui-layout.h (tui_next_layout): Declare.
15339 * tui/tui-layout.c (tui_next_layout): New function.
15340
3fe12b6d
TT
153412020-02-22 Tom Tromey <tom@tromey.com>
15342
15343 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
15344 correct coordinates.
15345
59b8b5d2
TT
153462020-02-22 Tom Tromey <tom@tromey.com>
15347
15348 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
15349 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
15350 DATA_WIN case.
15351
2a3d458b
TT
153522020-02-22 Tom Tromey <tom@tromey.com>
15353
15354 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
15355 TUI_DISASM_WIN, not tui_win_list.
15356
3f0cbb04
TT
153572020-02-22 Tom Tromey <tom@tromey.com>
15358
15359 * valprint.c (generic_val_print_enum_1)
15360 (val_print_type_code_flags): Style member names.
15361 * rust-lang.c (val_print_struct, rust_print_enum)
15362 (rust_print_struct_def, rust_internal_print_type): Style member
15363 names.
15364 * p-valprint.c (pascal_object_print_value_fields): Style member
15365 names. Only call fprintf_symbol_filtered for static members.
15366 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
15367 * f-valprint.c (f_val_print): Style member names.
15368 * f-typeprint.c (f_type_print_base): Style member names.
15369 * cp-valprint.c (cp_print_value_fields): Style member names. Only
15370 call fprintf_symbol_filtered for static members.
15371 (cp_print_class_member): Style member names.
15372 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
15373 member names.
15374 * ada-valprint.c (ada_print_scalar): Style enum names.
15375 (ada_val_print_enum): Likewise.
15376 * ada-typeprint.c (print_enum_type): Style enum names.
15377
d4d947ae
TT
153782020-02-21 Tom Tromey <tom@tromey.com>
15379
15380 * psympriv.h (struct partial_symtab): Update comment.
15381
e94e944b
TT
153822020-02-21 Tom Tromey <tromey@adacore.com>
15383
15384 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
15385 type is CORE_ADDR.
15386
1eb73179
TV
153872020-02-21 Tom de Vries <tdevries@suse.de>
15388
15389 PR gdb/25534
15390 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
15391 if dependencies[i]->user != NULL.
15392
4f180d53
AT
153932020-02-21 Ali Tamur <tamur@google.com>
15394
15395 * dwarf2/read.c (dwarf2_name): Add null check.
15396
22b6cd70
TT
153972020-02-20 Tom Tromey <tom@tromey.com>
15398
15399 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
15400 ">=", in binary search.
15401 (dwarf2_find_containing_comp_unit): New overload.
15402 (run_test): New self-test.
15403 (_initialize_dwarf2_read): Register new test.
15404
bd0cf5a6
NC
154052020-02-20 Nelson Chu <nelson.chu@sifive.com>
15406
15407 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
15408 * riscv-tdep.h: Likewise.
15409 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
15410 rv32-only CSR.
15411 * features/riscv/64bit-csr.xml: Regenerated.
15412
3f702acd
SDJ
154132020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15414 Tom Tromey <tom@tromey.com>
15415
15416 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
15417 of 'fputc_unfiltered'.
15418 (putchar_unfiltered): Call 'fputc_unfiltered'.
15419 (fputc_unfiltered): Call 'fputs_unfiltered'.
15420
d13c7322
AB
154212020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
15422
15423 * config.in: Regenerate.
15424 * configure: Regenerate.
15425 * configure.ac: Add --with-python-libdir option.
15426 * main.c: Use WITH_PYTHON_LIBDIR.
15427
869d8950
TT
154282020-02-19 Tom Tromey <tom@tromey.com>
15429
15430 * symtab.c (general_symbol_info::compute_and_set_names): Use
15431 obstack_strndup. Simplify call to symbol_set_demangled_name.
15432
298e9637
SM
154332020-02-19 Simon Marchi <simon.marchi@efficios.com>
15434
15435 * dwarf2/read.c (allocate_signatured_type_table,
15436 allocate_dwo_unit_table, allocate_type_unit_groups_table,
15437 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
15438 Remove objfile parameter, update all callers.
15439
08410482
DE
154402020-02-19 Doug Evans <dje@google.com>
15441
15442 PR rust/25535
15443 * rust-lang.c (rust_print_enum): Apply embedded_offset to
15444 rust_enum_variant calculation.
15445
dfdeeca1
TT
154462020-02-19 Tom Tromey <tromey@adacore.com>
15447
15448 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
15449
2ef5453b
TT
154502020-02-19 Tom Tromey <tromey@adacore.com>
15451
15452 * ada-lang.c (cache_symbol): Use obstack_strdup.
15453
9f1528a1
AB
154542020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15455
15456 * configure: Regenerate.
15457
d3c22fa8
TT
154582020-02-19 Tom Tromey <tromey@adacore.com>
15459
15460 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
15461 NULL check.
15462
bf84f706
MR
154632020-02-19 Maciej W. Rozycki <macro@wdc.com>
15464
15465 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
15466
d1c9b20f
AB
154672020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15468
15469 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
15470 if GDBSERVER is not defined.
15471 (riscv_tdesc_cache): Likewise, also store const target_desc.
15472 (STATIC_IN_GDB): Define.
15473 (riscv_create_target_description): Update declaration with
15474 STATIC_IN_GDB.
15475 (riscv_lookup_target_description): New function, only define if
15476 GDBSERVER is not defined.
15477 * arch/riscv.h (riscv_create_target_description): Declare only
15478 when GDBSERVER is defined.
15479 (riscv_lookup_target_description): New declaration when GDBSERVER
15480 is not defined.
15481 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
15482 (riscv_linux_read_features): ...this, and return
15483 riscv_gdbarch_features instead of target_desc.
15484 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
15485 (riscv_linux_read_description): Rename to...
15486 (riscv_linux_read_features): ...this.
15487 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15488 Update to use riscv_gdbarch_features and
15489 riscv_lookup_target_description.
15490 * riscv-tdep.c (riscv_find_default_target_description): Use
15491 riscv_lookup_target_description instead of
15492 riscv_create_target_description.
15493
373d7ac0
SM
154942020-02-18 Simon Marchi <simon.marchi@efficios.com>
15495
15496 * valprint.c (generic_val_print_enum_1): When printing a flag
15497 enum with value 0 and there is no enumerator with value 0, print
15498 just "0" instead of "(unknown: 0x0)".
15499
b29a2df0
SM
155002020-02-18 Simon Marchi <simon.marchi@efficios.com>
15501
15502 * valprint.c (generic_val_print_enum_1): Print unknown part of
15503 flag enum in hex.
15504
6740f0cc
SM
155052020-02-18 Simon Marchi <simon.marchi@efficios.com>
15506
15507 * dwarf2/read.c (update_enumeration_type_from_children): Allow
15508 flag enums to contain duplicate enumerators.
15509 * valprint.c (generic_val_print_enum_1): Update comment.
15510
edd45eb0
SM
155112020-02-18 Simon Marchi <simon.marchi@efficios.com>
15512
15513 * dwarf2/read.c: Include "count-one-bits.h".
15514 (update_enumeration_type_from_children): If an enumerator has
15515 multiple bits set, don't treat the enumeration as a "flag enum".
15516 * valprint.c (generic_val_print_enum_1): Assert that enumerators
15517 of flag enums have 0 or 1 bit set.
15518
6d0cf446
BE
155192020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
15520
15521 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
15522 conversion.
15523 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15524 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15525 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15526 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15527 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15528
7001c1b7
SM
155292020-02-18 Simon Marchi <simon.marchi@efficios.com>
15530
15531 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
15532
fdb61c6c
SM
155332020-02-14 Simon Marchi <simon.marchi@efficios.com>
15534
15535 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
15536 displaced_step_closure_up.
15537 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15538 (struct displaced_step_closure_up):
15539 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15540 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15541 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
15542 Likewise.
15543 * gdbarch.sh (displaced_step_copy_insn): Likewise.
15544 * gdbarch.c, gdbarch.h: Re-generate.
15545 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
15546 displaced_step_closure_up.
15547 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15548 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15549 * infrun.h (displaced_step_closure_up): New type alias.
15550 (struct displaced_step_inferior_state) <step_closure>: Change
15551 type to displaced_step_closure_up.
15552 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
15553 displaced_step_closure_up.
15554 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15555
a4a38eb4
TT
155562020-02-14 Tom Tromey <tom@tromey.com>
15557
15558 * minidebug.c (gnu_debug_key): New global.
15559 (find_separate_debug_file_in_section): Use it.
15560
e8217e61
SM
155612020-02-14 Simon Marchi <simon.marchi@efficios.com>
15562
15563 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
15564 std::unique_ptr.
15565 * gdbarch.c: Re-generate.
15566 * gdbarch.h: Re-generate.
15567 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15568 change.
15569 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15570 type to std::unique_ptr.
15571 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15572 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15573 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15574 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15575 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15576 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15577 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15578 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15579 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15580
d8d83535
SM
155812020-02-14 Simon Marchi <simon.marchi@efficios.com>
15582
15583 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15584 std::unique_ptr.
15585 (displaced_step_clear): Rename to...
15586 (displaced_step_reset): ... this. Just call displaced->reset ().
15587 (displaced_step_clear_cleanup): Rename to...
15588 (displaced_step_reset_cleanup): ... this.
15589 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15590 (displaced_step_fixup): Likewise.
15591 (resume_1): Likewise.
15592 (handle_inferior_event): Restore child's memory before calling
15593 displaced_step_fixup on the parent.
15594 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15595 to std::unique_ptr.
15596 <step_closure>: Change type to std::unique_ptr.
15597
5f661e03
SM
155982020-02-14 Simon Marchi <simon.marchi@efficios.com>
15599
15600 * arm-tdep.c: Include count-one-bits.h.
15601 (cleanup_block_store_pc): Use count_one_bits.
15602 (cleanup_block_load_pc): Use count_one_bits.
15603 (arm_copy_block_xfer): Use count_one_bits.
15604 (thumb2_copy_block_xfer): Use count_one_bits.
15605 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15606 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15607 (thumb_get_next_pcs_raw): Use count_one_bits.
15608 (arm_get_next_pcs_raw): Use count_one_bits_l.
15609 * arch/arm.c (bitcount): Remove.
15610 * arch/arm.h (bitcount): Remove.
15611
8084e579
TT
156122020-02-14 Tom Tromey <tromey@adacore.com>
15613
15614 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15615 Update.
15616 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15617 * dwarf2/loc.c (call_site_find_chain_1): Return
15618 unique_xmalloc_ptr.
15619 (call_site_find_chain): Likewise.
15620
258bf0ee
RB
156212020-02-14 Richard Biener <rguenther@suse.de>
15622
15623 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15624 on expression with division operators.
15625
f98a8458
AKS
156262020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15627
15628 * MAINTAINERS (Write After Approval): Adding myself.
15629
d1437c0e
TT
156302020-02-12 Tom Tromey <tom@tromey.com>
15631
15632 * event-loop.c (event_data, gdb_event, event_handler_func):
15633 Remove.
15634
3d4560f7
TT
156352020-02-12 Tom Tromey <tom@tromey.com>
15636
15637 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15638 (dwarf2_frame_objfile_data): Add comment.
15639 (find_comp_unit, set_comp_unit): New functions.
15640 (dwarf2_frame_find_fde): Use find_comp_unit.
15641 (dwarf2_build_frame_info): Use set_comp_unit.
15642
21982304
TT
156432020-02-12 Tom Tromey <tom@tromey.com>
15644
15645 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15646 (comp_unit): Don't initialize objfile.
15647 (execute_cfa_program): Add text_offset parameter.
15648 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15649 (dwarf2_frame_cache): Update.
15650 (dwarf2_build_frame_info): Don't set "objfile" member.
15651
4debb237
TT
156522020-02-12 Tom Tromey <tom@tromey.com>
15653
15654 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15655 (decode_frame_entry): Likewise.
15656 (dwarf2_build_frame_info): Update.
15657
0d404d44
TT
156582020-02-12 Tom Tromey <tom@tromey.com>
15659
15660 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15661 (decode_frame_entry_1): Use the comp_unit obstack.
15662
a7a3ae5c
TT
156632020-02-12 Tom Tromey <tom@tromey.com>
15664
15665 * dwarf2/frame.c (struct comp_unit): Add initializers and
15666 constructor.
15667 (dwarf2_frame_objfile_data): Store a comp_unit.
15668 (dwarf2_frame_find_fde): Update.
15669 (dwarf2_build_frame_info): Use "new".
15670
a9d65418
TT
156712020-02-12 Tom Tromey <tom@tromey.com>
15672
15673 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15674 (dwarf2_fde_table): Typedef for std::vector.
15675 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15676 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15677 (decode_frame_entry): Update.
15678 (dwarf2_build_frame_info): Use "new".
15679
7559c217
CB
156802020-02-12 Christian Biesinger <cbiesinger@google.com>
15681
15682 * arm-tdep.c (arm_gdbarch_init): Update.
15683 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15684 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15685 have_neon, is_m>: Change to bool.
15686
aeefc73c
CB
156872020-02-12 Christian Biesinger <cbiesinger@google.com>
15688
15689 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15690
d27b8e5f
TT
156912020-02-12 Tom Tromey <tom@tromey.com>
15692
15693 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15694
cd5900f3
HD
156952020-02-12 Hannes Domani <ssbssa@yahoo.de>
15696
15697 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15698 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15699
f056b22b
TT
157002020-02-11 Tom Tromey <tom@tromey.com>
15701
15702 * psymtab.h: Update comment.
15703
f92ff6b5
TT
157042020-02-11 Tom Tromey <tom@tromey.com>
15705
15706 * gdb_obstack.h (struct auto_obstack): Use
15707 DISABLE_COPY_AND_ASSIGN.
15708
3fd6912b
TT
157092020-02-11 Tom Tromey <tom@tromey.com>
15710
15711 * dwarf2/frame.h (struct objfile): Don't forward declare.
15712
69ed9b74
CB
157132020-02-11 Christian Biesinger <cbiesinger@google.com>
15714
15715 * cris-tdep.c (cris_supply_gregset): Change signature to match
15716 what struct regset expects.
15717 (cris_regset): New struct.
15718 (fetch_core_registers): Remove.
15719 (cris_iterate_over_regset_sections): New function.
15720 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15721 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15722
bda874f6
CB
157232020-02-11 Christian Biesinger <cbiesinger@google.com>
15724
15725 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15726 registers.
15727
754e1564
CB
157282020-02-11 Christian Biesinger <cbiesinger@google.com>
15729
15730 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15731
8ddd8e0e
SM
157322020-02-11 Simon Marchi <simon.marchi@efficios.com>
15733
15734 * configure: Re-generate.
15735
898e7f60
SM
157362020-02-11 Simon Marchi <simon.marchi@efficios.com>
15737
15738 * configure: Re-generate.
15739
58df732b
SM
157402020-02-11 Simon Marchi <simon.marchi@efficios.com>
15741
15742 * acinclude: Update warning.m4 path.
15743 * warning.m4: Move to gdbsupport.
15744
da5bd37e
TT
157452020-02-11 Tom Tromey <tromey@adacore.com>
15746
15747 * remote.c (remote_console_output): Update.
15748 * printcmd.c (printf_command): Update.
15749 * event-loop.c (gdb_wait_for_event): Update.
15750 * linux-nat.c (sigchld_handler): Update.
15751 * remote-sim.c (gdb_os_write_stdout): Update.
15752 (gdb_os_flush_stdout): Update.
15753 (gdb_os_flush_stderr): Update.
15754 (gdb_os_write_stderr): Update.
15755 * exceptions.c (print_exception): Update.
15756 * remote-fileio.c (remote_fileio_func_read): Update.
15757 (remote_fileio_func_write): Update.
15758 * tui/tui.c (tui_enable): Update.
15759 * tui/tui-interp.c (tui_interp::init): Update.
15760 * utils.c (init_page_info): Update.
15761 (putchar_unfiltered, fputc_unfiltered): Update.
15762 (gdb_flush): Update.
15763 (emit_style_escape): Update.
15764 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15765 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15766 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15767 (stderr_file::write): Update.
15768 (stderr_file::puts): Update.
15769 * ui-file.h (ui_file_isatty, ui_file_write)
15770 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15771 (ui_file_puts): Don't declare.
15772
85f0dd3c
TV
157732020-02-10 Tom de Vries <tdevries@suse.de>
15774
15775 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15776 sentinel to char *.
15777
2e927613
TV
157782020-02-09 Tom de Vries <tdevries@suse.de>
15779
15780 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15781 filename if it matches "<artificial>".
15782
6bafc845
HD
157832020-02-09 Hannes Domani <ssbssa@yahoo.de>
15784
15785 * windows-tdep.c (struct enum_value_name): New struct.
15786 (create_enum): New function.
15787 (windows_get_siginfo_type): Create and use enum types.
15788
7928d571
HD
157892020-02-09 Hannes Domani <ssbssa@yahoo.de>
15790
15791 * NEWS: Mention $_siginfo support for Windows.
15792 * windows-nat.c (handle_exception): Set siginfo_er.
15793 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15794 (windows_xfer_siginfo): New function.
15795 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15796 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15797 (init_windows_gdbarch_data): New function.
15798 (get_windows_gdbarch_data): New function.
15799 (windows_get_siginfo_type): New function.
15800 (windows_init_abi): Register windows_get_siginfo_type.
15801 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15802
6751ebae
TT
158032020-02-08 Tom Tromey <tom@tromey.com>
15804
15805 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15806 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15807 <keep>: Declare method.
15808 <m_keep>: Remove member.
15809 <~cutu_reader>: Remove.
15810 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15811 (cutu_reader::cutu_reader): Update.
15812 (cutu_reader::keep): Rename from ~cutu_reader.
15813 (process_psymtab_comp_unit, build_type_psymtabs_1)
15814 (process_skeletonless_type_unit, load_partial_comp_unit)
15815 (load_full_comp_unit, dwarf2_read_addr_index)
15816 (read_signatured_type): Update.
15817
135f5437
TT
158182020-02-08 Tom Tromey <tom@tromey.com>
15819
15820 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15821 "want_partial_unit" parameter.
15822 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15823 Inline check for DW_TAG_partial_unit.
15824 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15825
9f66ff1c
TT
158262020-02-08 Tom Tromey <tom@tromey.com>
15827
15828 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15829 read.c.
15830 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15831 read.c.
15832
c8a7a66f
TT
158332020-02-08 Tom Tromey <tom@tromey.com>
15834
15835 * dwarf2/read.c (read_address): Move to comp-unit.c.
15836 (dwarf2_rnglists_process, dwarf2_ranges_process)
15837 (read_attribute_value, dwarf_decode_lines_1)
15838 (var_decode_location, decode_locdesc): Update.
15839 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15840 read.c. Remove "cu" parameter.
15841 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15842 method.
15843
8266302d
TT
158442020-02-08 Tom Tromey <tom@tromey.com>
15845
15846 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15847 (read_indirect_line_string): Update.
15848 * dwarf2/comp-unit.c (read_offset): Remove.
15849 (read_comp_unit_head): Update.
15850 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15851 method.
15852 (read_offset): Don't declare.
15853
4057dfde
TT
158542020-02-08 Tom Tromey <tom@tromey.com>
15855
15856 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15857 * dwarf2/read.c (struct comp_unit_head): Move to
15858 dwarf2/comp-unit.h.
15859 (enum class rcuh_kind): Move to comp-unit.h.
15860 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15861 (read_comp_unit_head, error_check_comp_unit_head)
15862 (read_and_check_comp_unit_head): Move to comp-unit.c.
15863 (read_offset, dwarf_unit_type_name): Likewise.
15864 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15865 (cutu_reader::cutu_reader, read_call_site_scope)
15866 (find_partial_die, follow_die_offset): Update.
15867 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15868
24aa364d
TT
158692020-02-08 Tom Tromey <tom@tromey.com>
15870
15871 * dwarf2/read.c (read_offset_1): Move to leb.c.
15872 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15873 (dwarf_decode_macro_bytes): Update.
15874 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15875 * dwarf2/leb.h (read_offset): Declare.
15876
2c7d5afc
TT
158772020-02-08 Tom Tromey <tom@tromey.com>
15878
15879 * dwarf2/read.c (dwarf2_section_size): Remove.
15880 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15881 Update.
15882 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15883
4075cb26
TT
158842020-02-08 Tom Tromey <tom@tromey.com>
15885
15886 * dwarf2/read.c (read_initial_length): Move to leb.c.
15887 * dwarf2/leb.h (read_initial_length): Declare.
15888 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15889 handle_nonstd parameter.
15890 * dwarf2/frame.c (read_initial_length): Remove.
15891 (decode_frame_entry_1): Update.
15892
09ba997f
TT
158932020-02-08 Tom Tromey <tom@tromey.com>
15894
15895 * dwarf2/loc.c (dwarf2_find_location_expression)
15896 (dwarf_evaluate_loc_desc::get_tls_address)
15897 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15898 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15899 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15900 (dwarf2_compile_property_to_c)
15901 (dwarf2_loc_desc_get_symbol_read_needs)
15902 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15903 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15904 (loclist_describe_location, loclist_tracepoint_var_ref)
15905 (loclist_generate_c_location): Update.
15906 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15907 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15908 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15909 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15910 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15911 (dwarf2_per_cu_data::addr_size)
15912 (dwarf2_per_cu_data::ref_addr_size)
15913 (dwarf2_per_cu_data::text_offset)
15914 (dwarf2_per_cu_data::addr_type): Now methods.
15915 (per_cu_header_read_in): Make per_cu "const".
15916 (dwarf2_version): Remove.
15917 (dwarf2_per_cu_data::int_type): Now a method.
15918 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15919 (set_die_type, read_array_type, read_subrange_index_type)
15920 (read_tag_string_type, read_subrange_type): Update.
15921 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15922 offset_size, ref_addr_size, text_offset, addr_type, version,
15923 objfile, int_type, addr_sized_int_type>: Declare methods.
15924
96c738c0
TT
159252020-02-08 Tom Tromey <tom@tromey.com>
15926
15927 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15928 Move earlier.
15929
8fdd972c
TT
159302020-02-08 Tom Tromey <tom@tromey.com>
15931
15932 * dwarf2/read.h (dwarf_line_debug): Declare.
15933 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15934 * dwarf2/read.c: Move line_header code to new files.
15935 (dwarf_line_debug): No longer static.
15936 * dwarf2/line-header.c: New file.
15937 * dwarf2/line-header.h: New file.
15938
03075812
TT
159392020-02-08 Tom Tromey <tom@tromey.com>
15940
15941 * dwarf2/read.c (struct line_header) <file_full_name,
15942 file_file_name>: Return unique_xmalloc_ptr.
15943 (line_header::file_file_name): Update.
15944 (line_header::file_full_name): Update.
15945 (dw2_get_file_names_reader): Update.
15946 (macro_start_file): Update.
15947
bb822404
TT
159482020-02-08 Tom Tromey <tom@tromey.com>
15949
15950 * dwarf2/read.c (struct line_header) <file_full_name,
15951 file_file_name>: Declare methods.
15952 (dw2_get_file_names_reader): Update.
15953 (file_file_name): Now a method.
15954 (file_full_name): Likewise.
15955 (macro_start_file): Update.
15956
009b64fc
TT
159572020-02-08 Tom Tromey <tom@tromey.com>
15958
15959 * dwarf2/read.c (dwarf_always_disassemble)
15960 (show_dwarf_always_disassemble): Move to loc.c.
15961 (_initialize_dwarf2_read): Move "always-disassemble" registration
15962 to loc.c.
15963 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15964 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15965 static.
15966 (show_dwarf_always_disassemble): Move from read.c.
15967 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15968
5895093f
TT
159692020-02-08 Tom Tromey <tom@tromey.com>
15970
15971 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15972 (create_quick_file_names_table): Return htab_up.
15973 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15974 Update.
15975 * dwarf2/read.h (struct dwarf2_per_objfile)
15976 <quick_file_names_table>: Now htab_up.
15977
b3b32279
TT
159782020-02-08 Tom Tromey <tom@tromey.com>
15979
15980 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15981
1d33d811
TT
159822020-02-08 Tom Tromey <tom@tromey.com>
15983
15984 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15985 Rewrite.
15986 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15987 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15988 (abbrev_table::abbrev_table): No longer inline.
15989 (ABBREV_HASH_SIZE): Remove.
15990 (abbrev_table::m_abbrevs): Now an htab_up.
15991
86de1d91
TT
159922020-02-08 Tom Tromey <tom@tromey.com>
15993
15994 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15995 (cutu_reader): Update.
15996 (build_type_psymtabs_1): Update.
15997 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15998 (abbrev_table::alloc_abbrev): Update.
15999 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
16000 (abbrev_table::read): New static method, renamed from
16001 abbrev_table_read_table.
16002 (abbrev_table::alloc_abbrev)
16003 (abbrev_table::add_abbrev): Now private.
16004 (abbrev_table::abbrev_table): Now private.
16005 (abbrev_table::m_abbrev_obstack): Now private. Rename.
16006
0335378b
TT
160072020-02-08 Tom Tromey <tom@tromey.com>
16008
16009 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
16010 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
16011 htab_up.
16012
48b490f2
TT
160132020-02-08 Tom Tromey <tom@tromey.com>
16014
16015 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
16016 htab_up.
16017 (lookup_dwo_unit_in_dwp): Update.
16018 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
16019 on obstack.
16020
bc68fb19
TT
160212020-02-08 Tom Tromey <tom@tromey.com>
16022
16023 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
16024 obstack.
16025
d15acc42
TT
160262020-02-08 Tom Tromey <tom@tromey.com>
16027
16028 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
16029 line_header_hash.
16030 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
16031 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
16032 Change type to htab_up.
16033
eaa5fa8b
TT
160342020-02-08 Tom Tromey <tom@tromey.com>
16035
16036 * dwarf2/read.c (allocate_type_unit_groups_table): Return
16037 htab_up. Don't allocate on obstack.
16038 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
16039 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
16040 Change type to htab_up.
16041
b0b6a987
TT
160422020-02-08 Tom Tromey <tom@tromey.com>
16043
16044 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
16045 Change type to htab_up.
16046 * dwarf2/read.c (create_signatured_type_table_from_index)
16047 (create_signatured_type_table_from_debug_names)
16048 (create_all_type_units, add_type_unit)
16049 (lookup_dwo_signatured_type, lookup_signatured_type)
16050 (process_skeletonless_type_unit): Update.
16051 (create_debug_type_hash_table, create_debug_types_hash_table):
16052 Change type of types_htab.
16053 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
16054 htab_up. Don't allocate on obstack.
16055 (create_cus_hash_table): Change type of cus_htab parameter.
16056 (struct dwo_file) <cus, tus>: Now htab_up.
16057 (lookup_dwo_signatured_type, lookup_dwo_cutu)
16058 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
16059 (queue_and_load_all_dwo_tus): Update.
16060 * dwarf2/index-write.c (write_gdbindex): Update.
16061 (write_debug_names): Update.
16062
39856def
TT
160632020-02-08 Tom Tromey <tom@tromey.com>
16064
16065 * dwarf2/read.h (struct dwarf2_queue_item): Move from
16066 dwarf2/read.c. Remove "next" member. Add constructor ntad
16067 destructor.
16068 (struct dwarf2_per_objfile) <queue>: New member.
16069 * dwarf2/read.c (struct dwarf2_queue_item): Move to
16070 dwarf2/read.h.
16071 (dwarf2_queue, dwarf2_queue_tail): Remove.
16072 (class dwarf2_queue_guard): Add parameter to constructor. Use
16073 DISABLE_COPY_AND_ASSIGN.
16074 <m_per_objfile>: New member.
16075 <~dwarf2_queue_guard>: Rewrite.
16076 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
16077 Update.
16078 (~dwarf2_queue_item): New.
16079
3e225074
TT
160802020-02-08 Tom Tromey <tom@tromey.com>
16081
16082 * dwarf2/read.c (struct die_info) <has_children>: New member.
16083 (dw2_get_file_names_reader): Remove has_children.
16084 (dw2_get_file_names): Update.
16085 (read_cutu_die_from_dwo): Remove has_children.
16086 (cutu_reader::init_tu_and_read_dwo_dies)
16087 (cutu_reader::cutu_reader): Update.
16088 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
16089 Remove has_children.
16090 (build_type_psymtabs_1, process_skeletonless_type_unit)
16091 (load_partial_comp_unit, load_full_comp_unit): Update.
16092 (create_dwo_cu_reader): Remove has_children.
16093 (create_cus_hash_table, read_die_and_children): Update.
16094 (read_full_die_1,read_full_die): Remove has_children.
16095 (read_signatured_type): Update.
16096 (class cutu_reader) <has_children>: Remove.
16097
82ca8957
TT
160982020-02-08 Tom Tromey <tom@tromey.com>
16099
16100 * dwarf2/expr.c: Rename from dwarf2expr.c.
16101 * dwarf2/expr.h: Rename from dwarf2expr.h.
16102 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
16103 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
16104 * dwarf2/frame.c: Rename from dwarf2-frame.c.
16105 * dwarf2/frame.h: Rename from dwarf2-frame.h.
16106 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
16107 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
16108 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
16109 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
16110 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
16111 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
16112 * dwarf2/loc.c: Rename from dwarf2loc.c.
16113 * dwarf2/loc.h: Rename from dwarf2loc.h.
16114 * dwarf2/read.c: Rename from dwarf2read.c.
16115 * dwarf2/read.h: Rename from dwarf2read.h.
16116 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
16117 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
16118 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
16119 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
16120 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
16121 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
16122 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
16123 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
16124 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
16125 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
16126 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
16127 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
16128 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
16129 Update.
16130 * Makefile.in (COMMON_SFILES): Update.
16131 (HFILES_NO_SRCDIR): Update.
16132
9e35d499
TT
161332020-02-08 Tom Tromey <tom@tromey.com>
16134
16135 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
16136 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
16137
1eba2311
TT
161382020-02-08 Tom Tromey <tom@tromey.com>
16139
16140 * dwarf2read.h (struct die_info): Don't declare.
16141
e41c2da2
TT
161422020-02-08 Tom Tromey <tom@tromey.com>
16143
16144 * dwarf2read.h (die_info_ptr): Remove typedef.
16145
4fc6c0d5
TT
161462020-02-08 Tom Tromey <tom@tromey.com>
16147
16148 * dwarf2read.c (read_call_site_scope)
16149 (handle_data_member_location, dwarf2_add_member_fn)
16150 (mark_common_block_symbol_computed, read_common_block)
16151 (attr_to_dynamic_prop, partial_die_info::read)
16152 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
16153 (dwarf2_symbol_mark_computed, set_die_type): Update.
16154 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
16155 method.
16156 (attr_form_is_block): Don't declare.
16157 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
16158
cd6c91b4
TT
161592020-02-08 Tom Tromey <tom@tromey.com>
16160
16161 * dwarf2read.c (dwarf2_find_base_address, )
16162 (read_call_site_scope, rust_containing_type)
16163 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
16164 (handle_data_member_location, dwarf2_add_member_fn)
16165 (get_alignment, read_structure_type, process_structure_scope)
16166 (mark_common_block_symbol_computed, read_common_block)
16167 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
16168 (partial_die_info::read, read_attribute_value, new_symbol)
16169 (lookup_die_type, dwarf2_get_ref_die_offset)
16170 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
16171 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
16172 (dwarf2_symbol_mark_computed): Update.
16173 * dwarf2/attribute.h (struct attribute) <value_as_address,
16174 form_is_section_offset, form_is_constant, form_is_ref>: Declare
16175 methods.
16176 (value_as_address, attr_form_is_section_offset)
16177 (attr_form_is_constant, attr_form_is_ref): Don't declare.
16178 * dwarf2/attribute.c (attribute::value_as_address)
16179 (attribute::form_is_section_offset, attribute::form_is_constant)
16180 (attribute::form_is_ref): Now methods.
16181
162dce55
TT
161822020-02-08 Tom Tromey <tom@tromey.com>
16183
16184 * dwarf2read.c (struct attribute, DW_STRING)
16185 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
16186 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
16187 (attr_form_is_block, attr_form_is_section_offset)
16188 (attr_form_is_constant, attr_form_is_ref): Move.
16189 * dwarf2/attribute.h: New file.
16190 * dwarf2/attribute.c: New file, from dwarf2read.c.
16191 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
16192
3054dd54
TT
161932020-02-08 Tom Tromey <tom@tromey.com>
16194
16195 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
16196 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
16197 Move.
16198 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
16199 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
16200 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
16201 abbrev.c.
16202 * dwarf2/abbrev.h: New file.
16203 * dwarf2/abbrev.c: New file, from dwarf2read.c.
16204 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
16205
96b79293
TT
162062020-02-08 Tom Tromey <tom@tromey.com>
16207
16208 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
16209 (dwarf2_section_size, dwarf2_get_section_info)
16210 (create_signatured_type_table_from_debug_names)
16211 (create_addrmap_from_aranges, read_debug_names_from_section)
16212 (get_gdb_index_contents_from_section, read_comp_unit_head)
16213 (error_check_comp_unit_head, read_abbrev_offset)
16214 (create_debug_type_hash_table, init_cu_die_reader)
16215 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
16216 (read_comp_units_from_section, create_cus_hash_table)
16217 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
16218 (create_dwp_v2_section, dwarf2_rnglists_process)
16219 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
16220 (abbrev_table_read_table, read_indirect_string_at_offset_from)
16221 (read_indirect_string_from_dwz, read_addr_index_1)
16222 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
16223 (dwarf_decode_macro_bytes, dwarf_decode_macros)
16224 (fill_in_loclist_baton): Update.
16225 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
16226 get_containing_section, get_bfd_owner, get_bfd_section,
16227 get_file_name, get_id, get_flags, empty, read>: Declare methods.
16228 (dwarf2_read_section, get_section_name, get_section_file_name)
16229 (get_containing_section, get_section_bfd_owner)
16230 (get_section_bfd_section, get_section_name, get_section_file_name)
16231 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
16232 declare.
16233 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
16234 (dwarf2_section_info::get_bfd_owner)
16235 (dwarf2_section_info::get_bfd_section)
16236 (dwarf2_section_info::get_name)
16237 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
16238 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
16239 (dwarf2_section_info::read): Now methods.
16240 * dwarf-index-write.c (class debug_names): Update.
16241
2c86cff9
TT
162422020-02-08 Tom Tromey <tom@tromey.com>
16243
16244 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
16245 Move to dwarf2/section.h.
16246 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
16247 (get_section_bfd_section, get_section_name)
16248 (get_section_file_name, get_section_id, get_section_flags)
16249 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
16250 dwarf2/section.c.
16251 * dwarf2/section.h: New file.
16252 * dwarf2/section.c: New file, from dwarf2read.c.
16253 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
16254
f4382c45
TT
162552020-02-08 Tom Tromey <tom@tromey.com>
16256
16257 * dwarf2read.h (read_unsigned_leb128): Don't declare.
16258 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
16259 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
16260 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
16261 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
16262 * dwarf2/leb.h: New file, from dwarf2read.c.
16263 * dwarf2/leb.c: New file, from dwarf2read.c.
16264 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
16265 Remove.
16266 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
16267 (COMMON_SFILES): Add dwarf2/leb.c.
16268
01840b7a
JB
162692020-02-08 Joel Brobecker <brobecker@adacore.com>
16270
16271 GDB 9.1 released.
16272
dfcb27e4
IB
162732020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16274
16275 PR gdb/25190:
aac66a4c
SM
16276 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
16277 * gdb/remote.c (remote_console_output): Update.
16278 * gdb/ui-file.c (fputs_unfiltered): Rename to...
16279 (ui_file_puts): ...this.
16280 * gdb/ui-file.h (ui_file_puts): Add declaration.
16281 * gdb/utils.c (emit_style_escape): Update.
16282 (flush_wrap_buffer): Update.
16283 (fputs_maybe_filtered): Update.
16284 (fputs_unfiltered): Add function.
dfcb27e4 16285
faa17681
IB
162862020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16287
aac66a4c
SM
16288 * gdb/event-loop.c (gdb_wait_for_event): Update.
16289 * gdb/printcmd.c (printf_command): Update.
16290 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
16291 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
16292 (gdb_os_flush_stderr): Update.
16293 * gdb/remote.c (remote_console_output): Update.
16294 * gdb/ui-file.c (gdb_flush): Rename to...
16295 (ui_file_flush): ...this.
16296 (stderr_file::write): Update.
16297 (stderr_file::puts): Update.
16298 * gdb/ui-file.h (gdb_flush): Rename to...
16299 (ui_file_flush): ...this.
16300 * gdb/utils.c (gdb_flush): Add function.
16301 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 16302
5abbbe1d
TT
163032020-02-07 Tom Tromey <tromey@adacore.com>
16304
16305 PR breakpoints/24915:
16306 * source.c (find_and_open_source): Do not check basenames_may_differ.
16307
919adfe8
TT
163082020-02-07 Tom Tromey <tom@tromey.com>
16309
16310 * README: Update gdbserver documentation.
16311 * gdbserver: Move to top level.
16312 * configure.tgt (build_gdbserver): Remove.
16313 * configure.ac: Remove --enable-gdbserver.
16314 * configure: Rebuild.
16315 * Makefile.in (distclean): Don't mention gdbserver.
16316
1d5d29e7
SV
163172020-02-06 Shahab Vahedi <shahab@synopsys.com>
16318
16319 * source-cache.c (source_cache::ensure): Surround
16320 get_plain_source_lines with a try/catch.
16321 (source_cache::get_line_charpos): Get rid of try/catch
16322 and only check for the return value of "ensure".
16323 * tui/tui-source.c (tui_source_window::set_contents):
16324 Simplify "nlines" calculation.
16325
6eb1129c
SV
163262020-02-06 Shahab Vahedi <shahab@synopsys.com>
16327
16328 * MAINTAINERS (Write After Approval): Add myself.
16329
c6a42d11
CB
163302020-02-05 Christian Biesinger <cbiesinger@google.com>
16331
16332 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
16333 function call.
16334
c8ecdda6
CB
163352020-02-05 Christian Biesinger <cbiesinger@google.com>
16336
16337 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
16338
f6480e70
MR
163392020-02-05 Maciej W. Rozycki <macro@wdc.com>
16340
16341 * nat/riscv-linux-tdesc.h: New file.
16342 * nat/riscv-linux-tdesc.c: New file, taking code from...
16343 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
16344 ... here.
16345 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
16346 NATDEPFILES.
16347
dcc9fbc6
AB
163482020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
16349
16350 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
16351 we don't set the fake simulator ptid to the null_ptid.
16352
719546c4
SM
163532020-02-03 Simon Marchi <simon.marchi@efficios.com>
16354
16355 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
16356 * gdbthread.h (class thread_info) <resumed>: Likewise.
16357 * infrun.c (resume_1): Likewise.
16358 (proceed): Likewise.
16359 (infrun_thread_stop_requested): Likewise.
16360 (stop_all_threads): Likewise.
16361 (handle_inferior_event): Likewise.
16362 (restart_threads): Likewise.
16363 (finish_step_over): Likewise.
16364 (keep_going_stepped_thread): Likewise.
16365 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
16366 (linux_handle_extended_wait): Likewise.
16367 * record-btrace.c (get_thread_current_frame_id): Likewise.
16368 * record-full.c (record_full_wait_1): Likewise.
16369 * remote.c (remote_target::process_initial_stop_replies): Likewise.
16370 * target.c (target_resume): Likewise.
16371 * thread.c (set_running_thread): Likewise.
16372
e409c542
AKS
163732020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
16374
16375 * f-valprint.c (f77_print_array_1): Changed datatype of index
16376 variable to LONGEST from int to enable it to contain bound
16377 values correctly.
16378
ee98c0da
MR
163792020-02-03 Maciej W. Rozycki <macro@wdc.com>
16380
16381 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
16382 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
16383 offsets according to FLEN determined.
16384 (riscv_linux_nat_target::read_description): Determine FLEN
16385 dynamically.
16386 (riscv_linux_nat_target::fetch_registers): Size regset buffer
16387 according to FLEN determined.
16388 (riscv_linux_nat_target::store_registers): Likewise.
16389
aa66aac4
SV
163902020-02-01 Shahab Vahedi <shahab@synopsys.com>
16391
16392 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
16393 when reg->group is empty and reggroup is not.
16394
fd9faca8
TT
163952020-01-31 Tom Tromey <tromey@adacore.com>
16396
16397 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
16398 Call beneath target's mourn_inferior after unpushing.
16399
42330a68
AB
164002020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16401
16402 PR tui/9765
16403 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
16404 have enough lines to fill the screen, still return the lowest
16405 address we found.
16406
7a27a45b
AB
164072020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16408
16409 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
16410 '-', '<', and '>' commands.
16411
c47f70e2
PA
164122020-01-29 Pedro Alves <palves@redhat.com>
16413 Sergio Durigan Junior <sergiodj@redhat.com>
16414
16415 * infcmd.c (construct_inferior_arguments): Assert that
16416 'argc' is greater than 0.
16417
5133a315
LM
164182020-01-29 Luis Machado <luis.machado@linaro.org>
16419
16420 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
16421 (BRK_INSN_MASK): Define to 0xd4200000.
16422 (aarch64_program_breakpoint_here_p): New function.
16423 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
16424 * arch-utils.c (default_program_breakpoint_here_p): Moved from
16425 breakpoint.c.
16426 * arch-utils.h (default_program_breakpoint_here_p): Moved from
16427 breakpoint.h
16428 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
16429 call gdbarch_program_breakpoint_here_p.
16430 (program_breakpoint_here): Moved to arch-utils.c, renamed to
16431 default_program_breakpoint_here_p, changed return type to bool and
16432 simplified.
16433 * breakpoint.h (program_breakpoint_here): Moved prototype to
16434 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
16435 return type to bool.
16436 * gdbarch.c: Regenerate.
16437 * gdbarch.h: Regenerate.
16438 * gdbarch.sh (program_breakpoint_here_p): New method.
16439 * infrun.c (handle_signal_stop): Call
16440 gdbarch_program_breakpoint_here_p.
16441
168f8c6b
TT
164422020-01-26 Tom Tromey <tom@tromey.com>
16443
16444 * ctfread.c (struct ctf_fp_info): Reindent.
16445 (_initialize_ctfread): Remove.
16446
128a391f
TT
164472020-01-26 Tom Tromey <tom@tromey.com>
16448
16449 * psymtab.c (partial_map_expand_apply)
16450 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
16451 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
16452 (psym_print_stats, psym_expand_symtabs_for_function)
16453 (psym_map_symbol_filenames, psym_map_matching_symbols)
16454 (psym_expand_symtabs_matching)
16455 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
16456 (maintenance_check_psymtabs): Use new methods.
16457 * psympriv.h (struct partial_symtab) <readin_p,
16458 get_compunit_symtab>: New methods.
16459 <readin, compunit_symtab>: Remove members.
16460 (struct standard_psymtab): New.
16461 (struct legacy_psymtab): Derive from standard_psymtab.
16462 * dwarf2read.h (struct dwarf2_psymtab): Derive from
16463 standard_psymtab.
16464 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
16465
0494dbec
TT
164662020-01-26 Tom Tromey <tom@tromey.com>
16467
16468 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
16469 read_dependencies. Add assert.
16470 * psymtab.c (partial_symtab::read_dependencies): New method.
16471 * psympriv.h (struct partial_symtab) <read_dependencies>: New
16472 method.
16473 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
16474 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
16475 read_dependencies.
16476 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
16477 Add assert.
16478
8566b89b
TT
164792020-01-26 Tom Tromey <tom@tromey.com>
16480
16481 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
16482 Call expand_psymtab.
16483 (xcoff_read_symtab): Call expand_psymtab.
16484 (xcoff_start_psymtab, xcoff_end_psymtab): Set
16485 legacy_expand_psymtab.
16486 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
16487 method.
16488 (struct legacy_psymtab) <expand_psymtab>: Implement.
16489 <legacy_expand_psymtab>: New member.
16490 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
16491 (parse_partial_symbols): Set legacy_expand_psymtab.
16492 (psymtab_to_symtab_1): Change argument order. Call
16493 expand_psymtab.
16494 (new_psymtab): Set legacy_expand_psymtab.
16495 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
16496 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
16497 expand_psymtab.
16498 (dwarf2_psymtab::expand_psymtab): Rename from
16499 psymtab_to_symtab_1. Call expand_psymtab.
16500 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
16501 (dbx_end_psymtab): Likewise.
16502 (dbx_psymtab_to_symtab_1): Change argument order. Call
16503 expand_psymtab.
16504 (dbx_read_symtab): Call expand_psymtab.
16505 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
16506 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
16507 (ctf_psymtab::read_symtab): Call expand_psymtab.
16508
077cbab2
TT
165092020-01-26 Tom Tromey <tom@tromey.com>
16510
16511 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
16512 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
16513 messages.
16514 * mdebugread.c (mdebug_read_symtab): Remove prints.
16515 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
16516 assert.
16517 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
16518
891813be
TT
165192020-01-26 Tom Tromey <tom@tromey.com>
16520
16521 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
16522 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
16523 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
16524 legacy_symtab.
16525 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
16526 * psymtab.c (psymtab_to_symtab): Call method.
16527 (dump_psymtab): Update.
16528 * psympriv.h (struct partial_symtab): Add virtual destructor.
16529 <read_symtab>: New method.
16530 (struct legacy_symtab): New.
16531 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
16532 (struct pst_map) <pst>: Now a legacy_psymtab.
16533 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
16534 (new_psymtab): Use legacy_psymtab.
16535 * dwarf2read.h (struct dwarf2_psymtab): New.
16536 (struct dwarf2_per_cu_data) <psymtab>: Use it.
16537 * dwarf2read.c (dwarf2_create_include_psymtab)
16538 (dwarf2_build_include_psymtabs, create_type_unit_group)
16539 (create_partial_symtab, process_psymtab_comp_unit_reader)
16540 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
16541 (set_partial_user): Use dwarf2_psymtab.
16542 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
16543 (psymtab_to_symtab_1, process_full_comp_unit)
16544 (process_full_type_unit, dwarf2_ranges_read)
16545 (dwarf2_get_pc_bounds, psymtab_include_file_name)
16546 (dwarf_decode_lines): Use dwarf2_psymtab.
16547 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
16548 (add_address_entry_worker, write_one_signatured_type)
16549 (recursively_count_psymbols, recursively_write_psymbols)
16550 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
16551 (write_debug_names): Likewise.
16552 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
16553 <pst>: Now a legacy_psymtab.
16554 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
16555 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
16556 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
16557 * ctfread.c (struct ctf_psymtab): New.
16558 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
16559 ctf_psymtab.
16560 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
16561 (create_partial_symtab): Return a ctf_psymtab.
16562 (scan_partial_symbols): Update.
16563
c3693a1d
TT
165642020-01-26 Tom Tromey <tom@tromey.com>
16565
16566 * xcoffread.c (xcoff_start_psymtab): Use new.
16567 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16568 renamed from start_psymtab_common.
16569 * psympriv.h (struct partial_symtab): Add new constructor.
16570 (start_psymtab_common): Don't declare.
16571 * mdebugread.c (parse_partial_symbols): Use new.
16572 * dwarf2read.c (create_partial_symtab): Use new.
16573 * dbxread.c (start_psymtab): Use new.
16574 * ctfread.c (create_partial_symtab): Use new.
16575
32caafd0
TT
165762020-01-26 Tom Tromey <tom@tromey.com>
16577
16578 * xcoffread.c (xcoff_end_psymtab): Use new.
16579 * psymtab.c (start_psymtab_common): Use new.
16580 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16581 Update.
16582 * psympriv.h (struct partial_symtab): Add parameters to
16583 constructor. Don't inline.
16584 (allocate_psymtab): Don't declare.
16585 * mdebugread.c (new_psymtab): Use new.
16586 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16587 * dbxread.c (dbx_end_psymtab): Use new.
16588
abaa2f23
TT
165892020-01-26 Tom Tromey <tom@tromey.com>
16590
16591 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16592 allocate_psymtab. Update documentation.
16593 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16594 allocate_psymtab. Do not use new.
16595 (allocate_psymtab): Use new. Update.
16596
6d94535f
TT
165972020-01-26 Tom Tromey <tom@tromey.com>
16598
16599 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16600 * psymtab.c (psym_print_stats): Update.
16601 * psympriv.h (struct partial_symtab) <readin,
16602 psymtabs_addrmap_supported, anonymous>: Now bool.
16603 * mdebugread.c (psymtab_to_symtab_1): Update.
16604 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16605 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16606 (process_full_comp_unit, process_full_type_unit): Update.
16607 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16608 * ctfread.c (psymtab_to_symtab): Update.
16609
6f17252b
TT
166102020-01-26 Tom Tromey <tom@tromey.com>
16611
16612 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16613 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16614 * psymtab.c (psymtab_storage): Delete psymtabs.
16615 (psymtab_storage::allocate_psymtab): Use new.
16616 (psymtab_storage::discard_psymtab): Use delete.
16617 * psympriv.h (struct partial_symtab): Add constructor and
16618 initializers.
16619
f6f1cebc
TT
166202020-01-26 Tom Tromey <tom@tromey.com>
16621
16622 * machoread.c: Do not include psympriv.h.
16623
e47e48f6
PW
166242020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16625
16626 * NEWS: Mention the new option and the set/show commands.
16627
a2fedca9
PW
166282020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16629
16630 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16631 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16632 (validate_exec_file): New variables, enums, functions.
16633 (exec_file_locate_attach, print_section_info): Style the filenames.
16634 (_initialize_exec): Install show_exec_file_mismatch_command and
16635 set_exec_file_mismatch_command.
16636 * gdbcore.h (validate_exec_file): Declare.
16637 * infcmd.c (attach_command): Call validate_exec_file.
16638 * remote.c ( remote_target::remote_add_inferior): Likewise.
16639
7ffa82e1
AB
166402020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16641
16642 * frame.c (find_frame_sal): Move call to get_next_frame into more
16643 inner scope.
16644 * inline-frame.c (inilne_state) <inline_state>: Update argument
16645 types.
16646 (inilne_state) <skipped_symbol>: Rename to...
16647 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16648 (skip_inline_frames): Build vector of skipped symbols and use this
16649 to reate the inline_state.
16650 (inline_skipped_symbol): Add a comment and some assertions, fetch
16651 skipped symbol from the list.
16652
3d92a3e3
AB
166532020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16654
16655 * buildsym.c (lte_is_less_than): Delete.
16656 (buildsym_compunit::end_symtab_with_blockvector): Create local
16657 lambda function to sort line table entries, and use
16658 std::stable_sort instead of std::sort.
16659 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16660 markers when looking for a previous line.
16661
94a72be7
AB
166622020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16663
16664 * dwarf2read.c (lnp_state_machine::record_line): Include
16665 end_sequence parameter in debug print out. Record the line if we
16666 are at an end_sequence marker even if it's not the start of a
16667 statement.
16668 * symmisc.c (maintenance_print_one_line_table): Print end of
16669 sequence markers with 'END' not '0'.
16670
53af73bf
PA
166712020-01-24 Pedro Alves <palves@redhat.com>
16672
16673 PR gdb/25410
16674 * thread.c (scoped_restore_current_thread::restore): Use
16675 switch_to_inferior_no_thread.
16676 * exec.c: Include "progspace-and-thread.h".
16677 (add_target_sections, remove_target_sections):
16678 scoped_restore_current_pspace_and_thread instead of
16679 scoped_restore_current_thread.
16680 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16681 and aspace to the inferior before calling clone_program_space.
16682 Remove stale comment.
16683
3050c6f4
CB
166842020-01-24 Christian Biesinger <cbiesinger@google.com>
16685
16686 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16687 (arm_netbsd_nat_target::fetch_registers): ...this.
16688 (arm_nbsd_nat_target::store_registers): Rename to...
16689 (arm_netbsd_nat_target::store_registers): ...this.
16690
73685c7e
CB
166912020-01-24 Christian Biesinger <cbiesinger@google.com>
16692
16693 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16694 register_t.
16695
89203d40
CB
166962020-01-24 Christian Biesinger <cbiesinger@google.com>
16697
16698 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16699 Update comment.
16700 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16701 Likewise.
16702 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16703 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16704 the correct replacement (iterate_over_regset_sections).
16705 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16706 Update comment.
16707
1ba1ac88
AB
167082020-01-24 Graham Markall <graham.markall@embecosm.com>
16709
16710 PR gdb/23718
16711 * gdb/python/python.c (execute_gdb_command): Call
16712 async_enable_stdin in catch block.
16713
f3364a6d
AB
167142020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16715
16716 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16717 SWITCH_THRU_ALL_UIS.
16718
733d0a67
AB
167192020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16720
16721 PR tui/9765
16722 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16723 comment, add extra parameter, and update to store previous symbol
16724 when appropriate.
16725 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16726 add extra parameter.
16727 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16728 remove unneeded parameter, add try/catch around gdb_print_insn,
16729 rewrite to add items to asm_lines vector.
16730 (tui_find_backward_disassembly_start_address): New function.
16731 (tui_find_disassembly_address): Updated throughout.
16732 (tui_disasm_window::set_contents): Update for changes to
16733 tui_disassemble.
16734 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16735 number of lines to scroll.
16736
b3b3bada
SM
167372020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16738
16739 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16740 (SECT_OFF_DATA): Likewise.
16741 (SECT_OFF_RODATA): Likewise.
16742 (SECT_OFF_TEXT): Likewise.
16743 (SECT_OFF_BSS): Likewise.
16744 (struct objfile) <text_section_offset, data_section_offset>: New
16745 methods.
16746 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16747 objfile::text_section_offset.
16748 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16749 * coffread.c (coff_symtab_read): Likewise.
16750 (enter_linenos): Likewise.
16751 (process_coff_symbol): Likewise.
16752 * ctfread.c (get_objfile_text_range): Likewise.
16753 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16754 Use objfile::data_section_offset.
16755 * dwarf2-frame.c (execute_cfa_program): Use
16756 objfile::text_section_offset.
16757 (dwarf2_frame_find_fde): Likewise.
16758 * dwarf2read.c (create_addrmap_from_index): Likewise.
16759 (create_addrmap_from_aranges): Likewise.
16760 (dw2_find_pc_sect_compunit_symtab): Likewise.
16761 (process_psymtab_comp_unit_reader): Likewise.
16762 (add_partial_symbol): Likewise.
16763 (add_partial_subprogram): Likewise.
16764 (process_full_comp_unit): Likewise.
16765 (read_file_scope): Likewise.
16766 (read_func_scope): Likewise.
16767 (read_lexical_block_scope): Likewise.
16768 (read_call_site_scope): Likewise.
16769 (dwarf2_rnglists_process): Likewise.
16770 (dwarf2_ranges_process): Likewise.
16771 (dwarf2_ranges_read): Likewise.
16772 (dwarf_decode_lines_1): Likewise.
16773 (new_symbol): Likewise.
16774 (dwarf2_fetch_die_loc_sect_off): Likewise.
16775 (dwarf2_per_cu_text_offset): Likewise.
16776 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16777 * hppa-tdep.c (read_unwind_info): Likewise.
16778 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16779 * psympriv.h (struct partial_symtab): Likewise.
16780 * psymtab.c (find_pc_sect_psymtab): Likewise.
16781 * solib-svr4.c (enable_break): Likewise.
16782 * stap-probe.c (relocate_address): Use
16783 objfile::data_section_offset.
16784 * xcoffread.c (enter_line_range): Use
16785 objfile::text_section_offset.
16786 (read_xcoff_symtab): Likewise.
16787
ab53f382
SM
167882020-01-23 Simon Marchi <simon.marchi@efficios.com>
16789
16790 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16791 declaration to narrower scopes.
16792
e7eee665
SM
167932020-01-23 Simon Marchi <simon.marchi@efficios.com>
16794
16795 * darwin-nat.h (struct darwin_exception_msg, enum
16796 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16797 Move up.
16798 (class darwin_nat_target) <wait_1, check_new_threads,
16799 decode_exception_message, decode_message, stop_inferior,
16800 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16801 * darwin-nat.c (darwin_check_new_threads): Rename to...
16802 (darwin_nat_target::check_new_threads): ... this.
16803 (darwin_suspend_inferior_it): Remove.
16804 (darwin_decode_exception_message): Rename to...
16805 (darwin_nat_target::decode_exception_message): ... this.
16806 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16807 (darwin_decode_message): Rename to...
16808 (darwin_nat_target::decode_message): ... this.
16809 (cancel_breakpoint): Rename to...
16810 (darwin_nat_target::cancel_breakpoint): ... this.
16811 (darwin_wait): Rename to...
16812 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16813 instead of iterate_over_inferiors.
16814 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16815 (darwin_stop_inferior): Rename to...
16816 (darwin_nat_target::stop_inferior): ... this.
16817 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16818 (darwin_init_thread_list): Rename to...
16819 (darwin_nat_target::init_thread_list): ... this.
16820 (darwin_ptrace_him): Rename to...
16821 (darwin_nat_target::ptrace_him): ... this.
16822 (darwin_nat_target::create_inferior): Pass lambda function to
16823 fork_inferior.
16824 (darwin_nat_target::detach): Call stop_inferior instead of
16825 darwin_stop_inferior.
16826 * fork-inferior.h (fork_inferior): Change init_trace_fun
16827 parameter to gdb::function_view.
16828 * fork-inferior.c (fork_inferior): Likewise.
16829
c162ed3e
HD
168302020-01-23 Hannes Domani <ssbssa@yahoo.de>
16831
16832 * i386-cygwin-tdep.c (core_process_module_section): Update.
16833 * windows-nat.c (struct lm_info_windows): Add text_offset.
16834 (windows_xfer_shared_libraries): Update.
16835 * windows-tdep.c (windows_xfer_shared_library):
16836 Add text_offset_cached argument.
16837 * windows-tdep.h (windows_xfer_shared_library): Update.
16838
a1237872
SM
168392020-01-21 Simon Marchi <simon.marchi@efficios.com>
16840
16841 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16842
b3ee6dd9
SM
168432020-01-21 Simon Marchi <simon.marchi@efficios.com>
16844
16845 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16846 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16847 replace with range-based for.
16848 (gdbsim_interrupt_inferior): Remove.
16849 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16850 with a range-based for. Inline code from
16851 gdbsim_interrupt_inferior.
16852
f9fac3c8
SM
168532020-01-21 Simon Marchi <simon.marchi@efficios.com>
16854
16855 * infrun.c (proceed): Fix indentation.
16856
f6474de9
TT
168572020-01-21 Tom Tromey <tromey@adacore.com>
16858
16859 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16860 * python/python.c (python_extension_ops): Update.
16861 (gdbpy_colorize): New function.
16862 * python/lib/gdb/__init__.py (colorize): New function.
16863 * extension.h (ext_lang_colorize): Declare.
16864 * extension.c (ext_lang_colorize): New function.
16865 * extension-priv.h (struct extension_language_ops) <colorize>: New
16866 member.
16867 * cli/cli-style.c (_initialize_cli_style): Update help text.
16868
f0c702d4
LM
168692020-01-21 Luis Machado <luis.machado@linaro.org>
16870
16871 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16872 <cond>: Change type to bool.
16873 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16874 (aarch64_displaced_step_cb): Likewise.
16875 (aarch64_displaced_step_tb): Likewise.
16876
1ab139e5
LM
168772020-01-21 Luis Machado <luis.machado@linaro.org>
16878
16879 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16880 output.
16881
0c271889
LM
168822020-01-21 Luis Machado <luis.machado@linaro.org>
16883
16884 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16885 <pc_adjust>: Adjust the documentation.
16886 (aarch64_displaced_step_fixup): Check if PC really moved before
16887 adjusting it.
16888
4d89c1c7
TT
168892020-01-19 Tom Tromey <tom@tromey.com>
16890
16891 * disasm.c (~gdb_disassembler): New destructor.
16892 (gdb_buffered_insn_length): Call disassemble_free_target.
16893 * disasm.h (class gdb_disassembler): Declare destructor. Use
16894 DISABLE_COPY_AND_ASSIGN.
16895
c0ab21c2
TT
168962020-01-19 Tom Tromey <tom@tromey.com>
16897
16898 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16899 (die_reader_func_ftype): Remove.
16900 (cutu_reader): New class.
16901 (dw2_get_file_names_reader): Remove "data" parameter.
16902 (dw2_get_file_names): Use cutu_reader.
16903 (create_debug_type_hash_table): Update.
16904 (read_cutu_die_from_dwo): Update comment.
16905 (lookup_dwo_unit): Add dwo_name parameter.
16906 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16907 die_reader_func_ftype and data parameters.
16908 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16909 Remove die_reader_func_ftype and data parameters.
16910 (~cutu_reader): New; from init_cutu_and_read_dies.
16911 (cutu_reader::cutu_reader): Rename from
16912 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16913 and data parameters.
16914 (init_cutu_and_read_dies_simple): Remove.
16915 (struct process_psymtab_comp_unit_data): Remove.
16916 (process_psymtab_comp_unit_reader): Remove data parameter; add
16917 want_partial_unit and pretend_language parameters.
16918 (process_psymtab_comp_unit): Use cutu_reader.
16919 (build_type_psymtabs_reader): Remove data parameter.
16920 (build_type_psymtabs_1): Use cutu_reader.
16921 (process_skeletonless_type_unit): Likewise.
16922 (load_partial_comp_unit_reader): Remove.
16923 (load_partial_comp_unit): Use cutu_reader.
16924 (load_full_comp_unit_reader): Remove.
16925 (load_full_comp_unit): Use cutu_reader.
16926 (struct create_dwo_cu_data): Remove.
16927 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16928 dwo_unit parameters.
16929 (create_cus_hash_table): Use cutu_reader.
16930 (struct dwarf2_read_addr_index_data): Remove.
16931 (dwarf2_read_addr_index_reader): Remove.
16932 (dwarf2_read_addr_index): Use cutu_reader.
16933 (read_signatured_type_reader): Remove.
16934 (read_signatured_type): Use cutu_reader.
16935
45bbae5c
TT
169362020-01-19 Tom Tromey <tom@tromey.com>
16937
16938 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16939 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16940 (tui_wrefresh): Declare.
16941 * tui/tui-wingeneral.c (suppress_output): New global.
16942 (tui_suppress_output, ~tui_suppress_output): New constructor and
16943 destructor.
16944 (tui_wrefresh): New function.
16945 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16946 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16947 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16948 method.
16949 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16950 tui_wrefresh.
16951 (tui_data_window::no_refresh): New method.
16952 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16953 (tui_reg_command): Use tui_suppress_output
16954 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16955 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16956 method.
16957 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16958
4f13c1c0
TT
169592020-01-19 Tom Tromey <tom@tromey.com>
16960
16961 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16962 Handle case where symtab is null.
16963
fa47e446
SM
169642020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16965
16966 * linux-fork.c (one_fork_p): Simplify.
16967
26f42329
SM
169682020-01-17 Simon Marchi <simon.marchi@efficios.com>
16969
16970 * top.c (struct qt_args): Remove.
16971 (kill_or_detach): Change return type to void, replace `void *`
16972 parameter with a proper one.
16973 (print_inferior_quit_action): Likewise.
16974 (quit_confirm): Use range-based for loop to iterate over inferiors.
16975 (quit_force): Likewise.
16976
a9ac81b1
SM
169772020-01-17 Simon Marchi <simon.marchi@efficios.com>
16978
16979 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16980 `void *` parameter with proper parameters.
16981 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16982 (print_one_inferior): Change return type to void, replace `void *`
16983 parameter with proper parameters.
16984 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16985 inferiors.
16986 (get_other_inferior): Remove.
16987 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16988 inferiors.
16989
788eca49
SM
169902020-01-17 Simon Marchi <simon.marchi@efficios.com>
16991
16992 * mi/mi-interp.c (report_initial_inferior): Remove.
16993 (mi_interp::init): Use range-based for to iterate over inferiors.
16994
d9bc85b6
SM
169952020-01-17 Simon Marchi <simon.marchi@efficios.com>
16996
16997 * python/py-inferior.c (build_inferior_list): Remove.
16998 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16999
40c94099
CB
170002020-01-16 Christian Biesinger <cbiesinger@google.com>
17001
17002 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
17003 (btrace_stitch_trace): Likewise.
17004 * charset.c (intermediate_encoding): Likewise (vaild).
17005 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
17006 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
17007 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
17008
e0cdfe3c
HD
170092020-01-16 Hannes Domani <ssbssa@yahoo.de>
17010
17011 * windows-tdep.c (windows_get_tlb_type):
17012 Add rtl_user_process_parameters type.
17013
790f1718 170142020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 17015 Norbert Lange <nolange79@gmail.com>
790f1718
PA
17016
17017 PR build/24805
17018 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
17019 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
17020 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
17021 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
17022 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
17023 (ps_plog): Redeclare exported functions with default visibility.
17024
3112ed97
NA
170252020-01-16 Nitika Achra <Nitika.Achra@amd.com>
17026
17027 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
17028 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
17029
8dc3273e
SM
170302020-01-15 Simon Marchi <simon.marchi@efficios.com>
17031
17032 * infcmd.c (post_create_inferior): Use get_thread_regcache
17033 instead of get_current_regcache.
17034
ff47f4f0
TT
170352020-01-14 Tom Tromey <tom@tromey.com>
17036
17037 PR symtab/12535:
17038 * python/python.c (gdbpy_decode_line): Treat empty string the same
17039 as no argument.
17040
975f45b7
TT
170412020-01-14 Tom Tromey <tom@tromey.com>
17042
17043 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
17044
25e57356
TT
170452020-01-14 Tom Tromey <tom@tromey.com>
17046
17047 * nat/linux-btrace.c: Don't include <config.h>.
17048 * nat/linux-ptrace.c: Don't include <config.h>.
17049 * nat/x86-linux-dregs.c: Don't include <config.h>.
17050
05ea2a05
TT
170512020-01-14 Tom Tromey <tom@tromey.com>
17052
17053 * configure: Rebuild.
17054 * configure.ac: Move many checks to ../gdbsupport/common.m4.
17055
01027315
TT
170562020-01-14 Tom Tromey <tom@tromey.com>
17057
17058 * nat/x86-linux-dregs.c: Include configh.h.
17059 * nat/linux-ptrace.c: Include configh.h.
17060 * nat/linux-btrace.c: Include configh.h.
17061 * defs.h: Include config.h, bfd.h.
17062 * configure.ac: Don't source common.host.
17063 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
17064 * configure: Rebuild.
17065 * acinclude.m4: Update path.
17066 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
17067 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
17068 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
17069 (CLIBS): Add LIBSUPPORT.
17070 (CDEPS): Likewise.
17071 (COMMON_SFILES): Remove gdbsupport files.
17072 (HFILES_NO_SRCDIR): Likewise.
17073 (stamp-version): Update path to create-version.sh.
17074 (ALLDEPFILES): Remove gdbsupport files.
17075
b2ceabe8
TT
170762020-01-14 Tom Tromey <tom@tromey.com>
17077
17078 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
17079 USE_WIN32API when needed.
17080 * configure.ac (USE_WIN32API): Don't define.
17081 (WIN32LIBS): Use WIN32APILIBS.
17082 * configure: Rebuild.
17083
25c51f71
TT
170842020-01-14 Tom Tromey <tom@tromey.com>
17085
17086 * configure: Rebuild.
17087 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
17088
717c684d
BE
170892020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
17090
17091 * skip.c (skip_function_command): Make skip w/o arguments use the
17092 name of the inlined function if pc is inside any inlined function.
17093
7da6a5b9
LM
170942020-01-14 Luis Machado <luis.machado@linaro.org>
17095
17096 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
17097 * infrun.c (resume_1): Likewise.
17098 (handle_inferior_event): Remove stale comment.
17099 * linux-nat.c (linux_nat_target::resume): Update comments.
17100 (save_stop_reason): Likewise.
17101 (linux_nat_filter_event): Likewise.
17102 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
17103
44e4c775
AB
171042020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
17105
17106 * elfread.c (record_minimal_symbol): Set section index to 0 for
17107 non-allocatable sections.
17108
18a8505e
AT
17109
171102020-01-13 Ali Tamur <tamur@google.com>
17111
17112 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
17113 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
17114 to gdb::optional. Update comments.
17115 (dwo_file): Update comments.
17116 (read_attribute): Update API to take an additional out parameter,
17117 need_reprocess. This is used to mark attributes that need other
17118 attributes (e.g. str_offsets_base) for correct computation which may not
17119 have been read yet.
17120 (read_attribute_reprocess): New function declaration.
17121 (read_addr_index): Likewise.
17122 (read_dwo_str_index): Likewise.
17123 (read_stub_str_index): Likewise.
17124 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
17125 (lookup_addr_base): New function definition.
17126 (lookup_ranges_base): Likewise.
17127 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
17128 lookup_ranges_base.
17129 (init_cutu_and_read_dies): Update comments.
17130 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
17131 unit. This is used to inherit parent's str_offsets_base and addr_base.
17132 Update comments.
17133 (init_cutu_and_read_dies_simple): Reflect API changes.
17134 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
17135 (create_cus_hash_table): Change API to take parent compile unit.
17136 Reflect API changes.
17137 (open_and_init_dwo_file): Reflect API changes.
17138 (dwarf2_get_pc_bounds): Update comments.
17139 (dwarf2_record_block_ranges): Likewise.
17140 (read_full_die_1): Change implementation to reprocess attributes that
17141 need str_offsets_base and addr_base.
17142 (partial_die_info::read): Likewise.
17143 (read_attribute_reprocess): New function definition.
17144 (read_attribute_value): Change API to take an additional out parameter,
17145 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
17146 when a non-dwo compile unit has index based attributes.
17147 (read_attribute): Reflect API changes.
17148 (read_addr_index_1): Reflect API changes. Update comments.
17149 (dwarf2_read_addr_index_data): Reflect API changes.
17150 (dwarf2_read_addr_index): Likewise.
17151 (read_str_index): Change API and implementation. This becomes a helper
17152 to be used by the new string index related methods. Update error
17153 message and comments.
17154 (read_dwo_str_index): New function definition.
17155 (read_stub_str_index): Likewise.
17156 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
17157 * symfile.h (dwarf2_debug_sections): Likewise.
17158 * xcoffread.c (dwarf2_debug_sections): Likewise.
17159
0cac9354
SM
171602020-01-13 Simon Marchi <simon.marchi@efficios.com>
17161
17162 * gdbcore.h (struct core_fns) <core_read_registers>: Change
17163 core_reg_sect type to gdb_byte *.
17164 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
17165 * cris-tdep.c (fetch_core_registers): Likewise.
17166 * corelow.c (core_target::get_core_register_section): Change
17167 type of `contents` to gdb::byte_vector.
17168
9a6d629c
AB
171692020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
17170
17171 * tui/tui-wingeneral.c (box_win): Position the title in the center
17172 of the border.
17173
d8b2f9e3
SM
171742020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17175
17176 * corelow.c (core_target::get_core_register_section): Use
17177 std::vector instead of alloca.
17178
bb564c58
SM
171792020-01-13 Simon Marchi <simon.marchi@efficios.com>
17180
17181 * warning.m4: Add -Wmissing-declarations to build_warnings.
17182 * configure: Re-generate.
17183
6b366111
SM
171842020-01-13 Simon Marchi <simon.marchi@efficios.com>
17185
17186 * python/python.c (init__gdb_module): Add declaration.
17187
6c265988
SM
171882020-01-13 Simon Marchi <simon.marchi@efficios.com>
17189
17190 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
17191 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
17192 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
17193 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
17194 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
17195 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
17196 * ada-exp.y (_initialize_ada_exp): Add declaration.
17197 * ada-lang.c (_initialize_ada_language): Add declaration.
17198 * ada-tasks.c (_initialize_tasks): Add declaration.
17199 * agent.c (_initialize_agent): Add declaration.
17200 * aix-thread.c (_initialize_aix_thread): Add declaration.
17201 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
17202 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
17203 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
17204 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
17205 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
17206 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
17207 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
17208 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
17209 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
17210 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
17211 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
17212 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
17213 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
17214 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
17215 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
17216 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
17217 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
17218 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
17219 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
17220 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
17221 * annotate.c (_initialize_annotate): Add declaration.
17222 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
17223 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
17224 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
17225 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
17226 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
17227 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
17228 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
17229 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
17230 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
17231 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
17232 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
17233 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
17234 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
17235 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
17236 * auto-load.c (_initialize_auto_load): Add declaration.
17237 * auxv.c (_initialize_auxv): Add declaration.
17238 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
17239 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
17240 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
17241 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
17242 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
17243 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
17244 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
17245 * breakpoint.c (_initialize_breakpoint): Add declaration.
17246 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
17247 * btrace.c (_initialize_btrace): Add declaration.
17248 * charset.c (_initialize_charset): Add declaration.
17249 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
17250 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
17251 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
17252 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
17253 * cli/cli-script.c (_initialize_cli_script): Add declaration.
17254 * cli/cli-style.c (_initialize_cli_style): Add declaration.
17255 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
17256 * coffread.c (_initialize_coffread): Add declaration.
17257 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
17258 * compile/compile.c (_initialize_compile): Add declaration.
17259 * complaints.c (_initialize_complaints): Add declaration.
17260 * completer.c (_initialize_completer): Add declaration.
17261 * copying.c (_initialize_copying): Add declaration.
17262 * corefile.c (_initialize_core): Add declaration.
17263 * corelow.c (_initialize_corelow): Add declaration.
17264 * cp-abi.c (_initialize_cp_abi): Add declaration.
17265 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
17266 * cp-support.c (_initialize_cp_support): Add declaration.
17267 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
17268 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
17269 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
17270 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
17271 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
17272 * ctfread.c (_initialize_ctfread): Add declaration.
17273 * d-lang.c (_initialize_d_language): Add declaration.
17274 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
17275 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
17276 * dbxread.c (_initialize_dbxread): Add declaration.
17277 * dcache.c (_initialize_dcache): Add declaration.
17278 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
17279 * disasm.c (_initialize_disasm): Add declaration.
17280 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
17281 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
17282 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
17283 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
17284 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
17285 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
17286 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
17287 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
17288 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
17289 * elfread.c (_initialize_elfread): Add declaration.
17290 * exec.c (_initialize_exec): Add declaration.
17291 * extension.c (_initialize_extension): Add declaration.
17292 * f-lang.c (_initialize_f_language): Add declaration.
17293 * f-valprint.c (_initialize_f_valprint): Add declaration.
17294 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
17295 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
17296 * filesystem.c (_initialize_filesystem): Add declaration.
17297 * findcmd.c (_initialize_mem_search): Add declaration.
17298 * findvar.c (_initialize_findvar): Add declaration.
17299 * fork-child.c (_initialize_fork_child): Add declaration.
17300 * frame-base.c (_initialize_frame_base): Add declaration.
17301 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
17302 * frame.c (_initialize_frame): Add declaration.
17303 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
17304 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
17305 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
17306 * gcore.c (_initialize_gcore): Add declaration.
17307 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
17308 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
17309 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
17310 * gdbarch.c (_initialize_gdbarch): Add declaration.
17311 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
17312 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
17313 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
17314 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
17315 * go-lang.c (_initialize_go_language): Add declaration.
17316 * go32-nat.c (_initialize_go32_nat): Add declaration.
17317 * guile/guile.c (_initialize_guile): Add declaration.
17318 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
17319 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
17320 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
17321 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
17322 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
17323 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
17324 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
17325 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
17326 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
17327 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
17328 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
17329 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
17330 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
17331 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
17332 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
17333 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
17334 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
17335 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
17336 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
17337 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
17338 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
17339 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
17340 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
17341 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
17342 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
17343 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
17344 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
17345 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
17346 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
17347 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
17348 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
17349 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
17350 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
17351 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
17352 * infcall.c (_initialize_infcall): Add declaration.
17353 * infcmd.c (_initialize_infcmd): Add declaration.
17354 * inflow.c (_initialize_inflow): Add declaration.
17355 * infrun.c (_initialize_infrun): Add declaration.
17356 * interps.c (_initialize_interpreter): Add declaration.
17357 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
17358 * jit.c (_initialize_jit): Add declaration.
17359 * language.c (_initialize_language): Add declaration.
17360 * linux-fork.c (_initialize_linux_fork): Add declaration.
17361 * linux-nat.c (_initialize_linux_nat): Add declaration.
17362 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
17363 * linux-thread-db.c (_initialize_thread_db): Add declaration.
17364 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
17365 * m2-lang.c (_initialize_m2_language): Add declaration.
17366 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
17367 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
17368 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
17369 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
17370 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
17371 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
17372 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
17373 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
17374 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
17375 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
17376 * machoread.c (_initialize_machoread): Add declaration.
17377 * macrocmd.c (_initialize_macrocmd): Add declaration.
17378 * macroscope.c (_initialize_macroscope): Add declaration.
17379 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
17380 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
17381 * maint.c (_initialize_maint_cmds): Add declaration.
17382 * mdebugread.c (_initialize_mdebugread): Add declaration.
17383 * memattr.c (_initialize_mem): Add declaration.
17384 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
17385 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
17386 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
17387 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
17388 * mi/mi-main.c (_initialize_mi_main): Add declaration.
17389 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
17390 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
17391 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
17392 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
17393 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
17394 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
17395 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
17396 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
17397 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
17398 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
17399 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
17400 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
17401 * mipsread.c (_initialize_mipsread): Add declaration.
17402 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
17403 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
17404 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
17405 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
17406 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
17407 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
17408 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
17409 * nto-procfs.c (_initialize_procfs): Add declaration.
17410 * objc-lang.c (_initialize_objc_language): Add declaration.
17411 * observable.c (_initialize_observer): Add declaration.
17412 * opencl-lang.c (_initialize_opencl_language): Add declaration.
17413 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
17414 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
17415 * osabi.c (_initialize_gdb_osabi): Add declaration.
17416 * osdata.c (_initialize_osdata): Add declaration.
17417 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
17418 * parse.c (_initialize_parse): Add declaration.
17419 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
17420 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
17421 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
17422 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
17423 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
17424 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
17425 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
17426 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
17427 * printcmd.c (_initialize_printcmd): Add declaration.
17428 * probe.c (_initialize_probe): Add declaration.
17429 * proc-api.c (_initialize_proc_api): Add declaration.
17430 * proc-events.c (_initialize_proc_events): Add declaration.
17431 * proc-service.c (_initialize_proc_service): Add declaration.
17432 * procfs.c (_initialize_procfs): Add declaration.
17433 * producer.c (_initialize_producer): Add declaration.
17434 * psymtab.c (_initialize_psymtab): Add declaration.
17435 * python/python.c (_initialize_python): Add declaration.
17436 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
17437 * record-btrace.c (_initialize_record_btrace): Add declaration.
17438 * record-full.c (_initialize_record_full): Add declaration.
17439 * record.c (_initialize_record): Add declaration.
17440 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
17441 * regcache.c (_initialize_regcache): Add declaration.
17442 * reggroups.c (_initialize_reggroup): Add declaration.
17443 * remote-notif.c (_initialize_notif): Add declaration.
17444 * remote-sim.c (_initialize_remote_sim): Add declaration.
17445 * remote.c (_initialize_remote): Add declaration.
17446 * reverse.c (_initialize_reverse): Add declaration.
17447 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
17448 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
17449 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
17450 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
17451 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
17452 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
17453 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
17454 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
17455 Add declaration.
17456 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
17457 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
17458 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
17459 * rust-exp.y (_initialize_rust_exp): Add declaration.
17460 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
17461 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
17462 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
17463 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
17464 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
17465 * score-tdep.c (_initialize_score_tdep): Add declaration.
17466 * ser-go32.c (_initialize_ser_dos): Add declaration.
17467 * ser-mingw.c (_initialize_ser_windows): Add declaration.
17468 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
17469 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
17470 * ser-uds.c (_initialize_ser_socket): Add declaration.
17471 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
17472 * serial.c (_initialize_serial): Add declaration.
17473 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
17474 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
17475 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
17476 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
17477 * skip.c (_initialize_step_skip): Add declaration.
17478 * sol-thread.c (_initialize_sol_thread): Add declaration.
17479 * solib-aix.c (_initialize_solib_aix): Add declaration.
17480 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
17481 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
17482 * solib-frv.c (_initialize_frv_solib): Add declaration.
17483 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
17484 * solib-target.c (_initialize_solib_target): Add declaration.
17485 * solib.c (_initialize_solib): Add declaration.
17486 * source-cache.c (_initialize_source_cache): Add declaration.
17487 * source.c (_initialize_source): Add declaration.
17488 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
17489 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
17490 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
17491 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
17492 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
17493 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
17494 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
17495 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
17496 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
17497 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
17498 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
17499 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
17500 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
17501 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
17502 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
17503 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
17504 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
17505 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
17506 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
17507 * stabsread.c (_initialize_stabsread): Add declaration.
17508 * stack.c (_initialize_stack): Add declaration.
17509 * stap-probe.c (_initialize_stap_probe): Add declaration.
17510 * std-regs.c (_initialize_frame_reg): Add declaration.
17511 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
17512 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
17513 * symfile.c (_initialize_symfile): Add declaration.
17514 * symmisc.c (_initialize_symmisc): Add declaration.
17515 * symtab.c (_initialize_symtab): Add declaration.
17516 * target.c (_initialize_target): Add declaration.
17517 * target-connection.c (_initialize_target_connection): Add
17518 declaration.
17519 * target-dcache.c (_initialize_target_dcache): Add declaration.
17520 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
17521 * thread.c (_initialize_thread): Add declaration.
17522 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
17523 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
17524 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
17525 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
17526 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
17527 * tracectf.c (_initialize_ctf): Add declaration.
17528 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
17529 * tracefile.c (_initialize_tracefile): Add declaration.
17530 * tracepoint.c (_initialize_tracepoint): Add declaration.
17531 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
17532 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
17533 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
17534 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
17535 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
17536 * tui/tui-win.c (_initialize_tui_win): Add declaration.
17537 * tui/tui.c (_initialize_tui): Add declaration.
17538 * typeprint.c (_initialize_typeprint): Add declaration.
17539 * ui-style.c (_initialize_ui_style): Add declaration.
17540 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
17541 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
17542 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
17543 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
17544 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
17545 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
17546 * unittests/filtered_iterator-selftests.c
17547 (_initialize_filtered_iterator_selftests): Add declaration.
17548 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
17549 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
17550 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
17551 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
17552 * unittests/main-thread-selftests.c
17553 (_initialize_main_thread_selftests): Add declaration.
17554 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
17555 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
17556 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
17557 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
17558 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
17559 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
17560 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
17561 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
17562 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
17563 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
17564 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
17565 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
17566 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17567 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17568 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17569 declaration.
17570 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17571 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17572 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17573 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17574 * user-regs.c (_initialize_user_regs): Add declaration.
17575 * utils.c (_initialize_utils): Add declaration.
17576 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17577 * valops.c (_initialize_valops): Add declaration.
17578 * valprint.c (_initialize_valprint): Add declaration.
17579 * value.c (_initialize_values): Add declaration.
17580 * varobj.c (_initialize_varobj): Add declaration.
17581 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17582 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17583 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17584 * windows-nat.c (_initialize_windows_nat): Add declaration.
17585 (_initialize_check_for_gdb_ini): Add declaration.
17586 (_initialize_loadable): Add declaration.
17587 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17588 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17589 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17590 * xcoffread.c (_initialize_xcoffread): Add declaration.
17591 * xml-support.c (_initialize_xml_support): Add declaration.
17592 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17593 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17594 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17595 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17596
e2de1eec
SM
175972020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17598
17599 * regformats/regdat.sh: Generate declaration for init function.
17600
e0037b4c
SM
176012020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17602
17603 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17604 up.
17605 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17606 close_one_inferior>: New methods.
17607 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17608 pass down target to find_inferior_pid.
17609 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17610 Pass down target to find_inferior_ptid.
17611 (gdbsim_target::create_inferior): Pass down target to
17612 add_thread_silent.
17613 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17614 target down to find_inferior_ptid and switch_to_thread.
17615 (gdbsim_target::close): Update to call close_one_inferior.
17616 (struct resume_data): Remove.
17617 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17618 directly, rather than through a void pointer.
17619 (gdbsim_target::resume): Update to call resume_one_inferior.
17620
58920b5b
SM
176212020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17622
17623 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17624
4ec89149
PA
176252020-01-12 Pedro Alves <palves@redhat.com>
17626
17627 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17628 directly for the current inferior instead of
17629 discard_all_inferiors.
17630 (discard_all_inferiors): Delete.
17631
7c392d1d
TT
176322020-01-11 Tom Tromey <tom@tromey.com>
17633
17634 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17635 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17636 deprecated_safe_get_selected_frame.
17637
d9ebdab7
TBA
176382020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17639
17640 * inferior.c (print_inferior): Switch inferior before printing it.
17641
f3c469b9
PA
176422020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17643 Pedro Alves <palves@redhat.com>
17644
17645 * progspace-and-thread.c (switch_to_program_space_and_thread):
17646 Assert there's an inferior for PSPACE. Use
17647 switch_to_inferior_no_thread to switch the inferior too.
17648 * progspace.c (program_space::~program_space): Call
17649 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17650 (program_space::free_all_objfiles): Don't call clear_symtab_users
17651 here.
17652 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17653
65c574f6
PA
176542020-01-10 Pedro Alves <palves@redhat.com>
17655
17656 * NEWS: Mention multi-target debugging, "info connections", and
17657 "add-inferior -no-connection".
17658
2f4fcf00
PA
176592020-01-10 Pedro Alves <palves@redhat.com>
17660
17661 * infrun.c: Include "target-connection.h".
17662 (check_multi_target_resumption): New.
17663 (proceed): Call it.
17664 * target-connection.c (make_target_connection_string): Make
17665 extern.
17666 * target-connection.h (make_target_connection_string): Declare.
17667
121b3efd
PA
176682020-01-10 Pedro Alves <palves@redhat.com>
17669
17670 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17671 * inferior.c (uiout_field_connection): New function.
17672 (print_inferior): Add new "connection-id" column.
17673 (add_inferior_command): Show connection number/string of added
17674 inferior.
17675 * process-stratum-target.h
17676 (process_stratum_target::connection_string): New virtual method.
17677 (process_stratum_target::connection_number): New field.
17678 * remote.c (remote_target::connection_string): New override.
17679 * target-connection.c: New file.
17680 * target-connection.h: New file.
17681 * target.c (decref_target): Remove process_stratum targets from
17682 the connection list.
17683 (target_stack::push): Add process_stratum targets to the
17684 connection list.
17685
4f837581
PA
176862020-01-10 Pedro Alves <palves@redhat.com>
17687
17688 Revert:
17689 2016-04-12 Pedro Alves <palves@redhat.com>
17690 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17691 Remove references to name.
17692 * serial.h (struct serial) <name>: Delete.
17693
f4ec508e
PA
176942020-01-10 Pedro Alves <palves@redhat.com>
17695
17696 * gdbarch-selftests.c (register_to_value_test): Remove "target
17697 already pushed" check.
17698
5b6d1e4f
PA
176992020-01-10 Pedro Alves <palves@redhat.com>
17700 John Baldwin <jhb@FreeBSD.org>
17701
17702 * aarch64-linux-nat.c
17703 (aarch64_linux_nat_target::thread_architecture): Adjust.
17704 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17705 (task_command_1): Likewise.
17706 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17707 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17708 (aix_thread_target::store_registers)
17709 (aix_thread_target::thread_alive): Adjust.
17710 * amd64-fbsd-tdep.c: Include "inferior.h".
17711 (amd64fbsd_get_thread_local_address): Pass down target.
17712 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17713 thread's gdbarch instead of target_gdbarch.
17714 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17715 get_last_target_status.
17716 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17717 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17718 inferiors.
17719 (update_inserted_breakpoint_locations): Skip if inferiors with no
17720 execution.
17721 (update_global_location_list): When handling moribund locations,
17722 find representative inferior for location's pspace, and use thread
17723 count of its process_stratum target.
17724 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17725 * bsd-uthread.c (bsd_uthread_target::wait): Use
17726 as_process_stratum_target and adjust thread_change_ptid and
17727 add_thread calls.
17728 (bsd_uthread_target::update_thread_list): Use
17729 as_process_stratum_target and adjust find_thread_ptid,
17730 thread_change_ptid and add_thread calls.
17731 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17732 find_thread_ptid call.
17733 * corelow.c (add_to_thread_list): Adjust add_thread call.
17734 (core_target_open): Adjust add_thread_silent and thread_count
17735 calls.
17736 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17737 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17738 * event-top.c (async_disconnect): Pop targets from all inferiors.
17739 * exec.c (add_target_sections): Push exec target on all inferiors
17740 sharing the program space.
17741 (remove_target_sections): Remove the exec target from all
17742 inferiors sharing the program space.
17743 (exec_on_vfork): New.
17744 * exec.h (exec_on_vfork): Declare.
17745 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17746 Pass it down.
17747 (fbsd_nat_target::update_thread_list): Adjust.
17748 (fbsd_nat_target::resume): Adjust.
17749 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17750 down.
17751 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17752 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17753 get_thread_arch_regcache call.
17754 * fork-child.c (gdb_startup_inferior): Pass target down to
17755 startup_inferior and set_executing.
17756 * gdbthread.h (struct process_stratum_target): Forward declare.
17757 (add_thread, add_thread_silent, add_thread_with_info)
17758 (in_thread_list): Add process_stratum_target parameter.
17759 (find_thread_ptid(inferior*, ptid_t)): New overload.
17760 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17761 parameter.
17762 (all_threads()): Delete overload.
17763 (all_threads, all_non_exited_threads): Add process_stratum_target
17764 parameter.
17765 (all_threads_safe): Use brace initialization.
17766 (thread_count): Add process_stratum_target parameter.
17767 (set_resumed, set_running, set_stop_requested, set_executing)
17768 (threads_are_executing, finish_thread_state): Add
17769 process_stratum_target parameter.
17770 (switch_to_thread): Use is_current_thread.
17771 * i386-fbsd-tdep.c: Include "inferior.h".
17772 (i386fbsd_get_thread_local_address): Pass down target.
17773 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17774 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17775 have_inferiors check.
17776 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17777 (inf_ptrace_target::attach): Adjust.
17778 * infcall.c (run_inferior_call): Adjust.
17779 * infcmd.c (run_command_1): Pass target to
17780 scoped_finish_thread_state.
17781 (proceed_thread_callback): Skip inferiors with no execution.
17782 (continue_command): Rename 'all_threads' local to avoid hiding
17783 'all_threads' function. Adjust get_last_target_status call.
17784 (prepare_one_step): Adjust set_running call.
17785 (signal_command): Use user_visible_resume_target. Compare thread
17786 pointers instead of inferior_ptid.
17787 (info_program_command): Adjust to pass down target.
17788 (attach_command): Mark target's 'thread_executing' flag.
17789 (stop_current_target_threads_ns): New, factored out from ...
17790 (interrupt_target_1): ... this. Switch inferior before making
17791 target calls.
17792 * inferior-iter.h
17793 (struct all_inferiors_iterator, struct all_inferiors_range)
17794 (struct all_inferiors_safe_range)
17795 (struct all_non_exited_inferiors_range): Filter on
17796 process_stratum_target too. Remove explicit.
17797 * inferior.c (inferior::inferior): Push dummy target on target
17798 stack.
17799 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17800 Add process_stratum_target parameter, and pass it down.
17801 (have_live_inferiors): Adjust.
17802 (switch_to_inferior_and_push_target): New.
17803 (add_inferior_command, clone_inferior_command): Handle
17804 "-no-connection" parameter. Use
17805 switch_to_inferior_and_push_target.
17806 (_initialize_inferior): Mention "-no-connection" option in
17807 the help of "add-inferior" and "clone-inferior" commands.
17808 * inferior.h: Include "process-stratum-target.h".
17809 (interrupt_target_1): Use bool.
17810 (struct inferior) <push_target, unpush_target, target_is_pushed,
17811 find_target_beneath, top_target, process_target, target_at,
17812 m_stack>: New.
17813 (discard_all_inferiors): Delete.
17814 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17815 (all_inferiors, all_non_exited_inferiors): Add
17816 process_stratum_target parameter.
17817 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17818 (target_last_proc_target): New global.
17819 (follow_fork_inferior): Push target on new inferior. Pass target
17820 to add_thread_silent. Call exec_on_vfork. Handle target's
17821 reference count.
17822 (follow_fork): Adjust get_last_target_status call. Also consider
17823 target.
17824 (follow_exec): Push target on new inferior.
17825 (struct execution_control_state) <target>: New field.
17826 (user_visible_resume_target): New.
17827 (do_target_resume): Call target_async.
17828 (resume_1): Set target's threads_executing flag. Consider resume
17829 target.
17830 (commit_resume_all_targets): New.
17831 (proceed): Also consider resume target. Skip threads of inferiors
17832 with no execution. Commit resumtion in all targets.
17833 (start_remote): Pass current inferior to wait_for_inferior.
17834 (infrun_thread_stop_requested): Consider target as well. Pass
17835 thread_info pointer to clear_inline_frame_state instead of ptid.
17836 (infrun_thread_thread_exit): Consider target as well.
17837 (random_pending_event_thread): New inferior parameter. Use it.
17838 (do_target_wait): Rename to ...
17839 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17840 down.
17841 (threads_are_resumed_pending_p, do_target_wait): New.
17842 (prepare_for_detach): Adjust calls.
17843 (wait_for_inferior): New inferior parameter. Handle it. Use
17844 do_target_wait_1 instead of do_target_wait.
17845 (fetch_inferior_event): Adjust. Switch to representative
17846 inferior. Pass target down.
17847 (set_last_target_status): Add process_stratum_target parameter.
17848 Save target in global.
17849 (get_last_target_status): Add process_stratum_target parameter and
17850 handle it.
17851 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17852 (context_switch): Check inferior_ptid == null_ptid before calling
17853 inferior_thread().
17854 (get_inferior_stop_soon): Pass down target.
17855 (wait_one): Rename to ...
17856 (poll_one_curr_target): ... this.
17857 (struct wait_one_event): New.
17858 (wait_one): New.
17859 (stop_all_threads): Adjust.
17860 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17861 event's target.
17862 (switch_back_to_stepped_thread): Also consider target.
17863 (print_stop_event): Update.
17864 (normal_stop): Update. Also consider the resume target.
17865 * infrun.h (wait_for_inferior): Remove declaration.
17866 (user_visible_resume_target): New declaration.
17867 (get_last_target_status, set_last_target_status): New
17868 process_stratum_target parameter.
17869 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17870 process_stratum_target parameter, and use it.
17871 (clear_inline_frame_state (thread_info*)): New.
17872 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17873 process_stratum_target parameter.
17874 (clear_inline_frame_state (thread_info*)): Declare.
17875 * linux-fork.c (delete_checkpoint_command): Pass target down to
17876 find_thread_ptid.
17877 (checkpoint_command): Adjust.
17878 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17879 instead of just tweaking inferior_ptid.
17880 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17881 (exit_lwp): Pass target down to find_thread_ptid.
17882 (attach_proc_task_lwp_callback): Pass target down to
17883 add_thread/set_running/set_executing.
17884 (linux_nat_target::attach): Pass target down to
17885 thread_change_ptid.
17886 (get_detach_signal): Pass target down to find_thread_ptid.
17887 Consider last target status's target.
17888 (linux_resume_one_lwp_throw, resume_lwp)
17889 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17890 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17891 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17892 (linux_nat_target::async_wait_fd): New.
17893 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17894 target down.
17895 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17896 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17897 * linux-thread-db.c (struct thread_db_info::process_target): New
17898 field.
17899 (add_thread_db_info): Save target.
17900 (get_thread_db_info): New process_stratum_target parameter. Also
17901 match target.
17902 (delete_thread_db_info): New process_stratum_target parameter.
17903 Also match target.
17904 (thread_from_lwp): Adjust to pass down target.
17905 (thread_db_notice_clone): Pass down target.
17906 (check_thread_db_callback): Pass down target.
17907 (try_thread_db_load_1): Always push the thread_db target.
17908 (try_thread_db_load, record_thread): Pass target down.
17909 (thread_db_target::detach): Pass target down. Always unpush the
17910 thread_db target.
17911 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17912 target down. Always unpush the thread_db target.
17913 (find_new_threads_callback, thread_db_find_new_threads_2)
17914 (thread_db_target::update_thread_list): Pass target down.
17915 (thread_db_target::pid_to_str): Pass current inferior down.
17916 (thread_db_target::get_thread_local_address): Pass target down.
17917 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17918 target down.
17919 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17920 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17921 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17922 (procfs_init_inferior): Rename to ...
17923 (procfs_target::procfs_init_inferior): ... this and adjust.
17924 (procfs_target::create_inferior, procfs_notice_thread)
17925 (procfs_do_thread_registers): Adjust.
17926 * ppc-fbsd-tdep.c: Include "inferior.h".
17927 (ppcfbsd_get_thread_local_address): Pass down target.
17928 * proc-service.c (ps_xfer_memory): Switch current inferior and
17929 program space as well.
17930 (get_ps_regcache): Pass target down.
17931 * process-stratum-target.c
17932 (process_stratum_target::thread_address_space)
17933 (process_stratum_target::thread_architecture): Pass target down.
17934 * process-stratum-target.h
17935 (process_stratum_target::threads_executing): New field.
17936 (as_process_stratum_target): New.
17937 * ravenscar-thread.c
17938 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17939 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17940 down.
17941 * record-btrace.c (record_btrace_target::info_record): Adjust.
17942 (record_btrace_target::record_method)
17943 (record_btrace_target::record_is_replaying)
17944 (record_btrace_target::fetch_registers)
17945 (get_thread_current_frame_id, record_btrace_target::resume)
17946 (record_btrace_target::wait, record_btrace_target::stop): Pass
17947 target down.
17948 * record-full.c (record_full_wait_1): Switch to event thread.
17949 Pass target down.
17950 * regcache.c (regcache::regcache)
17951 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17952 process_stratum_target parameter and handle it.
17953 (current_thread_target): New global.
17954 (get_thread_regcache): Add process_stratum_target parameter and
17955 handle it. Switch inferior before calling target method.
17956 (get_thread_regcache): Pass target down.
17957 (get_thread_regcache_for_ptid): Pass target down.
17958 (registers_changed_ptid): Add process_stratum_target parameter and
17959 handle it.
17960 (registers_changed_thread, registers_changed): Pass target down.
17961 (test_get_thread_arch_aspace_regcache): New.
17962 (current_regcache_test): Define a couple local test_target_ops
17963 instances and use them for testing.
17964 (readwrite_regcache): Pass process_stratum_target parameter.
17965 (cooked_read_test, cooked_write_test): Pass mock_target down.
17966 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17967 (get_thread_arch_aspace_regcache): Add process_stratum_target
17968 parameter.
17969 (regcache::target): New method.
17970 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17971 (regcache::registers_changed_ptid): Add process_stratum_target
17972 parameter.
17973 (regcache::m_target): New field.
17974 (registers_changed_ptid): Add process_stratum_target parameter.
17975 * remote.c (remote_state::supports_vCont_probed): New field.
17976 (remote_target::async_wait_fd): New method.
17977 (remote_unpush_and_throw): Add remote_target parameter.
17978 (get_current_remote_target): Adjust.
17979 (remote_target::remote_add_inferior): Push target.
17980 (remote_target::remote_add_thread)
17981 (remote_target::remote_notice_new_inferior)
17982 (get_remote_thread_info): Pass target down.
17983 (remote_target::update_thread_list): Skip threads of inferiors
17984 bound to other targets. (remote_target::close): Don't discard
17985 inferiors. (remote_target::add_current_inferior_and_thread)
17986 (remote_target::process_initial_stop_replies)
17987 (remote_target::start_remote)
17988 (remote_target::remote_serial_quit_handler): Pass down target.
17989 (remote_target::remote_unpush_target): New remote_target
17990 parameter. Unpush the target from all inferiors.
17991 (remote_target::remote_unpush_and_throw): New remote_target
17992 parameter. Pass it down.
17993 (remote_target::open_1): Check whether the current inferior has
17994 execution instead of checking whether any inferior is live. Pass
17995 target down.
17996 (remote_target::remote_detach_1): Pass down target. Use
17997 remote_unpush_target.
17998 (extended_remote_target::attach): Pass down target.
17999 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
18000 (remote_target::append_resumption): Pass down target.
18001 (remote_target::append_pending_thread_resumptions)
18002 (remote_target::remote_resume_with_hc, remote_target::resume)
18003 (remote_target::commit_resume): Pass down target.
18004 (remote_target::remote_stop_ns): Check supports_vCont_probed.
18005 (remote_target::interrupt_query)
18006 (remote_target::remove_new_fork_children)
18007 (remote_target::check_pending_events_prevent_wildcard_vcont)
18008 (remote_target::remote_parse_stop_reply)
18009 (remote_target::process_stop_reply): Pass down target.
18010 (first_remote_resumed_thread): New remote_target parameter. Pass
18011 it down.
18012 (remote_target::wait_as): Pass down target.
18013 (unpush_and_perror): New remote_target parameter. Pass it down.
18014 (remote_target::readchar, remote_target::remote_serial_write)
18015 (remote_target::getpkt_or_notif_sane_1)
18016 (remote_target::kill_new_fork_children, remote_target::kill): Pass
18017 down target.
18018 (remote_target::mourn_inferior): Pass down target. Use
18019 remote_unpush_target.
18020 (remote_target::core_of_thread)
18021 (remote_target::remote_btrace_maybe_reopen): Pass down target.
18022 (remote_target::pid_to_exec_file)
18023 (remote_target::thread_handle_to_thread_info): Pass down target.
18024 (remote_target::async_wait_fd): New.
18025 * riscv-fbsd-tdep.c: Include "inferior.h".
18026 (riscv_fbsd_get_thread_local_address): Pass down target.
18027 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
18028 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
18029 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
18030 Adjust.
18031 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
18032 * solib-svr4.c (enable_break): Pass down target.
18033 * spu-multiarch.c (parse_spufs_run): Pass down target.
18034 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
18035 * target-delegates.c: Regenerate.
18036 * target.c (g_target_stack): Delete.
18037 (current_top_target): Return the current inferior's top target.
18038 (target_has_execution_1): Refer to the passed-in inferior's top
18039 target.
18040 (target_supports_terminal_ours): Check whether the initial
18041 inferior was already created.
18042 (decref_target): New.
18043 (target_stack::push): Incref/decref the target.
18044 (push_target, push_target, unpush_target): Adjust.
18045 (target_stack::unpush): Defref target.
18046 (target_is_pushed): Return bool. Adjust to refer to the current
18047 inferior's target stack.
18048 (dispose_inferior): Delete, and inline parts ...
18049 (target_preopen): ... here. Only dispose of the current inferior.
18050 (target_detach): Hold strong target reference while detaching.
18051 Pass target down.
18052 (target_thread_name): Add assertion.
18053 (target_resume): Pass down target.
18054 (target_ops::beneath, find_target_at): Adjust to refer to the
18055 current inferior's target stack.
18056 (get_dummy_target): New.
18057 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
18058 has a thread running.
18059 (initialize_targets): Rename to ...
18060 (_initialize_target): ... this.
18061 * target.h: Include "gdbsupport/refcounted-object.h".
18062 (struct target_ops): Inherit refcounted_object.
18063 (target_ops::shortname, target_ops::longname): Make const.
18064 (target_ops::async_wait_fd): New method.
18065 (decref_target): Declare.
18066 (struct target_ops_ref_policy): New.
18067 (target_ops_ref): New typedef.
18068 (get_dummy_target): Declare function.
18069 (target_is_pushed): Return bool.
18070 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
18071 (all_matching_threads_iterator::all_matching_threads_iterator):
18072 Handle filter target.
18073 * thread-iter.h (struct all_matching_threads_iterator, struct
18074 all_matching_threads_range, class all_non_exited_threads_range):
18075 Filter by target too. Remove explicit.
18076 * thread.c (threads_executing): Delete.
18077 (inferior_thread): Pass down current inferior.
18078 (clear_thread_inferior_resources): Pass down thread pointer
18079 instead of ptid_t.
18080 (add_thread_silent, add_thread_with_info, add_thread): Add
18081 process_stratum_target parameter. Use it for thread and inferior
18082 searches.
18083 (is_current_thread): New.
18084 (thread_info::deletable): Use it.
18085 (find_thread_ptid, thread_count, in_thread_list)
18086 (thread_change_ptid, set_resumed, set_running): New
18087 process_stratum_target parameter. Pass it down.
18088 (set_executing): New process_stratum_target parameter. Pass it
18089 down. Adjust reference to 'threads_executing'.
18090 (threads_are_executing): New process_stratum_target parameter.
18091 Adjust reference to 'threads_executing'.
18092 (set_stop_requested, finish_thread_state): New
18093 process_stratum_target parameter. Pass it down.
18094 (switch_to_thread): Also match inferior.
18095 (switch_to_thread): New process_stratum_target parameter. Pass it
18096 down.
18097 (update_threads_executing): Reimplement.
18098 * top.c (quit_force): Pop targets from all inferior.
18099 (gdb_init): Don't call initialize_targets.
18100 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
18101 Declare.
18102 (windows_add_thread, windows_delete_thread): Adjust.
18103 (get_windows_debug_event): Rename to ...
18104 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
18105 * tracefile-tfile.c (tfile_target_open): Pass down target.
18106 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
18107 Forward declare.
18108 (switch_to_thread): Add process_stratum_target parameter.
18109 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
18110 parameter. Use it.
18111 (mi_on_resume): Pass target down.
18112 * nat/fork-inferior.c (startup_inferior): Add
18113 process_stratum_target parameter. Pass it down.
18114 * nat/fork-inferior.h (startup_inferior): Add
18115 process_stratum_target parameter.
18116 * python/py-threadevent.c (py_get_event_thread): Pass target down.
18117
75c6c844
PA
181182020-01-10 Pedro Alves <palves@redhat.com>
18119
18120 * remote.c (remote_target::start_remote): Don't set inferior_ptid
18121 directly. Instead find the first thread in the thread list and
18122 use switch_to_thread.
18123
78f2c40a
PA
181242020-01-10 Pedro Alves <palves@redhat.com>
18125
18126 * remote.c (remote_target::remote_add_inferior): Don't bind a
18127 process to the current inferior if the current inferior is already
18128 bound to a process.
18129
e7af6c70
TBA
181302020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
18131 Pedro Alves <palves@redhat.com>
18132
18133 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
18134 If no process is specified, return null_ptid instead of
18135 inferior_ptid.
18136 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
18137 TARGET_WAITKIND_SIGNALLED with no pid.
18138
31ba933e
PA
181392020-01-10 Pedro Alves <palves@redhat.com>
18140
18141 * remote.c (first_remote_resumed_thread): New.
18142 (remote_target::wait_as): Use it as default event_ptid instead of
18143 inferior_ptid.
18144
735fc2ca
PA
181452020-01-10 Pedro Alves <palves@redhat.com>
18146
18147 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
18148
c17e02e1
PA
181492020-01-10 Pedro Alves <palves@redhat.com>
18150
18151 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
18152 not -1.
18153
ab1ddbcf
PA
181542020-01-10 Pedro Alves <palves@redhat.com>
18155
18156 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
18157 ptid to get_last_target_status.
18158 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
18159 ptid to get_last_target_status.
18160 * infcmd.c (continue_command): Don't pass a target_waitstatus to
18161 get_last_target_status.
18162 (info_program_command): Don't pass a target_waitstatus to
18163 get_last_target_status.
18164 * infrun.c (init_wait_for_inferior): Use
18165 nullify_last_target_wait_ptid.
18166 (get_last_target_status): Handle nullptr arguments.
18167 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
18168 (print_stop_event): Don't pass a ptid to get_last_target_status.
18169 (normal_stop): Don't pass a ptid to get_last_target_status.
18170 * infrun.h (get_last_target_status, set_last_target_status): Move
18171 comments here and update.
18172 (nullify_last_target_wait_ptid): Declare.
18173 * linux-fork.c (fork_load_infrun_state): Remove local extern
18174 declaration of nullify_last_target_wait_ptid.
18175 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
18176 to get_last_target_status.
18177
f3f8ece4
PA
181782020-01-10 Pedro Alves <palves@redhat.com>
18179
18180 * gdbthread.h (scoped_restore_current_thread)
18181 <dont_restore, restore, m_dont_restore>: Declare.
18182 * thread.c (thread_alive): Add assertion. Return bool.
18183 (switch_to_thread_if_alive): New.
18184 (prune_threads): Switch inferior/thread.
18185 (print_thread_info_1): Switch thread before calling target methods.
18186 (scoped_restore_current_thread::restore): New, factored out from
18187 ...
18188 (scoped_restore_current_thread::~scoped_restore_current_thread):
18189 ... this.
18190 (scoped_restore_current_thread::scoped_restore_current_thread):
18191 Add assertion.
18192 (thread_apply_all_command, thread_select): Use
18193 switch_to_thread_if_alive.
18194 * infrun.c (proceed, restart_threads, handle_signal_stop)
18195 (switch_back_to_stepped_thread): Switch current thread before
18196 calling target methods.
18197
db2d40f7
PA
181982020-01-10 Pedro Alves <palves@redhat.com>
18199
18200 * inferior.c (switch_to_inferior_no_thread): New function,
18201 factored out from ...
18202 (inferior_command): ... here.
18203 * inferior.h (switch_to_inferior_no_thread): Declare.
18204 * mi/mi-main.c (run_one_inferior): Use
18205 switch_to_inferior_no_thread.
18206
bd420a2d
PA
182072020-01-10 Pedro Alves <palves@redhat.com>
18208
18209 * infcmd.c (kill_command): Remove dead code.
18210
ddf5db90
PA
182112020-01-10 Pedro Alves <palves@redhat.com>
18212
18213 * remote.c (remote_target::mourn_inferior): No longer check
18214 whether the target is running.
18215
5018ce90
PA
182162020-01-10 Pedro Alves <palves@redhat.com>
18217
18218 * corelow.c (core_target::has_execution): Change parameter type to
18219 inferior pointer.
18220 * inferior.c (number_of_live_inferiors): Use
18221 inferior::has_execution instead of target_has_execution_1.
18222 * inferior.h (inferior::has_execution): New.
18223 * linux-thread-db.c (thread_db_target::update_thread_list): Use
18224 inferior::has_execution instead of target_has_execution_1.
18225 * process-stratum-target.c
18226 (process_stratum_target::has_execution): Change parameter type to
18227 inferior pointer. Check the inferior's PID instead of
18228 inferior_ptid.
18229 * process-stratum-target.h
18230 (process_stratum_target::has_execution): Change parameter type to
18231 inferior pointer.
18232 * record-full.c (record_full_core_target::has_execution): Change
18233 parameter type to inferior pointer.
18234 * target.c (target_has_execution_1): Change parameter type to
18235 inferior pointer.
18236 (target_has_execution_current): Adjust.
18237 * target.h (target_ops::has_execution): Change parameter type to
18238 inferior pointer.
18239 (target_has_execution_1): Change parameter type to inferior
18240 pointer. Change return type to bool.
18241 * tracefile.h (tracefile_target::has_execution): Change parameter
18242 type to inferior pointer.
18243
74375d18
PA
182442020-01-10 Pedro Alves <palves@redhat.com>
18245
18246 * exceptions.c (print_flush): Remove current_top_target() check.
18247
acdf84a6
PA
182482020-01-10 Pedro Alves <palves@redhat.com>
18249
18250 * remote.c (show_remote_exec_file): Show the current inferior's
18251 exec-file instead of the command variable's value.
18252
ec506636
PA
182532020-01-10 Pedro Alves <palves@redhat.com>
18254
18255 * record-full.c (record_full_resume_ptid): New global.
18256 (record_full_target::resume): Set it.
18257 (record_full_wait_1): Use record_full_resume_ptid instead of
18258 inferior_ptid.
18259
873657b9
PA
182602020-01-10 Pedro Alves <palves@redhat.com>
18261
18262 * gdbthread.h (scoped_restore_current_thread)
18263 <dont_restore, restore, m_dont_restore>: Declare.
18264 * thread.c (thread_alive): Add assertion. Return bool.
18265 (switch_to_thread_if_alive): New.
18266 (prune_threads): Switch inferior/thread.
18267 (print_thread_info_1): Switch thread before calling target methods.
18268 (scoped_restore_current_thread::restore): New, factored out from
18269 ...
18270 (scoped_restore_current_thread::~scoped_restore_current_thread):
18271 ... this.
18272 (scoped_restore_current_thread::scoped_restore_current_thread):
18273 Add assertion.
18274 (thread_apply_all_command, thread_select): Use
18275 switch_to_thread_if_alive.
18276
7f0ae84c
GB
182772020-01-10 George Barrett <bob@bob131.so>
18278
18279 * stap-probe.c (stap_modify_semaphore): Don't check for null
18280 semaphores.
18281 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
18282 for null semaphores.
18283
f5a7c406
AB
182842020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18285
18286 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
18287 all source windows, and maintain horizontal scroll status while
18288 doing so.
18289
9ae6bf64
TT
182902020-01-09 Tom Tromey <tom@tromey.com>
18291
18292 PR tui/18932:
18293 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
18294 update_source_window, not print_source_lines.
18295
b2efe70c
AB
182962020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18297
18298 * tui/tui.c (tui_enable): Register tui hooks after calling
18299 tui_display_main.
18300
5f23a082
CB
183012020-01-09 Christian Biesinger <cbiesinger@google.com>
18302
18303 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
18304
3061113b
SM
183052020-01-08 Simon Marchi <simon.marchi@efficios.com>
18306
18307 * thread.c (print_thread_info_1): Fix indentation.
18308
57d75002
CB
183092020-01-09 Christian Biesinger <cbiesinger@google.com>
18310
18311 * symtab.c (general_symbol_info::compute_and_set_names): Move the
18312 unique_xmalloc_ptr outside the if to always free the demangled name.
18313
6a053cb1
TT
183142020-01-08 Tom Tromey <tromey@adacore.com>
18315
18316 * xcoffread.c (enter_line_range, read_xcoff_symtab)
18317 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
18318 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
18319 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
18320 Remove.
18321 (section_offsets): New typedef.
18322 * symtab.c (fixup_section, get_msymbol_address): Update.
18323 * symmisc.c (dump_msymbols): Update.
18324 * symfile.h (relative_addr_info_to_section_offsets)
18325 (symfile_map_offsets_to_segments): Update.
18326 * symfile.c (build_section_addr_info_from_objfile)
18327 (init_objfile_sect_indices): Update.
18328 (struct place_section_arg): Change type of "offsets".
18329 (place_section): Update.
18330 (relative_addr_info_to_section_offsets): Change type of
18331 "section_offsets". Remove "num_sections" parameter.
18332 (default_symfile_offsets, syms_from_objfile_1)
18333 (set_objfile_default_section_offset): Update.
18334 (reread_symbols): No need to preserve section offsets by hand.
18335 (symfile_map_offsets_to_segments): Change type of "offsets".
18336 * stap-probe.c (relocate_address): Update.
18337 * stabsread.h (process_one_symbol): Update.
18338 * solib-target.c (struct lm_info_target) <offsets>: Change type.
18339 (solib_target_relocate_section_addresses): Update.
18340 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
18341 Update.
18342 * solib-frv.c (frv_relocate_main_executable): Update.
18343 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
18344 * solib-aix.c (solib_aix_get_section_offsets): Change return
18345 type.
18346 (solib_aix_solib_create_inferior_hook): Update.
18347 * remote.c (remote_target::get_offsets): Update.
18348 * psymtab.c (find_pc_sect_psymtab): Update.
18349 * psympriv.h (struct partial_symbol) <address, text_low,
18350 text_high>: Update.
18351 * objfiles.h (obj_section_offset): Update.
18352 (struct objfile) <section_offsets>: Change type.
18353 <num_sections>: Remove.
18354 (objfile_relocate): Update.
18355 * objfiles.c (entry_point_address_query): Update
18356 (relocate_one_symbol): Change type of "section_offsets".
18357 (objfile_relocate1, objfile_relocate1): Change type of
18358 "new_offsets".
18359 (objfile_rebase1): Update.
18360 * mipsread.c (mipscoff_symfile_read): Update.
18361 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
18362 parameter.
18363 * mdebugread.c (parse_symbol): Change type of "section_offsets".
18364 (parse_external, psymtab_to_symtab_1): Update.
18365 * machoread.c (macho_symfile_offsets): Update.
18366 * ia64-tdep.c (ia64_find_unwind_table): Update.
18367 * hppa-tdep.c (read_unwind_info): Update.
18368 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
18369 * dwarf2read.c (create_addrmap_from_index)
18370 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
18371 (process_psymtab_comp_unit_reader, add_partial_symbol)
18372 (add_partial_subprogram, process_full_comp_unit)
18373 (read_file_scope, read_func_scope, read_lexical_block_scope)
18374 (read_call_site_scope, dwarf2_rnglists_process)
18375 (dwarf2_ranges_process, dwarf2_ranges_read)
18376 (dwarf_decode_lines_1, var_decode_location, new_symbol)
18377 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
18378 Update.
18379 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
18380 Update.
18381 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
18382 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
18383 (process_one_symbol): Change type of "section_offsets".
18384 * ctfread.c (get_objfile_text_range): Update.
18385 * coffread.c (coff_symtab_read, enter_linenos)
18386 (process_coff_symbol): Update.
18387 * coff-pe-read.c (add_pe_forwarded_sym): Update.
18388 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
18389
456e800a
TT
183902020-01-08 Tom Tromey <tromey@adacore.com>
18391
18392 * dwarf2read.c (parse_macro_definition): Use std::string.
18393 (parse_macro_definition): Likewise.
18394
6dfa2fc2
TT
183952020-01-08 Tom Tromey <tromey@adacore.com>
18396
18397 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
18398 (ATTR_ALLOC_CHUNK): Remove.
18399
421d1616
TT
184002020-01-08 Tom Tromey <tromey@adacore.com>
18401
18402 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
18403
43816ebc
TT
184042020-01-08 Tom Tromey <tromey@adacore.com>
18405
18406 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
18407 (dwarf2_compute_name, open_dwo_file): Likewise.
18408 (process_enumeration_scope): Use std::vector.
18409 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
18410 (partial_die_info::fixup, dwarf2_start_subfile)
18411 (guess_full_die_structure_name, dwarf2_name): Likewise.
18412 (determine_prefix): Update.
18413 (guess_full_die_structure_name): Make return type const.
18414 (partial_die_full_name): Return unique_xmalloc_ptr.
18415 (DW_FIELD_ALLOC_CHUNK): Remove.
18416
4212d509
TT
184172020-01-07 Tom Tromey <tromey@adacore.com>
18418
18419 PR build/24937:
18420 * stap-probe.c (class stap_static_probe_ops): Add constructor.
18421
06a6207a
JT
184222020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18423
18424 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
18425
153d79c4
AB
184262020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
18427
18428 * stack.c (print_frame_info): Move disassemble_next_line code
18429 inside source_print block.
18430
66182876
EZ
184312020-01-06 Eli Zaretskii <eliz@gnu.org>
18432
18433 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
18434 gdb/signals.h, as we are now using native signal symbols.
18435
cbfa8581
SV
184362020-01-06 Shahab Vahedi <shahab@synopsys.com>
18437
18438 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
18439 overflow by an early check of content vs threshold.
aac66a4c 18440 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
18441 Likewise.
18442
3f602821
EZ
184432020-01-06 Eli Zaretskii <eliz@gnu.org>
18444
18445 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
18446
a08c904d
JT
184472020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18448
18449 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
18450 export table if no section contains it's RVA.
18451
89a65580
EZ
184522020-01-06 Eli Zaretskii <eliz@gnu.org>
18453
18454 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
18455
8b7fcda2
HD
184562020-01-06 Hannes Domani <ssbssa@yahoo.de>
18457
18458 * source.c (print_source_lines_base): Set last_line_listed.
18459
a61b4f69
SV
184602020-01-06 Shahab Vahedi <shahab@synopsys.com>
18461
18462 * tui/tui-disasm.c: Remove trailing spaces.
18463
559e7e50
EZ
184642020-01-06 Eli Zaretskii <eliz@gnu.org>
18465 Pedro Alves <palves@redhat.com>
18466
18467 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
18468 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
18469 (windows_gdb_signal_to_target): New function, uses the above
18470 enumeration to convert GDB internal signal codes to equivalent
18471 Windows codes.
18472 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
18473 * windows-nat.c: Include "gdb_wait.h".
18474 (get_windows_debug_event): Extract the fatal exception from the
18475 exit status and convert to the equivalent Posix signal number.
18476 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
18477 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
18478 * gdbsupport/gdb_wait.c: New file, implements
18479 windows_status_to_termsig.
18480 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
18481 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
18482
f2302a34
AB
184832020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
18484
18485 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
18486 show_layout.
18487
6a5206eb
LM
184882020-01-05 Luis Machado <luis.machado@linaro.org>
18489
18490 * aarch64-linux-nat.c
18491 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
18492 and bfd_mach_aarch64.
18493
6ec1d75e
PW
184942020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
18495
18496 * ui-file.c (stdio_file::can_emit_style_escape)
18497 (tee_file::can_emit_style_escape): Ensure style is used also on
18498 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
18499 to gdb_stdout.
18500 * main.c (set_gdb_data_directory): Use file style to output the
18501 warning that the given pathname is not a directory.
18502 * top.c (show_history_filename, gdb_safe_append_history)
18503 (show_gdb_datadir): Use file style.
18504
44f81a76
HD
185052020-01-03 Hannes Domani <ssbssa@yahoo.de>
18506
18507 * solib-target.c (struct lm_info_target):
18508 Change offsets to be a unique_xmalloc_ptr.
18509 (solib_target_relocate_section_addresses): Update.
18510
25057eb0
HD
185112020-01-03 Hannes Domani <ssbssa@yahoo.de>
18512
18513 * windows-nat.c (windows_clear_solib): Free so_list linked list.
18514
6e2118f5
BE
185152020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
18516
18517 * MAINTAINERS (Write After Approval): Add myself.
18518
8133c7dc
LM
185192020-01-02 Luis Machado <luis.machado@linaro.org>
18520
18521 * proc-service.c (get_ps_regcache): Remove reference to obsolete
18522 Cell BE architecture.
18523 * target.h (struct target_ops) <thread_architecture>: Likewise.
18524
48189bec
HD
185252020-01-01 Hannes Domani <ssbssa@yahoo.de>
18526
18527 * Makefile.in: Use INSTALL_PROGRAM_ENV.
18528
ead1063b
HD
185292020-01-01 Hannes Domani <ssbssa@yahoo.de>
18530
18531 * MAINTAINERS (Write After Approval): Add myself.
18532
e5d78223
JB
185332020-01-01 Joel Brobecker <brobecker@adacore.com>
18534
18535 * gdbarch.sh: Update copyright year range of generated files.
18536
b811d2c2
JB
185372020-01-01 Joel Brobecker <brobecker@adacore.com>
18538
18539 Update copyright year range in all GDB files.
18540
5f4def5c
JB
185412020-01-01 Joel Brobecker <brobecker@adacore.com>
18542
18543 * copyright.py: Convert to Python 3.
18544
51fd4002
JB
185452020-01-01 Joel Brobecker <brobecker@adacore.com>
18546
18547 * copyright.py: Adapt after move of gnulib directory from gdb
18548 directory to toplevel directory.
18549
5fb651f2
JB
185502020-01-01 Joel Brobecker <brobecker@adacore.com>
18551
18552 * copyright.py (main): Exit if run from the wrong directory.
18553
5dd8bf88
JB
185542020-01-01 Joel Brobecker <brobecker@adacore.com>
18555
18556 * top.c (print_gdb_version): Change copyright year to 2020.
18557
9f71dacb 185582020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 18559
9f71dacb 18560 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 18561
9f71dacb 18562For older changes see ChangeLog-2019.
c906108c
SS
18563\f
18564Local Variables:
18565mode: change-log
18566left-margin: 8
18567fill-column: 74
18568version-control: never
57da7796 18569coding: utf-8
c906108c 18570End:
This page took 3.308689 seconds and 4 git commands to generate.