Don't inherit range-type signed-ness from underlying type
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-10-26 Tom Tromey <tromey@adacore.com>
2
3 * gdbtypes.c (create_range_type): Revert previous patch. Add
4 comment.
5
6 2020-10-26 Pedro Alves <pedro@palves.net>
7
8 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
9 (my_waitpid): Use gdb::handle_eintr.
10
11 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
12
13 * acinclude.m4: Update ptrace.m4 path.
14 * ptrace.m4: Moved to gdbsupport.
15
16 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
17
18 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
19 instead of target_gdbarch.
20
21 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
22
23 * jit.c (jit_reader_load_command): Pass current inferior.
24 (jit_inferior_init): Change parameter type to inferior, use it.
25 (jit_inferior_created): Remove.
26 (jit_inferior_created_hook): Pass inferior parameter down.
27 (_initialize_jit): Use jit_inferior_created_hook instead of
28 jit_inferior_created.
29 * jit.h (jit_inferior_created_hook): Add inferior parameter.
30 * infrun.c (follow_exec): Pass inferior to
31 jit_inferior_created_hook.
32
33 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
34
35 * linux-thread-db.c (check_pid_namespace_match): Add inferior
36 parameter and use it.
37 (thread_db_inferior_created): Pass inferior argument.
38
39 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
40
41 * aix-thread.c (aix_thread_inferior_created): Add inferior
42 parameter.
43 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
44 * dummy-frame.c (cleanup_dummy_frames): Likewise.
45 * jit.c (jit_inferior_created): Likewise.
46 * linux-thread-db.c (thread_db_inferior_created): Likewise.
47 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
48 * observable.h (inferior_created): Likewise.
49 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
50 * symfile-mem.c (add_vsyscall_page): Likewise.
51 * infcmd.c (post_create_inferior): Pass inferior argument.
52
53 2020-10-24 Joel Brobecker <brobecker@adacore.com>
54
55 GDB 10.1 released.
56
57 2020-10-23 Joel Brobecker <brobecker@adacore.com>
58
59 * ada-typeprint.c (ada_print_type): Remove superfluous second call
60 to ada_check_typedef.
61
62 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
63
64 * f-exp.y (f_parse): Rename to...
65 (f_language::parser): ...this.
66 * f-lang.c (f_get_encoding): Rename to...
67 (f_language::get_encoding): ...this.
68 (f_op_print_tab): Rename to...
69 (f_language::op_print_tab): ...this.
70 (exp_descriptor_f): Rename to...
71 (f_language::exp_descriptor_tab): ...this.
72 (class f_language): Moved to f-lang.h.
73 (f_language::language_arch_info): New function, moved out of class
74 declaration.
75 (f_language::search_name_hash): Likewise.
76 (f_language::lookup_symbol_nonlocal): Likewise.
77 (f_language::get_symbol_name_matcher_inner): Likewise.
78 * f-lang.h: Add 'valprint.h' include.
79 (class f_language): Moved here from f-lang.c.
80 * f-typeprint.c (f_type_print_args): Delete commented out
81 declaration.
82 (f_print_typedef): Rename to...
83 (f_language::print_typedef): ...this.
84 (f_print_type): Rename to...
85 (f_language::print_type): ...this.
86 (f_type_print_varspec_prefix): Delete declaration and rename to...
87 (f_language::f_type_print_varspec_prefix): ...this.
88 (f_type_print_varspec_suffix): Delete declaration and rename to...
89 (f_language::f_type_print_varspec_suffix): ...this.
90 (f_type_print_base): Delete declaration and rename to...
91 (f_language::f_type_print_base): ...this.
92 * f-valprint.c (f_value_print_inner): Rename to...
93 (f_language::value_print_inner): ...this.
94 * parse.c: Delete 'f-lang.h' include.
95
96 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
97
98 * language.h (language_defn::print_type): Add variable names in
99 declaration, and update header comment.
100
101 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
102
103 * ada-lang.c (ada_language::demangle): Rename to...
104 (ada_language::demangle_symbol): ...this.
105 * c-lang.c (cplus_language::demangle): Rename to...
106 (cplus_language::demangle_symbol): ...this.
107 * d-lang.c (d_language::demangle): Rename to...
108 (d_language::demangle_symbol): ...this.
109 * f-lang.c (f_language::demangle): Rename to...
110 (f_language::demangle_symbol): ...this.
111 * go-lang.c (go_language::demangle): Rename to...
112 (go_language::demangle_symbol): ...this.
113 * language.c (language_demangle): Update call to demangle_symbol.
114 (auto_or_unknown_language::demangle): Rename to...
115 (auto_or_unknown_language::demangle_symbol): ...this.
116 * language.h (language_defn::demangle): Rename to...
117 (language_defn::demangle_symbol): ...this.
118 * objc-lang.c (objc_language::demangle): Rename to...
119 (objc_language::demangle_symbol): ...this.
120 * rust-lang.c (rust_language::demangle): Rename to...
121 (rust_language::demangle_symbol): ...this.
122
123 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
124
125 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
126 (iterate_over_file_blocks): Replace use of macro with the macros
127 definition.
128
129 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
130
131 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
132 * valprint.c (maybe_print_array_index): Replace use of macro with
133 the macros definition.
134
135 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
136
137 * ada-lang.c (ada_language::print_array_index): Call value_print
138 directly.
139 * language.c (language_defn::print_array_index): Likewise.
140 * language.h (LA_VALUE_PRINT): Delete.
141 * valprint.c (value_print): Call value_print on the
142 current_language directly.
143
144 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
145
146 * language.h (LA_PRINT_TYPEDEF): Delete.
147 * typeprint.c (typedef_print): Call print_typedef directly on the
148 current_language object.
149
150 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
151
152 * m2-exp.y (m2_parse): Rename to...
153 (m2_language::parser): ...this. Update function signature.
154 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
155 (m2_op_print): Rename to...
156 (m2_language::op_print_tab): ...this, and make const.
157 (exp_descriptor_modula2): Rename to...
158 (m2_language::exp_descriptor_modula2): ...this.
159 (class m2_language): Move to m2-lang.h.
160 (m2_language::language_arch_info): New function, moved out of
161 class declaration.
162 (m2_language::printchar): New function, body from m2_printchar.
163 (m2_language::printstr): New function, moved out of class
164 declaration.
165 (m2_language::emitchar): Likewise.
166 * m2-lang.h (m2_parse): Delete declaration.
167 (m2_print_typedef): Delete declaration.
168 (m2_value_print_inner): Delete declaration.
169 (class m2_language): Class declaration moved from m2-lang.c,
170 larger functions are left in m2-lang.c.
171 * m2-typeprint.c (m2_print_typedef): Rename to...
172 (m2_language::print_typedef): ...this, and update function
173 signature.
174 * m2-valprint.c (m2_value_print_inner): Rename to...
175 (m2_language::value_print_inner): ...this, replace use of
176 LA_PRINT_STRING with a direct call to printstr member function,
177 and update recursive call.
178
179 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
180
181 * language.c (default_is_string_type_p): Delete, implementation
182 moved into auto_or_unknown_language::is_string_type_p.
183 (unk_op_print_tab): Moved into
184 auto_or_unknown_language::opcode_print_table.
185 (unknown_language_arch_info): Delete, implementation moved into
186 auto_or_unknown_language::language_arch_info.
187 (class auto_or_unknown_language): New class, member functions
188 copied from unknown_language class, with some updates.
189 (class unknown_language): Most member functions moved into
190 auto_or_unknown_language class. Inherit from
191 auto_or_unknown_language class.
192 (class auto_language): Inherit from auto_or_unknown_language.
193 Delete most member functions.
194
195 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
196
197 * stabsread.c (read_member_functions): Remove gdb_assert.
198
199 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
200
201 * gdbtypes.c (init_complex_type): Check target type name.
202
203 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
204
205 * target-debug.h (target_debug_print_struct_target_ops_p):
206 Remove.
207 (target_debug_print_async_callback_ftype_p): Remove.
208 (target_debug_print_struct_trace_state_variable_p): Remove.
209 (target_debug_print_struct_traceframe_info_p): Remove.
210 (target_debug_print_VEC__btrace_block_s__pp): Remove.
211 (target_debug_print_enum_btrace_format): Remove.
212 (target_debug_print_enum_info_proc_what): Remove.
213 (target_debug_print_thread_info_pp): Remove.
214
215 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
216
217 * target.h (struct target_ops) <make_corefile_notes>:
218 Change return type to unique pointer.
219 * target.c (dummy_make_corefile_notes): Likewise.
220 * exec.c (struct exec_target) <make_corefile_notes>:
221 Likewise.
222 (exec_target::make_corefile_notes): Likewise.
223 * procfs.c (class procfs_target) <make_corefile_notes>:
224 Likewise.
225 (procfs_do_thread_registers): Adjust to unique pointer.
226 (struct procfs_corefile_thread_data): Add constructor.
227 <note_data>: Change type to unique pointer.
228 (procfs_corefile_thread_callback): Adjust to unique pointer.
229 (procfs_target::make_corefile_notes): Change return type to
230 unique pointer.
231 * target-delegates.c: Re-generate.
232 * gcore.c (write_gcore_file_1): Adjust.
233 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
234 New.
235
236 2020-10-22 Tom de Vries <tdevries@suse.de>
237
238 * block.c (find_block_in_blockvector): Make sure the returned block
239 contains pc.
240
241 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
242
243 PR gdb/26693
244 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
245 parameter.
246 (load_cu): Pass existing CU.
247 (process_imported_unit_die): Likewise.
248 (follow_die_offset): Likewise.
249
250 2020-10-22 Luis Machado <luis.machado@linaro.org>
251
252 * corelow.c (core_target::xfer_partial): Also check for an empty
253 m_core_unavailable_mappings vector.
254
255 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
256
257 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
258 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
259 * f-exp.y (arglist): Allow for a series of subranges.
260 (subrange): Add cases for subranges with strides.
261 * f-lang.c (value_f90_subarray): Catch use of array strides and
262 throw an error.
263 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
264
265 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
266
267 * expprint.c (print_subexp_standard): Change enum range_type to
268 range_flag and rename variables to match.
269 (dump_subexp_body_standard): Likewise.
270 * expression.h (enum range_type): Rename to...
271 (enum range_flag): ...this.
272 (range_types): Rename to...
273 (range_flags): ...this.
274 * f-lang.c (value_f90_subarray): Change enum range_type to
275 range_flag and rename variables to match.
276 * parse.c (operator_length_standard): Likewise.
277 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
278 range_type to range_flag.
279 * rust-lang.c (rust_evaluate_funcall): Likewise.
280 (rust_range): Likewise.
281 (rust_compute_range): Likewise.
282 (rust_subscript): Likewise.
283
284 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
285
286 * expprint.c (print_subexp_standard): Update to reflect changes to
287 enum range_type.
288 (dump_subexp_body_standard): Likewise.
289 * expression.h (enum range_type): Convert to a bit field enum, and
290 make the enum unsigned.
291 * f-exp.y (subrange): Update to reflect changes to enum
292 range_type.
293 * f-lang.c (value_f90_subarray): Likewise.
294 * parse.c (operator_length_standard): Likewise.
295 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
296 * rust-lang.c (rust_range): Likewise.
297 (rust_compute_range): Likewise.
298 (rust_subscript): Likewise.
299
300 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
301
302 * infrun.c (displaced_step_in_progress_thread): Fix comment.
303 (displaced_step_in_progress): Fix comment.
304
305 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
306
307 * gdbarch.sh (make_corefile_notes): Return unique pointer.
308 * gdbarch.c: Re-generate.
309 * gdbarch.h: Re-generate.
310 * gcore.c (write_gcore_file_1): Adjust.
311 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
312 constructor.
313 <note_data>: Change type to unique pointer.
314 <abort_iteration>: Change type to bool.
315 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
316 (fbsd_collect_thread_registers): Return void, adjust.
317 (struct fbsd_corefile_thread_data): Add construtor.
318 <note_data>: Change type to unique pointer.
319 (fbsd_corefile_thread): Adjust.
320 (fbsd_make_corefile_notes): Return unique pointer, adjust.
321 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
322 to unique pointer, adjust.
323 (struct linux_collect_regset_section_cb_data): Add constructor.
324 <note_data>: Change type to unique pointer.
325 <abort_iteration>: Change type to bool.
326 (linux_collect_thread_registers): Return void, adjust.
327 (struct linux_corefile_thread_data): Add constructor.
328 <note_data>: Change type to unique pointer.
329 (linux_corefile_thread): Adjust.
330 (linux_make_corefile_notes): Return unique pointer, adjust.
331
332 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
333
334 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
335 * gdbarch.c: Re-generate.
336 * gdbarch.h: Re-generate.
337 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
338 bool.
339 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
340 Likewise.
341 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
342 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
343 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
344 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
345
346 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
347
348 * gdbarch.sh: Make generated predicates return bool.
349 * gdbarch.c: Re-generate.
350 * gdbarch.h: Re-generate.
351
352 2020-10-20 Tom Tromey <tom@tromey.com>
353
354 * varobj-iter.h (struct varobj_item): Remove typedef.
355
356 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
357
358 * infrun.c (currently_stepping): Change int to bool
359 (maybe_software_singlestep): Likewise.
360 (show_stop_on_solib_events): Likewise.
361 (stepping_past_nonsteppable_watchpoint): Likewise.
362 (displaced_step_in_progress_any_inferior): Likewise.
363 (displaced_step_in_progress_thread): Likewise.
364 (keep_going_stepped_thread): Likewise.
365 (thread_still_needs_step_over): Likewise.
366 (start_step_over): Likewise.
367 (do_target_resume): Likewise.
368 (resume_1): Likewise.
369 (clear_proceed_status): Likewise.
370 (thread_still_needs_step_over_bp): Likewise.
371 (proceed): Likewise.
372 (switch_back_to_stepped_thread): Likewise.
373 (adjust_pc_after_break): Likewise.
374 (stepped_in_from): Likewise.
375 (handle_stop_requested): Likewise.
376 (handle_syscall_event): Likewise.
377 (handle_no_resumed): Likewise.
378 (handle_inferior_event): Likewise.
379 (finish_step_over): Likewise.
380 (handle_signal_stop): Likewise.
381 (process_event_stop_test): Likewise.
382
383 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
384
385 * infrun.c (get_displaced_stepping_state): Fix comment.
386
387 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
388
389 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
390
391 2020-10-19 Tom Tromey <tromey@adacore.com>
392
393 PR tui/26719
394 * tui/tui-winsource.h (struct tui_source_window_base)
395 <refresh_window>: Rename from refresh_pad.
396 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
397 Rename from refresh_pad.
398 (tui_source_window_base::show_source_content)
399 (tui_source_window_base::do_scroll_horizontal): Update.
400
401 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
402
403 * thread.c (_initialize_thread): Fine-tune the help text of
404 'info threads'.
405
406 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
407
408 * frame.c: Remove the unused 'uinteger_option_def' type alias.
409
410 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
411
412 * breakpoint.c (handle_jit_event): Add an argument, change how
413 `jit_event_handler` is called.
414
415 2020-10-17 Tom Tromey <tom@tromey.com>
416
417 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
418 (scan_xcoff_symtab): Update.
419 * psymtab.h (class psymtab_storage) <global_psymbols,
420 static_psymbols, current_global_psymbols,
421 current_static_psymbols>: Remove.
422 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
423 (match_partial_symbol, lookup_partial_symbol): Update.
424 (print_partial_symbols): Change parameters.
425 (dump_psymtab, recursively_search_psymtabs)
426 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
427 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
428 (concat): Remove.
429 (end_psymtab_common): Simplify.
430 (append_psymbol_to_list): Change parameters.
431 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
432 (init_psymbol_list): Simplify.
433 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
434 * psympriv.h (struct partial_symtab) <empty>: New method.
435 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
436 Remove.
437 <global_psymbols, static_psymbols>: New members.
438 <add_psymbol>: New methods.
439 (add_psymbol_to_list): Don't declare.
440 (psymbol_placement): Move earlier.
441 * mdebugread.c (parse_partial_symbols): Update.
442 (handle_psymbol_enumerators): Change parameters.
443 (mdebug_expand_psymtab): Update.
444 * dwarf2/read.c (process_psymtab_comp_unit_reader)
445 (add_partial_symbol): Update.
446 * dwarf2/index-write.c (write_psymbols): Change parameters.
447 (write_one_signatured_type): Update.
448 (recursively_count_psymbols): Update.
449 (recursively_write_psymbols): Update.
450 (class debug_names) <recursively_write_psymbols>: Update.
451 <write_psymbols>: Change parameters.
452 <write_one_signatured_type>: Update.
453 * dbxread.c (read_dbx_symtab): Update.
454 (dbx_end_psymtab): Use partial_symtab::empty.
455 * ctfread.c (struct ctf_context) <pst>: New member.
456 (create_partial_symtab): Set it.
457 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
458 (scan_partial_symbols): Use the psymtab's context. Update.
459
460 2020-10-17 Tom Tromey <tom@tromey.com>
461
462 * valprint.c (generic_value_print): Remove comment.
463 * m2-valprint.c (m2_value_print_inner): Remove comment.
464 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
465 type.
466
467 2020-10-17 Tom de Vries <tdevries@suse.de>
468
469 PR symtab/26317
470 * source.c (select_source_symtab): Handling sal.symtab == NULL for
471 symbol main.
472
473 2020-10-14 Tom de Vries <tdevries@suse.de>
474
475 PR gdb/26733
476 * solib.c (solib_contains_address_p): Handle
477 'solib->sections == nullptr'.
478
479 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
480
481 PR gdb/26642
482 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
483 target can't do async.
484 * target.c (target_wait): Assert that we don't pass
485 TARGET_WNOHANG to a target that can't async.
486
487 2020-10-13 Kamil Rytarowski <n54@gmx.com>
488
489 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
490 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
491 * alpha-bsd-nat.c: Adjust include.
492 * alpha-bsd-tdep.h: Adjust comment.
493 * alpha-nbsd-tdep.c: Rename to ...
494 * alpha-netbsd-tdep.c: ... this, adjust include.
495 * amd64-nbsd-nat.c: Rename to ...
496 * amd64-netbsd-nat.c: ... this, adjust include.
497 * amd64-nbsd-tdep.c: Rename to ...
498 * amd64-netbsd-tdep.c: ... this, adjust include.
499 * amd64-tdep.h: Adjust include.
500 * arm-nbsd-nat.c: Rename to ...
501 * arm-netbsd-nat.c: ... this, adjust include.
502 * arm-nbsd-tdep.c: Rename to ...
503 * arm-netbsd-tdep.c: ... this, adjust include.
504 * arm-nbsd-tdep.h: Rename to ...
505 * arm-netbsd-tdep.h: ... this, adjust include.
506 * configure.nat: Adjust file lists.
507 * configure.tgt: Likewise.
508 * hppa-nbsd-nat.c: Rename to ...
509 * hppa-netbsd-nat.c: ... this, adjust include.
510 * hppa-nbsd-tdep.c: Rename to ...
511 * hppa-netbsd-tdep.c: ... this, adjust include.
512 * i386-nbsd-nat.c: Rename to ...
513 * i386-netbsd-nat.c: ... this, adjust include.
514 * i386-nbsd-tdep.c: Rename to ...
515 * i386-netbsd-tdep.c: ... this, adjust include.
516 * m68k-bsd-nat.c: Adjust include.
517 * mips-nbsd-nat.c: Rename to ...
518 * mips-netbsd-nat.c: ... this, adjust include.
519 * mips-nbsd-tdep.c: Rename to ...
520 * mips-netbsd-tdep.c: ... this, adjust include.
521 * mips-nbsd-tdep.h: Rename to ...
522 * mips-netbsd-tdep.h: ... this.
523 * nbsd-nat.c: Rename to ...
524 * netbsd-nat.c: ... this, adjust include.
525 * nbsd-nat.h: Rename to ...
526 * netbsd-nat.h: ... this, adjust include.
527 * nbsd-tdep.c: Rename to ...
528 * netbsd-tdep.c: ... this, adjust include.
529 * nbsd-tdep.h: Rename to ...
530 * netbsd-tdep.h: ... this.
531 * ppc-nbsd-nat.c: Rename to ...
532 * ppc-netbsd-nat.c: ... this, adjust include.
533 * ppc-nbsd-tdep.c: Rename to ...
534 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
535 * ppc-nbsd-tdep.h: Rename to ...
536 * ppc-netbsd-tdep.h: ... this.
537 * sh-nbsd-nat.c: Rename to ...
538 * sh-netbsd-nat.c: ... this, adjust include.
539 * sh-nbsd-tdep.c: Rename to ...
540 * sh-netbsd-tdep.c: ... this, adjust include.
541 * sparc-nbsd-nat.c: Rename to ...
542 * sparc-netbsd-nat.c: ... this.
543 * sparc-nbsd-tdep.c: Rename to ...
544 * sparc-netbsd-tdep.c: ... this, adjust include.
545 * sparc64-nbsd-nat.c: Rename to ...
546 * sparc64-netbsd-nat.c: ... this.
547 * sparc64-nbsd-tdep.c: Rename to ...
548 * sparc64-netbsd-tdep.c: ... this, adjust include.
549 * sparc64-tdep.h: Adjust comment.
550 * vax-bsd-nat.c: Adjust include.
551 * vax-nbsd-tdep.c: Rename to ...
552 * vax-netbsd-tdep.c: ... this, adjust include.
553
554 2020-10-12 Tom Tromey <tom@tromey.com>
555
556 * target.h (struct target_ops) <get_section_table>: Update.
557 (target_get_section_table): Update.
558 * target.c (target_get_section_table, target_section_by_addr)
559 (memory_xfer_partial_1): Update.
560 * target-section.h (target_section_table): Now an alias.
561 * target-delegates.c: Rebuild.
562 * target-debug.h (target_debug_print_target_section_table_p):
563 Rename from target_debug_print_struct_target_section_table_p.
564 * symfile.c (build_section_addr_info_from_section_table): Update.
565 * solib.c (solib_map_sections, solib_contains_address_p): Update.
566 * solib-svr4.c (scan_dyntag): Update.
567 * solib-dsbt.c (scan_dyntag): Update.
568 * remote.c (remote_target::remote_xfer_live_readonly_partial):
569 Update.
570 * record-full.c (record_full_core_target::xfer_partial): Update.
571 * progspace.h (struct program_space) <target_sections>: Update.
572 * exec.h (print_section_info): Update.
573 * exec.c (exec_target::close, build_section_table)
574 (add_target_sections, add_target_sections_of_objfile)
575 (remove_target_sections, exec_on_vfork)
576 (section_table_available_memory)
577 (section_table_xfer_memory_partial)
578 (exec_target::get_section_table, exec_target::xfer_partial)
579 (print_section_info, set_section_command)
580 (exec_set_section_address, exec_target::has_memory): Update.
581 * corelow.c (core_target::build_file_mappings)
582 (core_target::xfer_partial, core_target::info_proc_mappings)
583 (core_target::info_proc_mappings): Update.
584 * bfd-target.c (class target_bfd): Update
585
586 2020-10-12 Tom Tromey <tom@tromey.com>
587
588 * progspace.c (program_space::~program_space): Don't call
589 clear_section_table.
590 * exec.h (clear_section_table): Don't declare.
591 * exec.c (exec_target::close): Update.
592 (clear_section_table): Remove.
593
594 2020-10-12 Tom Tromey <tom@tromey.com>
595
596 * exec.c (add_target_sections_of_objfile): Simplify.
597
598 2020-10-12 Tom Tromey <tom@tromey.com>
599
600 * solib.c (solib_map_sections): Update.
601 * record-full.c (record_full_core_open_1): Update.
602 * exec.h (build_section_table): Return a target_section_table.
603 * exec.c (exec_file_attach): Update.
604 (build_section_table): Return a target_section_table.
605 * corelow.c (core_target::core_target): Update.
606 * bfd-target.c (target_bfd::target_bfd): Update.
607
608 2020-10-12 Tom Tromey <tom@tromey.com>
609
610 * target.c (target_section_by_addr, memory_xfer_partial_1):
611 Update.
612 * target-section.h (struct target_section_table): Use
613 std::vector.
614 * symfile.h (build_section_addr_info_from_section_table): Take a
615 target_section_table.
616 * symfile.c (build_section_addr_info_from_section_table): Take a
617 target_section_table.
618 * solist.h (struct so_list) <sections>: Change type.
619 <sections_end>: Remove.
620 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
621 (solib_contains_address_p): Update.
622 * solib-svr4.c (scan_dyntag): Update.
623 * solib-dsbt.c (scan_dyntag): Update.
624 * remote.c (remote_target::remote_xfer_live_readonly_partial):
625 Update.
626 * record-full.c (record_full_core_start, record_full_core_end):
627 Remove.
628 (record_full_core_sections): New global.
629 (record_full_core_open_1, record_full_core_target::xfer_partial):
630 Update.
631 * exec.h (build_section_table, section_table_xfer_memory_partial)
632 (add_target_sections): Take a target_section_table.
633 * exec.c (exec_file_attach, clear_section_table): Update.
634 (resize_section_table): Remove.
635 (build_section_table, add_target_sections): Take a
636 target_section_table.
637 (add_target_sections_of_objfile, remove_target_sections)
638 (exec_on_vfork): Update.
639 (section_table_available_memory): Take a target_section_table.
640 (section_table_read_available_memory): Update.
641 (section_table_xfer_memory_partial): Take a target_section_table.
642 (print_section_info, set_section_command)
643 (exec_set_section_address, exec_target::has_memory): Update.
644 * corelow.c (class core_target) <m_core_section_table,
645 m_core_file_mappings>: Remove braces.
646 <~core_target>: Remove.
647 (core_target::core_target): Update.
648 (core_target::~core_target): Remove.
649 (core_target::build_file_mappings)
650 (core_target::xfer_memory_via_mappings)
651 (core_target::xfer_partial, core_target::info_proc_mappings):
652 Update.
653 * bfd-target.c (target_bfd::xfer_partial): Update.
654 (target_bfd::target_bfd): Update.
655 (target_bfd::~target_bfd): Remove.
656
657 2020-10-12 Tom Tromey <tom@tromey.com>
658
659 * target.h (struct target_section, struct target_section_table):
660 Move to target-section.h.
661 * target-section.h: New file.
662
663 2020-10-12 Pedro Alves <pedro@palves.net>
664
665 PR exp/26602
666 * valops.c (struct struct_field_searcher): New.
667 (update_search_result): Rename to ...
668 (struct_field_searcher::update_result): ... this. Simplify
669 prototype. Record all found fields.
670 (do_search_struct_field): Rename to ...
671 (struct_field_searcher::search): ... this. Simplify prototype.
672 Maintain stack of visited baseclass path. Call update_result for
673 fields too. Keep searching fields in baseclasses instead of
674 stopping at the first found field.
675 (search_struct_field): Use struct_field_searcher. When looking
676 for fields, report ambiguous access attempts.
677
678 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
679
680 * frame.c (inside_main_func): Check full symbols as well as
681 minimal symbols.
682
683 2020-10-09 Joel Brobecker <brobecker@adacore.com>
684
685 * ada-lang.c (advance_wild_match): Rewrite the function's
686 description. Change the type of target0, t0 and t1 to char.
687
688 2020-10-09 Tom Tromey <tromey@adacore.com>
689
690 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
691
692 2020-10-09 Tom Tromey <tromey@adacore.com>
693
694 * ada-lang.h (ada_encode): Return std::string.
695 * ada-lang.c (ada_encode_1): Return std::string.
696 (ada_encode): Likewise.
697 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
698 Update.
699 * ada-exp.y (block_lookup, write_var_or_type): Update.
700
701 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
702
703 PR exp/26714
704 * printcmd.c (print_formatted): Handle void results as
705 unformatted prints.
706
707 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
708
709 * arch/aarch32.c (aarch32_create_target_description): Release the
710 target_desc_up as late as possible.
711 * arch/aarch64.c (aarch64_create_target_description): Likewise.
712 * arch/amd64.c (amd64_create_target_description): Likewise.
713 * arch/arc.c (arc_create_target_description): Return a
714 target_desc_up, don't release it.
715 * arch/arc.h (arc_create_target_description): Update declaration.
716 (arc_lookup_target_description): Move target_desc_up into the
717 cache, and return a borrowed pointer.
718 * arch/arm.c (arm_create_target_description): Release the
719 target_desc_up as late as possible.
720 * arch/i386.c (i386_create_target_description): Likewise.
721 * arch/riscv.h (riscv_create_target_description): Update
722 declaration to match definition.
723 * arch/tic6x.c (tic6x_create_target_description): Release the
724 target_desc_up as late as possible.
725
726 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
727
728 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
729 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
730
731 2020-10-09 Jan Vrany <jan.vrany@labware.com>
732
733 * source.c (directory_command): Notify observers that "directories"
734 parameter has changed.
735
736 2020-10-08 Tom Tromey <tom@tromey.com>
737
738 * cli/cli-cmds.c (print_disassembly): Style function name and
739 addresses. Add _() wrappers.
740
741 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
742
743 * NEWS: Mention ARC support in GDBserver.
744
745 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
746
747 * arch/aarch32.c (aarch32_create_target_description): Release
748 unique_ptr returned from allocate_target_description.
749 * arch/aarch64.c (aarch64_create_target_description): Likewise.
750 * arch/amd64.c (amd64_create_target_description): Likewise.
751 * arch/arc.c (arc_create_target_description): Likewise.
752 * arch/arm.c (arm_create_target_description): Likewise.
753 * arch/i386.c (i386_create_target_description): Likewise.
754 * arch/riscv.c (riscv_create_target_description): Update return
755 type. Handle allocate_target_description returning a unique_ptr.
756 (riscv_lookup_target_description): Update to handle unique_ptr.
757 * arch/tic6x.c (tic6x_create_target_description): Release
758 unique_ptr returned from allocate_target_description.
759 * features/microblaze-with-stack-protect.c: Regenerate.
760 * features/microblaze.c: Regenerate.
761 * features/mips-dsp-linux.c: Regenerate.
762 * features/mips-linux.c: Regenerate.
763 * features/mips64-dsp-linux.c: Regenerate.
764 * features/mips64-linux.c: Regenerate.
765 * features/nds32.c: Regenerate.
766 * features/nios2.c: Regenerate.
767 * features/or1k.c: Regenerate.
768 * features/rs6000/powerpc-32.c: Regenerate.
769 * features/rs6000/powerpc-32l.c: Regenerate.
770 * features/rs6000/powerpc-403.c: Regenerate.
771 * features/rs6000/powerpc-403gc.c: Regenerate.
772 * features/rs6000/powerpc-405.c: Regenerate.
773 * features/rs6000/powerpc-505.c: Regenerate.
774 * features/rs6000/powerpc-601.c: Regenerate.
775 * features/rs6000/powerpc-602.c: Regenerate.
776 * features/rs6000/powerpc-603.c: Regenerate.
777 * features/rs6000/powerpc-604.c: Regenerate.
778 * features/rs6000/powerpc-64.c: Regenerate.
779 * features/rs6000/powerpc-64l.c: Regenerate.
780 * features/rs6000/powerpc-7400.c: Regenerate.
781 * features/rs6000/powerpc-750.c: Regenerate.
782 * features/rs6000/powerpc-860.c: Regenerate.
783 * features/rs6000/powerpc-altivec32.c: Regenerate.
784 * features/rs6000/powerpc-altivec32l.c: Regenerate.
785 * features/rs6000/powerpc-altivec64.c: Regenerate.
786 * features/rs6000/powerpc-altivec64l.c: Regenerate.
787 * features/rs6000/powerpc-e500.c: Regenerate.
788 * features/rs6000/powerpc-e500l.c: Regenerate.
789 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
790 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
791 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
792 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
793 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
794 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
795 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
796 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
797 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
798 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
799 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
800 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
801 * features/rs6000/powerpc-vsx32.c: Regenerate.
802 * features/rs6000/powerpc-vsx32l.c: Regenerate.
803 * features/rs6000/powerpc-vsx64.c: Regenerate.
804 * features/rs6000/powerpc-vsx64l.c: Regenerate.
805 * features/rs6000/rs6000.c: Regenerate.
806 * features/rx.c: Regenerate.
807 * features/s390-gs-linux64.c: Regenerate.
808 * features/s390-linux32.c: Regenerate.
809 * features/s390-linux32v1.c: Regenerate.
810 * features/s390-linux32v2.c: Regenerate.
811 * features/s390-linux64.c: Regenerate.
812 * features/s390-linux64v1.c: Regenerate.
813 * features/s390-linux64v2.c: Regenerate.
814 * features/s390-te-linux64.c: Regenerate.
815 * features/s390-tevx-linux64.c: Regenerate.
816 * features/s390-vx-linux64.c: Regenerate.
817 * features/s390x-gs-linux64.c: Regenerate.
818 * features/s390x-linux64.c: Regenerate.
819 * features/s390x-linux64v1.c: Regenerate.
820 * features/s390x-linux64v2.c: Regenerate.
821 * features/s390x-te-linux64.c: Regenerate.
822 * features/s390x-tevx-linux64.c: Regenerate.
823 * features/s390x-vx-linux64.c: Regenerate.
824 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
825 from allocate_target_description.
826 * target-descriptions.c (allocate_target_description): Update
827 return type.
828 (print_c_tdesc::visit_pre): Release unique_ptr returned from
829 allocate_target_description.
830
831 2020-10-07 Tom Tromey <tromey@adacore.com>
832
833 * unittests/search-memory-selftests.c: New file.
834 * Makefile.in (SELFTESTS_SRCS): Add
835 unittests/search-memory-selftests.c.
836
837 2020-10-07 Tom Tromey <tromey@adacore.com>
838
839 PR gdb/16930:
840 * findcmd.c (_initialize_mem_search): Mention that the range is
841 inclusive.
842
843 2020-10-07 Tom Tromey <tromey@adacore.com>
844
845 * target.h (simple_search_memory): Don't declare.
846 * target.c (simple_search_memory): Move to gdbsupport.
847 (default_search_memory): Update.
848 * remote.c (remote_target::search_memory): Update.
849
850 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
851
852 * Makefile.in (COMPILE): Add CXXFLAGS.
853 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
854 (check-headers): Add CXXFLAGS.
855
856 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
857
858 * arc-linux-tdep.h: New file.
859 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
860 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
861 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
862 arc_linux_gregset, arc_linux_v2_regset,
863 arc_linux_iterate_over_regset_sections,
864 arc_linux_core_read_description): Implement.
865 (arc_linux_init_osabi): Set iterate_over_regset_sections.
866 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
867 (arc_gdbarch_features_create): Add.
868 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
869
870 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
871
872 * arch/arc.h: Rename "arc_gdbarch_features" to
873 "arc_arch_features".
874 * arc-tdep.h: Likewise.
875 * arc-tdep.c: Likewise.
876
877 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
878
879 * infcmd.c (attach_command): Remove the redundant call to
880 `clear_proceed_status`.
881
882 2020-10-07 Kamil Rytarowski <n54@gmx.com>
883
884 * nat/netbsd-nat.c (write_memory, read_memory): Update.
885
886 2020-10-07 Kamil Rytarowski <n54@gmx.com>
887
888 * nat/netbsd-nat.c (write_memory, read_memory): Add.
889 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
890 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
891
892 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
893
894 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
895 (_initialize_break_catch_sig): Don't allocate array.
896
897 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
898
899 * symtab.c (find_pc_line): Return unmapped addresses when the
900 requested address is also unmapped.
901
902 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
903
904 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
905 tui/tui-out.h.
906
907 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
908
909 * amd64-windows-tdep.c (amd64_windows_return_value): Use
910 type::is_vector instead of TYPE_VECTOR.
911
912 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
913
914 * auto-load.c (auto_load_objfile_script_1): Don't use
915 debugfile_holder as temporary variable when stripping drive
916 letter.
917
918 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
919
920 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
921 Add TYPE_CODE_COMPLEX.
922 (amd64_windows_return_value): Fix types returned via XMM0.
923
924 2020-10-05 Alan Hayward <alan.hayward@arm.com>
925
926 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
927 AArch64/ARM maintainers.
928
929 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
930
931 * NEWS: Mention set/show debug event-loop.
932
933 2020-10-02 Tom Tromey <tromey@adacore.com>
934
935 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
936 REG_EXTENDED.
937
938 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
939
940 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
941 * procfs.c (procfs_inferior_created): Remove.
942 (_initialize_procfs): Don't register procfs_inferior_created.
943
944 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
945
946 * async-event.c (invoke_async_signal_handlers): Add debug
947 print.
948 (check_async_event_handlers): Likewise.
949 * event-top.c (show_debug_event_loop): New function.
950 (_initialize_event_top): Register "set debug event-loop"
951 setting.
952
953 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
954
955 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
956 * debug.h: Remove.
957 * infrun.c: Include gdbsupport/common-debug.h.
958 * linux-nat.c: Likewise.
959
960 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
961
962 * async-event.h (create_async_signal_handler): Add name
963 parameter.
964 (create_async_event_handler): Likewise.
965 * async-event.c (struct async_signal_handler) <name>: New field.
966 (struct async_event_handler) <name>: New field.
967 (create_async_signal_handler): Assign name.
968 (create_async_event_handler): Assign name.
969 * event-top.c (async_init_signals): Pass name when creating
970 handler.
971 * infrun.c (_initialize_infrun): Likewise.
972 * record-btrace.c (record_btrace_push_target): Likewise.
973 * record-full.c (record_full_open): Likewise.
974 * remote-notif.c (remote_notif_state_allocate): Likewise.
975 * remote.c (remote_target::open_1): Likewise.
976 * tui/tui-win.c (tui_initialize_win): Likewise.
977
978 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
979
980 * async-event.c (initialize_async_signal_handlers): Pass name to
981 add_file_handler
982 * event-top.c (ui_register_input_event_handler): Likewise.
983 * linux-nat.c (linux_nat_target::async): Likewise.
984 * run-on-main-thread.c (_initialize_run_on_main_thread):
985 Likewise
986 * ser-base.c (reschedule): Likewise.
987 (ser_base_async): Likewise.
988 * tui/tui-io.c: Likewise.
989 * top.h (struct ui) <num>: New field.
990 * top.c (highest_ui_num): New variable.
991 (ui::ui): Initialize num.
992
993 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
994
995 * observable.h <inferior_created>: Remove parameters. Update all
996 listeners.
997 * inferior.h (post_create_inferior): Remove target parameter.
998 Update all callers.
999
1000 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
1001
1002 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
1003 and DW_MACRO_undef_strx.
1004 (dwarf_decode_macros): Likewise
1005 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
1006 which is the value of DW_AT_str_offsets_base.
1007 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
1008 str_offsets_base.
1009
1010 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1011
1012 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
1013
1014 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1015
1016 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
1017 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
1018
1019 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1020
1021 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
1022
1023 2020-09-30 Tom de Vries <tdevries@suse.de>
1024
1025 PR symtab/26683
1026 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
1027
1028 2020-09-30 Tom Tromey <tromey@adacore.com>
1029
1030 * dwarf2/read.c (handle_variant): Use constant_value.
1031
1032 2020-09-29 Tom Tromey <tom@tromey.com>
1033
1034 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
1035 (read_file_scope, dwarf2_get_pc_bounds)
1036 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
1037 (read_structure_type, handle_struct_member_die)
1038 (read_enumeration_type, read_array_type, read_set_type)
1039 (read_tag_pointer_type, read_tag_reference_type)
1040 (read_subroutine_type, read_base_type, read_subrange_type)
1041 (read_full_die_1, partial_die_info::read)
1042 (partial_die_info::read, by, new_symbol)
1043 (dwarf2_const_value_data, dwarf2_const_value_attr)
1044 (dump_die_shallow, dwarf2_fetch_constant_bytes)
1045 (prepare_one_comp_unit): Update.
1046 * dwarf2/attribute.h (DW_UNSND): Remove.
1047
1048 2020-09-29 Tom Tromey <tom@tromey.com>
1049
1050 * dwarf2/read.c (read_func_scope, prototyped_function_p)
1051 (read_subroutine_type, partial_die_info::read)
1052 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
1053 (dwarf2_add_member_fn): Update.
1054 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
1055 * dwarf2/attribute.c (attribute::as_boolean): New method.
1056
1057 2020-09-29 Tom Tromey <tom@tromey.com>
1058
1059 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
1060 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
1061 method.
1062 * dwarf2/attribute.c (attribute::as_virtuality): New method.
1063
1064 2020-09-29 Tom Tromey <tom@tromey.com>
1065
1066 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
1067 the attribute's form.
1068
1069 2020-09-29 Tom Tromey <tom@tromey.com>
1070
1071 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
1072 (dwarf2_add_member_fn): Update.
1073 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
1074 * dwarf2/attribute.c (attribute::defaulted): New method, from
1075 is_valid_DW_AT_defaulted.
1076
1077 2020-09-29 Tom Tromey <tom@tromey.com>
1078
1079 * dwarf2/read.c (dw2_get_file_names_reader)
1080 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
1081 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
1082 (dwarf2_symbol_mark_computed): Use as_unsigned.
1083 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
1084 method.
1085 <form_is_section_offset>: Update comment.
1086
1087 2020-09-29 Tom Tromey <tom@tromey.com>
1088
1089 * dwarf2/read.c (dwarf2_access_attribute): Rename from
1090 dwarf2_default_access_attribute. Look up attribute.
1091 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
1092 Update.
1093
1094 2020-09-29 Tom Tromey <tom@tromey.com>
1095
1096 * dwarf2/read.c (skip_one_die): Update.
1097 (read_full_die_1): Change how reprocessing is done.
1098 (partial_die_info::read): Update.
1099 (read_attribute_value): Remove need_reprocess parameter.
1100 (read_attribute): Likewise.
1101 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
1102 New method.
1103
1104 2020-09-29 Tom Tromey <tom@tromey.com>
1105
1106 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
1107 (dwarf2_const_value_attr, dump_die_shallow)
1108 (dwarf2_fetch_constant_bytes): Update.
1109 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
1110 comment.
1111 <set_address>: New method.
1112 (DW_ADDR): Remove.
1113 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
1114 (attribute::as_string, attribute::as_address): Add assert.
1115
1116 2020-09-29 Tom Tromey <tom@tromey.com>
1117
1118 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
1119 (read_attribute_reprocess, read_attribute_value): Update.
1120 (read_attribute): Clear requires_reprocessing.
1121 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
1122 form_requires_reprocessing>: New methods.
1123 <string_init>: Clear requires_reprocessing.
1124 <set_unsigned_reprocess>: New method.
1125 <name>: Shrink by one bit.
1126 <requires_reprocessing>: New member.
1127 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
1128 method.
1129
1130 2020-09-29 Tom Tromey <tom@tromey.com>
1131
1132 * dwarf2/read.c (read_attribute_value): Update.
1133 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
1134 set_unsigned>: New methods.
1135 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
1136
1137 2020-09-29 Tom Tromey <tom@tromey.com>
1138
1139 * dwarf2/read.c (get_alignment, read_array_order)
1140 (read_attribute_value, dwarf2_const_value_attr)
1141 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
1142 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
1143 New methods.
1144 (DW_SND): Remove.
1145
1146 2020-09-29 Tom Tromey <tom@tromey.com>
1147
1148 * dwarf2/read.c (read_attribute_value, lookup_die_type)
1149 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
1150 Update.
1151 * dwarf2/attribute.h (struct attribute) <as_signature,
1152 set_signature>: New methods.
1153 (DW_SIGNATURE): Remove.
1154
1155 2020-09-29 Tom Tromey <tom@tromey.com>
1156
1157 * dwarf2/read.c (read_call_site_scope)
1158 (handle_data_member_location, dwarf2_add_member_fn)
1159 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
1160 (partial_die_info::read, read_attribute_value)
1161 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
1162 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
1163 (dwarf2_symbol_mark_computed): Update.
1164 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
1165 methods.
1166 (DW_BLOCK): Remove.
1167 * dwarf2/attribute.c (attribute::form_is_block): Add
1168 DW_FORM_data16.
1169
1170 2020-09-29 Tom Tromey <tom@tromey.com>
1171
1172 * dwarf2/read.c (read_cutu_die_from_dwo)
1173 (read_attribute_reprocess, read_attribute_value, read_attribute)
1174 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
1175 (dwarf2_fetch_constant_bytes): Update.
1176 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
1177 <set_string_noncanonical, set_string_canonical>: New methods.
1178 <string_is_canonical>: Update comment.
1179 <canonical_string_p>: Add assert.
1180 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
1181 * dwarf2/attribute.c (attribute::form_is_string): New method.
1182 (attribute::string): Use it.
1183
1184 2020-09-29 Tom Tromey <tom@tromey.com>
1185
1186 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
1187 (dump_die_shallow): Use canonical_string_p.
1188 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
1189 method.
1190
1191 2020-09-29 Tom Tromey <tom@tromey.com>
1192
1193 * dwarf2/read.c (partial_die_info::read)
1194 (dwarf2_const_value_attr, anonymous_struct_prefix, )
1195 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
1196 attribute::as_string.
1197
1198 2020-09-29 Tom Tromey <tom@tromey.com>
1199
1200 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
1201 DW_ADDR.
1202 (attribute::string): Don't use DW_STRING.
1203 (attribute::get_ref_die_offset): Don't use DW_UNSND.
1204 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
1205
1206 2020-09-29 Tom Tromey <tom@tromey.com>
1207
1208 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
1209 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
1210 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
1211 * dwarf2/attribute.h (struct attribute): Rename methods.
1212 * dwarf2/attribute.c (attribute::as_address): Rename from
1213 value_as_address.
1214 (attribute::as_string): Rename from value_as_string.
1215
1216 2020-09-29 Tom Tromey <tom@tromey.com>
1217
1218 * dwarf2/read.c (partial_die_info::read) <case
1219 DW_AT_linkage_name>: Use value_as_string.
1220 (dwarf2_string_attr): Use value_as_string.
1221 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
1222 method.
1223 * dwarf2/attribute.c (attribute::value_as_string): New method.
1224
1225 2020-09-29 Pedro Alves <pedro@palves.net>
1226
1227 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
1228 defined before using '#pragma GCC diagnostic' instead of checking
1229 __clang__.
1230
1231 2020-09-28 Tom Tromey <tom@tromey.com>
1232
1233 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
1234 (handle_signal_stop): Update.
1235 * procfs.c (procfs_target::insert_watchpoint): Update.
1236 * target.h (target_have_steppable_watchpoint): Now a function.
1237
1238 2020-09-28 Tom Tromey <tom@tromey.com>
1239
1240 * infrun.c (set_schedlock_func): Update.
1241 * target.h (target_can_lock_scheduler): Now a function.
1242
1243 2020-09-28 Tom Tromey <tom@tromey.com>
1244
1245 * inferior.h (class inferior) <has_execution>: Update.
1246 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1247 * valops.c (find_function_in_inferior)
1248 (value_allocate_space_in_inferior): Update.
1249 * top.c (kill_or_detach): Update.
1250 * target.c (target_preopen, set_target_permissions): Update.
1251 (target_has_execution_current): Remove.
1252 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
1253 Update.
1254 * solib.c (update_solib_list, reload_shared_libraries): Update.
1255 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1256 * solib-dsbt.c (enable_break): Update.
1257 * score-tdep.c (score7_fetch_inst): Update.
1258 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
1259 Update.
1260 * remote.c (remote_target::start_remote)
1261 (remote_target::remote_check_symbols, remote_target::open_1)
1262 (remote_target::remote_detach_1, remote_target::verify_memory)
1263 (remote_target::xfer_partial, remote_target::read_description)
1264 (remote_target::get_min_fast_tracepoint_insn_len): Update.
1265 * record-full.c (record_full_open_1): Update.
1266 * record-btrace.c (record_btrace_target_open): Update.
1267 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1268 (value_nsstring): Update.
1269 * linux-thread-db.c (add_thread_db_info)
1270 (thread_db_find_new_threads_silently, check_thread_db_callback)
1271 (try_thread_db_load_1, record_thread): Update.
1272 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
1273 Update.
1274 * linux-fork.c (checkpoint_command): Update.
1275 * infrun.c (set_non_stop, set_observer_mode)
1276 (check_multi_target_resumption, for_each_just_stopped_thread)
1277 (maybe_remove_breakpoints, normal_stop)
1278 (class infcall_suspend_state): Update.
1279 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
1280 (info_program_command, attach_command): Update.
1281 * infcall.c (call_function_by_hand_dummy): Update.
1282 * inf-loop.c (inferior_event_handler): Update.
1283 * gcore.c (gcore_command, derive_heap_segment): Update.
1284 * exec.c (exec_file_command): Update.
1285 * eval.c (evaluate_subexp): Update.
1286 * compile/compile.c (compile_to_object): Update.
1287 * cli/cli-dump.c (restore_command): Update.
1288 * breakpoint.c (update_watchpoint)
1289 (update_inserted_breakpoint_locations)
1290 (insert_breakpoint_locations, get_bpstat_thread): Update.
1291 * target.h (target_has_execution): Remove macro.
1292 (target_has_execution_current): Don't declare.
1293 (target_has_execution): Rename from target_has_execution_1. Add
1294 argument default.
1295
1296 2020-09-28 Tom Tromey <tom@tromey.com>
1297
1298 * mi/mi-main.c (exec_reverse_continue)
1299 (mi_cmd_list_target_features): Update.
1300 * infrun.c (set_exec_direction_func): Update.
1301 * target.c (default_execution_direction): Update.
1302 * reverse.c (exec_reverse_once): Update.
1303 * target.h (target_can_execute_reverse): Now a function.
1304
1305 2020-09-28 Tom Tromey <tom@tromey.com>
1306
1307 * tui/tui-regs.c (tui_get_register)
1308 (tui_data_window::show_registers): Update.
1309 * thread.c (scoped_restore_current_thread::restore)
1310 (scoped_restore_current_thread::scoped_restore_current_thread):
1311 Update.
1312 * regcache-dump.c (regcache_print): Update.
1313 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1314 Update.
1315 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
1316 * mep-tdep.c (current_me_module, current_options): Update.
1317 * linux-thread-db.c (thread_db_load): Update.
1318 * infcmd.c (registers_info, info_vector_command)
1319 (info_float_command): Update.
1320 * ia64-tdep.c (ia64_frame_prev_register)
1321 (ia64_sigtramp_frame_prev_register): Update.
1322 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
1323 * gcore.c (derive_stack_segment): Update.
1324 * frame.c (get_current_frame, has_stack_frames): Update.
1325 * findvar.c (language_defn::read_var_value): Update.
1326 * arm-tdep.c (arm_pc_is_thumb): Update.
1327 * target.c (target_has_registers): Rename from
1328 target_has_registers_1.
1329 * target.h (target_has_registers): Remove macro.
1330 (target_has_registers): Rename from target_has_registers_1.
1331
1332 2020-09-28 Tom Tromey <tom@tromey.com>
1333
1334 * windows-tdep.c (tlb_make_value): Update.
1335 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1336 * thread.c (scoped_restore_current_thread::restore)
1337 (scoped_restore_current_thread::scoped_restore_current_thread)
1338 (thread_command): Update.
1339 * stack.c (backtrace_command_1, frame_apply_level_command)
1340 (frame_apply_all_command, frame_apply_command): Update.
1341 * infrun.c (siginfo_make_value, restore_infcall_control_state):
1342 Update.
1343 * gcore.c (derive_stack_segment): Update.
1344 * frame.c (get_current_frame, has_stack_frames): Update.
1345 * auxv.c (info_auxv_command): Update.
1346 * ada-tasks.c (ada_build_task_list): Update.
1347 * target.c (target_has_stack): Rename from target_has_stack_1.
1348 * target.h (target_has_stack): Remove macro.
1349 (target_has_stack): Rename from target_has_stack_1.
1350
1351 2020-09-28 Tom Tromey <tom@tromey.com>
1352
1353 * target.c (target_has_memory): Rename from target_has_memory_1.
1354 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1355 * thread.c (scoped_restore_current_thread::restore)
1356 (scoped_restore_current_thread::scoped_restore_current_thread):
1357 Update.
1358 * frame.c (get_current_frame, has_stack_frames): Update.
1359 * target.h (target_has_memory): Remove macro.
1360 (target_has_memory): Rename from target_has_memory_1.
1361
1362 2020-09-28 Tom Tromey <tom@tromey.com>
1363
1364 * target.c (target_has_all_memory_1): Remove.
1365 * target.h (target_has_all_memory): Remove define.
1366 (target_has_all_memory_1): Don't declare.
1367
1368 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1369
1370 * ser-base.c: Adjust comments formatting.
1371
1372 2020-09-27 Tom Tromey <tom@tromey.com>
1373
1374 PR tui/25342:
1375 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
1376
1377 2020-09-27 Tom Tromey <tom@tromey.com>
1378
1379 PR tui/25342:
1380 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
1381
1382 2020-09-27 Tom Tromey <tom@tromey.com>
1383
1384 * unittests/tui-selftests.c: Update.
1385 * tui/tui-winsource.h (struct tui_source_window_base)
1386 <extra_margin, show_line_number, refresh_pad>: New methods.
1387 <m_max_length, m_pad>: New members.
1388 (tui_copy_source_line): Update.
1389 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
1390 first_col, line_width, ndigits parameters. Add length.
1391 (tui_source_window_base::show_source_line): Write to pad. Line
1392 number now 0-based.
1393 (tui_source_window_base::refresh_pad): New method.
1394 (tui_source_window_base::show_source_content): Write to pad. Call
1395 refresh_pad.
1396 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
1397 not refill.
1398 (tui_source_window_base::update_exec_info): Call
1399 show_line_number.
1400 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
1401 method.
1402 <m_digits>: New member.
1403 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
1404 and m_max_length.
1405 (tui_source_window::show_line_number): New method.
1406 * tui/tui-io.h (tui_puts): Fix comment.
1407 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
1408 m_max_length.
1409
1410 2020-09-27 Tom Tromey <tom@tromey.com>
1411
1412 * tui/tui-winsource.c
1413 (tui_source_window_base::set_is_exec_point_at): Don't call
1414 show_source_line.
1415
1416 2020-09-27 Tom Tromey <tom@tromey.com>
1417
1418 * python/py-tui.c (class tui_py_window) <refresh_window>: New
1419 method.
1420 <erase>: Update.
1421 <cursor_x, cursor_y>: Remove.
1422 <m_inner_window>: New member.
1423 (tui_py_window::rerender): Create inner window.
1424 (tui_py_window::output): Write to inner window.
1425
1426 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
1427
1428 PR python/26586
1429 * cli/cli-script.c (execute_control_commands): don't set
1430 instream to nullptr here as this breaks the from_tty argument
1431 to gdb.execute in Python.
1432 (execute_user_command): set instream to nullptr here instead.
1433
1434 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
1435
1436 * infrun.h (infrun_debug_printf): Fix formatting.
1437 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
1438
1439 2020-09-25 Saagar Jha <saagar@saagarjha.com>
1440
1441 * compile/compile-object-load.h (struct munmap_list): Add
1442 explicitly-defined move constructor.
1443
1444 2020-09-24 Tom Tromey <tromey@adacore.com>
1445
1446 PR tui/26638:
1447 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
1448 method.
1449 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
1450 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
1451 (tui_prev_win): Rewrite.
1452
1453 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
1454
1455 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
1456 in WOW64 processes as SIGINT.
1457 * nat/windows-nat.h: Make wow64_process a shared variable.
1458 * windows-nat.c: Remove static wow64_process variable.
1459
1460 2020-09-23 Tom Tromey <tom@tromey.com>
1461
1462 PR symtab/25470:
1463 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
1464 offset and bit size.
1465 * printcmd.c (print_scalar_formatted): Handle zero-length
1466 integer.
1467 (print_scalar_formatted): Use bit_size_differs_p.
1468 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
1469 constant.
1470 (union type_specific): <int_stuff>: New member.
1471 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1472 methods.
1473 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1474 TYPE_SPECIFIC_FIELD.
1475 (recursive_dump_type, copy_type_recursive): Update.
1476 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1477 DW_AT_data_bit_offset.
1478
1479 2020-09-23 Tom Tromey <tom@tromey.com>
1480
1481 * utils.h (class gdb_argv): Add move operators.
1482 <append>: New methods.
1483 * compile/compile.c (build_argc_argv): Remove.
1484 (compile_args_argc): Remove.
1485 (compile_args_argv): Change type.
1486 (set_compile_args): Simplify.
1487 (append_args): Remove.
1488 (filter_args): Remove argcp parameter.
1489 (get_args): Return gdb_argv. Simplify.
1490 (compile_to_object): Update.
1491
1492 2020-09-23 Tom Tromey <tom@tromey.com>
1493
1494 * compile/compile-object-run.c (do_module_cleanup)
1495 <~do_module_cleanup> :Remove.
1496 (do_module_cleanup): Update.
1497 * compile/compile-object-load.h (struct munmap_list): Add move
1498 assignment operator.
1499 <source_file>: Now a std::string.
1500 <munmap_list>: Rename. No longer a pointer.
1501 * compile/compile-object-load.c (struct setup_sections_data): Add
1502 constructor.
1503 <setup_one_section>: Declare.
1504 <munmap_list>: Move earlier.
1505 <m_bfd>: New member.
1506 <m_last_size, m_last_section_first, m_last_prot,
1507 m_last_max_alignment>: Rename, add initializers where needed.
1508 (setup_sections_data::setup_one_section): Rename from
1509 setup_sections. Update.
1510 (compile_object_load): Update. Don't use bfd_map_over_sections.
1511
1512 2020-09-23 Tom Tromey <tom@tromey.com>
1513
1514 * compile/compile-object-run.c (struct do_module_cleanup): Add
1515 parameters to constructor. Update destructor.
1516 <source_file, scope, scope_data, out_value_type, out_value_addr,
1517 munmap_list_head, objfile_name_string>: Remove.
1518 <module>: New member.
1519 (do_module_cleanup): Update.
1520 (compile_object_run): Update.
1521
1522 2020-09-23 Tom Tromey <tom@tromey.com>
1523
1524 * compile/compile.c (eval_compile_command): Update.
1525 * compile/compile-object-run.h (compile_object_run): Take a
1526 compile_module_up.
1527 * compile/compile-object-run.c (compile_object_run): Take a
1528 compile_module_up.
1529 * compile/compile-object-load.h (struct compile_module): Add
1530 constructor, destructor.
1531 (compile_module_up): New typedef.
1532 (compile_object_load): Return compile_object_up.
1533 * compile/compile-object-load.c (compile_object_load): Return
1534 compile_module_up.
1535
1536 2020-09-23 Tom Tromey <tom@tromey.com>
1537
1538 * compile/compile-object-run.c (struct do_module_cleanup): Add
1539 constructor, destructor.
1540 <objfile_name_string>: Don't use struct hack.
1541 (do_module_cleanup): Use delete.
1542 (compile_object_run): Use new.
1543
1544 2020-09-23 Tom Tromey <tom@tromey.com>
1545
1546 * compile/compile-cplus-types.c
1547 (compile_cplus_convert_struct_or_union): Use std::vector.
1548 (compile_cplus_convert_func): Likewise.
1549 * compile/compile-c-types.c (convert_func): Use std::vector.
1550
1551 2020-09-21 Tom Tromey <tromey@adacore.com>
1552
1553 * sparc-tdep.c (sparc32_skip_prologue): Use
1554 skip_prologue_using_sal.
1555
1556 2020-09-19 Tom Tromey <tom@tromey.com>
1557
1558 * symfile.c (add_section_size_callback): Remove.
1559 (load_one_section): Rename from load_section_callback. Change
1560 parameters.
1561 (generic_load): Use foreach.
1562
1563 2020-09-19 Tom Tromey <tom@tromey.com>
1564
1565 * exec.c (add_to_section_table): Remove.
1566 (build_section_table): Use foreach.
1567
1568 2020-09-19 Tom Tromey <tom@tromey.com>
1569
1570 * elfread.c (elf_locate_sections): Change parameters.
1571 (elf_symfile_read): Use foreach.
1572
1573 2020-09-19 Tom Tromey <tom@tromey.com>
1574
1575 * cli/cli-dump.c (struct callback_data): Remove.
1576 (restore_one_section): Rename from restore_section_callback.
1577 Change parameters.
1578 (restore_binary_file): Change parameters.
1579 (restore_command): Use foreach.
1580
1581 2020-09-19 Tom Tromey <tom@tromey.com>
1582
1583 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
1584 (gcore_copy_callback): Likewise.
1585 (gcore_memory_sections): Use foreach.
1586
1587 2020-09-19 Tom Tromey <tom@tromey.com>
1588
1589 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
1590 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
1591 parameters.
1592 (generic_elf_osabi_sniffer): Use foreach.
1593 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
1594 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
1595
1596 2020-09-19 Tom Tromey <tom@tromey.com>
1597
1598 * dwarf2/read.c (locate_dwz_sections): Change parameters.
1599 (dwarf2_get_dwz_file): Use foreach.
1600 (dwarf2_locate_dwo_sections): Change parameters.
1601 (open_and_init_dwo_file): Use foreach.
1602 (dwarf2_locate_common_dwp_sections): Change parameters.
1603 (open_and_init_dwp_file): Use foreach.
1604
1605 2020-09-19 Tom Tromey <tom@tromey.com>
1606
1607 * symfile.h: (find_lowest_section): Don't declare.
1608 * symfile.c (find_lowest_section): Now static. Change
1609 parameters.
1610 (struct place_section_arg): Remove.
1611 (place_section): Change parameters.
1612 (addr_info_make_relative): Use foreach.
1613 (symfile_dummy_outputs): Remove.
1614 (default_symfile_relocate): Use foreach.
1615
1616 2020-09-19 Tom Tromey <tom@tromey.com>
1617
1618 * objfiles.c (add_to_objfile_sections): Rename from
1619 add_to_objfile_sections_full.
1620 (add_to_objfile_sections): Remove.
1621 (build_objfile_section_table): Use foreach.
1622
1623 2020-09-19 Tom Tromey <tom@tromey.com>
1624
1625 * stap-probe.c (get_stap_base_address_1): Remove.
1626 (get_stap_base_address): Use foreach.
1627
1628 2020-09-19 Tom Tromey <tom@tromey.com>
1629
1630 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
1631 parameters.
1632 (gdb_bfd_close_or_warn): Use foreach.
1633
1634 2020-09-19 Tom Tromey <tom@tromey.com>
1635
1636 * corelow.c (add_to_thread_list): Change parameters.
1637 (core_target_open): Use foreach.
1638
1639 2020-09-19 Tom Tromey <tom@tromey.com>
1640
1641 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
1642 existing function.
1643
1644 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1645
1646 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
1647 for arrays.
1648
1649 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1650
1651 * eval.c: Remove 'f-lang.h' include.
1652 (value_f90_subarray): Moved to f-lang.c.
1653 (eval_call): Renamed to...
1654 (evaluate_subexp_do_call): ...this, is no longer static, header
1655 comment moved into header file.
1656 (evaluate_funcall): Update call to eval_call.
1657 (skip_undetermined_arglist): Moved to f-lang.c.
1658 (fortran_value_subarray): Likewise.
1659 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1660 moved to evaluate_subexp_f.
1661 (calc_f77_array_dims): Moved to f-lang.c
1662 * expprint.c (print_subexp_funcall): New function.
1663 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1664 moved to print_subexp_f, OP_FUNCALL uses new function.
1665 (dump_subexp_body_funcall): New function.
1666 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
1667 moved to dump_subexp_f, OP_FUNCALL uses new function.
1668 * expression.h (evaluate_subexp_do_call): Declare.
1669 * f-lang.c (value_f90_subarray): Moved from eval.c.
1670 (skip_undetermined_arglist): Likewise.
1671 (calc_f77_array_dims): Likewise.
1672 (fortran_value_subarray): Likewise.
1673 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
1674 (operator_length_f): Likewise.
1675 (print_subexp_f): Likewise.
1676 (dump_subexp_body_f): Likewise.
1677 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
1678 declaration of this operation to here.
1679 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
1680 support moved to operator_length_f.
1681 * parser-defs.h (dump_subexp_body_funcall): Declare.
1682 (print_subexp_funcall): Declare.
1683 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
1684 fortran-operator.def.
1685
1686 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1687
1688 * eval.c (fortran_value_subarray): New function, content is taken
1689 from...
1690 (evaluate_subexp_standard): ...here, in two places. Now arrays
1691 and strings both call the new function.
1692 (calc_f77_array_dims): Add header comment, handle strings.
1693
1694 2020-09-18 Victor Collod <vcollod@nvidia.com>
1695
1696 PR gdb/26635
1697 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
1698 (i386_analyze_prologue): Call i386_skip_endbr.
1699
1700 2020-09-18 Tom Tromey <tromey@adacore.com>
1701
1702 * windows-nat.c (struct windows_nat_target) <wait>: Update.
1703 (windows_nat_target::wait): Update.
1704 * target/wait.h (enum target_wait_flag): New. Use
1705 DEF_ENUM_FLAGS_TYPE.
1706 * target/target.h (target_wait): Change type of options.
1707 * target.h (target_options_to_string, default_target_wait):
1708 Update.
1709 (struct target_ops) <wait>: Change type of options.
1710 * target.c (target_wait, default_target_wait, do_option): Change
1711 type of "options".
1712 (target_options_to_string): Likewise.
1713 * target-delegates.c: Rebuild.
1714 * target-debug.h (target_debug_print_target_wait_flags): Rename
1715 from target_debug_print_options.
1716 * sol-thread.c (class sol_thread_target) <wait>: Update.
1717 (sol_thread_target::wait): Update.
1718 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
1719 (rs6000_nat_target::wait): Update.
1720 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
1721 Update.
1722 (remote_target::wait_ns, remote_target::wait_as): Change type of
1723 "options".
1724 (remote_target::wait): Update.
1725 * remote-sim.c (struct gdbsim_target) <wait>: Update.
1726 (gdbsim_target::wait): Update.
1727 * record-full.c (class record_full_base_target) <wait>: Update.
1728 (record_full_wait_1): Change type of "options".
1729 (record_full_base_target::wait): Update.
1730 * record-btrace.c (class record_btrace_target) <wait>: Update.
1731 (record_btrace_target::wait): Update.
1732 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
1733 Update.
1734 (ravenscar_thread_target::wait): Update.
1735 * procfs.c (class procfs_target) <wait>: Update.
1736 (procfs_target::wait): Update.
1737 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
1738 * obsd-nat.c (obsd_nat_target::wait): Update.
1739 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
1740 (nto_procfs_target::wait): Update.
1741 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
1742 * nbsd-nat.c (nbsd_wait): Change type of "options".
1743 (nbsd_nat_target::wait): Update.
1744 * linux-thread-db.c (class thread_db_target) <wait>: Update.
1745 (thread_db_target::wait): Update.
1746 * linux-nat.h (class linux_nat_target) <wait>: Update.
1747 * linux-nat.c (linux_nat_target::wait): Update.
1748 (linux_nat_wait_1): Update.
1749 * infrun.c (do_target_wait_1, do_target_wait): Change type of
1750 "options".
1751 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
1752 * inf-ptrace.c (inf_ptrace_target::wait): Update.
1753 * go32-nat.c (struct go32_nat_target) <wait>: Update.
1754 (go32_nat_target::wait): Update.
1755 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
1756 * gnu-nat.c (gnu_nat_target::wait): Update.
1757 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
1758 * fbsd-nat.c (fbsd_nat_target::wait): Update.
1759 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
1760 * darwin-nat.c (darwin_nat_target::wait): Update.
1761 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
1762 (bsd_uthread_target::wait): Update.
1763 * aix-thread.c (class aix_thread_target) <wait>: Update.
1764 (aix_thread_target::wait): Update.
1765
1766 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
1767
1768 * compile/compile-object-run.c (create_copied_type_recursive): New
1769 function.
1770 (compile_object_run): Use new function.
1771
1772 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
1773
1774 * NEWS: Mention x86_64 Cygwin core file support.
1775
1776 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1777
1778 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
1779 (core_process_module_section): Handle NOTE_INFO_MODULE64.
1780
1781 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1782
1783 * windows-tdep.h: Add prototypes.
1784 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
1785 (i386_windows_core_pid_to_str): Move and rename ...
1786 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
1787 (windows_core_pid_to_str): ... and here.
1788 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
1789
1790 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1791 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
1792 (amd64_windows_init_abi_common): ... and register.
1793
1794 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1795
1796 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
1797 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
1798
1799 2020-09-18 Pedro Alves <pedro@palves.net>
1800
1801 PR gdb/26631
1802 * thread.c (thread_find_command): Switch inferior before calling
1803 target methods.
1804
1805 2020-09-17 Tom Tromey <tromey@adacore.com>
1806
1807 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
1808 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
1809 (tdesc_arch_data_up): New typedef.
1810 (tdesc_use_registers, tdesc_data_alloc): Update.
1811 (tdesc_data_cleanup): Don't declare.
1812 * target-descriptions.c (tdesc_data_alloc): Return a
1813 tdesc_arch_data_up.
1814 (tdesc_arch_data_deleter::operator()): Rename from
1815 tdesc_data_cleanup. Change argument type.
1816 (tdesc_use_registers): Change early_data to an rvalue reference.
1817 (tdesc_use_registers): Don't use delete.
1818 * sparc-tdep.c (sparc32_gdbarch_init): Update.
1819 * s390-tdep.c (s390_gdbarch_init): Update.
1820 * rx-tdep.c (rx_gdbarch_init): Update.
1821 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1822 * riscv-tdep.c (riscv_gdbarch_init): Update.
1823 * or1k-tdep.c (or1k_gdbarch_init): Update.
1824 * nios2-tdep.c (nios2_gdbarch_init): Update.
1825 * nds32-tdep.c (nds32_gdbarch_init): Update.
1826 * mips-tdep.c (mips_gdbarch_init): Update.
1827 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
1828 * m68k-tdep.c (m68k_gdbarch_init): Update.
1829 * i386-tdep.c (i386_gdbarch_init): Update.
1830 * arm-tdep.c (arm_gdbarch_init): Update.
1831 * arc-tdep.c (arc_tdesc_init): Update.
1832 (arc_gdbarch_init): Update.
1833 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
1834
1835 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
1836
1837 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
1838 for WOW64 processes.
1839
1840 2020-09-17 Tom Tromey <tom@tromey.com>
1841
1842 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
1843
1844 2020-09-17 Tom Tromey <tom@tromey.com>
1845
1846 * value.c (preserve_values): Update.
1847 * python/py-type.c (save_objfile_types): Update.
1848 * guile/scm-type.c (save_objfile_types): Update.
1849 * gdbtypes.h (create_copied_types_hash): Return htab_up.
1850 * gdbtypes.c (create_copied_types_hash): Return htab_up.
1851 * compile/compile-object-run.c (compile_object_run): Update.
1852
1853 2020-09-17 Tom Tromey <tom@tromey.com>
1854
1855 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
1856 Remove.
1857 <m_table>: Now htab_up.
1858 * typeprint.c (typedef_hash_table::recursively_update)
1859 (typedef_hash_table::add_template_parameters)
1860 (typedef_hash_table::typedef_hash_table): Update.
1861 (typedef_hash_table::~typedef_hash_table): Remove.
1862 (typedef_hash_table::typedef_hash_table)
1863 (typedef_hash_table::find_global_typedef)
1864 (typedef_hash_table::find_typedef): Update.
1865
1866 2020-09-17 Tom Tromey <tom@tromey.com>
1867
1868 * target-descriptions.c (tdesc_use_registers): Use htab_up.
1869
1870 2020-09-17 Tom Tromey <tom@tromey.com>
1871
1872 * linespec.c (class decode_compound_collector)
1873 <~decode_compound_collector>: Remove.
1874 <m_unique_syms>: Now htab_up.
1875 (decode_compound_collector::operator ()): Update.
1876 (class symtab_collector) <~symtab_collector>: Remove.
1877 <m_symtab_table>: Now htab_up.
1878 (symtab_collector::operator ()): Update.
1879
1880 2020-09-17 Tom Tromey <tom@tromey.com>
1881
1882 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
1883 (filename_seen_cache::clear): Update.
1884 (~filename_seen_cache): Remove.
1885 (filename_seen_cache::seen): Update.
1886 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
1887 htab_up.
1888 <~filename_seen_cache>: Remove.
1889 <traverse>: Update.
1890
1891 2020-09-17 Tom Tromey <tom@tromey.com>
1892
1893 * completer.c (completion_tracker::discard_completions)
1894 (completion_tracker::~completion_tracker)
1895 (completion_tracker::maybe_add_completion)
1896 (completion_tracker::remove_completion)
1897 (completion_tracker::recompute_lowest_common_denominator)
1898 (completion_tracker::build_completion_result): Update.
1899 * completer.h (class completion_tracker) <have_completions>:
1900 Update.
1901 <m_entries_hash>: Now htab_up.
1902
1903 2020-09-17 Tom Tromey <tom@tromey.com>
1904
1905 * breakpoint.c (ambiguous_names_p): Use htab_up.
1906
1907 2020-09-17 Tom Tromey <tom@tromey.com>
1908
1909 * auto-load.c (struct auto_load_pspace_info)
1910 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
1911 <loaded_script_files, loaded_script_texts>: Change type to
1912 htab_up.
1913 (~auto_load_pspace_info) Remove.
1914 (init_loaded_scripts_info, maybe_add_script_file)
1915 (maybe_add_script_text, auto_load_info_scripts): Update.
1916
1917 2020-09-17 Tom Tromey <tromey@adacore.com>
1918
1919 * c-exp.y (name_obstack): Now static.
1920
1921 2020-09-17 Chungyi Chi <demonic@csie.io>
1922
1923 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
1924
1925 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
1926
1927 * breakpoint.h (init_catchpoint): Change int parameter to bool.
1928 (add_solib_catchpoint): Likewise.
1929 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
1930 to bool.
1931 (add_solib_catchpoint): Change int parameter/variable to bool.
1932 (catch_load_or_unload): Likewise.
1933 (init_catchpoint): Likewise.
1934 (create_fork_vfork_event_catchpoint): Likewise.
1935 (catch_fork_command_1): Likewise.
1936 (catch_exec_command_1): Likewise.
1937
1938 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
1939
1940 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
1941 Change instance_flags to m_instance_flags.
1942
1943 2020-09-16 Tom Tromey <tromey@adacore.com>
1944
1945 PR gdb/26598:
1946 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
1947
1948 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1949
1950 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
1951 PL_FLAG_EXEC.
1952 (fbsd_nat_target::insert_exec_catchpoint)
1953 (fbsd_nat_target::remove_exec_catchpoint): Always define.
1954 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
1955 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
1956
1957 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1958
1959 * configure.ac: Remove check for kinfo_getvmmap().
1960 * configure, config.in: Regenerate.
1961 * fbsd-nat.c (fbsd_read_mapping): Remove
1962 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
1963 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
1964 kinfo_get_vmmap() are always present.
1965
1966 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1967
1968 * fbsd-nat.c: Always include support for
1969 TARGET_OBJECT_SIGNAL_INFO.
1970
1971 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1972
1973 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
1974 sysctl and remove procfs fallback.
1975
1976 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1977
1978 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
1979 * fbsd-nat.h: Likewise.
1980
1981 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1982
1983 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
1984 argument.
1985
1986 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1987
1988 * ada-lang.c (ada_language_data): Delete.
1989 (ada_language): Remove references to ada_language_data.
1990 * c-lang.c (c_language_data): Delete.
1991 (c_language): Remove references to c_language_data.
1992 (cplus_language_data): Delete.
1993 (cplus_language): Remove references to cplus_language_data.
1994 (asm_language_data): Delete.
1995 (asm_language): Remove references to asm_language_data.
1996 (minimal_language_data): Delete.
1997 (minimal_language): Remove references to minimal_language_data.
1998 * d-lang.c (d_language_data): Delete.
1999 (d_language): Remove references to d_language_data.
2000 * f-lang.c (f_language_data): Delete.
2001 (f_language): Remove references to f_language_data.
2002 * go-lang.c (go_language_data): Delete.
2003 (go_language): Remove references to go_language_data.
2004 * language.c (unknown_language_data): Delete.
2005 (unknown_language): Remove references to unknown_language_data.
2006 (auto_language_data): Delete.
2007 (auto_language): Remove references to auto_language_data.
2008 * language.h (language_data): Delete struct.
2009 (language_defn): No longer inherit from language_data.
2010 * m2-lang.c (m2_language_data): Delete.
2011 (m2_language): Remove references to m2_language_data.
2012 * objc-lang.c (objc_language_data): Delete.
2013 (objc_language): Remove references to objc_language_data.
2014 * opencl-lang.c (opencl_language_data): Delete.
2015 (opencl_language): Remove references to opencl_language_data.
2016 * p-lang.c (pascal_language_data): Delete.
2017 (pascal_language): Remove references to pascal_language_data.
2018 * rust-lang.c (rust_language_data): Delete.
2019 (rust_language): Remove references to rust_language_data.
2020
2021 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2022
2023 * ada-lang.c (ada_language_data): Remove la_op_print_tab
2024 initializer.
2025 (ada_language::opcode_print_table): New member function.
2026 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
2027 (c_language::opcode_print_table): New member function.
2028 (cplus_language_data): Remove la_op_print_tab initializer.
2029 (cplus_language::opcode_print_table): New member function.
2030 (asm_language_data): Remove la_op_print_tab initializer.
2031 (asm_language::opcode_print_table): New member function.
2032 (minimal_language_data): Remove la_op_print_tab initializer.
2033 (minimal_language::opcode_print_table): New member function.
2034 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
2035 (d_language::opcode_print_table): New member function.
2036 * expprint.c (print_subexp_standard): Update call to
2037 opcode_print_table.
2038 (op_string): Likewise.
2039 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
2040 (f_language::opcode_print_table): New member function.
2041 * go-lang.c (go_language_data): Remove la_op_print_tab
2042 initializer.
2043 (go_language::opcode_print_table): New member function.
2044 * language.c (unknown_language_data): Remove la_op_print_tab
2045 initializer.
2046 (unknown_language::opcode_print_table): New member function.
2047 (auto_language_data): Remove la_op_print_tab initializer.
2048 (auto_language::opcode_print_table): New member function.
2049 * language.h (language_data): Remove la_op_print_tab field.
2050 (language_defn::opcode_print_table): Declare new member function.
2051 * m2-lang.c (m2_language_data): Remove la_op_print_tab
2052 initializer.
2053 (m2_language::opcode_print_table): New member function.
2054 * objc-lang.c (objc_language_data): Remove la_op_print_tab
2055 initializer.
2056 (objc_language::opcode_print_table): New member function.
2057 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
2058 initializer.
2059 (opencl_language::opcode_print_table): New member function.
2060 * p-lang.c (pascal_language_data): Remove la_op_print_tab
2061 initializer.
2062 (pascal_language::opcode_print_table): New member function.
2063 * rust-lang.c (rust_language_data): Remove la_op_print_tab
2064 initializer.
2065 (rust_language::opcode_print_table): New member function.
2066
2067 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2068
2069 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
2070 (ada_language::expression_ops): New member function.
2071 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
2072 (c_language::expression_ops): New member function.
2073 (cplus_language_data): Remove la_exp_desc initializer.
2074 (cplus_language::expression_ops): New member function.
2075 (asm_language_data): Remove la_exp_desc initializer.
2076 (asm_language::expression_ops): New member function.
2077 (minimal_language_data): Remove la_exp_desc initializer.
2078 (minimal_language::expression_ops): New member function.
2079 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
2080 (d_language::expression_ops): New member function.
2081 * eval.c (evaluate_subexp): Update call to expression_ops.
2082 * expprint.c (print_subexp): Likewise.
2083 (op_name): Likewise.
2084 (dump_subexp_body): Likewise.
2085 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
2086 (f_language::expression_ops): New member function.
2087 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
2088 (go_language::expression_ops): New member function.
2089 * language.c (language_defn::expression_ops): New function.
2090 (unknown_language_data): Remove la_exp_desc initializer.
2091 (auto_language_data): Likewise.
2092 * language.h (language_data): Remove la_exp_desc field.
2093 (language_defn::expression_ops): Declare new member function.
2094 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
2095 (m2_language::expression_ops): New member function.
2096 * objc-lang.c (objc_language_data): Remove la_exp_desc
2097 initializer.
2098 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
2099 initializer.
2100 (opencl_language::expression_ops): New member function.
2101 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
2102 * parse.c (operator_length): Update call to expression_ops.
2103 (exp_iterate): Likewise.
2104 * rust-lang.c (rust_language_data): Remove la_exp_desc
2105 initializer.
2106 (ruse_language::expression_ops): New member function.
2107
2108 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2109
2110 * ada-lang.c (ada_language_data): Remove la_varobj_ops
2111 initializer.
2112 (ada_language::varobj_ops): New member function.
2113 * c-lang.c (c_language_data): Remove la_varobj_ops
2114 initializer.
2115 (cplus_language_data): Likewise.
2116 (cplus_language::varobj_ops): New member function.
2117 (asm_language_data): Remove la_varobj_ops initializer.
2118 (minimal_language_data): Likewise.
2119 * d-lang.c (d_language_data): Likewise.
2120 * f-lang.c (f_language_data): Likewise.
2121 * go-lang.c (go_language_data): Likewise.
2122 * language.c (language_defn::varobj_ops): New function.
2123 (unknown_language_data): Remove la_varobj_ops
2124 initializer.
2125 (auto_language_data): Likewise.
2126 * language.h (language_data): Remove la_varobj_ops field.
2127 (language_defn::varobj_ops): Declare new member function.
2128 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
2129 * objc-lang.c (objc_language_data): Likewise.
2130 * opencl-lang.c (opencl_language_data): Likewise.
2131 * p-lang.c (pascal_language_data): Likewise.
2132 * rust-lang.c (rust_language_data): Likewise.
2133 * varobj.c (varobj_create): Update call to varobj_ops.
2134 * varobj.h (default_varobj_ops): Delete define.
2135
2136 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2137
2138 * ada-lang.c (ada_language_data): Remove la_macro_expansion
2139 initializer.
2140 * c-lang.c (c_language_data): Likewise.
2141 (c_language::macro_expansion): New member function.
2142 (cplus_language_data): Likewise.
2143 (cplus_language::macro_expansion): New member function.
2144 (asm_language_data): Likewise.
2145 (asm_language::macro_expansion): New member function.
2146 (minimal_language_data): Likewise.
2147 (minimal_language::macro_expansion): New member function.
2148 * d-lang.c (d_language_data): Remove la_macro_expansion
2149 initializer.
2150 * f-lang.c (f_language_data): Likewise.
2151 * go-lang.c (go_language_data): Likewise.
2152 * language.c (unknown_language_data): Likewise.
2153 (auto_language_data): Likewise.
2154 * language.h (language_data): Remove la_macro_expansion field.
2155 (language_defn::macro_expansion): New member function.
2156 * m2-lang.c (m2_language_data): Remove la_macro_expansion
2157 initializer.
2158 * objc-lang.c (objc_language_data): Likewise.
2159 (objc_language::macro_expansion): New member function.
2160 * opencl-lang.c (opencl_language_data): Likewise.
2161 (opencl_language::macro_expansion): New member function.
2162 * p-lang.c (pascal_language_data): Remove la_macro_expansion
2163 initializer.
2164 * rust-lang.c (rust_language_data): Likewise.
2165 * symtab.c (default_collect_symbol_completion_matches_break_on):
2166 Update call to macro_expansion.
2167
2168 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2169
2170 * ada-lang.c (ada_language_data): Remove la_array_ordering
2171 initializer.
2172 * c-lang.c (c_language_data): Likewise.
2173 (cplus_language_data): Likewise.
2174 (asm_language_data): Likewise.
2175 (minimal_language_data): Likewise.
2176 * d-lang.c (d_language_data): Likewise.
2177 * dwarf2/read.c (read_array_order): Update for call to
2178 array_ordering.
2179 * f-lang.c (f_language_data): Remove la_array_ordering
2180 initializer.
2181 (f_language::array_ordering): New member function.
2182 * go-lang.c (go_language_data): Remove la_array_ordering
2183 initializer.
2184 * language.c (unknown_language_data): Likewise.
2185 (auto_language_data): Likewise.
2186 * language.h (language_data): Delete la_array_ordering field.
2187 (language_defn::array_ordering): New member function.
2188 * m2-lang.c (m2_language_data): Remove la_array_ordering
2189 initializer.
2190 * objc-lang.c (objc_language_data): Likewise.
2191 * opencl-lang.c (opencl_language_data): Likewise.
2192 * p-lang.c (pascal_language_data): Likewise.
2193 * rust-lang.c (rust_language_data): Likewise.
2194
2195 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2196
2197 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
2198 initializer.
2199 * c-lang.c (c_language_data): Likewise.
2200 (cplus_language_data): Likewise.
2201 (asm_language_data): Likewise.
2202 (minimal_language_data): Likewise.
2203 * d-lang.c (d_language_data): Likewise.
2204 * f-lang.c (f_language_data): Likewise.
2205 (f_language::case_sensitivity): New member function.
2206 * go-lang.c (go_language_data): Remove la_case_sensitivity
2207 initializer.
2208 * language.c (enum case_mode): Moved here from language.h.
2209 (case_mode): Make static.
2210 (show_case_command): Update for case_sensitivity being a method.
2211 (set_case_command): Likewise.
2212 (set_range_case): Likewise.
2213 (unknown_language_data): Remove la_case_sensitivity initializer.
2214 (auto_language_data): Likewise.
2215 * language.h (case_mode): Delete, move enum declaration to
2216 language.c.
2217 (language_data): Delete la_case_sensitivity field.
2218 (language_defn::case_sensitivity): New member function.
2219 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
2220 initializer.
2221 * objc-lang.c (objc_language_data): Likewise.
2222 * opencl-lang.c (opencl_language_data): Likewise.
2223 * p-lang.c (pascal_language_data): Likewise.
2224 * rust-lang.c (rust_language_data): Likewise.
2225
2226 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2227
2228 * ada-lang.c (ada_language_data): Remove la_range_check
2229 initializer.
2230 * c-lang.c (c_language_data): Likewise.
2231 (cplus_language_data): Likewise.
2232 (asm_language_data): Likewise.
2233 (minimal_language_data): Likewise.
2234 * d-lang.c (d_language_data): Likewise.
2235 * f-lang.c (f_language_data): Likewise.
2236 (f_language::range_checking_on_by_default): New member function.
2237 * go-lang.c (go_language_data): Remove la_range_check initializer.
2238 * language.c (enum range_mode): Moved here from language.h.
2239 (range_mode): Made static.
2240 (show_range_command): Update to use
2241 range_checking_on_by_default.
2242 (set_range_command): Likewise.
2243 (set_range_case): Likewise.
2244 (unknown_language_data): Remove la_range_check initializer.
2245 (auto_language_data): Likewise.
2246 * language.h (range_mode): Delete. Enum definition moved to
2247 language.c.
2248 (language_data): Remove la_range_check field.
2249 (language_defn::range_checking_on_by_default): New member
2250 function.
2251 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
2252 (m2_language::range_checking_on_by_default): New member function.
2253 * objc-lang.c (objc_language_data): Remove la_range_check
2254 initializer.
2255 * opencl-lang.c (opencl_language_data): Likewise.
2256 * p-lang.c (pascal_language_data): Likewise.
2257 (pascal_language::range_checking_on_by_default): New member
2258 function.
2259 * rust-lang.c (rust_language_data): Remove la_range_check
2260 initializer.
2261 (rust_language::range_checking_on_by_default): New member
2262 function.
2263
2264 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2265
2266 * dwarf2/read.c (dwarf2_physname): Remove special case for
2267 language_go.
2268 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
2269 member function.
2270
2271 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2272
2273 * ada-lang.c (ada_language_data): Remove
2274 la_store_sym_names_in_linkage_form_p initializer.
2275 (ada_language::store_sym_names_in_linkage_form_p): New member
2276 function.
2277 * c-lang.c (c_language_data): Remove
2278 la_store_sym_names_in_linkage_form_p initializer.
2279 (c_language::store_sym_names_in_linkage_form_p): New member
2280 function.
2281 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
2282 initializer.
2283 (asm_language_data): Likewise.
2284 (asm_language::store_sym_names_in_linkage_form_p): New member
2285 function.
2286 (minimal_language_data): Remove
2287 la_store_sym_names_in_linkage_form_p initializer.
2288 (minimal_language::store_sym_names_in_linkage_form_p): New member
2289 function.
2290 * d-lang.c (d_language_data): Remove
2291 la_store_sym_names_in_linkage_form_p initializer.
2292 * dwarf2/read.c (dwarf2_physname): Update call to
2293 store_sym_names_in_linkage_form_p.
2294 * f-lang.c (f_language_data): Remove
2295 la_store_sym_names_in_linkage_form_p initializer.
2296 * go-lang.c (go_language_data): Remove
2297 la_store_sym_names_in_linkage_form_p initializer.
2298 * language.c (unknown_language_data): Remove
2299 la_store_sym_names_in_linkage_form_p initializer.
2300 (unknown_language::store_sym_names_in_linkage_form_p): New member
2301 function.
2302 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
2303 initializer.
2304 (auto_language::store_sym_names_in_linkage_form_p): New member
2305 function.
2306 * language.h (language_data): Remove
2307 la_store_sym_names_in_linkage_form_p member variable.
2308 (language_defn::store_sym_names_in_linkage_form_p): New member
2309 function.
2310 * m2-lang.c (m2_language_data): Remove
2311 la_store_sym_names_in_linkage_form_p initializer.
2312 * objc-lang.c (objc_language_data): Likewise.
2313 * opencl-lang.c (opencl_language_data): Likewise.
2314 * p-lang.c (pascal_language_data): Likewise.
2315 * rust-lang.c (rust_language_data): Likewise.
2316
2317 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2318
2319 * ada-lang.c (ada_language_data): Remove string_lower_bound
2320 initializer.
2321 * c-lang.c (c_language_data): Likewise.
2322 (cplus_language_data): Likewise.
2323 (asm_language_data): Likewise.
2324 (minimal_language_data): Likewise.
2325 * d-lang.c (d_language_data): Likewise.
2326 * f-lang.c (f_language_data): Likewise.
2327 * go-lang.c (go_language_data): Likewise.
2328 * language.c (unknown_language_data): Likewise.
2329 (auto_language_data): Likewise.
2330 * language.h (language_data): Remove string_lower_bound field.
2331 (language_defn::string_lower_bound): New member function.
2332 * m2-lang.c (m2_language_data): Remove string_lower_bound
2333 initializer.
2334 (m2_language::string_lower_bound): New member function.
2335 * objc-lang.c (objc_language_data): Remove string_lower_bound
2336 initializer.
2337 * opencl-lang.c (opencl_language_data): Likewise.
2338 * p-lang.c (pascal_language_data): Likewise.
2339 * rust-lang.c (rust_language_data): Likewise.
2340 * valops.c (value_cstring): Update call to string_lower_bound.
2341 (value_string): Likewise.
2342 * value.c (allocate_repeated_value): Likewise.
2343
2344 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2345
2346 * valops.c (value_repeat): Fix incorrect argument name in comment.
2347
2348 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2349
2350 * ada-lang.c (ada_language_data): Remove c_style_arrays
2351 initializer.
2352 (ada_language::c_style_arrays_p): New member fuction.
2353 * c-lang.c (c_language_data): Remove c_style_arrays
2354 initializer.
2355 (cplus_language_data): Likewise.
2356 (asm_language_data): Likewise.
2357 (minimal_language_data): Likewise.
2358 * d-lang.c (d_language_data): Likewise.
2359 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
2360 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
2361 (f_language::c_style_arrays_p): New member function.
2362 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
2363 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
2364 * language.c (unknown_language_data): Remove c_style_arrays
2365 initializer.
2366 (auto_language_data): Likewise.
2367 * language.h (language_data): Remove c_style_arrays field.
2368 (language_defn::c_style_arrays_p): New member function.
2369 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
2370 (m2_language::c_style_arrays_p): New member function.
2371 * objc-lang.c (objc_language_data): Remove c_style_arrays
2372 initializer.
2373 * opencl-lang.c (opencl_language_data): Likewise.
2374 * p-lang.c (pascal_language_data): Likewise.
2375 * rust-lang.c (rust_language_data): Likewise.
2376 * valarith.c (value_subscript): Update call to c_style_arrays_p,
2377 and update local variable to a bool.
2378 * valops.c (value_cast): Update call to c_style_arrays_p.
2379 (value_array): Likewise.
2380 * value.c (coerce_array): Likewise.
2381
2382 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2383
2384 * ada-lang.c (ada_language_data): Remove la_language initializer.
2385 * c-lang.c (c_language_data): Likewise.
2386 (cplus_language_data): Likewise.
2387 (asm_language_data): Likewise.
2388 (minimal_language_data): Likewise.
2389 * d-lang.c (d_language_data): Likewise.
2390 * f-lang.c (f_language_data): Likewise.
2391 * go-lang.c (go_language_data): Likewise.
2392 * language.c (unknown_language_data): Likewise.
2393 (auto_language_data): Likewise.
2394 * language.h (language_data): Remove la_language field.
2395 (language_defn::language_defn): Initialise la_language field.
2396 (language_defn::la_language): New member variable.
2397 * m2-lang.c (m2_language_data): Remove la_language field.
2398 * objc-lang.c (objc_language_data): Likewise.
2399 * opencl-lang.c (opencl_language_data): Likewise.
2400 * p-lang.c (pascal_language_data): Likewise.
2401 * rust-lang.c (rust_language_data): Likewise.
2402
2403 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2404
2405 * ada-lang.c (ada_extensions): Delete, moved into
2406 ada_language::filename_extensions.
2407 (ada_language_data): Remove la_filename_extensions initializer.
2408 (ada_language::filename_extensions): New member function.
2409 * c-lang.c (c_extensions): Delete, moved into
2410 c_language::filename_extensions.
2411 (c_language_data): Remove la_filename_extensions initializer.
2412 (c_language::filename_extensions): New member function.
2413 (cplus_extensions): Delete, moved into
2414 cplus_language::filename_extensions.
2415 (cplus_language_data): Remove la_filename_extensions initializer.
2416 (cplus_language::filename_extensions): New member function.
2417 (asm_extensions): Delete, moved into
2418 asm_language::filename_extensions.
2419 (asm_language_data): Remove la_filename_extensions initializer.
2420 (asm_language::filename_extensions): New member function.
2421 (minimal_language_data): Remove la_filename_extensions
2422 initializer.
2423 * d-lang.c (d_extensions): Delete, moved into
2424 d_language::filename_extensions.
2425 (d_language_data): Remove la_filename_extensions initializer.
2426 (d_language::filename_extensions): New member function.
2427 * f-lang.c (f_extensions): Delete, moved into
2428 f_language::filename_extensions.
2429 (f_language_data): Remove la_filename_extensions initializer.
2430 (f_language::filename_extensions): New member function.
2431 * go-lang.c (go_language_data): Remove la_filename_extensions
2432 initializer.
2433 * language.c (add_set_language_command): Update now that
2434 filename_extensions returns a vector.
2435 (unknown_language_data): Remove la_filename_extensions
2436 initializer.
2437 (auto_language_data): Likewise.
2438 * language.h (language_data): Remove la_filename_extensions field.
2439 (language_defn::filename_extensions): New member function.
2440 * m2-lang.c (m2_language_data): Remove la_filename_extensions
2441 initializer.
2442 * objc-lang.c (objc_extensions): Delete, moved into
2443 objc_language::filename_extensions.
2444 (objc_language_data): Remove la_filename_extensions initializer.
2445 (objc_language::filename_extensions): New member function.
2446 * opencl-lang.c (opencl_language_data): Remove
2447 la_filename_extensions initializer.
2448 * p-lang.c (pascal_extensions): Delete, moved into
2449 pascal_language::filename_extensions.
2450 (pascal_language_data): Remove la_filename_extensions initializer.
2451 (pascal_language::filename_extensions): New member function.
2452 * rust-lang.c (rust_extensions): Delete, moved into
2453 rust_language::filename_extensions.
2454 (rust_language_data): Remove la_filename_extensions initializer.
2455 (rust_language::filename_extensions): New member function.
2456 * symfile.c (add_filename_language): Add new assert.
2457
2458 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2459
2460 * ada-lang.c (ada_language_data): Remove la_name and
2461 la_natural_name initializers.
2462 (ada_language::name): New member function.
2463 (ada_language::natural_name): New member function.
2464 * c-lang.c (c_language_data): Remove la_name and
2465 la_natural_name initializers.
2466 (c_language::name): New member function.
2467 (c_language::natural_name): New member function.
2468 (cplus_language_data): Remove la_name and
2469 la_natural_name initializers.
2470 (cplus_language::name): New member function.
2471 (cplus_language::natural_name): New member function.
2472 (asm_language_data): Remove la_name and
2473 la_natural_name initializers.
2474 (asm_language::name): New member function.
2475 (asm_language::natural_name): New member function.
2476 (minimal_language_data): Remove la_name and
2477 la_natural_name initializers.
2478 (minimal_language::name): New member function.
2479 (minimal_language::natural_name): New member function.
2480 * compile/compile.c (compile_to_object): Update call to
2481 lanugage_defn::name.
2482 * d-lang.c (d_language_data): Remove la_name and
2483 la_natural_name initializers.
2484 (d_language::name): New member function.
2485 (d_language::natural_name): New member function.
2486 * expprint.c (print_subexp_standard): Update call to
2487 language_defn::name.
2488 (dump_raw_expression): Likewise
2489 (dump_prefix_expression): Likewise.
2490 * f-lang.c (f_language_data): Remove la_name and
2491 la_natural_name initializers.
2492 (f_language::name): New member function.
2493 (f_language::natural_name): New member function.
2494 * go-lang.c (go_language_data): Remove la_name and
2495 la_natural_name initializers.
2496 (go_language::name): New member function.
2497 (go_language::natural_name): New member function.
2498 * language.c (show_language_command): Update call to
2499 language_defn::name.
2500 (set_language_command): Likewise.
2501 (language_enum): Likewise.
2502 (language_str): Likewise.
2503 (add_set_language_command): Likewise, use
2504 language_defn::natural_name in the doc string.
2505 (unknown_language_data): Remove la_name and
2506 la_natural_name initializers.
2507 (unknown_language::name): New member function.
2508 (unknown_language::natural_name): New member function.
2509 (auto_language_data): Remove la_name and
2510 la_natural_name initializers.
2511 (auto_language::name): New member function.
2512 (auto_language::natural_name): New member function.
2513 (language_lookup_primitive_type_as_symbol): Update call to
2514 language_defn::name.
2515 * language.h (language_data): Remove la_name and la_natural_name
2516 member variables.
2517 (language_defn::name): New member function.
2518 (language_defn::natural_name): New member function.
2519 * m2-lang.c (m2_language_data): Remove la_name and
2520 la_natural_name initializers.
2521 (m2_language::name): New member function.
2522 (m2_language::natural_name): New member function.
2523 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
2524 language_defn::natural_name.
2525 * objc-lang.c (objc_language_data): Remove la_name and
2526 la_natural_name initializers.
2527 (objc_language::name): New member function.
2528 (objc_language::natural_name): New member function.
2529 * opencl-lang.c (opencl_language_data): Remove la_name and
2530 la_natural_name initializers.
2531 (opencl_language::name): New member function.
2532 (opencl_language::natural_name): New member function.
2533 * p-lang.c (pascal_language_data): Remove la_name and
2534 la_natural_name initializers.
2535 (pascal_language::name): New member function.
2536 (pascal_language::natural_name): New member function.
2537 * rust-lang.c (rust_language_data): Remove la_name and
2538 la_natural_name initializers.
2539 (rust_language::name): New member function.
2540 (rust_language::natural_name): New member function.
2541 * symtab.c (lookup_language_this): Update call to
2542 language_defn::name.
2543
2544 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2545
2546 * ada-lang.c (ada_language_data): Remove la_name_of_this
2547 initializer.
2548 * ax-gdb.c (gen_expr): Update call to name_of_this.
2549 * c-exp.y (classify_name): Likewise.
2550 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
2551 (cplus_language_data): Likewise.
2552 (cplus_language::name_of_this): New member function.
2553 (asm_language_data): Remove la_name_of_this initializer.
2554 (minimal_language_data): Likewise.
2555 * d-lang.c (d_language_data): Likewise.
2556 (d_language::name_of_this): New member function.
2557 * expprint.c (print_subexp_standard): Update call to name_of_this.
2558 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
2559 * go-lang.c (go_language_data): Likewise.
2560 * language.c (unknown_language_data): Likewise.
2561 (unknown_language::name_of_this): New member function.
2562 (auto_language_data): Remove la_name_of_this initializer.
2563 (auto_language::name_of_this): New member function.
2564 * language.h (language_data): Delete la_name_of_this member
2565 variable.
2566 (language_defn::name_of_this): New member function.
2567 * m2-lang.c (m2_language_data): Remove la_name_of_this
2568 initializer.
2569 * objc-lang.c (objc_language_data): Likewise.
2570 (objc_language::name_of_this): New member function.
2571 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
2572 initializer.
2573 * p-lang.c (pascal_language_data): Likewise.
2574 (pascal_language::name_of_this): New member function.
2575 * rust-lang.c (rust_language_data): Remove la_name_of_this
2576 initializer.
2577 * symtab.c (lookup_language_this): Update call to name_of_this.
2578 (lookup_symbol_aux): Likewise.
2579 * valops.c (value_of_this): Likewise.
2580
2581 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2582
2583 * ada-lang.c (ada_language_data): Remove
2584 la_struct_too_deep_ellipsis initializer.
2585 (ada_language::struct_too_deep_ellipsis): New member function.
2586 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
2587 initializer.
2588 (cplus_language_data): Likewise.
2589 (asm_language_data): Likewise.
2590 (minimal_language_data): Likewise.
2591 * cp-valprint.c (cp_print_value): Update call to
2592 struct_too_deep_ellipsis.
2593 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
2594 initializer.
2595 * f-lang.c (f_language_data): Likewise.
2596 (f_language::struct_too_deep_ellipsis): New member function.
2597 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
2598 initializer.
2599 * language.c (unknown_language_data): Likewise.
2600 (auto_language_data): Likewise.
2601 * language.h (language_data): Delete la_struct_too_deep_ellipsis
2602 member variable.
2603 (language_defn::struct_too_deep_ellipsis): New member function.
2604 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
2605 initializer.Q
2606 * objc-lang.c (objc_language_data): Likewise.
2607 * opencl-lang.c (opencl_language_data): Likewise.
2608 * p-lang.c (pascal_language_data): Likewise.
2609 * rust-lang.c (rust_language_data): Likewise.
2610 * valprint.c (val_print_check_max_depth): Update call to
2611 struct_too_deep_ellipsis.
2612
2613 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
2614
2615 * MAINTAINERS (Write After Approval): Add myself.
2616
2617 2020-09-15 Tom Tromey <tom@tromey.com>
2618
2619 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
2620 Remove.
2621
2622 2020-09-15 Tom Tromey <tom@tromey.com>
2623
2624 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
2625 and TYPE_CODE_METHODPTR cases.
2626 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
2627 (c_value_print_inner): Update.
2628 * valprint.c (generic_value_print_memberptr): New function, from
2629 c_value_print_memberptr.
2630 (generic_value_print): Use it. Call cplus_print_method_ptr.
2631
2632 2020-09-15 Tom Tromey <tromey@adacore.com>
2633
2634 * python/python-internal.h (PyInt_FromLong): Remove define.
2635 * python/py-value.c (convert_value_from_python): Use
2636 gdb_py_object_from_longest.
2637 * python/py-type.c (typy_get_code): Use
2638 gdb_py_object_from_longest.
2639 * python/py-symtab.c (salpy_get_line): Use
2640 gdb_py_object_from_longest.
2641 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
2642 gdb_py_object_from_longest.
2643 * python/py-record.c (recpy_gap_reason_code): Use
2644 gdb_py_object_from_longest.
2645 * python/py-record-btrace.c (recpy_bt_insn_size)
2646 (recpy_bt_func_level, btpy_list_count): Use
2647 gdb_py_object_from_longest.
2648 * python/py-infthread.c (gdbpy_create_ptid_object): Use
2649 gdb_py_object_from_longest. Fix error handling.
2650 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
2651 gdb_py_object_from_longest.
2652 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
2653 gdb_py_object_from_longest.
2654 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
2655 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
2656 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
2657
2658 2020-09-15 Tom Tromey <tromey@adacore.com>
2659
2660 * python/python.c (gdbpy_parameter_value): Use
2661 gdb_py_object_from_ulongest.
2662
2663 2020-09-15 Tom Tromey <tromey@adacore.com>
2664
2665 * python/py-infevents.c (create_register_changed_event_object):
2666 Use gdb_py_object_from_longest.
2667 * python/py-exitedevent.c (create_exited_event_object): Use
2668 gdb_py_object_from_longest.
2669
2670 2020-09-15 Tom Tromey <tromey@adacore.com>
2671
2672 * python/python.c (gdbpy_parameter_value): Use
2673 gdb_py_object_from_longest.
2674 * python/py-type.c (convert_field, typy_range): Use
2675 gdb_py_object_from_longest.
2676 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
2677 gdb_py_object_from_longest.
2678 * python/py-lazy-string.c (stpy_get_length): Use
2679 gdb_py_object_from_longest.
2680 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
2681 gdb_py_object_from_longest.
2682 * python/py-infevents.c (create_memory_changed_event_object): Use
2683 gdb_py_object_from_longest.
2684 * python/py-inferior.c (infpy_get_num): Use
2685 gdb_py_object_from_longest.
2686 (infpy_get_pid): Likewise.
2687
2688 2020-09-15 Tom Tromey <tromey@adacore.com>
2689
2690 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
2691 defines.
2692 * python/py-value.c (valpy_long): Use
2693 gdb_py_object_from_ulongest.
2694 * python/py-symtab.c (salpy_get_pc): Use
2695 gdb_py_object_from_ulongest.
2696 (salpy_get_last): Likewise.
2697 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
2698 gdb_py_object_from_ulongest.
2699 * python/py-lazy-string.c (stpy_get_address): Use
2700 gdb_py_object_from_ulongest.
2701 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
2702 * python/py-arch.c (archpy_disassemble): Use
2703 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
2704 error handling.
2705
2706 2020-09-15 Tom Tromey <tromey@adacore.com>
2707
2708 * python/python-internal.h (gdb_py_long_from_longest): Remove
2709 defines.
2710 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
2711 * python/py-type.c (convert_field, typy_get_sizeof): Use
2712 gdb_py_object_from_longest.
2713 * python/py-record-btrace.c (btpy_list_index): Use
2714 gdb_py_object_from_longest.
2715
2716 2020-09-15 Tom Tromey <tromey@adacore.com>
2717
2718 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
2719 * python/py-record.c (recpy_element_number): Use
2720 gdb_py_object_from_longest.
2721 (recpy_gap_number): Likewise.
2722
2723 2020-09-15 Tom Tromey <tromey@adacore.com>
2724
2725 * top.c (ui::ui): Update.
2726 (highest_ui_num): Remove.
2727 * top.h (struct ui) <num>: Remove.
2728
2729 2020-09-15 Tom Tromey <tromey@adacore.com>
2730
2731 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
2732 * ui-style.c (ansi_regex_text): Now array.
2733 * rust-exp.y (number_regex_text): Now array.
2734 * linespec.c (linespec_quote_characters): Now array.
2735 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
2736 Now arrays.
2737
2738 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2739
2740 * debuginfod-support.c (debuginfod_client_deleter): New.
2741 (debuginfod_client_up): New.
2742 (debuginfod_init): Return debuginfod_client_up.
2743 (debuginfod_source_query): Adjust.
2744 (debuginfod_debuginfo_query): Adjust.
2745
2746 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2747
2748 * debuginfod-support.c (debuginfod_source_query): Use
2749 make_unique_xstrdup.
2750
2751 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2752
2753 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
2754 with `type::instance_flags`.
2755
2756 2020-09-14 Michael Mullin <masmullin@gmail.com>
2757
2758 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
2759 Remove baton parameter.
2760
2761 2020-09-14 Pedro Alves <pedro@palves.net>
2762
2763 * Makefile.in (SELFTESTS_SRCS): Add
2764 unittests/enum-flags-selftests.c.
2765 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
2766 btrace_function_flags instead of enum btrace_function_flag.
2767 * compile/compile-c-types.c (convert_qualified): Use
2768 enum_flags::raw.
2769 * compile/compile-cplus-symbols.c (convert_one_symbol)
2770 (convert_symbol_bmsym):
2771 * compile/compile-cplus-types.c (compile_cplus_convert_method)
2772 (compile_cplus_convert_struct_or_union_methods)
2773 (compile_cplus_instance::convert_qualified_base):
2774 * go-exp.y (parse_string_or_char): Add cast to int.
2775 * unittests/enum-flags-selftests.c: New file.
2776 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
2777 type to btrace_thread_flags from btrace_thread_flag.
2778 (record_btrace_cancel_resume, record_btrace_step_thread): Change
2779 local's type to btrace_thread_flags from btrace_thread_flag. Add
2780 cast in DEBUG call.
2781
2782 2020-09-14 Pedro Alves <pedro@palves.net>
2783
2784 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
2785 * gdbtypes.c (address_space_name_to_int): Rename to ...
2786 (address_space_name_to_type_instance_flags): ... this.
2787 (address_space_int_to_name): Rename to ...
2788 (address_space_type_instance_flags_to_name): ... this.
2789 * gdbtypes.h (address_space_name_to_int): Rename to ...
2790 (address_space_name_to_type_instance_flags): ... this.
2791 (address_space_int_to_name): Rename to ...
2792 (address_space_type_instance_flags_to_name): ... this.
2793 * type-stack.c (type_stack::insert): Adjust to rename.
2794 * type-stack.h (type_stack::insert): Likewise.
2795
2796 2020-09-14 Pedro Alves <pedro@palves.net>
2797 Andrew Burgess <andrew.burgess@embecosm.com>
2798
2799 * avr-tdep.c (avr_address_class_type_flags): Return
2800 type_instance_flags.
2801 (avr_address_class_type_flags_to_name): Take a
2802 type_instance_flags.
2803 (avr_address_class_name_to_type_flags): Return bool and take a
2804 type_instance_flags.
2805 * d-lang.c (build_d_types): Use type::set_instance_flags.
2806 * ft32-tdep.c (ft32_address_class_type_flags): Return
2807 type_instance_flags.
2808 (ft32_address_class_type_flags_to_name): Take a
2809 type_instance_flags.
2810 (ft32_address_class_name_to_type_flags): Return bool and take a
2811 type_instance_flags.
2812 (ft32_gdbarch_init): Use type::set_instance_flags.
2813 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
2814 * gdbarch.h, gdbarch.c: Regenerate.
2815 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
2816 (address_class_name_to_type_flags): Use type_instance_flags and
2817 bool.
2818 * gdbtypes.c (address_space_name_to_int)
2819 (address_space_int_to_name, make_qualified_type): Use
2820 type_instance_flags.
2821 (make_qualified_type): Use type_instance_flags and
2822 type::set_instance_flags.
2823 (make_type_with_address_space, make_cv_type, make_vector_type)
2824 (check_typedef): Use type_instance_flags.
2825 (recursive_dump_type): Cast type_instance_flags to unsigned for
2826 printing.
2827 (copy_type_recursive): Use type::set_instance_flags.
2828 (gdbtypes_post_init): Use type::set_instance_flags.
2829 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
2830 <m_instance_flags>: ... this.
2831 <instance_flags, set_instance_flags>: New methods.
2832 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
2833 (SET_TYPE_INSTANCE_FLAGS): New.
2834 (address_space_name_to_int, address_space_int_to_name)
2835 (make_type_with_address_space): Pass flags using
2836 type_instance_flags instead of int.
2837 * stabsread.c (cleanup_undefined_types_noname): Use
2838 type::set_instance_flags.
2839 * s390-tdep.c (s390_address_class_type_flags): Return
2840 type_instance_flags.
2841 (s390_address_class_type_flags_to_name): Take a
2842 type_instance_flags.
2843 (s390_address_class_name_to_type_flags): Return bool and take a
2844 type_instance_flags.
2845 * type-stack.c (type_stack::follow_types): Use
2846 type_instance_flags.
2847 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
2848
2849 2020-09-14 Tom Tromey <tromey@adacore.com>
2850
2851 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
2852 * x86-tdep.c (x86_is_thunk_register_name)
2853 (x86_in_indirect_branch_thunk): Update.
2854 * sparc64-tdep.c (sparc64_fpu_register_names)
2855 (sparc64_cp0_register_names, sparc64_register_names)
2856 (sparc64_pseudo_register_names): Now const.
2857 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
2858 cp0_registers_num>: Now const.
2859 * sparc-tdep.c (sparc_core_register_names)
2860 (sparc32_fpu_register_names, sparc32_cp0_register_names)
2861 (sparc32_pseudo_register_names): Now const.
2862 (validate_tdesc_registers): Update.
2863 * rust-lang.c (rust_extensions): Now const.
2864 * p-lang.c (p_extensions): Now const.
2865 * objc-lang.c (objc_extensions): Now const.
2866 * nto-tdep.c (nto_thread_state_str): Now const.
2867 * moxie-tdep.c (moxie_register_names): Now const.
2868 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
2869 Now const.
2870 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
2871 (mips_linux_reg_names): Now const.
2872 (mips_gdbarch_init): Update.
2873 * microblaze-tdep.c (microblaze_register_names): Now const.
2874 * m68k-tdep.c (m68k_register_names): Now const.
2875 * m32r-tdep.c (m32r_register_names): Now const.
2876 * ia64-tdep.c (ia64_register_names): Now const.
2877 * i386-tdep.h (struct gdbarch_tdep) <register_names,
2878 ymmh_register_names, ymm16h_regnum, mpx_register_names,
2879 k_register_names, zmmh_register_names, xmm_avx512_register_names,
2880 ymm_avx512_register_names, pkeys_register_names>: Now const.
2881 * i386-tdep.c (i386_register_names, i386_zmm_names)
2882 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
2883 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
2884 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
2885 * f-lang.c (f_extensions): Now const.
2886 * d-lang.c (d_extensions): Now const.
2887 * csky-tdep.c (csky_register_names): Now const.
2888 * charset.c (default_charset_names, charset_enum): Now const.
2889 (_initialize_charset): Update.
2890 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
2891 const.
2892 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
2893 (bsd_uthread_solib_loaded): Update.
2894 (bsd_uthread_state): Now const.
2895 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
2896 (amd64_ymm_avx512_names, amd64_ymmh_names)
2897 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
2898 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
2899 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
2900 (amd64_dword_names): Now const.
2901 * agent.c (can_use_agent_enum): Now const.
2902 * ada-tasks.c (task_states, long_task_states): Now const.
2903 * ada-lang.c (known_runtime_file_name_patterns)
2904 (known_auxiliary_function_name_patterns, attribute_names)
2905 (standard_exc, ada_extensions): Now const.
2906
2907 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2908
2909 * bcache.h (struct bcache) <bcache>: Remove constructor.
2910 <m_hash_function, m_compare_function>: Remove.
2911 <~bcache>: Make virtual.
2912 <compare>: Remove static method, introduce virtual method.
2913 <default_hash>: Remove.
2914 <hash>: New virtual method.
2915 * bcache.c (bcache::expand_hash_table): Update.
2916 (bcache::insert): Update.
2917 (bcache::hash): New.
2918 (bcache::compare): Update comment and parameter names.
2919 * gdbtypes.c (types_deeply_equal): Update.
2920 * psymtab.h (struct psymbol_bcache): New struct.
2921 (class psymtab_storage) <psymtab_storage>: Make default.
2922 <psymbol_cache>: Change type to psymbol_bcache.
2923 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
2924 (psymbol_hash): Change to...
2925 (psymbol_bcache::hash): ... this.
2926 (psymbol_compare): Change to...
2927 (psymbol_bcache::compare): ... this.
2928
2929 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2930
2931 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
2932 checking for initial lwp.
2933
2934 2020-09-14 Tom Tromey <tromey@adacore.com>
2935
2936 * m68k-tdep.c (m68k_extract_return_value): Use
2937 pointer_result_regnum.
2938 (m68k_store_return_value): Likewise.
2939 (m68k_reg_struct_return_p): Handle vectors and arrays.
2940 (m68k_return_value): Handle arrays.
2941 (m68k_svr4_return_value): Fix single-element aggregate handling.
2942 Handle long double. Adjust for embedded ABI.
2943 (m68k_svr4_init_abi): Set pointer_result_regnum.
2944 (m68k_embedded_init_abi): New function.
2945 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
2946 (m68k_osabi_sniffer): New function.
2947 (_initialize_m68k_tdep): Register osabi sniffer.
2948 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
2949 member.
2950
2951 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2952
2953 * xml-support.c (xml_fetch_content_from_file): Replace xfree
2954 with gdb::unique_xmalloc_ptr<char>.
2955
2956 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2957
2958 * xml-support.h (xml_fetch_another): Change type to be a
2959 function_view.
2960 (xml_process_xincludes): Remove baton parameter.
2961 (xml_fetch_content_from_file): Change baton parameter to
2962 dirname.
2963 * xml-support.c (struct xinclude_parsing_data)
2964 <xinclude_parsing_data>: Remove baton parameter.
2965 <fetcher_baton>: Remove.
2966 (xinclude_start_include): Adjust.
2967 (xml_process_xincludes): Adjust.
2968 (xml_fetch_content_from_file): Replace baton parameter with
2969 dirname.
2970 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
2971 (xml_init_syscalls_info): Use a lambda.
2972 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
2973 (file_read_description_xml): Use a lambda.
2974 (fetch_available_features_from_target): Change baton parameter
2975 to target_ops.
2976 (target_read_description_xml): Use a lambda.
2977 (target_fetch_description_xml): Use a lambda.
2978 (string_read_description_xml): Update.
2979
2980 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2981
2982 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
2983 uses with type::endianity_is_not_default.
2984
2985 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2986
2987 * gdbtypes.h (struct type) <endianity_is_not_default,
2988 set_endianity_is_not_default>: New methods.
2989 (TYPE_ENDIANITY_NOT_DEFAULT): Use
2990 type::endianity_is_not_default, change all write call sites to
2991 use type::set_endianity_is_not_default.
2992
2993 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2994
2995 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
2996 uses with type::is_fixed_instance.
2997
2998 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2999
3000 * gdbtypes.h (struct type) <is_fixed_instance,
3001 set_is_fixed_instance>: New methods.
3002 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
3003 write call sites to use type::set_is_fixed_instance.
3004
3005 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3006
3007 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
3008 uses with type::is_gnu_ifunc.
3009
3010 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3011
3012 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
3013 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
3014 use type::set_is_gnu_ifunc.
3015
3016 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3017
3018 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
3019 uses with type::stub_is_supported.
3020
3021 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3022
3023 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
3024 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
3025 use type::set_stub_is_supported.
3026
3027 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3028
3029 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
3030 uses with type::is_vector.
3031
3032 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3033
3034 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
3035 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
3036 use type::set_is_vector.
3037
3038 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3039
3040 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
3041 uses with type::has_varargs.
3042
3043 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3044
3045 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
3046 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
3047 use type::set_has_varargs.
3048
3049 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3050
3051 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
3052 uses with type::is_prototyped.
3053
3054 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3055
3056 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
3057 New methods.
3058 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
3059 call sites to use type::set_is_prototyped.
3060
3061 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3062
3063 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
3064 uses with type::target_is_stub.
3065
3066 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3067
3068 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
3069 New methods.
3070 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
3071 sites to use type::set_target_is_stub.
3072
3073 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3074
3075 * gdbtypes.h (TYPE_STUB): Remove, replace all
3076 uses with type::is_stub.
3077
3078 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3079
3080 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
3081 (TYPE_STUB): Use type::is_stub, change all write call sites to
3082 use type::set_is_stub.
3083
3084 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3085
3086 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
3087 type::has_no_signedness.
3088
3089 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3090
3091 * gdbtypes.h (struct type) <has_no_signedness,
3092 set_has_no_signedness>: New methods.
3093 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
3094 call sites to use type::set_has_no_signedness.
3095
3096 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3097
3098 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
3099 type::is_unsigned.
3100
3101 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3102
3103 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
3104 methods.
3105 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
3106 sites to use type::set_is_unsigned.
3107
3108 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
3109 Adam Renquinha <arenquinha@cimeq.qc.ca>
3110
3111 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
3112 pointer and stack frame offset when unwinding.
3113
3114 2020-09-13 Pedro Alves <pedro@palves.net>
3115
3116 * NEWS: Document "-break-insert --qualified".
3117 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
3118
3119 2020-09-13 Pedro Alves <pedro@palves.net>
3120
3121 * linespec.c (classify_mtype, compare_msyms): Delete.
3122 (search_minsyms_for_name): Remove classification logic. Instead
3123 filter out trampoline symbols if we also found an external
3124 function of the same name.
3125
3126 2020-09-13 Joel Brobecker <brobecker@adacore.com>
3127
3128 * NEWS: Create a new section for the next release branch.
3129 Rename the section of the current branch, now that it has
3130 been cut.
3131
3132 2020-09-13 Joel Brobecker <brobecker@adacore.com>
3133
3134 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
3135 * version.in: Bump version to 11.0.50.DATE-git.
3136
3137 2020-09-12 Joel Brobecker <brobecker@adacore.com>
3138
3139 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
3140
3141 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
3142 Felix Willgerodt <Felix.Willgerodt@intel.com>
3143
3144 * gdbarch.sh: Added bfloat16 type.
3145 * gdbarch.c: Regenerated.
3146 * gdbarch.h: Regenerated.
3147 * gdbtypes.c (floatformats_bfloat16): New struct.
3148 (gdbtypes_post_init): Add builtin_bfloat16.
3149 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
3150 (floatformats_bfloat16): New struct.
3151 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
3152 (i386_ymm_type): Add field "v16_bfloat16"
3153 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
3154 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
3155 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
3156 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
3157 * features/i386/64bit-avx512.xml: Add bfloat16 type.
3158 * features/i386/64bit-avx512.c: Regenerated.
3159 * features/i386/64bit-sse.xml: Add bfloat16 type.
3160 * features/i386/64bit-sse.c: Regenerated.
3161
3162 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
3163
3164 * i386-tdep.c (i386_zmm_type): Fix field names.
3165 (i386_ymm_type): Fix field names.
3166
3167 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3168
3169 * breakpoint.c: Fix typo in the help message of the
3170 "set breakpoint condition-evaluation" command.
3171
3172 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3173
3174 * nbsd-nat.c: Include "nat/netbsd-nat.h".
3175 * (nbsd_nat_target::pid_to_exec_file)
3176 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
3177 (nbsd_nat_target::post_startup_inferior)
3178 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
3179 (nbsd_add_threads): Switch local code to common gdb/nat functions.
3180 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
3181 * (nbsd_thread_lister): Remove.
3182
3183 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3184
3185 * fork-inferior.c (startup_inferior): Avoid double free.
3186
3187 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3188
3189 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
3190 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
3191
3192 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3193
3194 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
3195 * netbsd-nat.c: Include <sys/ptrace.h>.
3196 * (netbsd_nat::enable_proc_events): Add.
3197
3198 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3199
3200 * netbsd-nat.h: Include "gdbsupport/function-view.h".
3201 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3202 (netbsd_nat::for_each_thread): Add.
3203 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
3204 "gdbsupport/common-debug.h".
3205 * (netbsd_nat::netbsd_thread_lister)
3206 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3207 (netbsd_nat::for_each_thread): Add.
3208
3209 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3210
3211 * netbsd-nat.h: Include <unistd.h>.
3212 * (netbsd_nat::pid_to_exec_file): Add.
3213 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
3214 * (netbsd_nat::pid_to_exec_file) Add.
3215
3216 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3217
3218 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
3219
3220 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3221
3222 * netbsd-nat.h: New file.
3223 * netbsd-nat.c: Likewise.
3224
3225 2020-09-09 Tom Tromey <tromey@adacore.com>
3226
3227 * ada-lang.c (remove_extra_symbols): Do not increment when
3228 removing an element
3229
3230 2020-09-08 Tom Tromey <tromey@adacore.com>
3231
3232 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
3233
3234 2020-09-08 Tom Tromey <tromey@adacore.com>
3235
3236 PR win32/25302:
3237 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
3238 (gdb_bfd_init_data): New function.
3239 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
3240
3241 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3242
3243 * infrun.c (fetch_inferior_event): Use
3244 `switch_to_target_no_thread` to switch the target.
3245
3246 2020-09-06 Tom Tromey <tom@tromey.com>
3247
3248 * symfile.h (dwarf2_free_objfile): Don't declare.
3249
3250 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3251
3252 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
3253 to match 16 byte real/complex type generated by Flang compiler.
3254
3255 2020-09-03 Tom de Vries <tdevries@suse.de>
3256
3257 PR breakpoint/26546
3258 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
3259 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
3260
3261 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
3262
3263 * maint.c (index_digits): New function.
3264 (struct maint_print_section_data): Remove.
3265 (print_bfd_section_info): Remove print_data parameter, add arg
3266 and index_digits.
3267 (print_objfile_section_info): Likewise.
3268 (print_bfd_section_info_maybe_relocated): Likewise (plus
3269 objfile).
3270 (maintenance_info_sections): Adjust calls.
3271
3272 2020-09-02 Tom Tromey <tromey@adacore.com>
3273
3274 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
3275 for null pointers.
3276 (ada_varobj_adjust_for_child_access): Special-case null pointers.
3277
3278 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
3279
3280 * bcache.h (struct bcache) <insert>: Change type of `added` to
3281 pointer to bool.
3282 * bcache.c (bcache::insert): Likewise.
3283 * gdbtypes.c (check_types_worklist): Adjust.
3284 * psymtab.c (add_psymbol_to_bcache): Adjust.
3285
3286 2020-08-31 Kevin Buettner <kevinb@redhat.com>
3287
3288 * corelow.c (unordered_set): Include.
3289 (class core_target): Add field 'm_core_unavailable_mappings'.
3290 (core_target::build_file_mappings): Print only one warning
3291 per inaccessible file. Add unavailable/broken mappings
3292 to m_core_unavailable_mappings.
3293 (core_target::xfer_partial): Call...
3294 (core_target::xfer_memory_via_mappings): New method.
3295
3296 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3297
3298 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
3299 type to bool.
3300
3301 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3302
3303 * dwarf2/read.c (struct field_info): Fix indentation.
3304
3305 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3306
3307 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
3308 ordering in comment.
3309 * frame.c (frame_id_eq): Fix indentation.
3310
3311 2020-08-31 Scott Linder <scott@scottlinder.com>
3312 Simon Marchi <simon.marchi@efficios.com>
3313
3314 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
3315 inline frame ids in outer frame.
3316
3317 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3318
3319 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
3320 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
3321 (outer_frame_id): Use FID_STACK_OUTER instead of
3322 FID_STACK_INVALID.
3323 (frame_id_p): Don't check for outer_frame_id.
3324
3325 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3326
3327 * frame-unwind.c (frame_unwind_got_optimized): Don't set
3328 regnum/frame in value. Call allocate_value_lazy.
3329 * frame.c (frame_unwind_register_value): Use
3330 val_print_not_saved.
3331
3332 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3333
3334 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
3335
3336 2020-08-29 Pedro Alves <pedro@palves.net>
3337
3338 * progspace.c (print_program_space): Use all_inferiors. Switch to
3339 the inferior before calling target_pid_to_str.
3340
3341 2020-08-28 Tom Tromey <tom@tromey.com>
3342
3343 * xcoffread.c (xcoff_end_psymtab): Update comment.
3344 * dbxread.c (dbx_end_psymtab): Update comment.
3345
3346 2020-08-28 Tom de Vries <tdevries@suse.de>
3347
3348 PR breakpoint/26544
3349 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
3350 event_location.
3351 (create_breakpoint): Same.
3352 (base_breakpoint_decode_location): Same.
3353 (bkpt_create_sals_from_location): Same.
3354 (bkpt_decode_location): Same.
3355 (bkpt_probe_create_sals_from_location): Same.
3356 (bkpt_probe_decode_location): Same.
3357 (tracepoint_create_sals_from_location): Same.
3358 (tracepoint_decode_location): Same.
3359 (tracepoint_probe_decode_location): Same.
3360 (strace_marker_create_sals_from_location): Same.
3361 (strace_marker_decode_location): Same.
3362 (create_sals_from_location_default): Same.
3363 (decode_location_default): Same.
3364 * breakpoint.h (struct breakpoint_ops): Same.
3365 (create_breakpoint): Same.
3366 * linespec.h (decode_line_full): Same.
3367 * linespec.c (decode_line_full): Same. Throw error if
3368 result.size () == 0.
3369
3370 2020-08-27 Pedro Alves <pedro@palves.net>
3371
3372 PR gdb/26524
3373 * breakpoint.c (until_break_fsm) <location_breakpoint,
3374 caller_breakpoint>: Delete fields.
3375 <breakpoints>: New field.
3376 <until_break_fsm>: Adjust to save a breakpoint vector instead of
3377 two individual breakpoints.
3378 (until_break_fsm::should_stop): Loop over breakpoints in the
3379 breakpoint vector.
3380 (until_break_fsm::clean_up): Adjust to clear the breakpoints
3381 vector.
3382 (until_break_command): Handle location expanding into multiple
3383 sals.
3384
3385 2020-08-27 Pedro Alves <pedro@palves.net>
3386
3387 PR gdb/26523
3388 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
3389 bp_until breakpoints user-specified locations. Update intro
3390 comment.
3391
3392 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
3393
3394 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
3395 gdb_bfd_sections): New.
3396 * maint.c (print_bfd_section_info): Change param type to
3397 maint_print_section_data.
3398 (print_objfile_section_info): Likewise.
3399 (print_bfd_section_info_maybe_relocated): Likewise.
3400 (maintenance_info_sections): Use gdb_bfd_sections.
3401
3402 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3403
3404 * MAINTAINERS: Add ARC target and maintainer.
3405
3406 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
3407
3408 * configure.tgt: ARC support for GNU/Linux.
3409 * Makefile.in (ALL_TARGET_OBJS): Likewise.
3410 * arc-linux-tdep.c: New file.
3411 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
3412 * arc-tdep.c (arc_write_pc): Use it.
3413
3414 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3415
3416 * arc-tdep.c (arc_check_for_hardware_loop): New.
3417 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
3418
3419 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3420
3421 * arc-tdep.h: Include "gdbarch.h".
3422
3423 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3424
3425 * arch/arc.h
3426 (arc_gdbarch_features): New class to stir the selection of target XML.
3427 (arc_create_target_description): Use FEATURES to choose XML target.
3428 (arc_lookup_target_description): Use arc_create_target_description
3429 to create _new_ target descriptions or return the already created
3430 ones if the FEATURES is the same.
3431 * arch/arc.c: Implementation of prototypes described above.
3432 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
3433 (arc_gdbarch_features_init): Initialize the FEATURES struct.
3434 * arc-tdep.c (*_feature_name): Make feature names consistent.
3435 (arc_register_feature): A new struct to hold information about
3436 registers of a particular target/feature.
3437 (arc_check_tdesc_feature): Check if XML provides registers in
3438 compliance with ARC_REGISTER_FEATURE structs.
3439 (arc_update_acc_reg_names): Add aliases for r58 and r59.
3440 (determine_*_reg_feature_set): Which feature name to look for.
3441 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
3442 (mach_type_to_arc_isa): Convert from a set of binutils machine types
3443 to expected ISA enums to be used in arc_gdbarch_features structs.
3444 * features/Makefile (FEATURE_XMLFILES): Add new files.
3445 * gdb/features/arc/v1-aux.c: New file.
3446 * gdb/features/arc/v1-aux.xml: Likewise.
3447 * gdb/features/arc/v1-core.c: Likewise.
3448 * gdb/features/arc/v1-core.xml: Likewise.
3449 * gdb/features/arc/v2-aux.c: Likewise.
3450 * gdb/features/arc/v2-aux.xml: Likewise.
3451 * gdb/features/arc/v2-core.c: Likewise.
3452 * gdb/features/arc/v2-core.xml: Likewise.
3453 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
3454
3455 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
3456 Andrew Burgess <andrew.burgess@embecosm.com>
3457
3458 PR m2/26372
3459 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3460 an assert. Remove single element array indexing pattern as the
3461 MULTI_SUBSCRIPT support will handle this case too.
3462
3463 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
3464
3465 * value.h (valprint_check_validity): Move declaration from
3466 here...
3467 * valprint.h (valprint_check_validity): ... to here.
3468
3469 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
3470
3471 * debug.h: New file.
3472 * debug.c (debug_prefixed_vprintf): New function.
3473 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3474 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3475
3476 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
3477
3478 * infrun.h (infrun_debug_printf_1): New function declaration.
3479 (infrun_debug_printf): New macro.
3480 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3481 throughout.
3482 (infrun_debug_printf): New function.
3483 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3484 (handle_jit_event): Likewise.
3485
3486 2020-08-21 Mark Wielaard <mark@klomp.org>
3487
3488 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3489
3490 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
3491
3492 * frame.c (enum class frame_id_status): New.
3493 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3494 (fprintf_frame): Update.
3495 (compute_frame_id): Set frame id status to "computing" on entry.
3496 Set it back to "not_computed" on failure and to "computed" on
3497 success.
3498 (get_frame_id): Assert the frame id is not being computed.
3499 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3500 (create_new_frame): Likewise.
3501 (frame_cleanup_after_sniffer): Update assert.
3502
3503 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3504
3505 * regcache.c (pid_ptid_regcache_map): New type.
3506 (target_ptid_regcache_map): Remove.
3507 (target_pid_ptid_regcache_map): New type.
3508 (regcaches): Change type to target_pid_ptid_regcache_map.
3509 (get_thread_arch_aspace_regcache): Update.
3510 (regcache_thread_ptid_changed): Update, handle pid-like ptid
3511 case.
3512 (regcaches_size): Update.
3513 (regcache_count): Update.
3514 (registers_changed_ptid_target_pid_test): New.
3515 (_initialize_regcache): Register new test.
3516
3517 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3518
3519 * regcache.c (regcache_count): New.
3520 (struct regcache_test_data): New.
3521 (regcache_test_data_up): New.
3522 (populate_regcaches_for_test): New.
3523 (regcaches_test): Remove.
3524 (get_thread_arch_aspace_regcache_test): New.
3525 (registers_changed_ptid_all_test): New.
3526 (registers_changed_ptid_target_test): New.
3527 (registers_changed_ptid_target_ptid_test): New.
3528 (regcache_thread_ptid_changed): Remove regcache_count lambda.
3529 (_initialize_regcache): Register new tests.
3530
3531 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3532
3533 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
3534 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
3535 gdbarch and aspace parameter. Use current inferior's aspace.
3536 Validate regcache's arch value.
3537 (regcaches_test): Update.
3538
3539 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3540
3541 * regcache.c (regcaches_test): Call registers_changed.
3542
3543 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3544
3545 * infrun.c (process_event_stop_test): Fix typo "breapoint".
3546
3547 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3548
3549 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
3550 to find the end of prologue for flang compiled binaries.
3551 * arm-tdep.c (arm_skip_prologue): Likewise.
3552 * i386-tdep.c (i386_skip_prologue): Likewise.
3553 * producer.c (producer_is_llvm): New function.
3554 (producer_parsing_tests): Added new tests for clang/flang.
3555 * producer.h (producer_is_llvm): New declaration.
3556
3557 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
3558
3559 * linux-nat.c (linux_nat_debug_printf): New function.
3560 (linux_nat_debug_printf_1): New macro. Use throughout the file.
3561
3562 2020-08-18 Aaron Merey <amerey@redhat.com>
3563
3564 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
3565 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
3566 (CLIBS): Add DEBUGINFOD_LIBS.
3567
3568 2020-08-17 Sergei Trofimovich <siarheit@google.com>
3569
3570 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
3571 'gdbarch_num_regs'.
3572
3573 2020-08-17 Tom Tromey <tromey@adacore.com>
3574
3575 * ada-varobj.c (ada_varobj_decode_var): Handle case where
3576 ada_get_decoded_value returns NULL.
3577
3578 2020-08-17 Tom Tromey <tromey@adacore.com>
3579
3580 * python/py-inferior.c (infpy_search_memory): Use
3581 gdb_py_object_from_ulongest.
3582 * python/py-infevents.c (create_inferior_call_event_object)
3583 (create_memory_changed_event_object): Use
3584 gdb_py_object_from_ulongest.
3585 * python/py-linetable.c (ltpy_entry_get_pc): Use
3586 gdb_py_object_from_ulongest.
3587
3588 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3589
3590 * loc.c (class symbol_needs_eval_context): Fix indentation.
3591
3592 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3593
3594 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
3595 bool.
3596
3597 2020-08-17 Tom de Vries <tdevries@suse.de>
3598
3599 PR gdb/26393
3600 * gdbtypes.c (dump_dynamic_prop): New function.
3601 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
3602
3603 2020-08-15 Tom de Vries <tdevries@suse.de>
3604
3605 PR backtrace/26390
3606 * stack.c (print_frame_args): Temporarily set the selected
3607 frame to FRAME while printing the frame's arguments.
3608
3609 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3610
3611 PR breakpoints/26385
3612 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
3613 Always clear watchpoint with PTRACE_SET_DEBUGREG.
3614
3615 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3616
3617 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
3618 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
3619 and >= to check return value instead of == -1 and != -1.
3620
3621 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
3622
3623 * utils.h (class gdb_argv) <as_array_view>: New method.
3624 * utils.c (gdb_argv_as_array_view_test): New.
3625 (_initialize_utils): Register selftest.
3626 * maint.c (maintenance_selftest): Use the new method.
3627
3628 2020-08-13 Kamil Rytarowski <n54@gmx.com>
3629
3630 * target.h (supports_dumpcore, dumpcore): New
3631 function declarations.
3632 * target.c (supports_dumpcore, dumpcore): New
3633 functions.
3634 * target-delegates.c: Rebuild.
3635 * gcore.c (gcore_command): Use target_supports_dumpcore ()
3636 and target_dumpcore ().
3637
3638 2020-08-13 Aaron Merey <amerey@redhat.com>
3639
3640 * debuginfod-support.c: Replace global variables with user_data.
3641
3642 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
3643
3644 * maint.c (maintenance_selftest): Split args and pass array_view
3645 to run_tests.
3646
3647 2020-08-12 Luis Machado <luis.machado@linaro.org>
3648
3649 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
3650 type's length.
3651 Use %s and pulongest to print the length.
3652
3653 2020-08-12 Pedro Alves <palves@redhat.com>
3654
3655 * NEWS: Move "Multi-target debugging support" item to the
3656 "Changes since GDB 9" section.
3657
3658 2020-08-12 Pedro Alves <palves@redhat.com>
3659
3660 PR gdb/26336
3661 * progspace.c (program_space::remove_objfile): Invalidate the
3662 frame cache.
3663
3664 2020-08-11 Tom de Vries <tdevries@suse.de>
3665
3666 * MAINTAINERS: Mark ms1 as deleted.
3667
3668 2020-08-10 Luis Machado <luis.machado@linaro.org>
3669
3670 PR gdb/26310
3671
3672 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
3673 act accordingly.
3674 (aarch64_analyze_prologue_test): Add more unit tests to exercise
3675 movz/str/stur/stp skipping behavior.
3676
3677 2020-08-10 Luis Machado <luis.machado@linaro.org>
3678
3679 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
3680 struct user_sve_header instead of struct sve_context.
3681
3682 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
3683
3684 * read.h (dwarf2_fetch_die_loc_sect_off,
3685 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
3686 `void *` parameter with function_view.
3687 * read.c (dwarf2_fetch_die_loc_sect_off,
3688 dwarf2_fetch_die_loc_cu_off): Likewise.
3689 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
3690 (per_cu_dwarf_call): Adjust.
3691 (get_frame_address_in_block_wrapper): Remove.
3692 (indirect_synthetic_pointer): Adjust.
3693 (get_ax_pc): Remove.
3694 (dwarf2_compile_expr_to_ax): Adjust.
3695
3696 2020-08-08 Tom de Vries <tdevries@suse.de>
3697
3698 PR build/26344
3699 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
3700 constructor.
3701 * regcache.c (get_thread_arch_aspace_regcache): Same.
3702
3703 2020-08-07 Tom Tromey <tromey@adacore.com>
3704
3705 * ravenscar-thread.c
3706 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
3707 New method.
3708 (ravenscar_thread_target::wait): Check
3709 runtime_initialized.
3710 (ravenscar_thread_target::prepare_to_store)
3711 (ravenscar_thread_target::stopped_by_sw_breakpoint)
3712 (ravenscar_thread_target::stopped_by_hw_breakpoint)
3713 (ravenscar_thread_target::stopped_by_watchpoint)
3714 (ravenscar_thread_target::stopped_data_address)
3715 (ravenscar_thread_target::core_of_thread): Use
3716 scoped_restore_current_thread and
3717 set_base_thread_from_ravenscar_task.
3718
3719 2020-08-07 Tom Tromey <tromey@adacore.com>
3720
3721 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
3722
3723 2020-08-07 Tom Tromey <tromey@adacore.com>
3724
3725 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
3726 update_inferior_ptid before update_thread_list.
3727 (temporarily_change_regcache_ptid): New class.
3728 (ravenscar_thread_target::fetch_registers)
3729 (ravenscar_thread_target::store_registers)
3730 (ravenscar_thread_target::prepare_to_store): Use base thread when
3731 forwarding operation.
3732
3733 2020-08-07 Tom Tromey <tromey@adacore.com>
3734
3735 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
3736 "is_pid" case.
3737
3738 2020-08-07 Tom Tromey <tromey@adacore.com>
3739
3740 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
3741 New methods.
3742 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
3743 first.
3744 (ravenscar_thread_target::add_thread): Rename from
3745 ravenscar_add_thread.
3746 (ravenscar_thread_target::update_thread_list): Use a lambda.
3747 (ravenscar_thread_target::xfer_partial): New method.
3748
3749 2020-08-07 Tom Tromey <tromey@adacore.com>
3750
3751 * ada-lang.h (ada_task_list_iterator_ftype): Now a
3752 gdb::function_view.
3753 (iterate_over_live_ada_tasks): Change type of argument.
3754 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
3755 of argument.
3756
3757 2020-08-07 Tom Tromey <tromey@adacore.com>
3758
3759 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
3760 Remove.
3761 (ravenscar_thread_target::extra_thread_info): Remove.
3762 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
3763 defer to target beneath for non-Ravenscar threads.
3764
3765 2020-08-07 Tom Tromey <tromey@adacore.com>
3766
3767 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
3768 get_base_thread_from_ravenscar_task>: Now methods.
3769 <m_cpu_map>: New member.
3770 (ravenscar_thread_target::get_thread_base_cpu): Rename from
3771 ravenscar_get_thread_base_cpu. Check m_cpu_map.
3772 (ravenscar_thread_target::task_is_currently_active): Update.
3773 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
3774 Now a method.
3775 (ravenscar_thread_target::add_active_thread): Put initial thread
3776 into the m_cpu_map.
3777
3778 2020-08-07 Tom Tromey <tromey@adacore.com>
3779
3780 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
3781 event_ptid.
3782
3783 2020-08-07 Tom Tromey <tromey@adacore.com>
3784
3785 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
3786 runtime_initialized.
3787
3788 2020-08-07 Tom Tromey <tromey@adacore.com>
3789
3790 * ravenscar-thread.c (ravenscar_thread_target): Don't call
3791 add_active_thread.
3792 (ravenscar_thread_target::add_active_thread): Now public.
3793 (ravenscar_inferior_created): Call add_active_thread after pushing
3794 the target.
3795
3796 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3797
3798 * regcache.c (ptid_regcache_map): New type.
3799 (target_ptid_regcache_map): New type.
3800 (regcaches): Change type to target_ptid_regcache_map.
3801 (get_thread_arch_aspace_regcache): Update to regcaches' new
3802 type.
3803 (regcache_thread_ptid_changed): Likewise.
3804 (registers_changed_ptid): Likewise.
3805 (regcaches_size): Likewise.
3806 (regcaches_test): Update.
3807 (regcache_thread_ptid_changed): Update.
3808 * regcache.h (regcache_up): New type.
3809 * gdbsupport/ptid.h (hash_ptid): New struct.
3810
3811 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
3812
3813 * observable.h (thread_ptid_changed): Add parameter
3814 `process_stratum_target *`.
3815 * infrun.c (infrun_thread_ptid_changed): Add parameter
3816 `process_stratum_target *` and use it.
3817 (selftests): New namespace.
3818 (infrun_thread_ptid_changed): New function.
3819 (_initialize_infrun): Register selftest.
3820 * regcache.c (regcache_thread_ptid_changed): Add parameter
3821 `process_stratum_target *` and use it.
3822 (regcache_thread_ptid_changed): New function.
3823 (_initialize_regcache): Register selftest.
3824 * thread.c (thread_change_ptid): Pass target to
3825 thread_ptid_changed observable.
3826
3827 2020-08-06 Caroline Tice <cmtice@google.com>
3828
3829 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
3830 (struct dwp_sections): Update field comments. Add loclists and
3831 rnglists fields.
3832 (struct virtual_v2_dwo_sections): Rename struct to
3833 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
3834 size & offset fields for loclists and rnglists.
3835 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
3836 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
3837 skipping dummy type units.
3838 (create_dwp_hash_table): Update the large comment above the function to
3839 discuss Version 5 DWP files as well, with references. Update all the
3840 version checks in the function to check for version 5 as well. Add new
3841 section at the end to create dwp hash table for version 5.
3842 (create_dwp_v2_section): Rename function to
3843 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
3844 Add V5 to error message text.
3845 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
3846 into calls to create_dwp_v2_or_v5_section.
3847 (create_dwo_unit_in_dwp_v5): New function.
3848 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
3849 check for version2; add else clause to handle version 5.
3850 (open_and_init_dwo_file): Add code to check dwarf version & only call
3851 create_debug_types_hash_table (with sections.types) if version is not 5;
3852 else call create_debug_type_hash_table, with sections.info.
3853 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
3854 version 5.
3855 (dwarf2_locate_v5_dwp_sections): New function.
3856 (open_and_init_dwp_file): Add else-if clause for version 5 to call
3857 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
3858
3859 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
3860
3861 * regcache.h (class regcache): Remove friend
3862 registers_changed_ptid.
3863 <regcache_thread_ptid_changed>: Remove.
3864 <regcaches>: Remove.
3865 * regcache.c (regcache::regcaches): Rename to...
3866 (regcaches): ... this. Make static.
3867 (get_thread_arch_aspace_regcache): Update.
3868 (regcache::regcache_thread_ptid_changed): Rename to...
3869 (regcache_thread_ptid_changed): ... this. Update.
3870 (class regcache_access): Remove.
3871 (regcaches_test): Update.
3872 (_initialize_regcache): Update.
3873 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
3874 <forward_list>.
3875
3876 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
3877
3878 * regcache.h (class regcache) <current_regcache>: Rename to...
3879 <regcaches>: ... this. Move doc here.
3880 * regcache.c (regcache::current_regcache) Rename to...
3881 (regcache::regcaches): ... this. Move doc to header.
3882 (get_thread_arch_aspace_regcache): Update.
3883 (regcache::regcache_thread_ptid_changed): Update.
3884 (registers_changed_ptid): Update.
3885 (class regcache_access) <current_regcache_size>: Rename to...
3886 <regcaches_size>: ... this.
3887 (current_regcache_test): Rename to...
3888 (regcaches_test): ... this.
3889 (_initialize_regcache): Update.
3890
3891 2020-08-06 Victor Collod <vcollod@nvidia.com>
3892
3893 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
3894
3895 2020-08-05 Kevin Buettner <kevinb@redhat.com>
3896
3897 * corelow.c (core_target::build_file_mappings): Don't output
3898 null pathname in warning.
3899
3900 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
3901
3902 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
3903 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
3904 gdb.dwarf2/dw2-single-line-discriminators.exp,
3905 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
3906
3907 2020-08-05 Tom Tromey <tromey@adacore.com>
3908
3909 PR rust/26197:
3910 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
3911 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
3912 Fix off-by-one and type size errors in ordinary case.
3913
3914 2020-08-05 Tom de Vries <tdevries@suse.de>
3915
3916 * gdbtypes.c (type_not_allocated, type_not_associated): Use
3917 "prop->const_val () == 0" instead of "prop->const_val () != 0".
3918
3919 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
3920
3921 * frame.h (frame_id_p): Return bool.
3922 (frame_id_artificial_p): Return bool.
3923 (frame_id_eq): Return bool.
3924 (has_stack_frames): Return bool.
3925 (get_selected_frame): Fix typo in comment.
3926 (get_frame_pc_if_available): Return bool.
3927 (get_frame_address_in_block_if_available): Return bool.
3928 (get_frame_func_if_available): Return bool.
3929 (read_frame_register_unsigned): Return bool.
3930 (get_frame_register_bytes): Return bool.
3931 (safe_frame_unwind_memory): Return bool.
3932 (deprecated_frame_register_read): Return bool.
3933 (frame_unwinder_is): Return bool.
3934 * frame.c (struct frame_info) <prev_arch::p>: Change type to
3935 bool.
3936 <this_id::p>: Likewise.
3937 <prev_p>: Likewise.
3938 (frame_stash_add): Return bool.
3939 (get_frame_id): Use bool.
3940 (frame_id_build_special) Use bool.
3941 (frame_id_build_unavailable_stack): Use bool.
3942 (frame_id_build): Use bool.
3943 (frame_id_p): Return bool, use true/false instead of 1/0.
3944 (frame_id_artificial_p): Likewise.
3945 (frame_id_eq): Likewise.
3946 (frame_id_inner): Likewise.
3947 (get_frame_func_if_available): Likewise.
3948 (read_frame_register_unsigned): Likewise.
3949 (deprecated_frame_register_read): Likewise.
3950 (get_frame_register_bytes): Likewise.
3951 (has_stack_frames): Likewise.
3952 (inside_main_func): Likewise.
3953 (inside_entry_func): Likewise.
3954 (get_frame_pc_if_available): Likewise.
3955 (get_frame_address_in_block_if_available): Likewise.
3956 (frame_unwinder_is): Likewise.
3957 (safe_frame_unwind_memory): Likewise.
3958 (frame_unwind_arch): Likewise.
3959
3960 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
3961
3962 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
3963 type to cached_copy_status.
3964 (fprintf_frame): Adjust.
3965 (get_frame_func_if_available): Adjust.
3966 (frame_cleanup_after_sniffer): Adjust.
3967
3968 2020-08-04 Mark Wielaard <mark@klomp.org>
3969
3970 * MAINTAINERS (Write After Approval): Update email address.
3971
3972 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3973
3974 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
3975 dynamic_prop::const_val.
3976
3977 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3978
3979 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
3980 dynamic_prop::kind.
3981
3982 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3983
3984 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
3985
3986 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
3987
3988 * configure.tgt: Set gdb_sim for bpf-*-* targets.
3989
3990 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
3991 Jose E. Marchesi <jose.marchesi@oracle.com>
3992
3993 * configure.tgt: Add entry for bpf-*-*.
3994 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
3995 (ALLDEPFILES): Add bpf-tdep.c.
3996 * bpf-tdep.c: New file.
3997 * MAINTAINERS: Add bpf target and maintainer.
3998 * NEWS: Mention the support for the new target.
3999
4000 2020-08-04 Tom de Vries <tdevries@suse.de>
4001
4002 PR symtab/23270
4003 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
4004 Error.
4005
4006 2020-08-03 John Baldwin <jhb@FreeBSD.org>
4007
4008 * syscalls/freebsd.xml: Regenerate.
4009
4010 2020-08-03 John Baldwin <jhb@FreeBSD.org>
4011
4012 * syscalls/update-freebsd.sh: Fix usage and year range.
4013
4014 2020-08-03 Tom de Vries <tdevries@suse.de>
4015
4016 PR symtab/26333
4017 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
4018 DW_LNE_lo_user/DW_LNE_hi_user range.
4019
4020 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
4021
4022 PR ada/26318
4023 * ada-lang.c (ada_modulus): Return 0 if property is not of const
4024 kind.
4025
4026 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4027
4028 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
4029
4030 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4031
4032 * breakpoint.c (set_breakpoint_condition): Update the condition
4033 expressions after checking that the input condition string parses
4034 successfully and does not contain junk at the end.
4035
4036 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4037
4038 * breakpoint.c (set_breakpoint_condition): Update the
4039 condition string after parsing the new condition successfully.
4040
4041 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4042
4043 * proc-api.c (_STRUCTURED_PROC): Don't define.
4044 * proc-events.c: Likewise.
4045 * proc-flags.c: Likewise.
4046 * proc-why.c: Likewise.
4047 * procfs.c: Likewise.
4048
4049 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
4050 * configure, config.in: Regenerate.
4051
4052 2020-07-30 Tom de Vries <tdevries@suse.de>
4053
4054 PR build/26320
4055 * ui-style.h (struct ui_file_style::color): Wrap m_value and
4056 m_red/m_green/m_blue in a union.
4057
4058 2020-07-29 Tom de Vries <tdevries@suse.de>
4059
4060 PR tdep/26280
4061 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
4062
4063 2020-07-28 Tom Tromey <tromey@adacore.com>
4064
4065 PR symtab/26270:
4066 * symtab.h (find_pc_partial_function_sym): Declare.
4067 * cli/cli-cmds.c (disassemble_command): Use
4068 find_pc_partial_function_sym. Check asm_demangle.
4069 * blockframe.c (cache_pc_function_sym): New global.
4070 (cache_pc_function_name): Remove.
4071 (clear_pc_function_cache): Update.
4072 (find_pc_partial_function_sym): New function, from
4073 find_pc_partial_function.
4074 (find_pc_partial_function): Rewrite using
4075 find_pc_partial_function_sym.
4076
4077 2020-07-28 Tom Tromey <tromey@adacore.com>
4078
4079 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
4080 help. Add usage.
4081
4082 2020-07-28 Tom Tromey <tromey@adacore.com>
4083
4084 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
4085 <DW_OP_GNU_variable_value>: Cast to address type.
4086
4087 2020-07-28 Kamil Rytarowski <n54@gmx.com>
4088
4089 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
4090 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
4091 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
4092 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
4093 (nbsd_get_siginfo_type): New.
4094 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4095 (_initialize_nbsd_tdep): New.
4096
4097 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4098
4099 PR binutils/26301
4100 * configure: Regenerated.
4101
4102 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4103
4104 PR binutils/26301
4105 * configure: Regenerated.
4106
4107 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4108
4109 * python/py-frame.c: Remove 'user-regs.h' include.
4110 (frapy_read_register): Rewrite to make use of
4111 gdbpy_parse_register_id.
4112 * python/py-registers.c (gdbpy_parse_register_id): New function,
4113 moved here from python/py-unwind.c. Updated the return type, and
4114 also accepts register descriptor objects.
4115 * python/py-unwind.c: Remove 'user-regs.h' include.
4116 (pyuw_parse_register_id): Moved to python/py-registers.c.
4117 (unwind_infopy_add_saved_register): Update to use
4118 gdbpy_parse_register_id.
4119 (pending_framepy_read_register): Likewise.
4120 * python/python-internal.h (gdbpy_parse_register_id): Declare.
4121
4122 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4123
4124 * python/py-registers.c: Add 'user-regs.h' include.
4125 (register_descriptor_iter_find): New function.
4126 (register_descriptor_iterator_object_methods): New static global
4127 methods array.
4128 (register_descriptor_iterator_object_type): Add pointer to methods
4129 array.
4130
4131 2020-07-27 John Baldwin <jhb@FreeBSD.org>
4132
4133 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
4134 for all architectures on FreeBSD 11.3 and later.
4135
4136 2020-07-27 Tom Tromey <tromey@adacore.com>
4137
4138 * gcore.h (load_corefile): Don't declare.
4139
4140 2020-07-27 Tom de Vries <tdevries@suse.de>
4141
4142 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
4143 * config.in: Regenerate.
4144 * configure: Regenerate.
4145
4146 2020-07-26 Eli Zaretskii <eliz@gnu.org>
4147
4148 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
4149 ws2tcpip.h. When checking whether socklen_t type is defined, use
4150 ws2tcpip.h if it is available and sys/socket.h isn't.
4151 * configure: Regenerate.
4152 * config.in: Regenerate.
4153
4154 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
4155
4156 PR fortran/23051
4157 PR fortran/26139
4158 * valops.c (value_ind): Pass address to
4159 readjust_indirect_value_type.
4160 * value.c (readjust_indirect_value_type): Make parameter
4161 non-const, and add extra address parameter. Resolve original type
4162 before using it.
4163 * value.h (readjust_indirect_value_type): Update function
4164 signature and comment.
4165
4166 2020-07-25 Tom de Vries <tdevries@suse.de>
4167
4168 PR symtab/26243
4169 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
4170 entries.
4171
4172 2020-07-24 Aaron Merey <amerey@redhat.com>
4173
4174 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
4175 * configure: Rebuild.
4176
4177 2020-07-23 Kevin Buettner <kevinb@redhat.com>
4178
4179 PR corefiles/26294
4180 * corelow.c (_initialize_corelow): Add period to help text
4181 for "maintenance print core-file-backed-mappings".
4182
4183 2020-07-23 Pedro Alves <pedro@palves.net>
4184
4185 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
4186 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
4187 meanwhile.
4188 * frame.c (frame_cache_generation, get_frame_cache_generation):
4189 New.
4190 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
4191 (get_prev_frame_if_no_cycle): On exception, don't touch
4192 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
4193 * frame.h (get_frame_cache_generation): Declare.
4194
4195 2020-07-23 Tom de Vries <tdevries@suse.de>
4196
4197 PR tui/26282
4198 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
4199 New default constructor.
4200
4201 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
4202
4203 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
4204 exclude non-statement entries.
4205
4206 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4207
4208 * NEWS (New commands): Mention new command
4209 "maintenance print core-file-backed-mappings".
4210
4211 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4212
4213 * corelow.c (gdbcmd.h): Include.
4214 (core_target::info_proc_mappings): New method.
4215 (get_current_core_target): New function.
4216 (maintenance_print_core_file_backed_mappings): New function.
4217 (_initialize_corelow): Add core-file-backed-mappings to
4218 "maint print" commands.
4219
4220 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4221
4222 * linux-tdep.c (dump_note_entry_p): New function.
4223 (linux_dump_mapping_p_ftype): New typedef.
4224 (linux_find_memory_regions_full): Add new parameter,
4225 should_dump_mapping_p.
4226 (linux_find_memory_regions): Adjust call to
4227 linux_find_memory_regions_full.
4228 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
4229 call to linux_find_memory_regions_full.
4230
4231 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4232
4233 * corelow.c (solist.h, unordered_map): Include.
4234 (class core_target): Add field m_core_file_mappings and
4235 method build_file_mappings.
4236 (core_target::core_target): Call build_file_mappings.
4237 (core_target::~core_target): Free memory associated with
4238 m_core_file_mappings.
4239 (core_target::build_file_mappings): New method.
4240 (core_target::xfer_partial): Use m_core_file_mappings
4241 for memory transfers.
4242 * linux-tdep.c (linux_read_core_file_mappings): New
4243 function.
4244 (linux_core_info_proc_mappings): Rewrite to use
4245 linux_read_core_file_mappings.
4246 (linux_init_abi): Register linux_read_core_file_mappings.
4247
4248 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4249
4250 * arch-utils.c (default_read_core_file_mappings): New function.
4251 * arch-utils.c (default_read_core_file_mappings): Declare.
4252 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
4253 * gdbarch.h, gdbarch.c: Regenerate.
4254
4255 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4256
4257 PR corefiles/25631
4258 * corelow.c (core_target:xfer_partial): Revise
4259 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
4260 case after first checking the stratum beneath the core
4261 target.
4262 (has_all_memory): Return true.
4263 * target.c (raw_memory_xfer_partial): Revise comment
4264 regarding use of has_all_memory.
4265
4266 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4267
4268 * exec.h (section_table_xfer_memory): Revise declaration,
4269 replacing section name parameter with an optional callback
4270 predicate.
4271 * exec.c (section_table_xfer_memory): Likewise.
4272 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
4273 of section_table_xfer_memory.
4274
4275 2020-07-22 Tom Tromey <tromey@adacore.com>
4276
4277 * mi/mi-cmd-stack.c (list_args_or_locals): Use
4278 lookup_symbol_search_name.
4279
4280 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4281
4282 * python/py-registers.c (gdbpy_register_object_data_init): Remove
4283 redundant local variable.
4284 (gdbpy_get_register_descriptor): Extract descriptor vector as a
4285 reference, not pointer, update code accordingly.
4286
4287 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4288 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4289
4290 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
4291 * jit.c (jit_breakpoint_re_set_internal): Use the
4292 `skip_jit_symbol_lookup` field.
4293
4294 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4295 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4296
4297 * jit.c (jit_read_descriptor): Define the descriptor address once,
4298 use twice.
4299 (jit_breakpoint_deleted): Move the declaration of the loop variable
4300 `iter` into the loop header.
4301 (jit_breakpoint_re_set_internal): Move the declaration of the local
4302 variable `objf_data` to the first point of definition.
4303 (jit_event_handler): Move the declaration of local variables
4304 `code_entry`, `entry_addr`, and `objf` to their first point of use.
4305 Rename `objf` to `jited`.
4306
4307 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4308
4309 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
4310 Remove.
4311 * jit.c (get_jiter_objfile_data): Update.
4312
4313 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4314 Simon Marchi <simon.marchi@polymtl.ca>
4315
4316 * jit.c (struct jit_program_space_data): Remove.
4317 (jit_program_space_key): Remove.
4318 (jiter_objfile_data::~jiter_objfile_data): Remove program space
4319 stuff.
4320 (get_jit_program_space_data): Remove.
4321 (jit_breakpoint_deleted): Iterate on all of the program space's
4322 objfiles.
4323 (jit_inferior_init): Likewise.
4324 (jit_breakpoint_re_set_internal): Likewise. Also change return
4325 type to void.
4326 (jit_breakpoint_re_set): Pass current_program_space to
4327 jit_breakpoint_re_set_internal.
4328
4329 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4330
4331 * jit.h (struct jiter_objfile_data) <cached_code_address,
4332 jit_breakpoint>: Move to here from ...
4333 * jit.c (jit_program_space_data): ... here.
4334 (jiter_objfile_data::~jiter_objfile_data): Update.
4335 (jit_breakpoint_deleted): Update.
4336 (jit_breakpoint_re_set_internal): Update.
4337
4338 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4339
4340 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
4341 checks.
4342 (jit_read_descriptor): Remove NULL check.
4343 (jit_event_handler): Add an assertion.
4344
4345 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4346
4347 * jit.h (struct jit_objfile_data): Split into...
4348 (struct jiter_objfile_data): ... this ...
4349 (struct jited_objfile_data): ... and this.
4350 * objfiles.h (struct objfile) <jit_data>: Remove.
4351 <jiter_data, jited_data>: New fields.
4352 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
4353 (jiter_objfile_data::~jiter_objfile_data): ... this.
4354 (get_jit_objfile_data): Rename to ...
4355 (get_jiter_objfile_data): ... this.
4356 (add_objfile_entry): Update.
4357 (jit_read_descriptor): Use get_jiter_objfile_data.
4358 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
4359 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
4360 (jit_inferior_exit_hook): Use objfile's jited_data field.
4361
4362 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4363
4364 * jit.h: Forward-declare `struct minimal_symbol`.
4365 (struct jit_objfile_data): Migrate to here from jit.c; also add a
4366 constructor, destructor, and an objfile* field.
4367 * jit.c (jit_objfile_data): Remove.
4368 (struct jit_objfile_data): Migrate from here to jit.h.
4369 (jit_objfile_data::~jit_objfile_data): New destructor
4370 implementation with code moved from free_objfile_data.
4371 (free_objfile_data): Delete.
4372 (get_jit_objfile_data): Update to use the jit_data field of objfile.
4373 (jit_find_objf_with_entry_addr): Ditto.
4374 (jit_inferior_exit_hook): Ditto.
4375 (_initialize_jit): Remove the call to
4376 register_objfile_data_with_cleanup.
4377 * objfiles.h (struct objfile) <jit_data>: New field.
4378
4379 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4380
4381 * jit.h: Forward-declare `struct objfile`.
4382 (jit_event_handler): Add a second parameter, the JITer objfile.
4383 * jit.c (jit_read_descriptor): Change the signature to take the
4384 JITer objfile as an argument instead of the jit_program_space_data.
4385 (jit_inferior_init): Update the call to jit_read_descriptor.
4386 (jit_event_handler): Use the new JITer objfile argument when calling
4387 jit_read_descriptor.
4388 * breakpoint.c (handle_jit_event): Update the call to
4389 jit_event_handler to pass the JITer objfile.
4390
4391 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4392
4393 * gdbarch.c: Regenerate.
4394 * gdbarch.h: Regenerate.
4395 * gdbarch.sh (handle_segmentation_fault): Remove method.
4396 * infrun.c (handle_segmentation_fault): Remove.
4397 (print_signal_received_reason): Remove call to
4398 handle_segmentation_fault.
4399
4400 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4401
4402 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4403 Rename to sparc64_linux_report_signal_info and add siggnal
4404 argument.
4405 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
4406 instead of sparc64_linux_handle_segmentation_fault.
4407
4408 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4409
4410 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
4411 i386_linux_report_signal_info instead of
4412 i386_linux_handle_segmentation_fault.
4413 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
4414 to i386_linux_report_signal_info and add siggnal argument.
4415 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
4416 of i386_linux_handle_segmentation_fault.
4417 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
4418 to i386_linux_report_signal_info and add siggnal argument.
4419
4420 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4421
4422 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
4423 hook if present.
4424
4425 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4426
4427 * gdbarch.c: Regenerate.
4428 * gdbarch.h: Regenerate.
4429 * gdbarch.sh (report_signal_info): New method.
4430 * infrun.c (print_signal_received_reason): Invoke gdbarch
4431 report_signal_info hook if present.
4432
4433 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4434
4435 * python/py-registers.c : Add 'unordered_map' include.
4436 (gdbpy_new_reggroup): Renamed to...
4437 (gdbpy_get_reggroup): ...this. Update to only create register
4438 group descriptors when needed.
4439 (gdbpy_reggroup_iter_next): Update.
4440
4441 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4442
4443 * python/py-registers.c (gdbpy_register_object_data): New static
4444 global.
4445 (gdbpy_register_object_data_init): New function.
4446 (gdbpy_new_register_descriptor): Renamed to...
4447 (gdbpy_get_register_descriptor): ...this, and update to reuse
4448 existing register descriptors where possible.
4449 (gdbpy_register_descriptor_iter_next): Update.
4450 (gdbpy_initialize_registers): Register new gdbarch data.
4451
4452 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
4453
4454 * linux-nat.c (stopped_pids): Make static.
4455
4456 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4457
4458 PR ada/26235
4459 * gdbtypes.c (ada_discrete_type_low_bound,
4460 ada_discrete_type_high_bound): Handle undefined bounds.
4461
4462 2020-07-21 Kamil Rytarowski <n54@gmx.com>
4463
4464 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
4465 declaration.
4466 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
4467 function.
4468
4469 2020-07-20 John Baldwin <jhb@FreeBSD.org>
4470
4471 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4472 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4473 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4474 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4475 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4476 method.
4477
4478 2020-07-20 Ludovic Courtès <ludo@gnu.org>
4479
4480 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4481 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4482 which are deprecated in Guile 3.0.
4483 * configure.ac (try_guile_versions): Add "guile-3.0".
4484 * configure (try_guile_versions): Regenerate.
4485 * NEWS: Update entry.
4486
4487 2020-07-20 Ludovic Courtès <ludo@gnu.org>
4488 Doug Evans <dje@google.com>
4489
4490 PR gdb/21104
4491 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4492 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4493 USING_GUILE_BEFORE_2_2.
4494 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4495 Change type to 'scm_t_port_type *'.
4496 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4497 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4498 parameter and honor it. Update callers.
4499 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4500 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4501 functions.
4502 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4503 USING_GUILE_BEFORE_2_2.
4504 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
4505 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
4506 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
4507 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
4508 and 'SCM_PORT_TYPE'.
4509 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
4510 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
4511 (gdbscm_memory_port_read, gdbscm_memory_port_write)
4512 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
4513 [!USING_GUILE_BEFORE_2_2]: New functions.
4514 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
4515 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
4516 'gdbscm_memory_port_read'.
4517 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
4518 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
4519 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
4520 function.
4521 (ioscm_init_memory_port): Remove.
4522 (ioscm_init_memory_port_stream): New function
4523 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
4524 function.
4525 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4526 Return scm_from_uint (0).
4527 (gdbscm_set_memory_port_read_buffer_size_x)
4528 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4529 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4530 Return scm_from_uint (0).
4531 (gdbscm_set_memory_port_write_buffer_size_x)
4532 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4533 * configure.ac (try_guile_versions): Add "guile-2.2".
4534 * configure: Regenerate.
4535 * NEWS: Add entry.
4536
4537 2020-07-18 Tom Tromey <tom@tromey.com>
4538
4539 * linux-nat.c (linux_multi_process): Remove.
4540 (linux_nat_target::supports_multi_process): Return true.
4541
4542 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4543
4544 * arch/riscv.c (riscv_tdesc_cache): Change map type.
4545 (riscv_lookup_target_description): Return pointer out of
4546 unique_ptr.
4547 * target-descriptions.c (allocate_target_description): Add
4548 comment.
4549 (target_desc_deleter::operator()): Likewise.
4550 * target-descriptions.h (struct target_desc_deleter): Moved to
4551 gdbsupport/tdesc.h.
4552 (target_desc_up): Likewise.
4553
4554 2020-07-17 Tom Tromey <tromey@adacore.com>
4555
4556 * linux-nat.c (linux_nat_target::supports_non_stop)
4557 (linux_nat_target::always_non_stop_p): Use "true".
4558 (linux_nat_target::supports_disable_randomization): Use "true" and
4559 "false".
4560
4561 2020-07-16 Caroline Tice <cmtice@google.com>
4562
4563 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
4564 (RNGLIST_HEADER_SIZE64): New constant definition.
4565 (struct dwop_section_names): Add rnglists_dwo.
4566 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
4567 (struct loclist_header): Rename to 'loclists_rnglists_header'.
4568 (struct dwo_sections): Add rnglists field.
4569 (read_attribut_reprocess): Add tag parameter.
4570 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
4571 (cu_debug_rnglists_section): New function (decl & definition).
4572 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
4573 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
4574 die whose range is being checked; get rnglist section from
4575 cu_debug_rnglists_section, to get from either objfile or dwo file as
4576 appropriate. Add cases for DW_RLE_base_addressx,
4577 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
4578 the base address to DW_RLE_offset_pairs (not to all ranges), moving
4579 test inside if-condition and updating complaint message.
4580 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
4581 dwarf2_rnglists_process.
4582 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
4583 dwarf2_ranges_process.
4584 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
4585 need_ranges_base and update comment appropriately. Also pass die tag
4586 to dwarf2_ranges_read.
4587 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
4588 need_ranges_base and update comment appropriately. Also pass die tag
4589 to dwarf2_ranges_process.
4590 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
4591 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
4592 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
4593 need_ranges_base and update comment appropriately. Also pass die tag
4594 to read_attribute_reprocess and dwarf2_ranges_read.
4595 (read_loclist_header): Rename function to read_loclists_rnglists_header,
4596 and update function comment appropriately.
4597 (read_loclist_index): Call read_loclists_rnglists_header instead of
4598 read_loclist_header.
4599 (read_rnglist_index): New function.
4600 (read_attribute_reprocess): Add tag parameter. Add code for
4601 DW_FORM_rnglistx, passing tag to read_rnglist_index.
4602 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
4603
4604 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
4605
4606 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
4607 being resolved.
4608
4609 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
4610
4611 * arch-utils.c (show_architecture): Update formatting of messages.
4612
4613 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4614
4615 * gdbtypes.h (struct type) <bounds>: Handle array and string
4616 types.
4617 * ada-lang.c (assign_aggregate): Use type::bounds on
4618 array/string type.
4619 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
4620 * c-varobj.c (c_number_of_children): Likewise.
4621 (c_describe_child): Likewise.
4622 * eval.c (evaluate_subexp_for_sizeof): Likewise.
4623 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
4624 (f_type_print_base): Likewise.
4625 * f-valprint.c (f77_array_offset_tbl): Likewise.
4626 (f77_get_upperbound): Likewise.
4627 (f77_print_array_1): Likewise.
4628 * guile/scm-type.c (gdbscm_type_range): Likewise.
4629 * m2-typeprint.c (m2_array): Likewise.
4630 (m2_is_long_set_of_type): Likewise.
4631 * m2-valprint.c (get_long_set_bounds): Likewise.
4632 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
4633 * python/py-type.c (typy_range): Likewise.
4634 * rust-lang.c (rust_internal_print_type): Likewise.
4635 * type-stack.c (type_stack::follow_types): Likewise.
4636 * valarith.c (value_subscripted_rvalue): Likewise.
4637 * valops.c (value_cast): Likewise.
4638
4639 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4640
4641 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
4642 callers to use the equivalent accessor methods.
4643
4644 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4645
4646 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
4647 (struct type) <bit_stride>: New method.
4648 (TYPE_BIT_STRIDE): Remove.
4649 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
4650
4651 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4652
4653 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
4654 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
4655 callers to use the equivalent accessor methods instead.
4656
4657 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4658
4659 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
4660 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
4661 callers to use the equivalent accessor methods instead.
4662
4663 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4664
4665 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
4666 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
4667 to use dynamic_prop::kind.
4668
4669 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4670
4671 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
4672 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
4673 to get the bound property's kind and check against
4674 PROP_UNDEFINED.
4675
4676 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4677
4678 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
4679 all callers to use type::range_bounds followed by
4680 dynamic_prop::{low,high}.
4681
4682 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4683
4684 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
4685 const_val, set_const_val, baton, set_locexpr, set_loclist,
4686 set_addr_offset, variant_parts, set_variant_parts,
4687 original_type, set_original_type>: New methods.
4688 <kind>: Rename to...
4689 <m_kind>: ... this. Update all users to use the new methods
4690 instead.
4691 <data>: Rename to...
4692 <m_data>: ... this. Update all users to use the new methods
4693 instead.
4694
4695 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4696
4697 * gdbtypes.c (get_discrete_bounds): Return failure if
4698 the range type's bounds are not both defined and constant
4699 values.
4700 (get_array_bounds): Update comment. Remove undefined bound check.
4701
4702 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4703
4704 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
4705 the type::bounds method directly.
4706
4707 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4708
4709 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
4710 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
4711 are used to set the range type's bounds to use set_bounds.
4712
4713 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4714
4715 * exec.c (_initialize_exec): Update exec-file-mismatch help.
4716
4717 2020-07-10 Pedro Alves <pedro@palves.net>
4718
4719 * gdbthread.h (inferior_ref): Define.
4720 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
4721 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
4722 * thread.c
4723 (scoped_restore_current_thread::restore):
4724 Adjust to gdb::ref_ptr.
4725 (scoped_restore_current_thread::~scoped_restore_current_thread):
4726 Remove manual decref handling.
4727 (scoped_restore_current_thread::scoped_restore_current_thread):
4728 Adjust to use
4729 inferior_ref::new_reference/thread_info_ref::new_reference.
4730 Incref the thread before calling get_frame_id instead of after.
4731 Let TARGET_CLOSE_ERROR propagate.
4732
4733 2020-07-10 Pedro Alves <pedro@palves.net>
4734
4735 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
4736 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
4737 NOT_AVAILABLE_ERROR.
4738 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
4739 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
4740
4741 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4742 Pedro Alves <pedro@palves.net>
4743
4744 PR gdb/26199
4745 * infrun.c (threads_are_resumed_pending_p): Delete.
4746 (do_target_wait): Remove threads_are_executing and
4747 threads_are_resumed_pending_p checks from the inferior_matches
4748 lambda. Update comments.
4749
4750 2020-07-10 Pedro Alves <pedro@palves.net>
4751
4752 PR gdb/26199
4753 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
4754 executing threads.
4755
4756 2020-07-10 Pedro Alves <pedro@palves.net>
4757
4758 PR gdb/26199
4759 * infrun.c (handle_no_resumed): Handle multiple targets.
4760
4761 2020-07-10 Pedro Alves <pedro@palves.net>
4762
4763 PR gdb/26199
4764 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
4765 target_is_async_p.
4766
4767 2020-07-10 Pedro Alves <pedro@palves.net>
4768
4769 PR gdb/26199
4770 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
4771 threads, not all threads.
4772
4773 2020-07-10 Pedro Alves <pedro@palves.net>
4774
4775 PR gdb/26199
4776 * remote.c (remote_target::open_1): Pass remote target pointer as
4777 data to create_async_event_handler.
4778 (remote_async_inferior_event_handler): Mark async event handler
4779 before returning if the remote target still has either pending
4780 events or unacknowledged notifications.
4781
4782 2020-07-10 John Baldwin <jhb@FreeBSD.org>
4783
4784 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
4785 declaration.
4786 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
4787 function.
4788
4789 2020-07-09 John Baldwin <jhb@FreeBSD.org>
4790
4791 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
4792 inferior_ptid.
4793
4794 2020-07-09 John Baldwin <jhb@FreeBSD.org>
4795
4796 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
4797 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
4798 AT_FREEBSD_PS_STRINGS.
4799
4800 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
4801
4802 * auto-load.c (auto_load_objfile_script_1): Convert drive part
4803 of debugfile path on Windows.
4804
4805 2020-07-08 John Baldwin <jhb@FreeBSD.org>
4806
4807 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
4808 argument to 'data'.
4809
4810 2020-07-08 Tom Tromey <tromey@adacore.com>
4811
4812 * ada-lang.c (ada_exception_message_1): Use read_memory.
4813
4814 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4815
4816 PR python/22748
4817 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
4818 special handling for inline frames.
4819 * findvar.c (value_of_register_lazy): Skip inline frames when
4820 creating lazy register values.
4821 * frame.c (frame_id_computed_p): Delete definition.
4822 * frame.h (frame_id_computed_p): Delete declaration.
4823
4824 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4825
4826 * NEWS: Mention additions to Python API.
4827 * python/py-arch.c (archpy_register_groups): New function.
4828 (arch_object_methods): Add 'register_groups' method.
4829 * python/py-registers.c (reggroup_iterator_object): New struct.
4830 (reggroup_object): New struct.
4831 (gdbpy_new_reggroup): New function.
4832 (gdbpy_reggroup_to_string): New function.
4833 (gdbpy_reggroup_name): New function.
4834 (gdbpy_reggroup_iter): New function.
4835 (gdbpy_reggroup_iter_next): New function.
4836 (gdbpy_new_reggroup_iterator): New function
4837 (gdbpy_initialize_registers): Register new types.
4838 (reggroup_iterator_object_type): Define new Python type.
4839 (gdbpy_reggroup_getset): New static global.
4840 (reggroup_object_type): Define new Python type.
4841 * python/python-internal.h
4842
4843 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4844
4845 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
4846 * python/py-arch.c (archpy_registers): New function.
4847 (arch_object_methods): Add 'registers' method.
4848 * python/py-registers.c: New file.
4849 * python/python-internal.h
4850 (gdbpy_new_register_descriptor_iterator): Declare.
4851 (gdbpy_initialize_registers): Declare.
4852 * python/python.c (do_start_initialization): Call
4853 gdbpy_initialize_registers.
4854 * NEWS: Mention additions to the Python API.
4855
4856 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4857
4858 * NEWS: Mention new Python API method.
4859 * python/py-unwind.c (pending_framepy_architecture): New function.
4860 (pending_frame_object_methods): Add architecture method.
4861
4862 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4863
4864 * gdbarch.c: Regenerate.
4865 * gdbarch.h: Regenerate.
4866 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
4867 (gdbarch_data): Use internal_error for the case where
4868 deprecated_set_gdbarch_data was originally needed.
4869 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
4870 and use passed in obstack.
4871 (libunwind_frame_set_descr): Should no longer get back NULL from
4872 gdbarch_data.
4873 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
4874 type.
4875 * user-regs.c (user_regs_init): Update parameters, and use passed
4876 in obstack.
4877 (user_reg_add): Should no longer get back NULL from gdbarch_data.
4878 (_initialize_user_regs): Register as a pre-init gdbarch data type.
4879
4880 2020-07-06 Tom de Vries <tdevries@suse.de>
4881
4882 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
4883 End-Of-Sequence in lte_is_less_than.
4884 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
4885 "gdb: Don't reorder line table entries too much when sorting".
4886
4887 2020-07-06 Tom de Vries <tdevries@suse.de>
4888
4889 PR tui/26205
4890 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
4891
4892 2020-07-05 Tom de Vries <tdevries@suse.de>
4893
4894 PR build/26187
4895 * inferior.h (struct infcall_suspend_state_deleter): If available, use
4896 std::uncaught_exceptions instead of deprecated
4897 std::uncaught_exception.
4898
4899 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4900
4901 * macroexp.h (macro_stringify): Return
4902 gdb::unique_xmalloc_ptr<char>.
4903 * macroexp.c (macro_stringify): Likewise.
4904 * macrotab.c (fixup_definition): Update.
4905
4906 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4907
4908 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
4909 (lex_one_token): Update.
4910 * macroexp.c (struct macro_buffer) <release>: Return
4911 gdb::unique_xmalloc_ptr<char>.
4912 (macro_stringify): Update.
4913 (macro_expand): Update.
4914 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
4915 * macroexp.h (macro_expand_next): Likewise.
4916
4917 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
4918
4919 * macroexp.h (macro_lookup_ftype): Remove.
4920 (macro_expand, macro_expand_once, macro_expand_next): Remove
4921 lookup function parameters, add scope parameter.
4922 * macroexp.c (scan, substitute_args, expand, maybe_expand,
4923 macro_expand, macro_expand_once, macro_expand_next): Likewise.
4924 * macroscope.h (standard_macro_lookup): Change parameter type
4925 to macro_scope.
4926 * macroscope.c (standard_macro_lookup): Likewise.
4927 * c-exp.y (lex_one_token): Update.
4928 * macrocmd.c (macro_expand_command): Likewise.
4929 (macro_expand_once_command): Likewise.
4930
4931 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4932
4933 * inf-loop.c (inferior_event_handler): Remove client_data param.
4934 * inf-loop.h (inferior_event_handler): Likewise.
4935 * infcmd.c (step_1): Adjust.
4936 * infrun.c (proceed): Adjust.
4937 (fetch_inferior_event): Remove client_data param.
4938 (infrun_async_inferior_event_handler): Adjust.
4939 * infrun.h (fetch_inferior_event): Remove `void *` param.
4940 * linux-nat.c (handle_target_event): Adjust.
4941 * record-btrace.c (record_btrace_handle_async_inferior_event):
4942 Adjust.
4943 * record-full.c (record_full_async_inferior_event_handler):
4944 Adjust.
4945 * remote.c (remote_async_inferior_event_handler): Adjust.
4946
4947 2020-07-01 Tom Tromey <tom@tromey.com>
4948
4949 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
4950 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
4951
4952 2020-07-01 Tom Tromey <tom@tromey.com>
4953
4954 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
4955 tui_gen_win_info.
4956 (tui_win_info::make_window): Merge with
4957 tui_gen_win_info::make_window.
4958 (tui_win_info::make_visible): Move from tui_gen_win_info.
4959 * tui/tui-win.c (tui_win_info::max_width): Move from
4960 tui_gen_win_info.
4961 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
4962 type.
4963 <window_factory>: Likewise.
4964 * tui/tui-layout.c (tui_win_info::resize): Move from
4965 tui_gen_win_info.
4966 (make_standard_window): Change return type.
4967 (get_locator_window, tui_get_window_by_name): Likewise.
4968 (tui_layout_window::apply): Remove a cast.
4969 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
4970 (struct tui_win_info): Merge with tui_gen_win_info.
4971 (struct tui_gen_win_info): Remove.
4972
4973 2020-07-01 Tom Tromey <tom@tromey.com>
4974
4975 * tui/tui-stack.h (struct tui_locator_window): Derive from
4976 tui_win_info.
4977 <do_scroll_horizontal, do_scroll_vertical>: New methods.
4978 <can_box>: New method.
4979
4980 2020-07-01 Tom Tromey <tom@tromey.com>
4981
4982 * tui/tui-stack.h (struct tui_locator_window): Remove body.
4983
4984 2020-07-01 Tom Tromey <tom@tromey.com>
4985
4986 * tui/tui-regs.c (tui_data_window::display_registers_from)
4987 (tui_data_window::display_registers_from)
4988 (tui_data_window::first_data_item_displayed)
4989 (tui_data_window::delete_data_content_windows): Update.
4990 (tui_data_window::refresh_window, tui_data_window::no_refresh):
4991 Remove.
4992 (tui_data_window::check_register_values): Update.
4993 (tui_data_item_window::rerender): Add parameters. Update.
4994 (tui_data_item_window::refresh_window): Remove.
4995 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
4996 virtual.
4997 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
4998 tui_gen_win_info.
4999 <refresh_window, max_height, min_height>: Remove.
5000 <rerender>: Add parameters.
5001 <x, y, visible>: New members.
5002 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
5003 <m_item_width>: New member.
5004
5005 2020-07-01 Tom Tromey <tom@tromey.com>
5006
5007 * tui/tui-regs.c (tui_data_window::show_register_group)
5008 (tui_data_window::check_register_values): Update.
5009 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
5010 from item_no.
5011
5012 2020-07-01 Tom Tromey <tom@tromey.com>
5013
5014 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
5015 useless "if".
5016
5017 2020-07-01 Tom Tromey <tom@tromey.com>
5018
5019 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5020 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
5021
5022 2020-07-01 Tom Tromey <tom@tromey.com>
5023
5024 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
5025 * tui/tui-winsource.h (enum tui_line_or_address_kind)
5026 (struct tui_line_or_address): Move from tui-data.h.
5027 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
5028 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
5029 (tui_cmd_window, tui_source_window_base, tui_source_window)
5030 (tui_disasm_window): Don't declare.
5031 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
5032 to tui-winsource.h.
5033 (SINGLE_KEY): Move to tui-stack.c.
5034
5035 2020-07-01 Tom Tromey <tom@tromey.com>
5036
5037 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
5038 std::string.
5039 * tui/tui-regs.c (class tab_expansion_file): New.
5040 (tab_expansion_file::write): New method.
5041 (tui_register_format): Change return type. Use
5042 tab_expansion_file.
5043 (tui_get_register, tui_data_window::display_registers_from)
5044 (tui_data_item_window::rerender): Update.
5045 * tui/tui-io.h (tui_expand_tabs): Don't declare.
5046 * tui/tui-io.c (tui_expand_tabs): Remove.
5047
5048 2020-07-01 Tom Tromey <tom@tromey.com>
5049
5050 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
5051
5052 2020-07-01 Fangrui Song <maskray@google.com>
5053
5054 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
5055
5056 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5057
5058 * dwarf2/read.c (set_die_type): Removed conditions to restrict
5059 forms for DW_AT_associated and DW_AT_allocated attributes,
5060 which is already checked in function attr_to_dynamic_prop.
5061
5062 2020-06-30 Tom Tromey <tromey@adacore.com>
5063
5064 * dwarf2/read.c (quirk_rust_enum): Correctly call
5065 alloc_rust_variant for default-less enum.
5066
5067 2020-06-30 Tom Tromey <tromey@adacore.com>
5068
5069 PR build/26183:
5070 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
5071 gdb::to_string.
5072
5073 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
5074
5075 * gdbarch.sh (displaced_step_copy_insn): Update doc.
5076 * gdbarch.h: Re-generate.
5077
5078 2020-06-28 Tom Tromey <tom@tromey.com>
5079
5080 * command.h (cmd_types): Remove.
5081 (cmd_type): Don't declare.
5082 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
5083 typedef.
5084 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
5085 * cli/cli-decode.c (cmd_type): Remove.
5086
5087 2020-06-27 Pedro Alves <palves@redhat.com>
5088
5089 * fork-child.c (prefork_hook): Adjust.
5090 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
5091 Delete.
5092 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
5093 * inferior.c (inferior::set_tty, inferior::tty): New methods.
5094 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
5095 Remove declarations.
5096 (struct inferior) <set_tty, tty>: New methods.
5097 (struct inferior) <terminal>: Rename to ...
5098 (struct inferior) <m_terminal>: ... this and make private.
5099 * main.c (captured_main_1): Adjust.
5100 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
5101 (mi_cmd_inferior_tty_show): Adjust.
5102 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
5103 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
5104
5105 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
5106
5107 * configure.ac: Add --enable-libctf: handle --disable-static
5108 properly.
5109 * acinclude.m4: sinclude ../config/enable.m4.
5110 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
5111 (LIBCTF): Substitute in.
5112 (CTF_DEPS): New, likewise.
5113 (CLIBS): libctf needs symbols from libbfd: move earlier.
5114 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
5115 flags.
5116 * ctfread.c: Surround in ENABLE_LIBCTF.
5117 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
5118 * configure: Regenerate.
5119 * config.in: Likewise.
5120
5121 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
5122
5123 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
5124
5125 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
5126
5127 * inferior.h (struct inferior) <terminal>: Change type to
5128 gdb::unique_xmalloc_ptr<char>.
5129 * inferior.c (inferior::~inferior): Don't free inf->terminal.
5130 * infcmd.c (set_inferior_io_terminal): Don't free terminal
5131 field, adjust to unique pointer.
5132 (get_inferior_io_terminal): Adjust to unique pointer.
5133
5134 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5135
5136 * riscv-tdep.c (riscv_print_registers_info): Loop over all
5137 registers, not just the known core set of registers.
5138
5139 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5140
5141 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
5142 fflags, frm, and fcsr registers.
5143 (riscv_register_reggroup_p): Remove unknown CSRs from save and
5144 restore groups.
5145 (riscv_tdesc_unknown_reg): New function.
5146 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
5147 tdesc_use_registers.
5148 * riscv-tdep.h (struct gdbarch_tdep): Add
5149 unknown_csrs_first_regnum, unknown_csrs_count,
5150 duplicate_fflags_regnum, duplicate_frm_regnum, and
5151 duplicate_fcsr_regnum fields.
5152
5153 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5154
5155 * target-descriptions.c (tdesc_use_registers): Add new parameter a
5156 callback, use the callback (when not null) to help number unknown
5157 registers.
5158 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
5159 (tdesc_use_registers): Add extra parameter to declaration.
5160
5161 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5162
5163 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
5164 in the file.
5165 (class riscv_pending_register_alias): Likewise.
5166 (riscv_register_feature::register_info): Change 'required_p' field
5167 to 'required', and change its type. Add 'check' member function.
5168 (riscv_register_feature::register_info::check): Define new member
5169 function.
5170 (riscv_xreg_feature): Change initialisation of 'required' field.
5171 (riscv_freg_feature): Likewise.
5172 (riscv_virtual_feature): Likewise.
5173 (riscv_csr_feature): Likewise.
5174 (riscv_check_tdesc_feature): Take extra parameter, the csr
5175 tdesc_feature, rewrite the function to use the new
5176 riscv_register_feature::register_info::check function.
5177 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
5178
5179 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5180
5181 * features/Makefile: Remove all references to the deleted files
5182 below.
5183 * features/riscv/32bit-csr.c: Deleted.
5184 * features/riscv/32bit-csr.xml: Deleted.
5185 * features/riscv/64bit-csr.c: Deleted.
5186 * features/riscv/64bit-csr.xml: Deleted.
5187 * features/riscv/rebuild-csr-xml.sh: Deleted.
5188
5189 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5190
5191 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
5192 whitespace error for declaration of names member variable.
5193 (struct riscv_register_feature): Add new prefer_first_name member
5194 variable, and fix whitespace error in declaration of registers.
5195 (riscv_xreg_feature): Initialize prefer_first_name field.
5196 (riscv_freg_feature): Likewise.
5197 (riscv_virtual_feature): Likewise.
5198 (riscv_csr_feature): Likewise.
5199 (riscv_register_name): Expand on comments. Remove register name
5200 modifications for CSR and virtual registers.
5201
5202 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5203
5204 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
5205 errors.
5206
5207 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5208
5209 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
5210 riscv-opc.h.
5211 (class riscv_pending_register_alias): New class.
5212 (riscv_check_tdesc_feature): Take vector of pending aliases and
5213 populate it as appropriate.
5214 (riscv_setup_register_aliases): Delete.
5215 (riscv_gdbarch_init): Create vector of pending aliases and pass it
5216 to riscv_check_tdesc_feature in all cases. Use the vector to
5217 create the register aliases.
5218
5219 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5220
5221 * sol2-tdep.c (sol2_static_transform_name): Remove.
5222 (sol2_init_abi): Don't register it.
5223 * gdbarch.sh (static_transform_name): Remove.
5224 * gdbarch.c, gdbarch.h: Regenerate.
5225
5226 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
5227 gdbarch_static_transform_name.
5228 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
5229 * stabsread.c (define_symbol) <'X'>: Remove.
5230 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
5231 handling.
5232 <'V'>: Likewise.
5233 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
5234 <'S'>: Remove call to gdbarch_static_transform_name.
5235
5236 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5237
5238 * procfs.c (procfs_pre_trace): New function.
5239 (procfs_target::create_inferior): Pass it to fork_inferior.
5240
5241 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5242
5243 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
5244 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
5245 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
5246 sol2-tdep.o, sparc-sol2-tdep.o.
5247 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
5248 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
5249 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
5250 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
5251
5252 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5253
5254 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
5255 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
5256 Call sol2_init_abi.
5257 Remove calls to set_gdbarch_skip_solib_resolver,
5258 set_gdbarch_core_pid_to_str.
5259 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
5260 (i386_sol2_static_transform_name): Remove.
5261 (i386_sol2_init_abi): Call sol2_init_abi.
5262 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5263 set_gdbarch_static_transform_name,
5264 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5265 Use sol2_sigtramp_p.
5266 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
5267 (sol2_sigtramp_p): New function.
5268 (sol2_static_transform_name): New function.
5269 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
5270 (sol2_init_abi): New function.
5271 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
5272 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
5273 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
5274 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
5275 (sparc_sol2_static_transform_name): Remove.
5276 (sparc32_sol2_init_abi): Call sol2_init_abi.
5277 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5278 set_gdbarch_static_transform_name,
5279 set_gdbarch_skip_solib_resolver,
5280 set_gdbarch_core_pid_to_str.
5281 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
5282 (sparc_sol2_static_transform_name): Remove
5283 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
5284 call sol2_sigtramp_p.
5285 (sparc64_sol2_init_abi): Call sol2_init_abi.
5286 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5287 set_gdbarch_static_transform_name,
5288 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5289
5290 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5291
5292 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
5293 * exec.c (validate_exec_file): If from_tty, set both
5294 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
5295 * symfile.c (symbol_file_add_with_addrs): if always_confirm
5296 and from_tty, unconditionally ask a confirmation.
5297
5298 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5299
5300 * target-descriptions.c (tdesc_architecture_name): Protect against
5301 NULL pointer dereference.
5302 (maint_print_xml_tdesc_cmd): New function.
5303 (_initialize_target_descriptions): Register new 'maint print
5304 xml-tdesc' command and give it the filename completer.
5305 * NEWS: Mention new 'maint print xml-tdesc' command.
5306
5307 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5308
5309 * target-descriptions.c (class tdesc_compatible_info): New class.
5310 (struct target_desc): Change type of compatible vector.
5311 (tdesc_compatible_p): Update for change in type of
5312 target_desc::compatible.
5313 (tdesc_compatible_info_list): New function.
5314 (tdesc_compatible_info_arch_name): New function.
5315 (tdesc_add_compatible): Update for change in type of
5316 target_desc::compatible.
5317 (print_c_tdesc::visit_pre): Likewise.
5318
5319 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5320
5321 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
5322 whitespace to underscore.
5323 (maint_print_c_tdesc_cmd): Use fake filename for target
5324 descriptions that came from the target.
5325 (_initialize_target_descriptions): Add filename command completion
5326 for 'maint print c-tdesc'.
5327
5328 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
5329
5330 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
5331 lines.
5332
5333 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
5334
5335 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
5336 lines.
5337 (dwarf2_find_location_expression): Likewise.
5338 (call_site_parameter_matches): Likewise.
5339 (dwarf2_compile_expr_to_ax): Likewise.
5340 (disassemble_dwarf_expression): Likewise.
5341 (loclist_describe_location): Likewise.
5342
5343 2020-06-23 Pedro Alves <palves@redhat.com>
5344
5345 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
5346 progspace-and-thread.h. Include scoped-mock-context.h instead.
5347 (register_to_value_test): Use scoped_mock_context.
5348 * regcache.c: Include "scoped-mock-context.h".
5349 (cooked_read_test): Don't error out if a target is already pushed.
5350 Use scoped_mock_context. Adjust.
5351 * scoped-mock-context.h: New file.
5352
5353 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5354
5355 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
5356 initializer.
5357 (ada_language::is_string_type_p): New member function.
5358 * c-lang.c (c_language_data): Delete la_is_string_type_p
5359 initializer.
5360 (cplus_language_data): Likewise.
5361 (asm_language_data): Likewise.
5362 (minimal_language_data): Likewise.
5363 * d-lang.c (d_language_data): Likewise.
5364 * f-lang.c (f_is_string_type_p): Delete function, implementation
5365 moved to f_language::is_string_type_p.
5366 (f_language_data): Delete la_is_string_type_p initializer.
5367 (f_language::is_string_type_p): New member function,
5368 implementation from f_is_string_type_p.
5369 * go-lang.c (go_is_string_type_p): Delete function, implementation
5370 moved to go_language::is_string_type_p.
5371 (go_language_data): Delete la_is_string_type_p initializer.
5372 (go_language::is_string_type_p): New member function,
5373 implementation from go_is_string_type_p.
5374 * language.c (language_defn::is_string_type_p): Define new member
5375 function.
5376 (default_is_string_type_p): Make static, add comment copied from
5377 header file.
5378 (unknown_language_data): Delete la_is_string_type_p initializer.
5379 (unknown_language::is_string_type_p): New member function.
5380 (auto_language_data): Delete la_is_string_type_p initializer.
5381 (auto_language::is_string_type_p): New member function.
5382 * language.h (language_data): Delete la_is_string_type_p field.
5383 (language_defn::is_string_type_p): Declare new function.
5384 (default_is_string_type_p): Delete desclaration, move comment to
5385 definition.
5386 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
5387 moved to m2_language::is_string_type_p.
5388 (m2_language_data): Delete la_is_string_type_p initializer.
5389 (m2_language::is_string_type_p): New member function,
5390 implementation from m2_is_string_type_p.
5391 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
5392 initializer.
5393 * opencl-lang.c (opencl_language_data): Likewise.
5394 * p-lang.c (pascal_is_string_type_p): Delete function,
5395 implementation moved to pascal_language::is_string_type_p.
5396 (pascal_language_data): Delete la_is_string_type_p initializer.
5397 (pascal_language::is_string_type_p): New member function,
5398 implementation from pascal_is_string_type_p.
5399 * rust-lang.c (rust_is_string_type_p): Delete function,
5400 implementation moved to rust_language::is_string_type_p.
5401 (rust_language_data): Delete la_is_string_type_p initializer.
5402 (rust_language::is_string_type_p): New member function,
5403 implementation from rust_is_string_type_p.
5404 * valprint.c (val_print_scalar_or_string_type_p): Update call to
5405 is_string_type_p.
5406
5407 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5408
5409 * ada-lang.c (ada_language_data): Delete la_print_typedef
5410 initializer.
5411 (ada_language::print_typedef): New member function.
5412 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
5413 (cplus_language_data): Likewise.
5414 (asm_language_data): Likewise.
5415 (minimal_language_data): Likewise.
5416 * d-lang.c (d_language_data): Likewise.
5417 * f-lang.c (f_language_data): Likewise.
5418 (f_language::print_typedef): New member function.
5419 * go-lang.c (go_language_data): Delete la_print_typedef
5420 initializer.
5421 * language.c (language_defn::print_typedef): Define member
5422 function.
5423 (unknown_language_data): Delete la_print_typedef initializer.
5424 (unknown_language::print_typedef): New member function.
5425 (auto_language_data): Delete la_print_typedef initializer.
5426 (auto_language::print_typedef): New member function.
5427 * language.h (language_data): Delete la_print_typedef field.
5428 (language_defn::print_typedef): Declare new member function.
5429 (LA_PRINT_TYPEDEF): Update call to print_typedef.
5430 (default_print_typedef): Delete declaration.
5431 * m2-lang.c (m2_language_data): Delete la_print_typedef
5432 initializer.
5433 (m2_language::print_typedef): New member function.
5434 * objc-lang.c (objc_language_data): Delete la_print_typedef
5435 initializer.
5436 * opencl-lang.c (opencl_language_data): Likewise.
5437 * p-lang.c (pascal_language_data): Likewise.
5438 (pascal_language::print_typedef): New member function.
5439 * rust-lang.c (rust_print_typedef): Delete function,
5440 implementation moved to rust_language::print_typedef.
5441 (rust_language): Delete la_print_typedef initializer.
5442 (rust_language::print_typedef): New member function,
5443 implementation from rust_print_typedef.
5444 * typeprint.c (default_print_typedef): Delete.
5445
5446 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5447
5448 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
5449 (ada_language::printstr): New member function.
5450 * c-lang.c (c_language_data): Delete la_printstr initializer.
5451 (cplus_language_data): Likewise.
5452 (asm_language_data): Likewise.
5453 (minimal_language_data): Likewise.
5454 * d-lang.c (d_language_data): Likewise.
5455 * f-lang.c (f_printstr): Rename to f_language::printstr.
5456 (f_language_data): Delete la_printstr initializer.
5457 (f_language::printstr): New member function, implementation from
5458 f_printstr.
5459 * go-lang.c (go_language_data): Delete la_printstr initializer.
5460 * language.c (language_defn::printstr): Define new member
5461 function.
5462 (unk_lang_printstr): Delete.
5463 (unknown_language_data): Delete la_printstr initializer.
5464 (unknown_language::printstr): New member function.
5465 (auto_language_data): Delete la_printstr initializer.
5466 (auto_language::printstr): New member function.
5467 * language.h (language_data): Delete la_printstr field.
5468 (language_defn::printstr): Declare new member function.
5469 (LA_PRINT_STRING): Update call to printstr.
5470 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
5471 (m2_language_data): Delete la_printstr initializer.
5472 (m2_language::printstr): New member function, implementation from
5473 m2_printstr.
5474 * objc-lang.c (objc_language_data): Delete la_printstr
5475 initializer.
5476 * opencl-lang.c (opencl_language_data): Likewise.
5477 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5478 (pascal_language_data): Delete la_printstr initializer.
5479 (pascal_language::printstr): New member function, implementation
5480 from pascal_printstr.
5481 * p-lang.h (pascal_printstr): Delete declaration.
5482 * rust-lang.c (rust_printstr): Update header comment.
5483 (rust_language_data): Delete la_printstr initializer.
5484 (rust_language::printstr): New member function.
5485
5486 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5487
5488 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5489 (ada_language::printchar): New member function.
5490 * c-lang.c (c_language_data): Delete la_printchar initializer.
5491 (cplus_language_data): Likewise.
5492 (asm_language_data): Likewise.
5493 (minimal_language_data): Likewise.
5494 * d-lang.c (d_language_data): Likewise.
5495 * f-lang.c (f_printchar): Rename to f_language::printchar.
5496 (f_language_data): Delete la_printchar initializer.
5497 (f_language::printchar): New member function, implementation from
5498 f_printchar.
5499 * go-lang.c (go_language_data): Delete la_printchar initializer.
5500 * language.c (unk_lang_printchar): Delete.
5501 (language_defn::printchar): Define new member function.
5502 (unknown_language_data): Delete la_printchar initializer.
5503 (unknown_language::printchar): New member function.
5504 (auto_language_data): Delete la_printchar initializer.
5505 (auto_language::printchar): New member function.
5506 * language.h (language_data): Delete la_printchar field.
5507 (language_defn::printchar): Declare new member function.
5508 (LA_PRINT_CHAR): Update call to printchar.
5509 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
5510 (m2_language::printchar): New member function.
5511 * objc-lang.c (objc_language_data): Delete la_printchar
5512 initializer.
5513 * opencl-lang.c (opencl_language_data): Likewise.
5514 * p-lang.c (pascal_language_data): Delete la_printchar
5515 initializer.
5516 (pascal_language::printchar): New member function.
5517 * rust-lang.c (rust_printchar): Rename to
5518 rust_language::printchar.
5519 (rust_language_data): Delete la_printchar initializer.
5520 (rust_language::printchar): New member function, implementation
5521 from rust_printchar.
5522
5523 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5524
5525 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
5526 (ada_language_data): Delete la_emitchar initializer.
5527 (ada_language::emitchar): New member function, implementation from
5528 emit_char.
5529 * c-lang.c (c_language_data): Delete la_emitchar initializer.
5530 (cplus_language_data): Likewise.
5531 (asm_language_data): Likewise.
5532 (minimal_language_data): Likewise.
5533 * d-lang.c (d_language_data): Likewise.
5534 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
5535 (f_language_data): Delete la_emitchar initializer.
5536 (f_language::emitchar): New member function, implementation from
5537 f_emit_char.
5538 * go-lang.c (go_language_data): Delete la_emitchar initializer.
5539 * language.c (unk_lang_emit_char): Delete.
5540 (language_defn::emitchar): New member function definition.
5541 (unknown_language_data): Delete la_emitchar initializer.
5542 (unknown_language::emitchar): New member function.
5543 (auto_language_data): Delete la_emitchar initializer.
5544 (auto_language::emitchar): New member function.
5545 * language.h (language_data): Delete la_emitchar field.
5546 (language_defn::emitchar): New member field declaration.
5547 (LA_EMIT_CHAR): Update call to emitchar.
5548 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
5549 (m2_language_data): Delete la_emitchar initializer.
5550 (m2_language::emitchar): New member function, implementation from
5551 m2_emit_char.
5552 * objc-lang.c (objc_language_data): Delete la_emitchar
5553 initializer.
5554 * opencl-lang.c (opencl_language_data): Likewise.
5555 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
5556 (pascal_language_data): Delete la_emitchar initializer.
5557 (pascal_language::emitchar): New member function, implementation
5558 from pascal_emit_char.
5559 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
5560 (rust_language_data): Delete la_emitchar initializer.
5561 (rust_language::emitchar): New member function, implementation
5562 from rust_emitchar.
5563
5564 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5565
5566 * ada-lang.c (resolve): Rename to ada_language::post_parser.
5567 (ada_language_data): Delete la_post_parser initializer.
5568 (ada_language::post_parser): New member function.
5569 * c-lang.c (c_language_data): Delete la_post_parser initializer.
5570 (cplus_language_data): Likewise.
5571 (asm_language_data): Likewise.
5572 (minimal_language_data): Likewise.
5573 * d-lang.c (d_language_data): Likewise.
5574 * f-lang.c (f_language_data): Likewise.
5575 * go-lang.c (go_language_data): Likewise.
5576 * language.c (unknown_language_data): Likewise.
5577 (auto_language_data): Likewise.
5578 * language.h (language_data): Delete la_post_parser field.
5579 (language_defn::post_parser): New member function.
5580 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
5581 * objc-lang.c (objc_language_data): Likewise.
5582 * opencl-lang.c (opencl_language_data): Likewise.
5583 * p-lang.c (pascal_language_data): Likewise.
5584 * parse.c (parse_exp_in_context): Update call to post_parser.
5585 (null_post_parser): Delete definition.
5586 * parser-defs.h (null_post_parser): Delete declaration.
5587 * rust-lang.c (rust_language_data): Delete la_post_parser
5588 initializer.
5589
5590 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5591
5592 * ada-lang.c (parse): Rename to ada_language::parser.
5593 (ada_language_data): Delete la_parser initializer.
5594 (ada_language::parser): New member function, implementation from
5595 parse.
5596 * c-lang.c (c_language_data): Delete la_parser initializer.
5597 (cplus_language_data): Likewise.
5598 (asm_language_data): Likewise.
5599 (minimal_language_data): Likewise.
5600 * d-lang.c (d_language_data): Likewise.
5601 (d_language::parser): New member function.
5602 * f-lang.c (f_language_data): Delete la_parser initializer.
5603 (f_language::parser): New member function.
5604 * go-lang.c (go_language_data): Delete la_parser initializer.
5605 (go_language::parser): New member function.
5606 * language.c (unk_lang_parser): Delete.
5607 (language_defn::parser): Define new member function.
5608 (unknown_language_data): Delete la_parser initializer.
5609 (unknown_language::parser): New member function.
5610 (auto_language_data): Delete la_parser initializer.
5611 (auto_language::parser): New member function.
5612 * language.h (language_data): Delete la_parser field.
5613 (language_defn::parser): Declare new member function.
5614 * m2-lang.c (m2_language_data): Delete la_parser initializer.
5615 (m2_language::parser): New member function.
5616 * objc-lang.c (objc_language_data): Delete la_parser initializer.
5617 * opencl-lang.c (opencl_language_data): Likewise.
5618 * p-lang.c (pascal_language_data): Likewise.
5619 (pascal_language::parser): New member function.
5620 * parse.c (parse_exp_in_context): Update call to parser.
5621 * rust-lang.c (rust_language_data): Delete la_parser initializer.
5622 (rust_language::parser): New member function.
5623
5624 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5625
5626 * top.c (print_gdb_configuration): Print --with-python-libdir
5627 configuration value.
5628
5629 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5630
5631 * NEWS: Mention change to the alias command.
5632
5633 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5634
5635 * cli/cli-cmds.c (lookup_cmd_for_default_args)
5636 (alias_command_completer)
5637 (make_alias_options_def_group): New functions.
5638 (alias_opts, alias_option_defs): New struct and array.
5639 (alias_usage_error): Update usage.
5640 (alias_command): Handles optional DEFAULT-ARGS... arguments.
5641 Use option framework.
5642 (_initialize_cli_cmds): Update alias command help.
5643 Update aliases command help.
5644 (show_user):
5645 Add NULL for new default_args lookup_cmd argument.
5646 (valid_command_p): Rename to validate_aliased_command.
5647 Add NULL for new default_args lookup_cmd argument. Verify that the
5648 aliased_command has no default args.
5649 * cli/cli-decode.c (help_cmd): Show aliases definitions.
5650 (lookup_cmd_1, lookup_cmd): New argument default_args.
5651 (add_alias_cmd):
5652 Add NULL for new default_args lookup_cmd argument.
5653 (print_help_for_command): Show default args under the layout
5654 alias some_alias = some_aliased_cmd some_alias_default_arg.
5655 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
5656 xfree default_args in destructor.
5657 * cli/cli-script.c (process_next_line, do_define_command):
5658 Add NULL for new default_args lookup_cmd argument.
5659 * command.h: Declare new default_args argument in lookup_cmd
5660 and lookup_cmd_1.
5661 * completer.c (complete_line_internal_1):
5662 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5663 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
5664 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
5665 Likewise.
5666 * infcmd.c (_initialize_infcmd): Likewise.
5667 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
5668 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
5669 * python/py-param.c (add_setshow_generic): Likewise.
5670 * remote.c (_initialize_remote): Likewise.
5671 * top.c (execute_command): Prepend default_args if command has some.
5672 (set_verbose):
5673 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5674 * tracepoint.c (validate_actionline, encode_actions_1):
5675 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5676
5677 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5678
5679 * jit.c (jit_read_descriptor): Use bool as the return type.
5680 (jit_breakpoint_re_set_internal): Use bool as the return type.
5681 Invert the return value logic; return true if the jit breakpoint
5682 has been successfully initialized.
5683 (jit_inferior_init): Update the call to
5684 jit_breakpoint_re_set_internal.
5685
5686 2020-06-22 Pedro Alves <palves@redhat.com>
5687
5688 PR gdb/25939
5689 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
5690 Use the current inferior instead. Don't return
5691 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
5692 wait again.
5693 * sol-thread.c (sol_thread_target::wait): Don't reference
5694 inferior_ptid.
5695 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
5696 (sol_update_thread_list_callback): Use the current inferior's pid
5697 instead of inferior_ptid.
5698
5699 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5700
5701 * procfs.c: Cleanup many comments.
5702
5703 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
5704 (AFTER_WATCHFLAG): Replace by value.
5705
5706 (MAIN_PROC_NAME_FORMAT): Inline ...
5707 (create_procinfo): ... here.
5708
5709 (procfs_debug_inferior): Remove SYS_exec handling.
5710 (syscall_is_exec): Likewise.
5711 (procfs_set_exec_trap): Likewise.
5712
5713 (syscall_is_lwp_exit): Inline in callers.
5714 (syscall_is_exit): Likewise.
5715 (syscall_is_exec): Likewise.
5716 (syscall_is_lwp_create): Likewise.
5717
5718 (invalidate_cache): Remove #if 0 code.
5719
5720 (make_signal_thread_runnable): Remove.
5721 (procfs_target::resume): Remove #if 0 code.
5722
5723 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5724
5725 PR gdb/25939
5726 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
5727 call ...
5728 (procfs_target::create_inferior): ... here.
5729
5730 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5731
5732 * exec.c (validate_exec_file): Ensure the build-id is up to
5733 date by calling reopen_exec_file (that checks file timestamp
5734 to decide to re-read the file).
5735
5736 2020-06-18 Pedro Alves <palves@redhat.com>
5737
5738 PR gdb/25412
5739 * gdbthread.h (delete_thread, delete_thread_silent)
5740 (find_thread_ptid): Update comments.
5741 * thread.c (current_thread_): New global.
5742 (is_current_thread): Move higher, and reimplement.
5743 (inferior_thread): Reimplement.
5744 (set_thread_exited): Use bool. Add assertions.
5745 (add_thread_silent): Simplify thread-reuse handling by always
5746 calling delete_thread.
5747 (delete_thread): Remove intro comment.
5748 (find_thread_ptid): Skip exited threads.
5749 (switch_to_thread_no_regs): Write to current_thread_.
5750 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
5751 INFERIOR_PTID. Clear current_thread_.
5752
5753 2020-06-18 Pedro Alves <palves@redhat.com>
5754
5755 * aix-thread.c (pd_update): Use switch_to_thread.
5756
5757 2020-06-18 Pedro Alves <palves@redhat.com>
5758
5759 * ravenscar-thread.c (ravenscar_thread_target): Update.
5760 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
5761 (ravenscar_thread_target::add_active_thread): ... this. Don't
5762 set m_base_ptid here. Update to avoid referencing inferior_ptid.
5763 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
5764
5765 2020-06-18 Pedro Alves <palves@redhat.com>
5766
5767 * nat/windows-nat.c (current_windows_thread): Remove.
5768 * nat/windows-nat.h (current_windows_thread): Remove.
5769 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
5770 Adjust.
5771 (display_selectors): Adjust to fetch the current
5772 windows_thread_info based on inferior_ptid.
5773 (fake_create_process): No longer write to current_windows_thread.
5774 (windows_nat_target::get_windows_debug_event):
5775 Don't set inferior_ptid or current_windows_thread.
5776 (windows_nat_target::wait): Adjust to not rely on
5777 current_windows_thread.
5778 (do_initial_windows_stuff): Now a method of windows_nat_target.
5779 Switch to the last_ptid thread.
5780 (windows_nat_target::attach): Adjust.
5781 (windows_nat_target::detach): Use switch_to_no_thread instead of
5782 writing to inferior_ptid directly.
5783 (windows_nat_target::create_inferior): Adjust.
5784
5785 2020-06-18 Pedro Alves <palves@redhat.com>
5786
5787 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
5788
5789 2020-06-18 Pedro Alves <palves@redhat.com>
5790
5791 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
5792 after creating it, instead of writing to inferior_ptid. Don't
5793 write to inferior_ptid.
5794
5795 2020-06-18 Pedro Alves <palves@redhat.com>
5796
5797 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
5798
5799 2020-06-18 Pedro Alves <palves@redhat.com>
5800
5801 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
5802 it, instead of writing to inferior_ptid.
5803
5804 2020-06-18 Pedro Alves <palves@redhat.com>
5805
5806 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
5807 to inferior_ptid.
5808
5809 2020-06-18 Pedro Alves <palves@redhat.com>
5810
5811 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
5812 instead of writing to inferior_ptid directly.
5813
5814 2020-06-18 Pedro Alves <palves@redhat.com>
5815
5816 * corelow.c (core_target::close): Use switch_to_no_thread instead
5817 of writing to inferior_ptid directly.
5818 (add_to_thread_list, core_target_open): Use switch_to_thread
5819 instead of writing to inferior_ptid directly.
5820
5821 2020-06-18 Pedro Alves <palves@redhat.com>
5822
5823 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
5824 inferior_ptid.
5825 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
5826 inferior_ptid.
5827 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
5828 inferior_ptid directly.
5829 (darwin_nat_target::init_thread_list): Switch to thread, instead
5830 of writing to inferior_ptid.
5831 (darwin_nat_target::attach): Don't write to inferior_ptid.
5832 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
5833
5834 2020-06-18 Pedro Alves <palves@redhat.com>
5835
5836 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
5837 thread.
5838 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
5839 Instead use switch_to_thread.
5840 (gnu_nat_target::detach): Use switch_to_no_thread
5841 instead of writing to inferior_ptid directly. Used passed-in
5842 inferior instead of looking up the inferior by pid.
5843
5844 2020-06-18 Pedro Alves <palves@redhat.com>
5845
5846 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
5847 inferior_ptid.
5848
5849 2020-06-18 Pedro Alves <palves@redhat.com>
5850
5851 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
5852 inferior_ptid.
5853 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
5854 thread.
5855 (nto_procfs_target::detach): Avoid referencing
5856 inferior_ptid. Use switch_to_no_thread instead of writing to
5857 inferior_ptid directly.
5858 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
5859 instead of writing to inferior_ptid directly.
5860 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
5861 to thread.
5862
5863 2020-06-18 Pedro Alves <palves@redhat.com>
5864
5865 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
5866 after creating it, instead of writing to inferior_ptid.
5867 (gdbsim_target_open): Use switch_to_no_thread instead of writing
5868 to inferior_ptid directly.
5869 (gdbsim_target::wait): Don't write to inferior_ptid.
5870
5871 2020-06-18 Pedro Alves <palves@redhat.com>
5872
5873 * remote.c (remote_target::remote_notice_new_inferior): Use
5874 switch_to_thread instead of writing to inferior_ptid directly.
5875 (remote_target::add_current_inferior_and_thread): Use
5876 switch_to_no_thread instead of writing to inferior_ptid directly.
5877 (extended_remote_target::attach): Use switch_to_inferior_no_thread
5878 and switch_to_thread instead of using set_current_inferior or
5879 writing to inferior_ptid directly.
5880
5881 2020-06-18 Pedro Alves <palves@redhat.com>
5882
5883 * tracectf.c (ctf_target_open): Switch to added thread instead of
5884 writing to inferior_ptid directly.
5885 (ctf_target::close): Use switch_to_no_thread instead of writing to
5886 inferior_ptid directly.
5887
5888 2020-06-18 Pedro Alves <palves@redhat.com>
5889
5890 * tracefile-tfile.c (tfile_target_open): Don't write to
5891 inferior_ptid directly, instead switch to added thread.
5892 (tfile_target::close): Use switch_to_no_thread instead of writing
5893 to inferior_ptid directly.
5894
5895 2020-06-18 Pedro Alves <palves@redhat.com>
5896
5897 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
5898 (procfs_target::detach): Use switch_to_no_thread
5899 instead of writing to inferior_ptid directly.
5900 (do_attach): Change return type to void. Switch to the added
5901 thread.
5902 (procfs_target::create_inferior): Switch to the added thread.
5903 (procfs_do_thread_registers): Don't write to inferior_ptid.
5904
5905 2020-06-18 Pedro Alves <palves@redhat.com>
5906
5907 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
5908 of writing to inferior_ptid.
5909 (scoped_restore_exited_inferior): Delete.
5910 (handle_vfork_child_exec_or_exit): Simplify using
5911 scoped_restore_current_pspace_and_thread. Use switch_to_thread
5912 instead of writing to inferior_ptid.
5913 (THREAD_STOPPED_BY): Delete.
5914 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5915 (thread_stopped_by_hw_breakpoint): Delete.
5916 (save_waitstatus): Use
5917 scoped_restore_current_thread+switch_to_thread, and call
5918 target_stopped_by_watchpoint instead of
5919 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
5920 instead of thread_stopped_by_sw_breakpoint, and
5921 target_stopped_by_hw_breakpoint instead of
5922 thread_stopped_by_hw_breakpoint.
5923 (handle_inferior_event)
5924 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
5925 inferior_ptid directly, nor
5926 set_current_inferior/set_current_program_space. Use
5927 switch_to_thread / switch_to_inferior_no_thread instead.
5928
5929 2020-06-18 Pedro Alves <palves@redhat.com>
5930
5931 * target.c (generic_mourn_inferior): Use switch_to_no_thread
5932 instead of writing to inferior_ptid.
5933
5934 2020-06-18 Pedro Alves <palves@redhat.com>
5935
5936 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
5937 added thread.
5938 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
5939 to the added thread.
5940 (inf_ptrace_target::detach_success): Use switch_to_no_thread
5941 instead of writing to inferior_ptid.
5942
5943 2020-06-18 Pedro Alves <palves@redhat.com>
5944
5945 * gdbarch-selftests.c: Include "progspace-and-thread.h".
5946 (register_to_value_test): Mock a program_space too. Heap-allocate
5947 the address space. Don't write to inferior_ptid. Use
5948 switch_to_thread instead.
5949
5950 2020-06-18 Pedro Alves <palves@redhat.com>
5951
5952 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
5953 Delete.
5954 (find_signalled_thread()): New, factored out from
5955 linux_make_corefile_notes and adjusted to handle exited threads.
5956 (linux_make_corefile_notes): Adjust to use the new
5957 find_signalled_thread.
5958
5959 2020-06-18 Pedro Alves <palves@redhat.com>
5960
5961 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
5962 of saving/restoring inferior_ptid.
5963
5964 2020-06-17 Tom Tromey <tom@tromey.com>
5965
5966 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
5967 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
5968 declare.
5969 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
5970
5971 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
5972
5973 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
5974 of partial symtabs.
5975
5976 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
5977
5978 * regformats/reg-arm.dat: Remove.
5979 * regformats/reg-bfin.dat: Remove.
5980 * regformats/reg-cris.dat: Remove.
5981 * regformats/reg-crisv32.dat: Remove.
5982 * regformats/reg-m32r.dat: Remove.
5983 * regformats/reg-tilegx.dat: Remove.
5984 * regformats/reg-tilegx32.dat: Remove.
5985
5986 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
5987
5988 * features/Makefile (WHICH): Remove arm files.
5989 * regformats/arm/arm-with-iwmmxt.dat: Remove.
5990 * regformats/arm/arm-with-neon.dat: Remove.
5991 * regformats/arm/arm-with-vfpv2.dat: Remove.
5992 * regformats/arm/arm-with-vfpv3.dat: Remove.
5993
5994 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
5995
5996 * features/Makefile (XMLTOC): Remove rx.xml.
5997
5998 2020-06-17 Pedro Alves <palves@redhat.com>
5999
6000 * gdbthread.h (thread_control_state) <trap_expected> Update
6001 comments.
6002
6003 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6004
6005 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
6006 ada_language::lookup_symbol_nonlocal.
6007 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
6008 (ada_language::lookup_symbol_nonlocal): New member function,
6009 implementation from ada_lookup_symbol_nonlocal.
6010 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
6011 initializer.
6012 (cplus_language_data): Delete la_lookup_symbol_nonlocal
6013 initializer.
6014 (cplus_language::lookup_symbol_nonlocal): New member function.
6015 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
6016 (minimal_language_data) Likewise.
6017 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
6018 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
6019 initializer.
6020 (d_language::lookup_symbol_nonlocal): New member function.
6021 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
6022 initializer.
6023 (f_language::lookup_symbol_nonlocal): New member function.
6024 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
6025 initializer.
6026 * language.c (unknown_language_data): Likewise.
6027 (auto_language_data): Likewise.
6028 * language.h (language_data): Delete la_lookup_symbol_nonlocal
6029 field.
6030 (language_defn::lookup_symbol_nonlocal): New member function.
6031 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
6032 initializer.
6033 * objc-lang.c (objc_language_data): Likewise.
6034 * opencl-lang.c (opencl_language_data): Likewise.
6035 * p-lang.c (pascal_language_data): Likewise.
6036 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
6037 rust_language::lookup_symbol_nonlocal.
6038 (rust_language_data): Delete la_lookup_symbol_nonlocal
6039 initializer.
6040 (rust_language::lookup_symbol_nonlocal): New member function,
6041 implementation from rust_lookup_symbol_nonlocal.
6042 * symtab.c (lookup_symbol_aux): Update call to
6043 lookup_symbol_nonlocal.
6044 (basic_lookup_symbol_nonlocal): Rename to...
6045 (language_defn::lookup_symbol_nonlocal): ...this, and update
6046 header comment. Remove language_defn parameter, and replace with
6047 uses of `this'.
6048 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
6049
6050 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6051
6052 * ada-lang.c (ada_language_data): Delete la_value_print_inner
6053 initializer.
6054 (ada_language::value_print_inner): New member function.
6055 * c-lang.c (c_language_data): Delete la_value_print_inner
6056 initializer.
6057 (cplus_language_data): Likewise.
6058 (asm_language_data): Likewise.
6059 (minimal_language_data): Likewise.
6060 * d-lang.c (d_language_data): Likewise.
6061 (d_language::value_print_inner): New member function.
6062 * f-lang.c (f_language_data): Delete la_value_print_inner
6063 initializer.
6064 (f_language::value_print_inner): New member function.
6065 * f-lang.h (f_value_print_innner): Rename to...
6066 (f_value_print_inner): ...this (note spelling of 'inner').
6067 * f-valprint.c (f_value_print_innner): Rename to...
6068 (f_value_print_inner): ...this (note spelling of 'inner').
6069 * go-lang.c (go_language_data): Delete la_value_print_inner
6070 initializer.
6071 (go_language::value_print_inner): New member function.
6072 * language.c (language_defn::value_print_inner): Define new member
6073 function.
6074 (unk_lang_value_print_inner): Delete.
6075 (unknown_language_data): Delete la_value_print_inner initializer.
6076 (unknown_language::value_print_inner): New member function.
6077 (auto_language_data): Delete la_value_print_inner initializer.
6078 (auto_language::value_print_inner): New member function.
6079 * language.h (language_data): Delete la_value_print_inner field.
6080 (language_defn::value_print_inner): Delcare new member function.
6081 * m2-lang.c (m2_language_data): Delete la_value_print_inner
6082 initializer.
6083 (m2_language::value_print_inner): New member function.
6084 * objc-lang.c (objc_language_data): Delete la_value_print_inner
6085 initializer.
6086 * opencl-lang.c (opencl_language_data): Likewise.
6087 * p-lang.c (pascal_language_data): Likewise.
6088 (pascal_language::value_print_inner): New member function.
6089 * rust-lang.c (rust_language_data): Delete la_value_print_inner
6090 initializer.
6091 (rust_language::value_print_inner): New member function.
6092 * valprint.c (do_val_print): Update call to value_print_inner.
6093
6094 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6095
6096 * ada-lang.c (ada_language_data): Delete la_value_print
6097 initializer.
6098 (ada_language::value_print): New member function.
6099 * c-lang.c (c_language_data): Delete la_value_print initializer.
6100 (cplus_language_data): Likewise.
6101 (asm_language_data): Likewise.
6102 (minimal_language_data): Likewise.
6103 * d-lang.c (d_language_data): Likewise.
6104 * f-lang.c (f_language_data): Likewise.
6105 * go-lang.c (go_language_data): Likewise.
6106 * language.c (unk_lang_value_print): Delete.
6107 (language_defn::value_print): Define new member function.
6108 (unknown_language_data): Delete la_value_print initializer.
6109 (unknown_language::value_print): New member function.
6110 (auto_language_data): Delete la_value_print initializer.
6111 (auto_language::value_print): New member function.
6112 * language.h (language_data): Delete la_value_print field.
6113 (language_defn::value_print): Declare new member function.
6114 (LA_VALUE_PRINT): Update call to value_print.
6115 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
6116 * objc-lang.c (objc_language_data): Likewise.
6117 * opencl-lang.c (opencl_language_data): Likewise.
6118 * p-lang.c (pascal_language_data): Likewise.
6119 (pascal_language::value_print): New member function.
6120 * rust-lang.c (rust_language_data): Delete la_value_print
6121 initializer.
6122
6123 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6124
6125 * ada-lang.c (ada_watch_location_expression): Rename to
6126 ada_language::watch_location_expression.
6127 (ada_language_data): Delete la_watch_location_expression
6128 initializer.
6129 (ada_language::watch_location_expression): New member function,
6130 implementation from ada_watch_location_expression.
6131 * breakpoint.c (watch_command_1): Update call to
6132 watch_location_expression.
6133 * c-lang.c (c_watch_location_expression): Rename to
6134 language_defn::watch_location_expression.
6135 (c_language_data): Delete la_watch_location_expression
6136 initializer.
6137 (cplus_language_data): Likewise.
6138 (asm_language_data): Likewise.
6139 (minimal_language_data): Likewise.
6140 * c-lang.h (c_watch_location_expression): Delete declaration.
6141 * d-lang.c (d_language_data): Delete la_watch_location_expression
6142 initializer.
6143 * f-lang.c (f_language_data): Likewise.
6144 * go-lang.c (go_language_data): Likewise.
6145 * language.c (language_defn::watch_location_expression): Member
6146 function implementation from c_watch_location_expression.
6147 (unknown_language_data): Delete la_watch_location_expression
6148 initializer.
6149 (auto_language_data): Likewise.
6150 * language.h (language_data): Delete la_watch_location_expression
6151 field.
6152 (language_defn::watch_location_expression): Declare new member
6153 function.
6154 * m2-lang.c (m2_language_data): Delete
6155 la_watch_location_expression initializer.
6156 * objc-lang.c (objc_language_data): Likewise.
6157 * opencl-lang.c (opencl_language_data): Likewise.
6158 * p-lang.c (pascal_language_data): Likewise.
6159 * rust-lang.c (rust_watch_location_expression): Rename to
6160 rust_language::watch_location_expression.
6161 (rust_language_data): Delete la_watch_location_expression
6162 initializer.
6163 (rust_language::watch_location_expression): New member function,
6164 implementation from rust_watch_location_expression.
6165
6166 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6167
6168 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
6169 ada_language::collect_symbol_completion_matches.
6170 (ada_language_data): Delete la_collect_symbol_completion_matches
6171 initializer.
6172 (ada_language::collect_symbol_completion_matches): New member
6173 function, implementation from
6174 ada_collect_symbol_completion_matches.
6175 * c-lang.c (c_language_data): Delete
6176 la_collect_symbol_completion_matches initializer.
6177 (cplus_language_data): Likewise.
6178 (asm_language_data): Likewise.
6179 (minimal_language_data): Likewise.
6180 * d-lang.c (d_language_data): Likewise.
6181 * f-lang.c (f_collect_symbol_completion_matches): Rename to
6182 f_language::collect_symbol_completion_matches.
6183 (f_language_data): Delete la_collect_symbol_completion_matches
6184 initializer.
6185 (f_language::collect_symbol_completion_matches) New member
6186 function, implementation from f_collect_symbol_completion_matches.
6187 * go-lang.c (go_language_data): Delete
6188 la_collect_symbol_completion_matches initializer.
6189 * language.c (unknown_language_data): Likewise.
6190 (auto_language_data): Likewise.
6191 * language.h (language_data): Delete
6192 la_collect_symbol_completion_matches field.
6193 (language_defn::collect_symbol_completion_matches): New member
6194 function.
6195 * m2-lang.c (m2_language_data): Delete
6196 la_collect_symbol_completion_matches initializer.
6197 * objc-lang.c (objc_language_data): Likewise.
6198 * opencl-lang.c (opencl_language_data): Likewise.
6199 * p-lang.c (pascal_language_data): Likewise.
6200 * rust-lang.c (rust_language_data): Likewise.
6201 * symtab.c (default_collect_symbol_completion_matches): Delete.
6202 (collect_symbol_completion_matches): Update call to
6203 collect_symbol_completion_matches.
6204 (collect_symbol_completion_matches_type): Likewise.
6205 * symtab.h (default_collect_symbol_completion_matches): Delete
6206 declaration.
6207
6208 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6209
6210 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
6211 (ada_language_data): Delete la_word_break_characters initializer.
6212 (ada_language::word_break_characters): New member function.
6213 * c-lang.c (c_language_data): Delete la_word_break_characters
6214 initializer.
6215 (cplus_language_data): Likewise.
6216 (asm_language_data): Likewise.
6217 (minimal_language_data): Likewise.
6218 * completer.c: Update global comment.
6219 (advance_to_expression_complete_word_point): Update call to
6220 word_break_characters.
6221 (complete_files_symbols): Likewise.
6222 (complete_line_internal_1): Likewise.
6223 (default_completer_handle_brkchars): Likewise.
6224 (skip_quoted_chars): Likewise.
6225 * d-lang.c (d_language_data): Delete la_word_break_characters
6226 initializer.
6227 * f-lang.c (f_word_break_characters): Delete.
6228 (f_language_data): Delete la_word_break_characters initializer.
6229 (f_language::word_break_characters): New member function.
6230 * go-lang.c (go_language_data): Delete la_word_break_characters
6231 initializer.
6232 * language.c (unknown_language_data): Likewise.
6233 (auto_language_data): Likewise.
6234 * language.h (default_word_break_characters): Move declaration to
6235 earlier in the file.
6236 (language_data): Delete la_word_break_characters field.
6237 (language_defn::word_break_characters): New member function.
6238 * m2-lang.c (m2_language_data): Delete la_word_break_characters
6239 initializer.
6240 * objc-lang.c (objc_language_data): Likewise.
6241 * opencl-lang.c (opencl_language_data): Likewise.
6242 * p-lang.c (pascal_language_data): Likewise.
6243 * rust-lang.c (rust_language_data): Likewise.
6244
6245 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6246
6247 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
6248 (ada_language_data): Delete la_get_symbol_name_matcher
6249 initializer.
6250 (language_defn::get_symbol_name_matcher_inner): New member
6251 function.
6252 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
6253 initializer.
6254 (cplus_language_data): Likewise.
6255 (cplus_language::get_symbol_name_matcher_inner): New member
6256 function.
6257 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
6258 (minimal_language_data): Likewise.
6259 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
6260 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
6261 initializer.
6262 * dictionary.c (iter_match_first_hashed): Update call to
6263 get_symbol_name_matcher.
6264 (iter_match_next_hashed): Likewise.
6265 (iter_match_next_linear): Likewise.
6266 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
6267 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
6268 initializer.
6269 (f_language::get_symbol_name_matcher_inner): New member function.
6270 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
6271 initializer.
6272 * language.c (default_symbol_name_matcher): Update header comment,
6273 make static.
6274 (language_defn::get_symbol_name_matcher): New definition.
6275 (language_defn::get_symbol_name_matcher_inner): Likewise.
6276 (get_symbol_name_matcher): Delete.
6277 (unknown_language_data): Delete la_get_symbol_name_matcher
6278 initializer.
6279 (auto_language_data): Likewise.
6280 * language.h (language_data): Delete la_get_symbol_name_matcher
6281 field.
6282 (language_defn::get_symbol_name_matcher): New member function.
6283 (language_defn::get_symbol_name_matcher_inner): Likewise.
6284 (default_symbol_name_matcher): Delete declaration.
6285 * linespec.c (find_methods): Update call to
6286 get_symbol_name_matcher.
6287 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
6288 initializer.
6289 * minsyms.c (lookup_minimal_symbol): Update call to
6290 get_symbol_name_matcher.
6291 (iterate_over_minimal_symbols): Likewise.
6292 * objc-lang.c (objc_language_data): Delete
6293 la_get_symbol_name_matcher initializer.
6294 * opencl-lang.c (opencl_language_data): Likewise.
6295 * p-lang.c (pascal_language_data): Likewise.
6296 * psymtab.c (psymbol_name_matches): Update call to
6297 get_symbol_name_matcher.
6298 * rust-lang.c (rust_language_data): Delete
6299 la_get_symbol_name_matcher initializer.
6300 * symtab.c (symbol_matches_search_name): Update call to
6301 get_symbol_name_matcher.
6302 (compare_symbol_name): Likewise.
6303
6304 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6305
6306 * ada-lang.c (ada_language_data): Delete la_compute_program
6307 initializer.
6308 * c-lang.c (c_language_data): Likewise.
6309 (c_language::compute_program): New member function.
6310 (cplus_language_data): Delete la_compute_program initializer.
6311 (cplus_language::compute_program): New member function.
6312 (asm_language_data): Delete la_compute_program initializer.
6313 (minimal_language_data): Likewise.
6314 * c-lang.h (c_compute_program): Update comment.
6315 (cplus_compute_program): Likewise.
6316 * compile/compile-c-support.c (c_compute_program): Likewise.
6317 (cplus_compute_program): Likewise.
6318 * compile/compile.c (compile_to_object): Update call to
6319 la_compute_program.
6320 * d-lang.c (d_language_data): Delete la_compute_program
6321 initializer.
6322 * f-lang.c (f_language_data): Likewise.
6323 * go-lang.c (go_language_data): Likewise.
6324 * language.c (unknown_language_data): Likewise.
6325 (auto_language_data): Likewise.
6326 * language.h (language_data): Delete la_compute_program field.
6327 (language_defn::compute_program): New member function.
6328 * m2-lang.c (m2_language_data): Delete la_compute_program
6329 initializer.
6330 * objc-lang.c (objc_language_data): Likewise.
6331 * opencl-lang.c (opencl_language_data): Likewise.
6332 * p-lang.c (pascal_language_data): Likewise.
6333 * rust-lang.c (rust_language_data): Likewise.
6334
6335 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6336
6337 * ada-lang.c (ada_language_data) Delete
6338 la_class_name_from_physname initializer.
6339 * c-lang.c (c_language_data): Likewise.
6340 (cplus_language_data): Likewise.
6341 (cplus_language::class_name_from_physname): New member function.
6342 (asm_language_data): Delete la_class_name_from_physname
6343 initializer.
6344 (minimal_language_data): Likewise.
6345 * d-lang.c (d_language_data): Likewise.
6346 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
6347 method on language_defn class.
6348 (guess_full_die_structure_name): Likewise.
6349 * f-lang.c (f_language_data): Delete la_class_name_from_physname
6350 initializer.
6351 * go-lang.c (go_language_data): Likewise.
6352 * language.c (language_class_name_from_physname): Delete.
6353 (unk_lang_class_name): Delete.
6354 (unknown_language_data): Delete la_class_name_from_physname
6355 initializer.
6356 (auto_language_data): Likewise.
6357 * language.h (language_data): Delete la_class_name_from_physname
6358 field.
6359 (language_defn::class_name_from_physname): New function.
6360 (language_class_name_from_physname): Delete declaration.
6361 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
6362 initializer.
6363 * objc-lang.c (objc_language_data): Likewise.
6364 * opencl-lang.c (opencl_language_data): Likewise.
6365 * p-lang.c (pascal_language_data): Likewise.
6366 * rust-lang.c (rust_language_data): Likewise.
6367
6368 2020-06-16 Tom Tromey <tom@tromey.com>
6369
6370 * tui/tui-data.h (STATUS_NAME): New macro.
6371 * tui/tui-layout.c (tui_remove_some_windows)
6372 (initialize_known_windows, tui_register_window)
6373 (tui_layout_split::remove_windows, initialize_layouts)
6374 (tui_new_layout_command): Don't use hard-coded window names.
6375
6376 2020-06-16 Tom Tromey <tom@tromey.com>
6377
6378 PR tui/25348:
6379 * tui/tui.c (tui_ensure_readline_initialized): Rename from
6380 tui_initialize_readline. Only run once. Call rl_initialize.
6381 * tui/tui.h (tui_ensure_readline_initialized): Rename from
6382 tui_initialize_readline.
6383 * tui/tui-io.c (tui_setup_io): Call
6384 tui_ensure_readline_initialized.
6385 * tui/tui-interp.c (tui_interp::init): Update.
6386
6387 2020-06-16 Tom Tromey <tom@tromey.com>
6388
6389 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
6390 Also preserve the status window.
6391
6392 2020-06-16 Tom Tromey <tom@tromey.com>
6393
6394 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
6395 where m_window==nullptr.
6396
6397 2020-06-15 Tom Tromey <tromey@adacore.com>
6398
6399 * windows-nat.c (windows_nat::handle_output_debug_string):
6400 Update.
6401 (windows_nat::handle_ms_vc_exception): Update.
6402 * target.h (target_read_string): Change API.
6403 * target.c (target_read_string): Change API.
6404 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6405 Update.
6406 * solib-frv.c (frv_current_sos): Update.
6407 * solib-dsbt.c (dsbt_current_sos): Update.
6408 * solib-darwin.c (darwin_current_sos): Update.
6409 * linux-thread-db.c (inferior_has_bug): Update.
6410 * expprint.c (print_subexp_standard): Update.
6411 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
6412 (ada_exception_message_1): Update.
6413
6414 2020-06-15 Tom Tromey <tromey@adacore.com>
6415
6416 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
6417
6418 2020-06-15 Tom Tromey <tromey@adacore.com>
6419
6420 * valprint.c (read_string): Update comment.
6421 * target.c (MIN): Remove.
6422 (target_read_string): Rewrite.
6423
6424 2020-06-15 Tom Tromey <tromey@adacore.com>
6425
6426 * corefile.c (read_memory_string): Remove.
6427 * ada-valprint.c (ada_value_print_ptr): Update.
6428 * ada-lang.h (ada_tag_name): Change return type.
6429 * ada-lang.c (type_from_tag): Update.
6430 (ada_tag_name_from_tsd): Change return type. Use
6431 target_read_string.
6432 (ada_tag_name): Likewise.
6433 * gdbcore.h (read_memory_string): Don't declare.
6434
6435 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
6436
6437 * symtab.c (rbreak_command): Ignore Windows drive colon.
6438
6439 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
6440
6441 * NEWS: Mention removed GDBserver host support.
6442
6443 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
6444
6445 * features/riscv/rebuild-csr-xml.sh: Updated.
6446
6447 2020-06-11 Tom Tromey <tom@tromey.com>
6448
6449 PR gdb/18318:
6450 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
6451
6452 2020-06-09 Jonny Grant <jg@jguk.org>
6453 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
6454
6455 * main.c (captured_main_1): Don't print new line after help.
6456 (print_gdb_help): add mailing list and IRC channel information
6457 to --help. Add new lines between items in the footer. Remove
6458 quotes around bug url.
6459
6460 2020-06-11 Keith Seitz <keiths@redhat.com>
6461
6462 PR gdb/21356
6463 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
6464 Resolve typedefs for type length calculations.
6465
6466 2020-06-10 Tom de Vries <tdevries@suse.de>
6467
6468 PR ada/24713
6469 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
6470 (write_psymbols): Enable .gdb_index for ada.
6471 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6472 ada.
6473
6474 2020-06-10 Tom de Vries <tdevries@suse.de>
6475
6476 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6477 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6478 namei" instead of "const char *name" argument.
6479 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6480 dw2_symtab_iter_init.
6481
6482 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6483
6484 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6485 to use type::field and field::type instead.
6486
6487 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6488
6489 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6490 to use field::type instead.
6491
6492 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6493
6494 * gdbtypes.h (struct field) <type, set_type>: New methods.
6495 Rename `type` field to...
6496 <m_type>: ... this. Change references throughout to use type or
6497 set_type methods.
6498 (FIELD_TYPE): Use field::type. Change call sites that modify
6499 the field's type to use field::set_type instead.
6500
6501 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6502
6503 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
6504 to use type::index_type instead.
6505
6506 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6507
6508 * gdbtypes.h (struct type) <index_type, set_index_type>: New
6509 methods.
6510 (TYPE_INDEX_TYPE): Use type::index_type.
6511 * gdbtypes.c (create_array_type_with_stride): Likewise.
6512
6513 2020-06-07 Tom Tromey <tom@tromey.com>
6514
6515 * valprint.c (generic_val_print_float): Remove "embedded_offset"
6516 parameter.
6517 (generic_value_print): Update.
6518
6519 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6520
6521 Revert commit 982a38f60b0.
6522 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
6523
6524 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6525
6526 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
6527 avoid use after free.
6528
6529 2020-06-05 Tom de Vries <tdevries@suse.de>
6530
6531 * NEWS: Fix typos.
6532
6533 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
6534
6535 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
6536 the per_bfd object.
6537 (dwarf2_read_debug_names): Likewise.
6538 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
6539 object when re-using a per_bfd object with an index.
6540
6541 2020-06-03 Tom de Vries <tdevries@suse.de>
6542
6543 PR symtab/26046
6544 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
6545 children for C++.
6546 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
6547 DW_TAG_subprogram.
6548
6549 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6550
6551 * ada-lang.c (ada_language_data): Delete skip_trampoline
6552 initializer.
6553 * c-lang.c (c_language_data): Likewise.
6554 (cplus_language_data): Likewise.
6555 (cplus_language::skip_trampoline): New member function.
6556 (asm_language_data): Delete skip_trampoline initializer.
6557 (minimal_language_data): Likewise.
6558 * d-lang.c (d_language_data): Likewise.
6559 * f-lang.c (f_language_data): Likewise.
6560 * go-lang.c (go_language_data): Likewise.
6561 * language.c (unk_lang_trampoline): Delete function.
6562 (skip_language_trampoline): Update.
6563 (unknown_language_data): Delete skip_trampoline initializer.
6564 (auto_language_data): Likewise.
6565 * language.h (language_data): Delete skip_trampoline field.
6566 (language_defn::skip_trampoline): New function.
6567 * m2-lang.c (m2_language_data): Delete skip_trampoline
6568 initializer.
6569 * objc-lang.c (objc_skip_trampoline): Delete function, move
6570 implementation to objc_language::skip_trampoline.
6571 (objc_language_data): Delete skip_trampoline initializer.
6572 (objc_language::skip_trampoline): New member function with
6573 implementation from objc_skip_trampoline.
6574 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
6575 initializer.
6576 * p-lang.c (pascal_language_data): Likewise.
6577 * rust-lang.c (rust_language_data): Likewise.
6578
6579 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6580
6581 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
6582 (ada_language::demangle): New member function.
6583 * c-lang.c (c_language_data): Delete la_demangle initializer.
6584 (cplus_language_data): Delete la_demangle initializer.
6585 (cplus_language::demangle): New member function.
6586 (asm_language_data): Delete la_demangle initializer.
6587 (minimal_language_data): Delete la_demangle initializer.
6588 * d-lang.c (d_language_data): Delete la_demangle initializer.
6589 (d_language::demangle): New member function.
6590 * f-lang.c (f_language_data): Delete la_demangle initializer.
6591 (f_language::demangle): New member function.
6592 * go-lang.c (go_language_data): Delete la_demangle initializer.
6593 (go_language::demangle): New member function.
6594 * language.c (language_demangle): Update.
6595 (unk_lang_demangle): Delete.
6596 (unknown_language_data): Delete la_demangle initializer.
6597 (unknown_language::demangle): New member function.
6598 (auto_language_data): Delete la_demangle initializer.
6599 (auto_language::demangle): New member function.
6600 * language.h (language_data): Delete la_demangle field.
6601 (language_defn::demangle): New function.
6602 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
6603 * objc-lang.c (objc_language_data): Delete la_demangle
6604 initializer.
6605 (objc_language::demangle): New member function.
6606 * opencl-lang.c (opencl_language_data): Delete la_demangle
6607 initializer.
6608 * p-lang.c (pascal_language_data): Likewise.
6609 * rust-lang.c (rust_language_data): Likewise.
6610 (rust_language::demangle): New member function.
6611
6612 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6613
6614 * ada-lang.c (ada_language_data): Delete la_print_type
6615 initializer.
6616 (ada_language::print_type): New member function.
6617 * c-lang.c (c_language_data): Delete la_print_type initializer.
6618 (c_language::print_type): New member function.
6619 (cplus_language_data): Delete la_print_type initializer.
6620 (cplus_language::print_type): New member function.
6621 (asm_language_data): Delete la_print_type initializer.
6622 (asm_language::print_type): New member function.
6623 (minimal_language_data): Delete la_print_type initializer.
6624 (minimal_language::print_type): New member function.
6625 * d-lang.c (d_language_data): Delete la_print_type initializer.
6626 (d_language::print_type): New member function.
6627 * f-lang.c (f_language_data): Delete la_print_type initializer.
6628 (f_language::print_type): New member function.
6629 * go-lang.c (go_language_data): Delete la_print_type initializer.
6630 (go_language::print_type): New member function.
6631 * language.c (unk_lang_print_type): Delete.
6632 (unknown_language_data): Delete la_print_type initializer.
6633 (unknown_language::print_type): New member function.
6634 (auto_language_data): Delete la_print_type initializer.
6635 (auto_language::print_type): New member function.
6636 * language.h (language_data): Delete la_print_type field.
6637 (language_defn::print_type): New function.
6638 (LA_PRINT_TYPE): Update.
6639 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
6640 (m2_language::print_type): New member function.
6641 * objc-lang.c (objc_language_data): Delete la_print_type
6642 initializer.
6643 (objc_language::print_type): New member function.
6644 * opencl-lang.c (opencl_print_type): Delete, implementation moved
6645 to opencl_language::print_type.
6646 (opencl_language_data): Delete la_print_type initializer.
6647 (opencl_language::print_type): New member function, implementation
6648 from opencl_print_type.
6649 * p-lang.c (pascal_language_data): Delete la_print_type
6650 initializer.
6651 (pascal_language::print_type): New member function.
6652 * rust-lang.c (rust_print_type): Delete, implementation moved to
6653 rust_language::print_type.
6654 (rust_language_data): Delete la_print_type initializer.
6655 (rust_language::print_type): New member function, implementation
6656 from rust_print_type.
6657
6658 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6659
6660 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
6661 implementation moves to...
6662 (ada_language::sniff_from_mangled_name): ...here. Update return
6663 type.
6664 (ada_language_data): Delete la_sniff_from_mangled_name
6665 initializer.
6666 * c-lang.c (c_language_data): Likewise.
6667 (cplus_language_data): Likewise.
6668 (cplus_language::sniff_from_mangled_name): New member function,
6669 implementation taken from gdb_sniff_from_mangled_name.
6670 (asm_language_data): Delete la_sniff_from_mangled_name
6671 initializer.
6672 (minimal_language_data): Likewise.
6673 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
6674 implementation moves to cplus_language::sniff_from_mangled_name.
6675 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
6676 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
6677 moves to...
6678 (d_language::sniff_from_mangled_name): ...here.
6679 (d_language_data): Delete la_sniff_from_mangled_name initializer.
6680 * f-lang.c (f_language_data): Likewise.
6681 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
6682 moves to...
6683 (go_language::sniff_from_mangled_name): ...here.
6684 (go_language_data): Delete la_sniff_from_mangled_name initializer.
6685 * language.c (language_sniff_from_mangled_name): Delete.
6686 (unknown_language_data): Delete la_sniff_from_mangled_name
6687 initializer.
6688 (auto_language_data): Likewise.
6689 * language.h (language_data): Delete la_sniff_from_mangled_name
6690 field.
6691 (language_defn::sniff_from_mangled_name): New function.
6692 (language_sniff_from_mangled_name): Delete declaration.
6693 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
6694 field.
6695 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
6696 implementation moves to...
6697 (objc_language::sniff_from_mangled_name): ...here.
6698 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
6699 * opencl-lang.c (opencl_language_data): Likewise.
6700 * p-lang.c (pascal_language_data): Likewise.
6701 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
6702 implementation moves to...
6703 (rust_language::sniff_from_mangled_name): ...here.
6704 (rust_language_data): Delete la_sniff_from_mangled_name
6705 initializer.
6706 * symtab.c (symbol_find_demangled_name): Call
6707 sniff_from_mangled_name member function.
6708
6709 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6710
6711 * ada-lang.c (ada_language_data): Delete la_search_name_hash
6712 initializer.
6713 * c-lang.c (c_language_data): Likewise.
6714 (cplus_language_data): Likewise.
6715 (cplus_language::search_name_hash): New member function.
6716 (asm_language_data): Delete la_search_name_hash initializer.
6717 (minimal_language_data): Likewise.
6718 * d-lang.c (d_language_data): Likewise.
6719 * dictionary.c (default_search_name_hash): Rename to...
6720 (language_defn::search_name_hash): ...this.
6721 * f-lang.c (f_language_data): Likewise.
6722 (f_language::search_name_hash): New member function.
6723 * go-lang.c (go_language_data): Delete la_search_name_hash
6724 initializer.
6725 * language.c (unknown_language_data): Likewise.
6726 (auto_language_data): Likewise.
6727 * language.h (struct language_data): Delete la_search_name_hash
6728 field.
6729 (language_defn::search_name_hash): Declare new member function.
6730 (default_search_name_hash): Delete declaration.
6731 * m2-lang.c (m2_language_data): Delete la_search_name_hash
6732 initializer.
6733 * objc-lang.c (objc_language_data): Likewise.
6734 * opencl-lang.c (opencl_language_data): Likewise.
6735 * p-lang.c (pascal_language_data): Likewise.
6736 * rust-lang.c (rust_language_data): Likewise.
6737 * symtab.c (search_name_hash): Update call.
6738
6739 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6740
6741 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
6742 initializer.
6743 * c-lang.c (class compile_instance): Declare.
6744 (c_language_data): Delete la_get_compile_instance initializer.
6745 (c_language::get_compile_instance): New member function.
6746 (cplus_language_data): Delete la_get_compile_instance initializer.
6747 (cplus_language::get_compile_instance): New member function.
6748 (asm_language_data): Delete la_get_compile_instance initializer.
6749 (minimal_language_data): Likewise.
6750 * c-lang.h (c_get_compile_context): Update comment.
6751 (cplus_get_compile_context): Update comment.
6752 * compile/compile.c (compile_to_object): Update calls, don't rely
6753 on function pointer being NULL.
6754 * d-lang.c (d_language_data): Delete la_get_compile_instance
6755 initializer.
6756 * f-lang.c (f_language_data): Likewise.
6757 * go-lang.c (go_language_data): Likewise.
6758 * language.c (unknown_language_data): Likewise.
6759 (auto_language_data): Likewise.
6760 * language.h (language_data): Delete la_get_compile_instance field.
6761 (language_defn::get_compile_instance): New member function.
6762 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
6763 initializer.
6764 * objc-lang.c (objc_language_data): Likewise.
6765 * opencl-lang.c (opencl_language_data): Likewise.
6766 * p-lang.c (pascal_language_data): Likewise.
6767 * rust-lang.c (rust_language_data): Likewise.
6768
6769 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6770
6771 * ada-lang.c (ada_add_all_symbols): Update comment.
6772 (ada_iterate_over_symbols): Delete, move implementation to...
6773 (ada_language::iterate_over_symbols): ...here, a new member
6774 function, rewrite to use range based for loop.
6775 (ada_language_data): Delete la_iterate_over_symbols initializer.
6776 * c-lang.c (c_language_data): Likewise.
6777 (cplus_language_data): Likewise.
6778 (asm_language_data): Likewise.
6779 (minimal_language_data): Likewise.
6780 * d-lang.c (d_language_data): Likewise.
6781 * f-lang.c (f_language_data): Likewise.
6782 * go-lang.c (go_language_data): Likewise.
6783 * language.c (unknown_language_data): Likewise.
6784 (auto_language_data): Likewise.
6785 * language.h (language_data): Delete la_iterate_over_symbols field.
6786 (language_defn::iterate_over_symbols): New member function.
6787 (LA_ITERATE_OVER_SYMBOLS): Update.
6788 * linespec.c (iterate_over_all_matching_symtabs): Update.
6789 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
6790 initializer.
6791 * objc-lang.c (objc_language_data): Likewise.
6792 * opencl-lang.c (opencl_language_data): Likewise.
6793 * p-lang.c (pascal_language_data): Likewise.
6794 * rust-lang.c (rust_language_data): Likewise.
6795
6796 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6797
6798 * ada-lang.c (ada_language_data): Delete
6799 la_lookup_transparent_type initializer.
6800 * c-lang.c (c_language_data): Likewise.
6801 (cplus_language_data): Likewise.
6802 (cplus_language::lookup_transparent_type): New member function.
6803 (asm_language_data): Delete la_lookup_transparent_type
6804 initializer.
6805 (minimal_language_data): Likewise.
6806 * d-lang.c (d_language_data): Likewise.
6807 * f-lang.c (f_language_data): Likewise.
6808 * go-lang.c (go_language_data): Likewise.
6809 * language.c (unknown_language_data): Likewise.
6810 (auto_language_data): Likewise.
6811 * language.h (struct language_data): Delete
6812 la_lookup_transparent_type field.
6813 (language_defn::lookup_transparent_type): New member function.
6814 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
6815 initializer.
6816 * objc-lang.c (objc_language_data): Likewise.
6817 * opencl-lang.c (opencl_language_data): Likewise.
6818 * p-lang.c (pascal_language_data): Likewise.
6819 * rust-lang.c (rust_language_data): Likewise.
6820 * symtab.c (symbol_matches_domain): Update call.
6821
6822 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6823
6824 * ada-lang.c (ada_language_arch_info): Delete function, move
6825 implementation to...
6826 (ada_language::language_arch_info): ...here, a new member
6827 function.
6828 (ada_language_data): Delete la_language_arch_info.
6829 * c-lang.c (c_language_data): Likewise.
6830 (c_language::language_arch_info): New member function.
6831 (cplus_language_arch_info): Delete function, move
6832 implementation to...
6833 (cplus_language::language_arch_info): ...here, a new member
6834 function.
6835 (cplus_language_data): Delete la_language_arch_info.
6836 (asm_language_data): Likewise.
6837 (asm_language::language_arch_info): New member function.
6838 (minimal_language_data): Delete la_language_arch_info.
6839 (minimal_language::language_arch_info): New member function.
6840 * d-lang.c (d_language_arch_info): Delete function, move
6841 implementation to...
6842 (d_language::language_arch_info): ...here, a new member
6843 function.
6844 (d_language_data): Delete la_language_arch_info.
6845 * f-lang.c (f_language_arch_info): Delete function, move
6846 implementation to...
6847 (f_language::language_arch_info): ...here, a new member
6848 function.
6849 (f_language_data): Delete la_language_arch_info.
6850 * go-lang.c (go_language_arch_info): Delete function, move
6851 implementation to...
6852 (go_language::language_arch_info): ...here, a new member
6853 function.
6854 (go_language_data): Delete la_language_arch_info.
6855 * language.c (unknown_language_data): Likewise.
6856 (unknown_language::language_arch_info): New member function.
6857 (auto_language_data): Delete la_language_arch_info.
6858 (auto_language::language_arch_info): New member function.
6859 (language_gdbarch_post_init): Update call to
6860 la_language_arch_info.
6861 * language.h (language_data): Delete la_language_arch_info
6862 function pointer.
6863 (language_defn::language_arch_info): New function.
6864 * m2-lang.c (m2_language_arch_info): Delete function, move
6865 implementation to...
6866 (m2_language::language_arch_info): ...here, a new member
6867 function.
6868 (m2_language_data): Delete la_language_arch_info.
6869 * objc-lang.c (objc_language_arch_info): Delete function, move
6870 implementation to...
6871 (objc_language::language_arch_info): ...here, a new member
6872 function.
6873 (objc_language_data): Delete la_language_arch_info.
6874 * opencl-lang.c (opencl_language_arch_info): Delete function, move
6875 implementation to...
6876 (opencl_language::language_arch_info): ...here, a new member
6877 function.
6878 (opencl_language_data): Delete la_language_arch_info.
6879 * p-lang.c (pascal_language_arch_info): Delete function, move
6880 implementation to...
6881 (pascal_language::language_arch_info): ...here, a new member
6882 function.
6883 (pascal_language_data): Delete la_language_arch_info.
6884 * rust-lang.c (rust_language_arch_info): Delete function, move
6885 implementation to...
6886 (rust_language::language_arch_info): ...here, a new member
6887 function.
6888 (rust_language_data): Delete la_language_arch_info.
6889
6890 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6891
6892 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
6893 initializer.
6894 * c-lang.c (c_language_data): Likewise.
6895 (cplus_language_data): Likewise.
6896 (cplus_language::pass_by_reference_info): New method.
6897 (asm_language_data): Delete la_pass_by_reference initializer.
6898 (minimal_language_data): Likewise.
6899 * cp-abi.c (cp_pass_by_reference): Remove use of
6900 default_pass_by_reference.
6901 * d-lang.c (d_language_data): Likewise.
6902 * f-lang.c (f_language_data): Likewise.
6903 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
6904 default_pass_by_reference.
6905 * go-lang.c (go_language_data): Likewise.
6906 * language.c (language_pass_by_reference): Update.
6907 (default_pass_by_reference): Delete.
6908 (unknown_language_data): Delete la_pass_by_reference
6909 initializer.
6910 (auto_language_data): Likewise.
6911 * language.h (struct language_data): Delete la_pass_by_reference
6912 field.
6913 (language_defn::pass_by_reference_info): New member function.
6914 (default_pass_by_reference): Delete declaration.
6915 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
6916 initializer.
6917 * objc-lang.c (objc_language_data): Likewise.
6918 * opencl-lang.c (opencl_language_data): Likewise.
6919 * p-lang.c (pascal_language_data): Likewise.
6920 * rust-lang.c (rust_language_data): Likewise.
6921
6922 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6923
6924 * ada-lang.c (ada_read_var_value): Delete function, move
6925 implementation to...
6926 (ada_language::read_var_value): ...here.
6927 (ada_language_data): Delete la_read_var_value initializer.
6928 * c-lang.c (c_language_data): Likewise.
6929 (cplus_language_data): Likewise.
6930 (minimal_language_data): Likewise.
6931 * d-lang.c (d_language_data): Likewise.
6932 * f-lang.c (f_language_data): Likewise.
6933 * findvar.c (default_read_var_value): Rename to...
6934 (language_defn::read_var_value): ...this.
6935 * findvar.c (read_var_value): Update header comment, and change to
6936 call member function instead of function pointer.
6937 * go-lang.c (go_language_data): Likewise.
6938 * language.c (unknown_language_data): Delete la_read_var_value
6939 initializer.
6940 (auto_language_data): Likewise.
6941 * language.h (struct language_data): Delete la_read_var_value
6942 field.
6943 (language_defn::read_var_value): New member function.
6944 (default_read_var_value): Delete declaration.
6945 * m2-lang.c (m2_language_data): Delete la_read_var_value
6946 initializer.
6947 * objc-lang.c (objc_language_data): Likewise.
6948 * opencl-lang.c (opencl_language_data): Likewise.
6949 * p-lang.c (pascal_language_data): Likewise.
6950 * rust-lang.c (rust_language_data): Likewise.
6951 * value.h (default_read_var_value): Delete declaration.
6952
6953 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6954
6955 * ada-lang.c (ada_print_array_index): Delete function, move
6956 implementation to...
6957 (ada_language::print_array_index): ...here.
6958 (ada_language_data): Delete la_print_array_index initializer.
6959 * c-lang.c (c_language_data): Likewise.
6960 (cplus_language_data): Likewise.
6961 (minimal_language_data): Likewise.
6962 * d-lang.c (d_language_data): Likewise.
6963 * f-lang.c (f_language_data): Likewise.
6964 * go-lang.c (go_language_data): Likewise.
6965 * language.c (default_print_array_index): Delete function, move
6966 implementation to...
6967 (language_defn::print_array_index): ...here.
6968 (unknown_language_data): Delete la_print_array_index initializer.
6969 (auto_language_data): Likewise.
6970 * language.h (struct language_data): Delete la_print_array_index
6971 field.
6972 (language_defn::print_array_index): New member function.
6973 (LA_PRINT_ARRAY_INDEX): Update.
6974 (default_print_array_index): Delete declaration.
6975 * m2-lang.c (m2_language_data): Delete la_print_array_index
6976 initializer.
6977 * objc-lang.c (objc_language_data): Likewise.
6978 * opencl-lang.c (opencl_language_data): Likewise.
6979 * p-lang.c (pascal_language_data): Likewise.
6980 * rust-lang.c (rust_language_data): Likewise.
6981
6982 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6983
6984 * gdb/ada-lang.c (ada_language_defn): Convert to...
6985 (ada_language_data): ...this.
6986 (class ada_language): New class.
6987 (ada_language_defn): New static global.
6988 * gdb/c-lang.c (c_language_defn): Convert to...
6989 (c_language_data): ...this.
6990 (class c_language): New class.
6991 (c_language_defn): New static global.
6992 (cplus_language_defn): Convert to...
6993 (cplus_language_data): ...this.
6994 (class cplus_language): New class.
6995 (cplus_language_defn): New static global.
6996 (asm_language_defn): Convert to...
6997 (asm_language_data): ...this.
6998 (class asm_language): New class.
6999 (asm_language_defn): New static global.
7000 (minimal_language_defn): Convert to...
7001 (minimal_language_data): ...this.
7002 (class minimal_language): New class.
7003 (minimal_language_defn): New static global.
7004 * gdb/d-lang.c (d_language_defn): Convert to...
7005 (d_language_data): ...this.
7006 (class d_language): New class.
7007 (d_language_defn): New static global.
7008 * gdb/f-lang.c (f_language_defn): Convert to...
7009 (f_language_data): ...this.
7010 (class f_language): New class.
7011 (f_language_defn): New static global.
7012 * gdb/go-lang.c (go_language_defn): Convert to...
7013 (go_language_data): ...this.
7014 (class go_language): New class.
7015 (go_language_defn): New static global.
7016 * gdb/language.c (unknown_language_defn): Remove declaration.
7017 (current_language): Initialize to nullptr, real initialization is
7018 moved to _initialize_language.
7019 (languages): Delete global.
7020 (language_defn::languages): Define.
7021 (set_language_command): Use language_defn::languages.
7022 (set_language): Likewise.
7023 (range_error): Likewise.
7024 (language_enum): Likewise.
7025 (language_def): Likewise.
7026 (add_set_language_command): Use language_def::languages for the
7027 language list, and language_def to lookup language pointers.
7028 (skip_language_trampoline): Use language_defn::languages.
7029 (unknown_language_defn): Convert to...
7030 (unknown_language_data): ...this.
7031 (class unknown_language): New class.
7032 (unknown_language_defn): New static global.
7033 (auto_language_defn): Convert to...
7034 (auto_language_data): ...this.
7035 (class auto_language): New class.
7036 (auto_language_defn): New static global.
7037 (language_gdbarch_post_init): Use language_defn::languages.
7038 (_initialize_language): Initialize current_language.
7039 * gdb/language.h (struct language_defn): Rename to...
7040 (struct language_data): ...this.
7041 (struct language_defn): New.
7042 (auto_language_defn): Delete.
7043 (unknown_language_defn): Delete.
7044 (minimal_language_defn): Delete.
7045 (ada_language_defn): Delete.
7046 (asm_language_defn): Delete.
7047 (c_language_defn): Delete.
7048 (cplus_language_defn): Delete.
7049 (d_language_defn): Delete.
7050 (f_language_defn): Delete.
7051 (go_language_defn): Delete.
7052 (m2_language_defn): Delete.
7053 (objc_language_defn): Delete.
7054 (opencl_language_defn): Delete.
7055 (pascal_language_defn): Delete.
7056 (rust_language_defn): Delete.
7057 * gdb/m2-lang.c (m2_language_defn): Convert to...
7058 (m2_language_data): ...this.
7059 (class m2_language): New class.
7060 (m2_language_defn): New static global.
7061 * gdb/objc-lang.c (objc_language_defn): Convert to...
7062 (objc_language_data): ...this.
7063 (class objc_language): New class.
7064 (objc_language_defn): New static global.
7065 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
7066 (opencl_language_data): ...this.
7067 (class opencl_language): New class.
7068 (opencl_language_defn): New static global.
7069 * gdb/p-lang.c (pascal_language_defn): Convert to...
7070 (pascal_language_data): ...this.
7071 (class pascal_language): New class.
7072 (pascal_language_defn): New static global.
7073 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
7074 language pointer, update comment format.
7075 * gdb/rust-lang.c (rust_language_defn): Convert to...
7076 (rust_language_data): ...this.
7077 (class rust_language): New class.
7078 (rust_language_defn): New static global.
7079
7080 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
7081
7082 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
7083 member variable.
7084 <m_stmt_at_address>: New member variable.
7085 (lnp_state_machine::record_line): Don't record some lines, update
7086 tracking of is_stmt at the same address.
7087 (lnp_state_machine::lnp_state_machine): Initialise new member
7088 variables.
7089
7090 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
7091
7092 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
7093 "-include gnu-nat-mig.h".
7094 * gnu-nat-mig.h: New file.
7095 * gnu-nat.c: Include "gnu-nat-mig.h".
7096 (exc_server, msg_reply_server, notify_server,
7097 process_reply_server): Remove declarations.
7098
7099 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7100
7101 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
7102 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
7103 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
7104 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
7105 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
7106 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
7107 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
7108 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
7109 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
7110 to gnu_nat_target class.
7111 * gnu-nat.c: Likewise.
7112 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
7113 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
7114 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
7115 object.
7116 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
7117 instead of `gnu_target'.
7118
7119 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7120
7121 * i386-gnu-tdep.c: Include "gdbcore.h"
7122 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
7123 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
7124 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
7125 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
7126 i386_gnu_sigcontext_addr): New functions
7127 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
7128 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
7129 tdep.
7130
7131 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7132
7133 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
7134 before fork_inferior call. Avoid calling it if target_is_pushed returns
7135 true.
7136
7137 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7138
7139 * gnu-nat.h (gnu_target): New variable declaration.
7140 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
7141 gnu_target.
7142 * gnu-nat.c (gnu_target): New variable.
7143 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
7144 add_thread_silent, and add_thread calls.
7145 (gnu_nat_target::create_inferior): Pass gnu_target to
7146 add_thread_silent, thread_change_ptid call.
7147 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
7148 call.
7149
7150 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7151
7152 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
7153 (gnu_nat_target::find_memory_regions): Remove unused
7154 `old_address' variable.
7155
7156 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7157
7158 * gnu-nat.c: Include "gdbarch.h".
7159
7160 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7161
7162 * reply_mig_hack.awk (Error return): Cast function through
7163 void *, to bypass compiler function call check.
7164
7165 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7166
7167 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
7168 $(srcdir)/reply_mig_hack.awk.
7169
7170 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7171
7172 * gnu-nat.h (gnu_debug_flag): Set type to bool.
7173
7174 2020-05-30 Jonny Grant <jg@jguk.org>
7175
7176 * configure.ac (ACX_BUGURL): change bug URL to https.
7177
7178 2020-05-30 Pedro Alves <palves@redhat.com>
7179
7180 * cp-support.c (replace_typedefs_template): New.
7181 (replace_typedefs_qualified_name): Handle
7182 DEMANGLE_COMPONENT_TEMPLATE.
7183
7184 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
7185
7186 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
7187 dwarf2/index-cache.h, dwarf2/index-write.c,
7188 dwarf2/index-write.h, dwarf2/line-header.c,
7189 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
7190 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
7191 variables and fields from `dwarf2_per_objfile` to just
7192 `per_objfile` throughout.
7193
7194 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
7195
7196 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7197 <push_dwarf_reg_entry_value>: Add comment.
7198
7199 2020-05-28 Kevin Buettner <kevinb@redhat.com>
7200 Keith Seitz <keiths@redhat.com>
7201
7202 * python/python.c (do_start_initialization): Call PyEval_SaveThread
7203 instead of PyEval_ReleaseLock.
7204 (class gdbpy_gil): Move to earlier in file.
7205 (finalize_python): Set gdb_python_initialized.
7206 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
7207 when not initialized.
7208
7209 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
7210
7211 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7212 <push_dwarf_reg_entry_value>: Remove assert. Override
7213 per_objfile with caller_per_objfile.
7214
7215 2020-05-28 Tom de Vries <tdevries@suse.de>
7216
7217 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
7218 PR gold/15646 workaround to symbol kind "type".
7219
7220 2020-05-27 Tom Tromey <tromey@adacore.com>
7221
7222 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
7223
7224 2020-05-27 Tom Tromey <tromey@adacore.com>
7225
7226 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
7227 Use htab_find_with_hash.
7228 <add_abbrev>: Remove "abbrev_number" parameter.
7229 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
7230 "abbrev_number" parameter. Use htab_find_slot_with_hash.
7231 (hash_abbrev): Add comment.
7232 (abbrev_table::lookup_abbrev): Move to header file.
7233 (abbrev_table::read): Update.
7234
7235 2020-05-27 Tom Tromey <tromey@adacore.com>
7236
7237 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
7238 method.
7239 <canonical_name>: New member.
7240 <raw_name>: Rename from "name".
7241 (partial_die_info): Initialize canonical_name.
7242 (scan_partial_symbols): Check raw_name.
7243 (partial_die_parent_scope, partial_die_full_name)
7244 (add_partial_symbol, add_partial_subprogram)
7245 (add_partial_enumeration, load_partial_dies): Use "name" method.
7246 (partial_die_info::name): New method.
7247 (partial_die_info::read, guess_partial_die_structure_name)
7248 (partial_die_info::fixup): Update.
7249
7250 2020-05-27 Tom Tromey <tromey@adacore.com>
7251
7252 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
7253 <get_ref_die_offset>: Inline.
7254 <get_ref_die_offset_complaint>: New method.
7255 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
7256 (attribute::get_ref_die_offset_complaint): Rename from
7257 get_ref_die_offset. Just issue complaint.
7258
7259 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7260
7261 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
7262
7263 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7264
7265 * exec.c (exec_file_attach): Use errno value of first openp failure.
7266
7267 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7268
7269 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
7270 Don't close thread handle.
7271
7272 2020-05-27 Tom Tromey <tom@tromey.com>
7273 Simon Marchi <simon.marchi@efficios.com>
7274
7275 * objfiles.h (struct objfile) <partial_symtabs>: Now a
7276 shared_ptr.
7277 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
7278 member.
7279 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
7280 dwarf2_per_bfd_objfile_data_key>: New globals.
7281 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
7282 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
7283 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
7284 shared.
7285 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
7286 short-circuit when sharing.
7287 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
7288 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
7289
7290 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7291
7292 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
7293 to...
7294 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
7295 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
7296
7297 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7298
7299 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
7300 build_name_components, find_name_components_bounds>:
7301 Add per_objfile parameter.
7302 (struct mapped_index) <symbol_name_at>: Likewise.
7303 (struct mapped_debug_names): Remove constructor.
7304 <dwarf2_per_objfile>: Remove field.
7305 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
7306 (mapped_index_base::find_name_components_bounds,
7307 mapped_index_base::build_name_components,
7308 dw2_expand_symtabs_matching_symbol): Likewise.
7309 (class mock_mapped_index) <symbol_name_at>: Likewise.
7310 (check_match): Likewise.
7311 (check_find_bounds_finds): Likewise.
7312 (test_mapped_index_find_name_component_bounds): Update.
7313 (CHECK_MATCH): Update.
7314 (dw2_expand_symtabs_matching): Update.
7315 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
7316 per_objfile parameter.
7317 <find_vec_in_debug_names>: Likewise.
7318 <m_per_objfile>: New field.
7319 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
7320 parameter.
7321 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
7322 (dw2_debug_names_iterator::next): Update.
7323 (dw2_debug_names_lookup_symbol): Update.
7324 (dw2_debug_names_expand_symtabs_for_function): Update.
7325 (dw2_debug_names_map_matching_symbols): Update.
7326 (dw2_debug_names_expand_symtabs_matching): Update.
7327 (dwarf2_read_debug_names): Update.
7328
7329 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7330
7331 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
7332 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
7333 move to dwarf2_per_objfile.
7334 <read_in_chain>: Remove.
7335 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
7336 remove_all_cus, age_comp_units>: New methods.
7337 <m_dwarf2_cus>: New member.
7338 (struct dwarf2_per_cu_data) <cu>: Remove.
7339 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
7340 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
7341 moved to methods of dwarf2_per_objfile.
7342 (dwarf2_clear_marks): Remove.
7343 (dwarf2_queue_item::~dwarf2_queue_item): Update.
7344 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
7345 (dwarf2_per_bfd::free_cached_comp_units): Remove.
7346 (dwarf2_per_objfile::remove_all_cus): New.
7347 (class free_cached_comp_units) <~free_cached_comp_units>:
7348 Update.
7349 (load_cu): Update.
7350 (dw2_do_instantiate_symtab): Adjust.
7351 (fill_in_sig_entry_from_dwo_entry): Adjust.
7352 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7353 (cutu_reader::cutu_reader): Likewise.
7354 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
7355 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
7356 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
7357 and dwarf2_per_objfile::age_comp_units.
7358 (load_partial_comp_unit): Update.
7359 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
7360 (process_queue): Likewise.
7361 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
7362 backlink.
7363 (dwarf2_read_addr_index): Likewise.
7364 (follow_die_offset): Likewise.
7365 (dwarf2_fetch_die_loc_sect_off): Likewise.
7366 (dwarf2_fetch_constant_bytes): Likewise.
7367 (dwarf2_fetch_die_type_sect_off): Likewise.
7368 (follow_die_sig_1): Likewise.
7369 (load_full_type_unit): Likewise.
7370 (read_signatured_type): Likewise.
7371 (dwarf2_cu::dwarf2_cu): Don't set cu field.
7372 (dwarf2_cu::~dwarf2_cu): Remove.
7373 (dwarf2_per_objfile::get_cu): New.
7374 (dwarf2_per_objfile::set_cu): New.
7375 (age_cached_comp_units): Rename to...
7376 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
7377 to std::unordered_map.
7378 (free_one_cached_comp_unit): Rename to...
7379 (dwarf2_per_objfile::remove_cu): ... this. Adjust
7380 to std::unordered_map.
7381 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
7382 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
7383 a dwarf2_per_objfile in data.
7384 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
7385 (dwarf2_clear_marks): Remove.
7386
7387 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7388
7389 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
7390 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
7391 (init_tu_and_read_dwo_dies): Likewise.
7392 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
7393 (cutu_reader::cutu_reader): Likewise.
7394 (load_partial_comp_unit): Likewise.
7395 (process_psymtab_comp_unit): Update.
7396 (build_type_psymtabs_1): Update.
7397 (process_skeletonless_type_unit): Update.
7398 (load_full_comp_unit): Update.
7399 (find_partial_die): Update.
7400 (dwarf2_read_addr_index): Update.
7401 (read_signatured_type): Update.
7402
7403 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7404
7405 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
7406 m_header_read_in>: New fields.
7407 <get_header>: New method.
7408 * dwarf2/read.c (per_cu_header_read_in): Remove.
7409 (dwarf2_per_cu_data::get_header): New.
7410 (dwarf2_per_cu_data::addr_size): Update.
7411 (dwarf2_per_cu_data::offset_size): Update.
7412 (dwarf2_per_cu_data::ref_addr_size): Update.
7413
7414 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7415
7416 * dwarf2/read.c (load_cu): Return dwarf2_cu.
7417 (dw2_do_instantiate_symtab): Update.
7418 (queue_and_load_all_dwo_tus): Change parameter from
7419 dwarf2_per_cu_data to dwarf2_cu.
7420 (dwarf2_fetch_die_loc_sect_off): Update.
7421 (dwarf2_fetch_constant_bytes): Update.
7422 (dwarf2_fetch_die_type_sect_off): Update.
7423
7424 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7425
7426 * dwarf2/read.c (process_full_comp_unit,
7427 process_full_type_unit): Remove per_cu, per_objfile paramters.
7428 Add dwarf2_cu parameter.
7429 (process_queue): Update.
7430
7431 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7432
7433 * dwarf2/read.c (create_cu_from_index_list): Replace
7434 dwarf2_per_objfile parameter with dwarf2_per_bfd.
7435 (create_cus_from_index_list): Likewise.
7436 (create_cus_from_index): Likewise.
7437 (create_signatured_type_table_from_index): Likewise.
7438 (create_cus_from_debug_names_list): Likewise.
7439 (create_cus_from_debug_names): Likewise.
7440 (dwarf2_read_gdb_index): Update.
7441 (dwarf2_read_debug_names): Update.
7442
7443 2020-05-27 Tom Tromey <tom@tromey.com>
7444 Simon Marchi <simon.marchi@efficios.com>
7445
7446 * dwarf2/read.h (struct dwarf2_per_objfile)
7447 <get_type_for_signatured_type, set_type_for_signatured_type>:
7448 New methods.
7449 <m_type_map>: New member.
7450 (struct signatured_type) <type>: Remove.
7451 * dwarf2/read.c
7452 (dwarf2_per_objfile::get_type_for_signatured_type,
7453 dwarf2_per_objfile::set_type_for_signatured_type): New.
7454 (get_signatured_type): Use new methods.
7455
7456 2020-05-27 Tom Tromey <tom@tromey.com>
7457 Simon Marchi <simon.marchi@efficios.com>
7458
7459 * dwarf2/read.h (struct type_unit_group_unshareable): New.
7460 (struct dwarf2_per_objfile) <type_units>: New member.
7461 <get_type_unit_group_unshareable>: New method.
7462 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
7463 num_symtabs, symtabs>: Remove; move to
7464 type_unit_group_unshareable.
7465 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
7466 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
7467 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
7468
7469 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7470
7471 * dwarf2/read.h (struct dwarf2_per_cu_data):
7472 <dwarf2_per_objfile>: Remove.
7473 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7474 dwarf2_per_objfile.
7475 (create_signatured_type_table_from_index): Likewise.
7476 (create_signatured_type_table_from_debug_names): Likewise.
7477 (create_debug_type_hash_table): Likewise.
7478 (fill_in_sig_entry_from_dwo_entry): Likewise.
7479 (create_type_unit_group): Likewise.
7480 (read_comp_units_from_section): Likewise.
7481 (create_cus_hash_table): Likewise.
7482
7483 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7484
7485 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7486 dwarf2_per_cu_data::dwarf2_per_objfile.
7487 (compute_compunit_symtab_includes): Likewise.
7488 (dwarf2_cu::start_symtab): Likewise.
7489
7490 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7491
7492 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7493 parameter.
7494 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7495 (read_namespace_alias): Update.
7496 (lookup_die_type): Update.
7497 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7498 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7499 Update.
7500 (disassemble_dwarf_expression): Update.
7501
7502 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7503
7504 * dwarf2/read.h (struct dwarf2_queue_item): Add
7505 dwarf2_per_objfile parameter, assign new parameter.
7506 <per_objfile>: New field.
7507 * dwarf2/read.c (free_one_cached_comp_unit): Add
7508 dwarf2_per_objfile parameter.
7509 (queue_comp_unit): Likewise.
7510 (dw2_do_instantiate_symtab): Update.
7511 (process_psymtab_comp_unit): Update.
7512 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
7513 (process_imported_unit_die): Update.
7514 (queue_and_load_dwo_tu): Update.
7515 (follow_die_offset): Update.
7516 (follow_die_sig_1): Update.
7517
7518 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7519
7520 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
7521 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
7522 (read_call_site_scope): Assign per_objfile.
7523 (dwarf2_per_cu_data::objfile): Remove.
7524 * gdbtypes.h (struct call_site) <per_objfile>: New member.
7525 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
7526 dwarf2_per_objfile parameter.
7527 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
7528 dwarf2_per_objfile parameter.
7529 (dwarf_expr_reg_to_entry_parameter): Add output
7530 dwarf2_per_objfile parameter.
7531 (locexpr_get_frame_base): Update.
7532 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
7533 <push_dwarf_reg_entry_value>: Update.
7534 <call_site_to_target_addr>: Update.
7535 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
7536 parameter.
7537 (value_of_dwarf_reg_entry): Update.
7538 (rw_pieced_value): Update.
7539 (indirect_synthetic_pointer): Update.
7540 (dwarf2_evaluate_property): Update.
7541 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
7542 parameter.
7543 (locexpr_read_variable): Update.
7544 (locexpr_get_symbol_read_needs): Update.
7545 (loclist_read_variable): Update.
7546
7547 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7548
7549 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7550 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7551 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7552 parameter.
7553 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7554 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7555 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7556 parameter.
7557 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
7558 sect_variable_value): Add dwarf2_per_objfile parameter.
7559 (class dwarf_evaluate_loc_desc) <dwarf_call,
7560 dwarf_variable_value>: Update.
7561 (fetch_const_value_from_synthetic_pointer): Add
7562 dwarf2_per_objfile parameter.
7563 (fetch_const_value_from_synthetic_pointer): Update.
7564 (coerced_pieced_ref): Update.
7565 (class symbol_needs_eval_context) <dwarf_call,
7566 dwarf_variable_value>: Update.
7567 (dwarf2_compile_expr_to_ax): Update.
7568
7569 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7570
7571 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
7572 parameter.
7573 (dwarf2_evaluate_loc_desc_full): Update.
7574
7575 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7576
7577 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
7578 parameter.
7579 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
7580 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
7581 dwarf2_per_objfile parameter.
7582 (decode_debug_loc_dwo_addresses): Likewise.
7583 (dwarf2_find_location_expression): Update.
7584 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
7585 (locexpr_describe_location_piece): Add dwarf2_per_objfile
7586 parameter.
7587 (disassemble_dwarf_expression): Add dwarf2_per_objfile
7588 parameter.
7589 (locexpr_describe_location_1): Likewise.
7590 (locexpr_describe_location): Update.
7591
7592 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7593
7594 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
7595 Remove.
7596 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
7597 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
7598 (dwarf2_compile_property_to_c): Update.
7599 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
7600 use text offset from objfile.
7601 (locexpr_tracepoint_var_ref): Update.
7602 (locexpr_generate_c_location): Update.
7603 (loclist_describe_location): Update.
7604 (loclist_tracepoint_var_ref): Update.
7605 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
7606 dwarf2_per_objfile parameter.
7607 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
7608 use text offset from objfile.
7609 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
7610
7611 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7612
7613 * dwarf2/expr.h (struct dwarf_expr_context)
7614 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
7615 <offset>: Remove.
7616 <per_objfile>: New member.
7617 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
7618 dwarf2_per_objfile parameter. Don't set offset, set
7619 per_objfile.
7620 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
7621 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
7622 a dwarf2_per_objfile object instead of an offset.
7623 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
7624 constructor.
7625 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
7626 to dwarf2_expr_executor constructor. Don't set offset.
7627 (dwarf2_fetch_cfa_info): Update.
7628 (struct dwarf2_frame_cache) <text_offset>: Remove.
7629 <per_objfile>: New field.
7630 (dwarf2_frame_cache): Update.
7631 (dwarf2_frame_prev_register): Update.
7632 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7633 <dwarf_evaluate_loc_desc>: Add constructor.
7634 (dwarf2_evaluate_loc_desc_full): Update.
7635 (dwarf2_locexpr_baton_eval): Update.
7636 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
7637 Add constructor.
7638 (dwarf2_loc_desc_get_symbol_read_needs): Update.
7639
7640 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7641
7642 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
7643 addr_sized_int_type>: Move to dwarf2_cu.
7644 <int_type>: Move to dwarf2_per_objfile.
7645 (struct dwarf2_per_objfile) <int_type>: Move here.
7646 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
7647 addr_sized_int_type>: Move here.
7648 (read_func_scope): Update.
7649 (read_array_type): Update.
7650 (read_tag_string_type): Update.
7651 (attr_to_dynamic_prop): Update.
7652 (dwarf2_per_cu_data::int_type): Rename to...
7653 (dwarf2_per_objfile::int_type): ... this.
7654 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
7655 (dwarf2_cu::addr_sized_int_type): ... this.
7656 (read_subrange_type): Update.
7657 (dwarf2_per_cu_data::addr_type): Rename to...
7658 (dwarf2_cu::addr_type): ... this.
7659 (set_die_type): Update.
7660
7661 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7662
7663 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
7664 data through per_cu->cu.
7665
7666 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7667
7668 * dwarf2/read.c (lookup_dwo_comp_unit): Change
7669 dwarf2_per_cu_data parameter fo dwarf2_cu.
7670 (lookup_dwo_type_unit): Likewise.
7671 (read_cutu_die_from_dwo): Likewise.
7672 (lookup_dwo_unit): Likewise.
7673 (open_and_init_dwo_file): Likewise.
7674 (lookup_dwo_cutu): Likewise.
7675 (lookup_dwo_comp_unit): Likewise.
7676 (lookup_dwo_type_unit): Likewise.
7677 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7678 (cutu_reader::cutu_reader): Update.
7679
7680 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7681
7682 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
7683 parameter.
7684 (process_full_type_unit): Likewise.
7685 (process_queue): Update.
7686
7687 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7688
7689 * dwarf2/read.c (recursively_compute_inclusions): Add
7690 dwarf2_per_objfile parameter.
7691 (compute_compunit_symtab_includes): Likewise.
7692 (process_cu_includes): Update.
7693
7694 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7695
7696 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
7697 parameter.
7698 (create_type_unit_group): Update.
7699 (process_psymtab_comp_unit_reader): Update.
7700 (build_type_psymtabs_reader): Update.
7701
7702 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7703
7704 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
7705 object through m_this_cu->cu.
7706
7707 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7708
7709 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
7710 the info parameter.
7711 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
7712
7713 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7714
7715 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
7716 per_objfile parameter.
7717 (load_full_type_unit): Add per_objfile parameter.
7718 (read_signatured_type): Likewise.
7719 (load_full_comp_unit): Likewise.
7720 (load_cu): Likewise.
7721 (dw2_do_instantiate_symtab): Likewise.
7722 (dw2_get_file_names): Likewise.
7723 (dw2_map_symtabs_matching_filename): Update.
7724 (dw_expand_symtabs_matching_file_matcher): Update.
7725 (dw2_map_symbol_filenames): Update.
7726 (process_psymtab_comp_unit): Add per_objfile parameter.
7727 (build_type_psymtabs_1): Update.
7728 (process_skeletonless_type_unit): Update.
7729 (dwarf2_build_psymtabs_hard): Update.
7730 (load_partial_comp_unit): Add per_objfile parameter.
7731 (scan_partial_symbols): Update.
7732 (load_full_comp_unit): Add per_objfile parameter.
7733 (process_imported_unit_die): Update.
7734 (create_cus_hash_table): Update.
7735 (find_partial_die): Update.
7736 (dwarf2_read_addr_index): Update.
7737 (follow_die_offset): Update.
7738 (dwarf2_fetch_die_loc_sect_off): Update.
7739 (dwarf2_fetch_constant_bytes): Update.
7740 (dwarf2_fetch_die_type_sect_off): Update.
7741 (follow_die_sig_1): Update.
7742 (load_full_type_unit): Add per_objfile parameter.
7743 (read_signatured_type): Likewise.
7744
7745 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7746
7747 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
7748 of objfile_name.
7749
7750 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7751
7752 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
7753 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7754 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
7755 field.
7756 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7757 (create_cus_from_index): Update.
7758 (dwarf2_read_gdb_index): Update.
7759 (create_cus_from_debug_names): Update.
7760 (dwarf2_read_debug_names): Update.
7761 (get_abbrev_section_for_cu): Update.
7762 (create_all_comp_units): Update.
7763 (read_attribute_value): Update.
7764 (get_debug_line_section): Update.
7765 * dwarf2/index-cache.c (index_cache::store): Update.
7766 * dwarf2/index-write.c (save_gdb_index_command): Update.
7767 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
7768
7769 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7770
7771 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
7772 member.
7773 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
7774 dwarf2_per_cu_data::per_bfd.
7775 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
7776 (create_type_unit_group): Likewise.
7777 (queue_comp_unit): Remove reference to
7778 per_cu->dwarf2_per_objfile.
7779 (maybe_queue_comp_unit): Likewise.
7780 (fill_in_sig_entry_from_dwo_entry): Assign new field.
7781 (create_cus_hash_table): Assign new field.
7782
7783 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7784
7785 * dwarf2/read.c: Replace
7786 dwarf2_cu->per_cu->dwarf2_per_objfile references with
7787 dwarf2_cu->per_objfile throughout.
7788
7789 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7790
7791 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
7792 parameter, don't use per_cu->dwarf2_per_objfile.
7793 (dw2_instantiate_symtab): Likewise.
7794 (dw2_find_last_source_symtab): Update.
7795 (dw2_map_expand_apply): Update.
7796 (dw2_lookup_symbol): Update.
7797 (dw2_expand_symtabs_for_function): Update.
7798 (dw2_expand_all_symtabs): Update.
7799 (dw2_expand_symtabs_with_fullname): Update.
7800 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
7801 don't use per_cu->dwarf2_per_objfile.
7802 (dw2_expand_marked_cus): Update.
7803 (dw2_find_pc_sect_compunit_symtab): Update.
7804 (dw2_debug_names_lookup_symbol): Update.
7805 (dw2_debug_names_expand_symtabs_for_function): Update.
7806 (dw2_debug_names_map_matching_symbols): Update.
7807 (dwarf2_psymtab::expand_psymtab): Update.
7808
7809 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7810
7811 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
7812 <per_objfile>: New member.
7813 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
7814 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
7815 call to dwarf2_cu.
7816 (cutu_reader::cutu_reader): Update.
7817 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
7818
7819 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7820
7821 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
7822 struct dwarf2_per_objfile.
7823 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
7824 dwarf2_per_bfd.
7825 * dwarf2/read.c (set_die_type): Update.
7826 (get_die_type_at_offset): Update.
7827
7828 2020-05-27 Tom Tromey <tom@tromey.com>
7829 Simon Marchi <simon.marchi@efficios.com>
7830
7831 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
7832 method.
7833 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
7834 get_symtab, set_symtab>: New methods.
7835 <m_symtabs>: New field.
7836 (struct dwarf2_psymtab): Derive from partial_symtab.
7837 <readin_p, get_compunit_symtab>: Declare methods.
7838 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
7839 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
7840 New methods.
7841 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
7842 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
7843 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
7844 (dw2_symtab_iter_next, dw2_print_stats)
7845 (dw2_expand_symtabs_with_fullname)
7846 (dw2_expand_symtabs_matching_one)
7847 (dw_expand_symtabs_matching_file_matcher)
7848 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
7849 (dw2_debug_names_iterator::next)
7850 (dw2_debug_names_map_matching_symbols)
7851 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
7852 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
7853 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
7854 New methods.
7855 (get_compunit_symtab, process_full_comp_unit)
7856 (process_full_type_unit): Update.
7857 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
7858
7859 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7860
7861 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
7862 then introduce a new dwarf2_per_objfile type.
7863 <read_line_string>: Move to the new dwarf2_per_objfile type.
7864 <objfile>: Likewise.
7865 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
7866 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
7867 dwarf2_per_objfile->per_bfd.
7868 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
7869 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
7870 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
7871 (dwarf2_per_bfd::free_cached_comp_units): ... this.
7872 (dwarf2_has_info): Allocate dwarf2_per_bfd.
7873 (dwarf2_per_objfile::locate_sections): Rename to...
7874 (dwarf2_per_bfd::locate_sections): ... this.
7875 (dwarf2_per_objfile::get_cutu): Rename to...
7876 (dwarf2_per_bfd::get_cutu): ... this.
7877 (dwarf2_per_objfile::get_cu): Rename to...
7878 (dwarf2_per_bfd::get_cu): ... this.
7879 (dwarf2_per_objfile::get_tu): Rename to...
7880 (dwarf2_per_bfd::get_tu): ... this.
7881 (dwarf2_per_objfile::allocate_per_cu): Rename to...
7882 (dwarf2_per_bfd::allocate_per_cu): ... this.
7883 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
7884 (dwarf2_per_bfd::allocate_signatured_type): ... this.
7885 (get_gdb_index_contents_ftype): Change parameter from
7886 dwarf2_per_objfile to dwarf2_per_bfd.
7887 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
7888 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
7889
7890 2020-05-27 Tom Tromey <tom@tromey.com>
7891 Simon Marchi <simon.marchi@efficios.com>
7892
7893 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
7894 (allocate_piece_closure): Set "per_objfile" member.
7895 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
7896 (locexpr_describe_location, loclist_describe_location): Use new
7897 member.
7898 * dwarf2/read.c (read_call_site_scope)
7899 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
7900 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
7901 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
7902 handle_data_member_location): Set per_objfile member.
7903 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
7904 member.
7905 (struct dwarf2_loclist_baton) <per_objfile>: New member.
7906
7907 2020-05-27 Tom Tromey <tom@tromey.com>
7908
7909 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
7910 allocate_signatured_type>: Declare new methods.
7911 <m_num_psymtabs>: New member.
7912 (struct dwarf2_per_cu_data) <index>: New member.
7913 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
7914 (dwarf2_per_objfile::allocate_signatured_type): New methods.
7915 (create_cu_from_index_list): Use allocate_per_cu.
7916 (create_signatured_type_table_from_index)
7917 (create_signatured_type_table_from_debug_names)
7918 (create_debug_type_hash_table, add_type_unit)
7919 (read_comp_units_from_section): Use allocate_signatured_type.
7920
7921 2020-05-27 Tom Tromey <tom@tromey.com>
7922
7923 * psymtab.c (partial_map_expand_apply)
7924 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
7925 (psym_lookup_global_symbol_language)
7926 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
7927 (psym_print_stats, psym_expand_symtabs_for_function)
7928 (psym_map_symbol_filenames, psym_map_matching_symbols)
7929 (psym_expand_symtabs_matching)
7930 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
7931 (maintenance_check_psymtabs): Update.
7932 * psympriv.h (struct partial_symtab) <readin_p,
7933 get_compunit_symtab>: Add objfile parameter.
7934 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
7935 Likewise.
7936 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
7937 get_compunit_symtab>: Likewise.
7938 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
7939
7940 2020-05-27 Tom Tromey <tom@tromey.com>
7941
7942 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
7943 member.
7944 * dwarf2/read.c (delete_file_name_entry): Fix comment.
7945 (create_cu_from_index_list)
7946 (create_signatured_type_table_from_index)
7947 (create_signatured_type_table_from_debug_names)
7948 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
7949 (dwarf2_create_include_psymtab)
7950 (create_debug_type_hash_table, add_type_unit)
7951 (create_type_unit_group, read_comp_units_from_section)
7952 (dwarf2_compute_name, create_cus_hash_table)
7953 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
7954 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
7955 obstack.
7956 (dw2_get_real_path): Likewise. Change argument to
7957 dwarf2_per_objfile.
7958
7959 2020-05-27 Luis Machado <luis.machado@linaro.org>
7960
7961 PR tdep/26000
7962 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
7963 for ldrd (immediate).
7964
7965 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7966
7967 * command.h: Add comment giving the name of class_tui.
7968 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
7969 create the fake command for the help for class_tui.
7970
7971 2020-05-26 Tom Tromey <tromey@adacore.com>
7972
7973 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
7974 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
7975 (val_atr): New function.
7976 (value_val_atr): Use it.
7977 * ada-valprint.c (print_optional_low_bound): Change low bound
7978 handling for enums.
7979 (val_print_packed_array_elements): Don't call discrete_position.
7980 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
7981 discrete_position for enum types.
7982 * language.c (default_print_array_index): Change type.
7983 * language.h (struct language_defn) <la_print_array_index>: Add
7984 index_type parameter, change type of index_value.
7985 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
7986 (default_print_array_index): Update.
7987 * valprint.c (maybe_print_array_index): Don't call
7988 value_from_longest. Update.
7989 (value_print_array_elements): Don't call discrete_position.
7990
7991 2020-05-26 Tom Tromey <tromey@adacore.com>
7992
7993 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
7994 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
7995
7996 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
7997
7998 PR gdb/13519
7999 * avr-tdep.c (avr_integer_to_address): Return data or code
8000 address accordingly to the second 'type' argument of the
8001 function.
8002
8003 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
8004
8005 * infcmd.c, inferior.h: (construct_inferior_arguments):
8006 Moved function from here to gdbsupport/common-inferior.{h,cc}
8007
8008 2020-05-23 Tom Tromey <tom@tromey.com>
8009
8010 Revert commit eca1f90c:
8011 * NEWS: Remove entry for completion styling.
8012 * completer.c (_rl_completion_prefix_display_length): Move
8013 declaration later.
8014 (gdb_fnprint): Revert.
8015 (gdb_display_match_list_1): Likewise.
8016 * cli/cli-style.c (completion_prefix_style)
8017 (completion_difference_style, completion_suffix_style): Remove.
8018 (_initialize_cli_style): Revert.
8019 * cli/cli-style.h (completion_prefix_style)
8020 (completion_difference_style, completion_suffix_style): Don't
8021 declare.
8022
8023 2020-05-24 Pedro Alves <palves@redhat.com>
8024
8025 * symtab.c (completion_list_add_name): Return boolean indication
8026 of whether the symbol matched.
8027 (completion_list_add_symbol): Don't try to remove C++ aliases if
8028 the symbol didn't match in the first place.
8029 * symtab.h (completion_list_add_name): Return bool.
8030
8031 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
8032
8033 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
8034 type::field.
8035
8036 2020-05-23 Joel Brobecker <brobecker@adacore.com>
8037
8038 GDB 9.2 released.
8039
8040 2020-05-23 Tom Tromey <tom@tromey.com>
8041
8042 * NEWS: Add entry for completion styling.
8043 * completer.c (_rl_completion_prefix_display_length): Move
8044 declaration earlier.
8045 (gdb_fnprint): Use completion_style.
8046 (gdb_display_match_list_1): Likewise.
8047 * cli/cli-style.c (completion_prefix_style)
8048 (completion_difference_style, completion_suffix_style): New
8049 globals.
8050 (_initialize_cli_style): Register new globals.
8051 * cli/cli-style.h (completion_prefix_style)
8052 (completion_difference_style, completion_suffix_style): Declare.
8053
8054 2020-05-23 Pedro Alves <palves@redhat.com>
8055
8056 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
8057 (parse_escape): Use ISDIGIT instead of isdigit.
8058 (puts_debug): Use gdb_isprint instead of isprint.
8059 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
8060 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
8061 ISSPACE instead of isspace.
8062 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
8063 instead of isspace.
8064 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
8065 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
8066 instead of isxdigit and ISDIGIT instead of isdigit.
8067
8068 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8069
8070 * gdbtypes.h (struct type) <field>: New method.
8071 (TYPE_FIELDS): Remove, replace all uses with either type::fields
8072 or type::field.
8073
8074 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8075
8076 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
8077 (TYPE_FIELDS): Use type::fields. Change all call sites that
8078 modify the propery to use type::set_fields instead.
8079
8080 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8081
8082 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
8083 type::num_fields instead.
8084
8085 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8086
8087 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
8088 methods.
8089 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
8090 that modify the number of fields to use type::set_num_fields
8091 instead.
8092
8093 2020-05-22 Tom Tromey <tromey@adacore.com>
8094
8095 * compile/compile-object-load.h (munmap_list_free): Don't
8096 declare.
8097
8098 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8099
8100 * annotate.c (annotate_source_line): Update return type, add call
8101 to update current symtab and line.
8102 * annotate.h (annotate_source_line): Update return type, and
8103 extend header comment.
8104 * source.c (info_line_command): Check annotation_level before
8105 calling annotate_source_line.
8106 * stack.c (print_frame_info): If calling annotate_source_line
8107 returns true, then don't print any other source line information.
8108
8109 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
8110
8111 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
8112
8113 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
8114
8115 * coffread.c (patch_type): Remove NULL check before xfree.
8116 * corefile.c (set_gnutarget): Likewise.
8117 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
8118 * exec.c (build_section_table): Likewise.
8119 * remote.c (remote_target::pass_signals): Likewise.
8120 * utils.c (n_spaces): Likewise.
8121 * cli/cli-script.c (document_command): Likewise.
8122 * i386-windows-tdep.c (core_process_module_section): Likewise.
8123 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
8124
8125 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
8126
8127 * symfile.c (reread_symbols): Clear objfile's section_offsets
8128 vector and section indices, re-compute them by calling
8129 sym_offsets.
8130
8131 2020-05-20 Tom Tromey <tromey@adacore.com>
8132
8133 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
8134 (desc_one_bound, desc_index_type): Compute field name.
8135
8136 2020-05-20 Tom de Vries <tdevries@suse.de>
8137
8138 PR symtab/25833
8139 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
8140
8141 2020-05-20 Alan Modra <amodra@gmail.com>
8142
8143 PR 25993
8144 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
8145 bfd_set_filename.
8146 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
8147 passed to bfd_set_filename.
8148 * symfile-mem.c (add_vsyscall_page): Likewise for string
8149 passed to symbol_file_add_from_memory.
8150 (symbol_file_add_from_memory): Make name param a const char* and
8151 don't strdup.
8152
8153 2020-05-20 Alan Modra <amodra@gmail.com>
8154
8155 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
8156 rather than accessing bfd->filename directly.
8157 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
8158 and use bfd_section_name.
8159 * dwarf2/frame.c (decode_frame_entry): Likewise.
8160 * exec.c (exec_set_section_address): Likewise.
8161 * solib-aix.c (solib_aix_bfd_open): Likewise.
8162 * stap-probe.c (get_stap_base_address): Likewise.
8163 * symfile.c (reread_symbols): Likewise.
8164
8165 2020-05-19 Tom Tromey <tromey@adacore.com>
8166
8167 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
8168
8169 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8170
8171 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
8172
8173 2020-05-19 Pedro Alves <palves@redhat.com>
8174
8175 * NEWS (set exec-file-mismatch): Adjust entry.
8176 * exec.c: Include "build-id.h".
8177 (validate_exec_file): Try to match build IDs instead of filenames.
8178 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
8179 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
8180 and pass down 'warn_if_slow'.
8181 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
8182 gdb_bfd_open_closure to pass it down.
8183 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
8184
8185 2020-05-19 Pedro Alves <palves@redhat.com>
8186
8187 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
8188 * target.c (target_fileio_open_1): Rename to target_fileio_open
8189 and make extern. Use bool.
8190 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
8191 (target_fileio_read_alloc_1): Adjust.
8192 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
8193 (target_fileio_open_warn_if_slow): Delete declaration.
8194
8195 2020-05-19 Pedro Alves <palves@redhat.com>
8196
8197 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
8198 Adjust all callers.
8199
8200 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
8201
8202 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
8203 whether disp is negative.
8204
8205 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8206
8207 * symfile.h (struct symfile_segment_data)
8208 <~symfile_segment_data>: Remove.
8209 <segment_info>: Change to std::vector.
8210 * symfile.c (default_symfile_segments): Update.
8211 * elfread.c (elf_symfile_segments): Update.
8212
8213 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8214
8215 * symfile.h (struct symfile_segment_data) <struct segment>: New.
8216 <segments>: New.
8217 <segment_bases, segment_sizes>: Remove.
8218 * symfile.c (default_symfile_segments): Update.
8219 * elfread.c (elf_symfile_segments): Update.
8220 * remote.c (remote_target::get_offsets): Update.
8221 * solib-target.c (solib_target_relocate_section_addresses):
8222 Update.
8223
8224 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8225
8226 * symfile.h (struct symfile_segment_data): Initialize fields.
8227 <~symfile_segment_data>: Add.
8228 (symfile_segment_data_up): New.
8229 (struct sym_fns) <sym_segments>: Return a
8230 symfile_segment_data_up.
8231 (default_symfile_segments): Return a symfile_segment_data_up.
8232 (free_symfile_segment_data): Remove.
8233 (get_symfile_segment_data): Return a symfile_segment_data_up.
8234 * symfile.c (default_symfile_segments): Likewise.
8235 (get_symfile_segment_data): Likewise.
8236 (free_symfile_segment_data): Remove.
8237 (symfile_find_segment_sections): Update.
8238 * elfread.c (elf_symfile_segments): Return a
8239 symfile_segment_data_up.
8240 * remote.c (remote_target::get_offsets): Update.
8241 * solib-target.c (solib_target_relocate_section_addresses):
8242 Update.
8243 * symfile-debug.c (debug_sym_segments): Return a
8244 symfile_segment_data_up.
8245
8246 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8247
8248 PR build/25981
8249 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
8250 Hardcode register numbers.
8251
8252 PR build/25981
8253 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
8254 procfs_find_LDT_entry): Remove.
8255 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
8256 procfs_find_LDT_entry): Remove.
8257 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
8258 Remove.
8259
8260 2020-05-17 Pedro Alves <palves@redhat.com>
8261 Andrew Burgess <andrew.burgess@embecosm.com>
8262 Keno Fischer <keno@juliacomputing.com>
8263
8264 PR gdb/25741
8265 * breakpoint.c (build_target_condition_list): Update comments.
8266 (build_target_command_list): Update comments and skip matching
8267 locations.
8268 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
8269 a separate function. Simplify "set breakpoint auto-hw off"
8270 handling.
8271 (insert_breakpoints): Update comment.
8272 (tracepoint_locations_match): New parameter. For breakpoints,
8273 compare location types too, if the caller wants to.
8274 (handle_automatic_hardware_breakpoints): New functions.
8275 (bp_location_is_less_than): Also sort by location type and
8276 hardware breakpoint length.
8277 (update_global_location_list): Handle "set breakpoint auto-hw on"
8278 here.
8279 (update_breakpoint_locations): Ask breakpoint_locations_match to
8280 ignore location types.
8281
8282 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8283
8284 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
8285 type::name instead.
8286
8287 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8288
8289 * gdbtypes.h (struct type) <name, set_name>: New methods.
8290 (TYPE_CODE): Use type::name. Change all call sites used to set
8291 the name to use type::set_name instead.
8292
8293 2020-05-16 Tom Tromey <tom@tromey.com>
8294
8295 * top.c (quit_force): Update.
8296 * infrun.c (handle_no_resumed): Update.
8297 * top.h (all_uis): New function.
8298 (ALL_UIS): Remove.
8299
8300 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8301
8302 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
8303
8304 2020-05-16 Pedro Alves <palves@redhat.com>
8305
8306 * ia64-linux-nat.c
8307 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
8308 Declare method.
8309 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
8310
8311 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
8312
8313 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
8314 (sparc64_adi_info): Likewise.
8315
8316 2020-05-15 Tom Tromey <tom@tromey.com>
8317
8318 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
8319 block_objfile.
8320 (lookup_objfile_from_block): Remove.
8321 (lookup_symbol_in_block, lookup_symbol_in_static_block)
8322 (lookup_global_symbol): Use block_objfile.
8323 * symtab.h (lookup_objfile_from_block): Don't declare.
8324 * printcmd.c (clear_dangling_display_expressions): Use
8325 block_objfile.
8326 * parse.c (operator_check_standard): Use block_objfile.
8327
8328 2020-05-15 Tom Tromey <tom@tromey.com>
8329
8330 * language.c (language_alloc_type_symbol): Set
8331 SYMBOL_SECTION.
8332 * symtab.c (initialize_objfile_symbol): Remove.
8333 (allocate_symbol): Remove.
8334 (allocate_template_symbol): Remove.
8335 * dwarf2/read.c (fixup_go_packaging): Use "new".
8336 (new_symbol): Use "new".
8337 (read_variable): Don't call initialize_objfile_symbol. Use
8338 "new".
8339 (read_func_scope): Use "new".
8340 * xcoffread.c (process_xcoff_symbol): Don't call
8341 initialize_objfile_symbol.
8342 (SYMBOL_DUP): Remove.
8343 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
8344 "new".
8345 * symtab.h (allocate_symbol, initialize_objfile_symbol)
8346 (allocate_template_symbol): Don't declare.
8347 (struct symbol): Add copy constructor. Change defaults.
8348 * jit.c (finalize_symtab): Use "new".
8349 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
8350 Use "new".
8351 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8352 (common_block_end): Use "new".
8353 * mdebugread.c (parse_symbol): Use "new".
8354 (new_symbol): Likewise.
8355
8356 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8357
8358 * NEWS: Mention changes to help and apropos.
8359
8360 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8361
8362 * command.h (enum command_class): Improve comments, document
8363 that class_alias is for user-defined aliases, give the class
8364 name for each class, remove unused class_xdb.
8365 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
8366 * breakpoint.c (_initialize_breakpoint): Replace class_alias
8367 by a precise class.
8368 * infcmd.c (_initialize_infcmd): Likewise.
8369 * reverse.c (_initialize_reverse): Likewise.
8370 * stack.c (_initialize_stack): Likewise.
8371 * symfile.c (_initialize_symfile): Likewise.
8372 * tracepoint.c (_initialize_tracepoint): Likewise.
8373
8374 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8375
8376 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
8377 when their aliased command is traversed.
8378 (help_cmd): Add fput_command_names_styled call to
8379 output command name and aliases when command has an alias.
8380
8381 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8382
8383 * cli/cli-decode.h (help_cmd_list): Remove declaration.
8384 * cli/cli-decode.c (help_cmd_list): Declare as static,
8385 remove prefix argument, use bool for recurse arg, rework to show the aliases of
8386 a command together with the command.
8387 (fput_command_name_styled, fput_command_names_styled): New functions.
8388 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
8389 fput_command_name_styled.
8390 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
8391 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
8392
8393 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8394
8395 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
8396 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
8397 * command.h (cmd_show_list): Likewise.
8398 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
8399 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
8400
8401 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8402
8403 * unittests/command-def-selftests.c (traverse_command_structure):
8404 Verify all commands of a list have the same prefix command and
8405 that only the top cmdlist commands have a null prefix.
8406
8407 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8408
8409 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
8410 as prefix, not one of its aliases.
8411 (set_cmd_prefix): Remove.
8412 (do_add_cmd): Centralize the setting of the prefix of a command, when
8413 command is defined after its full chain of prefix commands.
8414 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
8415 (add_setshow_cmd_full): Likewise.
8416 (update_prefix_field_of_prefixed_commands): New function.
8417 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
8418 update_prefix_field_of_prefixed_commands.
8419 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
8420 addresses of remote_set_cmdlist and remote_show_cmdlist given
8421 as argument, not the address of an argument.
8422 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
8423 * gdb/remote.c (_initialize_remote): Likewise.
8424
8425 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8426
8427 * cli/cli-cmds.c (alias_command): Check for an existing alias
8428 using lookup_cmd_composition, as valid_command_p is too strict
8429 and forbids aliases that are the prefix of an existing alias
8430 or command.
8431 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
8432 command is properly recognised as a valid command.
8433
8434 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8435
8436 * unittests/help-doc-selftests.c: Rename to
8437 unittests/command-def-selftests.c
8438 * unittests/command-def-selftests.c (help_doc_tests): Update some
8439 comments.
8440 (command_structure_tests, traverse_command_structure): New namespace
8441 and function.
8442 (command_structure_invariants_tests): New function.
8443 (_initialize_command_def_selftests) Renamed from
8444 _initialize_help_doc_selftests, register command_structure_invariants
8445 selftest.
8446
8447 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8448
8449 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
8450 an alias of 'show'.
8451
8452 2020-05-15 Joel Brobecker <brobecker@adacore.com>
8453
8454 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
8455 ada_is_fixed_point_type. Update all callers.
8456 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
8457 all callers.
8458 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
8459 Update all callers.
8460 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
8461 print_fixed_point_type. Update all callers.
8462 * ada-valprint.c (ada_value_print_num): Replace call to
8463 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
8464
8465 2020-05-14 Kevin Buettner <kevinb@redhat.com>
8466
8467 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
8468 processors.
8469 (cpu_supports_bts): Add CV_AMD case.
8470
8471 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8472 Simon Marchi <simon.marchi@efficios.com>
8473
8474 * infrun.c (stop_all_threads): Collect multiple wait events at
8475 each pass.
8476
8477 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
8478
8479 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8480 type::code instead.
8481
8482 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
8483
8484 * gdbtypes.h (struct type) <code, set_code>: New methods.
8485 (TYPE_CODE): Use type::code. Change all call sites used to set
8486 the code to use type::set_code instead.
8487
8488 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8489 Tom de Vries <tdevries@suse.de>
8490 Pedro Alves <palves@redhat.com>
8491
8492 PR threads/25478
8493 * infrun.c (stop_all_threads): Do NOT ignore
8494 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8495 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8496 received.
8497 (handle_no_resumed): Remove code handling a live inferior with no
8498 threads.
8499 * remote.c (has_single_non_exited_thread): New.
8500 (remote_target::update_thread_list): Do not delete a thread if is
8501 the last thread of the process.
8502 * thread.c (thread_select): Call delete_exited_threads instead of
8503 prune_threads.
8504
8505 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8506
8507 * infrun.c (stop_all_threads): Enable/disable thread events of all
8508 targets. Move a debug message denoting the end of the function
8509 into the SCOPED_EXIT block.
8510
8511 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8512
8513 * process-stratum-target.h: Include <set>.
8514 (all_non_exited_process_targets, switch_to_target_no_thread): New
8515 function declarations.
8516 * process-stratum-target.c (all_non_exited_process_targets)
8517 (switch_to_target_no_thread): New function implementations.
8518
8519 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8520
8521 * infrun.c (handle_inferior_event): Extract out a piece of code
8522 into...
8523 (mark_non_executing_threads): ...this new function.
8524
8525 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8526
8527 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
8528 use.
8529
8530 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8531
8532 * regcache.c (regcache_read_pc_protected): New function
8533 implementation that returns 0 if the PC cannot read via
8534 'regcache_read_pc'.
8535 * infrun.c (proceed): Call 'regcache_read_pc_protected'
8536 instead of 'regcache_read_pc'.
8537 (keep_going_pass_signal): Ditto.
8538
8539 2020-05-13 Tom Tromey <tromey@adacore.com>
8540
8541 * ada-lang.c (align_value): Remove.
8542 (ada_template_to_fixed_record_type_1): Use align_up.
8543
8544 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8545
8546 * async-event.c: Update the copyright year.
8547 * async-event.h: Update the copyright year.
8548
8549 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
8550
8551 * objfiles.h (is_addr_in_objfile,
8552 shared_objfile_contains_address_p): Return bool.
8553 * objfile.c (is_addr_in_objfile,
8554 shared_objfile_contains_address_p): Return bool.
8555
8556 2020-05-11 Tom Tromey <tromey@adacore.com>
8557
8558 * cli/cli-cmds.c (info_command): Restore.
8559 (_initialize_cli_cmds): Use add_prefix_command for "info".
8560 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
8561
8562 2020-05-11 Tom Tromey <tromey@adacore.com>
8563
8564 * ada-lang.c (ada_value_primitive_field): Now public.
8565 * ada-lang.h (ada_value_primitive_field): Declare.
8566 * ada-valprint.c (print_field_values): Use
8567 ada_value_primitive_field for wrapper fields.
8568
8569 2020-05-11 Tom de Vries <tdevries@suse.de>
8570
8571 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
8572 MODULE_DOMAIN.
8573
8574 2020-05-11 Tom de Vries <tdevries@suse.de>
8575
8576 PR symtab/25941
8577 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
8578 with length 0, if not gdb-produced.
8579 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
8580
8581 2020-05-09 Tom de Vries <tdevries@suse.de>
8582
8583 PR gdb/25955
8584 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
8585 calculation.
8586
8587 2020-05-09 Tom Tromey <tom@tromey.com>
8588
8589 * top.c (server_command): Now bool.
8590 * top.h (server_command): Now bool.
8591
8592 2020-05-08 Tom Tromey <tromey@adacore.com>
8593
8594 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
8595 already being processed.
8596
8597 2020-05-08 Tom Tromey <tom@tromey.com>
8598
8599 * printcmd.c (struct display) <next>: Remove.
8600 <display>: New constructor.
8601 <exp_string>: Now a std::string.
8602 <enabled_p>: Now a bool.
8603 (display_number): Move definition earlier.
8604 (displays): Rename from display_chain. Now a std::vector.
8605 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
8606 (display_command): Update.
8607 (do_one_display, disable_display)
8608 (enable_disable_display_command, do_enable_disable_display):
8609 Update.
8610 (free_display): Remove.
8611 (clear_displays): Rewrite.
8612 (delete_display): Update.
8613 (map_display_numbers): Use function_view. Remove "data"
8614 parameter. Update.
8615 (do_delete_display): Remove.
8616 (undisplay_command): Update.
8617 (do_one_display, do_displays, disable_display)
8618 (info_display_command): Update.
8619 (do_enable_disable_display): Remove.
8620 (enable_disable_display_command)
8621 (clear_dangling_display_expressions): Update.
8622
8623 2020-05-08 Tom Tromey <tom@tromey.com>
8624
8625 * symtab.c (set_symbol_cache_size)
8626 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
8627 (maintenance_print_symbol_cache_statistics): Update.
8628 * symmisc.c (print_symbol_bcache_statistics)
8629 (print_objfile_statistics, maintenance_print_objfiles)
8630 (maintenance_info_symtabs, maintenance_check_symtabs)
8631 (maintenance_expand_symtabs, maintenance_info_line_tables):
8632 Update.
8633 * symfile-debug.c (set_debug_symfile): Update.
8634 * source.c (forget_cached_source_info): Update.
8635 * python/python.c (gdbpy_progspaces): Update.
8636 * psymtab.c (maintenance_info_psymtabs): Update.
8637 * probe.c (parse_probes): Update.
8638 * linespec.c (iterate_over_all_matching_symtabs)
8639 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
8640 * guile/scm-progspace.c (gdbscm_progspaces): Update.
8641 * exec.c (exec_target::close): Update.
8642 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
8643 * breakpoint.c (print_one_breakpoint_location)
8644 (create_longjmp_master_breakpoint)
8645 (create_std_terminate_master_breakpoint): Update.
8646 * progspace.c (program_spaces): Now a std::vector.
8647 (maybe_new_address_space): Update.
8648 (add_program_space): Remove.
8649 (program_space::program_space): Update.
8650 (remove_program_space): Update.
8651 (number_of_program_spaces): Remove.
8652 (print_program_space, update_address_spaces): Update.
8653 * progspace.h (program_spaces): Change type.
8654 (ALL_PSPACES): Remove.
8655 (number_of_program_spaces): Don't declare.
8656 (struct program_space) <next>: Remove.
8657
8658 2020-05-08 Tom Tromey <tom@tromey.com>
8659
8660 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
8661 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
8662 (enable_break): Update.
8663 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
8664 (frv_fdpic_find_canonical_descriptor): Update.
8665 (frv_fetch_objfile_link_map): Update.
8666 * progspace.c (program_space::free_all_objfiles): Update.
8667 (program_space::solibs): New method.
8668 * progspace.h (struct program_space) <solibs>: New method.
8669 * solist.h (master_so_list): Don't declare.
8670 (ALL_SO_LIBS): Remove.
8671 * solib.h (so_list_head): Remove.
8672 (update_solib_list): Update comment.
8673 * solib.c (master_so_list): Remove.
8674 (solib_used, update_solib_list, solib_add)
8675 (info_sharedlibrary_command, clear_solib)
8676 (reload_shared_libraries_1, remove_user_added_objfile): Update.
8677
8678 2020-05-08 Tom Tromey <tom@tromey.com>
8679
8680 * extension.c (extension_languages): Now a std::array.
8681 (ALL_EXTENSION_LANGUAGES): Remove.
8682 (get_ext_lang_defn, get_ext_lang_of_file)
8683 (eval_ext_lang_from_control_command): Update.
8684 (finish_ext_lang_initialization)
8685 (auto_load_ext_lang_scripts_for_objfile)
8686 (ext_lang_type_printers::ext_lang_type_printers)
8687 (apply_ext_lang_type_printers)
8688 (ext_lang_type_printers::~ext_lang_type_printers)
8689 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
8690 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
8691 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
8692 (get_matching_xmethod_workers, ext_lang_colorize)
8693 (ext_lang_before_prompt): Update.
8694 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
8695
8696 2020-05-08 Tom Tromey <tom@tromey.com>
8697
8698 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
8699 overload.
8700 <swap_string, m_string>: Remove.
8701 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
8702 Update.
8703 * stabsread.c (define_symbol, read_type): Update.
8704 * linespec.c (find_linespec_symbols): Update.
8705 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
8706 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
8707 * dbxread.c (read_dbx_symtab): Update.
8708 * cp-support.h (cp_canonicalize_string_full)
8709 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
8710 Return unique_xmalloc_ptr.
8711 * cp-support.c (inspect_type): Update.
8712 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
8713 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
8714 Likewise.
8715 * c-typeprint.c (print_name_maybe_canonical): Update.
8716 * break-catch-throw.c (check_status_exception_catchpoint):
8717 Update.
8718
8719 2020-05-08 Tom de Vries <tdevries@suse.de>
8720
8721 * infrun.c (follow_fork): Copy current_line and current_symtab to
8722 child thread.
8723
8724 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8725
8726 * async-event.c (struct async_signal_handler, struct
8727 async_event_handler): Reformat, remove typedef.
8728
8729 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8730
8731 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
8732 access thistype->main_type->dyn_prop_list directly.
8733
8734 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8735
8736 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
8737 (remove_dyn_prop): Remove. Update all users to use
8738 type::remove_dyn_prop.
8739 * gdbtypes.c (remove_dyn_prop): Rename to...
8740 (type::remove_dyn_prop): ... this.
8741
8742 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
8743
8744 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
8745 (add_dyn_prop): Remove. Update all users to use
8746 type::add_dyn_prop.
8747 * gdbtypes.c (add_dyn_prop): Rename to...
8748 (type::add_dyn_prop): ... this.
8749
8750 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8751
8752 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
8753 (get_dyn_prop): Remove. Update all users to use
8754 type::dyn_prop.
8755 * gdbtypes.c (get_dyn_prop): Rename to...
8756 (type::dyn_prop): ... this.
8757
8758 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
8759
8760 * gdbtypes.h (struct main_type) <flag_static>: Remove.
8761
8762 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
8763
8764 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
8765 instruction, skip it if it's there.
8766
8767 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
8768
8769 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
8770
8771 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
8772
8773 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
8774 * gdbtypes.c (recursive_dump_type): Remove use of
8775 TYPE_INCOMPLETE.
8776
8777 2020-05-03 Tom Tromey <tom@tromey.com>
8778
8779 * breakpoint.c (catch_command, tcatch_command): Remove.
8780 (_initialize_breakpoint): Use add_basic_prefix_cmd,
8781 add_show_prefix_cmd.
8782 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
8783 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
8784 Remove.
8785 (add_internal_problem_command): Use add_basic_prefix_cmd,
8786 add_show_prefix_cmd.
8787 * mips-tdep.c (set_mipsfpu_command): Remove.
8788 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
8789 * dwarf2/index-cache.c (set_index_cache_command): Remove.
8790 (_initialize_index_cache): Use add_basic_prefix_cmd.
8791 * memattr.c (dummy_cmd): Remove.
8792 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
8793 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
8794 (_initialize_tui_win): Use add_basic_prefix_cmd,
8795 add_show_prefix_cmd.
8796 * cli/cli-logging.c (set_logging_command): Remove.
8797 (_initialize_cli_logging): Use add_basic_prefix_cmd,
8798 add_show_prefix_cmd.
8799 (show_logging_command): Remove.
8800 * target.c (target_command): Remove.
8801 (add_target): Use add_basic_prefix_cmd.
8802
8803 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
8804
8805 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
8806
8807 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8808
8809 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
8810 info_command.
8811
8812 2020-04-30 Kamil Rytarowski <n54@gmx.com>
8813
8814 * nbsd-nat.c (nbsd_enable_proc_events)
8815 (nbsd_nat_target::post_startup_inferior): Add.
8816 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
8817 (nbsd_nat_target::update_thread_list): Rewrite.
8818 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
8819 "PTRACE_LWP_CREATE".
8820 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
8821
8822 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8823
8824 * stack.c (_initialize_stack): Remove duplicated creation
8825 of "frame" command and "f" alias.
8826
8827 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
8828
8829 PR gdb/18706
8830 * gdbtypes.c (check_typedef): Calculate size of array of
8831 stubbed type.
8832
8833 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
8834
8835 PR gdb/15559
8836 * i386-tdep.c (i386_push_dummy_call): Call
8837 i386_thiscall_push_dummy_call.
8838 (i386_thiscall_push_dummy_call): New function.
8839 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
8840 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
8841 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
8842
8843 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8844
8845 * gdbarch.sh (do_read): Add shellcheck disable directive for
8846 warning SC2162.
8847
8848 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8849
8850 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
8851 "referenced but not assigned" warning.
8852
8853 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8854
8855 * gdbarch.sh: Remove code that sets fallbackdefault.
8856
8857 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8858
8859 * gdbarch.sh: Use shell operators && and || instead of
8860 -a and -o.
8861
8862 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8863
8864 * gdbarch.sh: Use $(...) instead of `...`.
8865
8866 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8867
8868 * gdbarch.sh: Use double quotes around variables.
8869
8870 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8871
8872 * gdbarch.sh: Use %s with printf, instead of variables in the
8873 format string.
8874
8875 2020-04-29 Tom Tromey <tromey@adacore.com>
8876
8877 PR ada/25875:
8878 * dwarf2/read.c (update_enumeration_type_from_children): Compute
8879 type fields here.
8880 (read_enumeration_type): Call
8881 update_enumeration_type_from_children later. Update comments.
8882 (process_enumeration_scope): Don't create type fields.
8883
8884 2020-04-29 Kamil Rytarowski <n54@gmx.com>
8885
8886 * nbsd-tdep.c: Include "xml-syscall.h".
8887 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
8888
8889 2020-04-29 Kamil Rytarowski <n54@gmx.com>
8890
8891 * nbsd-nat.c: Include "sys/wait.h".
8892 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
8893 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
8894 (nbsd_nat_target::remove_exec_catchpoint)
8895 (nbsd_nat_target::set_syscall_catchpoint): Add.
8896 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
8897 (nbsd_nat_target::insert_exec_catchpoint)
8898 (nbsd_nat_target::remove_exec_catchpoint)
8899 (nbsd_nat_target::set_syscall_catchpoint): Add.
8900 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
8901 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
8902 `nbsd_get_syscall_number'.
8903
8904 2020-04-29 Tom Tromey <tom@tromey.com>
8905
8906 * stack.c (print_block_frame_labels): Remove.
8907
8908 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
8909
8910 PR gdb/17320
8911 * ada-valprint.c (val_print_packed_array_elements): Move array
8912 end bracket to new line.
8913 (ada_val_print_string): Remove extra spaces before first array
8914 element.
8915 * c-valprint.c (c_value_print_array): Likewise.
8916 * m2-valprint.c (m2_print_array_contents): Likewise.
8917 (m2_value_print_inner): Likewise.
8918 * p-valprint.c (pascal_value_print_inner): Likewise.
8919 * valprint.c (generic_val_print_array): Likewise.
8920 (value_print_array_elements): Move first array element and array
8921 end bracket to new line.
8922
8923 2020-04-29 Tom de Vries <tdevries@suse.de>
8924
8925 PR symtab/25889
8926 * linespec.c (find_method): Fix ix calculation.
8927
8928 2020-04-28 Kamil Rytarowski <n54@gmx.com>
8929
8930 * syscalls/update-netbsd.sh: New file.
8931 * syscalls/netbsd.xml: Regenerate.
8932 * data-directory/Makefile.in: Register `netbsd.xml' in
8933 `SYSCALLS_FILES'.
8934
8935 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
8936
8937 * syscalls/update-freebsd.sh: Add double quotes.
8938
8939 2020-04-28 Tom Tromey <tom@tromey.com>
8940
8941 * NEWS: Update.
8942 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
8943 (cmdpy_init): Allow class_tui.
8944
8945 2020-04-28 Mark Williams <mark@myosotissp.com>
8946
8947 PR gdb/24480
8948 * dwarf2read.c: Add missing assingments to list_in_scope when
8949 start_symtab was already called.
8950
8951 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
8952
8953 PR gdb/25881
8954 * dwarf2/read.c (offset_map_type): Use
8955 gdb:hash_enum<sect_offset> as hash function.
8956
8957 2020-04-28 Tom de Vries <tdevries@suse.de>
8958
8959 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
8960 with DW_AT_signature.
8961
8962 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
8963
8964 * configure.ac: Remove check for fs_base/gs_base in
8965 user_regs_struct.
8966 * configure: Re-generate.
8967 * config.in: Re-generate.
8968 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
8969 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
8970 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
8971
8972 2020-04-27 Luis Machado <luis.machado@linaro.org>
8973
8974 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
8975 problematic inline frame unwinding situation.
8976 * frame.c (frame_id_computed_p): New function.
8977 * frame.h (frame_id_computed_p): New prototype.
8978
8979 2020-04-26 Tom Tromey <tom@tromey.com>
8980
8981 * command.h (enum command_class) <class_pseudo>: Remove.
8982
8983 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8984
8985 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
8986 and whitespace.
8987
8988 2020-04-25 Kamil Rytarowski <n54@gmx.com>
8989
8990 * inf-ptrace.c (inf_ptrace_target::wait): Remove
8991 `PT_GET_PROCESS_STATE' block.
8992
8993 2020-04-24 Tom Tromey <tom@tromey.com>
8994
8995 * symtab.h (symbol_get_demangled_name): Don't declare.
8996 * symtab.c (symbol_get_demangled_name): Remove.
8997 (general_symbol_info::natural_name)
8998 (general_symbol_info::demangled_name): Update.
8999
9000 2020-04-24 Tom Tromey <tom@tromey.com>
9001
9002 PR rust/25025:
9003 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
9004
9005 2020-04-24 Tom Tromey <tom@tromey.com>
9006
9007 PR symtab/12707:
9008 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
9009 exists.
9010 (new_symbol): Likewise.
9011 * compile/compile-object-load.c (get_out_value_type): Use
9012 symbol_matches_search_name.
9013
9014 2020-04-24 Tom Tromey <tom@tromey.com>
9015
9016 * dwarf2/read.c (add_partial_symbol): Do not call
9017 compute_and_set_names.
9018
9019 2020-04-24 Tom Tromey <tom@tromey.com>
9020
9021 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
9022 overload.
9023
9024 2020-04-24 Tom Tromey <tom@tromey.com>
9025
9026 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
9027 (add_psymbol_to_list): New overload. Make old overload call new
9028 one.
9029 * psympriv.h (add_psymbol_to_list): New overload.
9030
9031 2020-04-24 Tom Tromey <tom@tromey.com>
9032
9033 * dwarf2/read.c (partial_die_info::read) <case
9034 DW_AT_linkage_name>: Use value_as_string.
9035 (dwarf2_string_attr): Use value_as_string.
9036 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
9037 method.
9038 * dwarf2/attribute.c (attribute::value_as_string): New method.
9039
9040 2020-04-24 Tom Tromey <tom@tromey.com>
9041
9042 * symtab.c (general_symbol_info::natural_name)
9043 (general_symbol_info::demangled_name): Check for language_rust.
9044
9045 2020-04-24 Tom Tromey <tom@tromey.com>
9046
9047 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
9048 (dwarf2_physname): ... from here.
9049 (partial_die_info::read): Add Rust "{" hack.
9050
9051 2020-04-24 Tom Tromey <tom@tromey.com>
9052
9053 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
9054 method.
9055 (symbol_set_demangled_name): Don't declare.
9056 * symtab.c (general_symbol_info::set_demangled_name): Rename from
9057 symbol_set_demangled_name.
9058 (general_symbol_info::set_language)
9059 (general_symbol_info::compute_and_set_names): Update.
9060 * minsyms.c (minimal_symbol_reader::install): Update.
9061 * dwarf2/read.c (new_symbol): Update.
9062
9063 2020-04-24 Tom Tromey <tromey@adacore.com>
9064
9065 PR python/23662:
9066 * python/py-type.c (convert_field): Handle
9067 FIELD_LOC_KIND_DWARF_BLOCK.
9068 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
9069 (typy_get_dynamic): Nw function.
9070 (type_object_getset): Add "dynamic".
9071 * NEWS: Add entry.
9072
9073 2020-04-24 Tom Tromey <tromey@adacore.com>
9074
9075 * ada-typeprint.c (print_choices, print_variant_part)
9076 (print_record_field_types_dynamic): New functions.
9077 (print_record_field_types): Use print_record_field_types_dynamic.
9078
9079 2020-04-24 Tom Tromey <tromey@adacore.com>
9080
9081 * dwarf2/read.c (handle_data_member_location): New overload.
9082 (dwarf2_add_field): Use it.
9083 (decode_locdesc): Add "computed" parameter. Update comment.
9084 * gdbtypes.c (is_dynamic_type_internal): Also look for
9085 FIELD_LOC_KIND_DWARF_BLOCK.
9086 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
9087 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
9088 virtual base classes.
9089 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
9090 FIELD_LOC_KIND_DWARF_BLOCK.
9091
9092 2020-04-24 Tom Tromey <tromey@adacore.com>
9093
9094 * dwarf2/read.c (read_structure_type): Handle dynamic length.
9095 * gdbtypes.c (is_dynamic_type_internal): Check
9096 TYPE_HAS_DYNAMIC_LENGTH.
9097 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
9098 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
9099 New macros.
9100 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
9101 constant.
9102
9103 2020-04-24 Tom Tromey <tromey@adacore.com>
9104
9105 * dwarf2/read.c (struct variant_field): Rewrite.
9106 (struct variant_part_builder): New.
9107 (struct nextfield): Remove "variant" field. Add "offset".
9108 (struct field_info): Add "current_variant_part" and
9109 "variant_parts".
9110 (alloc_discriminant_info): Remove.
9111 (alloc_rust_variant): New function.
9112 (quirk_rust_enum): Update.
9113 (dwarf2_add_field): Set "offset" member. Don't handle
9114 DW_TAG_variant_part.
9115 (offset_map_type): New typedef.
9116 (convert_variant_range, create_one_variant)
9117 (create_one_variant_part, create_variant_parts)
9118 (add_variant_property): New functions.
9119 (dwarf2_attach_fields_to_type): Call add_variant_property.
9120 (read_structure_type): Don't handle DW_TAG_variant_part.
9121 (handle_variant_part, handle_variant): New functions.
9122 (handle_struct_member_die): Use them.
9123 (process_structure_scope): Don't handle variant parts.
9124 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
9125 (struct discriminant_info): Remove.
9126 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
9127 (struct main_type) <flag_discriminated_union>: Remove.
9128 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
9129 (rust_enum_variant): Return int. Remove "contents". Rewrite.
9130 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
9131 Update.
9132 * valops.c (value_union_variant): Remove.
9133 * value.h (value_union_variant): Don't declare.
9134
9135 2020-04-24 Tom Tromey <tromey@adacore.com>
9136
9137 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
9138 (ada_value_primitive_packed_val): Update.
9139 * ada-valprint.c (ada_value_print_1): Update.
9140 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
9141 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
9142 just an address. Use evaluate_for_locexpr_baton.
9143 (dwarf2_evaluate_property): Update.
9144 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
9145 array_view.
9146 * findvar.c (default_read_var_value): Update.
9147 * gdbtypes.c (compute_variant_fields_inner)
9148 (resolve_dynamic_type_internal): Update.
9149 (resolve_dynamic_type): Change type of valaddr parameter.
9150 * gdbtypes.h (resolve_dynamic_type): Update.
9151 * valarith.c (value_subscripted_rvalue): Update.
9152 * value.c (value_from_contents_and_address): Update.
9153
9154 2020-04-24 Tom Tromey <tromey@adacore.com>
9155
9156 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
9157 "push_initial_value" parameter.
9158 (dwarf2_evaluate_property): Likewise.
9159 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
9160
9161 2020-04-24 Tom Tromey <tromey@adacore.com>
9162
9163 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
9164 (variant::matches, compute_variant_fields_recurse)
9165 (compute_variant_fields_inner, compute_variant_fields): New
9166 functions.
9167 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
9168 Use resolved_type after type is made.
9169 (operator==): Add new cases.
9170 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
9171 (struct discriminant_range, struct variant, struct variant_part):
9172 New.
9173 (union dynamic_prop_data) <variant_parts, original_type>: New
9174 members.
9175 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
9176 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
9177 constants.
9178 * value.c (unpack_bits_as_long): Now public.
9179 * value.h (unpack_bits_as_long): Declare.
9180
9181 2020-04-24 Tom Tromey <tromey@adacore.com>
9182
9183 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
9184 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
9185
9186 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
9187
9188 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
9189
9190 2020-04-24 Kamil Rytarowski <n54@gmx.com>
9191
9192 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
9193 (remove_fork_catchpoint, post_startup_inferior)
9194 (post_attach): Move...
9195 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
9196 (remove_fork_catchpoint, post_startup_inferior)
9197 (post_attach): ...here.
9198 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
9199 (remove_fork_catchpoint, post_startup_inferior)
9200 (post_attach): Move...
9201 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
9202 (remove_fork_catchpoint, post_startup_inferior)
9203 (post_attach): ...here.
9204
9205 2020-04-24 Tom Tromey <tromey@adacore.com>
9206
9207 * nat/windows-nat.h (struct windows_thread_info)
9208 <pc_adjusted>: New member.
9209 * windows-nat.c (windows_fetch_one_register): Check
9210 pc_adjusted.
9211 (windows_nat_target::get_windows_debug_event)
9212 (windows_nat_target::wait): Set pc_adjusted.
9213
9214 2020-04-24 Tom de Vries <tdevries@suse.de>
9215
9216 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
9217 Run gdb-add-index inside temp dir.
9218
9219 2020-04-23 Tom Tromey <tromey@adacore.com>
9220
9221 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
9222 in loop.
9223
9224 2020-04-23 Luis Machado <luis.machado@linaro.org>
9225
9226 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9227 get_frame_register instead of gdbarch_unwind_pc.
9228
9229 2020-04-23 Tom de Vries <tdevries@suse.de>
9230
9231 * symtab.c (lookup_global_symbol): Prefer def over decl.
9232
9233 2020-04-23 Tom de Vries <tdevries@suse.de>
9234
9235 PR symtab/25807
9236 * block.c (best_symbol, better_symbol): Promote to external.
9237 * block.h (best_symbol, better_symbol): Declare.
9238 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
9239 decl.
9240
9241 2020-04-23 Tom Tromey <tromey@adacore.com>
9242
9243 PR ada/25837:
9244 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
9245 "const char *", not a "const std::string &".
9246 <name_and_matcher::operator==>: Update.
9247 * unittests/lookup_name_info-selftests.c: Change type of
9248 "result".
9249
9250 2020-04-23 Tom Tromey <tom@tromey.com>
9251
9252 * inferior.h (iterate_over_inferiors): Don't declare.
9253 * inferior.c (iterate_over_inferiors): Remove.
9254 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
9255 Remove.
9256 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
9257 use iterate_over_inferiors.
9258 (darwin_resume_inferior_it)
9259 (struct resume_inferior_threads_param)
9260 (darwin_resume_inferior_threads_it): Remove.
9261 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
9262
9263 2020-04-23 Tom de Vries <tdevries@suse.de>
9264
9265 * blockframe.c (find_pc_partial_function): Use
9266 find_pc_sect_compunit_symtab rather than
9267 objfile->sf->qf->find_pc_sect_compunit_symtab.
9268
9269 2020-04-22 Tom de Vries <tdevries@suse.de>
9270
9271 PR symtab/25764
9272 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
9273 in psymtabs.
9274
9275 2020-04-22 Tom de Vries <tdevries@suse.de>
9276
9277 PR symtab/25801
9278 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
9279 symtabs.
9280
9281 2020-04-22 Tom de Vries <tdevries@suse.de>
9282
9283 PR symtab/25700
9284 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
9285 CU if already created.
9286
9287 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9288
9289 * infrun.c (displaced_step_fixup): Switch to the event_thread
9290 before calling displaced_step_restore, not after.
9291
9292 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9293
9294 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
9295 its inferior is not recorded by us.
9296 (record_btrace_target_open): Replace call to
9297 all_non_exited_threads () with call to current_inferior
9298 ()->non_exited_threads ().
9299 (record_btrace_target::stop_recording): Likewise.
9300 (record_btrace_target::close): Likewise.
9301 (record_btrace_target::wait): Likewise.
9302 (record_btrace_target::record_stop_replaying): Likewise.
9303
9304 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9305
9306 * btrace.c (btrace_enable): Throw an error on double enables and
9307 when enabling recording fails.
9308 (btrace_disable): Throw an error if the thread is not recorded.
9309
9310 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9311
9312 * record-btrace.c (record_btrace_target::fetch_registers): Forward
9313 request if we do not have a thread_info.
9314
9315 2020-04-21 Tom de Vries <tdevries@suse.de>
9316
9317 PR gdb/25471
9318 * thread.c
9319 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
9320 exception in get_frame_id.
9321
9322 2020-04-20 Tom Tromey <tromey@adacore.com>
9323
9324 * python/python.c (struct gdbpy_event): Mark move constructor as
9325 noexcept.
9326 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
9327 constructor as noexcept.
9328 * completer.h (struct completion_result): Mark move constructor as
9329 noexcept.
9330 * completer.c (completion_result::completion_result): Use
9331 initialization style. Don't call reset_match_list.
9332
9333 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
9334
9335 * MAINTAINERS (Write After Approval): Add myself.
9336
9337 2020-04-18 Tom Tromey <tom@tromey.com>
9338
9339 * windows-tdep.c (init_w32_command_list)
9340 (w32_prefix_command_valid): Restore.
9341 (_initialize_windows_tdep): Call init_w32_command_list.
9342
9343 2020-04-18 Tom Tromey <tom@tromey.com>
9344
9345 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
9346 * value.c (value_fn_field): Update.
9347 * valops.c (find_function_in_inferior)
9348 (value_allocate_space_in_inferior): Update.
9349 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9350 Update.
9351 * tui/tui-source.c (tui_source_window::set_contents): Update.
9352 * symtab.c (lookup_global_or_static_symbol)
9353 (find_function_start_sal_1, skip_prologue_sal)
9354 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
9355 * symmisc.c (dump_msymbols, dump_symtab_1)
9356 (maintenance_print_one_line_table): Update.
9357 * symfile.c (init_entry_point_info, section_is_mapped)
9358 (list_overlays_command, simple_read_overlay_table)
9359 (simple_overlay_update_1): Update.
9360 * stap-probe.c (handle_stap_probe): Update.
9361 * stabsread.c (dbx_init_float_type, define_symbol)
9362 (read_one_struct_field, read_enum_type, read_range_type): Update.
9363 * source.c (info_line_command): Update.
9364 * python/python.c (gdbpy_source_objfile_script)
9365 (gdbpy_execute_objfile_script): Update.
9366 * python/py-type.c (save_objfile_types): Update.
9367 * python/py-objfile.c (py_free_objfile): Update.
9368 * python/py-inferior.c (python_new_objfile): Update.
9369 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
9370 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
9371 (maintenance_check_psymtabs): Update.
9372 * printcmd.c (info_address_command): Update.
9373 * objfiles.h (struct objfile) <arch>: New method, from
9374 get_objfile_arch.
9375 (get_objfile_arch): Don't declare.
9376 * objfiles.c (get_objfile_arch): Remove.
9377 (filter_overlapping_sections): Update.
9378 * minsyms.c (msymbol_is_function): Update.
9379 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
9380 (output_nondebug_symbol): Update.
9381 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
9382 (mdebug_expand_psymtab): Update.
9383 * machoread.c (macho_add_oso_symfile): Update.
9384 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
9385 Update.
9386 * linux-fork.c (checkpoint_command): Update.
9387 * linespec.c (convert_linespec_to_sals): Update.
9388 * jit.c (finalize_symtab): Update.
9389 * infrun.c (insert_exception_resume_from_probe): Update.
9390 * ia64-tdep.c (ia64_find_unwind_table): Update.
9391 * hppa-tdep.c (internalize_unwinds): Update.
9392 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
9393 Update.
9394 * gcore.c (call_target_sbrk): Update.
9395 * elfread.c (record_minimal_symbol, elf_symtab_read)
9396 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
9397 (elf_gnu_ifunc_resolve_by_got): Update.
9398 * dwarf2/read.c (create_addrmap_from_index)
9399 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9400 (read_debug_names_from_section)
9401 (process_psymtab_comp_unit_reader, add_partial_symbol)
9402 (add_partial_subprogram, process_full_comp_unit)
9403 (read_file_scope, read_func_scope, read_lexical_block_scope)
9404 (read_call_site_scope, dwarf2_ranges_read)
9405 (dwarf2_record_block_ranges, dwarf2_add_field)
9406 (mark_common_block_symbol_computed, read_tag_pointer_type)
9407 (read_tag_string_type, dwarf2_init_float_type)
9408 (dwarf2_init_complex_target_type, read_base_type)
9409 (partial_die_info::read, partial_die_info::read)
9410 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
9411 (dwarf2_fetch_die_loc_sect_off): Update.
9412 * dwarf2/loc.c (dwarf2_find_location_expression)
9413 (class dwarf_evaluate_loc_desc, rw_pieced_value)
9414 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
9415 (dwarf2_loc_desc_get_symbol_read_needs)
9416 (locexpr_describe_location_piece, locexpr_describe_location_1)
9417 (loclist_describe_location): Update.
9418 * dwarf2/index-write.c (write_debug_names): Update.
9419 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
9420 * dtrace-probe.c (dtrace_process_dof): Update.
9421 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
9422 (process_one_symbol): Update.
9423 * ctfread.c (ctf_init_float_type, read_base_type): Update.
9424 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
9425 (coff_read_enum_type): Update.
9426 * cli/cli-cmds.c (edit_command, list_command): Update.
9427 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
9428 * breakpoint.c (create_overlay_event_breakpoint)
9429 (create_longjmp_master_breakpoint)
9430 (create_std_terminate_master_breakpoint)
9431 (create_exception_master_breakpoint, get_sal_arch): Update.
9432 * block.c (block_gdbarch): Update.
9433 * annotate.c (annotate_source_line): Update.
9434
9435 2020-04-17 Tom Tromey <tromey@adacore.com>
9436
9437 * auto-load.c (show_auto_load_cmd): Remove.
9438 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
9439 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
9440 (maintenance_print_arc_command): Remove.
9441 * tui/tui-win.c (tui_command): Remove.
9442 (tui_get_cmd_list): Use add_basic_prefix_cmd.
9443 * tui/tui-layout.c (tui_layout_command): Remove.
9444 (_initialize_tui_layout): Use add_basic_prefix_cmd.
9445 * python/python.c (user_set_python, user_show_python): Remove.
9446 (_initialize_python): Use add_basic_prefix_cmd,
9447 add_show_prefix_cmd.
9448 * guile/guile.c (set_guile_command, show_guile_command): Remove.
9449 (install_gdb_commands): Use add_basic_prefix_cmd,
9450 add_show_prefix_cmd.
9451 (info_guile_command): Remove.
9452 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
9453 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
9454 add_show_prefix_cmd.
9455 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
9456 Remove do_set and do_show parameters.
9457 * cli/cli-style.c (set_style, show_style): Remove.
9458 (_initialize_cli_style): Use add_basic_prefix_cmd,
9459 add_show_prefix_cmd.
9460 (cli_style_option::add_setshow_commands): Remove do_set and
9461 do_show parameters.
9462 (cli_style_option::add_setshow_commands): Use
9463 add_basic_prefix_cmd, add_show_prefix_cmd.
9464 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
9465 (set_style_name): Remove.
9466 * cli/cli-dump.c (dump_command, append_command): Remove.
9467 (srec_dump_command, ihex_dump_command, verilog_dump_command)
9468 (tekhex_dump_command, binary_dump_command)
9469 (binary_append_command): Remove.
9470 (_initialize_cli_dump): Use add_basic_prefix_cmd.
9471 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9472 (init_w32_command_list): Remove; move into ...
9473 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9474 * valprint.c (set_print, show_print, set_print_raw)
9475 (show_print_raw): Remove.
9476 (_initialize_valprint): Use add_basic_prefix_cmd,
9477 add_show_prefix_cmd.
9478 * typeprint.c (set_print_type, show_print_type): Remove.
9479 (_initialize_typeprint): Use add_basic_prefix_cmd,
9480 add_show_prefix_cmd.
9481 * record.c (set_record_command, show_record_command): Remove.
9482 (_initialize_record): Use add_basic_prefix_cmd,
9483 add_show_prefix_cmd.
9484 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9485 add_show_prefix_cmd.
9486 (info_command, show_command, set_debug, show_debug): Remove.
9487 * top.h (set_history, show_history): Don't declare.
9488 * top.c (set_history, show_history): Remove.
9489 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9490 (unset_tdesc_cmd): Remove.
9491 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9492 add_show_prefix_cmd.
9493 * symtab.c (info_module_command): Remove.
9494 (_initialize_symtab): Use add_basic_prefix_cmd.
9495 * symfile.c (overlay_command): Remove.
9496 (_initialize_symfile): Use add_basic_prefix_cmd.
9497 * sparc64-tdep.c (info_adi_command): Remove.
9498 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9499 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9500 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9501 add_show_prefix_cmd.
9502 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9503 (_initialize_serial): Use add_basic_prefix_cmd,
9504 add_show_prefix_cmd.
9505 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
9506 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
9507 add_show_prefix_cmd.
9508 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
9509 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
9510 add_show_prefix_cmd.
9511 * riscv-tdep.c (show_riscv_command, set_riscv_command)
9512 (show_debug_riscv_command, set_debug_riscv_command): Remove.
9513 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
9514 add_show_prefix_cmd.
9515 * remote.c (remote_command, set_remote_cmd): Remove.
9516 (_initialize_remote): Use add_basic_prefix_cmd.
9517 * record-full.c (set_record_full_command)
9518 (show_record_full_command): Remove.
9519 (_initialize_record_full): Use add_basic_prefix_cmd,
9520 add_show_prefix_cmd.
9521 * record-btrace.c (cmd_set_record_btrace)
9522 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
9523 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
9524 (cmd_show_record_btrace_pt): Remove.
9525 (_initialize_record_btrace): Use add_basic_prefix_cmd,
9526 add_show_prefix_cmd.
9527 * ravenscar-thread.c (set_ravenscar_command)
9528 (show_ravenscar_command): Remove.
9529 (_initialize_ravenscar): Use add_basic_prefix_cmd,
9530 add_show_prefix_cmd.
9531 * mips-tdep.c (show_mips_command, set_mips_command)
9532 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
9533 add_show_prefix_cmd.
9534 * maint.c (maintenance_command, maintenance_info_command)
9535 (maintenance_check_command, maintenance_print_command)
9536 (maintenance_set_cmd, maintenance_show_cmd): Remove.
9537 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
9538 add_show_prefix_cmd.
9539 (show_per_command_cmd): Remove.
9540 * maint-test-settings.c (maintenance_set_test_settings_cmd):
9541 Remove.
9542 (maintenance_show_test_settings_cmd): Remove.
9543 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
9544 add_show_prefix_cmd.
9545 * maint-test-options.c (maintenance_test_options_command):
9546 Remove.
9547 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
9548 * macrocmd.c (macro_command): Remove
9549 (_initialize_macrocmd): Use add_basic_prefix_cmd.
9550 * language.c (set_check, show_check): Remove.
9551 (_initialize_language): Use add_basic_prefix_cmd,
9552 add_show_prefix_cmd.
9553 * infcmd.c (unset_command): Remove.
9554 (_initialize_infcmd): Use add_basic_prefix_cmd.
9555 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
9556 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
9557 add_show_prefix_cmd.
9558 * go32-nat.c (go32_info_dos_command): Remove.
9559 (_initialize_go32_nat): Use add_basic_prefix_cmd.
9560 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
9561 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
9562 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
9563 (_initialize_frame): Use add_basic_prefix_cmd,
9564 add_show_prefix_cmd.
9565 * dcache.c (set_dcache_command, show_dcache_command): Remove.
9566 (_initialize_dcache): Use add_basic_prefix_cmd,
9567 add_show_prefix_cmd.
9568 * cp-support.c (maint_cplus_command): Remove.
9569 (_initialize_cp_support): Use add_basic_prefix_cmd.
9570 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
9571 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
9572 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
9573 add_basic_prefix_cmd, add_show_prefix_cmd.
9574 * breakpoint.c (save_command): Remove.
9575 (_initialize_breakpoint): Use add_basic_prefix_cmd.
9576 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
9577 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
9578 add_show_prefix_cmd.
9579 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
9580 (set_ada_command, show_ada_command): Remove.
9581 (_initialize_ada_language): Use add_basic_prefix_cmd,
9582 add_show_prefix_cmd.
9583 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
9584
9585 2020-04-16 Kamil Rytarowski <n54@gmx.com>
9586
9587 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
9588 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
9589
9590 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9591
9592 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
9593 warning messages.
9594
9595 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9596
9597 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
9598 import table is not at beginning of .idata section.
9599
9600 2020-04-16 Pedro Alves <palves@redhat.com>
9601
9602 * inferior.c (delete_inferior): Use delete operator directly
9603 instead of delete_program_space.
9604 * progspace.c (add_program_space): New, factored out from
9605 program_space::program_space.
9606 (remove_program_space): New, factored out from
9607 delete_program_space.
9608 (program_space::program_space): Remove intro comment. Rewrite.
9609 (program_space::~program_space): Remove intro comment. Call
9610 remove_program_space.
9611 (delete_program_space): Delete.
9612 * progspace.h (program_space::program_space): Make explicit. Move
9613 intro comment here, adjusted.
9614 (program_space::~program_space): Move intro comment here,
9615 adjusted.
9616 (delete_program_space): Remove.
9617
9618 2020-04-16 Tom Tromey <tromey@adacore.com>
9619
9620 * windows-nat.c (windows_nat::handle_access_violation): New
9621 function.
9622 * nat/windows-nat.h (handle_access_violation): Declare.
9623 * nat/windows-nat.c (handle_exception): Move Cygwin code to
9624 windows-nat.c. Call handle_access_violation.
9625
9626 2020-04-16 Tom de Vries <tdevries@suse.de>
9627
9628 PR symtab/25791
9629 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
9630 CUs without psymtab.
9631
9632 2020-04-16 Kevin Buettner <kevinb@redhat.com>
9633
9634 * python/python.c (do_start_initialization): Don't call
9635 PyEval_InitThreads for Python 3.9 and beyond.
9636
9637 2020-04-15 Kamil Rytarowski <n54@gmx.com>
9638
9639 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
9640 thread functions.
9641 (obsd_nat_target::wait): Likewise.
9642
9643 2020-04-15 Tom Tromey <tromey@adacore.com>
9644
9645 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
9646 (DEBUG_EXCEPT): Use debug_printf.
9647
9648 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
9649
9650 * completer.c (class completion_tracker::completion_hash_entry)
9651 <hash_name>: New member function.
9652 (completion_tracker::discard_completions): New callback to hash a
9653 completion_hash_entry, pass this to htab_create_alloc.
9654
9655 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
9656
9657 * windows-nat.c (windows_make_so): Warn rather than stopping with
9658 an error if realpath() fails.
9659
9660 2020-04-14 Kamil Rytarowski <n54@gmx.com>
9661
9662 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
9663 (nbsd_nat_target::info_proc): Add do_status.
9664
9665 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
9666 Tom de Vries <tdevries@suse.de>
9667
9668 PR symtab/25718
9669 * psympriv.h (struct partial_symtab::read_symtab)
9670 (struct partial_symtab::expand_psymtab)
9671 (struct partial_symtab::read_dependencies): Update comments.
9672 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
9673 read_symtab for includer.
9674 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
9675 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
9676 (struct dwarf2_include_psymtab::m_readin): Remove.
9677 (struct dwarf2_include_psymtab::includer): New member function.
9678 (dwarf2_psymtab::expand_psymtab): Assert !readin.
9679
9680 2020-04-14 Tom de Vries <tdevries@suse.de>
9681
9682 PR symtab/25720
9683 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
9684 with NULL symbol_matcher and lookup_name.
9685 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
9686 and lookup_name.
9687 * dwarf2/read.c (dw2_expand_symtabs_matching)
9688 (dw2_debug_names_expand_symtabs_matching): Same.
9689 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
9690 Make lookup_name a pointer. Update comment.
9691 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
9692 lookup_name being a pointer.
9693 * symfile.c (expand_symtabs_matching): Same.
9694 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
9695 * linespec.c (iterate_over_all_matching_symtabs): Same.
9696
9697 2020-04-13 Tom Tromey <tom@tromey.com>
9698
9699 * run-on-main-thread.c: Update include.
9700 * unittests/main-thread-selftests.c: Update include.
9701 * tui/tui-win.c: Update include.
9702 * tui/tui-io.c: Update include.
9703 * tui/tui-interp.c: Update include.
9704 * tui/tui-hooks.c: Update include.
9705 * top.h: Update include.
9706 * top.c: Update include.
9707 * ser-base.c: Update include.
9708 * remote.c: Update include.
9709 * remote-notif.c: Update include.
9710 * remote-fileio.c: Update include.
9711 * record-full.c: Update include.
9712 * record-btrace.c: Update include.
9713 * python/python.c: Update include.
9714 * posix-hdep.c: Update include.
9715 * mingw-hdep.c: Update include.
9716 * mi/mi-main.c: Update include.
9717 * mi/mi-interp.c: Update include.
9718 * main.c: Update include.
9719 * linux-nat.c: Update include.
9720 * interps.c: Update include.
9721 * infrun.c: Update include.
9722 * inf-loop.c: Update include.
9723 * event-top.c: Update include.
9724 * event-loop.c: Move to ../gdbsupport/.
9725 * event-loop.h: Move to ../gdbsupport/.
9726 * async-event.h: Update include.
9727 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
9728
9729 2020-04-13 Tom Tromey <tom@tromey.com>
9730
9731 * tui/tui-win.c: Include async-event.h.
9732 * remote.c: Include async-event.h.
9733 * remote-notif.c: Include async-event.h.
9734 * record-full.c: Include async-event.h.
9735 * record-btrace.c: Include async-event.h.
9736 * infrun.c: Include async-event.h.
9737 * event-top.c: Include async-event.h.
9738 * event-loop.h: Move some declarations to async-event.h.
9739 * event-loop.c: Don't include ser-event.h or top.h. Move some
9740 code to async-event.c.
9741 * async-event.h: New file.
9742 * async-event.c: New file.
9743 * Makefile.in (COMMON_SFILES): Add async-event.c.
9744 (HFILES_NO_SRCDIR): Add async-event.h.
9745
9746 2020-04-13 Tom Tromey <tom@tromey.com>
9747
9748 * utils.c (flush_streams): New function.
9749 * event-loop.c (gdb_wait_for_event): Call flush_streams.
9750
9751 2020-04-13 Tom Tromey <tom@tromey.com>
9752
9753 * event-loop.c (handle_file_event): Use warning, not
9754 printf_unfiltered.
9755
9756 2020-04-13 Tom Tromey <tom@tromey.com>
9757
9758 * event-loop.c: Include <chrono>.
9759
9760 2020-04-13 Tom Tromey <tom@tromey.com>
9761
9762 * gdb_select.h: Move to ../gdbsupport/.
9763 * event-loop.c: Update include path.
9764 * top.c: Update include path.
9765 * ser-base.c: Update include path.
9766 * ui-file.c: Update include path.
9767 * ser-tcp.c: Update include path.
9768 * guile/scm-ports.c: Update include path.
9769 * posix-hdep.c: Update include path.
9770 * ser-unix.c: Update include path.
9771 * gdb_usleep.c: Update include path.
9772 * mingw-hdep.c: Update include path.
9773 * inflow.c: Update include path.
9774 * infrun.c: Update include path.
9775 * event-top.c: Update include path.
9776
9777 2020-04-13 Tom Tromey <tom@tromey.com>
9778
9779 * configure: Rebuild.
9780 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
9781
9782 2020-04-13 Tom Tromey <tom@tromey.com>
9783
9784 * event-loop.h (start_event_loop): Don't declare.
9785 * event-loop.c (start_event_loop): Move...
9786 * main.c (start_event_loop): ...here. Now static.
9787
9788 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
9789
9790 * MAINTAINERS: Update my email address.
9791
9792 2020-04-12 Kamil Rytarowski <n54@gmx.com>
9793
9794 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
9795 IP_ALL.
9796
9797 2020-04-12 Kamil Rytarowski <n54@gmx.com>
9798
9799 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
9800 (nbsd_nat_target::info_proc): Add do_cmdline.
9801
9802 2020-04-12 Kamil Rytarowski <n54@gmx.com>
9803
9804 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
9805 (nbsd_nat_target::info_proc): Add do_cwd.
9806
9807 2020-04-12 Kamil Rytarowski <n54@gmx.com>
9808
9809 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
9810
9811 2020-04-11 Kamil Rytarowski <n54@gmx.com>
9812
9813 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
9814 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
9815 (nbsd_nat_target::info_proc): New functions.
9816 * nbsd-nat.c (kinfo_get_vmmap): New function.
9817 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
9818 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
9819 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
9820 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
9821 functions.
9822 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
9823 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
9824 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
9825 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
9826 (KINFO_VME_FLAG_GROWS_DOWN): New.
9827
9828 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
9829
9830 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
9831 bit shift.
9832
9833 2020-04-10 Tom Tromey <tromey@adacore.com>
9834
9835 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
9836
9837 2020-04-10 Tom Tromey <tromey@adacore.com>
9838
9839 * symtab.c (get_symbol_address, get_msymbol_address): Skip
9840 separate debug files.
9841
9842 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
9843
9844 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9845 Move to...
9846 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9847 ... here.
9848 * windows-nat.c (windows_nat_target::get_windows_debug_event):
9849 Check for STATUS_WX86_BREAKPOINT.
9850 (windows_nat_target::wait): Same.
9851
9852 2020-04-10 Tom de Vries <tdevries@suse.de>
9853
9854 PR cli/25808
9855 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
9856
9857 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9858
9859 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
9860 (Write After Approval): Remove Tom de Vries.
9861
9862 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
9863
9864 revert partially:
9865 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9866
9867 * buildsym.c (record_line): Fix undefined behavior and preserve
9868 lines at eof.
9869
9870 2020-04-09 Kamil Rytarowski <n54@gmx.com>
9871
9872 * auxv.h (svr4_auxv_parse): New.
9873 * auxv.c (default_auxv_parse): Split into default_auxv_parse
9874 and generic_auxv_parse.
9875 (svr4_auxv_parse): Add.
9876 * obsd-tdep.c: Include "auxv.h".
9877 (obsd_auxv_parse): Remove.
9878 (obsd_init_abi): Remove comment.
9879 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
9880 from `obsd_auxv_parse' to `svr4_auxv_parse'.
9881 * nbsd-tdep.c: Include "auxv.h".
9882 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
9883
9884 2020-04-08 Tom Tromey <tromey@adacore.com>
9885
9886 * nat/windows-nat.h (last_wait_event): Don't declare.
9887 (wait_for_debug_event): Update comment.
9888 * nat/windows-nat.c (last_wait_event): Now static.
9889
9890 2020-04-08 Tom Tromey <tromey@adacore.com>
9891
9892 * windows-nat.c (wait_for_debug_event): Move to
9893 nat/windows-nat.c.
9894 * nat/windows-nat.h (wait_for_debug_event): Declare.
9895 * nat/windows-nat.c (wait_for_debug_event): Move from
9896 windows-nat.c. No longer static.
9897
9898 2020-04-08 Tom Tromey <tromey@adacore.com>
9899
9900 * windows-nat.c (get_windows_debug_event): Use
9901 fetch_pending_stop.
9902 * nat/windows-nat.h (fetch_pending_stop): Declare.
9903 * nat/windows-nat.c (fetch_pending_stop): New function.
9904
9905 2020-04-08 Tom Tromey <tromey@adacore.com>
9906
9907 * windows-nat.c (windows_continue): Use matching_pending_stop and
9908 continue_last_debug_event.
9909 * nat/windows-nat.h (matching_pending_stop)
9910 (continue_last_debug_event): Declare.
9911 * nat/windows-nat.c (DEBUG_EVENTS): New define.
9912 (matching_pending_stop, continue_last_debug_event): New
9913 functions.
9914
9915 2020-04-08 Tom Tromey <tromey@adacore.com>
9916
9917 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
9918 (handle_exception_result): Move to nat/windows-nat.h.
9919 (DEBUG_EXCEPTION_SIMPLE): Remove.
9920 (windows_nat::handle_ms_vc_exception): New function.
9921 (handle_exception): Move to nat/windows-nat.c.
9922 (get_windows_debug_event): Update.
9923 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
9924 nat/windows-nat.c.
9925 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
9926 (handle_exception_result): Move from windows-nat.c.
9927 (handle_exception): Declare.
9928 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
9929 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
9930 windows-nat.c.
9931
9932 2020-04-08 Tom Tromey <tromey@adacore.com>
9933
9934 * windows-nat.c (exception_count, event_count): Remove.
9935 (handle_exception, get_windows_debug_event)
9936 (do_initial_windows_stuff): Update.
9937
9938 2020-04-08 Tom Tromey <tromey@adacore.com>
9939
9940 * windows-nat.c (windows_nat::handle_load_dll)
9941 (windows_nat::handle_unload_dll): Rename. No longer static.
9942 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
9943 Declare.
9944
9945 2020-04-08 Tom Tromey <tromey@adacore.com>
9946
9947 * complaints.h (stop_whining): Declare at top-level.
9948 (complaint): Don't declare stop_whining.
9949
9950 2020-04-08 Tom Tromey <tromey@adacore.com>
9951
9952 * windows-nat.c (windows_nat::handle_output_debug_string):
9953 Rename. No longer static.
9954 * nat/windows-nat.h (handle_output_debug_string): Declare.
9955
9956 2020-04-08 Tom Tromey <tromey@adacore.com>
9957
9958 * windows-nat.c (current_process_handle, current_process_id)
9959 (main_thread_id, last_sig, current_event, last_wait_event)
9960 (current_windows_thread, desired_stop_thread_id, pending_stops)
9961 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
9962 (display_selectors, fake_create_process)
9963 (get_windows_debug_event): Update.
9964 * nat/windows-nat.h (current_process_handle, current_process_id)
9965 (main_thread_id, last_sig, current_event, last_wait_event)
9966 (current_windows_thread, desired_stop_thread_id, pending_stops)
9967 (struct pending_stop, siginfo_er): Move from windows-nat.c.
9968 * nat/windows-nat.c (current_process_handle, current_process_id)
9969 (main_thread_id, last_sig, current_event, last_wait_event)
9970 (current_windows_thread, desired_stop_thread_id, pending_stops)
9971 (siginfo_er): New globals. Move from windows-nat.c.
9972
9973 2020-04-08 Tom Tromey <tromey@adacore.com>
9974
9975 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
9976 (handle_load_dll): Update.
9977 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
9978
9979 2020-04-08 Tom Tromey <tromey@adacore.com>
9980
9981 * windows-nat.c (enum thread_disposition_type): Move to
9982 nat/windows-nat.h.
9983 (windows_nat::thread_rec): Rename from thread_rec. No longer
9984 static.
9985 (windows_add_thread, windows_nat_target::fetch_registers)
9986 (windows_nat_target::store_registers, handle_exception)
9987 (windows_nat_target::resume, get_windows_debug_event)
9988 (windows_nat_target::get_tib_address)
9989 (windows_nat_target::thread_name)
9990 (windows_nat_target::thread_alive): Update.
9991 * nat/windows-nat.h (enum thread_disposition_type): Move from
9992 windows-nat.c.
9993 (thread_rec): Declare.
9994
9995 2020-04-08 Tom Tromey <tromey@adacore.com>
9996
9997 * windows-nat.c: Add "using namespace".
9998 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
9999 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
10000
10001 2020-04-08 Tom Tromey <tromey@adacore.com>
10002
10003 * nat/windows-nat.h (struct windows_thread_info): Declare
10004 destructor.
10005 * nat/windows-nat.c (~windows_thread_info): New.
10006
10007 2020-04-08 Tom Tromey <tromey@adacore.com>
10008
10009 PR gdb/22992
10010 * windows-nat.c (current_event): Update comment.
10011 (last_wait_event, desired_stop_thread_id): New globals.
10012 (struct pending_stop): New.
10013 (pending_stops): New global.
10014 (windows_nat_target) <stopped_by_sw_breakpoint>
10015 <supports_stopped_by_sw_breakpoint>: New methods.
10016 (windows_fetch_one_register): Add assertions. Adjust PC.
10017 (windows_continue): Handle pending stops. Suspend other threads
10018 when stepping. Use last_wait_event
10019 (wait_for_debug_event): New function.
10020 (get_windows_debug_event): Use wait_for_debug_event. Handle
10021 pending stops. Queue spurious stops.
10022 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
10023 (windows_nat_target::kill): Use wait_for_debug_event.
10024 * nat/windows-nat.h (struct windows_thread_info)
10025 <stopped_at_software_breakpoint>: New field.
10026 * nat/windows-nat.c (windows_thread_info::resume): Clear
10027 stopped_at_software_breakpoint.
10028
10029 2020-04-08 Tom Tromey <tromey@adacore.com>
10030
10031 * windows-nat.c (enum thread_disposition_type): New.
10032 (thread_rec): Replace "get_context" parameter with "disposition";
10033 change type.
10034 (windows_add_thread, windows_nat_target::fetch_registers)
10035 (windows_nat_target::store_registers, handle_exception)
10036 (windows_nat_target::resume, get_windows_debug_event)
10037 (windows_nat_target::get_tib_address)
10038 (windows_nat_target::thread_name)
10039 (windows_nat_target::thread_alive): Update.
10040
10041 2020-04-08 Tom Tromey <tromey@adacore.com>
10042
10043 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
10044 (windows_continue): Use windows_continue::resume.
10045 * nat/windows-nat.h (struct windows_thread_info) <suspend,
10046 resume>: Declare new methods.
10047 * nat/windows-nat.c: New file.
10048 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
10049
10050 2020-04-08 Tom Tromey <tromey@adacore.com>
10051
10052 * windows-nat.c (windows_add_thread, windows_delete_thread)
10053 (windows_nat_target::fetch_registers)
10054 (windows_nat_target::store_registers, fake_create_process)
10055 (windows_nat_target::resume, windows_nat_target::resume)
10056 (get_windows_debug_event, windows_nat_target::wait)
10057 (windows_nat_target::pid_to_str)
10058 (windows_nat_target::get_tib_address)
10059 (windows_nat_target::get_ada_task_ptid)
10060 (windows_nat_target::thread_name)
10061 (windows_nat_target::thread_alive): Use lwp, not tid.
10062
10063 2020-04-08 Tom Tromey <tromey@adacore.com>
10064
10065 * windows-nat.c (handle_exception)
10066 (windows_nat_target::thread_name): Update.
10067 * nat/windows-nat.h (windows_thread_info): Remove destructor.
10068 <name>: Now unique_xmalloc_ptr.
10069
10070 2020-04-08 Tom Tromey <tromey@adacore.com>
10071
10072 * windows-nat.c (thread_rec)
10073 (windows_nat_target::fetch_registers): Update.
10074 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
10075 Update comment.
10076 <debug_registers_changed, reload_context>: Now bool.
10077
10078 2020-04-08 Tom Tromey <tromey@adacore.com>
10079
10080 * windows-nat.c (windows_add_thread): Use new.
10081 (windows_init_thread_list, windows_delete_thread): Use delete.
10082 (get_windows_debug_event): Update.
10083 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
10084 destructor, and initializers.
10085
10086 2020-04-08 Tom Tromey <tromey@adacore.com>
10087
10088 * windows-nat.c (struct windows_thread_info): Remove.
10089 * nat/windows-nat.h: New file.
10090
10091 2020-04-08 Tom Tromey <tromey@adacore.com>
10092
10093 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
10094 (thread_rec, windows_add_thread, windows_delete_thread)
10095 (windows_continue): Update.
10096
10097 2020-04-08 Tom Tromey <tromey@adacore.com>
10098
10099 * windows-nat.c (struct windows_thread_info): Remove typedef.
10100 (thread_head): Remove.
10101 (thread_list): New global.
10102 (thread_rec, windows_add_thread, windows_init_thread_list)
10103 (windows_delete_thread, windows_continue): Update.
10104
10105 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10106
10107 * windows-tdep.h (windows_init_abi): Add comment.
10108 (cygwin_init_abi): New declaration.
10109 * windows-tdep.c: Split signal enumeration in two, one for
10110 Windows and one for Cygwin.
10111 (windows_gdb_signal_to_target): Only deal with signal of the
10112 Windows OS ABI.
10113 (cygwin_gdb_signal_to_target): New function.
10114 (windows_init_abi): Rename to windows_init_abi_common, don't set
10115 gdb_signal_to_target gdbarch method. Add new new function with
10116 this name.
10117 (cygwin_init_abi): New function.
10118 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
10119 comment. Don't call windows_init_abi.
10120 (amd64_windows_init_abi): Add comment, call windows_init_abi.
10121 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
10122 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
10123 i386_windows_init_abi_common, don't call windows_init_abi. Add
10124 a new function of this name.
10125 (i386_cygwin_init_abi): New function.
10126 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
10127 OS ABI Cygwin.
10128
10129 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10130
10131 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
10132 parameter.c.
10133 (dwarf2_read_gdb_index): Update.
10134
10135 2020-04-07 Kamil Rytarowski <n54@gmx.com>
10136
10137 * nbsd-tdep.c: Include "objfiles.h".
10138 (nbsd_skip_solib_resolver): New.
10139 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
10140
10141 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10142
10143 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
10144 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
10145 with DW_LLE_base_addressx are being emitted in DWARFv5.
10146 Add the newly added kind DW_LOC_OFFSET_PAIR also.
10147 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
10148 unsigned integer.
10149
10150 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10151
10152 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
10153 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
10154 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
10155 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
10156 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
10157 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
10158 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
10159
10160
10161 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10162
10163 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
10164 (read_loclist_index): New function definition.
10165 (lookup_loclist_base): New function definition.
10166 (read_loclist_header): New function definition.
10167 (dwarf2_cu): Add loclist_base and loclist_header field.
10168 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
10169 (read_full_die_1): Read the value of DW_AT_loclists_base.
10170 (read_attribute_reprocess): Handle DW_FORM_loclistx.
10171 (read_attribute_value): Handle DW_FORM_loclistx.
10172 (skip_one_die): Handle DW_FORM_loclistx.
10173 (loclist_header): New structure declaration.
10174 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
10175
10176 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10177
10178 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
10179 constructor. Remove `addr` parameter from other constructor and
10180 add `per_cu` parameter.
10181 * dwarf2/read.c (create_partial_symtab): Update.
10182
10183 2020-04-07 Tom de Vries <tdevries@suse.de>
10184
10185 PR symtab/25796
10186 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
10187 (partial_die_info::fixup): Inherit has_const_value.
10188
10189 2020-04-07 Tom de Vries <tdevries@suse.de>
10190
10191 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
10192 symbols without address.
10193
10194 2020-04-06 Kamil Rytarowski <n54@gmx.com>
10195
10196 * nbsd-nat.h (struct thread_info): Add forward declaration.
10197 (nbsd_nat_target::thread_alive): Add.
10198 (nbsd_nat_target::thread_name): Likewise.
10199 (nbsd_nat_target::update_thread_list): Likewise.
10200 (update_thread_list::post_attach): Likewise.
10201 (post_attach::pid_to_str): Likewise.
10202 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
10203 (nbsd_thread_lister): Add.
10204 (nbsd_nat_target::thread_alive): Likewise.
10205 (nbsd_nat_target::thread_name): Likewise.
10206 (nbsd_add_threads): Likewise.
10207 (update_thread_list::post_attach): Likewise.
10208 (nbsd_nat_target::update_thread_list): Likewise.
10209 (post_attach::pid_to_str): Likewise.
10210
10211 2020-04-06 Tom Tromey <tromey@adacore.com>
10212
10213 * ada-valprint.c (print_variant_part): Extract the variant field.
10214 (print_field_values): Use the field as the outer value when
10215 recursing.
10216
10217 2020-04-06 Tom Tromey <tromey@adacore.com>
10218
10219 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
10220 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
10221 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
10222 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
10223 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
10224
10225 2020-04-06 Tom Tromey <tromey@adacore.com>
10226
10227 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
10228 TYPE_CODE_ERROR.
10229
10230 2020-04-06 Kamil Rytarowski <n54@gmx.com>
10231
10232 * nbsd-tdep.c: Include "gdbarch.h".
10233 Define enum with NetBSD signal numbers.
10234 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
10235 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
10236 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
10237 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
10238 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
10239 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
10240 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
10241 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10242 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
10243 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
10244 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
10245 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
10246
10247 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
10248
10249 PR gdb/25325
10250 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
10251
10252 2020-04-03 Tom Tromey <tromey@adacore.com>
10253
10254 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
10255 Read constant block.
10256
10257 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10258
10259 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
10260 (gdb_bfd_get_full_section_contents): New declaration.
10261 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
10262 * windows-tdep.c (is_linked_with_cygwin_dll): Use
10263 gdb_bfd_get_full_section_contents.
10264
10265 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10266
10267 * exec.c (build_section_table): Replace internal_error with
10268 gdb_assert.
10269 (section_table_xfer_memory_partial): Likewise.
10270 * mdebugread.c (parse_partial_symbols): Likewise.
10271 * psymtab.c (lookup_partial_symbol): Likewise.
10272 * utils.c (wrap_here): Likewise.
10273
10274 2020-04-02 Tom Tromey <tromey@adacore.com>
10275
10276 * f-lang.c (build_fortran_types): Use arch_type to initialize
10277 builtin_complex_s32 in the TYPE_CODE_ERROR case.
10278
10279 2020-04-02 Tom Tromey <tromey@adacore.com>
10280
10281 * dwarf2/read.c (partial_die_info::read): Do not create a vector
10282 of attributes.
10283
10284 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
10285 Bernd Edlinger <bernd.edlinger@hotmail.de>
10286 Tom Tromey <tromey@adacore.com>
10287
10288 * buildsym.c (buildsym_compunit::record_line): Remove
10289 deduplication code.
10290
10291 2020-04-02 Tom de Vries <tdevries@suse.de>
10292
10293 PR ada/24671
10294 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
10295
10296 2020-04-02 Tom de Vries <tdevries@suse.de>
10297
10298 * dwarf2/read.c (dwarf2_gdb_index_functions,
10299 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
10300 NULL.
10301 * psymtab.c (psym_lookup_global_symbol_language): New function.
10302 (psym_functions): Init psym_lookup_global_symbol_language with
10303 psym_lookup_global_symbol_language.
10304 * symfile-debug.c (debug_sym_quick_functions): Init
10305 lookup_global_symbol_language with NULL.
10306 * symfile.c (set_initial_language): Remove fixme comment.
10307 * symfile.h (struct quick_symbol_functions): Add
10308 lookup_global_symbol_language.
10309 * symtab.c (find_quick_global_symbol_language): New function.
10310 (find_main_name): Use find_quick_global_symbol_language.
10311
10312 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10313
10314 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
10315
10316 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10317
10318 * buildsym.c (record_line): Fix undefined behavior and preserve
10319 lines at eof.
10320
10321 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10322
10323 * buildsym.c (record_line): Fix the resizing condition.
10324
10325 2020-04-01 Tom Tromey <tom@tromey.com>
10326
10327 * value.h (value_literal_complex): Add comment.
10328 * valops.c (value_literal_complex): Refer to value.h.
10329
10330 2020-04-01 Tom Tromey <tom@tromey.com>
10331
10332 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
10333 (scalar_type): New rule, from typebase.
10334 (typebase): Use scalar_type. Recognize complex types.
10335 (field_name): Handle FLOAT_KEYWORD.
10336 (ident_tokens): Add _Complex and __complex__.
10337
10338 2020-04-01 Tom Tromey <tom@tromey.com>
10339
10340 PR exp/25299:
10341 * valarith.c (promotion_type, complex_binop): New functions.
10342 (scalar_binop): Handle complex numbers. Use promotion_type.
10343 (value_pos, value_neg, value_complement): Handle complex numbers.
10344
10345 2020-04-01 Tom Tromey <tom@tromey.com>
10346
10347 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
10348 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
10349 (parse_number): Handle complex numbers.
10350
10351 2020-04-01 Tom Tromey <tom@tromey.com>
10352
10353 * c-valprint.c (c_decorations): Change complex suffix to "i".
10354
10355 2020-04-01 Tom Tromey <tom@tromey.com>
10356
10357 * valprint.c (generic_value_print_complex): Use accessors.
10358 * value.h (value_real_part, value_imaginary_part): Declare.
10359 * valops.c (value_real_part, value_imaginary_part): New
10360 functions.
10361 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
10362
10363 2020-04-01 Tom Tromey <tom@tromey.com>
10364
10365 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
10366 (read_range_type): Update.
10367 * mdebugread.c (basic_type): Update.
10368 * go-lang.c (build_go_types): Use init_complex_type.
10369 * gdbtypes.h (struct main_type) <complex_type>: New member.
10370 (init_complex_type): Update.
10371 (arch_complex_type): Don't declare.
10372 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
10373 Make name if none given. Use alloc_type_copy. Look for cached
10374 complex type.
10375 (arch_complex_type): Remove.
10376 (gdbtypes_post_init): Use init_complex_type.
10377 * f-lang.c (build_fortran_types): Use init_complex_type.
10378 * dwarf2/read.c (read_base_type): Update.
10379 * d-lang.c (build_d_types): Use init_complex_type.
10380 * ctfread.c (read_base_type): Update.
10381
10382 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10383
10384 * infrun.c (stop_all_threads): Update assertion, plus when
10385 stopping threads, take into account that we might be trying
10386 to stop an all-stop target.
10387 (stop_waiting): Call 'stop_all_threads' if there exists a
10388 non-stop target.
10389
10390 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10391
10392 * target.h (exists_non_stop_target): New function declaration.
10393 * target.c (exists_non_stop_target): New function.
10394
10395 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
10396
10397 PR gdb/24789
10398 * eval.c (is_integral_or_integral_reference): New function.
10399 (evaluate_subexp_standard): Allow integer references in
10400 pointer arithmetic.
10401
10402 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10403
10404 * remote.c (remote_target::remote_parse_stop_reply): Remove the
10405 check for no ptid in the stop reply when the target is non-stop.
10406
10407 2020-04-01 Tom Tromey <tromey@adacore.com>
10408
10409 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
10410 "name" parameter to rvalue reference. Initialize m_name_holder.
10411 <lookup_name_info>: New overloads.
10412 <name>: Return gdb::string_view.
10413 <c_str>: New method.
10414 <make_ignore_params>: Update.
10415 <search_name_hash>: Update.
10416 <language_lookup_name>: Return const char *.
10417 <m_name>: Change type.
10418 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
10419 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
10420 (lookup_name_info::match_any): Update.
10421 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
10422 Update.
10423 * minsyms.c (linkage_name_str): Update.
10424 * language.c (default_symbol_name_matcher): Update.
10425 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
10426 Update.
10427 * ada-lang.c (ada_fold_name): Change parameter to string_view.
10428 (ada_lookup_name_info::ada_lookup_name_info): Update.
10429 (literal_symbol_name_matcher): Update.
10430
10431 2020-04-01 Tom Tromey <tromey@adacore.com>
10432
10433 * psymtab.c (psymtab_search_name): Remove function.
10434 (psym_lookup_symbol): Create search name and lookup name here.
10435 (lookup_partial_symbol): Remove "name" parameter; add
10436 lookup_name.
10437 (psym_expand_symtabs_for_function): Update.
10438
10439 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
10440
10441 PR tui/25597:
10442 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
10443
10444 2020-03-31 Tom Tromey <tromey@adacore.com>
10445
10446 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
10447 memcpy.
10448
10449 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
10450
10451 * features/riscv/32bit-csr.xml: Regenerated.
10452 * features/riscv/64bit-csr.xml: Regenerated.
10453
10454 2020-03-30 Tom Tromey <tromey@adacore.com>
10455
10456 * ada-valprint.c (print_variant_part): Update.
10457 * ada-lang.h (ada_which_variant_applies): Update.
10458 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
10459 outer_valaddr parameters; replace with "outer" value parameter.
10460 (to_fixed_variant_branch_type): Update.
10461
10462 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10463
10464 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
10465 <list>. Remove inclusion of observable.h.
10466 (PPC_DEBUG_CURRENT_VERSION): Move up define.
10467 (struct arch_lwp_info): New struct.
10468 (class ppc_linux_dreg_interface): New class.
10469 (struct ppc_linux_process_info): New struct.
10470 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
10471 <low_new_clone, low_forget_process, low_prepare_to_resume>
10472 <copy_thread_dreg_state, mark_thread_stale>
10473 <mark_debug_registers_changed, register_hw_breakpoint>
10474 <clear_hw_breakpoint, register_wp, clear_wp>
10475 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10476 <num_memory_accesses, get_trigger_type>
10477 <create_watchpoint_request, hwdebug_point_cmp>
10478 <init_arch_lwp_info, get_arch_lwp_info>
10479 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10480 methods.
10481 <struct ptid_hash>: New inner struct.
10482 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10483 members.
10484 (saved_dabr_value, hwdebug_info, max_slots_number)
10485 (struct hw_break_tuple, struct thread_points, ppc_threads)
10486 (have_ptrace_hwdebug_interface)
10487 (hwdebug_find_thread_points_by_tid)
10488 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10489 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10490 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10491 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10492 use m_dreg_interface.
10493 (hwdebug_point_cmp): Change to...
10494 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10495 reference arguments instead of pointers.
10496 (ppc_linux_nat_target::ranged_break_num_registers): Use
10497 m_dreg_interface.
10498 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10499 m_dreg_interface. Call register_hw_breakpoint.
10500 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10501 m_dreg_interface. Call clear_hw_breakpoint.
10502 (get_trigger_type): Change to...
10503 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
10504 comment.
10505 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
10506 use m_dreg_interface. Call register_hw_breakpoint.
10507 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
10508 use m_dreg_interface. Call clear_hw_breakpoint.
10509 (can_use_watchpoint_cond_accel): Change to...
10510 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
10511 method. Update comment, use m_dreg_interface and
10512 m_process_info.
10513 (calculate_dvc): Change to...
10514 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
10515 m_dreg_interface.
10516 (num_memory_accesses): Change to...
10517 (ppc_linux_nat_target::num_memory_accesses): ...this method.
10518 (check_condition): Change to...
10519 (ppc_linux_nat_target::check_condition): ...this method.
10520 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
10521 comment, use m_dreg_interface.
10522 (create_watchpoint_request): Change to...
10523 (ppc_linux_nat_target::create_watchpoint_request): ...this
10524 method. Use m_dreg_interface.
10525 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
10526 m_dreg_interface. Call register_hw_breakpoint or register_wp.
10527 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
10528 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
10529 (ppc_linux_nat_target::low_forget_process)
10530 (ppc_linux_nat_target::low_new_fork)
10531 (ppc_linux_nat_target::low_new_clone)
10532 (ppc_linux_nat_target::low_delete_thread)
10533 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
10534 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
10535 only call mark_thread_stale.
10536 (ppc_linux_thread_exit): Remove.
10537 (ppc_linux_nat_target::stopped_data_address): Change to...
10538 (ppc_linux_nat_target::low_stopped_data_address): This. Add
10539 comment, use m_dreg_interface and m_thread_hw_breakpoints.
10540 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
10541 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
10542 comment. Call low_stopped_data_address.
10543 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
10544 m_dreg_interface.
10545 (ppc_linux_nat_target::masked_watch_num_registers): Use
10546 m_dreg_interface.
10547 (ppc_linux_nat_target::copy_thread_dreg_state)
10548 (ppc_linux_nat_target::mark_thread_stale)
10549 (ppc_linux_nat_target::mark_debug_registers_changed)
10550 (ppc_linux_nat_target::register_hw_breakpoint)
10551 (ppc_linux_nat_target::clear_hw_breakpoint)
10552 (ppc_linux_nat_target::register_wp)
10553 (ppc_linux_nat_target::clear_wp)
10554 (ppc_linux_nat_target::init_arch_lwp_info)
10555 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
10556 (_initialize_ppc_linux_nat): Remove observer callback.
10557
10558 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10559
10560 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
10561 (ppc_linux_nat_target::auxv_parse)
10562 (ppc_linux_nat_target::read_description)
10563 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
10564 Move up.
10565
10566 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10567
10568 * linux-nat.h (low_new_clone): New method.
10569 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
10570
10571 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10572
10573 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
10574 (dbx_expand_psymtab): ... this.
10575 (start_psymtab): Update.
10576 * mdebugread.c (psymtab_to_symtab_1): Rename to...
10577 (mdebug_expand_psymtab): ... this.
10578 (parse_partial_symbols): Update.
10579 (new_psymtab): Update.
10580 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
10581 (xcoff_expand_psymtab): ... this.
10582 (xcoff_start_psymtab): Update.
10583
10584 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10585
10586 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
10587 <expand_dependencies>: ... this.
10588 * psymtab.c (partial_symtab::read_dependencies): Rename to...
10589 (partial_symtab::expand_dependencies): ... this.
10590 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
10591 Update.
10592 (dwarf2_psymtab::expand_psymtab): Update.
10593 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10594 * mdebugread.c (psymtab_to_symtab_1): Update.
10595 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10596
10597 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10598
10599 * psympriv.h (discard_psymtab): Remove.
10600 * dbxread.c (dbx_end_psymtab): Update.
10601 * xcoffread.c (xcoff_end_psymtab): Update.
10602
10603 2020-03-28 Tom Tromey <tom@tromey.com>
10604
10605 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
10606 comment.
10607
10608 2020-03-28 Tom Tromey <tom@tromey.com>
10609
10610 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
10611
10612 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
10613
10614 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10615
10616 2020-03-26 John Baldwin <jhb@FreeBSD.org>
10617
10618 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
10619
10620 2020-03-26 Tom Tromey <tom@tromey.com>
10621
10622 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
10623 (mark_common_block_symbol_computed, read_tag_string_type)
10624 (attr_to_dynamic_prop, read_subrange_type): Update.
10625 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
10626 to be methods on struct attribute.
10627 (skip_one_die, process_imported_unit_die, read_namespace_alias)
10628 (read_call_site_scope, partial_die_info::read)
10629 (partial_die_info::read, lookup_die_type, follow_die_ref):
10630 Update.
10631 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
10632 from dwarf2_get_ref_die_offset.
10633 (attribute::constant_value): New method, from
10634 dwarf2_get_attr_constant_value.
10635 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
10636 Declare method.
10637 <constant_value>: New method.
10638
10639 2020-03-26 Tom Tromey <tom@tromey.com>
10640
10641 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
10642 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
10643 (dwarf_type_encoding_name): Move to stringify.c.
10644 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
10645 * dwarf2/stringify.c: New file.
10646 * dwarf2/stringify.h: New file.
10647
10648 2020-03-26 Tom Tromey <tom@tromey.com>
10649
10650 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
10651 Rewrite.
10652
10653 2020-03-26 Tom Tromey <tom@tromey.com>
10654
10655 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
10656 methods.
10657 * dwarf2/read.c (lookup_addr_base): Move to die.h.
10658 (lookup_ranges_base): Likewise.
10659 (read_cutu_die_from_dwo, read_full_die_1): Update.
10660
10661 2020-03-26 Tom Tromey <tom@tromey.com>
10662
10663 * dwarf2/read.c (read_import_statement, read_file_scope)
10664 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
10665 (read_lexical_block_scope, read_call_site_scope)
10666 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
10667 (handle_struct_member_die, process_structure_scope)
10668 (update_enumeration_type_from_children)
10669 (process_enumeration_scope, read_array_type, read_common_block)
10670 (read_namespace, read_module, read_subroutine_type): Update.
10671 (sibling_die): Remove.
10672
10673 2020-03-26 Tom Tromey <tom@tromey.com>
10674
10675 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
10676 (build_type_psymtabs_reader, read_structure_type)
10677 (read_enumeration_type, read_full_die_1): Update.
10678 (dwarf2_attr_no_follow): Move to die.h.
10679 * dwarf2/die.h (struct die_info) <attr>: New method.
10680
10681 2020-03-26 Tom Tromey <tom@tromey.com>
10682
10683 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
10684 <base_address>: Now an optional.
10685 (dwarf2_find_base_address, dwarf2_rnglists_process)
10686 (dwarf2_ranges_process, fill_in_loclist_baton)
10687 (dwarf2_symbol_mark_computed): Update.
10688
10689 2020-03-26 Tom Tromey <tom@tromey.com>
10690
10691 * dwarf2/read.c (struct die_info): Move to die.h.
10692 * dwarf2/die.h: New file.
10693
10694 2020-03-26 Tom Tromey <tom@tromey.com>
10695
10696 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
10697 * dwarf2/read.c
10698 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10699 Move to line-header.c.
10700 (read_checked_initial_length_and_offset, read_formatted_entries):
10701 Likewise.
10702 (dwarf_decode_line_header): Split into two.
10703 * dwarf2/line-header.c
10704 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10705 Move from read.c.
10706 (read_checked_initial_length_and_offset, read_formatted_entries):
10707 Likewise.
10708 (dwarf_decode_line_header): New function, split from read.c.
10709
10710 2020-03-26 Tom Tromey <tom@tromey.com>
10711
10712 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
10713 Declare method.
10714 * dwarf2/read.c (read_attribute_value): Update.
10715 (dwarf2_per_objfile::read_line_string): Rename from
10716 read_indirect_line_string.
10717 (read_formatted_entries): Update.
10718
10719 2020-03-26 Tom Tromey <tom@tromey.com>
10720
10721 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
10722 variable.
10723
10724 2020-03-26 Tom Tromey <tom@tromey.com>
10725
10726 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
10727 const.
10728 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
10729 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
10730 parameter const.
10731
10732 2020-03-26 Tom Tromey <tom@tromey.com>
10733
10734 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
10735 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
10736 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
10737 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
10738
10739 2020-03-26 Tom Tromey <tom@tromey.com>
10740
10741 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
10742 file_names_size, file_full_name, file_file_name>: Use const.
10743 <file_name_at, file_names>: Add const overload.
10744 * dwarf2/line-header.c (line_header::file_file_name)
10745 (line_header::file_full_name): Update.
10746
10747 2020-03-26 Tom Tromey <tom@tromey.com>
10748
10749 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
10750 (macro_start_file, consume_improper_spaces)
10751 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
10752 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
10753 (dwarf_decode_macros): Move to macro.c.
10754 * dwarf2/macro.c: New file.
10755 * dwarf2/macro.h: New file.
10756 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
10757
10758 2020-03-26 Tom Tromey <tom@tromey.com>
10759
10760 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
10761 method.
10762 * dwarf2/section.c: New method. From
10763 read_indirect_string_at_offset_from.
10764 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
10765 (read_indirect_string_at_offset_from): Move to section.c.
10766 (read_indirect_string_at_offset): Rewrite.
10767 (read_indirect_line_string_at_offset): Remove.
10768 (read_indirect_string, read_indirect_line_string)
10769 (dwarf_decode_macro_bytes): Update.
10770
10771 2020-03-26 Tom Tromey <tom@tromey.com>
10772
10773 * dwarf2/section.h (struct dwarf2_section_info)
10774 <overload_complaint>: Declare.
10775 (dwarf2_section_buffer_overflow_complaint): Don't declare.
10776 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
10777 Rename from dwarf2_section_buffer_overflow_complaint.
10778 * dwarf2/read.c (skip_one_die, partial_die_info::read)
10779 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
10780
10781 2020-03-26 Tom Tromey <tom@tromey.com>
10782
10783 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
10784 Declare.
10785 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
10786 Move from read.c.
10787 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
10788 to section.c.
10789
10790 2020-03-26 Tom Tromey <tom@tromey.com>
10791
10792 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
10793
10794 2020-03-26 Tom Tromey <tom@tromey.com>
10795
10796 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
10797 "builder".
10798 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
10799 parameter.
10800 (dwarf_decode_macros): Update.
10801
10802 2020-03-26 Tom Tromey <tom@tromey.com>
10803
10804 * dwarf2/read.c (read_attribute_value): Update.
10805 (read_indirect_string_from_dwz): Move to dwz.c; change into
10806 method.
10807 (dwarf_decode_macro_bytes): Update.
10808 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
10809 * dwarf2/dwz.c: New file.
10810 * Makefile.in (COMMON_SFILES): Add dwz.c.
10811
10812 2020-03-26 Tom Tromey <tom@tromey.com>
10813
10814 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
10815 * dwarf2/read.c: Add include.
10816 * dwarf2/index-write.c: Add include.
10817 * dwarf2/index-cache.c: Add include.
10818 * dwarf2/dwz.h: New file.
10819
10820 2020-03-25 Tom Tromey <tom@tromey.com>
10821
10822 * compile/compile-object-load.c (get_out_value_type): Mention
10823 correct symbol name in error message.
10824
10825 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
10826
10827 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10828
10829 2020-03-25 Tom de Vries <tdevries@suse.de>
10830
10831 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
10832 * symmisc.c (dump_symtab_1): Print user and includes fields.
10833 (maintenance_info_symtabs): Same.
10834
10835 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
10836
10837 PR gdb/25534
10838 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
10839 (riscv_regcache_cooked_write): New function.
10840 (riscv_push_dummy_call): Use new function.
10841 (riscv_return_value): Likewise.
10842
10843 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
10844
10845 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
10846 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
10847 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
10848 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
10849 * infrun.c (follow_fork): Likewise.
10850 (follow_fork_inferior): Likewise.
10851 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
10852 * linux-nat.h (class linux_nat_target): Likewise.
10853 * remote.c (class remote_target) <follow_fork>: Likewise.
10854 (remote_target::follow_fork): Likewise.
10855 * target-delegates.c: Re-generate.
10856 * target.c (default_follow_fork): Likewise.
10857 (target_follow_fork): Likewise.
10858 * target.h (struct target_ops) <follow_fork>: Likewise.
10859 (target_follow_fork): Likewise.
10860
10861 2020-03-24 Tom de Vries <tdevries@suse.de>
10862
10863 * psymtab.c (maintenance_info_psymtabs): Print user field.
10864
10865 2020-03-20 Tom Tromey <tromey@adacore.com>
10866
10867 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
10868 const.
10869 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
10870 const.
10871
10872 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
10873
10874 * ptrace.m4: Don't check for ptrace declaration.
10875 * config.in: Re-generate.
10876 * configure: Re-generate.
10877 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
10878 not defined.
10879
10880 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10881
10882 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
10883 `PTRACE_TYPE_RET'.
10884 * i386-bsd-nat.c (gdb_ptrace): Likewise.
10885 * sparc-nat.c (gdb_ptrace): Likewise.
10886 * x86-bsd-nat.c (gdb_ptrace): Likewise.
10887
10888 2020-03-20 Tom Tromey <tromey@adacore.com>
10889
10890 * c-exp.y (lex_one_token): Fix assert.
10891
10892 2020-03-20 Tom Tromey <tromey@adacore.com>
10893
10894 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
10895 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
10896 strncpy call.
10897
10898 2020-03-20 Tom Tromey <tromey@adacore.com>
10899
10900 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
10901
10902 2020-03-20 Tom Tromey <tromey@adacore.com>
10903
10904 * ada-valprint.c (print_variant_part): Remove parameters; switch
10905 to value-based API.
10906 (print_field_values): Likewise.
10907 (ada_val_print_struct_union): Likewise.
10908 (ada_value_print_1): Update.
10909
10910 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10911
10912 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
10913 nbsd_nat_target instead of inf_ptrace_target.
10914 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10915 nbsd_nat_target.
10916
10917 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10918
10919 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
10920 it to the ptrace call.
10921 * (store_registers): Likewise.
10922
10923 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10924
10925 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
10926 it to the ptrace call.
10927 * (store_registers): Likewise.
10928
10929 2020-03-19 Luis Machado <luis.machado@linaro.org>
10930
10931 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
10932 valid, fetch vg value from ptrace.
10933
10934 2020-03-19 Kamil Rytarowski <n54@gmx.com>
10935 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
10936 * inf-ptrace.c: Likewise.
10937 * (gdb_ptrace): Add.
10938 * (inf_ptrace_target::resume): Update.
10939 * (inf_ptrace_target::xfer_partial): Likewise.
10940 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
10941 * (inf_ptrace_peek_poke): Update.
10942
10943 2020-03-19 Kamil Rytarowski <n54@gmx.com>
10944
10945 * x86-bsd-nat.c (gdb_ptrace): New.
10946 * (x86bsd_dr_set): Add new argument `ptid'.
10947 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
10948 x86bsd_dr_set_addr): Update.
10949
10950 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10951
10952 * remote.c (remote_target::process_stop_reply): Handle events for
10953 all threads differently.
10954
10955 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10956
10957 * completer.c (completion_tracker::remove_completion): Define new
10958 function.
10959 * completer.h (completion_tracker::remove_completion): Declare new
10960 function.
10961 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
10962 when adding a C++ function symbol.
10963
10964 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10965
10966 * completer.c (completion_tracker::completion_hash_entry): Define
10967 new class.
10968 (advance_to_filename_complete_word_point): Call
10969 recompute_lowest_common_denominator.
10970 (completion_tracker::completion_tracker): Call discard_completions
10971 to setup the hash table.
10972 (completion_tracker::discard_completions): Allow for being called
10973 from the constructor, pass new equal function, and element deleter
10974 when constructing the hash table. Initialise new class member
10975 variables.
10976 (completion_tracker::maybe_add_completion): Remove use of
10977 m_entries_vec, and store more information into m_entries_hash.
10978 (completion_tracker::recompute_lcd_visitor): New function, most
10979 content taken from...
10980 (completion_tracker::recompute_lowest_common_denominator):
10981 ...here, this now just visits each item in the hash calling the
10982 above visitor.
10983 (completion_tracker::build_completion_result): Remove use of
10984 m_entries_vec, call recompute_lowest_common_denominator.
10985 * completer.h (completion_tracker::have_completions): Remove use
10986 of m_entries_vec.
10987 (completion_tracker::completion_hash_entry): Declare new class.
10988 (completion_tracker::recompute_lowest_common_denominator): Change
10989 function signature.
10990 (completion_tracker::recompute_lcd_visitor): Declare new function.
10991 (completion_tracker::m_entries_vec): Delete.
10992 (completion_tracker::m_entries_hash): Initialize to NULL.
10993 (completion_tracker::m_lowest_common_denominator_valid): New
10994 member variable.
10995 (completion_tracker::m_lowest_common_denominator_max_length): New
10996 member variable.
10997
10998 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10999
11000 * regformats/regdef.h: Put reg in gdb namespace.
11001
11002 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11003
11004 * i386-bsd-nat.c (gdb_ptrace): New.
11005 * (i386bsd_fetch_inferior_registers,
11006 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11007 * (i386bsd_fetch_inferior_registers,
11008 i386bsd_store_inferior_registers) Use gdb_ptrace.
11009
11010 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11011
11012 * amd64-bsd-nat.c (gdb_ptrace): New.
11013 * (amd64bsd_fetch_inferior_registers,
11014 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11015 * (amd64bsd_fetch_inferior_registers,
11016 amd64bsd_store_inferior_registers) Use gdb_ptrace.
11017
11018 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11019
11020 * user-regs.c (user_reg::read): Rename to...
11021 (user_reg::xread): ...this.
11022 * (append_user_reg): Rename argument `read' to `xread'.
11023 * (user_reg_add_builtin): Likewise.
11024 * (user_reg_add): Likewise.
11025 * (value_of_user_reg): Likewise.
11026
11027 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11028
11029 * sparc-nat.c (gdb_ptrace): New.
11030 * sparc-nat.c (sparc_fetch_inferior_registers)
11031 (sparc_store_inferior_registers) Remove obsolete comment.
11032 * sparc-nat.c (sparc_fetch_inferior_registers)
11033 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
11034 * sparc-nat.c (sparc_fetch_inferior_registers)
11035 (sparc_store_inferior_registers) Use gdb_ptrace.
11036
11037 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11038
11039 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
11040 it to the ptrace call.
11041 * sh-nbsd-nat.c (store_registers): Likewise.
11042
11043 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11044
11045 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
11046 nbsd_nat_target instead of inf_ptrace_target.
11047 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11048 nbsd_nat_target.
11049
11050 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11051
11052 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
11053
11054 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11055
11056 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
11057 <sys/sysctl.h>.
11058 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
11059
11060 2020-03-17 Tom de Vries <tdevries@suse.de>
11061
11062 PR gdb/23710
11063 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
11064 fields.
11065 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
11066 fields.
11067 (process_imported_unit_die): Skip import of c++ CUs.
11068
11069 2020-03-16 Tom Tromey <tom@tromey.com>
11070
11071 * p-valprint.c (pascal_object_print_value): Initialize
11072 base_value.
11073
11074 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
11075 Shahab Vahedi <shahab@synopsys.com>
11076
11077 * Makefile.in: Add arch/arc.o
11078 * configure.tgt: Likewise.
11079 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
11080 (_initialize_arc_tdep): Don't initialize old target descriptions.
11081 (arc_read_description): New function to cache target descriptions.
11082 * arc-tdep.h (arc_read_description): Add proto type.
11083 * arch/arc.c: New file.
11084 * arch/arc.h: Likewise.
11085 * features/Makefile: Replace old target descriptions with new.
11086 * features/arc-arcompact.c: Remove.
11087 * features/arc-arcompact.xml: Likewise.
11088 * features/arc-v2.c: Likewise
11089 * features/arc-v2.xml: Likewise
11090 * features/arc/aux-arcompact.xml: New file.
11091 * features/arc/aux-v2.xml: Likewise.
11092 * features/arc/core-arcompact.xml: Likewise.
11093 * features/arc/core-v2.xml: Likewise.
11094 * features/arc/aux-arcompact.c: Generate.
11095 * features/arc/aux-v2.c: Likewise.
11096 * features/arc/core-arcompact.c: Likewise.
11097 * features/arc/core-v2.c: Likewise.
11098 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
11099
11100 2020-03-16 Tom Tromey <tromey@adacore.com>
11101
11102 PR gdb/25663:
11103 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
11104 putting value into bcache.
11105
11106 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11107
11108 PR gdb/21500
11109 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
11110 to...
11111 (amd64_windows_init_abi_common): ... this. Don't set size of
11112 long type.
11113 (amd64_windows_init_abi): New function.
11114 (amd64_cygwin_init_abi): New function.
11115 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
11116 the Cygwin OS ABI.
11117 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
11118 comment.
11119
11120 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11121
11122 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
11123 * windows-tdep.c (CYGWIN_DLL_NAME): New.
11124 (pe_import_directory_entry): New struct type.
11125 (is_linked_with_cygwin_dll): New function.
11126 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
11127 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
11128 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
11129
11130 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11131
11132 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
11133 i386_cygwin_core_osabi_sniffer.
11134
11135 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11136
11137 * i386-cygwin-tdep.c: Rename to...
11138 * i386-windows-tdep.c: ... this.
11139 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
11140 i386-windows-tdep.c.
11141 * configure.tgt: Likewise.
11142
11143 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11144
11145 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
11146 * osabi.c (gdb_osabi_names): Add "Windows".
11147 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
11148 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
11149 (i386_cygwin_core_osabi_sniffer): New function, extracted from
11150 i386_cygwin_osabi_sniffer.
11151 (_initialize_i386_cygwin_tdep): Register OS ABI
11152 GDB_OSABI_WINDOWS for i386.
11153 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
11154 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
11155 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
11156 for x86-64.
11157 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
11158 when the target matches '*-*-mingw*'.
11159
11160 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11161
11162 * defs.h (enum gdb_osabi): Move to...
11163 * osabi.h (enum gdb_osabi): ... here.
11164 * gdbarch.sh: Include osabi.h in gdbarch.h.
11165 * gdbarch.h: Re-generate.
11166
11167 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11168
11169 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
11170 function.
11171 (_initialize_amd64_windows_tdep): Register osabi sniffer.
11172
11173 2020-03-14 Tom Tromey <tom@tromey.com>
11174
11175 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
11176 for C++.
11177 (c_type_print_modifier): Likewise. Add "language" parameter.
11178 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
11179 (c_type_print_base_1): Update.
11180 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
11181 constants.
11182 * type-stack.c (type_stack::insert): Handle tp_atomic and
11183 tp_restrict.
11184 (type_stack::follow_type_instance_flags): Likewise.
11185 (type_stack::follow_types): Likewise. Merge type-following code.
11186 * c-exp.y (RESTRICT, ATOMIC): New tokens.
11187 (space_identifier, cv_with_space_id)
11188 (const_or_volatile_or_space_identifier_noopt)
11189 (const_or_volatile_or_space_identifier): Remove.
11190 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
11191 rules.
11192 (ptr_operator, typebase): Update.
11193 (enum token_flag) <FLAG_C>: New constant.
11194 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
11195 "_Atomic".
11196 (lex_one_token): Handle FLAG_C.
11197
11198 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11199
11200 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
11201 it to the ptrace call.
11202 * m68k-bsd-nat.c (store_registers): Likewise.
11203
11204 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11205
11206 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
11207 gdb_byte *.
11208 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
11209 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
11210 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
11211
11212 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11213
11214 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
11215 nbsd_nat_target instead of inf_ptrace_target.
11216 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11217 nbsd_nat_target.
11218
11219 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11220
11221 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
11222 register_t.
11223
11224 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11225
11226 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
11227 it to the ptrace call.
11228 * alpha-bsd-nat.c (store_registers): Likewise.
11229
11230 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11231
11232 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
11233 includes.
11234 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
11235 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
11236 fill_fpregset): Likewise.
11237
11238 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11239
11240 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
11241 nbsd_nat_target instead of inf_ptrace_target.
11242 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11243 nbsd_nat_target.
11244
11245 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11246
11247 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
11248 register_t.
11249
11250 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11251
11252 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
11253 it to the ptrace call.
11254 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
11255 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
11256 * arm-nbsd-nat.c (store_register): Likewise.
11257 * arm-nbsd-nat.c (store_regs): Likewise.
11258 * arm-nbsd-nat.c (store_fp_register): Likewise.
11259 * arm-nbsd-nat.c (store_fp_regs): Likewise.
11260
11261 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11262
11263 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
11264 nbsd_nat_target instead of inf_ptrace_target.
11265 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11266 nbsd_nat_target.
11267
11268 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11269
11270 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
11271 it to the ptrace call.
11272 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
11273
11274 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11275
11276 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
11277 it to the ptrace call.
11278 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
11279
11280 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11281
11282 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
11283 gdb_byte *.
11284 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
11285
11286 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11287
11288 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
11289 instead of inf_ptrace_target.
11290 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11291 nbsd_nat_target.
11292
11293 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11294
11295 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11296 register_t.
11297
11298 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11299
11300 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11301 register_t.
11302
11303 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11304
11305 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
11306 register_t.
11307
11308 2020-03-13 Tom Tromey <tom@tromey.com>
11309
11310 * value.h (val_print): Don't declare.
11311 * valprint.h (val_print_array_elements)
11312 (val_print_scalar_formatted, generic_val_print): Don't declare.
11313 * valprint.c (generic_val_print_array): Take a struct value.
11314 (generic_val_print_ptr, generic_val_print_memberptr)
11315 (generic_val_print_bool, generic_val_print_int)
11316 (generic_val_print_char, generic_val_print_complex)
11317 (generic_val_print): Remove.
11318 (generic_value_print): Update.
11319 (do_val_print): Remove unused parameters. Don't call
11320 la_val_print.
11321 (val_print): Remove.
11322 (common_val_print): Update. Don't call value_check_printable.
11323 (val_print_scalar_formatted, val_print_array_elements): Remove.
11324 * rust-lang.c (rust_val_print): Remove.
11325 (rust_language_defn): Update.
11326 * p-valprint.c (pascal_val_print): Remove.
11327 (pascal_value_print_inner): Update.
11328 (pascal_object_print_val_fields, pascal_object_print_val):
11329 Remove.
11330 (pascal_object_print_static_field): Update.
11331 * p-lang.h (pascal_val_print): Don't declare.
11332 * p-lang.c (pascal_language_defn): Update.
11333 * opencl-lang.c (opencl_language_defn): Update.
11334 * objc-lang.c (objc_language_defn): Update.
11335 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
11336 * m2-lang.h (m2_val_print): Don't declare.
11337 * m2-lang.c (m2_language_defn): Update.
11338 * language.h (struct language_defn) <la_val_print>: Remove.
11339 * language.c (unk_lang_value_print_inner): Rename. Change
11340 argument types.
11341 (unknown_language_defn, auto_language_defn): Update.
11342 * go-valprint.c (go_val_print): Remove.
11343 * go-lang.h (go_val_print): Don't declare.
11344 * go-lang.c (go_language_defn): Update.
11345 * f-valprint.c (f_val_print): Remove.
11346 * f-lang.h (f_value_print): Don't declare.
11347 * f-lang.c (f_language_defn): Update.
11348 * d-valprint.c (d_val_print): Remove.
11349 * d-lang.h (d_value_print): Don't declare.
11350 * d-lang.c (d_language_defn): Update.
11351 * cp-valprint.c (cp_print_value_fields)
11352 (cp_print_value_fields_rtti, cp_print_value): Remove.
11353 (cp_print_static_field): Update.
11354 * c-valprint.c (c_val_print_array, c_val_print_ptr)
11355 (c_val_print_struct, c_val_print_union, c_val_print_int)
11356 (c_val_print_memberptr, c_val_print): Remove.
11357 * c-lang.h (c_val_print_array, cp_print_value_fields)
11358 (cp_print_value_fields_rtti): Don't declare.
11359 * c-lang.c (c_language_defn, cplus_language_defn)
11360 (asm_language_defn, minimal_language_defn): Update.
11361 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
11362 (ada_val_print_enum): Take a struct value.
11363 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
11364 (ada_val_print): Remove.
11365 (ada_value_print_1): Update.
11366 (printable_val_type): Remove.
11367 * ada-lang.h (ada_val_print): Don't declare.
11368 * ada-lang.c (ada_language_defn): Update.
11369
11370 2020-03-13 Tom Tromey <tom@tromey.com>
11371
11372 * valprint.c (do_val_print): Update.
11373 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
11374 a struct value.
11375 (value_to_value_object_no_release): Declare.
11376 * python/py-value.c (value_to_value_object_no_release): New
11377 function.
11378 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
11379 struct value.
11380 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
11381 function.
11382 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
11383 a struct value.
11384 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
11385 Declare.
11386 (gdbscm_apply_val_pretty_printer): Take a struct value.
11387 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
11388 value.
11389 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
11390 value.
11391 * extension-priv.h (struct extension_language_ops)
11392 <apply_val_pretty_printer>: Take a struct value.
11393 * cp-valprint.c (cp_print_value): Create a struct value.
11394 (cp_print_value): Update.
11395
11396 2020-03-13 Tom Tromey <tom@tromey.com>
11397
11398 * ada-valprint.c (print_field_values): Call common_val_print.
11399
11400 2020-03-13 Tom Tromey <tom@tromey.com>
11401
11402 * ada-valprint.c (val_print_packed_array_elements): Remove
11403 bitoffset and val parameters. Call common_val_print.
11404 (ada_val_print_string): Remove offset, address, and original_value
11405 parameters.
11406 (ada_val_print_array): Update.
11407 (ada_value_print_array): New function.
11408 (ada_value_print_1): Call it.
11409
11410 2020-03-13 Tom Tromey <tom@tromey.com>
11411
11412 * ada-valprint.c (ada_value_print): Use common_val_print.
11413
11414 2020-03-13 Tom Tromey <tom@tromey.com>
11415
11416 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
11417
11418 2020-03-13 Tom Tromey <tom@tromey.com>
11419
11420 * ada-valprint.c (ada_value_print_num): New function.
11421 (ada_value_print_1): Use it.
11422
11423 2020-03-13 Tom Tromey <tom@tromey.com>
11424
11425 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
11426
11427 2020-03-13 Tom Tromey <tom@tromey.com>
11428
11429 * ada-valprint.c (ada_value_print_ptr): New function.
11430 (ada_value_print_1): Use it.
11431
11432 2020-03-13 Tom Tromey <tom@tromey.com>
11433
11434 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
11435 call common_val_print.
11436 (ada_val_print_1): Update.
11437 (ada_value_print_1): New function.
11438 (ada_value_print_inner): Rewrite.
11439
11440 2020-03-13 Tom Tromey <tom@tromey.com>
11441
11442 * cp-valprint.c (cp_print_value_fields): Update.
11443 (cp_print_value): New function.
11444
11445 2020-03-13 Tom Tromey <tom@tromey.com>
11446
11447 * m2-valprint.c (m2_value_print_inner): Use
11448 cp_print_value_fields.
11449 * cp-valprint.c (cp_print_value_fields): New function.
11450 * c-valprint.c (c_value_print_struct): New function.
11451 (c_value_print_inner): Use c_value_print_struct.
11452 * c-lang.h (cp_print_value_fields): Declare.
11453
11454 2020-03-13 Tom Tromey <tom@tromey.com>
11455
11456 * c-valprint.c (c_value_print_array): New function.
11457 (c_value_print_inner): Use it.
11458
11459 2020-03-13 Tom Tromey <tom@tromey.com>
11460
11461 * c-valprint.c (c_value_print_memberptr): New function.
11462 (c_value_print_inner): Use it.
11463
11464 2020-03-13 Tom Tromey <tom@tromey.com>
11465
11466 * c-valprint.c (c_value_print_int): New function.
11467 (c_value_print_inner): Use it.
11468
11469 2020-03-13 Tom Tromey <tom@tromey.com>
11470
11471 * c-valprint.c (c_value_print_ptr): New function.
11472 (c_value_print_inner): Use it.
11473
11474 2020-03-13 Tom Tromey <tom@tromey.com>
11475
11476 * c-valprint.c (c_value_print_inner): Rewrite.
11477
11478 2020-03-13 Tom Tromey <tom@tromey.com>
11479
11480 * valprint.c (generic_value_print_complex): New function.
11481 (generic_value_print): Use it.
11482
11483 2020-03-13 Tom Tromey <tom@tromey.com>
11484
11485 * valprint.c (generic_val_print_float): Don't call
11486 val_print_scalar_formatted.
11487 (generic_val_print, generic_value_print): Update.
11488
11489 2020-03-13 Tom Tromey <tom@tromey.com>
11490
11491 * valprint.c (generic_value_print_char): New function
11492 (generic_value_print): Use it.
11493
11494 2020-03-13 Tom Tromey <tom@tromey.com>
11495
11496 * valprint.c (generic_value_print_int): New function.
11497 (generic_value_print): Use it.
11498
11499 2020-03-13 Tom Tromey <tom@tromey.com>
11500
11501 * valprint.c (generic_value_print_bool): New function.
11502 (generic_value_print): Use it.
11503
11504 2020-03-13 Tom Tromey <tom@tromey.com>
11505
11506 * valprint.c (generic_val_print_func): Simplify.
11507 (generic_val_print, generic_value_print): Update.
11508
11509 2020-03-13 Tom Tromey <tom@tromey.com>
11510
11511 * valprint.c (generic_val_print_flags): Remove.
11512 (generic_val_print, generic_value_print): Update.
11513 (val_print_type_code_flags): Add original_value parameter.
11514
11515 2020-03-13 Tom Tromey <tom@tromey.com>
11516
11517 * valprint.c (generic_val_print): Update.
11518 (generic_value_print): Update.
11519 * valprint.c (generic_val_print_enum): Don't call
11520 val_print_scalar_formatted.
11521
11522 2020-03-13 Tom Tromey <tom@tromey.com>
11523
11524 * valprint.c (generic_value_print): Call generic_value_print_ptr.
11525 * valprint.c (generic_value_print_ptr): New function.
11526
11527 2020-03-13 Tom Tromey <tom@tromey.com>
11528
11529 * valprint.c (generic_value_print): Rewrite.
11530
11531 2020-03-13 Tom Tromey <tom@tromey.com>
11532
11533 * p-valprint.c (pascal_object_print_value_fields)
11534 (pascal_object_print_value): New functions.
11535
11536 2020-03-13 Tom Tromey <tom@tromey.com>
11537
11538 * p-valprint.c (pascal_value_print_inner): Rewrite.
11539
11540 2020-03-13 Tom Tromey <tom@tromey.com>
11541
11542 * f-valprint.c (f_value_print_innner): Rewrite.
11543
11544 2020-03-13 Tom Tromey <tom@tromey.com>
11545
11546 * m2-valprint.c (m2_print_unbounded_array): New overload.
11547 (m2_print_unbounded_array): Update.
11548 (m2_print_array_contents): Take a struct value.
11549 (m2_value_print_inner): Rewrite.
11550
11551 2020-03-13 Tom Tromey <tom@tromey.com>
11552
11553 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
11554 (d_value_print_inner): New function.
11555 * d-lang.h (d_value_print_inner): Declare.
11556 * d-lang.c (d_language_defn): Use d_value_print_inner.
11557
11558 2020-03-13 Tom Tromey <tom@tromey.com>
11559
11560 * go-valprint.c (go_value_print_inner): New function.
11561 * go-lang.h (go_value_print_inner): Declare.
11562 * go-lang.c (go_language_defn): Use go_value_print_inner.
11563
11564 2020-03-13 Tom Tromey <tom@tromey.com>
11565
11566 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
11567 API.
11568 (rust_val_print): Rewrite.
11569 (rust_value_print_inner): New function, from rust_val_print.
11570 (rust_language_defn): Use rust_value_print_inner.
11571
11572 2020-03-13 Tom Tromey <tom@tromey.com>
11573
11574 * ada-valprint.c (ada_value_print_inner): New function.
11575 * ada-lang.h (ada_value_print_inner): Declare.
11576 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
11577
11578 2020-03-13 Tom Tromey <tom@tromey.com>
11579
11580 * f-valprint.c (f_value_print_innner): New function.
11581 * f-lang.h (f_value_print_innner): Declare.
11582 * f-lang.c (f_language_defn): Use f_value_print_innner.
11583
11584 2020-03-13 Tom Tromey <tom@tromey.com>
11585
11586 * p-valprint.c (pascal_value_print_inner): New function.
11587 * p-lang.h (pascal_value_print_inner): Declare.
11588 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
11589
11590 2020-03-13 Tom Tromey <tom@tromey.com>
11591
11592 * m2-valprint.c (m2_value_print_inner): New function.
11593 * m2-lang.h (m2_value_print_inner): Declare.
11594 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
11595
11596 2020-03-13 Tom Tromey <tom@tromey.com>
11597
11598 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
11599 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
11600 * c-valprint.c (c_value_print_inner): New function.
11601 * c-lang.h (c_value_print_inner): Declare.
11602 * c-lang.c (c_language_defn, cplus_language_defn)
11603 (asm_language_defn, minimal_language_defn): Use
11604 c_value_print_inner.
11605
11606 2020-03-13 Tom Tromey <tom@tromey.com>
11607
11608 * p-valprint.c (pascal_object_print_value_fields): Now static.
11609 * p-lang.h (pascal_object_print_value_fields): Don't declare.
11610
11611 2020-03-13 Tom Tromey <tom@tromey.com>
11612
11613 * c-valprint.c (c_val_print_array): Simplify.
11614
11615 2020-03-13 Tom Tromey <tom@tromey.com>
11616
11617 * valprint.c (value_print_array_elements): New function.
11618 * valprint.h (value_print_array_elements): Declare.
11619
11620 2020-03-13 Tom Tromey <tom@tromey.com>
11621
11622 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
11623 * mips-tdep.c (mips_print_register): Use
11624 value_print_scalar_formatted.
11625
11626 2020-03-13 Tom Tromey <tom@tromey.com>
11627
11628 * valprint.h (value_print_scalar_formatted): Declare.
11629 * valprint.c (value_print_scalar_formatted): New function.
11630
11631 2020-03-13 Tom Tromey <tom@tromey.com>
11632
11633 * valprint.h (generic_value_print): Declare.
11634 * valprint.c (generic_value_print): New function.
11635
11636 2020-03-13 Tom Tromey <tom@tromey.com>
11637
11638 * valprint.c (do_val_print): Call la_value_print_inner, if
11639 available.
11640 * rust-lang.c (rust_language_defn): Update.
11641 * p-lang.c (pascal_language_defn): Update.
11642 * opencl-lang.c (opencl_language_defn): Update.
11643 * objc-lang.c (objc_language_defn): Update.
11644 * m2-lang.c (m2_language_defn): Update.
11645 * language.h (struct language_defn) <la_value_print_inner>: New
11646 member.
11647 * language.c (unknown_language_defn, auto_language_defn): Update.
11648 * go-lang.c (go_language_defn): Update.
11649 * f-lang.c (f_language_defn): Update.
11650 * d-lang.c (d_language_defn): Update.
11651 * c-lang.c (c_language_defn, cplus_language_defn)
11652 (asm_language_defn, minimal_language_defn): Update.
11653 * ada-lang.c (ada_language_defn): Update.
11654
11655 2020-03-13 Tom Tromey <tom@tromey.com>
11656
11657 * c-valprint.c (c_value_print): Use common_val_print.
11658
11659 2020-03-13 Tom Tromey <tom@tromey.com>
11660
11661 * cp-valprint.c (cp_print_static_field): Use common_val_print.
11662
11663 2020-03-13 Tom Tromey <tom@tromey.com>
11664
11665 * f-valprint.c (f77_print_array_1, f_val_print): Use
11666 common_val_print.
11667
11668 2020-03-13 Tom Tromey <tom@tromey.com>
11669
11670 * riscv-tdep.c (riscv_print_one_register_info): Use
11671 common_val_print.
11672
11673 2020-03-13 Tom Tromey <tom@tromey.com>
11674
11675 * mi/mi-main.c (output_register): Use common_val_print.
11676
11677 2020-03-13 Tom Tromey <tom@tromey.com>
11678
11679 * infcmd.c (default_print_one_register_info): Use
11680 common_val_print.
11681
11682 2020-03-13 Tom Tromey <tom@tromey.com>
11683
11684 * valprint.h (common_val_print_checked): Declare.
11685 * valprint.c (common_val_print_checked): New function.
11686 * stack.c (print_frame_arg): Use common_val_print_checked.
11687
11688 2020-03-13 Tom Tromey <tom@tromey.com>
11689
11690 * valprint.c (do_val_print): New function, from val_print.
11691 (val_print): Use do_val_print.
11692 (common_val_print): Use do_val_print.
11693
11694 2020-03-13 Tom Tromey <tom@tromey.com>
11695
11696 * valprint.c (value_print): Use scoped_value_mark.
11697
11698 2020-03-13 Tom de Vries <tdevries@suse.de>
11699
11700 PR symtab/25646
11701 * psymtab.c (partial_symtab::partial_symtab): Don't set
11702 globals_offset and statics_offset. Push element onto
11703 current_global_psymbols and current_static_psymbols stacks.
11704 (concat): New function.
11705 (end_psymtab_common): Set globals_offset and statics_offset. Pop
11706 element from current_global_psymbols and current_static_psymbols
11707 stacks. Concat popped elements to global_psymbols and
11708 static_symbols.
11709 (add_psymbol_to_list): Use current_global_psymbols and
11710 current_static_psymbols stacks.
11711 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
11712 current_static_psymbols fields.
11713
11714 2020-03-12 Christian Biesinger <cbiesinger@google.com>
11715
11716 * corelow.c (sniff_core_bfd): Remove.
11717 (class core_target) <m_core_vec>: Remove.
11718 (core_target::core_target): Update.
11719 (core_file_fns): Remove.
11720 (deprecated_add_core_fns): Remove.
11721 (default_core_sniffer): Remove.
11722 (sniff_core_bfd): Remove.
11723 (default_check_format): Remove.
11724 (gdb_check_format): Remove.
11725 (core_target_open): Update.
11726 (core_target::get_core_register_section): Update.
11727 (get_core_registers_cb): Update.
11728 (core_target::fetch_registers): Update.
11729 * gdbcore.h (struct core_fns): Remove.
11730 (deprecated_add_core_fns): Remove.
11731 (default_core_sniffer): Remove.
11732 (default_check_format): Remove.
11733
11734 2020-03-12 Tom Tromey <tom@tromey.com>
11735
11736 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
11737 CORE_ADDR.
11738 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
11739
11740 2020-03-12 Tom Tromey <tom@tromey.com>
11741
11742 * remote.c (remote_target::download_tracepoint)
11743 (remote_target::enable_tracepoint)
11744 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
11745 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
11746 sprintf_vma.
11747
11748 2020-03-12 Tom Tromey <tom@tromey.com>
11749
11750 * symfile-mem.c: Update CORE_ADDR size assert.
11751
11752 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
11753
11754 * selftest.m4: Move to gdbsupport/.
11755 * acinclude.m4: Update path to selftest.m4.
11756
11757 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
11758
11759 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
11760 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
11761 gdbarch-selfselftests.c and selftest-arch.c.
11762 (SUBDIR_UNITTESTS_OBS): Rename to...
11763 (SELFTESTS_OBS): ... this.
11764 (COMMON_SFILES): Remove disasm-selftests.c and
11765 gdbarch-selftests.c.
11766 * configure.ac: Don't add selftest-arch.{c,o} to
11767 CONFIG_{SRCS,OBS}.
11768 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
11769 preprocessor conditions.
11770
11771 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
11772
11773 * configure.ac: Don't source bfd/development.sh.
11774 * selftest.m4: Modify comment.
11775 * configure: Re-generate.
11776
11777 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
11778
11779 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
11780 not "true" or "false".
11781 * configure: Re-generate.
11782
11783 2020-03-12 Christian Biesinger <cbiesinger@google.com>
11784
11785 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
11786 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
11787 renamed to arm_nbsd_supply_gregset.
11788 (fetch_register): Update to call arm_nbsd_supply_gregset.
11789 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
11790 (arm_netbsd_nat_target::fetch_registers): Update.
11791 (fetch_elfcore_registers): Removed.
11792 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
11793 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
11794 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
11795 not require NetBSD system headers.
11796 (arm_nbsd_regset): New struct.
11797 (arm_nbsd_iterate_over_regset_sections): New function.
11798 (arm_netbsd_init_abi_common): Updated to call
11799 set_gdbarch_iterate_over_regset_sections.
11800 * arm-nbsd-tdep.h: New file.
11801
11802 2020-03-11 Kevin Buettner <kevinb@redhat.com>
11803
11804 * symtab.c (find_pc_sect_line): Add check which prevents infinite
11805 recursion.
11806
11807 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
11808
11809 * configure: Re-generate.
11810
11811 2020-03-11 Tom Tromey <tromey@adacore.com>
11812
11813 * ada-typeprint.c (print_choices): Fix comment.
11814
11815 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
11816
11817 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
11818 previous item in the list, when the list has no items.
11819
11820 2020-03-11 Tom de Vries <tdevries@suse.de>
11821
11822 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
11823 PROP_LOCLIST handling code.
11824
11825 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
11826
11827 * buildsym-legacy.c (record_line): Pass extra parameter to
11828 record_line.
11829 * buildsym.c (buildsym_compunit::record_line): Take an extra
11830 parameter, reduce duplication in the line table, and record the
11831 is_stmt flag in the line table.
11832 * buildsym.h (buildsym_compunit::record_line): Add extra
11833 parameter.
11834 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
11835 non-statement lines.
11836 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
11837 this to the symtab builder.
11838 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
11839 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
11840 through to dwarf_record_line_1.
11841 * infrun.c (process_event_stop_test): When stepping, don't stop at
11842 a non-statement instruction, and only refresh the step info when
11843 we land in the middle of a line's range. Also add an extra
11844 comment.
11845 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
11846 field.
11847 * record-btrace.c (btrace_find_line_range): Only record lines
11848 marked as is-statement.
11849 * stack.c (frame_show_address): Show the frame address if we are
11850 in a non-statement sal.
11851 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
11852 (maintenance_print_one_line_table): Print a header for the is_stmt
11853 column, and include is_stmt information in the output.
11854 * symtab.c (find_pc_sect_line): Find lines marked as statements in
11855 preference to non-statements.
11856 (find_pcs_for_symtab_line): Prefer is-statement entries.
11857 (find_line_common): Likewise.
11858 * symtab.h (struct linetable_entry): Add is_stmt field.
11859 (struct symtab_and_line): Likewise.
11860 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
11861 arranging the line table.
11862
11863 2020-03-07 Tom de Vries <tdevries@suse.de>
11864
11865 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
11866 DIE.
11867
11868 2020-03-07 Tom Tromey <tom@tromey.com>
11869
11870 * valops.c (value_literal_complex): Remove obsolete comment.
11871 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
11872 comment.
11873
11874 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11875
11876 * infrun.h: Forward-declare thread_info.
11877 (set_step_info): Add thread_info parameter, add doc.
11878 * infrun.c (set_step_info): Add thread_info parameter, move doc
11879 to header.
11880 * infrun.c (process_event_stop_test): Pass thread to
11881 set_step_info call.
11882 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
11883 set_step_info.
11884 (prepare_one_step): Add thread_info parameter, pass it to
11885 set_step_frame and prepare_one_step (recursive) call.
11886 (step_1): Pass thread to prepare_one_step call.
11887 (step_command_fsm::should_stop): Pass thread to
11888 prepare_one_step.
11889 (until_next_fsm): Pass thread to set_step_frame call.
11890 (finish_command): Pass thread to set_step_info call.
11891
11892 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
11893
11894 * windows-tdep.c (windows_solib_create_inferior_hook):
11895 Check if inferior is running.
11896
11897 2020-03-06 Tom de Vries <tdevries@suse.de>
11898
11899 * NEWS: Fix "the the".
11900 * ctfread.c: Same.
11901
11902 2020-03-06 Tom de Vries <tdevries@suse.de>
11903
11904 * psymtab.c (psymtab_to_symtab): Don't print "done.".
11905
11906 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11907
11908 * .dir-locals.el: Add a comment referencing the other copies of
11909 this file.
11910
11911 2020-03-05 John Baldwin <jhb@FreeBSD.org>
11912
11913 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
11914 psargs.
11915
11916 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11917
11918 * .gitattributes: New file.
11919
11920 2020-03-04 Tom Tromey <tom@tromey.com>
11921
11922 * symmisc.c (print_symbol_bcache_statistics)
11923 (print_objfile_statistics): Update.
11924 * symfile.c (allocate_symtab): Use intern.
11925 * psymtab.c (partial_symtab::partial_symtab): Use intern.
11926 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11927 macro_cache>: Remove.
11928 <string_cache>: New member.
11929 (struct objfile) <intern>: New methods.
11930 * elfread.c (elf_symtab_read): Use intern.
11931 * dwarf2/read.c (fixup_go_packaging): Intern package name.
11932 (dwarf2_compute_name, dwarf2_physname)
11933 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
11934 names.
11935 (guess_partial_die_structure_name): Update.
11936 (partial_die_info::fixup): Intern name.
11937 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
11938 name.
11939 (dwarf2_name): Intern name. Update.
11940 * buildsym.c (buildsym_compunit::get_macro_table): Use
11941 string_cache.
11942
11943 2020-03-04 Tom Tromey <tom@tromey.com>
11944
11945 * jit.c (bfd_open_from_target_memory): Make "target" const.
11946 * corefile.c (gnutarget): Now const.
11947 * gdbcore.h (gnutarget): Now const.
11948
11949 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
11950
11951 * NEWS: Mention support for WOW64 processes.
11952 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
11953 (amd64_windows_segment_register_p): Remove static.
11954 (_initialize_amd64_windows_nat): Update.
11955 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
11956 * i386-windows-nat.c (context_offset): Update.
11957 (i386_mappings): Rename and remove static.
11958 (i386_windows_segment_register_p): Remove static.
11959 (_initialize_i386_windows_nat): Update.
11960 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
11961 (STATUS_WX86_SINGLE_STEP): New macro.
11962 (EnumProcessModulesEx): New macro.
11963 (Wow64SuspendThread): New macro.
11964 (Wow64GetThreadContext): New macro.
11965 (Wow64SetThreadContext): New macro.
11966 (Wow64GetThreadSelectorEntry): New macro.
11967 (windows_set_context_register_offsets): Add static.
11968 (windows_set_segment_register_p): Likewise.
11969 (windows_add_thread): Adapt for WOW64 processes.
11970 (windows_fetch_one_register): Likewise.
11971 (windows_nat_target::fetch_registers): Likewise.
11972 (windows_store_one_register): Likewise.
11973 (display_selector): Likewise.
11974 (display_selectors): Likewise.
11975 (handle_exception): Likewise.
11976 (windows_continue): Likewise.
11977 (windows_nat_target::resume): Likewise.
11978 (windows_add_all_dlls): Likewise.
11979 (do_initial_windows_stuff): Likewise.
11980 (windows_nat_target::attach): Likewise.
11981 (windows_get_exec_module_filename): Likewise.
11982 (windows_nat_target::create_inferior): Likewise.
11983 (windows_xfer_siginfo): Likewise.
11984 (_initialize_loadable): Initialize Wow64SuspendThread,
11985 Wow64GetThreadContext, Wow64SetThreadContext,
11986 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
11987 * windows-nat.h (windows_set_context_register_offsets):
11988 Remove declaration.
11989 (windows_set_segment_register_p): Likewise.
11990 (i386_windows_segment_register_p): Add declaration.
11991 (amd64_windows_segment_register_p): Likewise.
11992
11993 2020-03-04 Luis Machado <luis.machado@linaro.org>
11994
11995 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
11996 in "info registers" for AArch64/ARM.
11997
11998 The change caused "info registers" to not print GPR's.
11999
12000 gdb/ChangeLog:
12001
12002 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12003
12004 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12005 when reg->group is empty and reggroup is not.
12006
12007 2020-03-03 Tom Tromey <tromey@adacore.com>
12008
12009 * dwarf2/frame.c (struct dwarf2_frame_cache)
12010 <checked_tailcall_bottom, entry_cfa_sp_offset,
12011 entry_cfa_sp_offset_p>: Remove members.
12012 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
12013 (dwarf2_frame_prev_register): Don't call
12014 dwarf2_tailcall_sniffer_first.
12015 (dwarf2_append_unwinders): Don't append tailcall unwinder.
12016 * frame-unwind.c (add_unwinder): New fuction.
12017 (frame_unwind_init): Use it. Add tailcall unwinder.
12018
12019 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
12020 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12021
12022 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
12023 value should be printed as true.
12024
12025 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
12026
12027 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
12028 (windows_init_abi): Set and use windows_so_ops.
12029
12030 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
12031
12032 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
12033 when verifying if dealing with a convenience variable.
12034
12035 2020-03-03 Luis Machado <luis.machado@linaro.org>
12036
12037 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
12038
12039 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12040
12041 * infrun.c (gdbarch_supports_displaced_stepping): New.
12042 (use_displaced_stepping): Break up conditions in smaller pieces.
12043 Use gdbarch_supports_displaced_stepping.
12044 (displaced_step_prepare_throw): Use
12045 gdbarch_supports_displaced_stepping.
12046
12047 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12048
12049 * NEWS: Mention new behaviour of the history filename.
12050 * top.c (write_history_p): Add comment.
12051 (show_write_history_p): Add header comment, give a different
12052 message when history writing is on, but the history filename is
12053 empty.
12054 (history_filename): Add comment.
12055 (history_filename_empty): New function.
12056 (show_history_filename): Add header comment, give a different
12057 message when the filename is empty.
12058 (init_history): Compare history_filename against nullptr, and only
12059 read history if the filename is not empty.
12060 (set_history_filename): Add header comment, and only make
12061 non-empty filenames absolute.
12062 (init_main): Make the filename argument to 'set history filename'
12063 optional.
12064
12065 2020-03-02 Christian Biesinger <cbiesinger@google.com>
12066
12067 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
12068 (arm_supply_vfpregset): ...this, and update to use VFP registers.
12069 (fetch_fp_register): Update.
12070 (fetch_fp_regs): Update.
12071 (store_fp_register): Update.
12072 (store_fp_regs): Update.
12073 (arm_netbsd_nat_target::read_description): New function.
12074 (fetch_elfcore_registers): Update.
12075
12076 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12077
12078 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
12079 general_thread if the stop reply is missing a thread-id.
12080 (remote_target::process_stop_reply): Use the first non-exited
12081 thread if the target didn't pass a thread-id.
12082 * infrun.c (do_target_wait): Move call to
12083 switch_to_inferior_no_thread to ....
12084 (do_target_wait_1): ... here.
12085
12086 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
12087
12088 * debuginfod-support.c: Include defs.h first.
12089
12090 2020-02-28 Tom de Vries <tdevries@suse.de>
12091
12092 * symfile.c (set_initial_language): Use default language for lookup.
12093
12094 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
12095
12096 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
12097 reader variable, pass `this` to read_cutu_die_from_dwo.
12098
12099 2020-02-27 Aaron Merey <amerey@redhat.com>
12100
12101 * source.c (open_source_file): Check for nullptr when computing
12102 srcpath.
12103
12104 2020-02-27 Tom Tromey <tromey@adacore.com>
12105
12106 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
12107 member.
12108 (dwarf2_add_field): Don't update nfields.
12109 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
12110
12111 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12112
12113 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
12114 abs.
12115
12116 2020-02-26 Tom Tromey <tom@tromey.com>
12117
12118 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
12119 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
12120 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
12121 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
12122 per_cu_data.
12123
12124 2020-02-26 Tom Tromey <tom@tromey.com>
12125
12126 * dwarf2/index-write.c (psym_index_map): Change type.
12127 (add_address_entry_worker, write_one_signatured_type)
12128 (recursively_count_psymbols, recursively_write_psymbols)
12129 (class debug_names, psyms_seen_size, write_gdbindex)
12130 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
12131
12132 2020-02-26 Aaron Merey <amerey@redhat.com>
12133
12134 * Makefile.in: Handle optional debuginfod support.
12135 * NEWS: Update.
12136 * README: Add --with-debuginfod summary.
12137 * config.in: Regenerate.
12138 * configure: Regenerate.
12139 * configure.ac: Handle optional debuginfod support.
12140 * debuginfod-support.c: debuginfod helper functions.
12141 * debuginfod-support.h: Ditto.
12142 * doc/gdb.texinfo: Add --with-debuginfod to configure options
12143 summary.
12144 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
12145 when a dwz file cannot be found.
12146 * elfread.c (elf_symfile_read): Query debuginfod servers when a
12147 debuginfo file cannot be found.
12148 * source.c (open_source_file): Query debuginfod servers when a
12149 source file cannot be found.
12150 * top.c (print_gdb_configuration): Include
12151 --{with,without}-debuginfod in the output.
12152
12153 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
12154
12155 * thread.c (thr_try_catch_cmd): Print thread name.
12156
12157 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
12158
12159 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
12160 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12161 dwarf2_fetch_die_type_sect_off): Move to...
12162 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
12163 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12164 dwarf2_fetch_die_type_sect_off): ... here.
12165 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
12166 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12167 dwarf2_fetch_die_type_sect_off): Move doc to header file.
12168
12169 2020-02-26 Tom de Vries <tdevries@suse.de>
12170
12171 PR gdb/25603
12172 * symfile.c (set_initial_language): Exit-early if
12173 language_mode == language_mode_manual.
12174
12175 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12176
12177 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
12178 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
12179 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
12180
12181 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
12182
12183 * gdbtypes.c (create_array_type_with_stride): Handle negative
12184 array strides.
12185 * valarith.c (value_subscripted_rvalue): Likewise.
12186
12187 2020-02-25 Luis Machado <luis.machado@linaro.org>
12188
12189 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
12190
12191 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12192
12193 * loc.h (dwarf2_get_die_type): Move to...
12194 * read.h (dwarf2_get_die_type): ... here.
12195 * read.c (dwarf2_get_die_type): Move doc to header.
12196
12197 2020-02-25 Joel Brobecker <brobecker@adacore.com>
12198
12199 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
12200 'gnulib/Makefile.in' to the list.
12201
12202 2020-02-24 Tom Tromey <tom@tromey.com>
12203
12204 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
12205 Remove.
12206 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
12207 XOBNEWVEC.
12208
12209 2020-02-24 Tom Tromey <tom@tromey.com>
12210
12211 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
12212 New method.
12213 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
12214 (dw2_do_instantiate_symtab, dw2_get_file_names)
12215 (build_type_psymtab_dependencies, load_full_type_unit): Update.
12216
12217 2020-02-24 Tom Tromey <tom@tromey.com>
12218
12219 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
12220 make_scoped_restore.
12221 (dwarf2_psymtab::read_symtab): Don't clear
12222 reading_partial_symbols.
12223
12224 2020-02-24 Tom de Vries <tdevries@suse.de>
12225
12226 PR gdb/25592
12227 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
12228
12229 2020-02-24 Tom de Vries <tdevries@suse.de>
12230
12231 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
12232 commands layout next/prev/regs.
12233
12234 2020-02-22 Tom Tromey <tom@tromey.com>
12235
12236 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
12237 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
12238
12239 2020-02-22 Tom Tromey <tom@tromey.com>
12240
12241 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
12242
12243 2020-02-22 Tom Tromey <tom@tromey.com>
12244
12245 * tui/tui-win.c (_initialize_tui_win): Add usage text.
12246 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
12247 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
12248 * tui/tui.c (_initialize_tui): Add usage text.
12249
12250 2020-02-22 Tom Tromey <tom@tromey.com>
12251
12252 * tui/tui-win.c (tui_set_focus_command)
12253 (tui_set_win_height_command): Use error_no_arg.
12254 (_initialize_tui_win): Update help text.
12255 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
12256
12257 2020-02-22 Tom Tromey <tom@tromey.com>
12258
12259 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
12260 * tui/tui-disasm.h (struct tui_disasm_window)
12261 <display_start_addr>: Declare.
12262 * tui/tui-source.h (struct tui_source_window)
12263 <display_start_addr>: Declare.
12264 * tui/tui-winsource.h (struct tui_source_window_base)
12265 <show_source_line, display_start_addr>: New methods.
12266 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
12267 Rename and move to protected section.
12268 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
12269 (tui_source_window_base::do_erase_source_content): Update.
12270 (tui_source_window_base::show_source_line): Now a method.
12271 (tui_source_window_base::show_source_content)
12272 (tui_source_window_base::tui_source_window_base)
12273 (tui_source_window_base::rerender)
12274 (tui_source_window_base::refill)
12275 (tui_source_window_base::do_scroll_horizontal)
12276 (tui_source_window_base::set_is_exec_point_at)
12277 (tui_source_window_base::update_breakpoint_info)
12278 (tui_source_window_base::update_exec_info): Update.
12279 * tui/tui-source.c (tui_source_window::set_contents)
12280 (tui_source_window::showing_source_p)
12281 (tui_source_window::do_scroll_vertical)
12282 (tui_source_window::location_matches_p)
12283 (tui_source_window::line_is_displayed): Update.
12284 (tui_source_window::display_start_addr): New method.
12285 * tui/tui-disasm.c (tui_disasm_window::set_contents)
12286 (tui_disasm_window::do_scroll_vertical)
12287 (tui_disasm_window::location_matches_p): Update.
12288 (tui_disasm_window::display_start_addr): New method.
12289
12290 2020-02-22 Tom Tromey <tom@tromey.com>
12291
12292 * NEWS: Add entry for gdb.register_window_type.
12293 * tui/tui-layout.h (window_factory): New typedef.
12294 (tui_register_window): Declare.
12295 * tui/tui-layout.c (saved_tui_windows): New global.
12296 (tui_apply_current_layout): Use it.
12297 (tui_register_window): New function.
12298 * python/python.c (do_start_initialization): Call
12299 gdbpy_initialize_tui.
12300 (python_GdbMethods): Add "register_window_type" function.
12301 * python/python-internal.h (gdbpy_register_tui_window)
12302 (gdbpy_initialize_tui): Declare.
12303 * python/py-tui.c: New file.
12304 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
12305
12306 2020-02-22 Tom Tromey <tom@tromey.com>
12307
12308 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
12309
12310 2020-02-22 Tom Tromey <tom@tromey.com>
12311
12312 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
12313 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
12314 * tui/tui-data.c (tui_set_win_with_focus): Remove.
12315 (tui_set_win_focus_to): Move from tui-win.c.
12316
12317 2020-02-22 Tom Tromey <tom@tromey.com>
12318
12319 * tui/tui-layout.c (make_standard_window, get_locator_window): New
12320 functions.
12321 (known_window_types): New global.
12322 (tui_get_window_by_name): Reimplement.
12323 (initialize_known_windows): New function.
12324 (validate_window_name): Rewrite.
12325 (_initialize_tui_layout): Call initialize_known_windows.
12326
12327 2020-02-22 Tom Tromey <tom@tromey.com>
12328
12329 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
12330 Remove constants.
12331 * tui/tui-winsource.h (struct tui_source_window_base)
12332 <tui_source_window_base>: Remove parameter.
12333 * tui/tui-winsource.c
12334 (tui_source_window_base::tui_source_window_base): Remove
12335 parameter.
12336 (tui_source_window_base::refill): Update.
12337 * tui/tui-stack.h (struct tui_locator_window)
12338 <tui_locator_window>: Update.
12339 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
12340 Default the constructor.
12341 * tui/tui-regs.h (struct tui_data_item_window)
12342 <tui_data_item_window>: Default the constructor.
12343 (struct tui_data_window) <tui_data_window>: Likewise.
12344 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
12345 Default the constructor.
12346 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
12347 Default the constructor.
12348 <type>: Remove.
12349 (struct tui_win_info) <tui_win_info>: Default the constructor.
12350 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
12351 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
12352 Default the constructor.
12353
12354 2020-02-22 Tom Tromey <tom@tromey.com>
12355
12356 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
12357 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
12358 * tui/tui-win.c (tui_resize_all): Don't call
12359 tui_delete_invisible_windows.
12360 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
12361 done.
12362 (tui_set_layout): Update.
12363 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
12364 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
12365 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
12366
12367 2020-02-22 Tom Tromey <tom@tromey.com>
12368
12369 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
12370 correctly.
12371
12372 2020-02-22 Tom Tromey <tom@tromey.com>
12373
12374 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
12375
12376 2020-02-22 Tom Tromey <tom@tromey.com>
12377
12378 * tui/tui-winsource.h (struct tui_source_window_iterator)
12379 <inner_iterator>: New etytypedef.
12380 <tui_source_window_iterator>: Take "end" parameter.
12381 <tui_source_window_iterator>: Take iterator.
12382 <operator*, advance>: Update.
12383 <m_iter>: Change type.
12384 <m_end>: New field.
12385 (struct tui_source_windows) <begin, end>: Update.
12386 * tui/tui-layout.c (tui_windows): New global.
12387 (tui_apply_current_layout): Clear tui_windows.
12388 (tui_layout_window::apply): Update tui_windows.
12389 * tui/tui-data.h (tui_windows): Declare.
12390 (all_tui_windows): Now inline function.
12391 (class tui_window_iterator, struct all_tui_windows): Remove.
12392
12393 2020-02-22 Tom Tromey <tom@tromey.com>
12394
12395 PR tui/17850:
12396 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
12397 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
12398 "height" argument.
12399 (class tui_layout_window) <get_sizes>: Likewise.
12400 (class tui_layout_split) <tui_layout_split>: Add "vertical"
12401 argument.
12402 <get_sizes>: Add "height" argument.
12403 <m_vertical>: New field.
12404 * tui/tui-layout.c (tui_layout_split::clone): Update.
12405 (tui_layout_split::get_sizes): Add "height" argument.
12406 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
12407 (tui_new_layout_command): Parse "-horizontal".
12408 (_initialize_tui_layout): Update help string.
12409 (tui_layout_split::specification): Add "-horizontal" when needed.
12410 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
12411 argument.
12412 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
12413 New methods.
12414
12415 2020-02-22 Tom Tromey <tom@tromey.com>
12416
12417 * tui/tui-layout.h (enum tui_adjust_result): New.
12418 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
12419 (class tui_layout_window) <adjust_size>: Return
12420 tui_adjust_result. Rewrite.
12421 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
12422 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
12423
12424 2020-02-22 Tom Tromey <tom@tromey.com>
12425
12426 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
12427 parameter and return types.
12428 (class tui_layout_base) <specification>: Add "depth".
12429 (class tui_layout_window) <specification>: Add "depth".
12430 (class tui_layout_split) <specification>: Add "depth".
12431 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
12432 and return types.
12433 (tui_new_layout_command): Parse sub-layouts.
12434 (_initialize_tui_layout): Update help string.
12435 (tui_layout_window::specification): Add "depth".
12436 (add_layout_command): Update.
12437
12438 2020-02-22 Tom Tromey <tom@tromey.com>
12439
12440 * NEWS: Add "tui new-layout" item.
12441 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
12442 Add new-layout command to help text.
12443 (validate_window_name): New function.
12444 (tui_new_layout_command): New function.
12445 (_initialize_tui_layout): Register "new-layout".
12446 (tui_layout_window::specification): New method.
12447 (tui_layout_window::specification): New method.
12448 * tui/tui-layout.h (class tui_layout_base) <specification>: New
12449 method.
12450 (class tui_layout_window) <specification>: New method.
12451 (class tui_layout_split) <specification>: New method.
12452
12453 2020-02-22 Tom Tromey <tom@tromey.com>
12454
12455 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
12456 * tui/tui-win.c (window_name_completer): Update comment.
12457 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
12458 Declare method.
12459 (class tui_layout_window) <replace_window>: Likewise.
12460 (class tui_layout_split) <replace_window>: Likewise.
12461 (tui_set_layout): Don't declare.
12462 (tui_set_initial_layout): Declare function.
12463 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
12464 (asm_regs_layout): New globals.
12465 (tui_current_layout, show_layout): Remove.
12466 (tui_set_layout, tui_add_win_to_layout): Rewrite.
12467 (find_layout, tui_apply_layout): New function.
12468 (layout_completer): Remove.
12469 (tui_next_layout): Reimplement.
12470 (tui_next_layout_command): New function.
12471 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12472 (tui_regs_layout): Reimplement.
12473 (tui_regs_layout_command): New function.
12474 (extract_display_start_addr): Rewrite.
12475 (next_layout, prev_layout): Remove.
12476 (tui_layout_window::replace_window): New method.
12477 (tui_layout_split::replace_window): New method.
12478 (destroy_layout): New function.
12479 (layout_list): New global.
12480 (add_layout_command): New function.
12481 (initialize_layouts): Update.
12482 (tui_layout_command): New function.
12483 (_initialize_tui_layout): Install "layout" commands.
12484 * tui/tui-data.h (enum tui_layout_type): Remove.
12485 (tui_current_layout): Don't declare.
12486
12487 2020-02-22 Tom Tromey <tom@tromey.com>
12488
12489 * tui/tui-regs.c (tui_reg_layout): Remove.
12490 (tui_reg_command): Use tui_regs_layout.
12491 * tui/tui-layout.h (tui_reg_command): Declare.
12492 * tui/tui-layout.c (tui_reg_command): New function.
12493
12494 2020-02-22 Tom Tromey <tom@tromey.com>
12495
12496 * tui/tui.c (tui_rl_delete_other_windows): Call
12497 tui_remove_some_windows.
12498 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12499 Declare method.
12500 (class tui_layout_window) <remove_windows>: New method.
12501 (class tui_layout_split) <remove_windows>: Declare.
12502 (tui_remove_some_windows): Declare.
12503 * tui/tui-layout.c (tui_remove_some_windows): New function.
12504 (tui_layout_split::remove_windows): New method.
12505
12506 2020-02-22 Tom Tromey <tom@tromey.com>
12507
12508 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
12509 * tui/tui-layout.h (tui_next_layout): Declare.
12510 * tui/tui-layout.c (tui_next_layout): New function.
12511
12512 2020-02-22 Tom Tromey <tom@tromey.com>
12513
12514 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
12515 correct coordinates.
12516
12517 2020-02-22 Tom Tromey <tom@tromey.com>
12518
12519 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
12520 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
12521 DATA_WIN case.
12522
12523 2020-02-22 Tom Tromey <tom@tromey.com>
12524
12525 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
12526 TUI_DISASM_WIN, not tui_win_list.
12527
12528 2020-02-22 Tom Tromey <tom@tromey.com>
12529
12530 * valprint.c (generic_val_print_enum_1)
12531 (val_print_type_code_flags): Style member names.
12532 * rust-lang.c (val_print_struct, rust_print_enum)
12533 (rust_print_struct_def, rust_internal_print_type): Style member
12534 names.
12535 * p-valprint.c (pascal_object_print_value_fields): Style member
12536 names. Only call fprintf_symbol_filtered for static members.
12537 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
12538 * f-valprint.c (f_val_print): Style member names.
12539 * f-typeprint.c (f_type_print_base): Style member names.
12540 * cp-valprint.c (cp_print_value_fields): Style member names. Only
12541 call fprintf_symbol_filtered for static members.
12542 (cp_print_class_member): Style member names.
12543 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
12544 member names.
12545 * ada-valprint.c (ada_print_scalar): Style enum names.
12546 (ada_val_print_enum): Likewise.
12547 * ada-typeprint.c (print_enum_type): Style enum names.
12548
12549 2020-02-21 Tom Tromey <tom@tromey.com>
12550
12551 * psympriv.h (struct partial_symtab): Update comment.
12552
12553 2020-02-21 Tom Tromey <tromey@adacore.com>
12554
12555 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
12556 type is CORE_ADDR.
12557
12558 2020-02-21 Tom de Vries <tdevries@suse.de>
12559
12560 PR gdb/25534
12561 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
12562 if dependencies[i]->user != NULL.
12563
12564 2020-02-21 Ali Tamur <tamur@google.com>
12565
12566 * dwarf2/read.c (dwarf2_name): Add null check.
12567
12568 2020-02-20 Tom Tromey <tom@tromey.com>
12569
12570 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
12571 ">=", in binary search.
12572 (dwarf2_find_containing_comp_unit): New overload.
12573 (run_test): New self-test.
12574 (_initialize_dwarf2_read): Register new test.
12575
12576 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
12577
12578 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
12579 * riscv-tdep.h: Likewise.
12580 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
12581 rv32-only CSR.
12582 * features/riscv/64bit-csr.xml: Regenerated.
12583
12584 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12585 Tom Tromey <tom@tromey.com>
12586
12587 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
12588 of 'fputc_unfiltered'.
12589 (putchar_unfiltered): Call 'fputc_unfiltered'.
12590 (fputc_unfiltered): Call 'fputs_unfiltered'.
12591
12592 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
12593
12594 * config.in: Regenerate.
12595 * configure: Regenerate.
12596 * configure.ac: Add --with-python-libdir option.
12597 * main.c: Use WITH_PYTHON_LIBDIR.
12598
12599 2020-02-19 Tom Tromey <tom@tromey.com>
12600
12601 * symtab.c (general_symbol_info::compute_and_set_names): Use
12602 obstack_strndup. Simplify call to symbol_set_demangled_name.
12603
12604 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
12605
12606 * dwarf2/read.c (allocate_signatured_type_table,
12607 allocate_dwo_unit_table, allocate_type_unit_groups_table,
12608 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
12609 Remove objfile parameter, update all callers.
12610
12611 2020-02-19 Doug Evans <dje@google.com>
12612
12613 PR rust/25535
12614 * rust-lang.c (rust_print_enum): Apply embedded_offset to
12615 rust_enum_variant calculation.
12616
12617 2020-02-19 Tom Tromey <tromey@adacore.com>
12618
12619 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
12620
12621 2020-02-19 Tom Tromey <tromey@adacore.com>
12622
12623 * ada-lang.c (cache_symbol): Use obstack_strdup.
12624
12625 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12626
12627 * configure: Regenerate.
12628
12629 2020-02-19 Tom Tromey <tromey@adacore.com>
12630
12631 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
12632 NULL check.
12633
12634 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
12635
12636 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
12637
12638 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12639
12640 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
12641 if GDBSERVER is not defined.
12642 (riscv_tdesc_cache): Likewise, also store const target_desc.
12643 (STATIC_IN_GDB): Define.
12644 (riscv_create_target_description): Update declaration with
12645 STATIC_IN_GDB.
12646 (riscv_lookup_target_description): New function, only define if
12647 GDBSERVER is not defined.
12648 * arch/riscv.h (riscv_create_target_description): Declare only
12649 when GDBSERVER is defined.
12650 (riscv_lookup_target_description): New declaration when GDBSERVER
12651 is not defined.
12652 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
12653 (riscv_linux_read_features): ...this, and return
12654 riscv_gdbarch_features instead of target_desc.
12655 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
12656 (riscv_linux_read_description): Rename to...
12657 (riscv_linux_read_features): ...this.
12658 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12659 Update to use riscv_gdbarch_features and
12660 riscv_lookup_target_description.
12661 * riscv-tdep.c (riscv_find_default_target_description): Use
12662 riscv_lookup_target_description instead of
12663 riscv_create_target_description.
12664
12665 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12666
12667 * valprint.c (generic_val_print_enum_1): When printing a flag
12668 enum with value 0 and there is no enumerator with value 0, print
12669 just "0" instead of "(unknown: 0x0)".
12670
12671 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12672
12673 * valprint.c (generic_val_print_enum_1): Print unknown part of
12674 flag enum in hex.
12675
12676 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12677
12678 * dwarf2/read.c (update_enumeration_type_from_children): Allow
12679 flag enums to contain duplicate enumerators.
12680 * valprint.c (generic_val_print_enum_1): Update comment.
12681
12682 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12683
12684 * dwarf2/read.c: Include "count-one-bits.h".
12685 (update_enumeration_type_from_children): If an enumerator has
12686 multiple bits set, don't treat the enumeration as a "flag enum".
12687 * valprint.c (generic_val_print_enum_1): Assert that enumerators
12688 of flag enums have 0 or 1 bit set.
12689
12690 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12691
12692 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
12693 conversion.
12694 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12695 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12696 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12697 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12698 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12699
12700 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12701
12702 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
12703
12704 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12705
12706 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
12707 displaced_step_closure_up.
12708 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12709 (struct displaced_step_closure_up):
12710 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12711 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12712 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
12713 Likewise.
12714 * gdbarch.sh (displaced_step_copy_insn): Likewise.
12715 * gdbarch.c, gdbarch.h: Re-generate.
12716 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
12717 displaced_step_closure_up.
12718 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12719 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12720 * infrun.h (displaced_step_closure_up): New type alias.
12721 (struct displaced_step_inferior_state) <step_closure>: Change
12722 type to displaced_step_closure_up.
12723 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
12724 displaced_step_closure_up.
12725 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12726
12727 2020-02-14 Tom Tromey <tom@tromey.com>
12728
12729 * minidebug.c (gnu_debug_key): New global.
12730 (find_separate_debug_file_in_section): Use it.
12731
12732 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12733
12734 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
12735 std::unique_ptr.
12736 * gdbarch.c: Re-generate.
12737 * gdbarch.h: Re-generate.
12738 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
12739 change.
12740 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
12741 type to std::unique_ptr.
12742 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12743 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12744 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12745 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12746 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
12747 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12748 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12749 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12750 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12751
12752 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12753
12754 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
12755 std::unique_ptr.
12756 (displaced_step_clear): Rename to...
12757 (displaced_step_reset): ... this. Just call displaced->reset ().
12758 (displaced_step_clear_cleanup): Rename to...
12759 (displaced_step_reset_cleanup): ... this.
12760 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
12761 (displaced_step_fixup): Likewise.
12762 (resume_1): Likewise.
12763 (handle_inferior_event): Restore child's memory before calling
12764 displaced_step_fixup on the parent.
12765 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
12766 to std::unique_ptr.
12767 <step_closure>: Change type to std::unique_ptr.
12768
12769 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12770
12771 * arm-tdep.c: Include count-one-bits.h.
12772 (cleanup_block_store_pc): Use count_one_bits.
12773 (cleanup_block_load_pc): Use count_one_bits.
12774 (arm_copy_block_xfer): Use count_one_bits.
12775 (thumb2_copy_block_xfer): Use count_one_bits.
12776 (thumb_copy_pop_pc_16bit): Use count_one_bits.
12777 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
12778 (thumb_get_next_pcs_raw): Use count_one_bits.
12779 (arm_get_next_pcs_raw): Use count_one_bits_l.
12780 * arch/arm.c (bitcount): Remove.
12781 * arch/arm.h (bitcount): Remove.
12782
12783 2020-02-14 Tom Tromey <tromey@adacore.com>
12784
12785 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
12786 Update.
12787 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
12788 * dwarf2/loc.c (call_site_find_chain_1): Return
12789 unique_xmalloc_ptr.
12790 (call_site_find_chain): Likewise.
12791
12792 2020-02-14 Richard Biener <rguenther@suse.de>
12793
12794 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
12795 on expression with division operators.
12796
12797 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12798
12799 * MAINTAINERS (Write After Approval): Adding myself.
12800
12801 2020-02-12 Tom Tromey <tom@tromey.com>
12802
12803 * event-loop.c (event_data, gdb_event, event_handler_func):
12804 Remove.
12805
12806 2020-02-12 Tom Tromey <tom@tromey.com>
12807
12808 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
12809 (dwarf2_frame_objfile_data): Add comment.
12810 (find_comp_unit, set_comp_unit): New functions.
12811 (dwarf2_frame_find_fde): Use find_comp_unit.
12812 (dwarf2_build_frame_info): Use set_comp_unit.
12813
12814 2020-02-12 Tom Tromey <tom@tromey.com>
12815
12816 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
12817 (comp_unit): Don't initialize objfile.
12818 (execute_cfa_program): Add text_offset parameter.
12819 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
12820 (dwarf2_frame_cache): Update.
12821 (dwarf2_build_frame_info): Don't set "objfile" member.
12822
12823 2020-02-12 Tom Tromey <tom@tromey.com>
12824
12825 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
12826 (decode_frame_entry): Likewise.
12827 (dwarf2_build_frame_info): Update.
12828
12829 2020-02-12 Tom Tromey <tom@tromey.com>
12830
12831 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
12832 (decode_frame_entry_1): Use the comp_unit obstack.
12833
12834 2020-02-12 Tom Tromey <tom@tromey.com>
12835
12836 * dwarf2/frame.c (struct comp_unit): Add initializers and
12837 constructor.
12838 (dwarf2_frame_objfile_data): Store a comp_unit.
12839 (dwarf2_frame_find_fde): Update.
12840 (dwarf2_build_frame_info): Use "new".
12841
12842 2020-02-12 Tom Tromey <tom@tromey.com>
12843
12844 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
12845 (dwarf2_fde_table): Typedef for std::vector.
12846 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
12847 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
12848 (decode_frame_entry): Update.
12849 (dwarf2_build_frame_info): Use "new".
12850
12851 2020-02-12 Christian Biesinger <cbiesinger@google.com>
12852
12853 * arm-tdep.c (arm_gdbarch_init): Update.
12854 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
12855 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
12856 have_neon, is_m>: Change to bool.
12857
12858 2020-02-12 Christian Biesinger <cbiesinger@google.com>
12859
12860 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
12861
12862 2020-02-12 Tom Tromey <tom@tromey.com>
12863
12864 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
12865
12866 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
12867
12868 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
12869 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
12870
12871 2020-02-11 Tom Tromey <tom@tromey.com>
12872
12873 * psymtab.h: Update comment.
12874
12875 2020-02-11 Tom Tromey <tom@tromey.com>
12876
12877 * gdb_obstack.h (struct auto_obstack): Use
12878 DISABLE_COPY_AND_ASSIGN.
12879
12880 2020-02-11 Tom Tromey <tom@tromey.com>
12881
12882 * dwarf2/frame.h (struct objfile): Don't forward declare.
12883
12884 2020-02-11 Christian Biesinger <cbiesinger@google.com>
12885
12886 * cris-tdep.c (cris_supply_gregset): Change signature to match
12887 what struct regset expects.
12888 (cris_regset): New struct.
12889 (fetch_core_registers): Remove.
12890 (cris_iterate_over_regset_sections): New function.
12891 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
12892 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
12893
12894 2020-02-11 Christian Biesinger <cbiesinger@google.com>
12895
12896 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
12897 registers.
12898
12899 2020-02-11 Christian Biesinger <cbiesinger@google.com>
12900
12901 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
12902
12903 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
12904
12905 * configure: Re-generate.
12906
12907 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
12908
12909 * configure: Re-generate.
12910
12911 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
12912
12913 * acinclude: Update warning.m4 path.
12914 * warning.m4: Move to gdbsupport.
12915
12916 2020-02-11 Tom Tromey <tromey@adacore.com>
12917
12918 * remote.c (remote_console_output): Update.
12919 * printcmd.c (printf_command): Update.
12920 * event-loop.c (gdb_wait_for_event): Update.
12921 * linux-nat.c (sigchld_handler): Update.
12922 * remote-sim.c (gdb_os_write_stdout): Update.
12923 (gdb_os_flush_stdout): Update.
12924 (gdb_os_flush_stderr): Update.
12925 (gdb_os_write_stderr): Update.
12926 * exceptions.c (print_exception): Update.
12927 * remote-fileio.c (remote_fileio_func_read): Update.
12928 (remote_fileio_func_write): Update.
12929 * tui/tui.c (tui_enable): Update.
12930 * tui/tui-interp.c (tui_interp::init): Update.
12931 * utils.c (init_page_info): Update.
12932 (putchar_unfiltered, fputc_unfiltered): Update.
12933 (gdb_flush): Update.
12934 (emit_style_escape): Update.
12935 (flush_wrap_buffer, fputs_maybe_filtered): Update.
12936 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
12937 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
12938 (stderr_file::write): Update.
12939 (stderr_file::puts): Update.
12940 * ui-file.h (ui_file_isatty, ui_file_write)
12941 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
12942 (ui_file_puts): Don't declare.
12943
12944 2020-02-10 Tom de Vries <tdevries@suse.de>
12945
12946 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
12947 sentinel to char *.
12948
12949 2020-02-09 Tom de Vries <tdevries@suse.de>
12950
12951 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
12952 filename if it matches "<artificial>".
12953
12954 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
12955
12956 * windows-tdep.c (struct enum_value_name): New struct.
12957 (create_enum): New function.
12958 (windows_get_siginfo_type): Create and use enum types.
12959
12960 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
12961
12962 * NEWS: Mention $_siginfo support for Windows.
12963 * windows-nat.c (handle_exception): Set siginfo_er.
12964 (windows_nat_target::mourn_inferior): Reset siginfo_er.
12965 (windows_xfer_siginfo): New function.
12966 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
12967 * windows-tdep.c (struct windows_gdbarch_data): New struct.
12968 (init_windows_gdbarch_data): New function.
12969 (get_windows_gdbarch_data): New function.
12970 (windows_get_siginfo_type): New function.
12971 (windows_init_abi): Register windows_get_siginfo_type.
12972 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
12973
12974 2020-02-08 Tom Tromey <tom@tromey.com>
12975
12976 * dwarf2/read.c (class cutu_reader) <cutu_reader,
12977 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
12978 <keep>: Declare method.
12979 <m_keep>: Remove member.
12980 <~cutu_reader>: Remove.
12981 (cutu_reader::init_tu_and_read_dwo_dies): Update.
12982 (cutu_reader::cutu_reader): Update.
12983 (cutu_reader::keep): Rename from ~cutu_reader.
12984 (process_psymtab_comp_unit, build_type_psymtabs_1)
12985 (process_skeletonless_type_unit, load_partial_comp_unit)
12986 (load_full_comp_unit, dwarf2_read_addr_index)
12987 (read_signatured_type): Update.
12988
12989 2020-02-08 Tom Tromey <tom@tromey.com>
12990
12991 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
12992 "want_partial_unit" parameter.
12993 (process_psymtab_comp_unit): Change want_partial_unit to bool.
12994 Inline check for DW_TAG_partial_unit.
12995 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
12996
12997 2020-02-08 Tom Tromey <tom@tromey.com>
12998
12999 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
13000 read.c.
13001 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
13002 read.c.
13003
13004 2020-02-08 Tom Tromey <tom@tromey.com>
13005
13006 * dwarf2/read.c (read_address): Move to comp-unit.c.
13007 (dwarf2_rnglists_process, dwarf2_ranges_process)
13008 (read_attribute_value, dwarf_decode_lines_1)
13009 (var_decode_location, decode_locdesc): Update.
13010 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
13011 read.c. Remove "cu" parameter.
13012 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
13013 method.
13014
13015 2020-02-08 Tom Tromey <tom@tromey.com>
13016
13017 * dwarf2/read.c (read_attribute_value, read_indirect_string)
13018 (read_indirect_line_string): Update.
13019 * dwarf2/comp-unit.c (read_offset): Remove.
13020 (read_comp_unit_head): Update.
13021 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
13022 method.
13023 (read_offset): Don't declare.
13024
13025 2020-02-08 Tom Tromey <tom@tromey.com>
13026
13027 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
13028 * dwarf2/read.c (struct comp_unit_head): Move to
13029 dwarf2/comp-unit.h.
13030 (enum class rcuh_kind): Move to comp-unit.h.
13031 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
13032 (read_comp_unit_head, error_check_comp_unit_head)
13033 (read_and_check_comp_unit_head): Move to comp-unit.c.
13034 (read_offset, dwarf_unit_type_name): Likewise.
13035 (create_debug_type_hash_table, read_cutu_die_from_dwo)
13036 (cutu_reader::cutu_reader, read_call_site_scope)
13037 (find_partial_die, follow_die_offset): Update.
13038 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
13039
13040 2020-02-08 Tom Tromey <tom@tromey.com>
13041
13042 * dwarf2/read.c (read_offset_1): Move to leb.c.
13043 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
13044 (dwarf_decode_macro_bytes): Update.
13045 * dwarf2/leb.c (read_offset): Rename; move from read.c.
13046 * dwarf2/leb.h (read_offset): Declare.
13047
13048 2020-02-08 Tom Tromey <tom@tromey.com>
13049
13050 * dwarf2/read.c (dwarf2_section_size): Remove.
13051 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
13052 Update.
13053 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
13054
13055 2020-02-08 Tom Tromey <tom@tromey.com>
13056
13057 * dwarf2/read.c (read_initial_length): Move to leb.c.
13058 * dwarf2/leb.h (read_initial_length): Declare.
13059 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
13060 handle_nonstd parameter.
13061 * dwarf2/frame.c (read_initial_length): Remove.
13062 (decode_frame_entry_1): Update.
13063
13064 2020-02-08 Tom Tromey <tom@tromey.com>
13065
13066 * dwarf2/loc.c (dwarf2_find_location_expression)
13067 (dwarf_evaluate_loc_desc::get_tls_address)
13068 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
13069 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
13070 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
13071 (dwarf2_compile_property_to_c)
13072 (dwarf2_loc_desc_get_symbol_read_needs)
13073 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
13074 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
13075 (loclist_describe_location, loclist_tracepoint_var_ref)
13076 (loclist_generate_c_location): Update.
13077 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
13078 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
13079 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
13080 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
13081 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
13082 (dwarf2_per_cu_data::addr_size)
13083 (dwarf2_per_cu_data::ref_addr_size)
13084 (dwarf2_per_cu_data::text_offset)
13085 (dwarf2_per_cu_data::addr_type): Now methods.
13086 (per_cu_header_read_in): Make per_cu "const".
13087 (dwarf2_version): Remove.
13088 (dwarf2_per_cu_data::int_type): Now a method.
13089 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
13090 (set_die_type, read_array_type, read_subrange_index_type)
13091 (read_tag_string_type, read_subrange_type): Update.
13092 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
13093 offset_size, ref_addr_size, text_offset, addr_type, version,
13094 objfile, int_type, addr_sized_int_type>: Declare methods.
13095
13096 2020-02-08 Tom Tromey <tom@tromey.com>
13097
13098 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
13099 Move earlier.
13100
13101 2020-02-08 Tom Tromey <tom@tromey.com>
13102
13103 * dwarf2/read.h (dwarf_line_debug): Declare.
13104 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
13105 * dwarf2/read.c: Move line_header code to new files.
13106 (dwarf_line_debug): No longer static.
13107 * dwarf2/line-header.c: New file.
13108 * dwarf2/line-header.h: New file.
13109
13110 2020-02-08 Tom Tromey <tom@tromey.com>
13111
13112 * dwarf2/read.c (struct line_header) <file_full_name,
13113 file_file_name>: Return unique_xmalloc_ptr.
13114 (line_header::file_file_name): Update.
13115 (line_header::file_full_name): Update.
13116 (dw2_get_file_names_reader): Update.
13117 (macro_start_file): Update.
13118
13119 2020-02-08 Tom Tromey <tom@tromey.com>
13120
13121 * dwarf2/read.c (struct line_header) <file_full_name,
13122 file_file_name>: Declare methods.
13123 (dw2_get_file_names_reader): Update.
13124 (file_file_name): Now a method.
13125 (file_full_name): Likewise.
13126 (macro_start_file): Update.
13127
13128 2020-02-08 Tom Tromey <tom@tromey.com>
13129
13130 * dwarf2/read.c (dwarf_always_disassemble)
13131 (show_dwarf_always_disassemble): Move to loc.c.
13132 (_initialize_dwarf2_read): Move "always-disassemble" registration
13133 to loc.c.
13134 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
13135 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
13136 static.
13137 (show_dwarf_always_disassemble): Move from read.c.
13138 (_initialize_dwarf2loc): Move always-disassemble from read.c.
13139
13140 2020-02-08 Tom Tromey <tom@tromey.com>
13141
13142 * dwarf2/read.c (~dwarf2_per_objfile): Update.
13143 (create_quick_file_names_table): Return htab_up.
13144 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
13145 Update.
13146 * dwarf2/read.h (struct dwarf2_per_objfile)
13147 <quick_file_names_table>: Now htab_up.
13148
13149 2020-02-08 Tom Tromey <tom@tromey.com>
13150
13151 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
13152
13153 2020-02-08 Tom Tromey <tom@tromey.com>
13154
13155 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
13156 Rewrite.
13157 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
13158 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
13159 (abbrev_table::abbrev_table): No longer inline.
13160 (ABBREV_HASH_SIZE): Remove.
13161 (abbrev_table::m_abbrevs): Now an htab_up.
13162
13163 2020-02-08 Tom Tromey <tom@tromey.com>
13164
13165 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
13166 (cutu_reader): Update.
13167 (build_type_psymtabs_1): Update.
13168 * dwarf2/abbrev.c (abbrev_table::read): Rename.
13169 (abbrev_table::alloc_abbrev): Update.
13170 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
13171 (abbrev_table::read): New static method, renamed from
13172 abbrev_table_read_table.
13173 (abbrev_table::alloc_abbrev)
13174 (abbrev_table::add_abbrev): Now private.
13175 (abbrev_table::abbrev_table): Now private.
13176 (abbrev_table::m_abbrev_obstack): Now private. Rename.
13177
13178 2020-02-08 Tom Tromey <tom@tromey.com>
13179
13180 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
13181 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
13182 htab_up.
13183
13184 2020-02-08 Tom Tromey <tom@tromey.com>
13185
13186 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
13187 htab_up.
13188 (lookup_dwo_unit_in_dwp): Update.
13189 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
13190 on obstack.
13191
13192 2020-02-08 Tom Tromey <tom@tromey.com>
13193
13194 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
13195 obstack.
13196
13197 2020-02-08 Tom Tromey <tom@tromey.com>
13198
13199 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
13200 line_header_hash.
13201 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
13202 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
13203 Change type to htab_up.
13204
13205 2020-02-08 Tom Tromey <tom@tromey.com>
13206
13207 * dwarf2/read.c (allocate_type_unit_groups_table): Return
13208 htab_up. Don't allocate on obstack.
13209 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
13210 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
13211 Change type to htab_up.
13212
13213 2020-02-08 Tom Tromey <tom@tromey.com>
13214
13215 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
13216 Change type to htab_up.
13217 * dwarf2/read.c (create_signatured_type_table_from_index)
13218 (create_signatured_type_table_from_debug_names)
13219 (create_all_type_units, add_type_unit)
13220 (lookup_dwo_signatured_type, lookup_signatured_type)
13221 (process_skeletonless_type_unit): Update.
13222 (create_debug_type_hash_table, create_debug_types_hash_table):
13223 Change type of types_htab.
13224 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
13225 htab_up. Don't allocate on obstack.
13226 (create_cus_hash_table): Change type of cus_htab parameter.
13227 (struct dwo_file) <cus, tus>: Now htab_up.
13228 (lookup_dwo_signatured_type, lookup_dwo_cutu)
13229 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
13230 (queue_and_load_all_dwo_tus): Update.
13231 * dwarf2/index-write.c (write_gdbindex): Update.
13232 (write_debug_names): Update.
13233
13234 2020-02-08 Tom Tromey <tom@tromey.com>
13235
13236 * dwarf2/read.h (struct dwarf2_queue_item): Move from
13237 dwarf2/read.c. Remove "next" member. Add constructor ntad
13238 destructor.
13239 (struct dwarf2_per_objfile) <queue>: New member.
13240 * dwarf2/read.c (struct dwarf2_queue_item): Move to
13241 dwarf2/read.h.
13242 (dwarf2_queue, dwarf2_queue_tail): Remove.
13243 (class dwarf2_queue_guard): Add parameter to constructor. Use
13244 DISABLE_COPY_AND_ASSIGN.
13245 <m_per_objfile>: New member.
13246 <~dwarf2_queue_guard>: Rewrite.
13247 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
13248 Update.
13249 (~dwarf2_queue_item): New.
13250
13251 2020-02-08 Tom Tromey <tom@tromey.com>
13252
13253 * dwarf2/read.c (struct die_info) <has_children>: New member.
13254 (dw2_get_file_names_reader): Remove has_children.
13255 (dw2_get_file_names): Update.
13256 (read_cutu_die_from_dwo): Remove has_children.
13257 (cutu_reader::init_tu_and_read_dwo_dies)
13258 (cutu_reader::cutu_reader): Update.
13259 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
13260 Remove has_children.
13261 (build_type_psymtabs_1, process_skeletonless_type_unit)
13262 (load_partial_comp_unit, load_full_comp_unit): Update.
13263 (create_dwo_cu_reader): Remove has_children.
13264 (create_cus_hash_table, read_die_and_children): Update.
13265 (read_full_die_1,read_full_die): Remove has_children.
13266 (read_signatured_type): Update.
13267 (class cutu_reader) <has_children>: Remove.
13268
13269 2020-02-08 Tom Tromey <tom@tromey.com>
13270
13271 * dwarf2/expr.c: Rename from dwarf2expr.c.
13272 * dwarf2/expr.h: Rename from dwarf2expr.h.
13273 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
13274 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
13275 * dwarf2/frame.c: Rename from dwarf2-frame.c.
13276 * dwarf2/frame.h: Rename from dwarf2-frame.h.
13277 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
13278 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
13279 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
13280 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
13281 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
13282 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
13283 * dwarf2/loc.c: Rename from dwarf2loc.c.
13284 * dwarf2/loc.h: Rename from dwarf2loc.h.
13285 * dwarf2/read.c: Rename from dwarf2read.c.
13286 * dwarf2/read.h: Rename from dwarf2read.h.
13287 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
13288 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
13289 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
13290 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
13291 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
13292 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
13293 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
13294 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
13295 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
13296 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
13297 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
13298 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
13299 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
13300 Update.
13301 * Makefile.in (COMMON_SFILES): Update.
13302 (HFILES_NO_SRCDIR): Update.
13303
13304 2020-02-08 Tom Tromey <tom@tromey.com>
13305
13306 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
13307 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
13308
13309 2020-02-08 Tom Tromey <tom@tromey.com>
13310
13311 * dwarf2read.h (struct die_info): Don't declare.
13312
13313 2020-02-08 Tom Tromey <tom@tromey.com>
13314
13315 * dwarf2read.h (die_info_ptr): Remove typedef.
13316
13317 2020-02-08 Tom Tromey <tom@tromey.com>
13318
13319 * dwarf2read.c (read_call_site_scope)
13320 (handle_data_member_location, dwarf2_add_member_fn)
13321 (mark_common_block_symbol_computed, read_common_block)
13322 (attr_to_dynamic_prop, partial_die_info::read)
13323 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
13324 (dwarf2_symbol_mark_computed, set_die_type): Update.
13325 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
13326 method.
13327 (attr_form_is_block): Don't declare.
13328 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
13329
13330 2020-02-08 Tom Tromey <tom@tromey.com>
13331
13332 * dwarf2read.c (dwarf2_find_base_address, )
13333 (read_call_site_scope, rust_containing_type)
13334 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
13335 (handle_data_member_location, dwarf2_add_member_fn)
13336 (get_alignment, read_structure_type, process_structure_scope)
13337 (mark_common_block_symbol_computed, read_common_block)
13338 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
13339 (partial_die_info::read, read_attribute_value, new_symbol)
13340 (lookup_die_type, dwarf2_get_ref_die_offset)
13341 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
13342 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
13343 (dwarf2_symbol_mark_computed): Update.
13344 * dwarf2/attribute.h (struct attribute) <value_as_address,
13345 form_is_section_offset, form_is_constant, form_is_ref>: Declare
13346 methods.
13347 (value_as_address, attr_form_is_section_offset)
13348 (attr_form_is_constant, attr_form_is_ref): Don't declare.
13349 * dwarf2/attribute.c (attribute::value_as_address)
13350 (attribute::form_is_section_offset, attribute::form_is_constant)
13351 (attribute::form_is_ref): Now methods.
13352
13353 2020-02-08 Tom Tromey <tom@tromey.com>
13354
13355 * dwarf2read.c (struct attribute, DW_STRING)
13356 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
13357 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
13358 (attr_form_is_block, attr_form_is_section_offset)
13359 (attr_form_is_constant, attr_form_is_ref): Move.
13360 * dwarf2/attribute.h: New file.
13361 * dwarf2/attribute.c: New file, from dwarf2read.c.
13362 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
13363
13364 2020-02-08 Tom Tromey <tom@tromey.com>
13365
13366 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
13367 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
13368 Move.
13369 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
13370 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
13371 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
13372 abbrev.c.
13373 * dwarf2/abbrev.h: New file.
13374 * dwarf2/abbrev.c: New file, from dwarf2read.c.
13375 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
13376
13377 2020-02-08 Tom Tromey <tom@tromey.com>
13378
13379 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
13380 (dwarf2_section_size, dwarf2_get_section_info)
13381 (create_signatured_type_table_from_debug_names)
13382 (create_addrmap_from_aranges, read_debug_names_from_section)
13383 (get_gdb_index_contents_from_section, read_comp_unit_head)
13384 (error_check_comp_unit_head, read_abbrev_offset)
13385 (create_debug_type_hash_table, init_cu_die_reader)
13386 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
13387 (read_comp_units_from_section, create_cus_hash_table)
13388 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
13389 (create_dwp_v2_section, dwarf2_rnglists_process)
13390 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
13391 (abbrev_table_read_table, read_indirect_string_at_offset_from)
13392 (read_indirect_string_from_dwz, read_addr_index_1)
13393 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
13394 (dwarf_decode_macro_bytes, dwarf_decode_macros)
13395 (fill_in_loclist_baton): Update.
13396 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
13397 get_containing_section, get_bfd_owner, get_bfd_section,
13398 get_file_name, get_id, get_flags, empty, read>: Declare methods.
13399 (dwarf2_read_section, get_section_name, get_section_file_name)
13400 (get_containing_section, get_section_bfd_owner)
13401 (get_section_bfd_section, get_section_name, get_section_file_name)
13402 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
13403 declare.
13404 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
13405 (dwarf2_section_info::get_bfd_owner)
13406 (dwarf2_section_info::get_bfd_section)
13407 (dwarf2_section_info::get_name)
13408 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
13409 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
13410 (dwarf2_section_info::read): Now methods.
13411 * dwarf-index-write.c (class debug_names): Update.
13412
13413 2020-02-08 Tom Tromey <tom@tromey.com>
13414
13415 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
13416 Move to dwarf2/section.h.
13417 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
13418 (get_section_bfd_section, get_section_name)
13419 (get_section_file_name, get_section_id, get_section_flags)
13420 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
13421 dwarf2/section.c.
13422 * dwarf2/section.h: New file.
13423 * dwarf2/section.c: New file, from dwarf2read.c.
13424 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
13425
13426 2020-02-08 Tom Tromey <tom@tromey.com>
13427
13428 * dwarf2read.h (read_unsigned_leb128): Don't declare.
13429 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
13430 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
13431 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
13432 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
13433 * dwarf2/leb.h: New file, from dwarf2read.c.
13434 * dwarf2/leb.c: New file, from dwarf2read.c.
13435 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
13436 Remove.
13437 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
13438 (COMMON_SFILES): Add dwarf2/leb.c.
13439
13440 2020-02-08 Joel Brobecker <brobecker@adacore.com>
13441
13442 GDB 9.1 released.
13443
13444 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13445
13446 PR gdb/25190:
13447 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
13448 * gdb/remote.c (remote_console_output): Update.
13449 * gdb/ui-file.c (fputs_unfiltered): Rename to...
13450 (ui_file_puts): ...this.
13451 * gdb/ui-file.h (ui_file_puts): Add declaration.
13452 * gdb/utils.c (emit_style_escape): Update.
13453 (flush_wrap_buffer): Update.
13454 (fputs_maybe_filtered): Update.
13455 (fputs_unfiltered): Add function.
13456
13457 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13458
13459 * gdb/event-loop.c (gdb_wait_for_event): Update.
13460 * gdb/printcmd.c (printf_command): Update.
13461 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
13462 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
13463 (gdb_os_flush_stderr): Update.
13464 * gdb/remote.c (remote_console_output): Update.
13465 * gdb/ui-file.c (gdb_flush): Rename to...
13466 (ui_file_flush): ...this.
13467 (stderr_file::write): Update.
13468 (stderr_file::puts): Update.
13469 * gdb/ui-file.h (gdb_flush): Rename to...
13470 (ui_file_flush): ...this.
13471 * gdb/utils.c (gdb_flush): Add function.
13472 * gdb/utils.h (gdb_flush): Add declaration.
13473
13474 2020-02-07 Tom Tromey <tromey@adacore.com>
13475
13476 PR breakpoints/24915:
13477 * source.c (find_and_open_source): Do not check basenames_may_differ.
13478
13479 2020-02-07 Tom Tromey <tom@tromey.com>
13480
13481 * README: Update gdbserver documentation.
13482 * gdbserver: Move to top level.
13483 * configure.tgt (build_gdbserver): Remove.
13484 * configure.ac: Remove --enable-gdbserver.
13485 * configure: Rebuild.
13486 * Makefile.in (distclean): Don't mention gdbserver.
13487
13488 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
13489
13490 * source-cache.c (source_cache::ensure): Surround
13491 get_plain_source_lines with a try/catch.
13492 (source_cache::get_line_charpos): Get rid of try/catch
13493 and only check for the return value of "ensure".
13494 * tui/tui-source.c (tui_source_window::set_contents):
13495 Simplify "nlines" calculation.
13496
13497 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
13498
13499 * MAINTAINERS (Write After Approval): Add myself.
13500
13501 2020-02-05 Christian Biesinger <cbiesinger@google.com>
13502
13503 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
13504 function call.
13505
13506 2020-02-05 Christian Biesinger <cbiesinger@google.com>
13507
13508 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
13509
13510 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
13511
13512 * nat/riscv-linux-tdesc.h: New file.
13513 * nat/riscv-linux-tdesc.c: New file, taking code from...
13514 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13515 ... here.
13516 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
13517 NATDEPFILES.
13518
13519 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
13520
13521 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
13522 we don't set the fake simulator ptid to the null_ptid.
13523
13524 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
13525
13526 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
13527 * gdbthread.h (class thread_info) <resumed>: Likewise.
13528 * infrun.c (resume_1): Likewise.
13529 (proceed): Likewise.
13530 (infrun_thread_stop_requested): Likewise.
13531 (stop_all_threads): Likewise.
13532 (handle_inferior_event): Likewise.
13533 (restart_threads): Likewise.
13534 (finish_step_over): Likewise.
13535 (keep_going_stepped_thread): Likewise.
13536 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
13537 (linux_handle_extended_wait): Likewise.
13538 * record-btrace.c (get_thread_current_frame_id): Likewise.
13539 * record-full.c (record_full_wait_1): Likewise.
13540 * remote.c (remote_target::process_initial_stop_replies): Likewise.
13541 * target.c (target_resume): Likewise.
13542 * thread.c (set_running_thread): Likewise.
13543
13544 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13545
13546 * f-valprint.c (f77_print_array_1): Changed datatype of index
13547 variable to LONGEST from int to enable it to contain bound
13548 values correctly.
13549
13550 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
13551
13552 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
13553 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
13554 offsets according to FLEN determined.
13555 (riscv_linux_nat_target::read_description): Determine FLEN
13556 dynamically.
13557 (riscv_linux_nat_target::fetch_registers): Size regset buffer
13558 according to FLEN determined.
13559 (riscv_linux_nat_target::store_registers): Likewise.
13560
13561 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13562
13563 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13564 when reg->group is empty and reggroup is not.
13565
13566 2020-01-31 Tom Tromey <tromey@adacore.com>
13567
13568 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
13569 Call beneath target's mourn_inferior after unpushing.
13570
13571 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13572
13573 PR tui/9765
13574 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
13575 have enough lines to fill the screen, still return the lowest
13576 address we found.
13577
13578 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13579
13580 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
13581 '-', '<', and '>' commands.
13582
13583 2020-01-29 Pedro Alves <palves@redhat.com>
13584 Sergio Durigan Junior <sergiodj@redhat.com>
13585
13586 * infcmd.c (construct_inferior_arguments): Assert that
13587 'argc' is greater than 0.
13588
13589 2020-01-29 Luis Machado <luis.machado@linaro.org>
13590
13591 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
13592 (BRK_INSN_MASK): Define to 0xd4200000.
13593 (aarch64_program_breakpoint_here_p): New function.
13594 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
13595 * arch-utils.c (default_program_breakpoint_here_p): Moved from
13596 breakpoint.c.
13597 * arch-utils.h (default_program_breakpoint_here_p): Moved from
13598 breakpoint.h
13599 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
13600 call gdbarch_program_breakpoint_here_p.
13601 (program_breakpoint_here): Moved to arch-utils.c, renamed to
13602 default_program_breakpoint_here_p, changed return type to bool and
13603 simplified.
13604 * breakpoint.h (program_breakpoint_here): Moved prototype to
13605 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
13606 return type to bool.
13607 * gdbarch.c: Regenerate.
13608 * gdbarch.h: Regenerate.
13609 * gdbarch.sh (program_breakpoint_here_p): New method.
13610 * infrun.c (handle_signal_stop): Call
13611 gdbarch_program_breakpoint_here_p.
13612
13613 2020-01-26 Tom Tromey <tom@tromey.com>
13614
13615 * ctfread.c (struct ctf_fp_info): Reindent.
13616 (_initialize_ctfread): Remove.
13617
13618 2020-01-26 Tom Tromey <tom@tromey.com>
13619
13620 * psymtab.c (partial_map_expand_apply)
13621 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
13622 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
13623 (psym_print_stats, psym_expand_symtabs_for_function)
13624 (psym_map_symbol_filenames, psym_map_matching_symbols)
13625 (psym_expand_symtabs_matching)
13626 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
13627 (maintenance_check_psymtabs): Use new methods.
13628 * psympriv.h (struct partial_symtab) <readin_p,
13629 get_compunit_symtab>: New methods.
13630 <readin, compunit_symtab>: Remove members.
13631 (struct standard_psymtab): New.
13632 (struct legacy_psymtab): Derive from standard_psymtab.
13633 * dwarf2read.h (struct dwarf2_psymtab): Derive from
13634 standard_psymtab.
13635 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
13636
13637 2020-01-26 Tom Tromey <tom@tromey.com>
13638
13639 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
13640 read_dependencies. Add assert.
13641 * psymtab.c (partial_symtab::read_dependencies): New method.
13642 * psympriv.h (struct partial_symtab) <read_dependencies>: New
13643 method.
13644 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
13645 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
13646 read_dependencies.
13647 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
13648 Add assert.
13649
13650 2020-01-26 Tom Tromey <tom@tromey.com>
13651
13652 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
13653 Call expand_psymtab.
13654 (xcoff_read_symtab): Call expand_psymtab.
13655 (xcoff_start_psymtab, xcoff_end_psymtab): Set
13656 legacy_expand_psymtab.
13657 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
13658 method.
13659 (struct legacy_psymtab) <expand_psymtab>: Implement.
13660 <legacy_expand_psymtab>: New member.
13661 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
13662 (parse_partial_symbols): Set legacy_expand_psymtab.
13663 (psymtab_to_symtab_1): Change argument order. Call
13664 expand_psymtab.
13665 (new_psymtab): Set legacy_expand_psymtab.
13666 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
13667 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
13668 expand_psymtab.
13669 (dwarf2_psymtab::expand_psymtab): Rename from
13670 psymtab_to_symtab_1. Call expand_psymtab.
13671 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
13672 (dbx_end_psymtab): Likewise.
13673 (dbx_psymtab_to_symtab_1): Change argument order. Call
13674 expand_psymtab.
13675 (dbx_read_symtab): Call expand_psymtab.
13676 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
13677 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
13678 (ctf_psymtab::read_symtab): Call expand_psymtab.
13679
13680 2020-01-26 Tom Tromey <tom@tromey.com>
13681
13682 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
13683 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
13684 messages.
13685 * mdebugread.c (mdebug_read_symtab): Remove prints.
13686 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
13687 assert.
13688 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
13689
13690 2020-01-26 Tom Tromey <tom@tromey.com>
13691
13692 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
13693 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
13694 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
13695 legacy_symtab.
13696 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
13697 * psymtab.c (psymtab_to_symtab): Call method.
13698 (dump_psymtab): Update.
13699 * psympriv.h (struct partial_symtab): Add virtual destructor.
13700 <read_symtab>: New method.
13701 (struct legacy_symtab): New.
13702 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
13703 (struct pst_map) <pst>: Now a legacy_psymtab.
13704 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
13705 (new_psymtab): Use legacy_psymtab.
13706 * dwarf2read.h (struct dwarf2_psymtab): New.
13707 (struct dwarf2_per_cu_data) <psymtab>: Use it.
13708 * dwarf2read.c (dwarf2_create_include_psymtab)
13709 (dwarf2_build_include_psymtabs, create_type_unit_group)
13710 (create_partial_symtab, process_psymtab_comp_unit_reader)
13711 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
13712 (set_partial_user): Use dwarf2_psymtab.
13713 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
13714 (psymtab_to_symtab_1, process_full_comp_unit)
13715 (process_full_type_unit, dwarf2_ranges_read)
13716 (dwarf2_get_pc_bounds, psymtab_include_file_name)
13717 (dwarf_decode_lines): Use dwarf2_psymtab.
13718 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
13719 (add_address_entry_worker, write_one_signatured_type)
13720 (recursively_count_psymbols, recursively_write_psymbols)
13721 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
13722 (write_debug_names): Likewise.
13723 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
13724 <pst>: Now a legacy_psymtab.
13725 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
13726 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
13727 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
13728 * ctfread.c (struct ctf_psymtab): New.
13729 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
13730 ctf_psymtab.
13731 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
13732 (create_partial_symtab): Return a ctf_psymtab.
13733 (scan_partial_symbols): Update.
13734
13735 2020-01-26 Tom Tromey <tom@tromey.com>
13736
13737 * xcoffread.c (xcoff_start_psymtab): Use new.
13738 * psymtab.c (partial_symtab::partial_symtab): New constructor,
13739 renamed from start_psymtab_common.
13740 * psympriv.h (struct partial_symtab): Add new constructor.
13741 (start_psymtab_common): Don't declare.
13742 * mdebugread.c (parse_partial_symbols): Use new.
13743 * dwarf2read.c (create_partial_symtab): Use new.
13744 * dbxread.c (start_psymtab): Use new.
13745 * ctfread.c (create_partial_symtab): Use new.
13746
13747 2020-01-26 Tom Tromey <tom@tromey.com>
13748
13749 * xcoffread.c (xcoff_end_psymtab): Use new.
13750 * psymtab.c (start_psymtab_common): Use new.
13751 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
13752 Update.
13753 * psympriv.h (struct partial_symtab): Add parameters to
13754 constructor. Don't inline.
13755 (allocate_psymtab): Don't declare.
13756 * mdebugread.c (new_psymtab): Use new.
13757 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
13758 * dbxread.c (dbx_end_psymtab): Use new.
13759
13760 2020-01-26 Tom Tromey <tom@tromey.com>
13761
13762 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
13763 allocate_psymtab. Update documentation.
13764 * psymtab.c (psymtab_storage::install_psymtab): Rename from
13765 allocate_psymtab. Do not use new.
13766 (allocate_psymtab): Use new. Update.
13767
13768 2020-01-26 Tom Tromey <tom@tromey.com>
13769
13770 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13771 * psymtab.c (psym_print_stats): Update.
13772 * psympriv.h (struct partial_symtab) <readin,
13773 psymtabs_addrmap_supported, anonymous>: Now bool.
13774 * mdebugread.c (psymtab_to_symtab_1): Update.
13775 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
13776 (build_type_psymtabs_reader, psymtab_to_symtab_1)
13777 (process_full_comp_unit, process_full_type_unit): Update.
13778 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13779 * ctfread.c (psymtab_to_symtab): Update.
13780
13781 2020-01-26 Tom Tromey <tom@tromey.com>
13782
13783 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
13784 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
13785 * psymtab.c (psymtab_storage): Delete psymtabs.
13786 (psymtab_storage::allocate_psymtab): Use new.
13787 (psymtab_storage::discard_psymtab): Use delete.
13788 * psympriv.h (struct partial_symtab): Add constructor and
13789 initializers.
13790
13791 2020-01-26 Tom Tromey <tom@tromey.com>
13792
13793 * machoread.c: Do not include psympriv.h.
13794
13795 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13796
13797 * NEWS: Mention the new option and the set/show commands.
13798
13799 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13800
13801 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
13802 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
13803 (validate_exec_file): New variables, enums, functions.
13804 (exec_file_locate_attach, print_section_info): Style the filenames.
13805 (_initialize_exec): Install show_exec_file_mismatch_command and
13806 set_exec_file_mismatch_command.
13807 * gdbcore.h (validate_exec_file): Declare.
13808 * infcmd.c (attach_command): Call validate_exec_file.
13809 * remote.c ( remote_target::remote_add_inferior): Likewise.
13810
13811 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13812
13813 * frame.c (find_frame_sal): Move call to get_next_frame into more
13814 inner scope.
13815 * inline-frame.c (inilne_state) <inline_state>: Update argument
13816 types.
13817 (inilne_state) <skipped_symbol>: Rename to...
13818 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
13819 (skip_inline_frames): Build vector of skipped symbols and use this
13820 to reate the inline_state.
13821 (inline_skipped_symbol): Add a comment and some assertions, fetch
13822 skipped symbol from the list.
13823
13824 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13825
13826 * buildsym.c (lte_is_less_than): Delete.
13827 (buildsym_compunit::end_symtab_with_blockvector): Create local
13828 lambda function to sort line table entries, and use
13829 std::stable_sort instead of std::sort.
13830 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
13831 markers when looking for a previous line.
13832
13833 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13834
13835 * dwarf2read.c (lnp_state_machine::record_line): Include
13836 end_sequence parameter in debug print out. Record the line if we
13837 are at an end_sequence marker even if it's not the start of a
13838 statement.
13839 * symmisc.c (maintenance_print_one_line_table): Print end of
13840 sequence markers with 'END' not '0'.
13841
13842 2020-01-24 Pedro Alves <palves@redhat.com>
13843
13844 PR gdb/25410
13845 * thread.c (scoped_restore_current_thread::restore): Use
13846 switch_to_inferior_no_thread.
13847 * exec.c: Include "progspace-and-thread.h".
13848 (add_target_sections, remove_target_sections):
13849 scoped_restore_current_pspace_and_thread instead of
13850 scoped_restore_current_thread.
13851 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
13852 and aspace to the inferior before calling clone_program_space.
13853 Remove stale comment.
13854
13855 2020-01-24 Christian Biesinger <cbiesinger@google.com>
13856
13857 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
13858 (arm_netbsd_nat_target::fetch_registers): ...this.
13859 (arm_nbsd_nat_target::store_registers): Rename to...
13860 (arm_netbsd_nat_target::store_registers): ...this.
13861
13862 2020-01-24 Christian Biesinger <cbiesinger@google.com>
13863
13864 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13865 register_t.
13866
13867 2020-01-24 Christian Biesinger <cbiesinger@google.com>
13868
13869 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
13870 Update comment.
13871 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
13872 Likewise.
13873 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
13874 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
13875 the correct replacement (iterate_over_regset_sections).
13876 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
13877 Update comment.
13878
13879 2020-01-24 Graham Markall <graham.markall@embecosm.com>
13880
13881 PR gdb/23718
13882 * gdb/python/python.c (execute_gdb_command): Call
13883 async_enable_stdin in catch block.
13884
13885 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13886
13887 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
13888 SWITCH_THRU_ALL_UIS.
13889
13890 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13891
13892 PR tui/9765
13893 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
13894 comment, add extra parameter, and update to store previous symbol
13895 when appropriate.
13896 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
13897 add extra parameter.
13898 * tui/tui-disasm.c (tui_disassemble): Update header comment,
13899 remove unneeded parameter, add try/catch around gdb_print_insn,
13900 rewrite to add items to asm_lines vector.
13901 (tui_find_backward_disassembly_start_address): New function.
13902 (tui_find_disassembly_address): Updated throughout.
13903 (tui_disasm_window::set_contents): Update for changes to
13904 tui_disassemble.
13905 (tui_disasm_window::do_scroll_vertical): No need to adjust the
13906 number of lines to scroll.
13907
13908 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13909
13910 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
13911 (SECT_OFF_DATA): Likewise.
13912 (SECT_OFF_RODATA): Likewise.
13913 (SECT_OFF_TEXT): Likewise.
13914 (SECT_OFF_BSS): Likewise.
13915 (struct objfile) <text_section_offset, data_section_offset>: New
13916 methods.
13917 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
13918 objfile::text_section_offset.
13919 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
13920 * coffread.c (coff_symtab_read): Likewise.
13921 (enter_linenos): Likewise.
13922 (process_coff_symbol): Likewise.
13923 * ctfread.c (get_objfile_text_range): Likewise.
13924 * dtrace-probe.c (dtrace_probe::get_relocated_address):
13925 Use objfile::data_section_offset.
13926 * dwarf2-frame.c (execute_cfa_program): Use
13927 objfile::text_section_offset.
13928 (dwarf2_frame_find_fde): Likewise.
13929 * dwarf2read.c (create_addrmap_from_index): Likewise.
13930 (create_addrmap_from_aranges): Likewise.
13931 (dw2_find_pc_sect_compunit_symtab): Likewise.
13932 (process_psymtab_comp_unit_reader): Likewise.
13933 (add_partial_symbol): Likewise.
13934 (add_partial_subprogram): Likewise.
13935 (process_full_comp_unit): Likewise.
13936 (read_file_scope): Likewise.
13937 (read_func_scope): Likewise.
13938 (read_lexical_block_scope): Likewise.
13939 (read_call_site_scope): Likewise.
13940 (dwarf2_rnglists_process): Likewise.
13941 (dwarf2_ranges_process): Likewise.
13942 (dwarf2_ranges_read): Likewise.
13943 (dwarf_decode_lines_1): Likewise.
13944 (new_symbol): Likewise.
13945 (dwarf2_fetch_die_loc_sect_off): Likewise.
13946 (dwarf2_per_cu_text_offset): Likewise.
13947 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
13948 * hppa-tdep.c (read_unwind_info): Likewise.
13949 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
13950 * psympriv.h (struct partial_symtab): Likewise.
13951 * psymtab.c (find_pc_sect_psymtab): Likewise.
13952 * solib-svr4.c (enable_break): Likewise.
13953 * stap-probe.c (relocate_address): Use
13954 objfile::data_section_offset.
13955 * xcoffread.c (enter_line_range): Use
13956 objfile::text_section_offset.
13957 (read_xcoff_symtab): Likewise.
13958
13959 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
13960
13961 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
13962 declaration to narrower scopes.
13963
13964 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
13965
13966 * darwin-nat.h (struct darwin_exception_msg, enum
13967 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
13968 Move up.
13969 (class darwin_nat_target) <wait_1, check_new_threads,
13970 decode_exception_message, decode_message, stop_inferior,
13971 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
13972 * darwin-nat.c (darwin_check_new_threads): Rename to...
13973 (darwin_nat_target::check_new_threads): ... this.
13974 (darwin_suspend_inferior_it): Remove.
13975 (darwin_decode_exception_message): Rename to...
13976 (darwin_nat_target::decode_exception_message): ... this.
13977 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
13978 (darwin_decode_message): Rename to...
13979 (darwin_nat_target::decode_message): ... this.
13980 (cancel_breakpoint): Rename to...
13981 (darwin_nat_target::cancel_breakpoint): ... this.
13982 (darwin_wait): Rename to...
13983 (darwin_nat_target::wait_1): ... this. Use range-based for loop
13984 instead of iterate_over_inferiors.
13985 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
13986 (darwin_stop_inferior): Rename to...
13987 (darwin_nat_target::stop_inferior): ... this.
13988 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
13989 (darwin_init_thread_list): Rename to...
13990 (darwin_nat_target::init_thread_list): ... this.
13991 (darwin_ptrace_him): Rename to...
13992 (darwin_nat_target::ptrace_him): ... this.
13993 (darwin_nat_target::create_inferior): Pass lambda function to
13994 fork_inferior.
13995 (darwin_nat_target::detach): Call stop_inferior instead of
13996 darwin_stop_inferior.
13997 * fork-inferior.h (fork_inferior): Change init_trace_fun
13998 parameter to gdb::function_view.
13999 * fork-inferior.c (fork_inferior): Likewise.
14000
14001 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
14002
14003 * i386-cygwin-tdep.c (core_process_module_section): Update.
14004 * windows-nat.c (struct lm_info_windows): Add text_offset.
14005 (windows_xfer_shared_libraries): Update.
14006 * windows-tdep.c (windows_xfer_shared_library):
14007 Add text_offset_cached argument.
14008 * windows-tdep.h (windows_xfer_shared_library): Update.
14009
14010 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14011
14012 * gdbarch.sh: Add declaration for _initialize_gdbarch.
14013
14014 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14015
14016 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
14017 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
14018 replace with range-based for.
14019 (gdbsim_interrupt_inferior): Remove.
14020 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
14021 with a range-based for. Inline code from
14022 gdbsim_interrupt_inferior.
14023
14024 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14025
14026 * infrun.c (proceed): Fix indentation.
14027
14028 2020-01-21 Tom Tromey <tromey@adacore.com>
14029
14030 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
14031 * python/python.c (python_extension_ops): Update.
14032 (gdbpy_colorize): New function.
14033 * python/lib/gdb/__init__.py (colorize): New function.
14034 * extension.h (ext_lang_colorize): Declare.
14035 * extension.c (ext_lang_colorize): New function.
14036 * extension-priv.h (struct extension_language_ops) <colorize>: New
14037 member.
14038 * cli/cli-style.c (_initialize_cli_style): Update help text.
14039
14040 2020-01-21 Luis Machado <luis.machado@linaro.org>
14041
14042 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
14043 <cond>: Change type to bool.
14044 (aarch64_displaced_step_b_cond): Update cond to use bool type.
14045 (aarch64_displaced_step_cb): Likewise.
14046 (aarch64_displaced_step_tb): Likewise.
14047
14048 2020-01-21 Luis Machado <luis.machado@linaro.org>
14049
14050 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
14051 output.
14052
14053 2020-01-21 Luis Machado <luis.machado@linaro.org>
14054
14055 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
14056 <pc_adjust>: Adjust the documentation.
14057 (aarch64_displaced_step_fixup): Check if PC really moved before
14058 adjusting it.
14059
14060 2020-01-19 Tom Tromey <tom@tromey.com>
14061
14062 * disasm.c (~gdb_disassembler): New destructor.
14063 (gdb_buffered_insn_length): Call disassemble_free_target.
14064 * disasm.h (class gdb_disassembler): Declare destructor. Use
14065 DISABLE_COPY_AND_ASSIGN.
14066
14067 2020-01-19 Tom Tromey <tom@tromey.com>
14068
14069 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
14070 (die_reader_func_ftype): Remove.
14071 (cutu_reader): New class.
14072 (dw2_get_file_names_reader): Remove "data" parameter.
14073 (dw2_get_file_names): Use cutu_reader.
14074 (create_debug_type_hash_table): Update.
14075 (read_cutu_die_from_dwo): Update comment.
14076 (lookup_dwo_unit): Add dwo_name parameter.
14077 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
14078 die_reader_func_ftype and data parameters.
14079 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
14080 Remove die_reader_func_ftype and data parameters.
14081 (~cutu_reader): New; from init_cutu_and_read_dies.
14082 (cutu_reader::cutu_reader): Rename from
14083 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
14084 and data parameters.
14085 (init_cutu_and_read_dies_simple): Remove.
14086 (struct process_psymtab_comp_unit_data): Remove.
14087 (process_psymtab_comp_unit_reader): Remove data parameter; add
14088 want_partial_unit and pretend_language parameters.
14089 (process_psymtab_comp_unit): Use cutu_reader.
14090 (build_type_psymtabs_reader): Remove data parameter.
14091 (build_type_psymtabs_1): Use cutu_reader.
14092 (process_skeletonless_type_unit): Likewise.
14093 (load_partial_comp_unit_reader): Remove.
14094 (load_partial_comp_unit): Use cutu_reader.
14095 (load_full_comp_unit_reader): Remove.
14096 (load_full_comp_unit): Use cutu_reader.
14097 (struct create_dwo_cu_data): Remove.
14098 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
14099 dwo_unit parameters.
14100 (create_cus_hash_table): Use cutu_reader.
14101 (struct dwarf2_read_addr_index_data): Remove.
14102 (dwarf2_read_addr_index_reader): Remove.
14103 (dwarf2_read_addr_index): Use cutu_reader.
14104 (read_signatured_type_reader): Remove.
14105 (read_signatured_type): Use cutu_reader.
14106
14107 2020-01-19 Tom Tromey <tom@tromey.com>
14108
14109 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
14110 * tui/tui-wingeneral.h (class tui_suppress_output): New.
14111 (tui_wrefresh): Declare.
14112 * tui/tui-wingeneral.c (suppress_output): New global.
14113 (tui_suppress_output, ~tui_suppress_output): New constructor and
14114 destructor.
14115 (tui_wrefresh): New function.
14116 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
14117 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
14118 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
14119 method.
14120 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
14121 tui_wrefresh.
14122 (tui_data_window::no_refresh): New method.
14123 (tui_data_item_window::refresh_window): Call tui_wrefresh.
14124 (tui_reg_command): Use tui_suppress_output
14125 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
14126 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
14127 method.
14128 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
14129
14130 2020-01-19 Tom Tromey <tom@tromey.com>
14131
14132 * tui/tui-winsource.c (tui_update_source_windows_with_line):
14133 Handle case where symtab is null.
14134
14135 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
14136
14137 * linux-fork.c (one_fork_p): Simplify.
14138
14139 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14140
14141 * top.c (struct qt_args): Remove.
14142 (kill_or_detach): Change return type to void, replace `void *`
14143 parameter with a proper one.
14144 (print_inferior_quit_action): Likewise.
14145 (quit_confirm): Use range-based for loop to iterate over inferiors.
14146 (quit_force): Likewise.
14147
14148 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14149
14150 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
14151 `void *` parameter with proper parameters.
14152 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
14153 (print_one_inferior): Change return type to void, replace `void *`
14154 parameter with proper parameters.
14155 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
14156 inferiors.
14157 (get_other_inferior): Remove.
14158 (mi_cmd_remove_inferior): Use range-based loop to iterate over
14159 inferiors.
14160
14161 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14162
14163 * mi/mi-interp.c (report_initial_inferior): Remove.
14164 (mi_interp::init): Use range-based for to iterate over inferiors.
14165
14166 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14167
14168 * python/py-inferior.c (build_inferior_list): Remove.
14169 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
14170
14171 2020-01-16 Christian Biesinger <cbiesinger@google.com>
14172
14173 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
14174 (btrace_stitch_trace): Likewise.
14175 * charset.c (intermediate_encoding): Likewise (vaild).
14176 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
14177 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
14178 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
14179
14180 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
14181
14182 * windows-tdep.c (windows_get_tlb_type):
14183 Add rtl_user_process_parameters type.
14184
14185 2020-01-16 Pedro Alves <palves@redhat.com>
14186 Norbert Lange <nolange79@gmail.com>
14187
14188 PR build/24805
14189 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
14190 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
14191 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
14192 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
14193 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
14194 (ps_plog): Redeclare exported functions with default visibility.
14195
14196 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
14197
14198 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
14199 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
14200
14201 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
14202
14203 * infcmd.c (post_create_inferior): Use get_thread_regcache
14204 instead of get_current_regcache.
14205
14206 2020-01-14 Tom Tromey <tom@tromey.com>
14207
14208 PR symtab/12535:
14209 * python/python.c (gdbpy_decode_line): Treat empty string the same
14210 as no argument.
14211
14212 2020-01-14 Tom Tromey <tom@tromey.com>
14213
14214 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
14215
14216 2020-01-14 Tom Tromey <tom@tromey.com>
14217
14218 * nat/linux-btrace.c: Don't include <config.h>.
14219 * nat/linux-ptrace.c: Don't include <config.h>.
14220 * nat/x86-linux-dregs.c: Don't include <config.h>.
14221
14222 2020-01-14 Tom Tromey <tom@tromey.com>
14223
14224 * configure: Rebuild.
14225 * configure.ac: Move many checks to ../gdbsupport/common.m4.
14226
14227 2020-01-14 Tom Tromey <tom@tromey.com>
14228
14229 * nat/x86-linux-dregs.c: Include configh.h.
14230 * nat/linux-ptrace.c: Include configh.h.
14231 * nat/linux-btrace.c: Include configh.h.
14232 * defs.h: Include config.h, bfd.h.
14233 * configure.ac: Don't source common.host.
14234 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
14235 * configure: Rebuild.
14236 * acinclude.m4: Update path.
14237 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
14238 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
14239 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
14240 (CLIBS): Add LIBSUPPORT.
14241 (CDEPS): Likewise.
14242 (COMMON_SFILES): Remove gdbsupport files.
14243 (HFILES_NO_SRCDIR): Likewise.
14244 (stamp-version): Update path to create-version.sh.
14245 (ALLDEPFILES): Remove gdbsupport files.
14246
14247 2020-01-14 Tom Tromey <tom@tromey.com>
14248
14249 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
14250 USE_WIN32API when needed.
14251 * configure.ac (USE_WIN32API): Don't define.
14252 (WIN32LIBS): Use WIN32APILIBS.
14253 * configure: Rebuild.
14254
14255 2020-01-14 Tom Tromey <tom@tromey.com>
14256
14257 * configure: Rebuild.
14258 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
14259
14260 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
14261
14262 * skip.c (skip_function_command): Make skip w/o arguments use the
14263 name of the inlined function if pc is inside any inlined function.
14264
14265 2020-01-14 Luis Machado <luis.machado@linaro.org>
14266
14267 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
14268 * infrun.c (resume_1): Likewise.
14269 (handle_inferior_event): Remove stale comment.
14270 * linux-nat.c (linux_nat_target::resume): Update comments.
14271 (save_stop_reason): Likewise.
14272 (linux_nat_filter_event): Likewise.
14273 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
14274
14275 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14276
14277 * elfread.c (record_minimal_symbol): Set section index to 0 for
14278 non-allocatable sections.
14279
14280
14281 2020-01-13 Ali Tamur <tamur@google.com>
14282
14283 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
14284 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
14285 to gdb::optional. Update comments.
14286 (dwo_file): Update comments.
14287 (read_attribute): Update API to take an additional out parameter,
14288 need_reprocess. This is used to mark attributes that need other
14289 attributes (e.g. str_offsets_base) for correct computation which may not
14290 have been read yet.
14291 (read_attribute_reprocess): New function declaration.
14292 (read_addr_index): Likewise.
14293 (read_dwo_str_index): Likewise.
14294 (read_stub_str_index): Likewise.
14295 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
14296 (lookup_addr_base): New function definition.
14297 (lookup_ranges_base): Likewise.
14298 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
14299 lookup_ranges_base.
14300 (init_cutu_and_read_dies): Update comments.
14301 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
14302 unit. This is used to inherit parent's str_offsets_base and addr_base.
14303 Update comments.
14304 (init_cutu_and_read_dies_simple): Reflect API changes.
14305 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
14306 (create_cus_hash_table): Change API to take parent compile unit.
14307 Reflect API changes.
14308 (open_and_init_dwo_file): Reflect API changes.
14309 (dwarf2_get_pc_bounds): Update comments.
14310 (dwarf2_record_block_ranges): Likewise.
14311 (read_full_die_1): Change implementation to reprocess attributes that
14312 need str_offsets_base and addr_base.
14313 (partial_die_info::read): Likewise.
14314 (read_attribute_reprocess): New function definition.
14315 (read_attribute_value): Change API to take an additional out parameter,
14316 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
14317 when a non-dwo compile unit has index based attributes.
14318 (read_attribute): Reflect API changes.
14319 (read_addr_index_1): Reflect API changes. Update comments.
14320 (dwarf2_read_addr_index_data): Reflect API changes.
14321 (dwarf2_read_addr_index): Likewise.
14322 (read_str_index): Change API and implementation. This becomes a helper
14323 to be used by the new string index related methods. Update error
14324 message and comments.
14325 (read_dwo_str_index): New function definition.
14326 (read_stub_str_index): Likewise.
14327 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
14328 * symfile.h (dwarf2_debug_sections): Likewise.
14329 * xcoffread.c (dwarf2_debug_sections): Likewise.
14330
14331 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14332
14333 * gdbcore.h (struct core_fns) <core_read_registers>: Change
14334 core_reg_sect type to gdb_byte *.
14335 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
14336 * cris-tdep.c (fetch_core_registers): Likewise.
14337 * corelow.c (core_target::get_core_register_section): Change
14338 type of `contents` to gdb::byte_vector.
14339
14340 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14341
14342 * tui/tui-wingeneral.c (box_win): Position the title in the center
14343 of the border.
14344
14345 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14346
14347 * corelow.c (core_target::get_core_register_section): Use
14348 std::vector instead of alloca.
14349
14350 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14351
14352 * warning.m4: Add -Wmissing-declarations to build_warnings.
14353 * configure: Re-generate.
14354
14355 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14356
14357 * python/python.c (init__gdb_module): Add declaration.
14358
14359 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14360
14361 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
14362 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
14363 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
14364 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
14365 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
14366 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
14367 * ada-exp.y (_initialize_ada_exp): Add declaration.
14368 * ada-lang.c (_initialize_ada_language): Add declaration.
14369 * ada-tasks.c (_initialize_tasks): Add declaration.
14370 * agent.c (_initialize_agent): Add declaration.
14371 * aix-thread.c (_initialize_aix_thread): Add declaration.
14372 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
14373 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
14374 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
14375 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
14376 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
14377 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
14378 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
14379 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
14380 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
14381 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
14382 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
14383 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
14384 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
14385 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
14386 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
14387 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
14388 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
14389 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
14390 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
14391 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
14392 * annotate.c (_initialize_annotate): Add declaration.
14393 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
14394 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
14395 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
14396 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
14397 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
14398 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
14399 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
14400 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
14401 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
14402 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
14403 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
14404 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
14405 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
14406 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
14407 * auto-load.c (_initialize_auto_load): Add declaration.
14408 * auxv.c (_initialize_auxv): Add declaration.
14409 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
14410 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
14411 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
14412 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
14413 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
14414 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
14415 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
14416 * breakpoint.c (_initialize_breakpoint): Add declaration.
14417 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
14418 * btrace.c (_initialize_btrace): Add declaration.
14419 * charset.c (_initialize_charset): Add declaration.
14420 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
14421 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
14422 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
14423 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
14424 * cli/cli-script.c (_initialize_cli_script): Add declaration.
14425 * cli/cli-style.c (_initialize_cli_style): Add declaration.
14426 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
14427 * coffread.c (_initialize_coffread): Add declaration.
14428 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
14429 * compile/compile.c (_initialize_compile): Add declaration.
14430 * complaints.c (_initialize_complaints): Add declaration.
14431 * completer.c (_initialize_completer): Add declaration.
14432 * copying.c (_initialize_copying): Add declaration.
14433 * corefile.c (_initialize_core): Add declaration.
14434 * corelow.c (_initialize_corelow): Add declaration.
14435 * cp-abi.c (_initialize_cp_abi): Add declaration.
14436 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
14437 * cp-support.c (_initialize_cp_support): Add declaration.
14438 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
14439 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
14440 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
14441 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
14442 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
14443 * ctfread.c (_initialize_ctfread): Add declaration.
14444 * d-lang.c (_initialize_d_language): Add declaration.
14445 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
14446 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
14447 * dbxread.c (_initialize_dbxread): Add declaration.
14448 * dcache.c (_initialize_dcache): Add declaration.
14449 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
14450 * disasm.c (_initialize_disasm): Add declaration.
14451 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
14452 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
14453 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
14454 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
14455 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
14456 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
14457 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
14458 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
14459 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
14460 * elfread.c (_initialize_elfread): Add declaration.
14461 * exec.c (_initialize_exec): Add declaration.
14462 * extension.c (_initialize_extension): Add declaration.
14463 * f-lang.c (_initialize_f_language): Add declaration.
14464 * f-valprint.c (_initialize_f_valprint): Add declaration.
14465 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
14466 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
14467 * filesystem.c (_initialize_filesystem): Add declaration.
14468 * findcmd.c (_initialize_mem_search): Add declaration.
14469 * findvar.c (_initialize_findvar): Add declaration.
14470 * fork-child.c (_initialize_fork_child): Add declaration.
14471 * frame-base.c (_initialize_frame_base): Add declaration.
14472 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14473 * frame.c (_initialize_frame): Add declaration.
14474 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14475 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14476 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14477 * gcore.c (_initialize_gcore): Add declaration.
14478 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14479 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14480 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14481 * gdbarch.c (_initialize_gdbarch): Add declaration.
14482 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14483 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14484 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14485 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14486 * go-lang.c (_initialize_go_language): Add declaration.
14487 * go32-nat.c (_initialize_go32_nat): Add declaration.
14488 * guile/guile.c (_initialize_guile): Add declaration.
14489 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14490 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14491 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14492 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14493 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14494 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14495 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14496 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14497 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14498 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14499 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14500 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14501 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14502 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14503 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
14504 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
14505 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
14506 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
14507 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
14508 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
14509 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
14510 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
14511 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
14512 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
14513 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
14514 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
14515 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
14516 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
14517 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
14518 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
14519 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
14520 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
14521 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
14522 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
14523 * infcall.c (_initialize_infcall): Add declaration.
14524 * infcmd.c (_initialize_infcmd): Add declaration.
14525 * inflow.c (_initialize_inflow): Add declaration.
14526 * infrun.c (_initialize_infrun): Add declaration.
14527 * interps.c (_initialize_interpreter): Add declaration.
14528 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
14529 * jit.c (_initialize_jit): Add declaration.
14530 * language.c (_initialize_language): Add declaration.
14531 * linux-fork.c (_initialize_linux_fork): Add declaration.
14532 * linux-nat.c (_initialize_linux_nat): Add declaration.
14533 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
14534 * linux-thread-db.c (_initialize_thread_db): Add declaration.
14535 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
14536 * m2-lang.c (_initialize_m2_language): Add declaration.
14537 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
14538 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
14539 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
14540 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
14541 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
14542 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
14543 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
14544 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
14545 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
14546 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
14547 * machoread.c (_initialize_machoread): Add declaration.
14548 * macrocmd.c (_initialize_macrocmd): Add declaration.
14549 * macroscope.c (_initialize_macroscope): Add declaration.
14550 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
14551 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
14552 * maint.c (_initialize_maint_cmds): Add declaration.
14553 * mdebugread.c (_initialize_mdebugread): Add declaration.
14554 * memattr.c (_initialize_mem): Add declaration.
14555 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
14556 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
14557 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
14558 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
14559 * mi/mi-main.c (_initialize_mi_main): Add declaration.
14560 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
14561 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
14562 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
14563 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
14564 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
14565 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
14566 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
14567 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
14568 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
14569 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
14570 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
14571 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
14572 * mipsread.c (_initialize_mipsread): Add declaration.
14573 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
14574 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
14575 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
14576 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
14577 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
14578 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
14579 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
14580 * nto-procfs.c (_initialize_procfs): Add declaration.
14581 * objc-lang.c (_initialize_objc_language): Add declaration.
14582 * observable.c (_initialize_observer): Add declaration.
14583 * opencl-lang.c (_initialize_opencl_language): Add declaration.
14584 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
14585 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
14586 * osabi.c (_initialize_gdb_osabi): Add declaration.
14587 * osdata.c (_initialize_osdata): Add declaration.
14588 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
14589 * parse.c (_initialize_parse): Add declaration.
14590 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
14591 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
14592 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
14593 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
14594 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
14595 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
14596 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
14597 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
14598 * printcmd.c (_initialize_printcmd): Add declaration.
14599 * probe.c (_initialize_probe): Add declaration.
14600 * proc-api.c (_initialize_proc_api): Add declaration.
14601 * proc-events.c (_initialize_proc_events): Add declaration.
14602 * proc-service.c (_initialize_proc_service): Add declaration.
14603 * procfs.c (_initialize_procfs): Add declaration.
14604 * producer.c (_initialize_producer): Add declaration.
14605 * psymtab.c (_initialize_psymtab): Add declaration.
14606 * python/python.c (_initialize_python): Add declaration.
14607 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
14608 * record-btrace.c (_initialize_record_btrace): Add declaration.
14609 * record-full.c (_initialize_record_full): Add declaration.
14610 * record.c (_initialize_record): Add declaration.
14611 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
14612 * regcache.c (_initialize_regcache): Add declaration.
14613 * reggroups.c (_initialize_reggroup): Add declaration.
14614 * remote-notif.c (_initialize_notif): Add declaration.
14615 * remote-sim.c (_initialize_remote_sim): Add declaration.
14616 * remote.c (_initialize_remote): Add declaration.
14617 * reverse.c (_initialize_reverse): Add declaration.
14618 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
14619 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
14620 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
14621 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
14622 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
14623 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
14624 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
14625 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
14626 Add declaration.
14627 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
14628 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
14629 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
14630 * rust-exp.y (_initialize_rust_exp): Add declaration.
14631 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
14632 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
14633 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
14634 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
14635 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
14636 * score-tdep.c (_initialize_score_tdep): Add declaration.
14637 * ser-go32.c (_initialize_ser_dos): Add declaration.
14638 * ser-mingw.c (_initialize_ser_windows): Add declaration.
14639 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
14640 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
14641 * ser-uds.c (_initialize_ser_socket): Add declaration.
14642 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
14643 * serial.c (_initialize_serial): Add declaration.
14644 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
14645 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
14646 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
14647 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
14648 * skip.c (_initialize_step_skip): Add declaration.
14649 * sol-thread.c (_initialize_sol_thread): Add declaration.
14650 * solib-aix.c (_initialize_solib_aix): Add declaration.
14651 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
14652 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
14653 * solib-frv.c (_initialize_frv_solib): Add declaration.
14654 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
14655 * solib-target.c (_initialize_solib_target): Add declaration.
14656 * solib.c (_initialize_solib): Add declaration.
14657 * source-cache.c (_initialize_source_cache): Add declaration.
14658 * source.c (_initialize_source): Add declaration.
14659 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
14660 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
14661 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
14662 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
14663 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
14664 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
14665 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
14666 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
14667 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
14668 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
14669 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
14670 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
14671 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
14672 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
14673 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
14674 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
14675 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
14676 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
14677 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
14678 * stabsread.c (_initialize_stabsread): Add declaration.
14679 * stack.c (_initialize_stack): Add declaration.
14680 * stap-probe.c (_initialize_stap_probe): Add declaration.
14681 * std-regs.c (_initialize_frame_reg): Add declaration.
14682 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
14683 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
14684 * symfile.c (_initialize_symfile): Add declaration.
14685 * symmisc.c (_initialize_symmisc): Add declaration.
14686 * symtab.c (_initialize_symtab): Add declaration.
14687 * target.c (_initialize_target): Add declaration.
14688 * target-connection.c (_initialize_target_connection): Add
14689 declaration.
14690 * target-dcache.c (_initialize_target_dcache): Add declaration.
14691 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
14692 * thread.c (_initialize_thread): Add declaration.
14693 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
14694 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
14695 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
14696 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
14697 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
14698 * tracectf.c (_initialize_ctf): Add declaration.
14699 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
14700 * tracefile.c (_initialize_tracefile): Add declaration.
14701 * tracepoint.c (_initialize_tracepoint): Add declaration.
14702 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
14703 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
14704 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
14705 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
14706 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
14707 * tui/tui-win.c (_initialize_tui_win): Add declaration.
14708 * tui/tui.c (_initialize_tui): Add declaration.
14709 * typeprint.c (_initialize_typeprint): Add declaration.
14710 * ui-style.c (_initialize_ui_style): Add declaration.
14711 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
14712 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
14713 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
14714 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
14715 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
14716 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
14717 * unittests/filtered_iterator-selftests.c
14718 (_initialize_filtered_iterator_selftests): Add declaration.
14719 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
14720 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
14721 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
14722 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
14723 * unittests/main-thread-selftests.c
14724 (_initialize_main_thread_selftests): Add declaration.
14725 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
14726 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
14727 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
14728 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
14729 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
14730 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
14731 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
14732 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
14733 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
14734 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
14735 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
14736 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
14737 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
14738 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
14739 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
14740 declaration.
14741 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
14742 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
14743 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
14744 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
14745 * user-regs.c (_initialize_user_regs): Add declaration.
14746 * utils.c (_initialize_utils): Add declaration.
14747 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
14748 * valops.c (_initialize_valops): Add declaration.
14749 * valprint.c (_initialize_valprint): Add declaration.
14750 * value.c (_initialize_values): Add declaration.
14751 * varobj.c (_initialize_varobj): Add declaration.
14752 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
14753 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
14754 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
14755 * windows-nat.c (_initialize_windows_nat): Add declaration.
14756 (_initialize_check_for_gdb_ini): Add declaration.
14757 (_initialize_loadable): Add declaration.
14758 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
14759 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
14760 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
14761 * xcoffread.c (_initialize_xcoffread): Add declaration.
14762 * xml-support.c (_initialize_xml_support): Add declaration.
14763 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
14764 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
14765 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
14766 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
14767
14768 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14769
14770 * regformats/regdat.sh: Generate declaration for init function.
14771
14772 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14773
14774 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
14775 up.
14776 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
14777 close_one_inferior>: New methods.
14778 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
14779 pass down target to find_inferior_pid.
14780 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
14781 Pass down target to find_inferior_ptid.
14782 (gdbsim_target::create_inferior): Pass down target to
14783 add_thread_silent.
14784 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
14785 target down to find_inferior_ptid and switch_to_thread.
14786 (gdbsim_target::close): Update to call close_one_inferior.
14787 (struct resume_data): Remove.
14788 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
14789 directly, rather than through a void pointer.
14790 (gdbsim_target::resume): Update to call resume_one_inferior.
14791
14792 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
14793
14794 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
14795
14796 2020-01-12 Pedro Alves <palves@redhat.com>
14797
14798 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
14799 directly for the current inferior instead of
14800 discard_all_inferiors.
14801 (discard_all_inferiors): Delete.
14802
14803 2020-01-11 Tom Tromey <tom@tromey.com>
14804
14805 * tui/tui-wingeneral.c (box_win): Check cli_styling.
14806 * tui/tui-winsource.c (tui_source_window_base::refill): Use
14807 deprecated_safe_get_selected_frame.
14808
14809 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14810
14811 * inferior.c (print_inferior): Switch inferior before printing it.
14812
14813 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
14814 Pedro Alves <palves@redhat.com>
14815
14816 * progspace-and-thread.c (switch_to_program_space_and_thread):
14817 Assert there's an inferior for PSPACE. Use
14818 switch_to_inferior_no_thread to switch the inferior too.
14819 * progspace.c (program_space::~program_space): Call
14820 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
14821 (program_space::free_all_objfiles): Don't call clear_symtab_users
14822 here.
14823 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
14824
14825 2020-01-10 Pedro Alves <palves@redhat.com>
14826
14827 * NEWS: Mention multi-target debugging, "info connections", and
14828 "add-inferior -no-connection".
14829
14830 2020-01-10 Pedro Alves <palves@redhat.com>
14831
14832 * infrun.c: Include "target-connection.h".
14833 (check_multi_target_resumption): New.
14834 (proceed): Call it.
14835 * target-connection.c (make_target_connection_string): Make
14836 extern.
14837 * target-connection.h (make_target_connection_string): Declare.
14838
14839 2020-01-10 Pedro Alves <palves@redhat.com>
14840
14841 * Makefile.in (COMMON_SFILES): Add target-connection.c.
14842 * inferior.c (uiout_field_connection): New function.
14843 (print_inferior): Add new "connection-id" column.
14844 (add_inferior_command): Show connection number/string of added
14845 inferior.
14846 * process-stratum-target.h
14847 (process_stratum_target::connection_string): New virtual method.
14848 (process_stratum_target::connection_number): New field.
14849 * remote.c (remote_target::connection_string): New override.
14850 * target-connection.c: New file.
14851 * target-connection.h: New file.
14852 * target.c (decref_target): Remove process_stratum targets from
14853 the connection list.
14854 (target_stack::push): Add process_stratum targets to the
14855 connection list.
14856
14857 2020-01-10 Pedro Alves <palves@redhat.com>
14858
14859 Revert:
14860 2016-04-12 Pedro Alves <palves@redhat.com>
14861 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
14862 Remove references to name.
14863 * serial.h (struct serial) <name>: Delete.
14864
14865 2020-01-10 Pedro Alves <palves@redhat.com>
14866
14867 * gdbarch-selftests.c (register_to_value_test): Remove "target
14868 already pushed" check.
14869
14870 2020-01-10 Pedro Alves <palves@redhat.com>
14871 John Baldwin <jhb@FreeBSD.org>
14872
14873 * aarch64-linux-nat.c
14874 (aarch64_linux_nat_target::thread_architecture): Adjust.
14875 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
14876 (task_command_1): Likewise.
14877 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
14878 (aix_thread_target::wait, aix_thread_target::fetch_registers)
14879 (aix_thread_target::store_registers)
14880 (aix_thread_target::thread_alive): Adjust.
14881 * amd64-fbsd-tdep.c: Include "inferior.h".
14882 (amd64fbsd_get_thread_local_address): Pass down target.
14883 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
14884 thread's gdbarch instead of target_gdbarch.
14885 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
14886 get_last_target_status.
14887 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
14888 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
14889 inferiors.
14890 (update_inserted_breakpoint_locations): Skip if inferiors with no
14891 execution.
14892 (update_global_location_list): When handling moribund locations,
14893 find representative inferior for location's pspace, and use thread
14894 count of its process_stratum target.
14895 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
14896 * bsd-uthread.c (bsd_uthread_target::wait): Use
14897 as_process_stratum_target and adjust thread_change_ptid and
14898 add_thread calls.
14899 (bsd_uthread_target::update_thread_list): Use
14900 as_process_stratum_target and adjust find_thread_ptid,
14901 thread_change_ptid and add_thread calls.
14902 * btrace.c (maint_btrace_packet_history_cmd): Adjust
14903 find_thread_ptid call.
14904 * corelow.c (add_to_thread_list): Adjust add_thread call.
14905 (core_target_open): Adjust add_thread_silent and thread_count
14906 calls.
14907 (core_target::pid_to_str): Adjust find_inferior_ptid call.
14908 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
14909 * event-top.c (async_disconnect): Pop targets from all inferiors.
14910 * exec.c (add_target_sections): Push exec target on all inferiors
14911 sharing the program space.
14912 (remove_target_sections): Remove the exec target from all
14913 inferiors sharing the program space.
14914 (exec_on_vfork): New.
14915 * exec.h (exec_on_vfork): Declare.
14916 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
14917 Pass it down.
14918 (fbsd_nat_target::update_thread_list): Adjust.
14919 (fbsd_nat_target::resume): Adjust.
14920 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
14921 down.
14922 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
14923 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
14924 get_thread_arch_regcache call.
14925 * fork-child.c (gdb_startup_inferior): Pass target down to
14926 startup_inferior and set_executing.
14927 * gdbthread.h (struct process_stratum_target): Forward declare.
14928 (add_thread, add_thread_silent, add_thread_with_info)
14929 (in_thread_list): Add process_stratum_target parameter.
14930 (find_thread_ptid(inferior*, ptid_t)): New overload.
14931 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
14932 parameter.
14933 (all_threads()): Delete overload.
14934 (all_threads, all_non_exited_threads): Add process_stratum_target
14935 parameter.
14936 (all_threads_safe): Use brace initialization.
14937 (thread_count): Add process_stratum_target parameter.
14938 (set_resumed, set_running, set_stop_requested, set_executing)
14939 (threads_are_executing, finish_thread_state): Add
14940 process_stratum_target parameter.
14941 (switch_to_thread): Use is_current_thread.
14942 * i386-fbsd-tdep.c: Include "inferior.h".
14943 (i386fbsd_get_thread_local_address): Pass down target.
14944 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
14945 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
14946 have_inferiors check.
14947 * inf-ptrace.c (inf_ptrace_target::create_inferior)
14948 (inf_ptrace_target::attach): Adjust.
14949 * infcall.c (run_inferior_call): Adjust.
14950 * infcmd.c (run_command_1): Pass target to
14951 scoped_finish_thread_state.
14952 (proceed_thread_callback): Skip inferiors with no execution.
14953 (continue_command): Rename 'all_threads' local to avoid hiding
14954 'all_threads' function. Adjust get_last_target_status call.
14955 (prepare_one_step): Adjust set_running call.
14956 (signal_command): Use user_visible_resume_target. Compare thread
14957 pointers instead of inferior_ptid.
14958 (info_program_command): Adjust to pass down target.
14959 (attach_command): Mark target's 'thread_executing' flag.
14960 (stop_current_target_threads_ns): New, factored out from ...
14961 (interrupt_target_1): ... this. Switch inferior before making
14962 target calls.
14963 * inferior-iter.h
14964 (struct all_inferiors_iterator, struct all_inferiors_range)
14965 (struct all_inferiors_safe_range)
14966 (struct all_non_exited_inferiors_range): Filter on
14967 process_stratum_target too. Remove explicit.
14968 * inferior.c (inferior::inferior): Push dummy target on target
14969 stack.
14970 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
14971 Add process_stratum_target parameter, and pass it down.
14972 (have_live_inferiors): Adjust.
14973 (switch_to_inferior_and_push_target): New.
14974 (add_inferior_command, clone_inferior_command): Handle
14975 "-no-connection" parameter. Use
14976 switch_to_inferior_and_push_target.
14977 (_initialize_inferior): Mention "-no-connection" option in
14978 the help of "add-inferior" and "clone-inferior" commands.
14979 * inferior.h: Include "process-stratum-target.h".
14980 (interrupt_target_1): Use bool.
14981 (struct inferior) <push_target, unpush_target, target_is_pushed,
14982 find_target_beneath, top_target, process_target, target_at,
14983 m_stack>: New.
14984 (discard_all_inferiors): Delete.
14985 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
14986 (all_inferiors, all_non_exited_inferiors): Add
14987 process_stratum_target parameter.
14988 * infrun.c: Include "gdb_select.h" and <unordered_map>.
14989 (target_last_proc_target): New global.
14990 (follow_fork_inferior): Push target on new inferior. Pass target
14991 to add_thread_silent. Call exec_on_vfork. Handle target's
14992 reference count.
14993 (follow_fork): Adjust get_last_target_status call. Also consider
14994 target.
14995 (follow_exec): Push target on new inferior.
14996 (struct execution_control_state) <target>: New field.
14997 (user_visible_resume_target): New.
14998 (do_target_resume): Call target_async.
14999 (resume_1): Set target's threads_executing flag. Consider resume
15000 target.
15001 (commit_resume_all_targets): New.
15002 (proceed): Also consider resume target. Skip threads of inferiors
15003 with no execution. Commit resumtion in all targets.
15004 (start_remote): Pass current inferior to wait_for_inferior.
15005 (infrun_thread_stop_requested): Consider target as well. Pass
15006 thread_info pointer to clear_inline_frame_state instead of ptid.
15007 (infrun_thread_thread_exit): Consider target as well.
15008 (random_pending_event_thread): New inferior parameter. Use it.
15009 (do_target_wait): Rename to ...
15010 (do_target_wait_1): ... this. Add inferior parameter, and pass it
15011 down.
15012 (threads_are_resumed_pending_p, do_target_wait): New.
15013 (prepare_for_detach): Adjust calls.
15014 (wait_for_inferior): New inferior parameter. Handle it. Use
15015 do_target_wait_1 instead of do_target_wait.
15016 (fetch_inferior_event): Adjust. Switch to representative
15017 inferior. Pass target down.
15018 (set_last_target_status): Add process_stratum_target parameter.
15019 Save target in global.
15020 (get_last_target_status): Add process_stratum_target parameter and
15021 handle it.
15022 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
15023 (context_switch): Check inferior_ptid == null_ptid before calling
15024 inferior_thread().
15025 (get_inferior_stop_soon): Pass down target.
15026 (wait_one): Rename to ...
15027 (poll_one_curr_target): ... this.
15028 (struct wait_one_event): New.
15029 (wait_one): New.
15030 (stop_all_threads): Adjust.
15031 (handle_no_resumed, handle_inferior_event): Adjust to consider the
15032 event's target.
15033 (switch_back_to_stepped_thread): Also consider target.
15034 (print_stop_event): Update.
15035 (normal_stop): Update. Also consider the resume target.
15036 * infrun.h (wait_for_inferior): Remove declaration.
15037 (user_visible_resume_target): New declaration.
15038 (get_last_target_status, set_last_target_status): New
15039 process_stratum_target parameter.
15040 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15041 process_stratum_target parameter, and use it.
15042 (clear_inline_frame_state (thread_info*)): New.
15043 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15044 process_stratum_target parameter.
15045 (clear_inline_frame_state (thread_info*)): Declare.
15046 * linux-fork.c (delete_checkpoint_command): Pass target down to
15047 find_thread_ptid.
15048 (checkpoint_command): Adjust.
15049 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
15050 instead of just tweaking inferior_ptid.
15051 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
15052 (exit_lwp): Pass target down to find_thread_ptid.
15053 (attach_proc_task_lwp_callback): Pass target down to
15054 add_thread/set_running/set_executing.
15055 (linux_nat_target::attach): Pass target down to
15056 thread_change_ptid.
15057 (get_detach_signal): Pass target down to find_thread_ptid.
15058 Consider last target status's target.
15059 (linux_resume_one_lwp_throw, resume_lwp)
15060 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
15061 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
15062 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
15063 (linux_nat_target::async_wait_fd): New.
15064 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
15065 target down.
15066 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
15067 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
15068 * linux-thread-db.c (struct thread_db_info::process_target): New
15069 field.
15070 (add_thread_db_info): Save target.
15071 (get_thread_db_info): New process_stratum_target parameter. Also
15072 match target.
15073 (delete_thread_db_info): New process_stratum_target parameter.
15074 Also match target.
15075 (thread_from_lwp): Adjust to pass down target.
15076 (thread_db_notice_clone): Pass down target.
15077 (check_thread_db_callback): Pass down target.
15078 (try_thread_db_load_1): Always push the thread_db target.
15079 (try_thread_db_load, record_thread): Pass target down.
15080 (thread_db_target::detach): Pass target down. Always unpush the
15081 thread_db target.
15082 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
15083 target down. Always unpush the thread_db target.
15084 (find_new_threads_callback, thread_db_find_new_threads_2)
15085 (thread_db_target::update_thread_list): Pass target down.
15086 (thread_db_target::pid_to_str): Pass current inferior down.
15087 (thread_db_target::get_thread_local_address): Pass target down.
15088 (thread_db_target::resume, maintenance_check_libthread_db): Pass
15089 target down.
15090 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
15091 * procfs.c (procfs_target::procfs_init_inferior): Declare.
15092 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
15093 (procfs_init_inferior): Rename to ...
15094 (procfs_target::procfs_init_inferior): ... this and adjust.
15095 (procfs_target::create_inferior, procfs_notice_thread)
15096 (procfs_do_thread_registers): Adjust.
15097 * ppc-fbsd-tdep.c: Include "inferior.h".
15098 (ppcfbsd_get_thread_local_address): Pass down target.
15099 * proc-service.c (ps_xfer_memory): Switch current inferior and
15100 program space as well.
15101 (get_ps_regcache): Pass target down.
15102 * process-stratum-target.c
15103 (process_stratum_target::thread_address_space)
15104 (process_stratum_target::thread_architecture): Pass target down.
15105 * process-stratum-target.h
15106 (process_stratum_target::threads_executing): New field.
15107 (as_process_stratum_target): New.
15108 * ravenscar-thread.c
15109 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
15110 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
15111 down.
15112 * record-btrace.c (record_btrace_target::info_record): Adjust.
15113 (record_btrace_target::record_method)
15114 (record_btrace_target::record_is_replaying)
15115 (record_btrace_target::fetch_registers)
15116 (get_thread_current_frame_id, record_btrace_target::resume)
15117 (record_btrace_target::wait, record_btrace_target::stop): Pass
15118 target down.
15119 * record-full.c (record_full_wait_1): Switch to event thread.
15120 Pass target down.
15121 * regcache.c (regcache::regcache)
15122 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
15123 process_stratum_target parameter and handle it.
15124 (current_thread_target): New global.
15125 (get_thread_regcache): Add process_stratum_target parameter and
15126 handle it. Switch inferior before calling target method.
15127 (get_thread_regcache): Pass target down.
15128 (get_thread_regcache_for_ptid): Pass target down.
15129 (registers_changed_ptid): Add process_stratum_target parameter and
15130 handle it.
15131 (registers_changed_thread, registers_changed): Pass target down.
15132 (test_get_thread_arch_aspace_regcache): New.
15133 (current_regcache_test): Define a couple local test_target_ops
15134 instances and use them for testing.
15135 (readwrite_regcache): Pass process_stratum_target parameter.
15136 (cooked_read_test, cooked_write_test): Pass mock_target down.
15137 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
15138 (get_thread_arch_aspace_regcache): Add process_stratum_target
15139 parameter.
15140 (regcache::target): New method.
15141 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
15142 (regcache::registers_changed_ptid): Add process_stratum_target
15143 parameter.
15144 (regcache::m_target): New field.
15145 (registers_changed_ptid): Add process_stratum_target parameter.
15146 * remote.c (remote_state::supports_vCont_probed): New field.
15147 (remote_target::async_wait_fd): New method.
15148 (remote_unpush_and_throw): Add remote_target parameter.
15149 (get_current_remote_target): Adjust.
15150 (remote_target::remote_add_inferior): Push target.
15151 (remote_target::remote_add_thread)
15152 (remote_target::remote_notice_new_inferior)
15153 (get_remote_thread_info): Pass target down.
15154 (remote_target::update_thread_list): Skip threads of inferiors
15155 bound to other targets. (remote_target::close): Don't discard
15156 inferiors. (remote_target::add_current_inferior_and_thread)
15157 (remote_target::process_initial_stop_replies)
15158 (remote_target::start_remote)
15159 (remote_target::remote_serial_quit_handler): Pass down target.
15160 (remote_target::remote_unpush_target): New remote_target
15161 parameter. Unpush the target from all inferiors.
15162 (remote_target::remote_unpush_and_throw): New remote_target
15163 parameter. Pass it down.
15164 (remote_target::open_1): Check whether the current inferior has
15165 execution instead of checking whether any inferior is live. Pass
15166 target down.
15167 (remote_target::remote_detach_1): Pass down target. Use
15168 remote_unpush_target.
15169 (extended_remote_target::attach): Pass down target.
15170 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
15171 (remote_target::append_resumption): Pass down target.
15172 (remote_target::append_pending_thread_resumptions)
15173 (remote_target::remote_resume_with_hc, remote_target::resume)
15174 (remote_target::commit_resume): Pass down target.
15175 (remote_target::remote_stop_ns): Check supports_vCont_probed.
15176 (remote_target::interrupt_query)
15177 (remote_target::remove_new_fork_children)
15178 (remote_target::check_pending_events_prevent_wildcard_vcont)
15179 (remote_target::remote_parse_stop_reply)
15180 (remote_target::process_stop_reply): Pass down target.
15181 (first_remote_resumed_thread): New remote_target parameter. Pass
15182 it down.
15183 (remote_target::wait_as): Pass down target.
15184 (unpush_and_perror): New remote_target parameter. Pass it down.
15185 (remote_target::readchar, remote_target::remote_serial_write)
15186 (remote_target::getpkt_or_notif_sane_1)
15187 (remote_target::kill_new_fork_children, remote_target::kill): Pass
15188 down target.
15189 (remote_target::mourn_inferior): Pass down target. Use
15190 remote_unpush_target.
15191 (remote_target::core_of_thread)
15192 (remote_target::remote_btrace_maybe_reopen): Pass down target.
15193 (remote_target::pid_to_exec_file)
15194 (remote_target::thread_handle_to_thread_info): Pass down target.
15195 (remote_target::async_wait_fd): New.
15196 * riscv-fbsd-tdep.c: Include "inferior.h".
15197 (riscv_fbsd_get_thread_local_address): Pass down target.
15198 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
15199 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
15200 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
15201 Adjust.
15202 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
15203 * solib-svr4.c (enable_break): Pass down target.
15204 * spu-multiarch.c (parse_spufs_run): Pass down target.
15205 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
15206 * target-delegates.c: Regenerate.
15207 * target.c (g_target_stack): Delete.
15208 (current_top_target): Return the current inferior's top target.
15209 (target_has_execution_1): Refer to the passed-in inferior's top
15210 target.
15211 (target_supports_terminal_ours): Check whether the initial
15212 inferior was already created.
15213 (decref_target): New.
15214 (target_stack::push): Incref/decref the target.
15215 (push_target, push_target, unpush_target): Adjust.
15216 (target_stack::unpush): Defref target.
15217 (target_is_pushed): Return bool. Adjust to refer to the current
15218 inferior's target stack.
15219 (dispose_inferior): Delete, and inline parts ...
15220 (target_preopen): ... here. Only dispose of the current inferior.
15221 (target_detach): Hold strong target reference while detaching.
15222 Pass target down.
15223 (target_thread_name): Add assertion.
15224 (target_resume): Pass down target.
15225 (target_ops::beneath, find_target_at): Adjust to refer to the
15226 current inferior's target stack.
15227 (get_dummy_target): New.
15228 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
15229 has a thread running.
15230 (initialize_targets): Rename to ...
15231 (_initialize_target): ... this.
15232 * target.h: Include "gdbsupport/refcounted-object.h".
15233 (struct target_ops): Inherit refcounted_object.
15234 (target_ops::shortname, target_ops::longname): Make const.
15235 (target_ops::async_wait_fd): New method.
15236 (decref_target): Declare.
15237 (struct target_ops_ref_policy): New.
15238 (target_ops_ref): New typedef.
15239 (get_dummy_target): Declare function.
15240 (target_is_pushed): Return bool.
15241 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
15242 (all_matching_threads_iterator::all_matching_threads_iterator):
15243 Handle filter target.
15244 * thread-iter.h (struct all_matching_threads_iterator, struct
15245 all_matching_threads_range, class all_non_exited_threads_range):
15246 Filter by target too. Remove explicit.
15247 * thread.c (threads_executing): Delete.
15248 (inferior_thread): Pass down current inferior.
15249 (clear_thread_inferior_resources): Pass down thread pointer
15250 instead of ptid_t.
15251 (add_thread_silent, add_thread_with_info, add_thread): Add
15252 process_stratum_target parameter. Use it for thread and inferior
15253 searches.
15254 (is_current_thread): New.
15255 (thread_info::deletable): Use it.
15256 (find_thread_ptid, thread_count, in_thread_list)
15257 (thread_change_ptid, set_resumed, set_running): New
15258 process_stratum_target parameter. Pass it down.
15259 (set_executing): New process_stratum_target parameter. Pass it
15260 down. Adjust reference to 'threads_executing'.
15261 (threads_are_executing): New process_stratum_target parameter.
15262 Adjust reference to 'threads_executing'.
15263 (set_stop_requested, finish_thread_state): New
15264 process_stratum_target parameter. Pass it down.
15265 (switch_to_thread): Also match inferior.
15266 (switch_to_thread): New process_stratum_target parameter. Pass it
15267 down.
15268 (update_threads_executing): Reimplement.
15269 * top.c (quit_force): Pop targets from all inferior.
15270 (gdb_init): Don't call initialize_targets.
15271 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
15272 Declare.
15273 (windows_add_thread, windows_delete_thread): Adjust.
15274 (get_windows_debug_event): Rename to ...
15275 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
15276 * tracefile-tfile.c (tfile_target_open): Pass down target.
15277 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
15278 Forward declare.
15279 (switch_to_thread): Add process_stratum_target parameter.
15280 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
15281 parameter. Use it.
15282 (mi_on_resume): Pass target down.
15283 * nat/fork-inferior.c (startup_inferior): Add
15284 process_stratum_target parameter. Pass it down.
15285 * nat/fork-inferior.h (startup_inferior): Add
15286 process_stratum_target parameter.
15287 * python/py-threadevent.c (py_get_event_thread): Pass target down.
15288
15289 2020-01-10 Pedro Alves <palves@redhat.com>
15290
15291 * remote.c (remote_target::start_remote): Don't set inferior_ptid
15292 directly. Instead find the first thread in the thread list and
15293 use switch_to_thread.
15294
15295 2020-01-10 Pedro Alves <palves@redhat.com>
15296
15297 * remote.c (remote_target::remote_add_inferior): Don't bind a
15298 process to the current inferior if the current inferior is already
15299 bound to a process.
15300
15301 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15302 Pedro Alves <palves@redhat.com>
15303
15304 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
15305 If no process is specified, return null_ptid instead of
15306 inferior_ptid.
15307 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
15308 TARGET_WAITKIND_SIGNALLED with no pid.
15309
15310 2020-01-10 Pedro Alves <palves@redhat.com>
15311
15312 * remote.c (first_remote_resumed_thread): New.
15313 (remote_target::wait_as): Use it as default event_ptid instead of
15314 inferior_ptid.
15315
15316 2020-01-10 Pedro Alves <palves@redhat.com>
15317
15318 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
15319
15320 2020-01-10 Pedro Alves <palves@redhat.com>
15321
15322 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
15323 not -1.
15324
15325 2020-01-10 Pedro Alves <palves@redhat.com>
15326
15327 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
15328 ptid to get_last_target_status.
15329 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
15330 ptid to get_last_target_status.
15331 * infcmd.c (continue_command): Don't pass a target_waitstatus to
15332 get_last_target_status.
15333 (info_program_command): Don't pass a target_waitstatus to
15334 get_last_target_status.
15335 * infrun.c (init_wait_for_inferior): Use
15336 nullify_last_target_wait_ptid.
15337 (get_last_target_status): Handle nullptr arguments.
15338 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
15339 (print_stop_event): Don't pass a ptid to get_last_target_status.
15340 (normal_stop): Don't pass a ptid to get_last_target_status.
15341 * infrun.h (get_last_target_status, set_last_target_status): Move
15342 comments here and update.
15343 (nullify_last_target_wait_ptid): Declare.
15344 * linux-fork.c (fork_load_infrun_state): Remove local extern
15345 declaration of nullify_last_target_wait_ptid.
15346 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
15347 to get_last_target_status.
15348
15349 2020-01-10 Pedro Alves <palves@redhat.com>
15350
15351 * gdbthread.h (scoped_restore_current_thread)
15352 <dont_restore, restore, m_dont_restore>: Declare.
15353 * thread.c (thread_alive): Add assertion. Return bool.
15354 (switch_to_thread_if_alive): New.
15355 (prune_threads): Switch inferior/thread.
15356 (print_thread_info_1): Switch thread before calling target methods.
15357 (scoped_restore_current_thread::restore): New, factored out from
15358 ...
15359 (scoped_restore_current_thread::~scoped_restore_current_thread):
15360 ... this.
15361 (scoped_restore_current_thread::scoped_restore_current_thread):
15362 Add assertion.
15363 (thread_apply_all_command, thread_select): Use
15364 switch_to_thread_if_alive.
15365 * infrun.c (proceed, restart_threads, handle_signal_stop)
15366 (switch_back_to_stepped_thread): Switch current thread before
15367 calling target methods.
15368
15369 2020-01-10 Pedro Alves <palves@redhat.com>
15370
15371 * inferior.c (switch_to_inferior_no_thread): New function,
15372 factored out from ...
15373 (inferior_command): ... here.
15374 * inferior.h (switch_to_inferior_no_thread): Declare.
15375 * mi/mi-main.c (run_one_inferior): Use
15376 switch_to_inferior_no_thread.
15377
15378 2020-01-10 Pedro Alves <palves@redhat.com>
15379
15380 * infcmd.c (kill_command): Remove dead code.
15381
15382 2020-01-10 Pedro Alves <palves@redhat.com>
15383
15384 * remote.c (remote_target::mourn_inferior): No longer check
15385 whether the target is running.
15386
15387 2020-01-10 Pedro Alves <palves@redhat.com>
15388
15389 * corelow.c (core_target::has_execution): Change parameter type to
15390 inferior pointer.
15391 * inferior.c (number_of_live_inferiors): Use
15392 inferior::has_execution instead of target_has_execution_1.
15393 * inferior.h (inferior::has_execution): New.
15394 * linux-thread-db.c (thread_db_target::update_thread_list): Use
15395 inferior::has_execution instead of target_has_execution_1.
15396 * process-stratum-target.c
15397 (process_stratum_target::has_execution): Change parameter type to
15398 inferior pointer. Check the inferior's PID instead of
15399 inferior_ptid.
15400 * process-stratum-target.h
15401 (process_stratum_target::has_execution): Change parameter type to
15402 inferior pointer.
15403 * record-full.c (record_full_core_target::has_execution): Change
15404 parameter type to inferior pointer.
15405 * target.c (target_has_execution_1): Change parameter type to
15406 inferior pointer.
15407 (target_has_execution_current): Adjust.
15408 * target.h (target_ops::has_execution): Change parameter type to
15409 inferior pointer.
15410 (target_has_execution_1): Change parameter type to inferior
15411 pointer. Change return type to bool.
15412 * tracefile.h (tracefile_target::has_execution): Change parameter
15413 type to inferior pointer.
15414
15415 2020-01-10 Pedro Alves <palves@redhat.com>
15416
15417 * exceptions.c (print_flush): Remove current_top_target() check.
15418
15419 2020-01-10 Pedro Alves <palves@redhat.com>
15420
15421 * remote.c (show_remote_exec_file): Show the current inferior's
15422 exec-file instead of the command variable's value.
15423
15424 2020-01-10 Pedro Alves <palves@redhat.com>
15425
15426 * record-full.c (record_full_resume_ptid): New global.
15427 (record_full_target::resume): Set it.
15428 (record_full_wait_1): Use record_full_resume_ptid instead of
15429 inferior_ptid.
15430
15431 2020-01-10 Pedro Alves <palves@redhat.com>
15432
15433 * gdbthread.h (scoped_restore_current_thread)
15434 <dont_restore, restore, m_dont_restore>: Declare.
15435 * thread.c (thread_alive): Add assertion. Return bool.
15436 (switch_to_thread_if_alive): New.
15437 (prune_threads): Switch inferior/thread.
15438 (print_thread_info_1): Switch thread before calling target methods.
15439 (scoped_restore_current_thread::restore): New, factored out from
15440 ...
15441 (scoped_restore_current_thread::~scoped_restore_current_thread):
15442 ... this.
15443 (scoped_restore_current_thread::scoped_restore_current_thread):
15444 Add assertion.
15445 (thread_apply_all_command, thread_select): Use
15446 switch_to_thread_if_alive.
15447
15448 2020-01-10 George Barrett <bob@bob131.so>
15449
15450 * stap-probe.c (stap_modify_semaphore): Don't check for null
15451 semaphores.
15452 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
15453 for null semaphores.
15454
15455 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15456
15457 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
15458 all source windows, and maintain horizontal scroll status while
15459 doing so.
15460
15461 2020-01-09 Tom Tromey <tom@tromey.com>
15462
15463 PR tui/18932:
15464 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
15465 update_source_window, not print_source_lines.
15466
15467 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15468
15469 * tui/tui.c (tui_enable): Register tui hooks after calling
15470 tui_display_main.
15471
15472 2020-01-09 Christian Biesinger <cbiesinger@google.com>
15473
15474 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15475
15476 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
15477
15478 * thread.c (print_thread_info_1): Fix indentation.
15479
15480 2020-01-09 Christian Biesinger <cbiesinger@google.com>
15481
15482 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15483 unique_xmalloc_ptr outside the if to always free the demangled name.
15484
15485 2020-01-08 Tom Tromey <tromey@adacore.com>
15486
15487 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15488 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15489 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15490 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15491 Remove.
15492 (section_offsets): New typedef.
15493 * symtab.c (fixup_section, get_msymbol_address): Update.
15494 * symmisc.c (dump_msymbols): Update.
15495 * symfile.h (relative_addr_info_to_section_offsets)
15496 (symfile_map_offsets_to_segments): Update.
15497 * symfile.c (build_section_addr_info_from_objfile)
15498 (init_objfile_sect_indices): Update.
15499 (struct place_section_arg): Change type of "offsets".
15500 (place_section): Update.
15501 (relative_addr_info_to_section_offsets): Change type of
15502 "section_offsets". Remove "num_sections" parameter.
15503 (default_symfile_offsets, syms_from_objfile_1)
15504 (set_objfile_default_section_offset): Update.
15505 (reread_symbols): No need to preserve section offsets by hand.
15506 (symfile_map_offsets_to_segments): Change type of "offsets".
15507 * stap-probe.c (relocate_address): Update.
15508 * stabsread.h (process_one_symbol): Update.
15509 * solib-target.c (struct lm_info_target) <offsets>: Change type.
15510 (solib_target_relocate_section_addresses): Update.
15511 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
15512 Update.
15513 * solib-frv.c (frv_relocate_main_executable): Update.
15514 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
15515 * solib-aix.c (solib_aix_get_section_offsets): Change return
15516 type.
15517 (solib_aix_solib_create_inferior_hook): Update.
15518 * remote.c (remote_target::get_offsets): Update.
15519 * psymtab.c (find_pc_sect_psymtab): Update.
15520 * psympriv.h (struct partial_symbol) <address, text_low,
15521 text_high>: Update.
15522 * objfiles.h (obj_section_offset): Update.
15523 (struct objfile) <section_offsets>: Change type.
15524 <num_sections>: Remove.
15525 (objfile_relocate): Update.
15526 * objfiles.c (entry_point_address_query): Update
15527 (relocate_one_symbol): Change type of "section_offsets".
15528 (objfile_relocate1, objfile_relocate1): Change type of
15529 "new_offsets".
15530 (objfile_rebase1): Update.
15531 * mipsread.c (mipscoff_symfile_read): Update.
15532 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
15533 parameter.
15534 * mdebugread.c (parse_symbol): Change type of "section_offsets".
15535 (parse_external, psymtab_to_symtab_1): Update.
15536 * machoread.c (macho_symfile_offsets): Update.
15537 * ia64-tdep.c (ia64_find_unwind_table): Update.
15538 * hppa-tdep.c (read_unwind_info): Update.
15539 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
15540 * dwarf2read.c (create_addrmap_from_index)
15541 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15542 (process_psymtab_comp_unit_reader, add_partial_symbol)
15543 (add_partial_subprogram, process_full_comp_unit)
15544 (read_file_scope, read_func_scope, read_lexical_block_scope)
15545 (read_call_site_scope, dwarf2_rnglists_process)
15546 (dwarf2_ranges_process, dwarf2_ranges_read)
15547 (dwarf_decode_lines_1, var_decode_location, new_symbol)
15548 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
15549 Update.
15550 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
15551 Update.
15552 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
15553 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
15554 (process_one_symbol): Change type of "section_offsets".
15555 * ctfread.c (get_objfile_text_range): Update.
15556 * coffread.c (coff_symtab_read, enter_linenos)
15557 (process_coff_symbol): Update.
15558 * coff-pe-read.c (add_pe_forwarded_sym): Update.
15559 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
15560
15561 2020-01-08 Tom Tromey <tromey@adacore.com>
15562
15563 * dwarf2read.c (parse_macro_definition): Use std::string.
15564 (parse_macro_definition): Likewise.
15565
15566 2020-01-08 Tom Tromey <tromey@adacore.com>
15567
15568 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
15569 (ATTR_ALLOC_CHUNK): Remove.
15570
15571 2020-01-08 Tom Tromey <tromey@adacore.com>
15572
15573 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
15574
15575 2020-01-08 Tom Tromey <tromey@adacore.com>
15576
15577 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
15578 (dwarf2_compute_name, open_dwo_file): Likewise.
15579 (process_enumeration_scope): Use std::vector.
15580 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
15581 (partial_die_info::fixup, dwarf2_start_subfile)
15582 (guess_full_die_structure_name, dwarf2_name): Likewise.
15583 (determine_prefix): Update.
15584 (guess_full_die_structure_name): Make return type const.
15585 (partial_die_full_name): Return unique_xmalloc_ptr.
15586 (DW_FIELD_ALLOC_CHUNK): Remove.
15587
15588 2020-01-07 Tom Tromey <tromey@adacore.com>
15589
15590 PR build/24937:
15591 * stap-probe.c (class stap_static_probe_ops): Add constructor.
15592
15593 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15594
15595 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
15596
15597 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
15598
15599 * stack.c (print_frame_info): Move disassemble_next_line code
15600 inside source_print block.
15601
15602 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15603
15604 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
15605 gdb/signals.h, as we are now using native signal symbols.
15606
15607 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
15608
15609 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
15610 overflow by an early check of content vs threshold.
15611 * tui/tui-source.c (tui_source_window::line_is_displayed):
15612 Likewise.
15613
15614 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15615
15616 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
15617
15618 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15619
15620 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
15621 export table if no section contains it's RVA.
15622
15623 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15624
15625 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
15626
15627 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
15628
15629 * source.c (print_source_lines_base): Set last_line_listed.
15630
15631 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
15632
15633 * tui/tui-disasm.c: Remove trailing spaces.
15634
15635 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15636 Pedro Alves <palves@redhat.com>
15637
15638 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
15639 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
15640 (windows_gdb_signal_to_target): New function, uses the above
15641 enumeration to convert GDB internal signal codes to equivalent
15642 Windows codes.
15643 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
15644 * windows-nat.c: Include "gdb_wait.h".
15645 (get_windows_debug_event): Extract the fatal exception from the
15646 exit status and convert to the equivalent Posix signal number.
15647 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
15648 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
15649 * gdbsupport/gdb_wait.c: New file, implements
15650 windows_status_to_termsig.
15651 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
15652 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
15653
15654 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
15655
15656 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
15657 show_layout.
15658
15659 2020-01-05 Luis Machado <luis.machado@linaro.org>
15660
15661 * aarch64-linux-nat.c
15662 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
15663 and bfd_mach_aarch64.
15664
15665 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15666
15667 * ui-file.c (stdio_file::can_emit_style_escape)
15668 (tee_file::can_emit_style_escape): Ensure style is used also on
15669 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
15670 to gdb_stdout.
15671 * main.c (set_gdb_data_directory): Use file style to output the
15672 warning that the given pathname is not a directory.
15673 * top.c (show_history_filename, gdb_safe_append_history)
15674 (show_gdb_datadir): Use file style.
15675
15676 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
15677
15678 * solib-target.c (struct lm_info_target):
15679 Change offsets to be a unique_xmalloc_ptr.
15680 (solib_target_relocate_section_addresses): Update.
15681
15682 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
15683
15684 * windows-nat.c (windows_clear_solib): Free so_list linked list.
15685
15686 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
15687
15688 * MAINTAINERS (Write After Approval): Add myself.
15689
15690 2020-01-02 Luis Machado <luis.machado@linaro.org>
15691
15692 * proc-service.c (get_ps_regcache): Remove reference to obsolete
15693 Cell BE architecture.
15694 * target.h (struct target_ops) <thread_architecture>: Likewise.
15695
15696 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
15697
15698 * Makefile.in: Use INSTALL_PROGRAM_ENV.
15699
15700 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
15701
15702 * MAINTAINERS (Write After Approval): Add myself.
15703
15704 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15705
15706 * gdbarch.sh: Update copyright year range of generated files.
15707
15708 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15709
15710 Update copyright year range in all GDB files.
15711
15712 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15713
15714 * copyright.py: Convert to Python 3.
15715
15716 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15717
15718 * copyright.py: Adapt after move of gnulib directory from gdb
15719 directory to toplevel directory.
15720
15721 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15722
15723 * copyright.py (main): Exit if run from the wrong directory.
15724
15725 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15726
15727 * top.c (print_gdb_version): Change copyright year to 2020.
15728
15729 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15730
15731 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
15732
15733 For older changes see ChangeLog-2019.
15734 \f
15735 Local Variables:
15736 mode: change-log
15737 left-margin: 8
15738 fill-column: 74
15739 version-control: never
15740 coding: utf-8
15741 End:
This page took 0.328967 seconds and 5 git commands to generate.