Remove a call to show_source_line from TUI
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-09-27 Tom Tromey <tom@tromey.com>
2
3 * tui/tui-winsource.c
4 (tui_source_window_base::set_is_exec_point_at): Don't call
5 show_source_line.
6
7 2020-09-27 Tom Tromey <tom@tromey.com>
8
9 * python/py-tui.c (class tui_py_window) <refresh_window>: New
10 method.
11 <erase>: Update.
12 <cursor_x, cursor_y>: Remove.
13 <m_inner_window>: New member.
14 (tui_py_window::rerender): Create inner window.
15 (tui_py_window::output): Write to inner window.
16
17 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
18
19 PR python/26586
20 * cli/cli-script.c (execute_control_commands): don't set
21 instream to nullptr here as this breaks the from_tty argument
22 to gdb.execute in Python.
23 (execute_user_command): set instream to nullptr here instead.
24
25 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
26
27 * infrun.h (infrun_debug_printf): Fix formatting.
28 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
29
30 2020-09-25 Saagar Jha <saagar@saagarjha.com>
31
32 * compile/compile-object-load.h (struct munmap_list): Add
33 explicitly-defined move constructor.
34
35 2020-09-24 Tom Tromey <tromey@adacore.com>
36
37 PR tui/26638:
38 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
39 method.
40 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
41 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
42 (tui_prev_win): Rewrite.
43
44 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
45
46 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
47 in WOW64 processes as SIGINT.
48 * nat/windows-nat.h: Make wow64_process a shared variable.
49 * windows-nat.c: Remove static wow64_process variable.
50
51 2020-09-23 Tom Tromey <tom@tromey.com>
52
53 PR symtab/25470:
54 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
55 offset and bit size.
56 * printcmd.c (print_scalar_formatted): Handle zero-length
57 integer.
58 (print_scalar_formatted): Use bit_size_differs_p.
59 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
60 constant.
61 (union type_specific): <int_stuff>: New member.
62 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
63 methods.
64 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
65 TYPE_SPECIFIC_FIELD.
66 (recursive_dump_type, copy_type_recursive): Update.
67 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
68 DW_AT_data_bit_offset.
69
70 2020-09-23 Tom Tromey <tom@tromey.com>
71
72 * utils.h (class gdb_argv): Add move operators.
73 <append>: New methods.
74 * compile/compile.c (build_argc_argv): Remove.
75 (compile_args_argc): Remove.
76 (compile_args_argv): Change type.
77 (set_compile_args): Simplify.
78 (append_args): Remove.
79 (filter_args): Remove argcp parameter.
80 (get_args): Return gdb_argv. Simplify.
81 (compile_to_object): Update.
82
83 2020-09-23 Tom Tromey <tom@tromey.com>
84
85 * compile/compile-object-run.c (do_module_cleanup)
86 <~do_module_cleanup> :Remove.
87 (do_module_cleanup): Update.
88 * compile/compile-object-load.h (struct munmap_list): Add move
89 assignment operator.
90 <source_file>: Now a std::string.
91 <munmap_list>: Rename. No longer a pointer.
92 * compile/compile-object-load.c (struct setup_sections_data): Add
93 constructor.
94 <setup_one_section>: Declare.
95 <munmap_list>: Move earlier.
96 <m_bfd>: New member.
97 <m_last_size, m_last_section_first, m_last_prot,
98 m_last_max_alignment>: Rename, add initializers where needed.
99 (setup_sections_data::setup_one_section): Rename from
100 setup_sections. Update.
101 (compile_object_load): Update. Don't use bfd_map_over_sections.
102
103 2020-09-23 Tom Tromey <tom@tromey.com>
104
105 * compile/compile-object-run.c (struct do_module_cleanup): Add
106 parameters to constructor. Update destructor.
107 <source_file, scope, scope_data, out_value_type, out_value_addr,
108 munmap_list_head, objfile_name_string>: Remove.
109 <module>: New member.
110 (do_module_cleanup): Update.
111 (compile_object_run): Update.
112
113 2020-09-23 Tom Tromey <tom@tromey.com>
114
115 * compile/compile.c (eval_compile_command): Update.
116 * compile/compile-object-run.h (compile_object_run): Take a
117 compile_module_up.
118 * compile/compile-object-run.c (compile_object_run): Take a
119 compile_module_up.
120 * compile/compile-object-load.h (struct compile_module): Add
121 constructor, destructor.
122 (compile_module_up): New typedef.
123 (compile_object_load): Return compile_object_up.
124 * compile/compile-object-load.c (compile_object_load): Return
125 compile_module_up.
126
127 2020-09-23 Tom Tromey <tom@tromey.com>
128
129 * compile/compile-object-run.c (struct do_module_cleanup): Add
130 constructor, destructor.
131 <objfile_name_string>: Don't use struct hack.
132 (do_module_cleanup): Use delete.
133 (compile_object_run): Use new.
134
135 2020-09-23 Tom Tromey <tom@tromey.com>
136
137 * compile/compile-cplus-types.c
138 (compile_cplus_convert_struct_or_union): Use std::vector.
139 (compile_cplus_convert_func): Likewise.
140 * compile/compile-c-types.c (convert_func): Use std::vector.
141
142 2020-09-21 Tom Tromey <tromey@adacore.com>
143
144 * sparc-tdep.c (sparc32_skip_prologue): Use
145 skip_prologue_using_sal.
146
147 2020-09-19 Tom Tromey <tom@tromey.com>
148
149 * symfile.c (add_section_size_callback): Remove.
150 (load_one_section): Rename from load_section_callback. Change
151 parameters.
152 (generic_load): Use foreach.
153
154 2020-09-19 Tom Tromey <tom@tromey.com>
155
156 * exec.c (add_to_section_table): Remove.
157 (build_section_table): Use foreach.
158
159 2020-09-19 Tom Tromey <tom@tromey.com>
160
161 * elfread.c (elf_locate_sections): Change parameters.
162 (elf_symfile_read): Use foreach.
163
164 2020-09-19 Tom Tromey <tom@tromey.com>
165
166 * cli/cli-dump.c (struct callback_data): Remove.
167 (restore_one_section): Rename from restore_section_callback.
168 Change parameters.
169 (restore_binary_file): Change parameters.
170 (restore_command): Use foreach.
171
172 2020-09-19 Tom Tromey <tom@tromey.com>
173
174 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
175 (gcore_copy_callback): Likewise.
176 (gcore_memory_sections): Use foreach.
177
178 2020-09-19 Tom Tromey <tom@tromey.com>
179
180 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
181 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
182 parameters.
183 (generic_elf_osabi_sniffer): Use foreach.
184 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
185 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
186
187 2020-09-19 Tom Tromey <tom@tromey.com>
188
189 * dwarf2/read.c (locate_dwz_sections): Change parameters.
190 (dwarf2_get_dwz_file): Use foreach.
191 (dwarf2_locate_dwo_sections): Change parameters.
192 (open_and_init_dwo_file): Use foreach.
193 (dwarf2_locate_common_dwp_sections): Change parameters.
194 (open_and_init_dwp_file): Use foreach.
195
196 2020-09-19 Tom Tromey <tom@tromey.com>
197
198 * symfile.h: (find_lowest_section): Don't declare.
199 * symfile.c (find_lowest_section): Now static. Change
200 parameters.
201 (struct place_section_arg): Remove.
202 (place_section): Change parameters.
203 (addr_info_make_relative): Use foreach.
204 (symfile_dummy_outputs): Remove.
205 (default_symfile_relocate): Use foreach.
206
207 2020-09-19 Tom Tromey <tom@tromey.com>
208
209 * objfiles.c (add_to_objfile_sections): Rename from
210 add_to_objfile_sections_full.
211 (add_to_objfile_sections): Remove.
212 (build_objfile_section_table): Use foreach.
213
214 2020-09-19 Tom Tromey <tom@tromey.com>
215
216 * stap-probe.c (get_stap_base_address_1): Remove.
217 (get_stap_base_address): Use foreach.
218
219 2020-09-19 Tom Tromey <tom@tromey.com>
220
221 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
222 parameters.
223 (gdb_bfd_close_or_warn): Use foreach.
224
225 2020-09-19 Tom Tromey <tom@tromey.com>
226
227 * corelow.c (add_to_thread_list): Change parameters.
228 (core_target_open): Use foreach.
229
230 2020-09-19 Tom Tromey <tom@tromey.com>
231
232 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
233 existing function.
234
235 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
236
237 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
238 for arrays.
239
240 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
241
242 * eval.c: Remove 'f-lang.h' include.
243 (value_f90_subarray): Moved to f-lang.c.
244 (eval_call): Renamed to...
245 (evaluate_subexp_do_call): ...this, is no longer static, header
246 comment moved into header file.
247 (evaluate_funcall): Update call to eval_call.
248 (skip_undetermined_arglist): Moved to f-lang.c.
249 (fortran_value_subarray): Likewise.
250 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
251 moved to evaluate_subexp_f.
252 (calc_f77_array_dims): Moved to f-lang.c
253 * expprint.c (print_subexp_funcall): New function.
254 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
255 moved to print_subexp_f, OP_FUNCALL uses new function.
256 (dump_subexp_body_funcall): New function.
257 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
258 moved to dump_subexp_f, OP_FUNCALL uses new function.
259 * expression.h (evaluate_subexp_do_call): Declare.
260 * f-lang.c (value_f90_subarray): Moved from eval.c.
261 (skip_undetermined_arglist): Likewise.
262 (calc_f77_array_dims): Likewise.
263 (fortran_value_subarray): Likewise.
264 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
265 (operator_length_f): Likewise.
266 (print_subexp_f): Likewise.
267 (dump_subexp_body_f): Likewise.
268 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
269 declaration of this operation to here.
270 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
271 support moved to operator_length_f.
272 * parser-defs.h (dump_subexp_body_funcall): Declare.
273 (print_subexp_funcall): Declare.
274 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
275 fortran-operator.def.
276
277 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
278
279 * eval.c (fortran_value_subarray): New function, content is taken
280 from...
281 (evaluate_subexp_standard): ...here, in two places. Now arrays
282 and strings both call the new function.
283 (calc_f77_array_dims): Add header comment, handle strings.
284
285 2020-09-18 Victor Collod <vcollod@nvidia.com>
286
287 PR gdb/26635
288 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
289 (i386_analyze_prologue): Call i386_skip_endbr.
290
291 2020-09-18 Tom Tromey <tromey@adacore.com>
292
293 * windows-nat.c (struct windows_nat_target) <wait>: Update.
294 (windows_nat_target::wait): Update.
295 * target/wait.h (enum target_wait_flag): New. Use
296 DEF_ENUM_FLAGS_TYPE.
297 * target/target.h (target_wait): Change type of options.
298 * target.h (target_options_to_string, default_target_wait):
299 Update.
300 (struct target_ops) <wait>: Change type of options.
301 * target.c (target_wait, default_target_wait, do_option): Change
302 type of "options".
303 (target_options_to_string): Likewise.
304 * target-delegates.c: Rebuild.
305 * target-debug.h (target_debug_print_target_wait_flags): Rename
306 from target_debug_print_options.
307 * sol-thread.c (class sol_thread_target) <wait>: Update.
308 (sol_thread_target::wait): Update.
309 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
310 (rs6000_nat_target::wait): Update.
311 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
312 Update.
313 (remote_target::wait_ns, remote_target::wait_as): Change type of
314 "options".
315 (remote_target::wait): Update.
316 * remote-sim.c (struct gdbsim_target) <wait>: Update.
317 (gdbsim_target::wait): Update.
318 * record-full.c (class record_full_base_target) <wait>: Update.
319 (record_full_wait_1): Change type of "options".
320 (record_full_base_target::wait): Update.
321 * record-btrace.c (class record_btrace_target) <wait>: Update.
322 (record_btrace_target::wait): Update.
323 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
324 Update.
325 (ravenscar_thread_target::wait): Update.
326 * procfs.c (class procfs_target) <wait>: Update.
327 (procfs_target::wait): Update.
328 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
329 * obsd-nat.c (obsd_nat_target::wait): Update.
330 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
331 (nto_procfs_target::wait): Update.
332 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
333 * nbsd-nat.c (nbsd_wait): Change type of "options".
334 (nbsd_nat_target::wait): Update.
335 * linux-thread-db.c (class thread_db_target) <wait>: Update.
336 (thread_db_target::wait): Update.
337 * linux-nat.h (class linux_nat_target) <wait>: Update.
338 * linux-nat.c (linux_nat_target::wait): Update.
339 (linux_nat_wait_1): Update.
340 * infrun.c (do_target_wait_1, do_target_wait): Change type of
341 "options".
342 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
343 * inf-ptrace.c (inf_ptrace_target::wait): Update.
344 * go32-nat.c (struct go32_nat_target) <wait>: Update.
345 (go32_nat_target::wait): Update.
346 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
347 * gnu-nat.c (gnu_nat_target::wait): Update.
348 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
349 * fbsd-nat.c (fbsd_nat_target::wait): Update.
350 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
351 * darwin-nat.c (darwin_nat_target::wait): Update.
352 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
353 (bsd_uthread_target::wait): Update.
354 * aix-thread.c (class aix_thread_target) <wait>: Update.
355 (aix_thread_target::wait): Update.
356
357 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
358
359 * compile/compile-object-run.c (create_copied_type_recursive): New
360 function.
361 (compile_object_run): Use new function.
362
363 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
364
365 * NEWS: Mention x86_64 Cygwin core file support.
366
367 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
368
369 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
370 (core_process_module_section): Handle NOTE_INFO_MODULE64.
371
372 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
373
374 * windows-tdep.h: Add prototypes.
375 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
376 (i386_windows_core_pid_to_str): Move and rename ...
377 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
378 (windows_core_pid_to_str): ... and here.
379 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
380
381 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
382 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
383 (amd64_windows_init_abi_common): ... and register.
384
385 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
386
387 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
388 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
389
390 2020-09-18 Pedro Alves <pedro@palves.net>
391
392 PR gdb/26631
393 * thread.c (thread_find_command): Switch inferior before calling
394 target methods.
395
396 2020-09-17 Tom Tromey <tromey@adacore.com>
397
398 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
399 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
400 (tdesc_arch_data_up): New typedef.
401 (tdesc_use_registers, tdesc_data_alloc): Update.
402 (tdesc_data_cleanup): Don't declare.
403 * target-descriptions.c (tdesc_data_alloc): Return a
404 tdesc_arch_data_up.
405 (tdesc_arch_data_deleter::operator()): Rename from
406 tdesc_data_cleanup. Change argument type.
407 (tdesc_use_registers): Change early_data to an rvalue reference.
408 (tdesc_use_registers): Don't use delete.
409 * sparc-tdep.c (sparc32_gdbarch_init): Update.
410 * s390-tdep.c (s390_gdbarch_init): Update.
411 * rx-tdep.c (rx_gdbarch_init): Update.
412 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
413 * riscv-tdep.c (riscv_gdbarch_init): Update.
414 * or1k-tdep.c (or1k_gdbarch_init): Update.
415 * nios2-tdep.c (nios2_gdbarch_init): Update.
416 * nds32-tdep.c (nds32_gdbarch_init): Update.
417 * mips-tdep.c (mips_gdbarch_init): Update.
418 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
419 * m68k-tdep.c (m68k_gdbarch_init): Update.
420 * i386-tdep.c (i386_gdbarch_init): Update.
421 * arm-tdep.c (arm_gdbarch_init): Update.
422 * arc-tdep.c (arc_tdesc_init): Update.
423 (arc_gdbarch_init): Update.
424 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
425
426 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
427
428 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
429 for WOW64 processes.
430
431 2020-09-17 Tom Tromey <tom@tromey.com>
432
433 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
434
435 2020-09-17 Tom Tromey <tom@tromey.com>
436
437 * value.c (preserve_values): Update.
438 * python/py-type.c (save_objfile_types): Update.
439 * guile/scm-type.c (save_objfile_types): Update.
440 * gdbtypes.h (create_copied_types_hash): Return htab_up.
441 * gdbtypes.c (create_copied_types_hash): Return htab_up.
442 * compile/compile-object-run.c (compile_object_run): Update.
443
444 2020-09-17 Tom Tromey <tom@tromey.com>
445
446 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
447 Remove.
448 <m_table>: Now htab_up.
449 * typeprint.c (typedef_hash_table::recursively_update)
450 (typedef_hash_table::add_template_parameters)
451 (typedef_hash_table::typedef_hash_table): Update.
452 (typedef_hash_table::~typedef_hash_table): Remove.
453 (typedef_hash_table::typedef_hash_table)
454 (typedef_hash_table::find_global_typedef)
455 (typedef_hash_table::find_typedef): Update.
456
457 2020-09-17 Tom Tromey <tom@tromey.com>
458
459 * target-descriptions.c (tdesc_use_registers): Use htab_up.
460
461 2020-09-17 Tom Tromey <tom@tromey.com>
462
463 * linespec.c (class decode_compound_collector)
464 <~decode_compound_collector>: Remove.
465 <m_unique_syms>: Now htab_up.
466 (decode_compound_collector::operator ()): Update.
467 (class symtab_collector) <~symtab_collector>: Remove.
468 <m_symtab_table>: Now htab_up.
469 (symtab_collector::operator ()): Update.
470
471 2020-09-17 Tom Tromey <tom@tromey.com>
472
473 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
474 (filename_seen_cache::clear): Update.
475 (~filename_seen_cache): Remove.
476 (filename_seen_cache::seen): Update.
477 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
478 htab_up.
479 <~filename_seen_cache>: Remove.
480 <traverse>: Update.
481
482 2020-09-17 Tom Tromey <tom@tromey.com>
483
484 * completer.c (completion_tracker::discard_completions)
485 (completion_tracker::~completion_tracker)
486 (completion_tracker::maybe_add_completion)
487 (completion_tracker::remove_completion)
488 (completion_tracker::recompute_lowest_common_denominator)
489 (completion_tracker::build_completion_result): Update.
490 * completer.h (class completion_tracker) <have_completions>:
491 Update.
492 <m_entries_hash>: Now htab_up.
493
494 2020-09-17 Tom Tromey <tom@tromey.com>
495
496 * breakpoint.c (ambiguous_names_p): Use htab_up.
497
498 2020-09-17 Tom Tromey <tom@tromey.com>
499
500 * auto-load.c (struct auto_load_pspace_info)
501 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
502 <loaded_script_files, loaded_script_texts>: Change type to
503 htab_up.
504 (~auto_load_pspace_info) Remove.
505 (init_loaded_scripts_info, maybe_add_script_file)
506 (maybe_add_script_text, auto_load_info_scripts): Update.
507
508 2020-09-17 Tom Tromey <tromey@adacore.com>
509
510 * c-exp.y (name_obstack): Now static.
511
512 2020-09-17 Chungyi Chi <demonic@csie.io>
513
514 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
515
516 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
517
518 * breakpoint.h (init_catchpoint): Change int parameter to bool.
519 (add_solib_catchpoint): Likewise.
520 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
521 to bool.
522 (add_solib_catchpoint): Change int parameter/variable to bool.
523 (catch_load_or_unload): Likewise.
524 (init_catchpoint): Likewise.
525 (create_fork_vfork_event_catchpoint): Likewise.
526 (catch_fork_command_1): Likewise.
527 (catch_exec_command_1): Likewise.
528
529 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
530
531 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
532 Change instance_flags to m_instance_flags.
533
534 2020-09-16 Tom Tromey <tromey@adacore.com>
535
536 PR gdb/26598:
537 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
538
539 2020-09-16 John Baldwin <jhb@FreeBSD.org>
540
541 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
542 PL_FLAG_EXEC.
543 (fbsd_nat_target::insert_exec_catchpoint)
544 (fbsd_nat_target::remove_exec_catchpoint): Always define.
545 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
546 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
547
548 2020-09-16 John Baldwin <jhb@FreeBSD.org>
549
550 * configure.ac: Remove check for kinfo_getvmmap().
551 * configure, config.in: Regenerate.
552 * fbsd-nat.c (fbsd_read_mapping): Remove
553 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
554 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
555 kinfo_get_vmmap() are always present.
556
557 2020-09-16 John Baldwin <jhb@FreeBSD.org>
558
559 * fbsd-nat.c: Always include support for
560 TARGET_OBJECT_SIGNAL_INFO.
561
562 2020-09-16 John Baldwin <jhb@FreeBSD.org>
563
564 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
565 sysctl and remove procfs fallback.
566
567 2020-09-16 John Baldwin <jhb@FreeBSD.org>
568
569 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
570 * fbsd-nat.h: Likewise.
571
572 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
573
574 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
575 argument.
576
577 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
578
579 * ada-lang.c (ada_language_data): Delete.
580 (ada_language): Remove references to ada_language_data.
581 * c-lang.c (c_language_data): Delete.
582 (c_language): Remove references to c_language_data.
583 (cplus_language_data): Delete.
584 (cplus_language): Remove references to cplus_language_data.
585 (asm_language_data): Delete.
586 (asm_language): Remove references to asm_language_data.
587 (minimal_language_data): Delete.
588 (minimal_language): Remove references to minimal_language_data.
589 * d-lang.c (d_language_data): Delete.
590 (d_language): Remove references to d_language_data.
591 * f-lang.c (f_language_data): Delete.
592 (f_language): Remove references to f_language_data.
593 * go-lang.c (go_language_data): Delete.
594 (go_language): Remove references to go_language_data.
595 * language.c (unknown_language_data): Delete.
596 (unknown_language): Remove references to unknown_language_data.
597 (auto_language_data): Delete.
598 (auto_language): Remove references to auto_language_data.
599 * language.h (language_data): Delete struct.
600 (language_defn): No longer inherit from language_data.
601 * m2-lang.c (m2_language_data): Delete.
602 (m2_language): Remove references to m2_language_data.
603 * objc-lang.c (objc_language_data): Delete.
604 (objc_language): Remove references to objc_language_data.
605 * opencl-lang.c (opencl_language_data): Delete.
606 (opencl_language): Remove references to opencl_language_data.
607 * p-lang.c (pascal_language_data): Delete.
608 (pascal_language): Remove references to pascal_language_data.
609 * rust-lang.c (rust_language_data): Delete.
610 (rust_language): Remove references to rust_language_data.
611
612 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
613
614 * ada-lang.c (ada_language_data): Remove la_op_print_tab
615 initializer.
616 (ada_language::opcode_print_table): New member function.
617 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
618 (c_language::opcode_print_table): New member function.
619 (cplus_language_data): Remove la_op_print_tab initializer.
620 (cplus_language::opcode_print_table): New member function.
621 (asm_language_data): Remove la_op_print_tab initializer.
622 (asm_language::opcode_print_table): New member function.
623 (minimal_language_data): Remove la_op_print_tab initializer.
624 (minimal_language::opcode_print_table): New member function.
625 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
626 (d_language::opcode_print_table): New member function.
627 * expprint.c (print_subexp_standard): Update call to
628 opcode_print_table.
629 (op_string): Likewise.
630 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
631 (f_language::opcode_print_table): New member function.
632 * go-lang.c (go_language_data): Remove la_op_print_tab
633 initializer.
634 (go_language::opcode_print_table): New member function.
635 * language.c (unknown_language_data): Remove la_op_print_tab
636 initializer.
637 (unknown_language::opcode_print_table): New member function.
638 (auto_language_data): Remove la_op_print_tab initializer.
639 (auto_language::opcode_print_table): New member function.
640 * language.h (language_data): Remove la_op_print_tab field.
641 (language_defn::opcode_print_table): Declare new member function.
642 * m2-lang.c (m2_language_data): Remove la_op_print_tab
643 initializer.
644 (m2_language::opcode_print_table): New member function.
645 * objc-lang.c (objc_language_data): Remove la_op_print_tab
646 initializer.
647 (objc_language::opcode_print_table): New member function.
648 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
649 initializer.
650 (opencl_language::opcode_print_table): New member function.
651 * p-lang.c (pascal_language_data): Remove la_op_print_tab
652 initializer.
653 (pascal_language::opcode_print_table): New member function.
654 * rust-lang.c (rust_language_data): Remove la_op_print_tab
655 initializer.
656 (rust_language::opcode_print_table): New member function.
657
658 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
659
660 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
661 (ada_language::expression_ops): New member function.
662 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
663 (c_language::expression_ops): New member function.
664 (cplus_language_data): Remove la_exp_desc initializer.
665 (cplus_language::expression_ops): New member function.
666 (asm_language_data): Remove la_exp_desc initializer.
667 (asm_language::expression_ops): New member function.
668 (minimal_language_data): Remove la_exp_desc initializer.
669 (minimal_language::expression_ops): New member function.
670 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
671 (d_language::expression_ops): New member function.
672 * eval.c (evaluate_subexp): Update call to expression_ops.
673 * expprint.c (print_subexp): Likewise.
674 (op_name): Likewise.
675 (dump_subexp_body): Likewise.
676 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
677 (f_language::expression_ops): New member function.
678 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
679 (go_language::expression_ops): New member function.
680 * language.c (language_defn::expression_ops): New function.
681 (unknown_language_data): Remove la_exp_desc initializer.
682 (auto_language_data): Likewise.
683 * language.h (language_data): Remove la_exp_desc field.
684 (language_defn::expression_ops): Declare new member function.
685 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
686 (m2_language::expression_ops): New member function.
687 * objc-lang.c (objc_language_data): Remove la_exp_desc
688 initializer.
689 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
690 initializer.
691 (opencl_language::expression_ops): New member function.
692 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
693 * parse.c (operator_length): Update call to expression_ops.
694 (exp_iterate): Likewise.
695 * rust-lang.c (rust_language_data): Remove la_exp_desc
696 initializer.
697 (ruse_language::expression_ops): New member function.
698
699 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
700
701 * ada-lang.c (ada_language_data): Remove la_varobj_ops
702 initializer.
703 (ada_language::varobj_ops): New member function.
704 * c-lang.c (c_language_data): Remove la_varobj_ops
705 initializer.
706 (cplus_language_data): Likewise.
707 (cplus_language::varobj_ops): New member function.
708 (asm_language_data): Remove la_varobj_ops initializer.
709 (minimal_language_data): Likewise.
710 * d-lang.c (d_language_data): Likewise.
711 * f-lang.c (f_language_data): Likewise.
712 * go-lang.c (go_language_data): Likewise.
713 * language.c (language_defn::varobj_ops): New function.
714 (unknown_language_data): Remove la_varobj_ops
715 initializer.
716 (auto_language_data): Likewise.
717 * language.h (language_data): Remove la_varobj_ops field.
718 (language_defn::varobj_ops): Declare new member function.
719 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
720 * objc-lang.c (objc_language_data): Likewise.
721 * opencl-lang.c (opencl_language_data): Likewise.
722 * p-lang.c (pascal_language_data): Likewise.
723 * rust-lang.c (rust_language_data): Likewise.
724 * varobj.c (varobj_create): Update call to varobj_ops.
725 * varobj.h (default_varobj_ops): Delete define.
726
727 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
728
729 * ada-lang.c (ada_language_data): Remove la_macro_expansion
730 initializer.
731 * c-lang.c (c_language_data): Likewise.
732 (c_language::macro_expansion): New member function.
733 (cplus_language_data): Likewise.
734 (cplus_language::macro_expansion): New member function.
735 (asm_language_data): Likewise.
736 (asm_language::macro_expansion): New member function.
737 (minimal_language_data): Likewise.
738 (minimal_language::macro_expansion): New member function.
739 * d-lang.c (d_language_data): Remove la_macro_expansion
740 initializer.
741 * f-lang.c (f_language_data): Likewise.
742 * go-lang.c (go_language_data): Likewise.
743 * language.c (unknown_language_data): Likewise.
744 (auto_language_data): Likewise.
745 * language.h (language_data): Remove la_macro_expansion field.
746 (language_defn::macro_expansion): New member function.
747 * m2-lang.c (m2_language_data): Remove la_macro_expansion
748 initializer.
749 * objc-lang.c (objc_language_data): Likewise.
750 (objc_language::macro_expansion): New member function.
751 * opencl-lang.c (opencl_language_data): Likewise.
752 (opencl_language::macro_expansion): New member function.
753 * p-lang.c (pascal_language_data): Remove la_macro_expansion
754 initializer.
755 * rust-lang.c (rust_language_data): Likewise.
756 * symtab.c (default_collect_symbol_completion_matches_break_on):
757 Update call to macro_expansion.
758
759 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
760
761 * ada-lang.c (ada_language_data): Remove la_array_ordering
762 initializer.
763 * c-lang.c (c_language_data): Likewise.
764 (cplus_language_data): Likewise.
765 (asm_language_data): Likewise.
766 (minimal_language_data): Likewise.
767 * d-lang.c (d_language_data): Likewise.
768 * dwarf2/read.c (read_array_order): Update for call to
769 array_ordering.
770 * f-lang.c (f_language_data): Remove la_array_ordering
771 initializer.
772 (f_language::array_ordering): New member function.
773 * go-lang.c (go_language_data): Remove la_array_ordering
774 initializer.
775 * language.c (unknown_language_data): Likewise.
776 (auto_language_data): Likewise.
777 * language.h (language_data): Delete la_array_ordering field.
778 (language_defn::array_ordering): New member function.
779 * m2-lang.c (m2_language_data): Remove la_array_ordering
780 initializer.
781 * objc-lang.c (objc_language_data): Likewise.
782 * opencl-lang.c (opencl_language_data): Likewise.
783 * p-lang.c (pascal_language_data): Likewise.
784 * rust-lang.c (rust_language_data): Likewise.
785
786 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
787
788 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
789 initializer.
790 * c-lang.c (c_language_data): Likewise.
791 (cplus_language_data): Likewise.
792 (asm_language_data): Likewise.
793 (minimal_language_data): Likewise.
794 * d-lang.c (d_language_data): Likewise.
795 * f-lang.c (f_language_data): Likewise.
796 (f_language::case_sensitivity): New member function.
797 * go-lang.c (go_language_data): Remove la_case_sensitivity
798 initializer.
799 * language.c (enum case_mode): Moved here from language.h.
800 (case_mode): Make static.
801 (show_case_command): Update for case_sensitivity being a method.
802 (set_case_command): Likewise.
803 (set_range_case): Likewise.
804 (unknown_language_data): Remove la_case_sensitivity initializer.
805 (auto_language_data): Likewise.
806 * language.h (case_mode): Delete, move enum declaration to
807 language.c.
808 (language_data): Delete la_case_sensitivity field.
809 (language_defn::case_sensitivity): New member function.
810 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
811 initializer.
812 * objc-lang.c (objc_language_data): Likewise.
813 * opencl-lang.c (opencl_language_data): Likewise.
814 * p-lang.c (pascal_language_data): Likewise.
815 * rust-lang.c (rust_language_data): Likewise.
816
817 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
818
819 * ada-lang.c (ada_language_data): Remove la_range_check
820 initializer.
821 * c-lang.c (c_language_data): Likewise.
822 (cplus_language_data): Likewise.
823 (asm_language_data): Likewise.
824 (minimal_language_data): Likewise.
825 * d-lang.c (d_language_data): Likewise.
826 * f-lang.c (f_language_data): Likewise.
827 (f_language::range_checking_on_by_default): New member function.
828 * go-lang.c (go_language_data): Remove la_range_check initializer.
829 * language.c (enum range_mode): Moved here from language.h.
830 (range_mode): Made static.
831 (show_range_command): Update to use
832 range_checking_on_by_default.
833 (set_range_command): Likewise.
834 (set_range_case): Likewise.
835 (unknown_language_data): Remove la_range_check initializer.
836 (auto_language_data): Likewise.
837 * language.h (range_mode): Delete. Enum definition moved to
838 language.c.
839 (language_data): Remove la_range_check field.
840 (language_defn::range_checking_on_by_default): New member
841 function.
842 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
843 (m2_language::range_checking_on_by_default): New member function.
844 * objc-lang.c (objc_language_data): Remove la_range_check
845 initializer.
846 * opencl-lang.c (opencl_language_data): Likewise.
847 * p-lang.c (pascal_language_data): Likewise.
848 (pascal_language::range_checking_on_by_default): New member
849 function.
850 * rust-lang.c (rust_language_data): Remove la_range_check
851 initializer.
852 (rust_language::range_checking_on_by_default): New member
853 function.
854
855 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
856
857 * dwarf2/read.c (dwarf2_physname): Remove special case for
858 language_go.
859 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
860 member function.
861
862 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
863
864 * ada-lang.c (ada_language_data): Remove
865 la_store_sym_names_in_linkage_form_p initializer.
866 (ada_language::store_sym_names_in_linkage_form_p): New member
867 function.
868 * c-lang.c (c_language_data): Remove
869 la_store_sym_names_in_linkage_form_p initializer.
870 (c_language::store_sym_names_in_linkage_form_p): New member
871 function.
872 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
873 initializer.
874 (asm_language_data): Likewise.
875 (asm_language::store_sym_names_in_linkage_form_p): New member
876 function.
877 (minimal_language_data): Remove
878 la_store_sym_names_in_linkage_form_p initializer.
879 (minimal_language::store_sym_names_in_linkage_form_p): New member
880 function.
881 * d-lang.c (d_language_data): Remove
882 la_store_sym_names_in_linkage_form_p initializer.
883 * dwarf2/read.c (dwarf2_physname): Update call to
884 store_sym_names_in_linkage_form_p.
885 * f-lang.c (f_language_data): Remove
886 la_store_sym_names_in_linkage_form_p initializer.
887 * go-lang.c (go_language_data): Remove
888 la_store_sym_names_in_linkage_form_p initializer.
889 * language.c (unknown_language_data): Remove
890 la_store_sym_names_in_linkage_form_p initializer.
891 (unknown_language::store_sym_names_in_linkage_form_p): New member
892 function.
893 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
894 initializer.
895 (auto_language::store_sym_names_in_linkage_form_p): New member
896 function.
897 * language.h (language_data): Remove
898 la_store_sym_names_in_linkage_form_p member variable.
899 (language_defn::store_sym_names_in_linkage_form_p): New member
900 function.
901 * m2-lang.c (m2_language_data): Remove
902 la_store_sym_names_in_linkage_form_p initializer.
903 * objc-lang.c (objc_language_data): Likewise.
904 * opencl-lang.c (opencl_language_data): Likewise.
905 * p-lang.c (pascal_language_data): Likewise.
906 * rust-lang.c (rust_language_data): Likewise.
907
908 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
909
910 * ada-lang.c (ada_language_data): Remove string_lower_bound
911 initializer.
912 * c-lang.c (c_language_data): Likewise.
913 (cplus_language_data): Likewise.
914 (asm_language_data): Likewise.
915 (minimal_language_data): Likewise.
916 * d-lang.c (d_language_data): Likewise.
917 * f-lang.c (f_language_data): Likewise.
918 * go-lang.c (go_language_data): Likewise.
919 * language.c (unknown_language_data): Likewise.
920 (auto_language_data): Likewise.
921 * language.h (language_data): Remove string_lower_bound field.
922 (language_defn::string_lower_bound): New member function.
923 * m2-lang.c (m2_language_data): Remove string_lower_bound
924 initializer.
925 (m2_language::string_lower_bound): New member function.
926 * objc-lang.c (objc_language_data): Remove string_lower_bound
927 initializer.
928 * opencl-lang.c (opencl_language_data): Likewise.
929 * p-lang.c (pascal_language_data): Likewise.
930 * rust-lang.c (rust_language_data): Likewise.
931 * valops.c (value_cstring): Update call to string_lower_bound.
932 (value_string): Likewise.
933 * value.c (allocate_repeated_value): Likewise.
934
935 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
936
937 * valops.c (value_repeat): Fix incorrect argument name in comment.
938
939 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
940
941 * ada-lang.c (ada_language_data): Remove c_style_arrays
942 initializer.
943 (ada_language::c_style_arrays_p): New member fuction.
944 * c-lang.c (c_language_data): Remove c_style_arrays
945 initializer.
946 (cplus_language_data): Likewise.
947 (asm_language_data): Likewise.
948 (minimal_language_data): Likewise.
949 * d-lang.c (d_language_data): Likewise.
950 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
951 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
952 (f_language::c_style_arrays_p): New member function.
953 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
954 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
955 * language.c (unknown_language_data): Remove c_style_arrays
956 initializer.
957 (auto_language_data): Likewise.
958 * language.h (language_data): Remove c_style_arrays field.
959 (language_defn::c_style_arrays_p): New member function.
960 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
961 (m2_language::c_style_arrays_p): New member function.
962 * objc-lang.c (objc_language_data): Remove c_style_arrays
963 initializer.
964 * opencl-lang.c (opencl_language_data): Likewise.
965 * p-lang.c (pascal_language_data): Likewise.
966 * rust-lang.c (rust_language_data): Likewise.
967 * valarith.c (value_subscript): Update call to c_style_arrays_p,
968 and update local variable to a bool.
969 * valops.c (value_cast): Update call to c_style_arrays_p.
970 (value_array): Likewise.
971 * value.c (coerce_array): Likewise.
972
973 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
974
975 * ada-lang.c (ada_language_data): Remove la_language initializer.
976 * c-lang.c (c_language_data): Likewise.
977 (cplus_language_data): Likewise.
978 (asm_language_data): Likewise.
979 (minimal_language_data): Likewise.
980 * d-lang.c (d_language_data): Likewise.
981 * f-lang.c (f_language_data): Likewise.
982 * go-lang.c (go_language_data): Likewise.
983 * language.c (unknown_language_data): Likewise.
984 (auto_language_data): Likewise.
985 * language.h (language_data): Remove la_language field.
986 (language_defn::language_defn): Initialise la_language field.
987 (language_defn::la_language): New member variable.
988 * m2-lang.c (m2_language_data): Remove la_language field.
989 * objc-lang.c (objc_language_data): Likewise.
990 * opencl-lang.c (opencl_language_data): Likewise.
991 * p-lang.c (pascal_language_data): Likewise.
992 * rust-lang.c (rust_language_data): Likewise.
993
994 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
995
996 * ada-lang.c (ada_extensions): Delete, moved into
997 ada_language::filename_extensions.
998 (ada_language_data): Remove la_filename_extensions initializer.
999 (ada_language::filename_extensions): New member function.
1000 * c-lang.c (c_extensions): Delete, moved into
1001 c_language::filename_extensions.
1002 (c_language_data): Remove la_filename_extensions initializer.
1003 (c_language::filename_extensions): New member function.
1004 (cplus_extensions): Delete, moved into
1005 cplus_language::filename_extensions.
1006 (cplus_language_data): Remove la_filename_extensions initializer.
1007 (cplus_language::filename_extensions): New member function.
1008 (asm_extensions): Delete, moved into
1009 asm_language::filename_extensions.
1010 (asm_language_data): Remove la_filename_extensions initializer.
1011 (asm_language::filename_extensions): New member function.
1012 (minimal_language_data): Remove la_filename_extensions
1013 initializer.
1014 * d-lang.c (d_extensions): Delete, moved into
1015 d_language::filename_extensions.
1016 (d_language_data): Remove la_filename_extensions initializer.
1017 (d_language::filename_extensions): New member function.
1018 * f-lang.c (f_extensions): Delete, moved into
1019 f_language::filename_extensions.
1020 (f_language_data): Remove la_filename_extensions initializer.
1021 (f_language::filename_extensions): New member function.
1022 * go-lang.c (go_language_data): Remove la_filename_extensions
1023 initializer.
1024 * language.c (add_set_language_command): Update now that
1025 filename_extensions returns a vector.
1026 (unknown_language_data): Remove la_filename_extensions
1027 initializer.
1028 (auto_language_data): Likewise.
1029 * language.h (language_data): Remove la_filename_extensions field.
1030 (language_defn::filename_extensions): New member function.
1031 * m2-lang.c (m2_language_data): Remove la_filename_extensions
1032 initializer.
1033 * objc-lang.c (objc_extensions): Delete, moved into
1034 objc_language::filename_extensions.
1035 (objc_language_data): Remove la_filename_extensions initializer.
1036 (objc_language::filename_extensions): New member function.
1037 * opencl-lang.c (opencl_language_data): Remove
1038 la_filename_extensions initializer.
1039 * p-lang.c (pascal_extensions): Delete, moved into
1040 pascal_language::filename_extensions.
1041 (pascal_language_data): Remove la_filename_extensions initializer.
1042 (pascal_language::filename_extensions): New member function.
1043 * rust-lang.c (rust_extensions): Delete, moved into
1044 rust_language::filename_extensions.
1045 (rust_language_data): Remove la_filename_extensions initializer.
1046 (rust_language::filename_extensions): New member function.
1047 * symfile.c (add_filename_language): Add new assert.
1048
1049 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1050
1051 * ada-lang.c (ada_language_data): Remove la_name and
1052 la_natural_name initializers.
1053 (ada_language::name): New member function.
1054 (ada_language::natural_name): New member function.
1055 * c-lang.c (c_language_data): Remove la_name and
1056 la_natural_name initializers.
1057 (c_language::name): New member function.
1058 (c_language::natural_name): New member function.
1059 (cplus_language_data): Remove la_name and
1060 la_natural_name initializers.
1061 (cplus_language::name): New member function.
1062 (cplus_language::natural_name): New member function.
1063 (asm_language_data): Remove la_name and
1064 la_natural_name initializers.
1065 (asm_language::name): New member function.
1066 (asm_language::natural_name): New member function.
1067 (minimal_language_data): Remove la_name and
1068 la_natural_name initializers.
1069 (minimal_language::name): New member function.
1070 (minimal_language::natural_name): New member function.
1071 * compile/compile.c (compile_to_object): Update call to
1072 lanugage_defn::name.
1073 * d-lang.c (d_language_data): Remove la_name and
1074 la_natural_name initializers.
1075 (d_language::name): New member function.
1076 (d_language::natural_name): New member function.
1077 * expprint.c (print_subexp_standard): Update call to
1078 language_defn::name.
1079 (dump_raw_expression): Likewise
1080 (dump_prefix_expression): Likewise.
1081 * f-lang.c (f_language_data): Remove la_name and
1082 la_natural_name initializers.
1083 (f_language::name): New member function.
1084 (f_language::natural_name): New member function.
1085 * go-lang.c (go_language_data): Remove la_name and
1086 la_natural_name initializers.
1087 (go_language::name): New member function.
1088 (go_language::natural_name): New member function.
1089 * language.c (show_language_command): Update call to
1090 language_defn::name.
1091 (set_language_command): Likewise.
1092 (language_enum): Likewise.
1093 (language_str): Likewise.
1094 (add_set_language_command): Likewise, use
1095 language_defn::natural_name in the doc string.
1096 (unknown_language_data): Remove la_name and
1097 la_natural_name initializers.
1098 (unknown_language::name): New member function.
1099 (unknown_language::natural_name): New member function.
1100 (auto_language_data): Remove la_name and
1101 la_natural_name initializers.
1102 (auto_language::name): New member function.
1103 (auto_language::natural_name): New member function.
1104 (language_lookup_primitive_type_as_symbol): Update call to
1105 language_defn::name.
1106 * language.h (language_data): Remove la_name and la_natural_name
1107 member variables.
1108 (language_defn::name): New member function.
1109 (language_defn::natural_name): New member function.
1110 * m2-lang.c (m2_language_data): Remove la_name and
1111 la_natural_name initializers.
1112 (m2_language::name): New member function.
1113 (m2_language::natural_name): New member function.
1114 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
1115 language_defn::natural_name.
1116 * objc-lang.c (objc_language_data): Remove la_name and
1117 la_natural_name initializers.
1118 (objc_language::name): New member function.
1119 (objc_language::natural_name): New member function.
1120 * opencl-lang.c (opencl_language_data): Remove la_name and
1121 la_natural_name initializers.
1122 (opencl_language::name): New member function.
1123 (opencl_language::natural_name): New member function.
1124 * p-lang.c (pascal_language_data): Remove la_name and
1125 la_natural_name initializers.
1126 (pascal_language::name): New member function.
1127 (pascal_language::natural_name): New member function.
1128 * rust-lang.c (rust_language_data): Remove la_name and
1129 la_natural_name initializers.
1130 (rust_language::name): New member function.
1131 (rust_language::natural_name): New member function.
1132 * symtab.c (lookup_language_this): Update call to
1133 language_defn::name.
1134
1135 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1136
1137 * ada-lang.c (ada_language_data): Remove la_name_of_this
1138 initializer.
1139 * ax-gdb.c (gen_expr): Update call to name_of_this.
1140 * c-exp.y (classify_name): Likewise.
1141 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1142 (cplus_language_data): Likewise.
1143 (cplus_language::name_of_this): New member function.
1144 (asm_language_data): Remove la_name_of_this initializer.
1145 (minimal_language_data): Likewise.
1146 * d-lang.c (d_language_data): Likewise.
1147 (d_language::name_of_this): New member function.
1148 * expprint.c (print_subexp_standard): Update call to name_of_this.
1149 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1150 * go-lang.c (go_language_data): Likewise.
1151 * language.c (unknown_language_data): Likewise.
1152 (unknown_language::name_of_this): New member function.
1153 (auto_language_data): Remove la_name_of_this initializer.
1154 (auto_language::name_of_this): New member function.
1155 * language.h (language_data): Delete la_name_of_this member
1156 variable.
1157 (language_defn::name_of_this): New member function.
1158 * m2-lang.c (m2_language_data): Remove la_name_of_this
1159 initializer.
1160 * objc-lang.c (objc_language_data): Likewise.
1161 (objc_language::name_of_this): New member function.
1162 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1163 initializer.
1164 * p-lang.c (pascal_language_data): Likewise.
1165 (pascal_language::name_of_this): New member function.
1166 * rust-lang.c (rust_language_data): Remove la_name_of_this
1167 initializer.
1168 * symtab.c (lookup_language_this): Update call to name_of_this.
1169 (lookup_symbol_aux): Likewise.
1170 * valops.c (value_of_this): Likewise.
1171
1172 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1173
1174 * ada-lang.c (ada_language_data): Remove
1175 la_struct_too_deep_ellipsis initializer.
1176 (ada_language::struct_too_deep_ellipsis): New member function.
1177 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1178 initializer.
1179 (cplus_language_data): Likewise.
1180 (asm_language_data): Likewise.
1181 (minimal_language_data): Likewise.
1182 * cp-valprint.c (cp_print_value): Update call to
1183 struct_too_deep_ellipsis.
1184 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1185 initializer.
1186 * f-lang.c (f_language_data): Likewise.
1187 (f_language::struct_too_deep_ellipsis): New member function.
1188 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1189 initializer.
1190 * language.c (unknown_language_data): Likewise.
1191 (auto_language_data): Likewise.
1192 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1193 member variable.
1194 (language_defn::struct_too_deep_ellipsis): New member function.
1195 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1196 initializer.Q
1197 * objc-lang.c (objc_language_data): Likewise.
1198 * opencl-lang.c (opencl_language_data): Likewise.
1199 * p-lang.c (pascal_language_data): Likewise.
1200 * rust-lang.c (rust_language_data): Likewise.
1201 * valprint.c (val_print_check_max_depth): Update call to
1202 struct_too_deep_ellipsis.
1203
1204 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1205
1206 * MAINTAINERS (Write After Approval): Add myself.
1207
1208 2020-09-15 Tom Tromey <tom@tromey.com>
1209
1210 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1211 Remove.
1212
1213 2020-09-15 Tom Tromey <tom@tromey.com>
1214
1215 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1216 and TYPE_CODE_METHODPTR cases.
1217 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1218 (c_value_print_inner): Update.
1219 * valprint.c (generic_value_print_memberptr): New function, from
1220 c_value_print_memberptr.
1221 (generic_value_print): Use it. Call cplus_print_method_ptr.
1222
1223 2020-09-15 Tom Tromey <tromey@adacore.com>
1224
1225 * python/python-internal.h (PyInt_FromLong): Remove define.
1226 * python/py-value.c (convert_value_from_python): Use
1227 gdb_py_object_from_longest.
1228 * python/py-type.c (typy_get_code): Use
1229 gdb_py_object_from_longest.
1230 * python/py-symtab.c (salpy_get_line): Use
1231 gdb_py_object_from_longest.
1232 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1233 gdb_py_object_from_longest.
1234 * python/py-record.c (recpy_gap_reason_code): Use
1235 gdb_py_object_from_longest.
1236 * python/py-record-btrace.c (recpy_bt_insn_size)
1237 (recpy_bt_func_level, btpy_list_count): Use
1238 gdb_py_object_from_longest.
1239 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1240 gdb_py_object_from_longest. Fix error handling.
1241 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1242 gdb_py_object_from_longest.
1243 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1244 gdb_py_object_from_longest.
1245 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1246 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1247 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1248
1249 2020-09-15 Tom Tromey <tromey@adacore.com>
1250
1251 * python/python.c (gdbpy_parameter_value): Use
1252 gdb_py_object_from_ulongest.
1253
1254 2020-09-15 Tom Tromey <tromey@adacore.com>
1255
1256 * python/py-infevents.c (create_register_changed_event_object):
1257 Use gdb_py_object_from_longest.
1258 * python/py-exitedevent.c (create_exited_event_object): Use
1259 gdb_py_object_from_longest.
1260
1261 2020-09-15 Tom Tromey <tromey@adacore.com>
1262
1263 * python/python.c (gdbpy_parameter_value): Use
1264 gdb_py_object_from_longest.
1265 * python/py-type.c (convert_field, typy_range): Use
1266 gdb_py_object_from_longest.
1267 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1268 gdb_py_object_from_longest.
1269 * python/py-lazy-string.c (stpy_get_length): Use
1270 gdb_py_object_from_longest.
1271 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1272 gdb_py_object_from_longest.
1273 * python/py-infevents.c (create_memory_changed_event_object): Use
1274 gdb_py_object_from_longest.
1275 * python/py-inferior.c (infpy_get_num): Use
1276 gdb_py_object_from_longest.
1277 (infpy_get_pid): Likewise.
1278
1279 2020-09-15 Tom Tromey <tromey@adacore.com>
1280
1281 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1282 defines.
1283 * python/py-value.c (valpy_long): Use
1284 gdb_py_object_from_ulongest.
1285 * python/py-symtab.c (salpy_get_pc): Use
1286 gdb_py_object_from_ulongest.
1287 (salpy_get_last): Likewise.
1288 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1289 gdb_py_object_from_ulongest.
1290 * python/py-lazy-string.c (stpy_get_address): Use
1291 gdb_py_object_from_ulongest.
1292 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1293 * python/py-arch.c (archpy_disassemble): Use
1294 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1295 error handling.
1296
1297 2020-09-15 Tom Tromey <tromey@adacore.com>
1298
1299 * python/python-internal.h (gdb_py_long_from_longest): Remove
1300 defines.
1301 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1302 * python/py-type.c (convert_field, typy_get_sizeof): Use
1303 gdb_py_object_from_longest.
1304 * python/py-record-btrace.c (btpy_list_index): Use
1305 gdb_py_object_from_longest.
1306
1307 2020-09-15 Tom Tromey <tromey@adacore.com>
1308
1309 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1310 * python/py-record.c (recpy_element_number): Use
1311 gdb_py_object_from_longest.
1312 (recpy_gap_number): Likewise.
1313
1314 2020-09-15 Tom Tromey <tromey@adacore.com>
1315
1316 * top.c (ui::ui): Update.
1317 (highest_ui_num): Remove.
1318 * top.h (struct ui) <num>: Remove.
1319
1320 2020-09-15 Tom Tromey <tromey@adacore.com>
1321
1322 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1323 * ui-style.c (ansi_regex_text): Now array.
1324 * rust-exp.y (number_regex_text): Now array.
1325 * linespec.c (linespec_quote_characters): Now array.
1326 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1327 Now arrays.
1328
1329 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1330
1331 * debuginfod-support.c (debuginfod_client_deleter): New.
1332 (debuginfod_client_up): New.
1333 (debuginfod_init): Return debuginfod_client_up.
1334 (debuginfod_source_query): Adjust.
1335 (debuginfod_debuginfo_query): Adjust.
1336
1337 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1338
1339 * debuginfod-support.c (debuginfod_source_query): Use
1340 make_unique_xstrdup.
1341
1342 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1343
1344 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1345 with `type::instance_flags`.
1346
1347 2020-09-14 Michael Mullin <masmullin@gmail.com>
1348
1349 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1350 Remove baton parameter.
1351
1352 2020-09-14 Pedro Alves <pedro@palves.net>
1353
1354 * Makefile.in (SELFTESTS_SRCS): Add
1355 unittests/enum-flags-selftests.c.
1356 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1357 btrace_function_flags instead of enum btrace_function_flag.
1358 * compile/compile-c-types.c (convert_qualified): Use
1359 enum_flags::raw.
1360 * compile/compile-cplus-symbols.c (convert_one_symbol)
1361 (convert_symbol_bmsym):
1362 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1363 (compile_cplus_convert_struct_or_union_methods)
1364 (compile_cplus_instance::convert_qualified_base):
1365 * go-exp.y (parse_string_or_char): Add cast to int.
1366 * unittests/enum-flags-selftests.c: New file.
1367 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1368 type to btrace_thread_flags from btrace_thread_flag.
1369 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1370 local's type to btrace_thread_flags from btrace_thread_flag. Add
1371 cast in DEBUG call.
1372
1373 2020-09-14 Pedro Alves <pedro@palves.net>
1374
1375 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1376 * gdbtypes.c (address_space_name_to_int): Rename to ...
1377 (address_space_name_to_type_instance_flags): ... this.
1378 (address_space_int_to_name): Rename to ...
1379 (address_space_type_instance_flags_to_name): ... this.
1380 * gdbtypes.h (address_space_name_to_int): Rename to ...
1381 (address_space_name_to_type_instance_flags): ... this.
1382 (address_space_int_to_name): Rename to ...
1383 (address_space_type_instance_flags_to_name): ... this.
1384 * type-stack.c (type_stack::insert): Adjust to rename.
1385 * type-stack.h (type_stack::insert): Likewise.
1386
1387 2020-09-14 Pedro Alves <pedro@palves.net>
1388 Andrew Burgess <andrew.burgess@embecosm.com>
1389
1390 * avr-tdep.c (avr_address_class_type_flags): Return
1391 type_instance_flags.
1392 (avr_address_class_type_flags_to_name): Take a
1393 type_instance_flags.
1394 (avr_address_class_name_to_type_flags): Return bool and take a
1395 type_instance_flags.
1396 * d-lang.c (build_d_types): Use type::set_instance_flags.
1397 * ft32-tdep.c (ft32_address_class_type_flags): Return
1398 type_instance_flags.
1399 (ft32_address_class_type_flags_to_name): Take a
1400 type_instance_flags.
1401 (ft32_address_class_name_to_type_flags): Return bool and take a
1402 type_instance_flags.
1403 (ft32_gdbarch_init): Use type::set_instance_flags.
1404 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1405 * gdbarch.h, gdbarch.c: Regenerate.
1406 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1407 (address_class_name_to_type_flags): Use type_instance_flags and
1408 bool.
1409 * gdbtypes.c (address_space_name_to_int)
1410 (address_space_int_to_name, make_qualified_type): Use
1411 type_instance_flags.
1412 (make_qualified_type): Use type_instance_flags and
1413 type::set_instance_flags.
1414 (make_type_with_address_space, make_cv_type, make_vector_type)
1415 (check_typedef): Use type_instance_flags.
1416 (recursive_dump_type): Cast type_instance_flags to unsigned for
1417 printing.
1418 (copy_type_recursive): Use type::set_instance_flags.
1419 (gdbtypes_post_init): Use type::set_instance_flags.
1420 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1421 <m_instance_flags>: ... this.
1422 <instance_flags, set_instance_flags>: New methods.
1423 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1424 (SET_TYPE_INSTANCE_FLAGS): New.
1425 (address_space_name_to_int, address_space_int_to_name)
1426 (make_type_with_address_space): Pass flags using
1427 type_instance_flags instead of int.
1428 * stabsread.c (cleanup_undefined_types_noname): Use
1429 type::set_instance_flags.
1430 * s390-tdep.c (s390_address_class_type_flags): Return
1431 type_instance_flags.
1432 (s390_address_class_type_flags_to_name): Take a
1433 type_instance_flags.
1434 (s390_address_class_name_to_type_flags): Return bool and take a
1435 type_instance_flags.
1436 * type-stack.c (type_stack::follow_types): Use
1437 type_instance_flags.
1438 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1439
1440 2020-09-14 Tom Tromey <tromey@adacore.com>
1441
1442 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1443 * x86-tdep.c (x86_is_thunk_register_name)
1444 (x86_in_indirect_branch_thunk): Update.
1445 * sparc64-tdep.c (sparc64_fpu_register_names)
1446 (sparc64_cp0_register_names, sparc64_register_names)
1447 (sparc64_pseudo_register_names): Now const.
1448 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1449 cp0_registers_num>: Now const.
1450 * sparc-tdep.c (sparc_core_register_names)
1451 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1452 (sparc32_pseudo_register_names): Now const.
1453 (validate_tdesc_registers): Update.
1454 * rust-lang.c (rust_extensions): Now const.
1455 * p-lang.c (p_extensions): Now const.
1456 * objc-lang.c (objc_extensions): Now const.
1457 * nto-tdep.c (nto_thread_state_str): Now const.
1458 * moxie-tdep.c (moxie_register_names): Now const.
1459 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1460 Now const.
1461 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1462 (mips_linux_reg_names): Now const.
1463 (mips_gdbarch_init): Update.
1464 * microblaze-tdep.c (microblaze_register_names): Now const.
1465 * m68k-tdep.c (m68k_register_names): Now const.
1466 * m32r-tdep.c (m32r_register_names): Now const.
1467 * ia64-tdep.c (ia64_register_names): Now const.
1468 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1469 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1470 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1471 ymm_avx512_register_names, pkeys_register_names>: Now const.
1472 * i386-tdep.c (i386_register_names, i386_zmm_names)
1473 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1474 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1475 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1476 * f-lang.c (f_extensions): Now const.
1477 * d-lang.c (d_extensions): Now const.
1478 * csky-tdep.c (csky_register_names): Now const.
1479 * charset.c (default_charset_names, charset_enum): Now const.
1480 (_initialize_charset): Update.
1481 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1482 const.
1483 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1484 (bsd_uthread_solib_loaded): Update.
1485 (bsd_uthread_state): Now const.
1486 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1487 (amd64_ymm_avx512_names, amd64_ymmh_names)
1488 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1489 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1490 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1491 (amd64_dword_names): Now const.
1492 * agent.c (can_use_agent_enum): Now const.
1493 * ada-tasks.c (task_states, long_task_states): Now const.
1494 * ada-lang.c (known_runtime_file_name_patterns)
1495 (known_auxiliary_function_name_patterns, attribute_names)
1496 (standard_exc, ada_extensions): Now const.
1497
1498 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1499
1500 * bcache.h (struct bcache) <bcache>: Remove constructor.
1501 <m_hash_function, m_compare_function>: Remove.
1502 <~bcache>: Make virtual.
1503 <compare>: Remove static method, introduce virtual method.
1504 <default_hash>: Remove.
1505 <hash>: New virtual method.
1506 * bcache.c (bcache::expand_hash_table): Update.
1507 (bcache::insert): Update.
1508 (bcache::hash): New.
1509 (bcache::compare): Update comment and parameter names.
1510 * gdbtypes.c (types_deeply_equal): Update.
1511 * psymtab.h (struct psymbol_bcache): New struct.
1512 (class psymtab_storage) <psymtab_storage>: Make default.
1513 <psymbol_cache>: Change type to psymbol_bcache.
1514 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1515 (psymbol_hash): Change to...
1516 (psymbol_bcache::hash): ... this.
1517 (psymbol_compare): Change to...
1518 (psymbol_bcache::compare): ... this.
1519
1520 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1521
1522 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1523 checking for initial lwp.
1524
1525 2020-09-14 Tom Tromey <tromey@adacore.com>
1526
1527 * m68k-tdep.c (m68k_extract_return_value): Use
1528 pointer_result_regnum.
1529 (m68k_store_return_value): Likewise.
1530 (m68k_reg_struct_return_p): Handle vectors and arrays.
1531 (m68k_return_value): Handle arrays.
1532 (m68k_svr4_return_value): Fix single-element aggregate handling.
1533 Handle long double. Adjust for embedded ABI.
1534 (m68k_svr4_init_abi): Set pointer_result_regnum.
1535 (m68k_embedded_init_abi): New function.
1536 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1537 (m68k_osabi_sniffer): New function.
1538 (_initialize_m68k_tdep): Register osabi sniffer.
1539 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1540 member.
1541
1542 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1543
1544 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1545 with gdb::unique_xmalloc_ptr<char>.
1546
1547 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1548
1549 * xml-support.h (xml_fetch_another): Change type to be a
1550 function_view.
1551 (xml_process_xincludes): Remove baton parameter.
1552 (xml_fetch_content_from_file): Change baton parameter to
1553 dirname.
1554 * xml-support.c (struct xinclude_parsing_data)
1555 <xinclude_parsing_data>: Remove baton parameter.
1556 <fetcher_baton>: Remove.
1557 (xinclude_start_include): Adjust.
1558 (xml_process_xincludes): Adjust.
1559 (xml_fetch_content_from_file): Replace baton parameter with
1560 dirname.
1561 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1562 (xml_init_syscalls_info): Use a lambda.
1563 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1564 (file_read_description_xml): Use a lambda.
1565 (fetch_available_features_from_target): Change baton parameter
1566 to target_ops.
1567 (target_read_description_xml): Use a lambda.
1568 (target_fetch_description_xml): Use a lambda.
1569 (string_read_description_xml): Update.
1570
1571 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1572
1573 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1574 uses with type::endianity_is_not_default.
1575
1576 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1577
1578 * gdbtypes.h (struct type) <endianity_is_not_default,
1579 set_endianity_is_not_default>: New methods.
1580 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1581 type::endianity_is_not_default, change all write call sites to
1582 use type::set_endianity_is_not_default.
1583
1584 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1585
1586 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1587 uses with type::is_fixed_instance.
1588
1589 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1590
1591 * gdbtypes.h (struct type) <is_fixed_instance,
1592 set_is_fixed_instance>: New methods.
1593 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1594 write call sites to use type::set_is_fixed_instance.
1595
1596 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1597
1598 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1599 uses with type::is_gnu_ifunc.
1600
1601 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1602
1603 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1604 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1605 use type::set_is_gnu_ifunc.
1606
1607 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1608
1609 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1610 uses with type::stub_is_supported.
1611
1612 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1613
1614 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1615 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1616 use type::set_stub_is_supported.
1617
1618 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1619
1620 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1621 uses with type::is_vector.
1622
1623 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1624
1625 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1626 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1627 use type::set_is_vector.
1628
1629 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1630
1631 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1632 uses with type::has_varargs.
1633
1634 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1635
1636 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1637 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1638 use type::set_has_varargs.
1639
1640 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1641
1642 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1643 uses with type::is_prototyped.
1644
1645 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1646
1647 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1648 New methods.
1649 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1650 call sites to use type::set_is_prototyped.
1651
1652 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1653
1654 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1655 uses with type::target_is_stub.
1656
1657 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1658
1659 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1660 New methods.
1661 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1662 sites to use type::set_target_is_stub.
1663
1664 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1665
1666 * gdbtypes.h (TYPE_STUB): Remove, replace all
1667 uses with type::is_stub.
1668
1669 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1670
1671 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1672 (TYPE_STUB): Use type::is_stub, change all write call sites to
1673 use type::set_is_stub.
1674
1675 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1676
1677 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1678 type::has_no_signedness.
1679
1680 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1681
1682 * gdbtypes.h (struct type) <has_no_signedness,
1683 set_has_no_signedness>: New methods.
1684 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1685 call sites to use type::set_has_no_signedness.
1686
1687 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1688
1689 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1690 type::is_unsigned.
1691
1692 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1693
1694 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1695 methods.
1696 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1697 sites to use type::set_is_unsigned.
1698
1699 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
1700 Adam Renquinha <arenquinha@cimeq.qc.ca>
1701
1702 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1703 pointer and stack frame offset when unwinding.
1704
1705 2020-09-13 Pedro Alves <pedro@palves.net>
1706
1707 * NEWS: Document "-break-insert --qualified".
1708 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1709
1710 2020-09-13 Pedro Alves <pedro@palves.net>
1711
1712 * linespec.c (classify_mtype, compare_msyms): Delete.
1713 (search_minsyms_for_name): Remove classification logic. Instead
1714 filter out trampoline symbols if we also found an external
1715 function of the same name.
1716
1717 2020-09-13 Joel Brobecker <brobecker@adacore.com>
1718
1719 * NEWS: Create a new section for the next release branch.
1720 Rename the section of the current branch, now that it has
1721 been cut.
1722
1723 2020-09-13 Joel Brobecker <brobecker@adacore.com>
1724
1725 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1726 * version.in: Bump version to 11.0.50.DATE-git.
1727
1728 2020-09-12 Joel Brobecker <brobecker@adacore.com>
1729
1730 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1731
1732 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1733 Felix Willgerodt <Felix.Willgerodt@intel.com>
1734
1735 * gdbarch.sh: Added bfloat16 type.
1736 * gdbarch.c: Regenerated.
1737 * gdbarch.h: Regenerated.
1738 * gdbtypes.c (floatformats_bfloat16): New struct.
1739 (gdbtypes_post_init): Add builtin_bfloat16.
1740 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1741 (floatformats_bfloat16): New struct.
1742 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1743 (i386_ymm_type): Add field "v16_bfloat16"
1744 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1745 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1746 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1747 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1748 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1749 * features/i386/64bit-avx512.c: Regenerated.
1750 * features/i386/64bit-sse.xml: Add bfloat16 type.
1751 * features/i386/64bit-sse.c: Regenerated.
1752
1753 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1754
1755 * i386-tdep.c (i386_zmm_type): Fix field names.
1756 (i386_ymm_type): Fix field names.
1757
1758 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1759
1760 * breakpoint.c: Fix typo in the help message of the
1761 "set breakpoint condition-evaluation" command.
1762
1763 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1764
1765 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1766 * (nbsd_nat_target::pid_to_exec_file)
1767 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1768 (nbsd_nat_target::post_startup_inferior)
1769 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1770 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1771 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1772 * (nbsd_thread_lister): Remove.
1773
1774 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1775
1776 * fork-inferior.c (startup_inferior): Avoid double free.
1777
1778 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1779
1780 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1781 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1782
1783 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1784
1785 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1786 * netbsd-nat.c: Include <sys/ptrace.h>.
1787 * (netbsd_nat::enable_proc_events): Add.
1788
1789 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1790
1791 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1792 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1793 (netbsd_nat::for_each_thread): Add.
1794 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1795 "gdbsupport/common-debug.h".
1796 * (netbsd_nat::netbsd_thread_lister)
1797 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1798 (netbsd_nat::for_each_thread): Add.
1799
1800 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1801
1802 * netbsd-nat.h: Include <unistd.h>.
1803 * (netbsd_nat::pid_to_exec_file): Add.
1804 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1805 * (netbsd_nat::pid_to_exec_file) Add.
1806
1807 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1808
1809 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
1810
1811 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1812
1813 * netbsd-nat.h: New file.
1814 * netbsd-nat.c: Likewise.
1815
1816 2020-09-09 Tom Tromey <tromey@adacore.com>
1817
1818 * ada-lang.c (remove_extra_symbols): Do not increment when
1819 removing an element
1820
1821 2020-09-08 Tom Tromey <tromey@adacore.com>
1822
1823 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
1824
1825 2020-09-08 Tom Tromey <tromey@adacore.com>
1826
1827 PR win32/25302:
1828 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
1829 (gdb_bfd_init_data): New function.
1830 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
1831
1832 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1833
1834 * infrun.c (fetch_inferior_event): Use
1835 `switch_to_target_no_thread` to switch the target.
1836
1837 2020-09-06 Tom Tromey <tom@tromey.com>
1838
1839 * symfile.h (dwarf2_free_objfile): Don't declare.
1840
1841 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1842
1843 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
1844 to match 16 byte real/complex type generated by Flang compiler.
1845
1846 2020-09-03 Tom de Vries <tdevries@suse.de>
1847
1848 PR breakpoint/26546
1849 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
1850 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
1851
1852 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
1853
1854 * maint.c (index_digits): New function.
1855 (struct maint_print_section_data): Remove.
1856 (print_bfd_section_info): Remove print_data parameter, add arg
1857 and index_digits.
1858 (print_objfile_section_info): Likewise.
1859 (print_bfd_section_info_maybe_relocated): Likewise (plus
1860 objfile).
1861 (maintenance_info_sections): Adjust calls.
1862
1863 2020-09-02 Tom Tromey <tromey@adacore.com>
1864
1865 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1866 for null pointers.
1867 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1868
1869 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1870
1871 * bcache.h (struct bcache) <insert>: Change type of `added` to
1872 pointer to bool.
1873 * bcache.c (bcache::insert): Likewise.
1874 * gdbtypes.c (check_types_worklist): Adjust.
1875 * psymtab.c (add_psymbol_to_bcache): Adjust.
1876
1877 2020-08-31 Kevin Buettner <kevinb@redhat.com>
1878
1879 * corelow.c (unordered_set): Include.
1880 (class core_target): Add field 'm_core_unavailable_mappings'.
1881 (core_target::build_file_mappings): Print only one warning
1882 per inaccessible file. Add unavailable/broken mappings
1883 to m_core_unavailable_mappings.
1884 (core_target::xfer_partial): Call...
1885 (core_target::xfer_memory_via_mappings): New method.
1886
1887 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1888
1889 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1890 type to bool.
1891
1892 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1893
1894 * dwarf2/read.c (struct field_info): Fix indentation.
1895
1896 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1897
1898 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1899 ordering in comment.
1900 * frame.c (frame_id_eq): Fix indentation.
1901
1902 2020-08-31 Scott Linder <scott@scottlinder.com>
1903 Simon Marchi <simon.marchi@efficios.com>
1904
1905 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1906 inline frame ids in outer frame.
1907
1908 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1909
1910 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1911 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1912 (outer_frame_id): Use FID_STACK_OUTER instead of
1913 FID_STACK_INVALID.
1914 (frame_id_p): Don't check for outer_frame_id.
1915
1916 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1917
1918 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1919 regnum/frame in value. Call allocate_value_lazy.
1920 * frame.c (frame_unwind_register_value): Use
1921 val_print_not_saved.
1922
1923 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1924
1925 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1926
1927 2020-08-29 Pedro Alves <pedro@palves.net>
1928
1929 * progspace.c (print_program_space): Use all_inferiors. Switch to
1930 the inferior before calling target_pid_to_str.
1931
1932 2020-08-28 Tom Tromey <tom@tromey.com>
1933
1934 * xcoffread.c (xcoff_end_psymtab): Update comment.
1935 * dbxread.c (dbx_end_psymtab): Update comment.
1936
1937 2020-08-28 Tom de Vries <tdevries@suse.de>
1938
1939 PR breakpoint/26544
1940 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1941 event_location.
1942 (create_breakpoint): Same.
1943 (base_breakpoint_decode_location): Same.
1944 (bkpt_create_sals_from_location): Same.
1945 (bkpt_decode_location): Same.
1946 (bkpt_probe_create_sals_from_location): Same.
1947 (bkpt_probe_decode_location): Same.
1948 (tracepoint_create_sals_from_location): Same.
1949 (tracepoint_decode_location): Same.
1950 (tracepoint_probe_decode_location): Same.
1951 (strace_marker_create_sals_from_location): Same.
1952 (strace_marker_decode_location): Same.
1953 (create_sals_from_location_default): Same.
1954 (decode_location_default): Same.
1955 * breakpoint.h (struct breakpoint_ops): Same.
1956 (create_breakpoint): Same.
1957 * linespec.h (decode_line_full): Same.
1958 * linespec.c (decode_line_full): Same. Throw error if
1959 result.size () == 0.
1960
1961 2020-08-27 Pedro Alves <pedro@palves.net>
1962
1963 PR gdb/26524
1964 * breakpoint.c (until_break_fsm) <location_breakpoint,
1965 caller_breakpoint>: Delete fields.
1966 <breakpoints>: New field.
1967 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1968 two individual breakpoints.
1969 (until_break_fsm::should_stop): Loop over breakpoints in the
1970 breakpoint vector.
1971 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1972 vector.
1973 (until_break_command): Handle location expanding into multiple
1974 sals.
1975
1976 2020-08-27 Pedro Alves <pedro@palves.net>
1977
1978 PR gdb/26523
1979 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1980 bp_until breakpoints user-specified locations. Update intro
1981 comment.
1982
1983 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1984
1985 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1986 gdb_bfd_sections): New.
1987 * maint.c (print_bfd_section_info): Change param type to
1988 maint_print_section_data.
1989 (print_objfile_section_info): Likewise.
1990 (print_bfd_section_info_maybe_relocated): Likewise.
1991 (maintenance_info_sections): Use gdb_bfd_sections.
1992
1993 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1994
1995 * MAINTAINERS: Add ARC target and maintainer.
1996
1997 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1998
1999 * configure.tgt: ARC support for GNU/Linux.
2000 * Makefile.in (ALL_TARGET_OBJS): Likewise.
2001 * arc-linux-tdep.c: New file.
2002 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
2003 * arc-tdep.c (arc_write_pc): Use it.
2004
2005 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2006
2007 * arc-tdep.c (arc_check_for_hardware_loop): New.
2008 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
2009
2010 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2011
2012 * arc-tdep.h: Include "gdbarch.h".
2013
2014 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2015
2016 * arch/arc.h
2017 (arc_gdbarch_features): New class to stir the selection of target XML.
2018 (arc_create_target_description): Use FEATURES to choose XML target.
2019 (arc_lookup_target_description): Use arc_create_target_description
2020 to create _new_ target descriptions or return the already created
2021 ones if the FEATURES is the same.
2022 * arch/arc.c: Implementation of prototypes described above.
2023 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
2024 (arc_gdbarch_features_init): Initialize the FEATURES struct.
2025 * arc-tdep.c (*_feature_name): Make feature names consistent.
2026 (arc_register_feature): A new struct to hold information about
2027 registers of a particular target/feature.
2028 (arc_check_tdesc_feature): Check if XML provides registers in
2029 compliance with ARC_REGISTER_FEATURE structs.
2030 (arc_update_acc_reg_names): Add aliases for r58 and r59.
2031 (determine_*_reg_feature_set): Which feature name to look for.
2032 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
2033 (mach_type_to_arc_isa): Convert from a set of binutils machine types
2034 to expected ISA enums to be used in arc_gdbarch_features structs.
2035 * features/Makefile (FEATURE_XMLFILES): Add new files.
2036 * gdb/features/arc/v1-aux.c: New file.
2037 * gdb/features/arc/v1-aux.xml: Likewise.
2038 * gdb/features/arc/v1-core.c: Likewise.
2039 * gdb/features/arc/v1-core.xml: Likewise.
2040 * gdb/features/arc/v2-aux.c: Likewise.
2041 * gdb/features/arc/v2-aux.xml: Likewise.
2042 * gdb/features/arc/v2-core.c: Likewise.
2043 * gdb/features/arc/v2-core.xml: Likewise.
2044 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
2045
2046 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
2047 Andrew Burgess <andrew.burgess@embecosm.com>
2048
2049 PR m2/26372
2050 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
2051 an assert. Remove single element array indexing pattern as the
2052 MULTI_SUBSCRIPT support will handle this case too.
2053
2054 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
2055
2056 * value.h (valprint_check_validity): Move declaration from
2057 here...
2058 * valprint.h (valprint_check_validity): ... to here.
2059
2060 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
2061
2062 * debug.h: New file.
2063 * debug.c (debug_prefixed_vprintf): New function.
2064 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
2065 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
2066
2067 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
2068
2069 * infrun.h (infrun_debug_printf_1): New function declaration.
2070 (infrun_debug_printf): New macro.
2071 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
2072 throughout.
2073 (infrun_debug_printf): New function.
2074 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
2075 (handle_jit_event): Likewise.
2076
2077 2020-08-21 Mark Wielaard <mark@klomp.org>
2078
2079 * ada-lex.l: Extend register warnings diagnostics comment for g++.
2080
2081 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
2082
2083 * frame.c (enum class frame_id_status): New.
2084 (struct frame_info) <this_id::p>: Change type to frame_id_status.
2085 (fprintf_frame): Update.
2086 (compute_frame_id): Set frame id status to "computing" on entry.
2087 Set it back to "not_computed" on failure and to "computed" on
2088 success.
2089 (get_frame_id): Assert the frame id is not being computed.
2090 (create_sentinel_frame): Use frame_id_status::COMPUTED.
2091 (create_new_frame): Likewise.
2092 (frame_cleanup_after_sniffer): Update assert.
2093
2094 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2095
2096 * regcache.c (pid_ptid_regcache_map): New type.
2097 (target_ptid_regcache_map): Remove.
2098 (target_pid_ptid_regcache_map): New type.
2099 (regcaches): Change type to target_pid_ptid_regcache_map.
2100 (get_thread_arch_aspace_regcache): Update.
2101 (regcache_thread_ptid_changed): Update, handle pid-like ptid
2102 case.
2103 (regcaches_size): Update.
2104 (regcache_count): Update.
2105 (registers_changed_ptid_target_pid_test): New.
2106 (_initialize_regcache): Register new test.
2107
2108 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2109
2110 * regcache.c (regcache_count): New.
2111 (struct regcache_test_data): New.
2112 (regcache_test_data_up): New.
2113 (populate_regcaches_for_test): New.
2114 (regcaches_test): Remove.
2115 (get_thread_arch_aspace_regcache_test): New.
2116 (registers_changed_ptid_all_test): New.
2117 (registers_changed_ptid_target_test): New.
2118 (registers_changed_ptid_target_ptid_test): New.
2119 (regcache_thread_ptid_changed): Remove regcache_count lambda.
2120 (_initialize_regcache): Register new tests.
2121
2122 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2123
2124 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
2125 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
2126 gdbarch and aspace parameter. Use current inferior's aspace.
2127 Validate regcache's arch value.
2128 (regcaches_test): Update.
2129
2130 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2131
2132 * regcache.c (regcaches_test): Call registers_changed.
2133
2134 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2135
2136 * infrun.c (process_event_stop_test): Fix typo "breapoint".
2137
2138 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2139
2140 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2141 to find the end of prologue for flang compiled binaries.
2142 * arm-tdep.c (arm_skip_prologue): Likewise.
2143 * i386-tdep.c (i386_skip_prologue): Likewise.
2144 * producer.c (producer_is_llvm): New function.
2145 (producer_parsing_tests): Added new tests for clang/flang.
2146 * producer.h (producer_is_llvm): New declaration.
2147
2148 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
2149
2150 * linux-nat.c (linux_nat_debug_printf): New function.
2151 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2152
2153 2020-08-18 Aaron Merey <amerey@redhat.com>
2154
2155 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2156 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2157 (CLIBS): Add DEBUGINFOD_LIBS.
2158
2159 2020-08-17 Sergei Trofimovich <siarheit@google.com>
2160
2161 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2162 'gdbarch_num_regs'.
2163
2164 2020-08-17 Tom Tromey <tromey@adacore.com>
2165
2166 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2167 ada_get_decoded_value returns NULL.
2168
2169 2020-08-17 Tom Tromey <tromey@adacore.com>
2170
2171 * python/py-inferior.c (infpy_search_memory): Use
2172 gdb_py_object_from_ulongest.
2173 * python/py-infevents.c (create_inferior_call_event_object)
2174 (create_memory_changed_event_object): Use
2175 gdb_py_object_from_ulongest.
2176 * python/py-linetable.c (ltpy_entry_get_pc): Use
2177 gdb_py_object_from_ulongest.
2178
2179 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2180
2181 * loc.c (class symbol_needs_eval_context): Fix indentation.
2182
2183 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2184
2185 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2186 bool.
2187
2188 2020-08-17 Tom de Vries <tdevries@suse.de>
2189
2190 PR gdb/26393
2191 * gdbtypes.c (dump_dynamic_prop): New function.
2192 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2193
2194 2020-08-15 Tom de Vries <tdevries@suse.de>
2195
2196 PR backtrace/26390
2197 * stack.c (print_frame_args): Temporarily set the selected
2198 frame to FRAME while printing the frame's arguments.
2199
2200 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2201
2202 PR breakpoints/26385
2203 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2204 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2205
2206 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2207
2208 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2209 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2210 and >= to check return value instead of == -1 and != -1.
2211
2212 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2213
2214 * utils.h (class gdb_argv) <as_array_view>: New method.
2215 * utils.c (gdb_argv_as_array_view_test): New.
2216 (_initialize_utils): Register selftest.
2217 * maint.c (maintenance_selftest): Use the new method.
2218
2219 2020-08-13 Kamil Rytarowski <n54@gmx.com>
2220
2221 * target.h (supports_dumpcore, dumpcore): New
2222 function declarations.
2223 * target.c (supports_dumpcore, dumpcore): New
2224 functions.
2225 * target-delegates.c: Rebuild.
2226 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2227 and target_dumpcore ().
2228
2229 2020-08-13 Aaron Merey <amerey@redhat.com>
2230
2231 * debuginfod-support.c: Replace global variables with user_data.
2232
2233 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2234
2235 * maint.c (maintenance_selftest): Split args and pass array_view
2236 to run_tests.
2237
2238 2020-08-12 Luis Machado <luis.machado@linaro.org>
2239
2240 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2241 type's length.
2242 Use %s and pulongest to print the length.
2243
2244 2020-08-12 Pedro Alves <palves@redhat.com>
2245
2246 * NEWS: Move "Multi-target debugging support" item to the
2247 "Changes since GDB 9" section.
2248
2249 2020-08-12 Pedro Alves <palves@redhat.com>
2250
2251 PR gdb/26336
2252 * progspace.c (program_space::remove_objfile): Invalidate the
2253 frame cache.
2254
2255 2020-08-11 Tom de Vries <tdevries@suse.de>
2256
2257 * MAINTAINERS: Mark ms1 as deleted.
2258
2259 2020-08-10 Luis Machado <luis.machado@linaro.org>
2260
2261 PR gdb/26310
2262
2263 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2264 act accordingly.
2265 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2266 movz/str/stur/stp skipping behavior.
2267
2268 2020-08-10 Luis Machado <luis.machado@linaro.org>
2269
2270 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2271 struct user_sve_header instead of struct sve_context.
2272
2273 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2274
2275 * read.h (dwarf2_fetch_die_loc_sect_off,
2276 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2277 `void *` parameter with function_view.
2278 * read.c (dwarf2_fetch_die_loc_sect_off,
2279 dwarf2_fetch_die_loc_cu_off): Likewise.
2280 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2281 (per_cu_dwarf_call): Adjust.
2282 (get_frame_address_in_block_wrapper): Remove.
2283 (indirect_synthetic_pointer): Adjust.
2284 (get_ax_pc): Remove.
2285 (dwarf2_compile_expr_to_ax): Adjust.
2286
2287 2020-08-08 Tom de Vries <tdevries@suse.de>
2288
2289 PR build/26344
2290 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2291 constructor.
2292 * regcache.c (get_thread_arch_aspace_regcache): Same.
2293
2294 2020-08-07 Tom Tromey <tromey@adacore.com>
2295
2296 * ravenscar-thread.c
2297 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2298 New method.
2299 (ravenscar_thread_target::wait): Check
2300 runtime_initialized.
2301 (ravenscar_thread_target::prepare_to_store)
2302 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2303 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2304 (ravenscar_thread_target::stopped_by_watchpoint)
2305 (ravenscar_thread_target::stopped_data_address)
2306 (ravenscar_thread_target::core_of_thread): Use
2307 scoped_restore_current_thread and
2308 set_base_thread_from_ravenscar_task.
2309
2310 2020-08-07 Tom Tromey <tromey@adacore.com>
2311
2312 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2313
2314 2020-08-07 Tom Tromey <tromey@adacore.com>
2315
2316 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2317 update_inferior_ptid before update_thread_list.
2318 (temporarily_change_regcache_ptid): New class.
2319 (ravenscar_thread_target::fetch_registers)
2320 (ravenscar_thread_target::store_registers)
2321 (ravenscar_thread_target::prepare_to_store): Use base thread when
2322 forwarding operation.
2323
2324 2020-08-07 Tom Tromey <tromey@adacore.com>
2325
2326 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2327 "is_pid" case.
2328
2329 2020-08-07 Tom Tromey <tromey@adacore.com>
2330
2331 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2332 New methods.
2333 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2334 first.
2335 (ravenscar_thread_target::add_thread): Rename from
2336 ravenscar_add_thread.
2337 (ravenscar_thread_target::update_thread_list): Use a lambda.
2338 (ravenscar_thread_target::xfer_partial): New method.
2339
2340 2020-08-07 Tom Tromey <tromey@adacore.com>
2341
2342 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2343 gdb::function_view.
2344 (iterate_over_live_ada_tasks): Change type of argument.
2345 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2346 of argument.
2347
2348 2020-08-07 Tom Tromey <tromey@adacore.com>
2349
2350 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2351 Remove.
2352 (ravenscar_thread_target::extra_thread_info): Remove.
2353 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2354 defer to target beneath for non-Ravenscar threads.
2355
2356 2020-08-07 Tom Tromey <tromey@adacore.com>
2357
2358 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2359 get_base_thread_from_ravenscar_task>: Now methods.
2360 <m_cpu_map>: New member.
2361 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2362 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2363 (ravenscar_thread_target::task_is_currently_active): Update.
2364 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2365 Now a method.
2366 (ravenscar_thread_target::add_active_thread): Put initial thread
2367 into the m_cpu_map.
2368
2369 2020-08-07 Tom Tromey <tromey@adacore.com>
2370
2371 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2372 event_ptid.
2373
2374 2020-08-07 Tom Tromey <tromey@adacore.com>
2375
2376 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2377 runtime_initialized.
2378
2379 2020-08-07 Tom Tromey <tromey@adacore.com>
2380
2381 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2382 add_active_thread.
2383 (ravenscar_thread_target::add_active_thread): Now public.
2384 (ravenscar_inferior_created): Call add_active_thread after pushing
2385 the target.
2386
2387 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2388
2389 * regcache.c (ptid_regcache_map): New type.
2390 (target_ptid_regcache_map): New type.
2391 (regcaches): Change type to target_ptid_regcache_map.
2392 (get_thread_arch_aspace_regcache): Update to regcaches' new
2393 type.
2394 (regcache_thread_ptid_changed): Likewise.
2395 (registers_changed_ptid): Likewise.
2396 (regcaches_size): Likewise.
2397 (regcaches_test): Update.
2398 (regcache_thread_ptid_changed): Update.
2399 * regcache.h (regcache_up): New type.
2400 * gdbsupport/ptid.h (hash_ptid): New struct.
2401
2402 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
2403
2404 * observable.h (thread_ptid_changed): Add parameter
2405 `process_stratum_target *`.
2406 * infrun.c (infrun_thread_ptid_changed): Add parameter
2407 `process_stratum_target *` and use it.
2408 (selftests): New namespace.
2409 (infrun_thread_ptid_changed): New function.
2410 (_initialize_infrun): Register selftest.
2411 * regcache.c (regcache_thread_ptid_changed): Add parameter
2412 `process_stratum_target *` and use it.
2413 (regcache_thread_ptid_changed): New function.
2414 (_initialize_regcache): Register selftest.
2415 * thread.c (thread_change_ptid): Pass target to
2416 thread_ptid_changed observable.
2417
2418 2020-08-06 Caroline Tice <cmtice@google.com>
2419
2420 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2421 (struct dwp_sections): Update field comments. Add loclists and
2422 rnglists fields.
2423 (struct virtual_v2_dwo_sections): Rename struct to
2424 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2425 size & offset fields for loclists and rnglists.
2426 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2427 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2428 skipping dummy type units.
2429 (create_dwp_hash_table): Update the large comment above the function to
2430 discuss Version 5 DWP files as well, with references. Update all the
2431 version checks in the function to check for version 5 as well. Add new
2432 section at the end to create dwp hash table for version 5.
2433 (create_dwp_v2_section): Rename function to
2434 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2435 Add V5 to error message text.
2436 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2437 into calls to create_dwp_v2_or_v5_section.
2438 (create_dwo_unit_in_dwp_v5): New function.
2439 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2440 check for version2; add else clause to handle version 5.
2441 (open_and_init_dwo_file): Add code to check dwarf version & only call
2442 create_debug_types_hash_table (with sections.types) if version is not 5;
2443 else call create_debug_type_hash_table, with sections.info.
2444 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2445 version 5.
2446 (dwarf2_locate_v5_dwp_sections): New function.
2447 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2448 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
2449
2450 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
2451
2452 * regcache.h (class regcache): Remove friend
2453 registers_changed_ptid.
2454 <regcache_thread_ptid_changed>: Remove.
2455 <regcaches>: Remove.
2456 * regcache.c (regcache::regcaches): Rename to...
2457 (regcaches): ... this. Make static.
2458 (get_thread_arch_aspace_regcache): Update.
2459 (regcache::regcache_thread_ptid_changed): Rename to...
2460 (regcache_thread_ptid_changed): ... this. Update.
2461 (class regcache_access): Remove.
2462 (regcaches_test): Update.
2463 (_initialize_regcache): Update.
2464 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2465 <forward_list>.
2466
2467 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
2468
2469 * regcache.h (class regcache) <current_regcache>: Rename to...
2470 <regcaches>: ... this. Move doc here.
2471 * regcache.c (regcache::current_regcache) Rename to...
2472 (regcache::regcaches): ... this. Move doc to header.
2473 (get_thread_arch_aspace_regcache): Update.
2474 (regcache::regcache_thread_ptid_changed): Update.
2475 (registers_changed_ptid): Update.
2476 (class regcache_access) <current_regcache_size>: Rename to...
2477 <regcaches_size>: ... this.
2478 (current_regcache_test): Rename to...
2479 (regcaches_test): ... this.
2480 (_initialize_regcache): Update.
2481
2482 2020-08-06 Victor Collod <vcollod@nvidia.com>
2483
2484 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2485
2486 2020-08-05 Kevin Buettner <kevinb@redhat.com>
2487
2488 * corelow.c (core_target::build_file_mappings): Don't output
2489 null pathname in warning.
2490
2491 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2492
2493 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2494 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2495 gdb.dwarf2/dw2-single-line-discriminators.exp,
2496 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2497
2498 2020-08-05 Tom Tromey <tromey@adacore.com>
2499
2500 PR rust/26197:
2501 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2502 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2503 Fix off-by-one and type size errors in ordinary case.
2504
2505 2020-08-05 Tom de Vries <tdevries@suse.de>
2506
2507 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2508 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2509
2510 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
2511
2512 * frame.h (frame_id_p): Return bool.
2513 (frame_id_artificial_p): Return bool.
2514 (frame_id_eq): Return bool.
2515 (has_stack_frames): Return bool.
2516 (get_selected_frame): Fix typo in comment.
2517 (get_frame_pc_if_available): Return bool.
2518 (get_frame_address_in_block_if_available): Return bool.
2519 (get_frame_func_if_available): Return bool.
2520 (read_frame_register_unsigned): Return bool.
2521 (get_frame_register_bytes): Return bool.
2522 (safe_frame_unwind_memory): Return bool.
2523 (deprecated_frame_register_read): Return bool.
2524 (frame_unwinder_is): Return bool.
2525 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2526 bool.
2527 <this_id::p>: Likewise.
2528 <prev_p>: Likewise.
2529 (frame_stash_add): Return bool.
2530 (get_frame_id): Use bool.
2531 (frame_id_build_special) Use bool.
2532 (frame_id_build_unavailable_stack): Use bool.
2533 (frame_id_build): Use bool.
2534 (frame_id_p): Return bool, use true/false instead of 1/0.
2535 (frame_id_artificial_p): Likewise.
2536 (frame_id_eq): Likewise.
2537 (frame_id_inner): Likewise.
2538 (get_frame_func_if_available): Likewise.
2539 (read_frame_register_unsigned): Likewise.
2540 (deprecated_frame_register_read): Likewise.
2541 (get_frame_register_bytes): Likewise.
2542 (has_stack_frames): Likewise.
2543 (inside_main_func): Likewise.
2544 (inside_entry_func): Likewise.
2545 (get_frame_pc_if_available): Likewise.
2546 (get_frame_address_in_block_if_available): Likewise.
2547 (frame_unwinder_is): Likewise.
2548 (safe_frame_unwind_memory): Likewise.
2549 (frame_unwind_arch): Likewise.
2550
2551 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
2552
2553 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2554 type to cached_copy_status.
2555 (fprintf_frame): Adjust.
2556 (get_frame_func_if_available): Adjust.
2557 (frame_cleanup_after_sniffer): Adjust.
2558
2559 2020-08-04 Mark Wielaard <mark@klomp.org>
2560
2561 * MAINTAINERS (Write After Approval): Update email address.
2562
2563 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2564
2565 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2566 dynamic_prop::const_val.
2567
2568 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2569
2570 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2571 dynamic_prop::kind.
2572
2573 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2574
2575 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2576
2577 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2578
2579 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2580
2581 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
2582 Jose E. Marchesi <jose.marchesi@oracle.com>
2583
2584 * configure.tgt: Add entry for bpf-*-*.
2585 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2586 (ALLDEPFILES): Add bpf-tdep.c.
2587 * bpf-tdep.c: New file.
2588 * MAINTAINERS: Add bpf target and maintainer.
2589 * NEWS: Mention the support for the new target.
2590
2591 2020-08-04 Tom de Vries <tdevries@suse.de>
2592
2593 PR symtab/23270
2594 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2595 Error.
2596
2597 2020-08-03 John Baldwin <jhb@FreeBSD.org>
2598
2599 * syscalls/freebsd.xml: Regenerate.
2600
2601 2020-08-03 John Baldwin <jhb@FreeBSD.org>
2602
2603 * syscalls/update-freebsd.sh: Fix usage and year range.
2604
2605 2020-08-03 Tom de Vries <tdevries@suse.de>
2606
2607 PR symtab/26333
2608 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2609 DW_LNE_lo_user/DW_LNE_hi_user range.
2610
2611 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2612
2613 PR ada/26318
2614 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2615 kind.
2616
2617 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2618
2619 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2620
2621 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2622
2623 * breakpoint.c (set_breakpoint_condition): Update the condition
2624 expressions after checking that the input condition string parses
2625 successfully and does not contain junk at the end.
2626
2627 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2628
2629 * breakpoint.c (set_breakpoint_condition): Update the
2630 condition string after parsing the new condition successfully.
2631
2632 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2633
2634 * proc-api.c (_STRUCTURED_PROC): Don't define.
2635 * proc-events.c: Likewise.
2636 * proc-flags.c: Likewise.
2637 * proc-why.c: Likewise.
2638 * procfs.c: Likewise.
2639
2640 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2641 * configure, config.in: Regenerate.
2642
2643 2020-07-30 Tom de Vries <tdevries@suse.de>
2644
2645 PR build/26320
2646 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2647 m_red/m_green/m_blue in a union.
2648
2649 2020-07-29 Tom de Vries <tdevries@suse.de>
2650
2651 PR tdep/26280
2652 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2653
2654 2020-07-28 Tom Tromey <tromey@adacore.com>
2655
2656 PR symtab/26270:
2657 * symtab.h (find_pc_partial_function_sym): Declare.
2658 * cli/cli-cmds.c (disassemble_command): Use
2659 find_pc_partial_function_sym. Check asm_demangle.
2660 * blockframe.c (cache_pc_function_sym): New global.
2661 (cache_pc_function_name): Remove.
2662 (clear_pc_function_cache): Update.
2663 (find_pc_partial_function_sym): New function, from
2664 find_pc_partial_function.
2665 (find_pc_partial_function): Rewrite using
2666 find_pc_partial_function_sym.
2667
2668 2020-07-28 Tom Tromey <tromey@adacore.com>
2669
2670 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2671 help. Add usage.
2672
2673 2020-07-28 Tom Tromey <tromey@adacore.com>
2674
2675 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2676 <DW_OP_GNU_variable_value>: Cast to address type.
2677
2678 2020-07-28 Kamil Rytarowski <n54@gmx.com>
2679
2680 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2681 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2682 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2683 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2684 (nbsd_get_siginfo_type): New.
2685 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2686 (_initialize_nbsd_tdep): New.
2687
2688 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2689
2690 PR binutils/26301
2691 * configure: Regenerated.
2692
2693 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2694
2695 PR binutils/26301
2696 * configure: Regenerated.
2697
2698 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2699
2700 * python/py-frame.c: Remove 'user-regs.h' include.
2701 (frapy_read_register): Rewrite to make use of
2702 gdbpy_parse_register_id.
2703 * python/py-registers.c (gdbpy_parse_register_id): New function,
2704 moved here from python/py-unwind.c. Updated the return type, and
2705 also accepts register descriptor objects.
2706 * python/py-unwind.c: Remove 'user-regs.h' include.
2707 (pyuw_parse_register_id): Moved to python/py-registers.c.
2708 (unwind_infopy_add_saved_register): Update to use
2709 gdbpy_parse_register_id.
2710 (pending_framepy_read_register): Likewise.
2711 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2712
2713 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2714
2715 * python/py-registers.c: Add 'user-regs.h' include.
2716 (register_descriptor_iter_find): New function.
2717 (register_descriptor_iterator_object_methods): New static global
2718 methods array.
2719 (register_descriptor_iterator_object_type): Add pointer to methods
2720 array.
2721
2722 2020-07-27 John Baldwin <jhb@FreeBSD.org>
2723
2724 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2725 for all architectures on FreeBSD 11.3 and later.
2726
2727 2020-07-27 Tom Tromey <tromey@adacore.com>
2728
2729 * gcore.h (load_corefile): Don't declare.
2730
2731 2020-07-27 Tom de Vries <tdevries@suse.de>
2732
2733 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2734 * config.in: Regenerate.
2735 * configure: Regenerate.
2736
2737 2020-07-26 Eli Zaretskii <eliz@gnu.org>
2738
2739 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2740 ws2tcpip.h. When checking whether socklen_t type is defined, use
2741 ws2tcpip.h if it is available and sys/socket.h isn't.
2742 * configure: Regenerate.
2743 * config.in: Regenerate.
2744
2745 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2746
2747 PR fortran/23051
2748 PR fortran/26139
2749 * valops.c (value_ind): Pass address to
2750 readjust_indirect_value_type.
2751 * value.c (readjust_indirect_value_type): Make parameter
2752 non-const, and add extra address parameter. Resolve original type
2753 before using it.
2754 * value.h (readjust_indirect_value_type): Update function
2755 signature and comment.
2756
2757 2020-07-25 Tom de Vries <tdevries@suse.de>
2758
2759 PR symtab/26243
2760 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2761 entries.
2762
2763 2020-07-24 Aaron Merey <amerey@redhat.com>
2764
2765 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2766 * configure: Rebuild.
2767
2768 2020-07-23 Kevin Buettner <kevinb@redhat.com>
2769
2770 PR corefiles/26294
2771 * corelow.c (_initialize_corelow): Add period to help text
2772 for "maintenance print core-file-backed-mappings".
2773
2774 2020-07-23 Pedro Alves <pedro@palves.net>
2775
2776 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2777 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2778 meanwhile.
2779 * frame.c (frame_cache_generation, get_frame_cache_generation):
2780 New.
2781 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2782 (get_prev_frame_if_no_cycle): On exception, don't touch
2783 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2784 * frame.h (get_frame_cache_generation): Declare.
2785
2786 2020-07-23 Tom de Vries <tdevries@suse.de>
2787
2788 PR tui/26282
2789 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2790 New default constructor.
2791
2792 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2793
2794 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2795 exclude non-statement entries.
2796
2797 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2798
2799 * NEWS (New commands): Mention new command
2800 "maintenance print core-file-backed-mappings".
2801
2802 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2803
2804 * corelow.c (gdbcmd.h): Include.
2805 (core_target::info_proc_mappings): New method.
2806 (get_current_core_target): New function.
2807 (maintenance_print_core_file_backed_mappings): New function.
2808 (_initialize_corelow): Add core-file-backed-mappings to
2809 "maint print" commands.
2810
2811 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2812
2813 * linux-tdep.c (dump_note_entry_p): New function.
2814 (linux_dump_mapping_p_ftype): New typedef.
2815 (linux_find_memory_regions_full): Add new parameter,
2816 should_dump_mapping_p.
2817 (linux_find_memory_regions): Adjust call to
2818 linux_find_memory_regions_full.
2819 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2820 call to linux_find_memory_regions_full.
2821
2822 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2823
2824 * corelow.c (solist.h, unordered_map): Include.
2825 (class core_target): Add field m_core_file_mappings and
2826 method build_file_mappings.
2827 (core_target::core_target): Call build_file_mappings.
2828 (core_target::~core_target): Free memory associated with
2829 m_core_file_mappings.
2830 (core_target::build_file_mappings): New method.
2831 (core_target::xfer_partial): Use m_core_file_mappings
2832 for memory transfers.
2833 * linux-tdep.c (linux_read_core_file_mappings): New
2834 function.
2835 (linux_core_info_proc_mappings): Rewrite to use
2836 linux_read_core_file_mappings.
2837 (linux_init_abi): Register linux_read_core_file_mappings.
2838
2839 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2840
2841 * arch-utils.c (default_read_core_file_mappings): New function.
2842 * arch-utils.c (default_read_core_file_mappings): Declare.
2843 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
2844 * gdbarch.h, gdbarch.c: Regenerate.
2845
2846 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2847
2848 PR corefiles/25631
2849 * corelow.c (core_target:xfer_partial): Revise
2850 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
2851 case after first checking the stratum beneath the core
2852 target.
2853 (has_all_memory): Return true.
2854 * target.c (raw_memory_xfer_partial): Revise comment
2855 regarding use of has_all_memory.
2856
2857 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2858
2859 * exec.h (section_table_xfer_memory): Revise declaration,
2860 replacing section name parameter with an optional callback
2861 predicate.
2862 * exec.c (section_table_xfer_memory): Likewise.
2863 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2864 of section_table_xfer_memory.
2865
2866 2020-07-22 Tom Tromey <tromey@adacore.com>
2867
2868 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2869 lookup_symbol_search_name.
2870
2871 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2872
2873 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2874 redundant local variable.
2875 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2876 reference, not pointer, update code accordingly.
2877
2878 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2879 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2880
2881 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2882 * jit.c (jit_breakpoint_re_set_internal): Use the
2883 `skip_jit_symbol_lookup` field.
2884
2885 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2886 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2887
2888 * jit.c (jit_read_descriptor): Define the descriptor address once,
2889 use twice.
2890 (jit_breakpoint_deleted): Move the declaration of the loop variable
2891 `iter` into the loop header.
2892 (jit_breakpoint_re_set_internal): Move the declaration of the local
2893 variable `objf_data` to the first point of definition.
2894 (jit_event_handler): Move the declaration of local variables
2895 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2896 Rename `objf` to `jited`.
2897
2898 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2899
2900 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2901 Remove.
2902 * jit.c (get_jiter_objfile_data): Update.
2903
2904 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2905 Simon Marchi <simon.marchi@polymtl.ca>
2906
2907 * jit.c (struct jit_program_space_data): Remove.
2908 (jit_program_space_key): Remove.
2909 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2910 stuff.
2911 (get_jit_program_space_data): Remove.
2912 (jit_breakpoint_deleted): Iterate on all of the program space's
2913 objfiles.
2914 (jit_inferior_init): Likewise.
2915 (jit_breakpoint_re_set_internal): Likewise. Also change return
2916 type to void.
2917 (jit_breakpoint_re_set): Pass current_program_space to
2918 jit_breakpoint_re_set_internal.
2919
2920 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2921
2922 * jit.h (struct jiter_objfile_data) <cached_code_address,
2923 jit_breakpoint>: Move to here from ...
2924 * jit.c (jit_program_space_data): ... here.
2925 (jiter_objfile_data::~jiter_objfile_data): Update.
2926 (jit_breakpoint_deleted): Update.
2927 (jit_breakpoint_re_set_internal): Update.
2928
2929 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2930
2931 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2932 checks.
2933 (jit_read_descriptor): Remove NULL check.
2934 (jit_event_handler): Add an assertion.
2935
2936 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2937
2938 * jit.h (struct jit_objfile_data): Split into...
2939 (struct jiter_objfile_data): ... this ...
2940 (struct jited_objfile_data): ... and this.
2941 * objfiles.h (struct objfile) <jit_data>: Remove.
2942 <jiter_data, jited_data>: New fields.
2943 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2944 (jiter_objfile_data::~jiter_objfile_data): ... this.
2945 (get_jit_objfile_data): Rename to ...
2946 (get_jiter_objfile_data): ... this.
2947 (add_objfile_entry): Update.
2948 (jit_read_descriptor): Use get_jiter_objfile_data.
2949 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2950 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2951 (jit_inferior_exit_hook): Use objfile's jited_data field.
2952
2953 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2954
2955 * jit.h: Forward-declare `struct minimal_symbol`.
2956 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2957 constructor, destructor, and an objfile* field.
2958 * jit.c (jit_objfile_data): Remove.
2959 (struct jit_objfile_data): Migrate from here to jit.h.
2960 (jit_objfile_data::~jit_objfile_data): New destructor
2961 implementation with code moved from free_objfile_data.
2962 (free_objfile_data): Delete.
2963 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2964 (jit_find_objf_with_entry_addr): Ditto.
2965 (jit_inferior_exit_hook): Ditto.
2966 (_initialize_jit): Remove the call to
2967 register_objfile_data_with_cleanup.
2968 * objfiles.h (struct objfile) <jit_data>: New field.
2969
2970 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2971
2972 * jit.h: Forward-declare `struct objfile`.
2973 (jit_event_handler): Add a second parameter, the JITer objfile.
2974 * jit.c (jit_read_descriptor): Change the signature to take the
2975 JITer objfile as an argument instead of the jit_program_space_data.
2976 (jit_inferior_init): Update the call to jit_read_descriptor.
2977 (jit_event_handler): Use the new JITer objfile argument when calling
2978 jit_read_descriptor.
2979 * breakpoint.c (handle_jit_event): Update the call to
2980 jit_event_handler to pass the JITer objfile.
2981
2982 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2983
2984 * gdbarch.c: Regenerate.
2985 * gdbarch.h: Regenerate.
2986 * gdbarch.sh (handle_segmentation_fault): Remove method.
2987 * infrun.c (handle_segmentation_fault): Remove.
2988 (print_signal_received_reason): Remove call to
2989 handle_segmentation_fault.
2990
2991 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2992
2993 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2994 Rename to sparc64_linux_report_signal_info and add siggnal
2995 argument.
2996 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2997 instead of sparc64_linux_handle_segmentation_fault.
2998
2999 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3000
3001 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
3002 i386_linux_report_signal_info instead of
3003 i386_linux_handle_segmentation_fault.
3004 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
3005 to i386_linux_report_signal_info and add siggnal argument.
3006 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
3007 of i386_linux_handle_segmentation_fault.
3008 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
3009 to i386_linux_report_signal_info and add siggnal argument.
3010
3011 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3012
3013 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
3014 hook if present.
3015
3016 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3017
3018 * gdbarch.c: Regenerate.
3019 * gdbarch.h: Regenerate.
3020 * gdbarch.sh (report_signal_info): New method.
3021 * infrun.c (print_signal_received_reason): Invoke gdbarch
3022 report_signal_info hook if present.
3023
3024 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3025
3026 * python/py-registers.c : Add 'unordered_map' include.
3027 (gdbpy_new_reggroup): Renamed to...
3028 (gdbpy_get_reggroup): ...this. Update to only create register
3029 group descriptors when needed.
3030 (gdbpy_reggroup_iter_next): Update.
3031
3032 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3033
3034 * python/py-registers.c (gdbpy_register_object_data): New static
3035 global.
3036 (gdbpy_register_object_data_init): New function.
3037 (gdbpy_new_register_descriptor): Renamed to...
3038 (gdbpy_get_register_descriptor): ...this, and update to reuse
3039 existing register descriptors where possible.
3040 (gdbpy_register_descriptor_iter_next): Update.
3041 (gdbpy_initialize_registers): Register new gdbarch data.
3042
3043 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
3044
3045 * linux-nat.c (stopped_pids): Make static.
3046
3047 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3048
3049 PR ada/26235
3050 * gdbtypes.c (ada_discrete_type_low_bound,
3051 ada_discrete_type_high_bound): Handle undefined bounds.
3052
3053 2020-07-21 Kamil Rytarowski <n54@gmx.com>
3054
3055 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
3056 declaration.
3057 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
3058 function.
3059
3060 2020-07-20 John Baldwin <jhb@FreeBSD.org>
3061
3062 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
3063 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
3064 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
3065 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
3066 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
3067 method.
3068
3069 2020-07-20 Ludovic Courtès <ludo@gnu.org>
3070
3071 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
3072 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
3073 which are deprecated in Guile 3.0.
3074 * configure.ac (try_guile_versions): Add "guile-3.0".
3075 * configure (try_guile_versions): Regenerate.
3076 * NEWS: Update entry.
3077
3078 2020-07-20 Ludovic Courtès <ludo@gnu.org>
3079 Doug Evans <dje@google.com>
3080
3081 PR gdb/21104
3082 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
3083 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
3084 USING_GUILE_BEFORE_2_2.
3085 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
3086 Change type to 'scm_t_port_type *'.
3087 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
3088 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
3089 parameter and honor it. Update callers.
3090 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
3091 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
3092 functions.
3093 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
3094 USING_GUILE_BEFORE_2_2.
3095 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
3096 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
3097 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
3098 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
3099 and 'SCM_PORT_TYPE'.
3100 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
3101 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
3102 (gdbscm_memory_port_read, gdbscm_memory_port_write)
3103 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
3104 [!USING_GUILE_BEFORE_2_2]: New functions.
3105 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
3106 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
3107 'gdbscm_memory_port_read'.
3108 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
3109 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
3110 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
3111 function.
3112 (ioscm_init_memory_port): Remove.
3113 (ioscm_init_memory_port_stream): New function
3114 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
3115 function.
3116 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3117 Return scm_from_uint (0).
3118 (gdbscm_set_memory_port_read_buffer_size_x)
3119 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3120 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3121 Return scm_from_uint (0).
3122 (gdbscm_set_memory_port_write_buffer_size_x)
3123 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3124 * configure.ac (try_guile_versions): Add "guile-2.2".
3125 * configure: Regenerate.
3126 * NEWS: Add entry.
3127
3128 2020-07-18 Tom Tromey <tom@tromey.com>
3129
3130 * linux-nat.c (linux_multi_process): Remove.
3131 (linux_nat_target::supports_multi_process): Return true.
3132
3133 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3134
3135 * arch/riscv.c (riscv_tdesc_cache): Change map type.
3136 (riscv_lookup_target_description): Return pointer out of
3137 unique_ptr.
3138 * target-descriptions.c (allocate_target_description): Add
3139 comment.
3140 (target_desc_deleter::operator()): Likewise.
3141 * target-descriptions.h (struct target_desc_deleter): Moved to
3142 gdbsupport/tdesc.h.
3143 (target_desc_up): Likewise.
3144
3145 2020-07-17 Tom Tromey <tromey@adacore.com>
3146
3147 * linux-nat.c (linux_nat_target::supports_non_stop)
3148 (linux_nat_target::always_non_stop_p): Use "true".
3149 (linux_nat_target::supports_disable_randomization): Use "true" and
3150 "false".
3151
3152 2020-07-16 Caroline Tice <cmtice@google.com>
3153
3154 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3155 (RNGLIST_HEADER_SIZE64): New constant definition.
3156 (struct dwop_section_names): Add rnglists_dwo.
3157 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3158 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3159 (struct dwo_sections): Add rnglists field.
3160 (read_attribut_reprocess): Add tag parameter.
3161 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3162 (cu_debug_rnglists_section): New function (decl & definition).
3163 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3164 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3165 die whose range is being checked; get rnglist section from
3166 cu_debug_rnglists_section, to get from either objfile or dwo file as
3167 appropriate. Add cases for DW_RLE_base_addressx,
3168 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3169 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3170 test inside if-condition and updating complaint message.
3171 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3172 dwarf2_rnglists_process.
3173 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3174 dwarf2_ranges_process.
3175 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3176 need_ranges_base and update comment appropriately. Also pass die tag
3177 to dwarf2_ranges_read.
3178 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3179 need_ranges_base and update comment appropriately. Also pass die tag
3180 to dwarf2_ranges_process.
3181 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3182 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3183 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3184 need_ranges_base and update comment appropriately. Also pass die tag
3185 to read_attribute_reprocess and dwarf2_ranges_read.
3186 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3187 and update function comment appropriately.
3188 (read_loclist_index): Call read_loclists_rnglists_header instead of
3189 read_loclist_header.
3190 (read_rnglist_index): New function.
3191 (read_attribute_reprocess): Add tag parameter. Add code for
3192 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3193 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3194
3195 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3196
3197 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3198 being resolved.
3199
3200 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3201
3202 * arch-utils.c (show_architecture): Update formatting of messages.
3203
3204 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3205
3206 * gdbtypes.h (struct type) <bounds>: Handle array and string
3207 types.
3208 * ada-lang.c (assign_aggregate): Use type::bounds on
3209 array/string type.
3210 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3211 * c-varobj.c (c_number_of_children): Likewise.
3212 (c_describe_child): Likewise.
3213 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3214 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3215 (f_type_print_base): Likewise.
3216 * f-valprint.c (f77_array_offset_tbl): Likewise.
3217 (f77_get_upperbound): Likewise.
3218 (f77_print_array_1): Likewise.
3219 * guile/scm-type.c (gdbscm_type_range): Likewise.
3220 * m2-typeprint.c (m2_array): Likewise.
3221 (m2_is_long_set_of_type): Likewise.
3222 * m2-valprint.c (get_long_set_bounds): Likewise.
3223 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3224 * python/py-type.c (typy_range): Likewise.
3225 * rust-lang.c (rust_internal_print_type): Likewise.
3226 * type-stack.c (type_stack::follow_types): Likewise.
3227 * valarith.c (value_subscripted_rvalue): Likewise.
3228 * valops.c (value_cast): Likewise.
3229
3230 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3231
3232 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3233 callers to use the equivalent accessor methods.
3234
3235 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3236
3237 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3238 (struct type) <bit_stride>: New method.
3239 (TYPE_BIT_STRIDE): Remove.
3240 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3241
3242 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3243
3244 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3245 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3246 callers to use the equivalent accessor methods instead.
3247
3248 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3249
3250 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3251 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3252 callers to use the equivalent accessor methods instead.
3253
3254 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3255
3256 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3257 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3258 to use dynamic_prop::kind.
3259
3260 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3261
3262 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3263 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3264 to get the bound property's kind and check against
3265 PROP_UNDEFINED.
3266
3267 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3268
3269 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3270 all callers to use type::range_bounds followed by
3271 dynamic_prop::{low,high}.
3272
3273 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3274
3275 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3276 const_val, set_const_val, baton, set_locexpr, set_loclist,
3277 set_addr_offset, variant_parts, set_variant_parts,
3278 original_type, set_original_type>: New methods.
3279 <kind>: Rename to...
3280 <m_kind>: ... this. Update all users to use the new methods
3281 instead.
3282 <data>: Rename to...
3283 <m_data>: ... this. Update all users to use the new methods
3284 instead.
3285
3286 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3287
3288 * gdbtypes.c (get_discrete_bounds): Return failure if
3289 the range type's bounds are not both defined and constant
3290 values.
3291 (get_array_bounds): Update comment. Remove undefined bound check.
3292
3293 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3294
3295 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3296 the type::bounds method directly.
3297
3298 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3299
3300 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3301 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3302 are used to set the range type's bounds to use set_bounds.
3303
3304 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3305
3306 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3307
3308 2020-07-10 Pedro Alves <pedro@palves.net>
3309
3310 * gdbthread.h (inferior_ref): Define.
3311 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3312 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3313 * thread.c
3314 (scoped_restore_current_thread::restore):
3315 Adjust to gdb::ref_ptr.
3316 (scoped_restore_current_thread::~scoped_restore_current_thread):
3317 Remove manual decref handling.
3318 (scoped_restore_current_thread::scoped_restore_current_thread):
3319 Adjust to use
3320 inferior_ref::new_reference/thread_info_ref::new_reference.
3321 Incref the thread before calling get_frame_id instead of after.
3322 Let TARGET_CLOSE_ERROR propagate.
3323
3324 2020-07-10 Pedro Alves <pedro@palves.net>
3325
3326 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3327 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3328 NOT_AVAILABLE_ERROR.
3329 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3330 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3331
3332 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3333 Pedro Alves <pedro@palves.net>
3334
3335 PR gdb/26199
3336 * infrun.c (threads_are_resumed_pending_p): Delete.
3337 (do_target_wait): Remove threads_are_executing and
3338 threads_are_resumed_pending_p checks from the inferior_matches
3339 lambda. Update comments.
3340
3341 2020-07-10 Pedro Alves <pedro@palves.net>
3342
3343 PR gdb/26199
3344 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3345 executing threads.
3346
3347 2020-07-10 Pedro Alves <pedro@palves.net>
3348
3349 PR gdb/26199
3350 * infrun.c (handle_no_resumed): Handle multiple targets.
3351
3352 2020-07-10 Pedro Alves <pedro@palves.net>
3353
3354 PR gdb/26199
3355 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3356 target_is_async_p.
3357
3358 2020-07-10 Pedro Alves <pedro@palves.net>
3359
3360 PR gdb/26199
3361 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3362 threads, not all threads.
3363
3364 2020-07-10 Pedro Alves <pedro@palves.net>
3365
3366 PR gdb/26199
3367 * remote.c (remote_target::open_1): Pass remote target pointer as
3368 data to create_async_event_handler.
3369 (remote_async_inferior_event_handler): Mark async event handler
3370 before returning if the remote target still has either pending
3371 events or unacknowledged notifications.
3372
3373 2020-07-10 John Baldwin <jhb@FreeBSD.org>
3374
3375 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3376 declaration.
3377 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3378 function.
3379
3380 2020-07-09 John Baldwin <jhb@FreeBSD.org>
3381
3382 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3383 inferior_ptid.
3384
3385 2020-07-09 John Baldwin <jhb@FreeBSD.org>
3386
3387 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3388 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3389 AT_FREEBSD_PS_STRINGS.
3390
3391 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
3392
3393 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3394 of debugfile path on Windows.
3395
3396 2020-07-08 John Baldwin <jhb@FreeBSD.org>
3397
3398 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3399 argument to 'data'.
3400
3401 2020-07-08 Tom Tromey <tromey@adacore.com>
3402
3403 * ada-lang.c (ada_exception_message_1): Use read_memory.
3404
3405 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3406
3407 PR python/22748
3408 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3409 special handling for inline frames.
3410 * findvar.c (value_of_register_lazy): Skip inline frames when
3411 creating lazy register values.
3412 * frame.c (frame_id_computed_p): Delete definition.
3413 * frame.h (frame_id_computed_p): Delete declaration.
3414
3415 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3416
3417 * NEWS: Mention additions to Python API.
3418 * python/py-arch.c (archpy_register_groups): New function.
3419 (arch_object_methods): Add 'register_groups' method.
3420 * python/py-registers.c (reggroup_iterator_object): New struct.
3421 (reggroup_object): New struct.
3422 (gdbpy_new_reggroup): New function.
3423 (gdbpy_reggroup_to_string): New function.
3424 (gdbpy_reggroup_name): New function.
3425 (gdbpy_reggroup_iter): New function.
3426 (gdbpy_reggroup_iter_next): New function.
3427 (gdbpy_new_reggroup_iterator): New function
3428 (gdbpy_initialize_registers): Register new types.
3429 (reggroup_iterator_object_type): Define new Python type.
3430 (gdbpy_reggroup_getset): New static global.
3431 (reggroup_object_type): Define new Python type.
3432 * python/python-internal.h
3433
3434 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3435
3436 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3437 * python/py-arch.c (archpy_registers): New function.
3438 (arch_object_methods): Add 'registers' method.
3439 * python/py-registers.c: New file.
3440 * python/python-internal.h
3441 (gdbpy_new_register_descriptor_iterator): Declare.
3442 (gdbpy_initialize_registers): Declare.
3443 * python/python.c (do_start_initialization): Call
3444 gdbpy_initialize_registers.
3445 * NEWS: Mention additions to the Python API.
3446
3447 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3448
3449 * NEWS: Mention new Python API method.
3450 * python/py-unwind.c (pending_framepy_architecture): New function.
3451 (pending_frame_object_methods): Add architecture method.
3452
3453 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3454
3455 * gdbarch.c: Regenerate.
3456 * gdbarch.h: Regenerate.
3457 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3458 (gdbarch_data): Use internal_error for the case where
3459 deprecated_set_gdbarch_data was originally needed.
3460 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3461 and use passed in obstack.
3462 (libunwind_frame_set_descr): Should no longer get back NULL from
3463 gdbarch_data.
3464 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3465 type.
3466 * user-regs.c (user_regs_init): Update parameters, and use passed
3467 in obstack.
3468 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3469 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3470
3471 2020-07-06 Tom de Vries <tdevries@suse.de>
3472
3473 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3474 End-Of-Sequence in lte_is_less_than.
3475 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3476 "gdb: Don't reorder line table entries too much when sorting".
3477
3478 2020-07-06 Tom de Vries <tdevries@suse.de>
3479
3480 PR tui/26205
3481 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3482
3483 2020-07-05 Tom de Vries <tdevries@suse.de>
3484
3485 PR build/26187
3486 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3487 std::uncaught_exceptions instead of deprecated
3488 std::uncaught_exception.
3489
3490 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3491
3492 * macroexp.h (macro_stringify): Return
3493 gdb::unique_xmalloc_ptr<char>.
3494 * macroexp.c (macro_stringify): Likewise.
3495 * macrotab.c (fixup_definition): Update.
3496
3497 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3498
3499 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3500 (lex_one_token): Update.
3501 * macroexp.c (struct macro_buffer) <release>: Return
3502 gdb::unique_xmalloc_ptr<char>.
3503 (macro_stringify): Update.
3504 (macro_expand): Update.
3505 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3506 * macroexp.h (macro_expand_next): Likewise.
3507
3508 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
3509
3510 * macroexp.h (macro_lookup_ftype): Remove.
3511 (macro_expand, macro_expand_once, macro_expand_next): Remove
3512 lookup function parameters, add scope parameter.
3513 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3514 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3515 * macroscope.h (standard_macro_lookup): Change parameter type
3516 to macro_scope.
3517 * macroscope.c (standard_macro_lookup): Likewise.
3518 * c-exp.y (lex_one_token): Update.
3519 * macrocmd.c (macro_expand_command): Likewise.
3520 (macro_expand_once_command): Likewise.
3521
3522 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3523
3524 * inf-loop.c (inferior_event_handler): Remove client_data param.
3525 * inf-loop.h (inferior_event_handler): Likewise.
3526 * infcmd.c (step_1): Adjust.
3527 * infrun.c (proceed): Adjust.
3528 (fetch_inferior_event): Remove client_data param.
3529 (infrun_async_inferior_event_handler): Adjust.
3530 * infrun.h (fetch_inferior_event): Remove `void *` param.
3531 * linux-nat.c (handle_target_event): Adjust.
3532 * record-btrace.c (record_btrace_handle_async_inferior_event):
3533 Adjust.
3534 * record-full.c (record_full_async_inferior_event_handler):
3535 Adjust.
3536 * remote.c (remote_async_inferior_event_handler): Adjust.
3537
3538 2020-07-01 Tom Tromey <tom@tromey.com>
3539
3540 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3541 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3542
3543 2020-07-01 Tom Tromey <tom@tromey.com>
3544
3545 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3546 tui_gen_win_info.
3547 (tui_win_info::make_window): Merge with
3548 tui_gen_win_info::make_window.
3549 (tui_win_info::make_visible): Move from tui_gen_win_info.
3550 * tui/tui-win.c (tui_win_info::max_width): Move from
3551 tui_gen_win_info.
3552 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3553 type.
3554 <window_factory>: Likewise.
3555 * tui/tui-layout.c (tui_win_info::resize): Move from
3556 tui_gen_win_info.
3557 (make_standard_window): Change return type.
3558 (get_locator_window, tui_get_window_by_name): Likewise.
3559 (tui_layout_window::apply): Remove a cast.
3560 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3561 (struct tui_win_info): Merge with tui_gen_win_info.
3562 (struct tui_gen_win_info): Remove.
3563
3564 2020-07-01 Tom Tromey <tom@tromey.com>
3565
3566 * tui/tui-stack.h (struct tui_locator_window): Derive from
3567 tui_win_info.
3568 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3569 <can_box>: New method.
3570
3571 2020-07-01 Tom Tromey <tom@tromey.com>
3572
3573 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3574
3575 2020-07-01 Tom Tromey <tom@tromey.com>
3576
3577 * tui/tui-regs.c (tui_data_window::display_registers_from)
3578 (tui_data_window::display_registers_from)
3579 (tui_data_window::first_data_item_displayed)
3580 (tui_data_window::delete_data_content_windows): Update.
3581 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3582 Remove.
3583 (tui_data_window::check_register_values): Update.
3584 (tui_data_item_window::rerender): Add parameters. Update.
3585 (tui_data_item_window::refresh_window): Remove.
3586 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3587 virtual.
3588 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3589 tui_gen_win_info.
3590 <refresh_window, max_height, min_height>: Remove.
3591 <rerender>: Add parameters.
3592 <x, y, visible>: New members.
3593 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3594 <m_item_width>: New member.
3595
3596 2020-07-01 Tom Tromey <tom@tromey.com>
3597
3598 * tui/tui-regs.c (tui_data_window::show_register_group)
3599 (tui_data_window::check_register_values): Update.
3600 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3601 from item_no.
3602
3603 2020-07-01 Tom Tromey <tom@tromey.com>
3604
3605 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3606 useless "if".
3607
3608 2020-07-01 Tom Tromey <tom@tromey.com>
3609
3610 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3611 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3612
3613 2020-07-01 Tom Tromey <tom@tromey.com>
3614
3615 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3616 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3617 (struct tui_line_or_address): Move from tui-data.h.
3618 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3619 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3620 (tui_cmd_window, tui_source_window_base, tui_source_window)
3621 (tui_disasm_window): Don't declare.
3622 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3623 to tui-winsource.h.
3624 (SINGLE_KEY): Move to tui-stack.c.
3625
3626 2020-07-01 Tom Tromey <tom@tromey.com>
3627
3628 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3629 std::string.
3630 * tui/tui-regs.c (class tab_expansion_file): New.
3631 (tab_expansion_file::write): New method.
3632 (tui_register_format): Change return type. Use
3633 tab_expansion_file.
3634 (tui_get_register, tui_data_window::display_registers_from)
3635 (tui_data_item_window::rerender): Update.
3636 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3637 * tui/tui-io.c (tui_expand_tabs): Remove.
3638
3639 2020-07-01 Tom Tromey <tom@tromey.com>
3640
3641 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3642
3643 2020-07-01 Fangrui Song <maskray@google.com>
3644
3645 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3646
3647 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3648
3649 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3650 forms for DW_AT_associated and DW_AT_allocated attributes,
3651 which is already checked in function attr_to_dynamic_prop.
3652
3653 2020-06-30 Tom Tromey <tromey@adacore.com>
3654
3655 * dwarf2/read.c (quirk_rust_enum): Correctly call
3656 alloc_rust_variant for default-less enum.
3657
3658 2020-06-30 Tom Tromey <tromey@adacore.com>
3659
3660 PR build/26183:
3661 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3662 gdb::to_string.
3663
3664 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
3665
3666 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3667 * gdbarch.h: Re-generate.
3668
3669 2020-06-28 Tom Tromey <tom@tromey.com>
3670
3671 * command.h (cmd_types): Remove.
3672 (cmd_type): Don't declare.
3673 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3674 typedef.
3675 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3676 * cli/cli-decode.c (cmd_type): Remove.
3677
3678 2020-06-27 Pedro Alves <palves@redhat.com>
3679
3680 * fork-child.c (prefork_hook): Adjust.
3681 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3682 Delete.
3683 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3684 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3685 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3686 Remove declarations.
3687 (struct inferior) <set_tty, tty>: New methods.
3688 (struct inferior) <terminal>: Rename to ...
3689 (struct inferior) <m_terminal>: ... this and make private.
3690 * main.c (captured_main_1): Adjust.
3691 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3692 (mi_cmd_inferior_tty_show): Adjust.
3693 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3694 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3695
3696 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
3697
3698 * configure.ac: Add --enable-libctf: handle --disable-static
3699 properly.
3700 * acinclude.m4: sinclude ../config/enable.m4.
3701 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3702 (LIBCTF): Substitute in.
3703 (CTF_DEPS): New, likewise.
3704 (CLIBS): libctf needs symbols from libbfd: move earlier.
3705 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3706 flags.
3707 * ctfread.c: Surround in ENABLE_LIBCTF.
3708 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3709 * configure: Regenerate.
3710 * config.in: Likewise.
3711
3712 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
3713
3714 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3715
3716 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
3717
3718 * inferior.h (struct inferior) <terminal>: Change type to
3719 gdb::unique_xmalloc_ptr<char>.
3720 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3721 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3722 field, adjust to unique pointer.
3723 (get_inferior_io_terminal): Adjust to unique pointer.
3724
3725 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3726
3727 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3728 registers, not just the known core set of registers.
3729
3730 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3731
3732 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3733 fflags, frm, and fcsr registers.
3734 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3735 restore groups.
3736 (riscv_tdesc_unknown_reg): New function.
3737 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3738 tdesc_use_registers.
3739 * riscv-tdep.h (struct gdbarch_tdep): Add
3740 unknown_csrs_first_regnum, unknown_csrs_count,
3741 duplicate_fflags_regnum, duplicate_frm_regnum, and
3742 duplicate_fcsr_regnum fields.
3743
3744 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3745
3746 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3747 callback, use the callback (when not null) to help number unknown
3748 registers.
3749 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3750 (tdesc_use_registers): Add extra parameter to declaration.
3751
3752 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3753
3754 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3755 in the file.
3756 (class riscv_pending_register_alias): Likewise.
3757 (riscv_register_feature::register_info): Change 'required_p' field
3758 to 'required', and change its type. Add 'check' member function.
3759 (riscv_register_feature::register_info::check): Define new member
3760 function.
3761 (riscv_xreg_feature): Change initialisation of 'required' field.
3762 (riscv_freg_feature): Likewise.
3763 (riscv_virtual_feature): Likewise.
3764 (riscv_csr_feature): Likewise.
3765 (riscv_check_tdesc_feature): Take extra parameter, the csr
3766 tdesc_feature, rewrite the function to use the new
3767 riscv_register_feature::register_info::check function.
3768 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3769
3770 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3771
3772 * features/Makefile: Remove all references to the deleted files
3773 below.
3774 * features/riscv/32bit-csr.c: Deleted.
3775 * features/riscv/32bit-csr.xml: Deleted.
3776 * features/riscv/64bit-csr.c: Deleted.
3777 * features/riscv/64bit-csr.xml: Deleted.
3778 * features/riscv/rebuild-csr-xml.sh: Deleted.
3779
3780 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3781
3782 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3783 whitespace error for declaration of names member variable.
3784 (struct riscv_register_feature): Add new prefer_first_name member
3785 variable, and fix whitespace error in declaration of registers.
3786 (riscv_xreg_feature): Initialize prefer_first_name field.
3787 (riscv_freg_feature): Likewise.
3788 (riscv_virtual_feature): Likewise.
3789 (riscv_csr_feature): Likewise.
3790 (riscv_register_name): Expand on comments. Remove register name
3791 modifications for CSR and virtual registers.
3792
3793 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3794
3795 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3796 errors.
3797
3798 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3799
3800 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3801 riscv-opc.h.
3802 (class riscv_pending_register_alias): New class.
3803 (riscv_check_tdesc_feature): Take vector of pending aliases and
3804 populate it as appropriate.
3805 (riscv_setup_register_aliases): Delete.
3806 (riscv_gdbarch_init): Create vector of pending aliases and pass it
3807 to riscv_check_tdesc_feature in all cases. Use the vector to
3808 create the register aliases.
3809
3810 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3811
3812 * sol2-tdep.c (sol2_static_transform_name): Remove.
3813 (sol2_init_abi): Don't register it.
3814 * gdbarch.sh (static_transform_name): Remove.
3815 * gdbarch.c, gdbarch.h: Regenerate.
3816
3817 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3818 gdbarch_static_transform_name.
3819 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3820 * stabsread.c (define_symbol) <'X'>: Remove.
3821 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
3822 handling.
3823 <'V'>: Likewise.
3824 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
3825 <'S'>: Remove call to gdbarch_static_transform_name.
3826
3827 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3828
3829 * procfs.c (procfs_pre_trace): New function.
3830 (procfs_target::create_inferior): Pass it to fork_inferior.
3831
3832 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3833
3834 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
3835 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
3836 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
3837 sol2-tdep.o, sparc-sol2-tdep.o.
3838 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
3839 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
3840 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
3841 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
3842
3843 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3844
3845 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
3846 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
3847 Call sol2_init_abi.
3848 Remove calls to set_gdbarch_skip_solib_resolver,
3849 set_gdbarch_core_pid_to_str.
3850 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
3851 (i386_sol2_static_transform_name): Remove.
3852 (i386_sol2_init_abi): Call sol2_init_abi.
3853 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3854 set_gdbarch_static_transform_name,
3855 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3856 Use sol2_sigtramp_p.
3857 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
3858 (sol2_sigtramp_p): New function.
3859 (sol2_static_transform_name): New function.
3860 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3861 (sol2_init_abi): New function.
3862 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3863 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3864 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3865 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3866 (sparc_sol2_static_transform_name): Remove.
3867 (sparc32_sol2_init_abi): Call sol2_init_abi.
3868 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3869 set_gdbarch_static_transform_name,
3870 set_gdbarch_skip_solib_resolver,
3871 set_gdbarch_core_pid_to_str.
3872 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3873 (sparc_sol2_static_transform_name): Remove
3874 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3875 call sol2_sigtramp_p.
3876 (sparc64_sol2_init_abi): Call sol2_init_abi.
3877 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3878 set_gdbarch_static_transform_name,
3879 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3880
3881 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3882
3883 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3884 * exec.c (validate_exec_file): If from_tty, set both
3885 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3886 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3887 and from_tty, unconditionally ask a confirmation.
3888
3889 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3890
3891 * target-descriptions.c (tdesc_architecture_name): Protect against
3892 NULL pointer dereference.
3893 (maint_print_xml_tdesc_cmd): New function.
3894 (_initialize_target_descriptions): Register new 'maint print
3895 xml-tdesc' command and give it the filename completer.
3896 * NEWS: Mention new 'maint print xml-tdesc' command.
3897
3898 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3899
3900 * target-descriptions.c (class tdesc_compatible_info): New class.
3901 (struct target_desc): Change type of compatible vector.
3902 (tdesc_compatible_p): Update for change in type of
3903 target_desc::compatible.
3904 (tdesc_compatible_info_list): New function.
3905 (tdesc_compatible_info_arch_name): New function.
3906 (tdesc_add_compatible): Update for change in type of
3907 target_desc::compatible.
3908 (print_c_tdesc::visit_pre): Likewise.
3909
3910 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3911
3912 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3913 whitespace to underscore.
3914 (maint_print_c_tdesc_cmd): Use fake filename for target
3915 descriptions that came from the target.
3916 (_initialize_target_descriptions): Add filename command completion
3917 for 'maint print c-tdesc'.
3918
3919 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
3920
3921 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3922 lines.
3923
3924 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
3925
3926 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3927 lines.
3928 (dwarf2_find_location_expression): Likewise.
3929 (call_site_parameter_matches): Likewise.
3930 (dwarf2_compile_expr_to_ax): Likewise.
3931 (disassemble_dwarf_expression): Likewise.
3932 (loclist_describe_location): Likewise.
3933
3934 2020-06-23 Pedro Alves <palves@redhat.com>
3935
3936 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3937 progspace-and-thread.h. Include scoped-mock-context.h instead.
3938 (register_to_value_test): Use scoped_mock_context.
3939 * regcache.c: Include "scoped-mock-context.h".
3940 (cooked_read_test): Don't error out if a target is already pushed.
3941 Use scoped_mock_context. Adjust.
3942 * scoped-mock-context.h: New file.
3943
3944 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3945
3946 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3947 initializer.
3948 (ada_language::is_string_type_p): New member function.
3949 * c-lang.c (c_language_data): Delete la_is_string_type_p
3950 initializer.
3951 (cplus_language_data): Likewise.
3952 (asm_language_data): Likewise.
3953 (minimal_language_data): Likewise.
3954 * d-lang.c (d_language_data): Likewise.
3955 * f-lang.c (f_is_string_type_p): Delete function, implementation
3956 moved to f_language::is_string_type_p.
3957 (f_language_data): Delete la_is_string_type_p initializer.
3958 (f_language::is_string_type_p): New member function,
3959 implementation from f_is_string_type_p.
3960 * go-lang.c (go_is_string_type_p): Delete function, implementation
3961 moved to go_language::is_string_type_p.
3962 (go_language_data): Delete la_is_string_type_p initializer.
3963 (go_language::is_string_type_p): New member function,
3964 implementation from go_is_string_type_p.
3965 * language.c (language_defn::is_string_type_p): Define new member
3966 function.
3967 (default_is_string_type_p): Make static, add comment copied from
3968 header file.
3969 (unknown_language_data): Delete la_is_string_type_p initializer.
3970 (unknown_language::is_string_type_p): New member function.
3971 (auto_language_data): Delete la_is_string_type_p initializer.
3972 (auto_language::is_string_type_p): New member function.
3973 * language.h (language_data): Delete la_is_string_type_p field.
3974 (language_defn::is_string_type_p): Declare new function.
3975 (default_is_string_type_p): Delete desclaration, move comment to
3976 definition.
3977 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3978 moved to m2_language::is_string_type_p.
3979 (m2_language_data): Delete la_is_string_type_p initializer.
3980 (m2_language::is_string_type_p): New member function,
3981 implementation from m2_is_string_type_p.
3982 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3983 initializer.
3984 * opencl-lang.c (opencl_language_data): Likewise.
3985 * p-lang.c (pascal_is_string_type_p): Delete function,
3986 implementation moved to pascal_language::is_string_type_p.
3987 (pascal_language_data): Delete la_is_string_type_p initializer.
3988 (pascal_language::is_string_type_p): New member function,
3989 implementation from pascal_is_string_type_p.
3990 * rust-lang.c (rust_is_string_type_p): Delete function,
3991 implementation moved to rust_language::is_string_type_p.
3992 (rust_language_data): Delete la_is_string_type_p initializer.
3993 (rust_language::is_string_type_p): New member function,
3994 implementation from rust_is_string_type_p.
3995 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3996 is_string_type_p.
3997
3998 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3999
4000 * ada-lang.c (ada_language_data): Delete la_print_typedef
4001 initializer.
4002 (ada_language::print_typedef): New member function.
4003 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
4004 (cplus_language_data): Likewise.
4005 (asm_language_data): Likewise.
4006 (minimal_language_data): Likewise.
4007 * d-lang.c (d_language_data): Likewise.
4008 * f-lang.c (f_language_data): Likewise.
4009 (f_language::print_typedef): New member function.
4010 * go-lang.c (go_language_data): Delete la_print_typedef
4011 initializer.
4012 * language.c (language_defn::print_typedef): Define member
4013 function.
4014 (unknown_language_data): Delete la_print_typedef initializer.
4015 (unknown_language::print_typedef): New member function.
4016 (auto_language_data): Delete la_print_typedef initializer.
4017 (auto_language::print_typedef): New member function.
4018 * language.h (language_data): Delete la_print_typedef field.
4019 (language_defn::print_typedef): Declare new member function.
4020 (LA_PRINT_TYPEDEF): Update call to print_typedef.
4021 (default_print_typedef): Delete declaration.
4022 * m2-lang.c (m2_language_data): Delete la_print_typedef
4023 initializer.
4024 (m2_language::print_typedef): New member function.
4025 * objc-lang.c (objc_language_data): Delete la_print_typedef
4026 initializer.
4027 * opencl-lang.c (opencl_language_data): Likewise.
4028 * p-lang.c (pascal_language_data): Likewise.
4029 (pascal_language::print_typedef): New member function.
4030 * rust-lang.c (rust_print_typedef): Delete function,
4031 implementation moved to rust_language::print_typedef.
4032 (rust_language): Delete la_print_typedef initializer.
4033 (rust_language::print_typedef): New member function,
4034 implementation from rust_print_typedef.
4035 * typeprint.c (default_print_typedef): Delete.
4036
4037 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4038
4039 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
4040 (ada_language::printstr): New member function.
4041 * c-lang.c (c_language_data): Delete la_printstr initializer.
4042 (cplus_language_data): Likewise.
4043 (asm_language_data): Likewise.
4044 (minimal_language_data): Likewise.
4045 * d-lang.c (d_language_data): Likewise.
4046 * f-lang.c (f_printstr): Rename to f_language::printstr.
4047 (f_language_data): Delete la_printstr initializer.
4048 (f_language::printstr): New member function, implementation from
4049 f_printstr.
4050 * go-lang.c (go_language_data): Delete la_printstr initializer.
4051 * language.c (language_defn::printstr): Define new member
4052 function.
4053 (unk_lang_printstr): Delete.
4054 (unknown_language_data): Delete la_printstr initializer.
4055 (unknown_language::printstr): New member function.
4056 (auto_language_data): Delete la_printstr initializer.
4057 (auto_language::printstr): New member function.
4058 * language.h (language_data): Delete la_printstr field.
4059 (language_defn::printstr): Declare new member function.
4060 (LA_PRINT_STRING): Update call to printstr.
4061 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
4062 (m2_language_data): Delete la_printstr initializer.
4063 (m2_language::printstr): New member function, implementation from
4064 m2_printstr.
4065 * objc-lang.c (objc_language_data): Delete la_printstr
4066 initializer.
4067 * opencl-lang.c (opencl_language_data): Likewise.
4068 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
4069 (pascal_language_data): Delete la_printstr initializer.
4070 (pascal_language::printstr): New member function, implementation
4071 from pascal_printstr.
4072 * p-lang.h (pascal_printstr): Delete declaration.
4073 * rust-lang.c (rust_printstr): Update header comment.
4074 (rust_language_data): Delete la_printstr initializer.
4075 (rust_language::printstr): New member function.
4076
4077 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4078
4079 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
4080 (ada_language::printchar): New member function.
4081 * c-lang.c (c_language_data): Delete la_printchar initializer.
4082 (cplus_language_data): Likewise.
4083 (asm_language_data): Likewise.
4084 (minimal_language_data): Likewise.
4085 * d-lang.c (d_language_data): Likewise.
4086 * f-lang.c (f_printchar): Rename to f_language::printchar.
4087 (f_language_data): Delete la_printchar initializer.
4088 (f_language::printchar): New member function, implementation from
4089 f_printchar.
4090 * go-lang.c (go_language_data): Delete la_printchar initializer.
4091 * language.c (unk_lang_printchar): Delete.
4092 (language_defn::printchar): Define new member function.
4093 (unknown_language_data): Delete la_printchar initializer.
4094 (unknown_language::printchar): New member function.
4095 (auto_language_data): Delete la_printchar initializer.
4096 (auto_language::printchar): New member function.
4097 * language.h (language_data): Delete la_printchar field.
4098 (language_defn::printchar): Declare new member function.
4099 (LA_PRINT_CHAR): Update call to printchar.
4100 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
4101 (m2_language::printchar): New member function.
4102 * objc-lang.c (objc_language_data): Delete la_printchar
4103 initializer.
4104 * opencl-lang.c (opencl_language_data): Likewise.
4105 * p-lang.c (pascal_language_data): Delete la_printchar
4106 initializer.
4107 (pascal_language::printchar): New member function.
4108 * rust-lang.c (rust_printchar): Rename to
4109 rust_language::printchar.
4110 (rust_language_data): Delete la_printchar initializer.
4111 (rust_language::printchar): New member function, implementation
4112 from rust_printchar.
4113
4114 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4115
4116 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
4117 (ada_language_data): Delete la_emitchar initializer.
4118 (ada_language::emitchar): New member function, implementation from
4119 emit_char.
4120 * c-lang.c (c_language_data): Delete la_emitchar initializer.
4121 (cplus_language_data): Likewise.
4122 (asm_language_data): Likewise.
4123 (minimal_language_data): Likewise.
4124 * d-lang.c (d_language_data): Likewise.
4125 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
4126 (f_language_data): Delete la_emitchar initializer.
4127 (f_language::emitchar): New member function, implementation from
4128 f_emit_char.
4129 * go-lang.c (go_language_data): Delete la_emitchar initializer.
4130 * language.c (unk_lang_emit_char): Delete.
4131 (language_defn::emitchar): New member function definition.
4132 (unknown_language_data): Delete la_emitchar initializer.
4133 (unknown_language::emitchar): New member function.
4134 (auto_language_data): Delete la_emitchar initializer.
4135 (auto_language::emitchar): New member function.
4136 * language.h (language_data): Delete la_emitchar field.
4137 (language_defn::emitchar): New member field declaration.
4138 (LA_EMIT_CHAR): Update call to emitchar.
4139 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
4140 (m2_language_data): Delete la_emitchar initializer.
4141 (m2_language::emitchar): New member function, implementation from
4142 m2_emit_char.
4143 * objc-lang.c (objc_language_data): Delete la_emitchar
4144 initializer.
4145 * opencl-lang.c (opencl_language_data): Likewise.
4146 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4147 (pascal_language_data): Delete la_emitchar initializer.
4148 (pascal_language::emitchar): New member function, implementation
4149 from pascal_emit_char.
4150 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4151 (rust_language_data): Delete la_emitchar initializer.
4152 (rust_language::emitchar): New member function, implementation
4153 from rust_emitchar.
4154
4155 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4156
4157 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4158 (ada_language_data): Delete la_post_parser initializer.
4159 (ada_language::post_parser): New member function.
4160 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4161 (cplus_language_data): Likewise.
4162 (asm_language_data): Likewise.
4163 (minimal_language_data): Likewise.
4164 * d-lang.c (d_language_data): Likewise.
4165 * f-lang.c (f_language_data): Likewise.
4166 * go-lang.c (go_language_data): Likewise.
4167 * language.c (unknown_language_data): Likewise.
4168 (auto_language_data): Likewise.
4169 * language.h (language_data): Delete la_post_parser field.
4170 (language_defn::post_parser): New member function.
4171 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4172 * objc-lang.c (objc_language_data): Likewise.
4173 * opencl-lang.c (opencl_language_data): Likewise.
4174 * p-lang.c (pascal_language_data): Likewise.
4175 * parse.c (parse_exp_in_context): Update call to post_parser.
4176 (null_post_parser): Delete definition.
4177 * parser-defs.h (null_post_parser): Delete declaration.
4178 * rust-lang.c (rust_language_data): Delete la_post_parser
4179 initializer.
4180
4181 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4182
4183 * ada-lang.c (parse): Rename to ada_language::parser.
4184 (ada_language_data): Delete la_parser initializer.
4185 (ada_language::parser): New member function, implementation from
4186 parse.
4187 * c-lang.c (c_language_data): Delete la_parser initializer.
4188 (cplus_language_data): Likewise.
4189 (asm_language_data): Likewise.
4190 (minimal_language_data): Likewise.
4191 * d-lang.c (d_language_data): Likewise.
4192 (d_language::parser): New member function.
4193 * f-lang.c (f_language_data): Delete la_parser initializer.
4194 (f_language::parser): New member function.
4195 * go-lang.c (go_language_data): Delete la_parser initializer.
4196 (go_language::parser): New member function.
4197 * language.c (unk_lang_parser): Delete.
4198 (language_defn::parser): Define new member function.
4199 (unknown_language_data): Delete la_parser initializer.
4200 (unknown_language::parser): New member function.
4201 (auto_language_data): Delete la_parser initializer.
4202 (auto_language::parser): New member function.
4203 * language.h (language_data): Delete la_parser field.
4204 (language_defn::parser): Declare new member function.
4205 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4206 (m2_language::parser): New member function.
4207 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4208 * opencl-lang.c (opencl_language_data): Likewise.
4209 * p-lang.c (pascal_language_data): Likewise.
4210 (pascal_language::parser): New member function.
4211 * parse.c (parse_exp_in_context): Update call to parser.
4212 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4213 (rust_language::parser): New member function.
4214
4215 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4216
4217 * top.c (print_gdb_configuration): Print --with-python-libdir
4218 configuration value.
4219
4220 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4221
4222 * NEWS: Mention change to the alias command.
4223
4224 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4225
4226 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4227 (alias_command_completer)
4228 (make_alias_options_def_group): New functions.
4229 (alias_opts, alias_option_defs): New struct and array.
4230 (alias_usage_error): Update usage.
4231 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4232 Use option framework.
4233 (_initialize_cli_cmds): Update alias command help.
4234 Update aliases command help.
4235 (show_user):
4236 Add NULL for new default_args lookup_cmd argument.
4237 (valid_command_p): Rename to validate_aliased_command.
4238 Add NULL for new default_args lookup_cmd argument. Verify that the
4239 aliased_command has no default args.
4240 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4241 (lookup_cmd_1, lookup_cmd): New argument default_args.
4242 (add_alias_cmd):
4243 Add NULL for new default_args lookup_cmd argument.
4244 (print_help_for_command): Show default args under the layout
4245 alias some_alias = some_aliased_cmd some_alias_default_arg.
4246 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4247 xfree default_args in destructor.
4248 * cli/cli-script.c (process_next_line, do_define_command):
4249 Add NULL for new default_args lookup_cmd argument.
4250 * command.h: Declare new default_args argument in lookup_cmd
4251 and lookup_cmd_1.
4252 * completer.c (complete_line_internal_1):
4253 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4254 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4255 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4256 Likewise.
4257 * infcmd.c (_initialize_infcmd): Likewise.
4258 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4259 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4260 * python/py-param.c (add_setshow_generic): Likewise.
4261 * remote.c (_initialize_remote): Likewise.
4262 * top.c (execute_command): Prepend default_args if command has some.
4263 (set_verbose):
4264 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4265 * tracepoint.c (validate_actionline, encode_actions_1):
4266 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4267
4268 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4269
4270 * jit.c (jit_read_descriptor): Use bool as the return type.
4271 (jit_breakpoint_re_set_internal): Use bool as the return type.
4272 Invert the return value logic; return true if the jit breakpoint
4273 has been successfully initialized.
4274 (jit_inferior_init): Update the call to
4275 jit_breakpoint_re_set_internal.
4276
4277 2020-06-22 Pedro Alves <palves@redhat.com>
4278
4279 PR gdb/25939
4280 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4281 Use the current inferior instead. Don't return
4282 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4283 wait again.
4284 * sol-thread.c (sol_thread_target::wait): Don't reference
4285 inferior_ptid.
4286 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4287 (sol_update_thread_list_callback): Use the current inferior's pid
4288 instead of inferior_ptid.
4289
4290 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4291
4292 * procfs.c: Cleanup many comments.
4293
4294 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4295 (AFTER_WATCHFLAG): Replace by value.
4296
4297 (MAIN_PROC_NAME_FORMAT): Inline ...
4298 (create_procinfo): ... here.
4299
4300 (procfs_debug_inferior): Remove SYS_exec handling.
4301 (syscall_is_exec): Likewise.
4302 (procfs_set_exec_trap): Likewise.
4303
4304 (syscall_is_lwp_exit): Inline in callers.
4305 (syscall_is_exit): Likewise.
4306 (syscall_is_exec): Likewise.
4307 (syscall_is_lwp_create): Likewise.
4308
4309 (invalidate_cache): Remove #if 0 code.
4310
4311 (make_signal_thread_runnable): Remove.
4312 (procfs_target::resume): Remove #if 0 code.
4313
4314 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4315
4316 PR gdb/25939
4317 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4318 call ...
4319 (procfs_target::create_inferior): ... here.
4320
4321 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4322
4323 * exec.c (validate_exec_file): Ensure the build-id is up to
4324 date by calling reopen_exec_file (that checks file timestamp
4325 to decide to re-read the file).
4326
4327 2020-06-18 Pedro Alves <palves@redhat.com>
4328
4329 PR gdb/25412
4330 * gdbthread.h (delete_thread, delete_thread_silent)
4331 (find_thread_ptid): Update comments.
4332 * thread.c (current_thread_): New global.
4333 (is_current_thread): Move higher, and reimplement.
4334 (inferior_thread): Reimplement.
4335 (set_thread_exited): Use bool. Add assertions.
4336 (add_thread_silent): Simplify thread-reuse handling by always
4337 calling delete_thread.
4338 (delete_thread): Remove intro comment.
4339 (find_thread_ptid): Skip exited threads.
4340 (switch_to_thread_no_regs): Write to current_thread_.
4341 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4342 INFERIOR_PTID. Clear current_thread_.
4343
4344 2020-06-18 Pedro Alves <palves@redhat.com>
4345
4346 * aix-thread.c (pd_update): Use switch_to_thread.
4347
4348 2020-06-18 Pedro Alves <palves@redhat.com>
4349
4350 * ravenscar-thread.c (ravenscar_thread_target): Update.
4351 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4352 (ravenscar_thread_target::add_active_thread): ... this. Don't
4353 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4354 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4355
4356 2020-06-18 Pedro Alves <palves@redhat.com>
4357
4358 * nat/windows-nat.c (current_windows_thread): Remove.
4359 * nat/windows-nat.h (current_windows_thread): Remove.
4360 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4361 Adjust.
4362 (display_selectors): Adjust to fetch the current
4363 windows_thread_info based on inferior_ptid.
4364 (fake_create_process): No longer write to current_windows_thread.
4365 (windows_nat_target::get_windows_debug_event):
4366 Don't set inferior_ptid or current_windows_thread.
4367 (windows_nat_target::wait): Adjust to not rely on
4368 current_windows_thread.
4369 (do_initial_windows_stuff): Now a method of windows_nat_target.
4370 Switch to the last_ptid thread.
4371 (windows_nat_target::attach): Adjust.
4372 (windows_nat_target::detach): Use switch_to_no_thread instead of
4373 writing to inferior_ptid directly.
4374 (windows_nat_target::create_inferior): Adjust.
4375
4376 2020-06-18 Pedro Alves <palves@redhat.com>
4377
4378 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4379
4380 2020-06-18 Pedro Alves <palves@redhat.com>
4381
4382 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4383 after creating it, instead of writing to inferior_ptid. Don't
4384 write to inferior_ptid.
4385
4386 2020-06-18 Pedro Alves <palves@redhat.com>
4387
4388 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4389
4390 2020-06-18 Pedro Alves <palves@redhat.com>
4391
4392 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4393 it, instead of writing to inferior_ptid.
4394
4395 2020-06-18 Pedro Alves <palves@redhat.com>
4396
4397 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4398 to inferior_ptid.
4399
4400 2020-06-18 Pedro Alves <palves@redhat.com>
4401
4402 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4403 instead of writing to inferior_ptid directly.
4404
4405 2020-06-18 Pedro Alves <palves@redhat.com>
4406
4407 * corelow.c (core_target::close): Use switch_to_no_thread instead
4408 of writing to inferior_ptid directly.
4409 (add_to_thread_list, core_target_open): Use switch_to_thread
4410 instead of writing to inferior_ptid directly.
4411
4412 2020-06-18 Pedro Alves <palves@redhat.com>
4413
4414 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4415 inferior_ptid.
4416 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4417 inferior_ptid.
4418 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4419 inferior_ptid directly.
4420 (darwin_nat_target::init_thread_list): Switch to thread, instead
4421 of writing to inferior_ptid.
4422 (darwin_nat_target::attach): Don't write to inferior_ptid.
4423 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4424
4425 2020-06-18 Pedro Alves <palves@redhat.com>
4426
4427 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4428 thread.
4429 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4430 Instead use switch_to_thread.
4431 (gnu_nat_target::detach): Use switch_to_no_thread
4432 instead of writing to inferior_ptid directly. Used passed-in
4433 inferior instead of looking up the inferior by pid.
4434
4435 2020-06-18 Pedro Alves <palves@redhat.com>
4436
4437 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4438 inferior_ptid.
4439
4440 2020-06-18 Pedro Alves <palves@redhat.com>
4441
4442 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4443 inferior_ptid.
4444 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4445 thread.
4446 (nto_procfs_target::detach): Avoid referencing
4447 inferior_ptid. Use switch_to_no_thread instead of writing to
4448 inferior_ptid directly.
4449 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4450 instead of writing to inferior_ptid directly.
4451 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4452 to thread.
4453
4454 2020-06-18 Pedro Alves <palves@redhat.com>
4455
4456 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4457 after creating it, instead of writing to inferior_ptid.
4458 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4459 to inferior_ptid directly.
4460 (gdbsim_target::wait): Don't write to inferior_ptid.
4461
4462 2020-06-18 Pedro Alves <palves@redhat.com>
4463
4464 * remote.c (remote_target::remote_notice_new_inferior): Use
4465 switch_to_thread instead of writing to inferior_ptid directly.
4466 (remote_target::add_current_inferior_and_thread): Use
4467 switch_to_no_thread instead of writing to inferior_ptid directly.
4468 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4469 and switch_to_thread instead of using set_current_inferior or
4470 writing to inferior_ptid directly.
4471
4472 2020-06-18 Pedro Alves <palves@redhat.com>
4473
4474 * tracectf.c (ctf_target_open): Switch to added thread instead of
4475 writing to inferior_ptid directly.
4476 (ctf_target::close): Use switch_to_no_thread instead of writing to
4477 inferior_ptid directly.
4478
4479 2020-06-18 Pedro Alves <palves@redhat.com>
4480
4481 * tracefile-tfile.c (tfile_target_open): Don't write to
4482 inferior_ptid directly, instead switch to added thread.
4483 (tfile_target::close): Use switch_to_no_thread instead of writing
4484 to inferior_ptid directly.
4485
4486 2020-06-18 Pedro Alves <palves@redhat.com>
4487
4488 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4489 (procfs_target::detach): Use switch_to_no_thread
4490 instead of writing to inferior_ptid directly.
4491 (do_attach): Change return type to void. Switch to the added
4492 thread.
4493 (procfs_target::create_inferior): Switch to the added thread.
4494 (procfs_do_thread_registers): Don't write to inferior_ptid.
4495
4496 2020-06-18 Pedro Alves <palves@redhat.com>
4497
4498 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4499 of writing to inferior_ptid.
4500 (scoped_restore_exited_inferior): Delete.
4501 (handle_vfork_child_exec_or_exit): Simplify using
4502 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4503 instead of writing to inferior_ptid.
4504 (THREAD_STOPPED_BY): Delete.
4505 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4506 (thread_stopped_by_hw_breakpoint): Delete.
4507 (save_waitstatus): Use
4508 scoped_restore_current_thread+switch_to_thread, and call
4509 target_stopped_by_watchpoint instead of
4510 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4511 instead of thread_stopped_by_sw_breakpoint, and
4512 target_stopped_by_hw_breakpoint instead of
4513 thread_stopped_by_hw_breakpoint.
4514 (handle_inferior_event)
4515 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4516 inferior_ptid directly, nor
4517 set_current_inferior/set_current_program_space. Use
4518 switch_to_thread / switch_to_inferior_no_thread instead.
4519
4520 2020-06-18 Pedro Alves <palves@redhat.com>
4521
4522 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4523 instead of writing to inferior_ptid.
4524
4525 2020-06-18 Pedro Alves <palves@redhat.com>
4526
4527 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4528 added thread.
4529 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4530 to the added thread.
4531 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4532 instead of writing to inferior_ptid.
4533
4534 2020-06-18 Pedro Alves <palves@redhat.com>
4535
4536 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4537 (register_to_value_test): Mock a program_space too. Heap-allocate
4538 the address space. Don't write to inferior_ptid. Use
4539 switch_to_thread instead.
4540
4541 2020-06-18 Pedro Alves <palves@redhat.com>
4542
4543 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4544 Delete.
4545 (find_signalled_thread()): New, factored out from
4546 linux_make_corefile_notes and adjusted to handle exited threads.
4547 (linux_make_corefile_notes): Adjust to use the new
4548 find_signalled_thread.
4549
4550 2020-06-18 Pedro Alves <palves@redhat.com>
4551
4552 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4553 of saving/restoring inferior_ptid.
4554
4555 2020-06-17 Tom Tromey <tom@tromey.com>
4556
4557 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4558 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4559 declare.
4560 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4561
4562 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
4563
4564 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4565 of partial symtabs.
4566
4567 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4568
4569 * regformats/reg-arm.dat: Remove.
4570 * regformats/reg-bfin.dat: Remove.
4571 * regformats/reg-cris.dat: Remove.
4572 * regformats/reg-crisv32.dat: Remove.
4573 * regformats/reg-m32r.dat: Remove.
4574 * regformats/reg-tilegx.dat: Remove.
4575 * regformats/reg-tilegx32.dat: Remove.
4576
4577 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4578
4579 * features/Makefile (WHICH): Remove arm files.
4580 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4581 * regformats/arm/arm-with-neon.dat: Remove.
4582 * regformats/arm/arm-with-vfpv2.dat: Remove.
4583 * regformats/arm/arm-with-vfpv3.dat: Remove.
4584
4585 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4586
4587 * features/Makefile (XMLTOC): Remove rx.xml.
4588
4589 2020-06-17 Pedro Alves <palves@redhat.com>
4590
4591 * gdbthread.h (thread_control_state) <trap_expected> Update
4592 comments.
4593
4594 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4595
4596 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4597 ada_language::lookup_symbol_nonlocal.
4598 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4599 (ada_language::lookup_symbol_nonlocal): New member function,
4600 implementation from ada_lookup_symbol_nonlocal.
4601 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4602 initializer.
4603 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4604 initializer.
4605 (cplus_language::lookup_symbol_nonlocal): New member function.
4606 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4607 (minimal_language_data) Likewise.
4608 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4609 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4610 initializer.
4611 (d_language::lookup_symbol_nonlocal): New member function.
4612 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4613 initializer.
4614 (f_language::lookup_symbol_nonlocal): New member function.
4615 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4616 initializer.
4617 * language.c (unknown_language_data): Likewise.
4618 (auto_language_data): Likewise.
4619 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4620 field.
4621 (language_defn::lookup_symbol_nonlocal): New member function.
4622 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4623 initializer.
4624 * objc-lang.c (objc_language_data): Likewise.
4625 * opencl-lang.c (opencl_language_data): Likewise.
4626 * p-lang.c (pascal_language_data): Likewise.
4627 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4628 rust_language::lookup_symbol_nonlocal.
4629 (rust_language_data): Delete la_lookup_symbol_nonlocal
4630 initializer.
4631 (rust_language::lookup_symbol_nonlocal): New member function,
4632 implementation from rust_lookup_symbol_nonlocal.
4633 * symtab.c (lookup_symbol_aux): Update call to
4634 lookup_symbol_nonlocal.
4635 (basic_lookup_symbol_nonlocal): Rename to...
4636 (language_defn::lookup_symbol_nonlocal): ...this, and update
4637 header comment. Remove language_defn parameter, and replace with
4638 uses of `this'.
4639 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4640
4641 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4642
4643 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4644 initializer.
4645 (ada_language::value_print_inner): New member function.
4646 * c-lang.c (c_language_data): Delete la_value_print_inner
4647 initializer.
4648 (cplus_language_data): Likewise.
4649 (asm_language_data): Likewise.
4650 (minimal_language_data): Likewise.
4651 * d-lang.c (d_language_data): Likewise.
4652 (d_language::value_print_inner): New member function.
4653 * f-lang.c (f_language_data): Delete la_value_print_inner
4654 initializer.
4655 (f_language::value_print_inner): New member function.
4656 * f-lang.h (f_value_print_innner): Rename to...
4657 (f_value_print_inner): ...this (note spelling of 'inner').
4658 * f-valprint.c (f_value_print_innner): Rename to...
4659 (f_value_print_inner): ...this (note spelling of 'inner').
4660 * go-lang.c (go_language_data): Delete la_value_print_inner
4661 initializer.
4662 (go_language::value_print_inner): New member function.
4663 * language.c (language_defn::value_print_inner): Define new member
4664 function.
4665 (unk_lang_value_print_inner): Delete.
4666 (unknown_language_data): Delete la_value_print_inner initializer.
4667 (unknown_language::value_print_inner): New member function.
4668 (auto_language_data): Delete la_value_print_inner initializer.
4669 (auto_language::value_print_inner): New member function.
4670 * language.h (language_data): Delete la_value_print_inner field.
4671 (language_defn::value_print_inner): Delcare new member function.
4672 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4673 initializer.
4674 (m2_language::value_print_inner): New member function.
4675 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4676 initializer.
4677 * opencl-lang.c (opencl_language_data): Likewise.
4678 * p-lang.c (pascal_language_data): Likewise.
4679 (pascal_language::value_print_inner): New member function.
4680 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4681 initializer.
4682 (rust_language::value_print_inner): New member function.
4683 * valprint.c (do_val_print): Update call to value_print_inner.
4684
4685 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4686
4687 * ada-lang.c (ada_language_data): Delete la_value_print
4688 initializer.
4689 (ada_language::value_print): New member function.
4690 * c-lang.c (c_language_data): Delete la_value_print initializer.
4691 (cplus_language_data): Likewise.
4692 (asm_language_data): Likewise.
4693 (minimal_language_data): Likewise.
4694 * d-lang.c (d_language_data): Likewise.
4695 * f-lang.c (f_language_data): Likewise.
4696 * go-lang.c (go_language_data): Likewise.
4697 * language.c (unk_lang_value_print): Delete.
4698 (language_defn::value_print): Define new member function.
4699 (unknown_language_data): Delete la_value_print initializer.
4700 (unknown_language::value_print): New member function.
4701 (auto_language_data): Delete la_value_print initializer.
4702 (auto_language::value_print): New member function.
4703 * language.h (language_data): Delete la_value_print field.
4704 (language_defn::value_print): Declare new member function.
4705 (LA_VALUE_PRINT): Update call to value_print.
4706 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4707 * objc-lang.c (objc_language_data): Likewise.
4708 * opencl-lang.c (opencl_language_data): Likewise.
4709 * p-lang.c (pascal_language_data): Likewise.
4710 (pascal_language::value_print): New member function.
4711 * rust-lang.c (rust_language_data): Delete la_value_print
4712 initializer.
4713
4714 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4715
4716 * ada-lang.c (ada_watch_location_expression): Rename to
4717 ada_language::watch_location_expression.
4718 (ada_language_data): Delete la_watch_location_expression
4719 initializer.
4720 (ada_language::watch_location_expression): New member function,
4721 implementation from ada_watch_location_expression.
4722 * breakpoint.c (watch_command_1): Update call to
4723 watch_location_expression.
4724 * c-lang.c (c_watch_location_expression): Rename to
4725 language_defn::watch_location_expression.
4726 (c_language_data): Delete la_watch_location_expression
4727 initializer.
4728 (cplus_language_data): Likewise.
4729 (asm_language_data): Likewise.
4730 (minimal_language_data): Likewise.
4731 * c-lang.h (c_watch_location_expression): Delete declaration.
4732 * d-lang.c (d_language_data): Delete la_watch_location_expression
4733 initializer.
4734 * f-lang.c (f_language_data): Likewise.
4735 * go-lang.c (go_language_data): Likewise.
4736 * language.c (language_defn::watch_location_expression): Member
4737 function implementation from c_watch_location_expression.
4738 (unknown_language_data): Delete la_watch_location_expression
4739 initializer.
4740 (auto_language_data): Likewise.
4741 * language.h (language_data): Delete la_watch_location_expression
4742 field.
4743 (language_defn::watch_location_expression): Declare new member
4744 function.
4745 * m2-lang.c (m2_language_data): Delete
4746 la_watch_location_expression initializer.
4747 * objc-lang.c (objc_language_data): Likewise.
4748 * opencl-lang.c (opencl_language_data): Likewise.
4749 * p-lang.c (pascal_language_data): Likewise.
4750 * rust-lang.c (rust_watch_location_expression): Rename to
4751 rust_language::watch_location_expression.
4752 (rust_language_data): Delete la_watch_location_expression
4753 initializer.
4754 (rust_language::watch_location_expression): New member function,
4755 implementation from rust_watch_location_expression.
4756
4757 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4758
4759 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4760 ada_language::collect_symbol_completion_matches.
4761 (ada_language_data): Delete la_collect_symbol_completion_matches
4762 initializer.
4763 (ada_language::collect_symbol_completion_matches): New member
4764 function, implementation from
4765 ada_collect_symbol_completion_matches.
4766 * c-lang.c (c_language_data): Delete
4767 la_collect_symbol_completion_matches initializer.
4768 (cplus_language_data): Likewise.
4769 (asm_language_data): Likewise.
4770 (minimal_language_data): Likewise.
4771 * d-lang.c (d_language_data): Likewise.
4772 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4773 f_language::collect_symbol_completion_matches.
4774 (f_language_data): Delete la_collect_symbol_completion_matches
4775 initializer.
4776 (f_language::collect_symbol_completion_matches) New member
4777 function, implementation from f_collect_symbol_completion_matches.
4778 * go-lang.c (go_language_data): Delete
4779 la_collect_symbol_completion_matches initializer.
4780 * language.c (unknown_language_data): Likewise.
4781 (auto_language_data): Likewise.
4782 * language.h (language_data): Delete
4783 la_collect_symbol_completion_matches field.
4784 (language_defn::collect_symbol_completion_matches): New member
4785 function.
4786 * m2-lang.c (m2_language_data): Delete
4787 la_collect_symbol_completion_matches initializer.
4788 * objc-lang.c (objc_language_data): Likewise.
4789 * opencl-lang.c (opencl_language_data): Likewise.
4790 * p-lang.c (pascal_language_data): Likewise.
4791 * rust-lang.c (rust_language_data): Likewise.
4792 * symtab.c (default_collect_symbol_completion_matches): Delete.
4793 (collect_symbol_completion_matches): Update call to
4794 collect_symbol_completion_matches.
4795 (collect_symbol_completion_matches_type): Likewise.
4796 * symtab.h (default_collect_symbol_completion_matches): Delete
4797 declaration.
4798
4799 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4800
4801 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4802 (ada_language_data): Delete la_word_break_characters initializer.
4803 (ada_language::word_break_characters): New member function.
4804 * c-lang.c (c_language_data): Delete la_word_break_characters
4805 initializer.
4806 (cplus_language_data): Likewise.
4807 (asm_language_data): Likewise.
4808 (minimal_language_data): Likewise.
4809 * completer.c: Update global comment.
4810 (advance_to_expression_complete_word_point): Update call to
4811 word_break_characters.
4812 (complete_files_symbols): Likewise.
4813 (complete_line_internal_1): Likewise.
4814 (default_completer_handle_brkchars): Likewise.
4815 (skip_quoted_chars): Likewise.
4816 * d-lang.c (d_language_data): Delete la_word_break_characters
4817 initializer.
4818 * f-lang.c (f_word_break_characters): Delete.
4819 (f_language_data): Delete la_word_break_characters initializer.
4820 (f_language::word_break_characters): New member function.
4821 * go-lang.c (go_language_data): Delete la_word_break_characters
4822 initializer.
4823 * language.c (unknown_language_data): Likewise.
4824 (auto_language_data): Likewise.
4825 * language.h (default_word_break_characters): Move declaration to
4826 earlier in the file.
4827 (language_data): Delete la_word_break_characters field.
4828 (language_defn::word_break_characters): New member function.
4829 * m2-lang.c (m2_language_data): Delete la_word_break_characters
4830 initializer.
4831 * objc-lang.c (objc_language_data): Likewise.
4832 * opencl-lang.c (opencl_language_data): Likewise.
4833 * p-lang.c (pascal_language_data): Likewise.
4834 * rust-lang.c (rust_language_data): Likewise.
4835
4836 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4837
4838 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
4839 (ada_language_data): Delete la_get_symbol_name_matcher
4840 initializer.
4841 (language_defn::get_symbol_name_matcher_inner): New member
4842 function.
4843 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
4844 initializer.
4845 (cplus_language_data): Likewise.
4846 (cplus_language::get_symbol_name_matcher_inner): New member
4847 function.
4848 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
4849 (minimal_language_data): Likewise.
4850 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
4851 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
4852 initializer.
4853 * dictionary.c (iter_match_first_hashed): Update call to
4854 get_symbol_name_matcher.
4855 (iter_match_next_hashed): Likewise.
4856 (iter_match_next_linear): Likewise.
4857 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
4858 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
4859 initializer.
4860 (f_language::get_symbol_name_matcher_inner): New member function.
4861 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4862 initializer.
4863 * language.c (default_symbol_name_matcher): Update header comment,
4864 make static.
4865 (language_defn::get_symbol_name_matcher): New definition.
4866 (language_defn::get_symbol_name_matcher_inner): Likewise.
4867 (get_symbol_name_matcher): Delete.
4868 (unknown_language_data): Delete la_get_symbol_name_matcher
4869 initializer.
4870 (auto_language_data): Likewise.
4871 * language.h (language_data): Delete la_get_symbol_name_matcher
4872 field.
4873 (language_defn::get_symbol_name_matcher): New member function.
4874 (language_defn::get_symbol_name_matcher_inner): Likewise.
4875 (default_symbol_name_matcher): Delete declaration.
4876 * linespec.c (find_methods): Update call to
4877 get_symbol_name_matcher.
4878 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4879 initializer.
4880 * minsyms.c (lookup_minimal_symbol): Update call to
4881 get_symbol_name_matcher.
4882 (iterate_over_minimal_symbols): Likewise.
4883 * objc-lang.c (objc_language_data): Delete
4884 la_get_symbol_name_matcher initializer.
4885 * opencl-lang.c (opencl_language_data): Likewise.
4886 * p-lang.c (pascal_language_data): Likewise.
4887 * psymtab.c (psymbol_name_matches): Update call to
4888 get_symbol_name_matcher.
4889 * rust-lang.c (rust_language_data): Delete
4890 la_get_symbol_name_matcher initializer.
4891 * symtab.c (symbol_matches_search_name): Update call to
4892 get_symbol_name_matcher.
4893 (compare_symbol_name): Likewise.
4894
4895 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4896
4897 * ada-lang.c (ada_language_data): Delete la_compute_program
4898 initializer.
4899 * c-lang.c (c_language_data): Likewise.
4900 (c_language::compute_program): New member function.
4901 (cplus_language_data): Delete la_compute_program initializer.
4902 (cplus_language::compute_program): New member function.
4903 (asm_language_data): Delete la_compute_program initializer.
4904 (minimal_language_data): Likewise.
4905 * c-lang.h (c_compute_program): Update comment.
4906 (cplus_compute_program): Likewise.
4907 * compile/compile-c-support.c (c_compute_program): Likewise.
4908 (cplus_compute_program): Likewise.
4909 * compile/compile.c (compile_to_object): Update call to
4910 la_compute_program.
4911 * d-lang.c (d_language_data): Delete la_compute_program
4912 initializer.
4913 * f-lang.c (f_language_data): Likewise.
4914 * go-lang.c (go_language_data): Likewise.
4915 * language.c (unknown_language_data): Likewise.
4916 (auto_language_data): Likewise.
4917 * language.h (language_data): Delete la_compute_program field.
4918 (language_defn::compute_program): New member function.
4919 * m2-lang.c (m2_language_data): Delete la_compute_program
4920 initializer.
4921 * objc-lang.c (objc_language_data): Likewise.
4922 * opencl-lang.c (opencl_language_data): Likewise.
4923 * p-lang.c (pascal_language_data): Likewise.
4924 * rust-lang.c (rust_language_data): Likewise.
4925
4926 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4927
4928 * ada-lang.c (ada_language_data) Delete
4929 la_class_name_from_physname initializer.
4930 * c-lang.c (c_language_data): Likewise.
4931 (cplus_language_data): Likewise.
4932 (cplus_language::class_name_from_physname): New member function.
4933 (asm_language_data): Delete la_class_name_from_physname
4934 initializer.
4935 (minimal_language_data): Likewise.
4936 * d-lang.c (d_language_data): Likewise.
4937 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4938 method on language_defn class.
4939 (guess_full_die_structure_name): Likewise.
4940 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4941 initializer.
4942 * go-lang.c (go_language_data): Likewise.
4943 * language.c (language_class_name_from_physname): Delete.
4944 (unk_lang_class_name): Delete.
4945 (unknown_language_data): Delete la_class_name_from_physname
4946 initializer.
4947 (auto_language_data): Likewise.
4948 * language.h (language_data): Delete la_class_name_from_physname
4949 field.
4950 (language_defn::class_name_from_physname): New function.
4951 (language_class_name_from_physname): Delete declaration.
4952 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4953 initializer.
4954 * objc-lang.c (objc_language_data): Likewise.
4955 * opencl-lang.c (opencl_language_data): Likewise.
4956 * p-lang.c (pascal_language_data): Likewise.
4957 * rust-lang.c (rust_language_data): Likewise.
4958
4959 2020-06-16 Tom Tromey <tom@tromey.com>
4960
4961 * tui/tui-data.h (STATUS_NAME): New macro.
4962 * tui/tui-layout.c (tui_remove_some_windows)
4963 (initialize_known_windows, tui_register_window)
4964 (tui_layout_split::remove_windows, initialize_layouts)
4965 (tui_new_layout_command): Don't use hard-coded window names.
4966
4967 2020-06-16 Tom Tromey <tom@tromey.com>
4968
4969 PR tui/25348:
4970 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4971 tui_initialize_readline. Only run once. Call rl_initialize.
4972 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4973 tui_initialize_readline.
4974 * tui/tui-io.c (tui_setup_io): Call
4975 tui_ensure_readline_initialized.
4976 * tui/tui-interp.c (tui_interp::init): Update.
4977
4978 2020-06-16 Tom Tromey <tom@tromey.com>
4979
4980 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4981 Also preserve the status window.
4982
4983 2020-06-16 Tom Tromey <tom@tromey.com>
4984
4985 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4986 where m_window==nullptr.
4987
4988 2020-06-15 Tom Tromey <tromey@adacore.com>
4989
4990 * windows-nat.c (windows_nat::handle_output_debug_string):
4991 Update.
4992 (windows_nat::handle_ms_vc_exception): Update.
4993 * target.h (target_read_string): Change API.
4994 * target.c (target_read_string): Change API.
4995 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4996 Update.
4997 * solib-frv.c (frv_current_sos): Update.
4998 * solib-dsbt.c (dsbt_current_sos): Update.
4999 * solib-darwin.c (darwin_current_sos): Update.
5000 * linux-thread-db.c (inferior_has_bug): Update.
5001 * expprint.c (print_subexp_standard): Update.
5002 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
5003 (ada_exception_message_1): Update.
5004
5005 2020-06-15 Tom Tromey <tromey@adacore.com>
5006
5007 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
5008
5009 2020-06-15 Tom Tromey <tromey@adacore.com>
5010
5011 * valprint.c (read_string): Update comment.
5012 * target.c (MIN): Remove.
5013 (target_read_string): Rewrite.
5014
5015 2020-06-15 Tom Tromey <tromey@adacore.com>
5016
5017 * corefile.c (read_memory_string): Remove.
5018 * ada-valprint.c (ada_value_print_ptr): Update.
5019 * ada-lang.h (ada_tag_name): Change return type.
5020 * ada-lang.c (type_from_tag): Update.
5021 (ada_tag_name_from_tsd): Change return type. Use
5022 target_read_string.
5023 (ada_tag_name): Likewise.
5024 * gdbcore.h (read_memory_string): Don't declare.
5025
5026 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
5027
5028 * symtab.c (rbreak_command): Ignore Windows drive colon.
5029
5030 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
5031
5032 * NEWS: Mention removed GDBserver host support.
5033
5034 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
5035
5036 * features/riscv/rebuild-csr-xml.sh: Updated.
5037
5038 2020-06-11 Tom Tromey <tom@tromey.com>
5039
5040 PR gdb/18318:
5041 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
5042
5043 2020-06-09 Jonny Grant <jg@jguk.org>
5044 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
5045
5046 * main.c (captured_main_1): Don't print new line after help.
5047 (print_gdb_help): add mailing list and IRC channel information
5048 to --help. Add new lines between items in the footer. Remove
5049 quotes around bug url.
5050
5051 2020-06-11 Keith Seitz <keiths@redhat.com>
5052
5053 PR gdb/21356
5054 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
5055 Resolve typedefs for type length calculations.
5056
5057 2020-06-10 Tom de Vries <tdevries@suse.de>
5058
5059 PR ada/24713
5060 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
5061 (write_psymbols): Enable .gdb_index for ada.
5062 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
5063 ada.
5064
5065 2020-06-10 Tom de Vries <tdevries@suse.de>
5066
5067 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
5068 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
5069 namei" instead of "const char *name" argument.
5070 (dw2_map_matching_symbols): Use "offset_type namei" variant of
5071 dw2_symtab_iter_init.
5072
5073 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5074
5075 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
5076 to use type::field and field::type instead.
5077
5078 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5079
5080 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
5081 to use field::type instead.
5082
5083 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5084
5085 * gdbtypes.h (struct field) <type, set_type>: New methods.
5086 Rename `type` field to...
5087 <m_type>: ... this. Change references throughout to use type or
5088 set_type methods.
5089 (FIELD_TYPE): Use field::type. Change call sites that modify
5090 the field's type to use field::set_type instead.
5091
5092 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5093
5094 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
5095 to use type::index_type instead.
5096
5097 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5098
5099 * gdbtypes.h (struct type) <index_type, set_index_type>: New
5100 methods.
5101 (TYPE_INDEX_TYPE): Use type::index_type.
5102 * gdbtypes.c (create_array_type_with_stride): Likewise.
5103
5104 2020-06-07 Tom Tromey <tom@tromey.com>
5105
5106 * valprint.c (generic_val_print_float): Remove "embedded_offset"
5107 parameter.
5108 (generic_value_print): Update.
5109
5110 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5111
5112 Revert commit 982a38f60b0.
5113 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
5114
5115 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5116
5117 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
5118 avoid use after free.
5119
5120 2020-06-05 Tom de Vries <tdevries@suse.de>
5121
5122 * NEWS: Fix typos.
5123
5124 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
5125
5126 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
5127 the per_bfd object.
5128 (dwarf2_read_debug_names): Likewise.
5129 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
5130 object when re-using a per_bfd object with an index.
5131
5132 2020-06-03 Tom de Vries <tdevries@suse.de>
5133
5134 PR symtab/26046
5135 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
5136 children for C++.
5137 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
5138 DW_TAG_subprogram.
5139
5140 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5141
5142 * ada-lang.c (ada_language_data): Delete skip_trampoline
5143 initializer.
5144 * c-lang.c (c_language_data): Likewise.
5145 (cplus_language_data): Likewise.
5146 (cplus_language::skip_trampoline): New member function.
5147 (asm_language_data): Delete skip_trampoline initializer.
5148 (minimal_language_data): Likewise.
5149 * d-lang.c (d_language_data): Likewise.
5150 * f-lang.c (f_language_data): Likewise.
5151 * go-lang.c (go_language_data): Likewise.
5152 * language.c (unk_lang_trampoline): Delete function.
5153 (skip_language_trampoline): Update.
5154 (unknown_language_data): Delete skip_trampoline initializer.
5155 (auto_language_data): Likewise.
5156 * language.h (language_data): Delete skip_trampoline field.
5157 (language_defn::skip_trampoline): New function.
5158 * m2-lang.c (m2_language_data): Delete skip_trampoline
5159 initializer.
5160 * objc-lang.c (objc_skip_trampoline): Delete function, move
5161 implementation to objc_language::skip_trampoline.
5162 (objc_language_data): Delete skip_trampoline initializer.
5163 (objc_language::skip_trampoline): New member function with
5164 implementation from objc_skip_trampoline.
5165 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5166 initializer.
5167 * p-lang.c (pascal_language_data): Likewise.
5168 * rust-lang.c (rust_language_data): Likewise.
5169
5170 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5171
5172 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5173 (ada_language::demangle): New member function.
5174 * c-lang.c (c_language_data): Delete la_demangle initializer.
5175 (cplus_language_data): Delete la_demangle initializer.
5176 (cplus_language::demangle): New member function.
5177 (asm_language_data): Delete la_demangle initializer.
5178 (minimal_language_data): Delete la_demangle initializer.
5179 * d-lang.c (d_language_data): Delete la_demangle initializer.
5180 (d_language::demangle): New member function.
5181 * f-lang.c (f_language_data): Delete la_demangle initializer.
5182 (f_language::demangle): New member function.
5183 * go-lang.c (go_language_data): Delete la_demangle initializer.
5184 (go_language::demangle): New member function.
5185 * language.c (language_demangle): Update.
5186 (unk_lang_demangle): Delete.
5187 (unknown_language_data): Delete la_demangle initializer.
5188 (unknown_language::demangle): New member function.
5189 (auto_language_data): Delete la_demangle initializer.
5190 (auto_language::demangle): New member function.
5191 * language.h (language_data): Delete la_demangle field.
5192 (language_defn::demangle): New function.
5193 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5194 * objc-lang.c (objc_language_data): Delete la_demangle
5195 initializer.
5196 (objc_language::demangle): New member function.
5197 * opencl-lang.c (opencl_language_data): Delete la_demangle
5198 initializer.
5199 * p-lang.c (pascal_language_data): Likewise.
5200 * rust-lang.c (rust_language_data): Likewise.
5201 (rust_language::demangle): New member function.
5202
5203 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5204
5205 * ada-lang.c (ada_language_data): Delete la_print_type
5206 initializer.
5207 (ada_language::print_type): New member function.
5208 * c-lang.c (c_language_data): Delete la_print_type initializer.
5209 (c_language::print_type): New member function.
5210 (cplus_language_data): Delete la_print_type initializer.
5211 (cplus_language::print_type): New member function.
5212 (asm_language_data): Delete la_print_type initializer.
5213 (asm_language::print_type): New member function.
5214 (minimal_language_data): Delete la_print_type initializer.
5215 (minimal_language::print_type): New member function.
5216 * d-lang.c (d_language_data): Delete la_print_type initializer.
5217 (d_language::print_type): New member function.
5218 * f-lang.c (f_language_data): Delete la_print_type initializer.
5219 (f_language::print_type): New member function.
5220 * go-lang.c (go_language_data): Delete la_print_type initializer.
5221 (go_language::print_type): New member function.
5222 * language.c (unk_lang_print_type): Delete.
5223 (unknown_language_data): Delete la_print_type initializer.
5224 (unknown_language::print_type): New member function.
5225 (auto_language_data): Delete la_print_type initializer.
5226 (auto_language::print_type): New member function.
5227 * language.h (language_data): Delete la_print_type field.
5228 (language_defn::print_type): New function.
5229 (LA_PRINT_TYPE): Update.
5230 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5231 (m2_language::print_type): New member function.
5232 * objc-lang.c (objc_language_data): Delete la_print_type
5233 initializer.
5234 (objc_language::print_type): New member function.
5235 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5236 to opencl_language::print_type.
5237 (opencl_language_data): Delete la_print_type initializer.
5238 (opencl_language::print_type): New member function, implementation
5239 from opencl_print_type.
5240 * p-lang.c (pascal_language_data): Delete la_print_type
5241 initializer.
5242 (pascal_language::print_type): New member function.
5243 * rust-lang.c (rust_print_type): Delete, implementation moved to
5244 rust_language::print_type.
5245 (rust_language_data): Delete la_print_type initializer.
5246 (rust_language::print_type): New member function, implementation
5247 from rust_print_type.
5248
5249 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5250
5251 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5252 implementation moves to...
5253 (ada_language::sniff_from_mangled_name): ...here. Update return
5254 type.
5255 (ada_language_data): Delete la_sniff_from_mangled_name
5256 initializer.
5257 * c-lang.c (c_language_data): Likewise.
5258 (cplus_language_data): Likewise.
5259 (cplus_language::sniff_from_mangled_name): New member function,
5260 implementation taken from gdb_sniff_from_mangled_name.
5261 (asm_language_data): Delete la_sniff_from_mangled_name
5262 initializer.
5263 (minimal_language_data): Likewise.
5264 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5265 implementation moves to cplus_language::sniff_from_mangled_name.
5266 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5267 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5268 moves to...
5269 (d_language::sniff_from_mangled_name): ...here.
5270 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5271 * f-lang.c (f_language_data): Likewise.
5272 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5273 moves to...
5274 (go_language::sniff_from_mangled_name): ...here.
5275 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5276 * language.c (language_sniff_from_mangled_name): Delete.
5277 (unknown_language_data): Delete la_sniff_from_mangled_name
5278 initializer.
5279 (auto_language_data): Likewise.
5280 * language.h (language_data): Delete la_sniff_from_mangled_name
5281 field.
5282 (language_defn::sniff_from_mangled_name): New function.
5283 (language_sniff_from_mangled_name): Delete declaration.
5284 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5285 field.
5286 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5287 implementation moves to...
5288 (objc_language::sniff_from_mangled_name): ...here.
5289 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5290 * opencl-lang.c (opencl_language_data): Likewise.
5291 * p-lang.c (pascal_language_data): Likewise.
5292 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5293 implementation moves to...
5294 (rust_language::sniff_from_mangled_name): ...here.
5295 (rust_language_data): Delete la_sniff_from_mangled_name
5296 initializer.
5297 * symtab.c (symbol_find_demangled_name): Call
5298 sniff_from_mangled_name member function.
5299
5300 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5301
5302 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5303 initializer.
5304 * c-lang.c (c_language_data): Likewise.
5305 (cplus_language_data): Likewise.
5306 (cplus_language::search_name_hash): New member function.
5307 (asm_language_data): Delete la_search_name_hash initializer.
5308 (minimal_language_data): Likewise.
5309 * d-lang.c (d_language_data): Likewise.
5310 * dictionary.c (default_search_name_hash): Rename to...
5311 (language_defn::search_name_hash): ...this.
5312 * f-lang.c (f_language_data): Likewise.
5313 (f_language::search_name_hash): New member function.
5314 * go-lang.c (go_language_data): Delete la_search_name_hash
5315 initializer.
5316 * language.c (unknown_language_data): Likewise.
5317 (auto_language_data): Likewise.
5318 * language.h (struct language_data): Delete la_search_name_hash
5319 field.
5320 (language_defn::search_name_hash): Declare new member function.
5321 (default_search_name_hash): Delete declaration.
5322 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5323 initializer.
5324 * objc-lang.c (objc_language_data): Likewise.
5325 * opencl-lang.c (opencl_language_data): Likewise.
5326 * p-lang.c (pascal_language_data): Likewise.
5327 * rust-lang.c (rust_language_data): Likewise.
5328 * symtab.c (search_name_hash): Update call.
5329
5330 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5331
5332 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5333 initializer.
5334 * c-lang.c (class compile_instance): Declare.
5335 (c_language_data): Delete la_get_compile_instance initializer.
5336 (c_language::get_compile_instance): New member function.
5337 (cplus_language_data): Delete la_get_compile_instance initializer.
5338 (cplus_language::get_compile_instance): New member function.
5339 (asm_language_data): Delete la_get_compile_instance initializer.
5340 (minimal_language_data): Likewise.
5341 * c-lang.h (c_get_compile_context): Update comment.
5342 (cplus_get_compile_context): Update comment.
5343 * compile/compile.c (compile_to_object): Update calls, don't rely
5344 on function pointer being NULL.
5345 * d-lang.c (d_language_data): Delete la_get_compile_instance
5346 initializer.
5347 * f-lang.c (f_language_data): Likewise.
5348 * go-lang.c (go_language_data): Likewise.
5349 * language.c (unknown_language_data): Likewise.
5350 (auto_language_data): Likewise.
5351 * language.h (language_data): Delete la_get_compile_instance field.
5352 (language_defn::get_compile_instance): New member function.
5353 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5354 initializer.
5355 * objc-lang.c (objc_language_data): Likewise.
5356 * opencl-lang.c (opencl_language_data): Likewise.
5357 * p-lang.c (pascal_language_data): Likewise.
5358 * rust-lang.c (rust_language_data): Likewise.
5359
5360 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5361
5362 * ada-lang.c (ada_add_all_symbols): Update comment.
5363 (ada_iterate_over_symbols): Delete, move implementation to...
5364 (ada_language::iterate_over_symbols): ...here, a new member
5365 function, rewrite to use range based for loop.
5366 (ada_language_data): Delete la_iterate_over_symbols initializer.
5367 * c-lang.c (c_language_data): Likewise.
5368 (cplus_language_data): Likewise.
5369 (asm_language_data): Likewise.
5370 (minimal_language_data): Likewise.
5371 * d-lang.c (d_language_data): Likewise.
5372 * f-lang.c (f_language_data): Likewise.
5373 * go-lang.c (go_language_data): Likewise.
5374 * language.c (unknown_language_data): Likewise.
5375 (auto_language_data): Likewise.
5376 * language.h (language_data): Delete la_iterate_over_symbols field.
5377 (language_defn::iterate_over_symbols): New member function.
5378 (LA_ITERATE_OVER_SYMBOLS): Update.
5379 * linespec.c (iterate_over_all_matching_symtabs): Update.
5380 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5381 initializer.
5382 * objc-lang.c (objc_language_data): Likewise.
5383 * opencl-lang.c (opencl_language_data): Likewise.
5384 * p-lang.c (pascal_language_data): Likewise.
5385 * rust-lang.c (rust_language_data): Likewise.
5386
5387 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5388
5389 * ada-lang.c (ada_language_data): Delete
5390 la_lookup_transparent_type initializer.
5391 * c-lang.c (c_language_data): Likewise.
5392 (cplus_language_data): Likewise.
5393 (cplus_language::lookup_transparent_type): New member function.
5394 (asm_language_data): Delete la_lookup_transparent_type
5395 initializer.
5396 (minimal_language_data): Likewise.
5397 * d-lang.c (d_language_data): Likewise.
5398 * f-lang.c (f_language_data): Likewise.
5399 * go-lang.c (go_language_data): Likewise.
5400 * language.c (unknown_language_data): Likewise.
5401 (auto_language_data): Likewise.
5402 * language.h (struct language_data): Delete
5403 la_lookup_transparent_type field.
5404 (language_defn::lookup_transparent_type): New member function.
5405 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5406 initializer.
5407 * objc-lang.c (objc_language_data): Likewise.
5408 * opencl-lang.c (opencl_language_data): Likewise.
5409 * p-lang.c (pascal_language_data): Likewise.
5410 * rust-lang.c (rust_language_data): Likewise.
5411 * symtab.c (symbol_matches_domain): Update call.
5412
5413 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5414
5415 * ada-lang.c (ada_language_arch_info): Delete function, move
5416 implementation to...
5417 (ada_language::language_arch_info): ...here, a new member
5418 function.
5419 (ada_language_data): Delete la_language_arch_info.
5420 * c-lang.c (c_language_data): Likewise.
5421 (c_language::language_arch_info): New member function.
5422 (cplus_language_arch_info): Delete function, move
5423 implementation to...
5424 (cplus_language::language_arch_info): ...here, a new member
5425 function.
5426 (cplus_language_data): Delete la_language_arch_info.
5427 (asm_language_data): Likewise.
5428 (asm_language::language_arch_info): New member function.
5429 (minimal_language_data): Delete la_language_arch_info.
5430 (minimal_language::language_arch_info): New member function.
5431 * d-lang.c (d_language_arch_info): Delete function, move
5432 implementation to...
5433 (d_language::language_arch_info): ...here, a new member
5434 function.
5435 (d_language_data): Delete la_language_arch_info.
5436 * f-lang.c (f_language_arch_info): Delete function, move
5437 implementation to...
5438 (f_language::language_arch_info): ...here, a new member
5439 function.
5440 (f_language_data): Delete la_language_arch_info.
5441 * go-lang.c (go_language_arch_info): Delete function, move
5442 implementation to...
5443 (go_language::language_arch_info): ...here, a new member
5444 function.
5445 (go_language_data): Delete la_language_arch_info.
5446 * language.c (unknown_language_data): Likewise.
5447 (unknown_language::language_arch_info): New member function.
5448 (auto_language_data): Delete la_language_arch_info.
5449 (auto_language::language_arch_info): New member function.
5450 (language_gdbarch_post_init): Update call to
5451 la_language_arch_info.
5452 * language.h (language_data): Delete la_language_arch_info
5453 function pointer.
5454 (language_defn::language_arch_info): New function.
5455 * m2-lang.c (m2_language_arch_info): Delete function, move
5456 implementation to...
5457 (m2_language::language_arch_info): ...here, a new member
5458 function.
5459 (m2_language_data): Delete la_language_arch_info.
5460 * objc-lang.c (objc_language_arch_info): Delete function, move
5461 implementation to...
5462 (objc_language::language_arch_info): ...here, a new member
5463 function.
5464 (objc_language_data): Delete la_language_arch_info.
5465 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5466 implementation to...
5467 (opencl_language::language_arch_info): ...here, a new member
5468 function.
5469 (opencl_language_data): Delete la_language_arch_info.
5470 * p-lang.c (pascal_language_arch_info): Delete function, move
5471 implementation to...
5472 (pascal_language::language_arch_info): ...here, a new member
5473 function.
5474 (pascal_language_data): Delete la_language_arch_info.
5475 * rust-lang.c (rust_language_arch_info): Delete function, move
5476 implementation to...
5477 (rust_language::language_arch_info): ...here, a new member
5478 function.
5479 (rust_language_data): Delete la_language_arch_info.
5480
5481 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5482
5483 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5484 initializer.
5485 * c-lang.c (c_language_data): Likewise.
5486 (cplus_language_data): Likewise.
5487 (cplus_language::pass_by_reference_info): New method.
5488 (asm_language_data): Delete la_pass_by_reference initializer.
5489 (minimal_language_data): Likewise.
5490 * cp-abi.c (cp_pass_by_reference): Remove use of
5491 default_pass_by_reference.
5492 * d-lang.c (d_language_data): Likewise.
5493 * f-lang.c (f_language_data): Likewise.
5494 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5495 default_pass_by_reference.
5496 * go-lang.c (go_language_data): Likewise.
5497 * language.c (language_pass_by_reference): Update.
5498 (default_pass_by_reference): Delete.
5499 (unknown_language_data): Delete la_pass_by_reference
5500 initializer.
5501 (auto_language_data): Likewise.
5502 * language.h (struct language_data): Delete la_pass_by_reference
5503 field.
5504 (language_defn::pass_by_reference_info): New member function.
5505 (default_pass_by_reference): Delete declaration.
5506 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5507 initializer.
5508 * objc-lang.c (objc_language_data): Likewise.
5509 * opencl-lang.c (opencl_language_data): Likewise.
5510 * p-lang.c (pascal_language_data): Likewise.
5511 * rust-lang.c (rust_language_data): Likewise.
5512
5513 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5514
5515 * ada-lang.c (ada_read_var_value): Delete function, move
5516 implementation to...
5517 (ada_language::read_var_value): ...here.
5518 (ada_language_data): Delete la_read_var_value initializer.
5519 * c-lang.c (c_language_data): Likewise.
5520 (cplus_language_data): Likewise.
5521 (minimal_language_data): Likewise.
5522 * d-lang.c (d_language_data): Likewise.
5523 * f-lang.c (f_language_data): Likewise.
5524 * findvar.c (default_read_var_value): Rename to...
5525 (language_defn::read_var_value): ...this.
5526 * findvar.c (read_var_value): Update header comment, and change to
5527 call member function instead of function pointer.
5528 * go-lang.c (go_language_data): Likewise.
5529 * language.c (unknown_language_data): Delete la_read_var_value
5530 initializer.
5531 (auto_language_data): Likewise.
5532 * language.h (struct language_data): Delete la_read_var_value
5533 field.
5534 (language_defn::read_var_value): New member function.
5535 (default_read_var_value): Delete declaration.
5536 * m2-lang.c (m2_language_data): Delete la_read_var_value
5537 initializer.
5538 * objc-lang.c (objc_language_data): Likewise.
5539 * opencl-lang.c (opencl_language_data): Likewise.
5540 * p-lang.c (pascal_language_data): Likewise.
5541 * rust-lang.c (rust_language_data): Likewise.
5542 * value.h (default_read_var_value): Delete declaration.
5543
5544 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5545
5546 * ada-lang.c (ada_print_array_index): Delete function, move
5547 implementation to...
5548 (ada_language::print_array_index): ...here.
5549 (ada_language_data): Delete la_print_array_index initializer.
5550 * c-lang.c (c_language_data): Likewise.
5551 (cplus_language_data): Likewise.
5552 (minimal_language_data): Likewise.
5553 * d-lang.c (d_language_data): Likewise.
5554 * f-lang.c (f_language_data): Likewise.
5555 * go-lang.c (go_language_data): Likewise.
5556 * language.c (default_print_array_index): Delete function, move
5557 implementation to...
5558 (language_defn::print_array_index): ...here.
5559 (unknown_language_data): Delete la_print_array_index initializer.
5560 (auto_language_data): Likewise.
5561 * language.h (struct language_data): Delete la_print_array_index
5562 field.
5563 (language_defn::print_array_index): New member function.
5564 (LA_PRINT_ARRAY_INDEX): Update.
5565 (default_print_array_index): Delete declaration.
5566 * m2-lang.c (m2_language_data): Delete la_print_array_index
5567 initializer.
5568 * objc-lang.c (objc_language_data): Likewise.
5569 * opencl-lang.c (opencl_language_data): Likewise.
5570 * p-lang.c (pascal_language_data): Likewise.
5571 * rust-lang.c (rust_language_data): Likewise.
5572
5573 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5574
5575 * gdb/ada-lang.c (ada_language_defn): Convert to...
5576 (ada_language_data): ...this.
5577 (class ada_language): New class.
5578 (ada_language_defn): New static global.
5579 * gdb/c-lang.c (c_language_defn): Convert to...
5580 (c_language_data): ...this.
5581 (class c_language): New class.
5582 (c_language_defn): New static global.
5583 (cplus_language_defn): Convert to...
5584 (cplus_language_data): ...this.
5585 (class cplus_language): New class.
5586 (cplus_language_defn): New static global.
5587 (asm_language_defn): Convert to...
5588 (asm_language_data): ...this.
5589 (class asm_language): New class.
5590 (asm_language_defn): New static global.
5591 (minimal_language_defn): Convert to...
5592 (minimal_language_data): ...this.
5593 (class minimal_language): New class.
5594 (minimal_language_defn): New static global.
5595 * gdb/d-lang.c (d_language_defn): Convert to...
5596 (d_language_data): ...this.
5597 (class d_language): New class.
5598 (d_language_defn): New static global.
5599 * gdb/f-lang.c (f_language_defn): Convert to...
5600 (f_language_data): ...this.
5601 (class f_language): New class.
5602 (f_language_defn): New static global.
5603 * gdb/go-lang.c (go_language_defn): Convert to...
5604 (go_language_data): ...this.
5605 (class go_language): New class.
5606 (go_language_defn): New static global.
5607 * gdb/language.c (unknown_language_defn): Remove declaration.
5608 (current_language): Initialize to nullptr, real initialization is
5609 moved to _initialize_language.
5610 (languages): Delete global.
5611 (language_defn::languages): Define.
5612 (set_language_command): Use language_defn::languages.
5613 (set_language): Likewise.
5614 (range_error): Likewise.
5615 (language_enum): Likewise.
5616 (language_def): Likewise.
5617 (add_set_language_command): Use language_def::languages for the
5618 language list, and language_def to lookup language pointers.
5619 (skip_language_trampoline): Use language_defn::languages.
5620 (unknown_language_defn): Convert to...
5621 (unknown_language_data): ...this.
5622 (class unknown_language): New class.
5623 (unknown_language_defn): New static global.
5624 (auto_language_defn): Convert to...
5625 (auto_language_data): ...this.
5626 (class auto_language): New class.
5627 (auto_language_defn): New static global.
5628 (language_gdbarch_post_init): Use language_defn::languages.
5629 (_initialize_language): Initialize current_language.
5630 * gdb/language.h (struct language_defn): Rename to...
5631 (struct language_data): ...this.
5632 (struct language_defn): New.
5633 (auto_language_defn): Delete.
5634 (unknown_language_defn): Delete.
5635 (minimal_language_defn): Delete.
5636 (ada_language_defn): Delete.
5637 (asm_language_defn): Delete.
5638 (c_language_defn): Delete.
5639 (cplus_language_defn): Delete.
5640 (d_language_defn): Delete.
5641 (f_language_defn): Delete.
5642 (go_language_defn): Delete.
5643 (m2_language_defn): Delete.
5644 (objc_language_defn): Delete.
5645 (opencl_language_defn): Delete.
5646 (pascal_language_defn): Delete.
5647 (rust_language_defn): Delete.
5648 * gdb/m2-lang.c (m2_language_defn): Convert to...
5649 (m2_language_data): ...this.
5650 (class m2_language): New class.
5651 (m2_language_defn): New static global.
5652 * gdb/objc-lang.c (objc_language_defn): Convert to...
5653 (objc_language_data): ...this.
5654 (class objc_language): New class.
5655 (objc_language_defn): New static global.
5656 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5657 (opencl_language_data): ...this.
5658 (class opencl_language): New class.
5659 (opencl_language_defn): New static global.
5660 * gdb/p-lang.c (pascal_language_defn): Convert to...
5661 (pascal_language_data): ...this.
5662 (class pascal_language): New class.
5663 (pascal_language_defn): New static global.
5664 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5665 language pointer, update comment format.
5666 * gdb/rust-lang.c (rust_language_defn): Convert to...
5667 (rust_language_data): ...this.
5668 (class rust_language): New class.
5669 (rust_language_defn): New static global.
5670
5671 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5672
5673 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5674 member variable.
5675 <m_stmt_at_address>: New member variable.
5676 (lnp_state_machine::record_line): Don't record some lines, update
5677 tracking of is_stmt at the same address.
5678 (lnp_state_machine::lnp_state_machine): Initialise new member
5679 variables.
5680
5681 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5682
5683 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5684 "-include gnu-nat-mig.h".
5685 * gnu-nat-mig.h: New file.
5686 * gnu-nat.c: Include "gnu-nat-mig.h".
5687 (exc_server, msg_reply_server, notify_server,
5688 process_reply_server): Remove declarations.
5689
5690 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5691
5692 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5693 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5694 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5695 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5696 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5697 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5698 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5699 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5700 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5701 to gnu_nat_target class.
5702 * gnu-nat.c: Likewise.
5703 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5704 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5705 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5706 object.
5707 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5708 instead of `gnu_target'.
5709
5710 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5711
5712 * i386-gnu-tdep.c: Include "gdbcore.h"
5713 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5714 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5715 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5716 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5717 i386_gnu_sigcontext_addr): New functions
5718 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5719 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5720 tdep.
5721
5722 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5723
5724 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5725 before fork_inferior call. Avoid calling it if target_is_pushed returns
5726 true.
5727
5728 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5729
5730 * gnu-nat.h (gnu_target): New variable declaration.
5731 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5732 gnu_target.
5733 * gnu-nat.c (gnu_target): New variable.
5734 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5735 add_thread_silent, and add_thread calls.
5736 (gnu_nat_target::create_inferior): Pass gnu_target to
5737 add_thread_silent, thread_change_ptid call.
5738 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5739 call.
5740
5741 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5742
5743 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5744 (gnu_nat_target::find_memory_regions): Remove unused
5745 `old_address' variable.
5746
5747 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5748
5749 * gnu-nat.c: Include "gdbarch.h".
5750
5751 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5752
5753 * reply_mig_hack.awk (Error return): Cast function through
5754 void *, to bypass compiler function call check.
5755
5756 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5757
5758 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5759 $(srcdir)/reply_mig_hack.awk.
5760
5761 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5762
5763 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5764
5765 2020-05-30 Jonny Grant <jg@jguk.org>
5766
5767 * configure.ac (ACX_BUGURL): change bug URL to https.
5768
5769 2020-05-30 Pedro Alves <palves@redhat.com>
5770
5771 * cp-support.c (replace_typedefs_template): New.
5772 (replace_typedefs_qualified_name): Handle
5773 DEMANGLE_COMPONENT_TEMPLATE.
5774
5775 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
5776
5777 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5778 dwarf2/index-cache.h, dwarf2/index-write.c,
5779 dwarf2/index-write.h, dwarf2/line-header.c,
5780 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5781 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5782 variables and fields from `dwarf2_per_objfile` to just
5783 `per_objfile` throughout.
5784
5785 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5786
5787 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5788 <push_dwarf_reg_entry_value>: Add comment.
5789
5790 2020-05-28 Kevin Buettner <kevinb@redhat.com>
5791 Keith Seitz <keiths@redhat.com>
5792
5793 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5794 instead of PyEval_ReleaseLock.
5795 (class gdbpy_gil): Move to earlier in file.
5796 (finalize_python): Set gdb_python_initialized.
5797 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5798 when not initialized.
5799
5800 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
5801
5802 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5803 <push_dwarf_reg_entry_value>: Remove assert. Override
5804 per_objfile with caller_per_objfile.
5805
5806 2020-05-28 Tom de Vries <tdevries@suse.de>
5807
5808 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
5809 PR gold/15646 workaround to symbol kind "type".
5810
5811 2020-05-27 Tom Tromey <tromey@adacore.com>
5812
5813 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
5814
5815 2020-05-27 Tom Tromey <tromey@adacore.com>
5816
5817 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5818 Use htab_find_with_hash.
5819 <add_abbrev>: Remove "abbrev_number" parameter.
5820 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
5821 "abbrev_number" parameter. Use htab_find_slot_with_hash.
5822 (hash_abbrev): Add comment.
5823 (abbrev_table::lookup_abbrev): Move to header file.
5824 (abbrev_table::read): Update.
5825
5826 2020-05-27 Tom Tromey <tromey@adacore.com>
5827
5828 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
5829 method.
5830 <canonical_name>: New member.
5831 <raw_name>: Rename from "name".
5832 (partial_die_info): Initialize canonical_name.
5833 (scan_partial_symbols): Check raw_name.
5834 (partial_die_parent_scope, partial_die_full_name)
5835 (add_partial_symbol, add_partial_subprogram)
5836 (add_partial_enumeration, load_partial_dies): Use "name" method.
5837 (partial_die_info::name): New method.
5838 (partial_die_info::read, guess_partial_die_structure_name)
5839 (partial_die_info::fixup): Update.
5840
5841 2020-05-27 Tom Tromey <tromey@adacore.com>
5842
5843 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
5844 <get_ref_die_offset>: Inline.
5845 <get_ref_die_offset_complaint>: New method.
5846 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
5847 (attribute::get_ref_die_offset_complaint): Rename from
5848 get_ref_die_offset. Just issue complaint.
5849
5850 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5851
5852 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
5853
5854 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5855
5856 * exec.c (exec_file_attach): Use errno value of first openp failure.
5857
5858 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5859
5860 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5861 Don't close thread handle.
5862
5863 2020-05-27 Tom Tromey <tom@tromey.com>
5864 Simon Marchi <simon.marchi@efficios.com>
5865
5866 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5867 shared_ptr.
5868 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5869 member.
5870 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5871 dwarf2_per_bfd_objfile_data_key>: New globals.
5872 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5873 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5874 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5875 shared.
5876 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5877 short-circuit when sharing.
5878 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5879 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5880
5881 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5882
5883 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5884 to...
5885 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5886 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5887
5888 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5889
5890 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5891 build_name_components, find_name_components_bounds>:
5892 Add per_objfile parameter.
5893 (struct mapped_index) <symbol_name_at>: Likewise.
5894 (struct mapped_debug_names): Remove constructor.
5895 <dwarf2_per_objfile>: Remove field.
5896 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5897 (mapped_index_base::find_name_components_bounds,
5898 mapped_index_base::build_name_components,
5899 dw2_expand_symtabs_matching_symbol): Likewise.
5900 (class mock_mapped_index) <symbol_name_at>: Likewise.
5901 (check_match): Likewise.
5902 (check_find_bounds_finds): Likewise.
5903 (test_mapped_index_find_name_component_bounds): Update.
5904 (CHECK_MATCH): Update.
5905 (dw2_expand_symtabs_matching): Update.
5906 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5907 per_objfile parameter.
5908 <find_vec_in_debug_names>: Likewise.
5909 <m_per_objfile>: New field.
5910 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5911 parameter.
5912 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5913 (dw2_debug_names_iterator::next): Update.
5914 (dw2_debug_names_lookup_symbol): Update.
5915 (dw2_debug_names_expand_symtabs_for_function): Update.
5916 (dw2_debug_names_map_matching_symbols): Update.
5917 (dw2_debug_names_expand_symtabs_matching): Update.
5918 (dwarf2_read_debug_names): Update.
5919
5920 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5921
5922 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5923 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5924 move to dwarf2_per_objfile.
5925 <read_in_chain>: Remove.
5926 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5927 remove_all_cus, age_comp_units>: New methods.
5928 <m_dwarf2_cus>: New member.
5929 (struct dwarf2_per_cu_data) <cu>: Remove.
5930 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5931 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5932 moved to methods of dwarf2_per_objfile.
5933 (dwarf2_clear_marks): Remove.
5934 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5935 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5936 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5937 (dwarf2_per_objfile::remove_all_cus): New.
5938 (class free_cached_comp_units) <~free_cached_comp_units>:
5939 Update.
5940 (load_cu): Update.
5941 (dw2_do_instantiate_symtab): Adjust.
5942 (fill_in_sig_entry_from_dwo_entry): Adjust.
5943 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5944 (cutu_reader::cutu_reader): Likewise.
5945 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5946 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5947 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5948 and dwarf2_per_objfile::age_comp_units.
5949 (load_partial_comp_unit): Update.
5950 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5951 (process_queue): Likewise.
5952 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5953 backlink.
5954 (dwarf2_read_addr_index): Likewise.
5955 (follow_die_offset): Likewise.
5956 (dwarf2_fetch_die_loc_sect_off): Likewise.
5957 (dwarf2_fetch_constant_bytes): Likewise.
5958 (dwarf2_fetch_die_type_sect_off): Likewise.
5959 (follow_die_sig_1): Likewise.
5960 (load_full_type_unit): Likewise.
5961 (read_signatured_type): Likewise.
5962 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5963 (dwarf2_cu::~dwarf2_cu): Remove.
5964 (dwarf2_per_objfile::get_cu): New.
5965 (dwarf2_per_objfile::set_cu): New.
5966 (age_cached_comp_units): Rename to...
5967 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5968 to std::unordered_map.
5969 (free_one_cached_comp_unit): Rename to...
5970 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5971 to std::unordered_map.
5972 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5973 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5974 a dwarf2_per_objfile in data.
5975 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5976 (dwarf2_clear_marks): Remove.
5977
5978 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5979
5980 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5981 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5982 (init_tu_and_read_dwo_dies): Likewise.
5983 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5984 (cutu_reader::cutu_reader): Likewise.
5985 (load_partial_comp_unit): Likewise.
5986 (process_psymtab_comp_unit): Update.
5987 (build_type_psymtabs_1): Update.
5988 (process_skeletonless_type_unit): Update.
5989 (load_full_comp_unit): Update.
5990 (find_partial_die): Update.
5991 (dwarf2_read_addr_index): Update.
5992 (read_signatured_type): Update.
5993
5994 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5995
5996 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5997 m_header_read_in>: New fields.
5998 <get_header>: New method.
5999 * dwarf2/read.c (per_cu_header_read_in): Remove.
6000 (dwarf2_per_cu_data::get_header): New.
6001 (dwarf2_per_cu_data::addr_size): Update.
6002 (dwarf2_per_cu_data::offset_size): Update.
6003 (dwarf2_per_cu_data::ref_addr_size): Update.
6004
6005 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6006
6007 * dwarf2/read.c (load_cu): Return dwarf2_cu.
6008 (dw2_do_instantiate_symtab): Update.
6009 (queue_and_load_all_dwo_tus): Change parameter from
6010 dwarf2_per_cu_data to dwarf2_cu.
6011 (dwarf2_fetch_die_loc_sect_off): Update.
6012 (dwarf2_fetch_constant_bytes): Update.
6013 (dwarf2_fetch_die_type_sect_off): Update.
6014
6015 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6016
6017 * dwarf2/read.c (process_full_comp_unit,
6018 process_full_type_unit): Remove per_cu, per_objfile paramters.
6019 Add dwarf2_cu parameter.
6020 (process_queue): Update.
6021
6022 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6023
6024 * dwarf2/read.c (create_cu_from_index_list): Replace
6025 dwarf2_per_objfile parameter with dwarf2_per_bfd.
6026 (create_cus_from_index_list): Likewise.
6027 (create_cus_from_index): Likewise.
6028 (create_signatured_type_table_from_index): Likewise.
6029 (create_cus_from_debug_names_list): Likewise.
6030 (create_cus_from_debug_names): Likewise.
6031 (dwarf2_read_gdb_index): Update.
6032 (dwarf2_read_debug_names): Update.
6033
6034 2020-05-27 Tom Tromey <tom@tromey.com>
6035 Simon Marchi <simon.marchi@efficios.com>
6036
6037 * dwarf2/read.h (struct dwarf2_per_objfile)
6038 <get_type_for_signatured_type, set_type_for_signatured_type>:
6039 New methods.
6040 <m_type_map>: New member.
6041 (struct signatured_type) <type>: Remove.
6042 * dwarf2/read.c
6043 (dwarf2_per_objfile::get_type_for_signatured_type,
6044 dwarf2_per_objfile::set_type_for_signatured_type): New.
6045 (get_signatured_type): Use new methods.
6046
6047 2020-05-27 Tom Tromey <tom@tromey.com>
6048 Simon Marchi <simon.marchi@efficios.com>
6049
6050 * dwarf2/read.h (struct type_unit_group_unshareable): New.
6051 (struct dwarf2_per_objfile) <type_units>: New member.
6052 <get_type_unit_group_unshareable>: New method.
6053 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
6054 num_symtabs, symtabs>: Remove; move to
6055 type_unit_group_unshareable.
6056 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
6057 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
6058 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
6059
6060 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6061
6062 * dwarf2/read.h (struct dwarf2_per_cu_data):
6063 <dwarf2_per_objfile>: Remove.
6064 * dwarf2/read.c (create_cu_from_index_list): Don't assign
6065 dwarf2_per_objfile.
6066 (create_signatured_type_table_from_index): Likewise.
6067 (create_signatured_type_table_from_debug_names): Likewise.
6068 (create_debug_type_hash_table): Likewise.
6069 (fill_in_sig_entry_from_dwo_entry): Likewise.
6070 (create_type_unit_group): Likewise.
6071 (read_comp_units_from_section): Likewise.
6072 (create_cus_hash_table): Likewise.
6073
6074 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6075
6076 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
6077 dwarf2_per_cu_data::dwarf2_per_objfile.
6078 (compute_compunit_symtab_includes): Likewise.
6079 (dwarf2_cu::start_symtab): Likewise.
6080
6081 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6082
6083 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
6084 parameter.
6085 * dwarf2/read.c (get_die_type_at_offset): Likewise.
6086 (read_namespace_alias): Update.
6087 (lookup_die_type): Update.
6088 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
6089 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
6090 Update.
6091 (disassemble_dwarf_expression): Update.
6092
6093 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6094
6095 * dwarf2/read.h (struct dwarf2_queue_item): Add
6096 dwarf2_per_objfile parameter, assign new parameter.
6097 <per_objfile>: New field.
6098 * dwarf2/read.c (free_one_cached_comp_unit): Add
6099 dwarf2_per_objfile parameter.
6100 (queue_comp_unit): Likewise.
6101 (dw2_do_instantiate_symtab): Update.
6102 (process_psymtab_comp_unit): Update.
6103 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
6104 (process_imported_unit_die): Update.
6105 (queue_and_load_dwo_tu): Update.
6106 (follow_die_offset): Update.
6107 (follow_die_sig_1): Update.
6108
6109 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6110
6111 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
6112 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
6113 (read_call_site_scope): Assign per_objfile.
6114 (dwarf2_per_cu_data::objfile): Remove.
6115 * gdbtypes.h (struct call_site) <per_objfile>: New member.
6116 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
6117 dwarf2_per_objfile parameter.
6118 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
6119 dwarf2_per_objfile parameter.
6120 (dwarf_expr_reg_to_entry_parameter): Add output
6121 dwarf2_per_objfile parameter.
6122 (locexpr_get_frame_base): Update.
6123 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
6124 <push_dwarf_reg_entry_value>: Update.
6125 <call_site_to_target_addr>: Update.
6126 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
6127 parameter.
6128 (value_of_dwarf_reg_entry): Update.
6129 (rw_pieced_value): Update.
6130 (indirect_synthetic_pointer): Update.
6131 (dwarf2_evaluate_property): Update.
6132 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
6133 parameter.
6134 (locexpr_read_variable): Update.
6135 (locexpr_get_symbol_read_needs): Update.
6136 (loclist_read_variable): Update.
6137
6138 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6139
6140 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6141 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6142 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6143 parameter.
6144 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6145 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6146 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6147 parameter.
6148 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6149 sect_variable_value): Add dwarf2_per_objfile parameter.
6150 (class dwarf_evaluate_loc_desc) <dwarf_call,
6151 dwarf_variable_value>: Update.
6152 (fetch_const_value_from_synthetic_pointer): Add
6153 dwarf2_per_objfile parameter.
6154 (fetch_const_value_from_synthetic_pointer): Update.
6155 (coerced_pieced_ref): Update.
6156 (class symbol_needs_eval_context) <dwarf_call,
6157 dwarf_variable_value>: Update.
6158 (dwarf2_compile_expr_to_ax): Update.
6159
6160 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6161
6162 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6163 parameter.
6164 (dwarf2_evaluate_loc_desc_full): Update.
6165
6166 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6167
6168 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6169 parameter.
6170 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6171 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6172 dwarf2_per_objfile parameter.
6173 (decode_debug_loc_dwo_addresses): Likewise.
6174 (dwarf2_find_location_expression): Update.
6175 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6176 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6177 parameter.
6178 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6179 parameter.
6180 (locexpr_describe_location_1): Likewise.
6181 (locexpr_describe_location): Update.
6182
6183 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6184
6185 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6186 Remove.
6187 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6188 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6189 (dwarf2_compile_property_to_c): Update.
6190 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6191 use text offset from objfile.
6192 (locexpr_tracepoint_var_ref): Update.
6193 (locexpr_generate_c_location): Update.
6194 (loclist_describe_location): Update.
6195 (loclist_tracepoint_var_ref): Update.
6196 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6197 dwarf2_per_objfile parameter.
6198 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6199 use text offset from objfile.
6200 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6201
6202 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6203
6204 * dwarf2/expr.h (struct dwarf_expr_context)
6205 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6206 <offset>: Remove.
6207 <per_objfile>: New member.
6208 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6209 dwarf2_per_objfile parameter. Don't set offset, set
6210 per_objfile.
6211 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6212 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6213 a dwarf2_per_objfile object instead of an offset.
6214 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6215 constructor.
6216 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6217 to dwarf2_expr_executor constructor. Don't set offset.
6218 (dwarf2_fetch_cfa_info): Update.
6219 (struct dwarf2_frame_cache) <text_offset>: Remove.
6220 <per_objfile>: New field.
6221 (dwarf2_frame_cache): Update.
6222 (dwarf2_frame_prev_register): Update.
6223 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6224 <dwarf_evaluate_loc_desc>: Add constructor.
6225 (dwarf2_evaluate_loc_desc_full): Update.
6226 (dwarf2_locexpr_baton_eval): Update.
6227 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6228 Add constructor.
6229 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6230
6231 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6232
6233 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6234 addr_sized_int_type>: Move to dwarf2_cu.
6235 <int_type>: Move to dwarf2_per_objfile.
6236 (struct dwarf2_per_objfile) <int_type>: Move here.
6237 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6238 addr_sized_int_type>: Move here.
6239 (read_func_scope): Update.
6240 (read_array_type): Update.
6241 (read_tag_string_type): Update.
6242 (attr_to_dynamic_prop): Update.
6243 (dwarf2_per_cu_data::int_type): Rename to...
6244 (dwarf2_per_objfile::int_type): ... this.
6245 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6246 (dwarf2_cu::addr_sized_int_type): ... this.
6247 (read_subrange_type): Update.
6248 (dwarf2_per_cu_data::addr_type): Rename to...
6249 (dwarf2_cu::addr_type): ... this.
6250 (set_die_type): Update.
6251
6252 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6253
6254 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6255 data through per_cu->cu.
6256
6257 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6258
6259 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6260 dwarf2_per_cu_data parameter fo dwarf2_cu.
6261 (lookup_dwo_type_unit): Likewise.
6262 (read_cutu_die_from_dwo): Likewise.
6263 (lookup_dwo_unit): Likewise.
6264 (open_and_init_dwo_file): Likewise.
6265 (lookup_dwo_cutu): Likewise.
6266 (lookup_dwo_comp_unit): Likewise.
6267 (lookup_dwo_type_unit): Likewise.
6268 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6269 (cutu_reader::cutu_reader): Update.
6270
6271 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6272
6273 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6274 parameter.
6275 (process_full_type_unit): Likewise.
6276 (process_queue): Update.
6277
6278 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6279
6280 * dwarf2/read.c (recursively_compute_inclusions): Add
6281 dwarf2_per_objfile parameter.
6282 (compute_compunit_symtab_includes): Likewise.
6283 (process_cu_includes): Update.
6284
6285 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6286
6287 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6288 parameter.
6289 (create_type_unit_group): Update.
6290 (process_psymtab_comp_unit_reader): Update.
6291 (build_type_psymtabs_reader): Update.
6292
6293 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6294
6295 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6296 object through m_this_cu->cu.
6297
6298 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6299
6300 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6301 the info parameter.
6302 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6303
6304 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6305
6306 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6307 per_objfile parameter.
6308 (load_full_type_unit): Add per_objfile parameter.
6309 (read_signatured_type): Likewise.
6310 (load_full_comp_unit): Likewise.
6311 (load_cu): Likewise.
6312 (dw2_do_instantiate_symtab): Likewise.
6313 (dw2_get_file_names): Likewise.
6314 (dw2_map_symtabs_matching_filename): Update.
6315 (dw_expand_symtabs_matching_file_matcher): Update.
6316 (dw2_map_symbol_filenames): Update.
6317 (process_psymtab_comp_unit): Add per_objfile parameter.
6318 (build_type_psymtabs_1): Update.
6319 (process_skeletonless_type_unit): Update.
6320 (dwarf2_build_psymtabs_hard): Update.
6321 (load_partial_comp_unit): Add per_objfile parameter.
6322 (scan_partial_symbols): Update.
6323 (load_full_comp_unit): Add per_objfile parameter.
6324 (process_imported_unit_die): Update.
6325 (create_cus_hash_table): Update.
6326 (find_partial_die): Update.
6327 (dwarf2_read_addr_index): Update.
6328 (follow_die_offset): Update.
6329 (dwarf2_fetch_die_loc_sect_off): Update.
6330 (dwarf2_fetch_constant_bytes): Update.
6331 (dwarf2_fetch_die_type_sect_off): Update.
6332 (follow_die_sig_1): Update.
6333 (load_full_type_unit): Add per_objfile parameter.
6334 (read_signatured_type): Likewise.
6335
6336 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6337
6338 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6339 of objfile_name.
6340
6341 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6342
6343 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6344 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6345 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6346 field.
6347 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6348 (create_cus_from_index): Update.
6349 (dwarf2_read_gdb_index): Update.
6350 (create_cus_from_debug_names): Update.
6351 (dwarf2_read_debug_names): Update.
6352 (get_abbrev_section_for_cu): Update.
6353 (create_all_comp_units): Update.
6354 (read_attribute_value): Update.
6355 (get_debug_line_section): Update.
6356 * dwarf2/index-cache.c (index_cache::store): Update.
6357 * dwarf2/index-write.c (save_gdb_index_command): Update.
6358 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6359
6360 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6361
6362 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6363 member.
6364 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6365 dwarf2_per_cu_data::per_bfd.
6366 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6367 (create_type_unit_group): Likewise.
6368 (queue_comp_unit): Remove reference to
6369 per_cu->dwarf2_per_objfile.
6370 (maybe_queue_comp_unit): Likewise.
6371 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6372 (create_cus_hash_table): Assign new field.
6373
6374 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6375
6376 * dwarf2/read.c: Replace
6377 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6378 dwarf2_cu->per_objfile throughout.
6379
6380 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6381
6382 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6383 parameter, don't use per_cu->dwarf2_per_objfile.
6384 (dw2_instantiate_symtab): Likewise.
6385 (dw2_find_last_source_symtab): Update.
6386 (dw2_map_expand_apply): Update.
6387 (dw2_lookup_symbol): Update.
6388 (dw2_expand_symtabs_for_function): Update.
6389 (dw2_expand_all_symtabs): Update.
6390 (dw2_expand_symtabs_with_fullname): Update.
6391 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6392 don't use per_cu->dwarf2_per_objfile.
6393 (dw2_expand_marked_cus): Update.
6394 (dw2_find_pc_sect_compunit_symtab): Update.
6395 (dw2_debug_names_lookup_symbol): Update.
6396 (dw2_debug_names_expand_symtabs_for_function): Update.
6397 (dw2_debug_names_map_matching_symbols): Update.
6398 (dwarf2_psymtab::expand_psymtab): Update.
6399
6400 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6401
6402 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6403 <per_objfile>: New member.
6404 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6405 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6406 call to dwarf2_cu.
6407 (cutu_reader::cutu_reader): Update.
6408 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6409
6410 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6411
6412 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6413 struct dwarf2_per_objfile.
6414 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6415 dwarf2_per_bfd.
6416 * dwarf2/read.c (set_die_type): Update.
6417 (get_die_type_at_offset): Update.
6418
6419 2020-05-27 Tom Tromey <tom@tromey.com>
6420 Simon Marchi <simon.marchi@efficios.com>
6421
6422 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6423 method.
6424 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6425 get_symtab, set_symtab>: New methods.
6426 <m_symtabs>: New field.
6427 (struct dwarf2_psymtab): Derive from partial_symtab.
6428 <readin_p, get_compunit_symtab>: Declare methods.
6429 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6430 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6431 New methods.
6432 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6433 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6434 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6435 (dw2_symtab_iter_next, dw2_print_stats)
6436 (dw2_expand_symtabs_with_fullname)
6437 (dw2_expand_symtabs_matching_one)
6438 (dw_expand_symtabs_matching_file_matcher)
6439 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6440 (dw2_debug_names_iterator::next)
6441 (dw2_debug_names_map_matching_symbols)
6442 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6443 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6444 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6445 New methods.
6446 (get_compunit_symtab, process_full_comp_unit)
6447 (process_full_type_unit): Update.
6448 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6449
6450 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6451
6452 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6453 then introduce a new dwarf2_per_objfile type.
6454 <read_line_string>: Move to the new dwarf2_per_objfile type.
6455 <objfile>: Likewise.
6456 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6457 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6458 dwarf2_per_objfile->per_bfd.
6459 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6460 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6461 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6462 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6463 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6464 (dwarf2_per_objfile::locate_sections): Rename to...
6465 (dwarf2_per_bfd::locate_sections): ... this.
6466 (dwarf2_per_objfile::get_cutu): Rename to...
6467 (dwarf2_per_bfd::get_cutu): ... this.
6468 (dwarf2_per_objfile::get_cu): Rename to...
6469 (dwarf2_per_bfd::get_cu): ... this.
6470 (dwarf2_per_objfile::get_tu): Rename to...
6471 (dwarf2_per_bfd::get_tu): ... this.
6472 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6473 (dwarf2_per_bfd::allocate_per_cu): ... this.
6474 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6475 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6476 (get_gdb_index_contents_ftype): Change parameter from
6477 dwarf2_per_objfile to dwarf2_per_bfd.
6478 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6479 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6480
6481 2020-05-27 Tom Tromey <tom@tromey.com>
6482 Simon Marchi <simon.marchi@efficios.com>
6483
6484 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6485 (allocate_piece_closure): Set "per_objfile" member.
6486 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6487 (locexpr_describe_location, loclist_describe_location): Use new
6488 member.
6489 * dwarf2/read.c (read_call_site_scope)
6490 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6491 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6492 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6493 handle_data_member_location): Set per_objfile member.
6494 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6495 member.
6496 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6497
6498 2020-05-27 Tom Tromey <tom@tromey.com>
6499
6500 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6501 allocate_signatured_type>: Declare new methods.
6502 <m_num_psymtabs>: New member.
6503 (struct dwarf2_per_cu_data) <index>: New member.
6504 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6505 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6506 (create_cu_from_index_list): Use allocate_per_cu.
6507 (create_signatured_type_table_from_index)
6508 (create_signatured_type_table_from_debug_names)
6509 (create_debug_type_hash_table, add_type_unit)
6510 (read_comp_units_from_section): Use allocate_signatured_type.
6511
6512 2020-05-27 Tom Tromey <tom@tromey.com>
6513
6514 * psymtab.c (partial_map_expand_apply)
6515 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6516 (psym_lookup_global_symbol_language)
6517 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6518 (psym_print_stats, psym_expand_symtabs_for_function)
6519 (psym_map_symbol_filenames, psym_map_matching_symbols)
6520 (psym_expand_symtabs_matching)
6521 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6522 (maintenance_check_psymtabs): Update.
6523 * psympriv.h (struct partial_symtab) <readin_p,
6524 get_compunit_symtab>: Add objfile parameter.
6525 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6526 Likewise.
6527 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6528 get_compunit_symtab>: Likewise.
6529 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6530
6531 2020-05-27 Tom Tromey <tom@tromey.com>
6532
6533 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6534 member.
6535 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6536 (create_cu_from_index_list)
6537 (create_signatured_type_table_from_index)
6538 (create_signatured_type_table_from_debug_names)
6539 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6540 (dwarf2_create_include_psymtab)
6541 (create_debug_type_hash_table, add_type_unit)
6542 (create_type_unit_group, read_comp_units_from_section)
6543 (dwarf2_compute_name, create_cus_hash_table)
6544 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6545 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6546 obstack.
6547 (dw2_get_real_path): Likewise. Change argument to
6548 dwarf2_per_objfile.
6549
6550 2020-05-27 Luis Machado <luis.machado@linaro.org>
6551
6552 PR tdep/26000
6553 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6554 for ldrd (immediate).
6555
6556 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6557
6558 * command.h: Add comment giving the name of class_tui.
6559 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6560 create the fake command for the help for class_tui.
6561
6562 2020-05-26 Tom Tromey <tromey@adacore.com>
6563
6564 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6565 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6566 (val_atr): New function.
6567 (value_val_atr): Use it.
6568 * ada-valprint.c (print_optional_low_bound): Change low bound
6569 handling for enums.
6570 (val_print_packed_array_elements): Don't call discrete_position.
6571 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6572 discrete_position for enum types.
6573 * language.c (default_print_array_index): Change type.
6574 * language.h (struct language_defn) <la_print_array_index>: Add
6575 index_type parameter, change type of index_value.
6576 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6577 (default_print_array_index): Update.
6578 * valprint.c (maybe_print_array_index): Don't call
6579 value_from_longest. Update.
6580 (value_print_array_elements): Don't call discrete_position.
6581
6582 2020-05-26 Tom Tromey <tromey@adacore.com>
6583
6584 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6585 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6586
6587 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6588
6589 PR gdb/13519
6590 * avr-tdep.c (avr_integer_to_address): Return data or code
6591 address accordingly to the second 'type' argument of the
6592 function.
6593
6594 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6595
6596 * infcmd.c, inferior.h: (construct_inferior_arguments):
6597 Moved function from here to gdbsupport/common-inferior.{h,cc}
6598
6599 2020-05-23 Tom Tromey <tom@tromey.com>
6600
6601 Revert commit eca1f90c:
6602 * NEWS: Remove entry for completion styling.
6603 * completer.c (_rl_completion_prefix_display_length): Move
6604 declaration later.
6605 (gdb_fnprint): Revert.
6606 (gdb_display_match_list_1): Likewise.
6607 * cli/cli-style.c (completion_prefix_style)
6608 (completion_difference_style, completion_suffix_style): Remove.
6609 (_initialize_cli_style): Revert.
6610 * cli/cli-style.h (completion_prefix_style)
6611 (completion_difference_style, completion_suffix_style): Don't
6612 declare.
6613
6614 2020-05-24 Pedro Alves <palves@redhat.com>
6615
6616 * symtab.c (completion_list_add_name): Return boolean indication
6617 of whether the symbol matched.
6618 (completion_list_add_symbol): Don't try to remove C++ aliases if
6619 the symbol didn't match in the first place.
6620 * symtab.h (completion_list_add_name): Return bool.
6621
6622 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6623
6624 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6625 type::field.
6626
6627 2020-05-23 Joel Brobecker <brobecker@adacore.com>
6628
6629 GDB 9.2 released.
6630
6631 2020-05-23 Tom Tromey <tom@tromey.com>
6632
6633 * NEWS: Add entry for completion styling.
6634 * completer.c (_rl_completion_prefix_display_length): Move
6635 declaration earlier.
6636 (gdb_fnprint): Use completion_style.
6637 (gdb_display_match_list_1): Likewise.
6638 * cli/cli-style.c (completion_prefix_style)
6639 (completion_difference_style, completion_suffix_style): New
6640 globals.
6641 (_initialize_cli_style): Register new globals.
6642 * cli/cli-style.h (completion_prefix_style)
6643 (completion_difference_style, completion_suffix_style): Declare.
6644
6645 2020-05-23 Pedro Alves <palves@redhat.com>
6646
6647 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6648 (parse_escape): Use ISDIGIT instead of isdigit.
6649 (puts_debug): Use gdb_isprint instead of isprint.
6650 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6651 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6652 ISSPACE instead of isspace.
6653 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6654 instead of isspace.
6655 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6656 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6657 instead of isxdigit and ISDIGIT instead of isdigit.
6658
6659 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6660
6661 * gdbtypes.h (struct type) <field>: New method.
6662 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6663 or type::field.
6664
6665 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6666
6667 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6668 (TYPE_FIELDS): Use type::fields. Change all call sites that
6669 modify the propery to use type::set_fields instead.
6670
6671 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6672
6673 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6674 type::num_fields instead.
6675
6676 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6677
6678 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6679 methods.
6680 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6681 that modify the number of fields to use type::set_num_fields
6682 instead.
6683
6684 2020-05-22 Tom Tromey <tromey@adacore.com>
6685
6686 * compile/compile-object-load.h (munmap_list_free): Don't
6687 declare.
6688
6689 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6690
6691 * annotate.c (annotate_source_line): Update return type, add call
6692 to update current symtab and line.
6693 * annotate.h (annotate_source_line): Update return type, and
6694 extend header comment.
6695 * source.c (info_line_command): Check annotation_level before
6696 calling annotate_source_line.
6697 * stack.c (print_frame_info): If calling annotate_source_line
6698 returns true, then don't print any other source line information.
6699
6700 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
6701
6702 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6703
6704 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
6705
6706 * coffread.c (patch_type): Remove NULL check before xfree.
6707 * corefile.c (set_gnutarget): Likewise.
6708 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6709 * exec.c (build_section_table): Likewise.
6710 * remote.c (remote_target::pass_signals): Likewise.
6711 * utils.c (n_spaces): Likewise.
6712 * cli/cli-script.c (document_command): Likewise.
6713 * i386-windows-tdep.c (core_process_module_section): Likewise.
6714 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6715
6716 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
6717
6718 * symfile.c (reread_symbols): Clear objfile's section_offsets
6719 vector and section indices, re-compute them by calling
6720 sym_offsets.
6721
6722 2020-05-20 Tom Tromey <tromey@adacore.com>
6723
6724 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
6725 (desc_one_bound, desc_index_type): Compute field name.
6726
6727 2020-05-20 Tom de Vries <tdevries@suse.de>
6728
6729 PR symtab/25833
6730 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6731
6732 2020-05-20 Alan Modra <amodra@gmail.com>
6733
6734 PR 25993
6735 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6736 bfd_set_filename.
6737 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6738 passed to bfd_set_filename.
6739 * symfile-mem.c (add_vsyscall_page): Likewise for string
6740 passed to symbol_file_add_from_memory.
6741 (symbol_file_add_from_memory): Make name param a const char* and
6742 don't strdup.
6743
6744 2020-05-20 Alan Modra <amodra@gmail.com>
6745
6746 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6747 rather than accessing bfd->filename directly.
6748 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6749 and use bfd_section_name.
6750 * dwarf2/frame.c (decode_frame_entry): Likewise.
6751 * exec.c (exec_set_section_address): Likewise.
6752 * solib-aix.c (solib_aix_bfd_open): Likewise.
6753 * stap-probe.c (get_stap_base_address): Likewise.
6754 * symfile.c (reread_symbols): Likewise.
6755
6756 2020-05-19 Tom Tromey <tromey@adacore.com>
6757
6758 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6759
6760 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6761
6762 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6763
6764 2020-05-19 Pedro Alves <palves@redhat.com>
6765
6766 * NEWS (set exec-file-mismatch): Adjust entry.
6767 * exec.c: Include "build-id.h".
6768 (validate_exec_file): Try to match build IDs instead of filenames.
6769 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6770 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6771 and pass down 'warn_if_slow'.
6772 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6773 gdb_bfd_open_closure to pass it down.
6774 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6775
6776 2020-05-19 Pedro Alves <palves@redhat.com>
6777
6778 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6779 * target.c (target_fileio_open_1): Rename to target_fileio_open
6780 and make extern. Use bool.
6781 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6782 (target_fileio_read_alloc_1): Adjust.
6783 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6784 (target_fileio_open_warn_if_slow): Delete declaration.
6785
6786 2020-05-19 Pedro Alves <palves@redhat.com>
6787
6788 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6789 Adjust all callers.
6790
6791 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6792
6793 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6794 whether disp is negative.
6795
6796 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6797
6798 * symfile.h (struct symfile_segment_data)
6799 <~symfile_segment_data>: Remove.
6800 <segment_info>: Change to std::vector.
6801 * symfile.c (default_symfile_segments): Update.
6802 * elfread.c (elf_symfile_segments): Update.
6803
6804 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6805
6806 * symfile.h (struct symfile_segment_data) <struct segment>: New.
6807 <segments>: New.
6808 <segment_bases, segment_sizes>: Remove.
6809 * symfile.c (default_symfile_segments): Update.
6810 * elfread.c (elf_symfile_segments): Update.
6811 * remote.c (remote_target::get_offsets): Update.
6812 * solib-target.c (solib_target_relocate_section_addresses):
6813 Update.
6814
6815 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6816
6817 * symfile.h (struct symfile_segment_data): Initialize fields.
6818 <~symfile_segment_data>: Add.
6819 (symfile_segment_data_up): New.
6820 (struct sym_fns) <sym_segments>: Return a
6821 symfile_segment_data_up.
6822 (default_symfile_segments): Return a symfile_segment_data_up.
6823 (free_symfile_segment_data): Remove.
6824 (get_symfile_segment_data): Return a symfile_segment_data_up.
6825 * symfile.c (default_symfile_segments): Likewise.
6826 (get_symfile_segment_data): Likewise.
6827 (free_symfile_segment_data): Remove.
6828 (symfile_find_segment_sections): Update.
6829 * elfread.c (elf_symfile_segments): Return a
6830 symfile_segment_data_up.
6831 * remote.c (remote_target::get_offsets): Update.
6832 * solib-target.c (solib_target_relocate_section_addresses):
6833 Update.
6834 * symfile-debug.c (debug_sym_segments): Return a
6835 symfile_segment_data_up.
6836
6837 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6838
6839 PR build/25981
6840 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
6841 Hardcode register numbers.
6842
6843 PR build/25981
6844 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
6845 procfs_find_LDT_entry): Remove.
6846 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
6847 procfs_find_LDT_entry): Remove.
6848 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
6849 Remove.
6850
6851 2020-05-17 Pedro Alves <palves@redhat.com>
6852 Andrew Burgess <andrew.burgess@embecosm.com>
6853 Keno Fischer <keno@juliacomputing.com>
6854
6855 PR gdb/25741
6856 * breakpoint.c (build_target_condition_list): Update comments.
6857 (build_target_command_list): Update comments and skip matching
6858 locations.
6859 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
6860 a separate function. Simplify "set breakpoint auto-hw off"
6861 handling.
6862 (insert_breakpoints): Update comment.
6863 (tracepoint_locations_match): New parameter. For breakpoints,
6864 compare location types too, if the caller wants to.
6865 (handle_automatic_hardware_breakpoints): New functions.
6866 (bp_location_is_less_than): Also sort by location type and
6867 hardware breakpoint length.
6868 (update_global_location_list): Handle "set breakpoint auto-hw on"
6869 here.
6870 (update_breakpoint_locations): Ask breakpoint_locations_match to
6871 ignore location types.
6872
6873 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6874
6875 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6876 type::name instead.
6877
6878 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6879
6880 * gdbtypes.h (struct type) <name, set_name>: New methods.
6881 (TYPE_CODE): Use type::name. Change all call sites used to set
6882 the name to use type::set_name instead.
6883
6884 2020-05-16 Tom Tromey <tom@tromey.com>
6885
6886 * top.c (quit_force): Update.
6887 * infrun.c (handle_no_resumed): Update.
6888 * top.h (all_uis): New function.
6889 (ALL_UIS): Remove.
6890
6891 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6892
6893 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6894
6895 2020-05-16 Pedro Alves <palves@redhat.com>
6896
6897 * ia64-linux-nat.c
6898 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6899 Declare method.
6900 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6901
6902 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
6903
6904 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6905 (sparc64_adi_info): Likewise.
6906
6907 2020-05-15 Tom Tromey <tom@tromey.com>
6908
6909 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6910 block_objfile.
6911 (lookup_objfile_from_block): Remove.
6912 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6913 (lookup_global_symbol): Use block_objfile.
6914 * symtab.h (lookup_objfile_from_block): Don't declare.
6915 * printcmd.c (clear_dangling_display_expressions): Use
6916 block_objfile.
6917 * parse.c (operator_check_standard): Use block_objfile.
6918
6919 2020-05-15 Tom Tromey <tom@tromey.com>
6920
6921 * language.c (language_alloc_type_symbol): Set
6922 SYMBOL_SECTION.
6923 * symtab.c (initialize_objfile_symbol): Remove.
6924 (allocate_symbol): Remove.
6925 (allocate_template_symbol): Remove.
6926 * dwarf2/read.c (fixup_go_packaging): Use "new".
6927 (new_symbol): Use "new".
6928 (read_variable): Don't call initialize_objfile_symbol. Use
6929 "new".
6930 (read_func_scope): Use "new".
6931 * xcoffread.c (process_xcoff_symbol): Don't call
6932 initialize_objfile_symbol.
6933 (SYMBOL_DUP): Remove.
6934 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6935 "new".
6936 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6937 (allocate_template_symbol): Don't declare.
6938 (struct symbol): Add copy constructor. Change defaults.
6939 * jit.c (finalize_symtab): Use "new".
6940 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6941 Use "new".
6942 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6943 (common_block_end): Use "new".
6944 * mdebugread.c (parse_symbol): Use "new".
6945 (new_symbol): Likewise.
6946
6947 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6948
6949 * NEWS: Mention changes to help and apropos.
6950
6951 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6952
6953 * command.h (enum command_class): Improve comments, document
6954 that class_alias is for user-defined aliases, give the class
6955 name for each class, remove unused class_xdb.
6956 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6957 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6958 by a precise class.
6959 * infcmd.c (_initialize_infcmd): Likewise.
6960 * reverse.c (_initialize_reverse): Likewise.
6961 * stack.c (_initialize_stack): Likewise.
6962 * symfile.c (_initialize_symfile): Likewise.
6963 * tracepoint.c (_initialize_tracepoint): Likewise.
6964
6965 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6966
6967 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6968 when their aliased command is traversed.
6969 (help_cmd): Add fput_command_names_styled call to
6970 output command name and aliases when command has an alias.
6971
6972 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6973
6974 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6975 * cli/cli-decode.c (help_cmd_list): Declare as static,
6976 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6977 a command together with the command.
6978 (fput_command_name_styled, fput_command_names_styled): New functions.
6979 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6980 fput_command_name_styled.
6981 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6982 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6983
6984 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6985
6986 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6987 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6988 * command.h (cmd_show_list): Likewise.
6989 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6990 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6991
6992 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6993
6994 * unittests/command-def-selftests.c (traverse_command_structure):
6995 Verify all commands of a list have the same prefix command and
6996 that only the top cmdlist commands have a null prefix.
6997
6998 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6999
7000 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
7001 as prefix, not one of its aliases.
7002 (set_cmd_prefix): Remove.
7003 (do_add_cmd): Centralize the setting of the prefix of a command, when
7004 command is defined after its full chain of prefix commands.
7005 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
7006 (add_setshow_cmd_full): Likewise.
7007 (update_prefix_field_of_prefixed_commands): New function.
7008 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
7009 update_prefix_field_of_prefixed_commands.
7010 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
7011 addresses of remote_set_cmdlist and remote_show_cmdlist given
7012 as argument, not the address of an argument.
7013 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
7014 * gdb/remote.c (_initialize_remote): Likewise.
7015
7016 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7017
7018 * cli/cli-cmds.c (alias_command): Check for an existing alias
7019 using lookup_cmd_composition, as valid_command_p is too strict
7020 and forbids aliases that are the prefix of an existing alias
7021 or command.
7022 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
7023 command is properly recognised as a valid command.
7024
7025 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7026
7027 * unittests/help-doc-selftests.c: Rename to
7028 unittests/command-def-selftests.c
7029 * unittests/command-def-selftests.c (help_doc_tests): Update some
7030 comments.
7031 (command_structure_tests, traverse_command_structure): New namespace
7032 and function.
7033 (command_structure_invariants_tests): New function.
7034 (_initialize_command_def_selftests) Renamed from
7035 _initialize_help_doc_selftests, register command_structure_invariants
7036 selftest.
7037
7038 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7039
7040 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
7041 an alias of 'show'.
7042
7043 2020-05-15 Joel Brobecker <brobecker@adacore.com>
7044
7045 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
7046 ada_is_fixed_point_type. Update all callers.
7047 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
7048 all callers.
7049 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
7050 Update all callers.
7051 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
7052 print_fixed_point_type. Update all callers.
7053 * ada-valprint.c (ada_value_print_num): Replace call to
7054 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
7055
7056 2020-05-14 Kevin Buettner <kevinb@redhat.com>
7057
7058 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
7059 processors.
7060 (cpu_supports_bts): Add CV_AMD case.
7061
7062 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
7063 Simon Marchi <simon.marchi@efficios.com>
7064
7065 * infrun.c (stop_all_threads): Collect multiple wait events at
7066 each pass.
7067
7068 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
7069
7070 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
7071 type::code instead.
7072
7073 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
7074
7075 * gdbtypes.h (struct type) <code, set_code>: New methods.
7076 (TYPE_CODE): Use type::code. Change all call sites used to set
7077 the code to use type::set_code instead.
7078
7079 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7080 Tom de Vries <tdevries@suse.de>
7081 Pedro Alves <palves@redhat.com>
7082
7083 PR threads/25478
7084 * infrun.c (stop_all_threads): Do NOT ignore
7085 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
7086 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
7087 received.
7088 (handle_no_resumed): Remove code handling a live inferior with no
7089 threads.
7090 * remote.c (has_single_non_exited_thread): New.
7091 (remote_target::update_thread_list): Do not delete a thread if is
7092 the last thread of the process.
7093 * thread.c (thread_select): Call delete_exited_threads instead of
7094 prune_threads.
7095
7096 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7097
7098 * infrun.c (stop_all_threads): Enable/disable thread events of all
7099 targets. Move a debug message denoting the end of the function
7100 into the SCOPED_EXIT block.
7101
7102 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7103
7104 * process-stratum-target.h: Include <set>.
7105 (all_non_exited_process_targets, switch_to_target_no_thread): New
7106 function declarations.
7107 * process-stratum-target.c (all_non_exited_process_targets)
7108 (switch_to_target_no_thread): New function implementations.
7109
7110 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7111
7112 * infrun.c (handle_inferior_event): Extract out a piece of code
7113 into...
7114 (mark_non_executing_threads): ...this new function.
7115
7116 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7117
7118 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
7119 use.
7120
7121 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7122
7123 * regcache.c (regcache_read_pc_protected): New function
7124 implementation that returns 0 if the PC cannot read via
7125 'regcache_read_pc'.
7126 * infrun.c (proceed): Call 'regcache_read_pc_protected'
7127 instead of 'regcache_read_pc'.
7128 (keep_going_pass_signal): Ditto.
7129
7130 2020-05-13 Tom Tromey <tromey@adacore.com>
7131
7132 * ada-lang.c (align_value): Remove.
7133 (ada_template_to_fixed_record_type_1): Use align_up.
7134
7135 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7136
7137 * async-event.c: Update the copyright year.
7138 * async-event.h: Update the copyright year.
7139
7140 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
7141
7142 * objfiles.h (is_addr_in_objfile,
7143 shared_objfile_contains_address_p): Return bool.
7144 * objfile.c (is_addr_in_objfile,
7145 shared_objfile_contains_address_p): Return bool.
7146
7147 2020-05-11 Tom Tromey <tromey@adacore.com>
7148
7149 * cli/cli-cmds.c (info_command): Restore.
7150 (_initialize_cli_cmds): Use add_prefix_command for "info".
7151 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7152
7153 2020-05-11 Tom Tromey <tromey@adacore.com>
7154
7155 * ada-lang.c (ada_value_primitive_field): Now public.
7156 * ada-lang.h (ada_value_primitive_field): Declare.
7157 * ada-valprint.c (print_field_values): Use
7158 ada_value_primitive_field for wrapper fields.
7159
7160 2020-05-11 Tom de Vries <tdevries@suse.de>
7161
7162 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7163 MODULE_DOMAIN.
7164
7165 2020-05-11 Tom de Vries <tdevries@suse.de>
7166
7167 PR symtab/25941
7168 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7169 with length 0, if not gdb-produced.
7170 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7171
7172 2020-05-09 Tom de Vries <tdevries@suse.de>
7173
7174 PR gdb/25955
7175 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7176 calculation.
7177
7178 2020-05-09 Tom Tromey <tom@tromey.com>
7179
7180 * top.c (server_command): Now bool.
7181 * top.h (server_command): Now bool.
7182
7183 2020-05-08 Tom Tromey <tromey@adacore.com>
7184
7185 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7186 already being processed.
7187
7188 2020-05-08 Tom Tromey <tom@tromey.com>
7189
7190 * printcmd.c (struct display) <next>: Remove.
7191 <display>: New constructor.
7192 <exp_string>: Now a std::string.
7193 <enabled_p>: Now a bool.
7194 (display_number): Move definition earlier.
7195 (displays): Rename from display_chain. Now a std::vector.
7196 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7197 (display_command): Update.
7198 (do_one_display, disable_display)
7199 (enable_disable_display_command, do_enable_disable_display):
7200 Update.
7201 (free_display): Remove.
7202 (clear_displays): Rewrite.
7203 (delete_display): Update.
7204 (map_display_numbers): Use function_view. Remove "data"
7205 parameter. Update.
7206 (do_delete_display): Remove.
7207 (undisplay_command): Update.
7208 (do_one_display, do_displays, disable_display)
7209 (info_display_command): Update.
7210 (do_enable_disable_display): Remove.
7211 (enable_disable_display_command)
7212 (clear_dangling_display_expressions): Update.
7213
7214 2020-05-08 Tom Tromey <tom@tromey.com>
7215
7216 * symtab.c (set_symbol_cache_size)
7217 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7218 (maintenance_print_symbol_cache_statistics): Update.
7219 * symmisc.c (print_symbol_bcache_statistics)
7220 (print_objfile_statistics, maintenance_print_objfiles)
7221 (maintenance_info_symtabs, maintenance_check_symtabs)
7222 (maintenance_expand_symtabs, maintenance_info_line_tables):
7223 Update.
7224 * symfile-debug.c (set_debug_symfile): Update.
7225 * source.c (forget_cached_source_info): Update.
7226 * python/python.c (gdbpy_progspaces): Update.
7227 * psymtab.c (maintenance_info_psymtabs): Update.
7228 * probe.c (parse_probes): Update.
7229 * linespec.c (iterate_over_all_matching_symtabs)
7230 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7231 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7232 * exec.c (exec_target::close): Update.
7233 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7234 * breakpoint.c (print_one_breakpoint_location)
7235 (create_longjmp_master_breakpoint)
7236 (create_std_terminate_master_breakpoint): Update.
7237 * progspace.c (program_spaces): Now a std::vector.
7238 (maybe_new_address_space): Update.
7239 (add_program_space): Remove.
7240 (program_space::program_space): Update.
7241 (remove_program_space): Update.
7242 (number_of_program_spaces): Remove.
7243 (print_program_space, update_address_spaces): Update.
7244 * progspace.h (program_spaces): Change type.
7245 (ALL_PSPACES): Remove.
7246 (number_of_program_spaces): Don't declare.
7247 (struct program_space) <next>: Remove.
7248
7249 2020-05-08 Tom Tromey <tom@tromey.com>
7250
7251 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7252 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7253 (enable_break): Update.
7254 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7255 (frv_fdpic_find_canonical_descriptor): Update.
7256 (frv_fetch_objfile_link_map): Update.
7257 * progspace.c (program_space::free_all_objfiles): Update.
7258 (program_space::solibs): New method.
7259 * progspace.h (struct program_space) <solibs>: New method.
7260 * solist.h (master_so_list): Don't declare.
7261 (ALL_SO_LIBS): Remove.
7262 * solib.h (so_list_head): Remove.
7263 (update_solib_list): Update comment.
7264 * solib.c (master_so_list): Remove.
7265 (solib_used, update_solib_list, solib_add)
7266 (info_sharedlibrary_command, clear_solib)
7267 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7268
7269 2020-05-08 Tom Tromey <tom@tromey.com>
7270
7271 * extension.c (extension_languages): Now a std::array.
7272 (ALL_EXTENSION_LANGUAGES): Remove.
7273 (get_ext_lang_defn, get_ext_lang_of_file)
7274 (eval_ext_lang_from_control_command): Update.
7275 (finish_ext_lang_initialization)
7276 (auto_load_ext_lang_scripts_for_objfile)
7277 (ext_lang_type_printers::ext_lang_type_printers)
7278 (apply_ext_lang_type_printers)
7279 (ext_lang_type_printers::~ext_lang_type_printers)
7280 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7281 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7282 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7283 (get_matching_xmethod_workers, ext_lang_colorize)
7284 (ext_lang_before_prompt): Update.
7285 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7286
7287 2020-05-08 Tom Tromey <tom@tromey.com>
7288
7289 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7290 overload.
7291 <swap_string, m_string>: Remove.
7292 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7293 Update.
7294 * stabsread.c (define_symbol, read_type): Update.
7295 * linespec.c (find_linespec_symbols): Update.
7296 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7297 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7298 * dbxread.c (read_dbx_symtab): Update.
7299 * cp-support.h (cp_canonicalize_string_full)
7300 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7301 Return unique_xmalloc_ptr.
7302 * cp-support.c (inspect_type): Update.
7303 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7304 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7305 Likewise.
7306 * c-typeprint.c (print_name_maybe_canonical): Update.
7307 * break-catch-throw.c (check_status_exception_catchpoint):
7308 Update.
7309
7310 2020-05-08 Tom de Vries <tdevries@suse.de>
7311
7312 * infrun.c (follow_fork): Copy current_line and current_symtab to
7313 child thread.
7314
7315 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7316
7317 * async-event.c (struct async_signal_handler, struct
7318 async_event_handler): Reformat, remove typedef.
7319
7320 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7321
7322 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7323 access thistype->main_type->dyn_prop_list directly.
7324
7325 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7326
7327 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7328 (remove_dyn_prop): Remove. Update all users to use
7329 type::remove_dyn_prop.
7330 * gdbtypes.c (remove_dyn_prop): Rename to...
7331 (type::remove_dyn_prop): ... this.
7332
7333 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7334
7335 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7336 (add_dyn_prop): Remove. Update all users to use
7337 type::add_dyn_prop.
7338 * gdbtypes.c (add_dyn_prop): Rename to...
7339 (type::add_dyn_prop): ... this.
7340
7341 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7342
7343 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7344 (get_dyn_prop): Remove. Update all users to use
7345 type::dyn_prop.
7346 * gdbtypes.c (get_dyn_prop): Rename to...
7347 (type::dyn_prop): ... this.
7348
7349 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
7350
7351 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7352
7353 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
7354
7355 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7356 instruction, skip it if it's there.
7357
7358 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
7359
7360 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7361
7362 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
7363
7364 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7365 * gdbtypes.c (recursive_dump_type): Remove use of
7366 TYPE_INCOMPLETE.
7367
7368 2020-05-03 Tom Tromey <tom@tromey.com>
7369
7370 * breakpoint.c (catch_command, tcatch_command): Remove.
7371 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7372 add_show_prefix_cmd.
7373 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7374 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7375 Remove.
7376 (add_internal_problem_command): Use add_basic_prefix_cmd,
7377 add_show_prefix_cmd.
7378 * mips-tdep.c (set_mipsfpu_command): Remove.
7379 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7380 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7381 (_initialize_index_cache): Use add_basic_prefix_cmd.
7382 * memattr.c (dummy_cmd): Remove.
7383 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7384 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7385 (_initialize_tui_win): Use add_basic_prefix_cmd,
7386 add_show_prefix_cmd.
7387 * cli/cli-logging.c (set_logging_command): Remove.
7388 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7389 add_show_prefix_cmd.
7390 (show_logging_command): Remove.
7391 * target.c (target_command): Remove.
7392 (add_target): Use add_basic_prefix_cmd.
7393
7394 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
7395
7396 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7397
7398 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7399
7400 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7401 info_command.
7402
7403 2020-04-30 Kamil Rytarowski <n54@gmx.com>
7404
7405 * nbsd-nat.c (nbsd_enable_proc_events)
7406 (nbsd_nat_target::post_startup_inferior): Add.
7407 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7408 (nbsd_nat_target::update_thread_list): Rewrite.
7409 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7410 "PTRACE_LWP_CREATE".
7411 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7412
7413 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7414
7415 * stack.c (_initialize_stack): Remove duplicated creation
7416 of "frame" command and "f" alias.
7417
7418 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
7419
7420 PR gdb/18706
7421 * gdbtypes.c (check_typedef): Calculate size of array of
7422 stubbed type.
7423
7424 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
7425
7426 PR gdb/15559
7427 * i386-tdep.c (i386_push_dummy_call): Call
7428 i386_thiscall_push_dummy_call.
7429 (i386_thiscall_push_dummy_call): New function.
7430 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7431 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7432 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7433
7434 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7435
7436 * gdbarch.sh (do_read): Add shellcheck disable directive for
7437 warning SC2162.
7438
7439 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7440
7441 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7442 "referenced but not assigned" warning.
7443
7444 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7445
7446 * gdbarch.sh: Remove code that sets fallbackdefault.
7447
7448 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7449
7450 * gdbarch.sh: Use shell operators && and || instead of
7451 -a and -o.
7452
7453 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7454
7455 * gdbarch.sh: Use $(...) instead of `...`.
7456
7457 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7458
7459 * gdbarch.sh: Use double quotes around variables.
7460
7461 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7462
7463 * gdbarch.sh: Use %s with printf, instead of variables in the
7464 format string.
7465
7466 2020-04-29 Tom Tromey <tromey@adacore.com>
7467
7468 PR ada/25875:
7469 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7470 type fields here.
7471 (read_enumeration_type): Call
7472 update_enumeration_type_from_children later. Update comments.
7473 (process_enumeration_scope): Don't create type fields.
7474
7475 2020-04-29 Kamil Rytarowski <n54@gmx.com>
7476
7477 * nbsd-tdep.c: Include "xml-syscall.h".
7478 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7479
7480 2020-04-29 Kamil Rytarowski <n54@gmx.com>
7481
7482 * nbsd-nat.c: Include "sys/wait.h".
7483 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7484 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7485 (nbsd_nat_target::remove_exec_catchpoint)
7486 (nbsd_nat_target::set_syscall_catchpoint): Add.
7487 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7488 (nbsd_nat_target::insert_exec_catchpoint)
7489 (nbsd_nat_target::remove_exec_catchpoint)
7490 (nbsd_nat_target::set_syscall_catchpoint): Add.
7491 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7492 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7493 `nbsd_get_syscall_number'.
7494
7495 2020-04-29 Tom Tromey <tom@tromey.com>
7496
7497 * stack.c (print_block_frame_labels): Remove.
7498
7499 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
7500
7501 PR gdb/17320
7502 * ada-valprint.c (val_print_packed_array_elements): Move array
7503 end bracket to new line.
7504 (ada_val_print_string): Remove extra spaces before first array
7505 element.
7506 * c-valprint.c (c_value_print_array): Likewise.
7507 * m2-valprint.c (m2_print_array_contents): Likewise.
7508 (m2_value_print_inner): Likewise.
7509 * p-valprint.c (pascal_value_print_inner): Likewise.
7510 * valprint.c (generic_val_print_array): Likewise.
7511 (value_print_array_elements): Move first array element and array
7512 end bracket to new line.
7513
7514 2020-04-29 Tom de Vries <tdevries@suse.de>
7515
7516 PR symtab/25889
7517 * linespec.c (find_method): Fix ix calculation.
7518
7519 2020-04-28 Kamil Rytarowski <n54@gmx.com>
7520
7521 * syscalls/update-netbsd.sh: New file.
7522 * syscalls/netbsd.xml: Regenerate.
7523 * data-directory/Makefile.in: Register `netbsd.xml' in
7524 `SYSCALLS_FILES'.
7525
7526 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
7527
7528 * syscalls/update-freebsd.sh: Add double quotes.
7529
7530 2020-04-28 Tom Tromey <tom@tromey.com>
7531
7532 * NEWS: Update.
7533 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7534 (cmdpy_init): Allow class_tui.
7535
7536 2020-04-28 Mark Williams <mark@myosotissp.com>
7537
7538 PR gdb/24480
7539 * dwarf2read.c: Add missing assingments to list_in_scope when
7540 start_symtab was already called.
7541
7542 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
7543
7544 PR gdb/25881
7545 * dwarf2/read.c (offset_map_type): Use
7546 gdb:hash_enum<sect_offset> as hash function.
7547
7548 2020-04-28 Tom de Vries <tdevries@suse.de>
7549
7550 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7551 with DW_AT_signature.
7552
7553 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
7554
7555 * configure.ac: Remove check for fs_base/gs_base in
7556 user_regs_struct.
7557 * configure: Re-generate.
7558 * config.in: Re-generate.
7559 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7560 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7561 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7562
7563 2020-04-27 Luis Machado <luis.machado@linaro.org>
7564
7565 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7566 problematic inline frame unwinding situation.
7567 * frame.c (frame_id_computed_p): New function.
7568 * frame.h (frame_id_computed_p): New prototype.
7569
7570 2020-04-26 Tom Tromey <tom@tromey.com>
7571
7572 * command.h (enum command_class) <class_pseudo>: Remove.
7573
7574 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7575
7576 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7577 and whitespace.
7578
7579 2020-04-25 Kamil Rytarowski <n54@gmx.com>
7580
7581 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7582 `PT_GET_PROCESS_STATE' block.
7583
7584 2020-04-24 Tom Tromey <tom@tromey.com>
7585
7586 * symtab.h (symbol_get_demangled_name): Don't declare.
7587 * symtab.c (symbol_get_demangled_name): Remove.
7588 (general_symbol_info::natural_name)
7589 (general_symbol_info::demangled_name): Update.
7590
7591 2020-04-24 Tom Tromey <tom@tromey.com>
7592
7593 PR rust/25025:
7594 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7595
7596 2020-04-24 Tom Tromey <tom@tromey.com>
7597
7598 PR symtab/12707:
7599 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7600 exists.
7601 (new_symbol): Likewise.
7602 * compile/compile-object-load.c (get_out_value_type): Use
7603 symbol_matches_search_name.
7604
7605 2020-04-24 Tom Tromey <tom@tromey.com>
7606
7607 * dwarf2/read.c (add_partial_symbol): Do not call
7608 compute_and_set_names.
7609
7610 2020-04-24 Tom Tromey <tom@tromey.com>
7611
7612 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7613 overload.
7614
7615 2020-04-24 Tom Tromey <tom@tromey.com>
7616
7617 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7618 (add_psymbol_to_list): New overload. Make old overload call new
7619 one.
7620 * psympriv.h (add_psymbol_to_list): New overload.
7621
7622 2020-04-24 Tom Tromey <tom@tromey.com>
7623
7624 * dwarf2/read.c (partial_die_info::read) <case
7625 DW_AT_linkage_name>: Use value_as_string.
7626 (dwarf2_string_attr): Use value_as_string.
7627 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7628 method.
7629 * dwarf2/attribute.c (attribute::value_as_string): New method.
7630
7631 2020-04-24 Tom Tromey <tom@tromey.com>
7632
7633 * symtab.c (general_symbol_info::natural_name)
7634 (general_symbol_info::demangled_name): Check for language_rust.
7635
7636 2020-04-24 Tom Tromey <tom@tromey.com>
7637
7638 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7639 (dwarf2_physname): ... from here.
7640 (partial_die_info::read): Add Rust "{" hack.
7641
7642 2020-04-24 Tom Tromey <tom@tromey.com>
7643
7644 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7645 method.
7646 (symbol_set_demangled_name): Don't declare.
7647 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7648 symbol_set_demangled_name.
7649 (general_symbol_info::set_language)
7650 (general_symbol_info::compute_and_set_names): Update.
7651 * minsyms.c (minimal_symbol_reader::install): Update.
7652 * dwarf2/read.c (new_symbol): Update.
7653
7654 2020-04-24 Tom Tromey <tromey@adacore.com>
7655
7656 PR python/23662:
7657 * python/py-type.c (convert_field): Handle
7658 FIELD_LOC_KIND_DWARF_BLOCK.
7659 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7660 (typy_get_dynamic): Nw function.
7661 (type_object_getset): Add "dynamic".
7662 * NEWS: Add entry.
7663
7664 2020-04-24 Tom Tromey <tromey@adacore.com>
7665
7666 * ada-typeprint.c (print_choices, print_variant_part)
7667 (print_record_field_types_dynamic): New functions.
7668 (print_record_field_types): Use print_record_field_types_dynamic.
7669
7670 2020-04-24 Tom Tromey <tromey@adacore.com>
7671
7672 * dwarf2/read.c (handle_data_member_location): New overload.
7673 (dwarf2_add_field): Use it.
7674 (decode_locdesc): Add "computed" parameter. Update comment.
7675 * gdbtypes.c (is_dynamic_type_internal): Also look for
7676 FIELD_LOC_KIND_DWARF_BLOCK.
7677 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7678 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7679 virtual base classes.
7680 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7681 FIELD_LOC_KIND_DWARF_BLOCK.
7682
7683 2020-04-24 Tom Tromey <tromey@adacore.com>
7684
7685 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7686 * gdbtypes.c (is_dynamic_type_internal): Check
7687 TYPE_HAS_DYNAMIC_LENGTH.
7688 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7689 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7690 New macros.
7691 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7692 constant.
7693
7694 2020-04-24 Tom Tromey <tromey@adacore.com>
7695
7696 * dwarf2/read.c (struct variant_field): Rewrite.
7697 (struct variant_part_builder): New.
7698 (struct nextfield): Remove "variant" field. Add "offset".
7699 (struct field_info): Add "current_variant_part" and
7700 "variant_parts".
7701 (alloc_discriminant_info): Remove.
7702 (alloc_rust_variant): New function.
7703 (quirk_rust_enum): Update.
7704 (dwarf2_add_field): Set "offset" member. Don't handle
7705 DW_TAG_variant_part.
7706 (offset_map_type): New typedef.
7707 (convert_variant_range, create_one_variant)
7708 (create_one_variant_part, create_variant_parts)
7709 (add_variant_property): New functions.
7710 (dwarf2_attach_fields_to_type): Call add_variant_property.
7711 (read_structure_type): Don't handle DW_TAG_variant_part.
7712 (handle_variant_part, handle_variant): New functions.
7713 (handle_struct_member_die): Use them.
7714 (process_structure_scope): Don't handle variant parts.
7715 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7716 (struct discriminant_info): Remove.
7717 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7718 (struct main_type) <flag_discriminated_union>: Remove.
7719 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7720 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7721 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7722 Update.
7723 * valops.c (value_union_variant): Remove.
7724 * value.h (value_union_variant): Don't declare.
7725
7726 2020-04-24 Tom Tromey <tromey@adacore.com>
7727
7728 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7729 (ada_value_primitive_packed_val): Update.
7730 * ada-valprint.c (ada_value_print_1): Update.
7731 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7732 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7733 just an address. Use evaluate_for_locexpr_baton.
7734 (dwarf2_evaluate_property): Update.
7735 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7736 array_view.
7737 * findvar.c (default_read_var_value): Update.
7738 * gdbtypes.c (compute_variant_fields_inner)
7739 (resolve_dynamic_type_internal): Update.
7740 (resolve_dynamic_type): Change type of valaddr parameter.
7741 * gdbtypes.h (resolve_dynamic_type): Update.
7742 * valarith.c (value_subscripted_rvalue): Update.
7743 * value.c (value_from_contents_and_address): Update.
7744
7745 2020-04-24 Tom Tromey <tromey@adacore.com>
7746
7747 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7748 "push_initial_value" parameter.
7749 (dwarf2_evaluate_property): Likewise.
7750 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7751
7752 2020-04-24 Tom Tromey <tromey@adacore.com>
7753
7754 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7755 (variant::matches, compute_variant_fields_recurse)
7756 (compute_variant_fields_inner, compute_variant_fields): New
7757 functions.
7758 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7759 Use resolved_type after type is made.
7760 (operator==): Add new cases.
7761 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7762 (struct discriminant_range, struct variant, struct variant_part):
7763 New.
7764 (union dynamic_prop_data) <variant_parts, original_type>: New
7765 members.
7766 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7767 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7768 constants.
7769 * value.c (unpack_bits_as_long): Now public.
7770 * value.h (unpack_bits_as_long): Declare.
7771
7772 2020-04-24 Tom Tromey <tromey@adacore.com>
7773
7774 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7775 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7776
7777 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
7778
7779 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7780
7781 2020-04-24 Kamil Rytarowski <n54@gmx.com>
7782
7783 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7784 (remove_fork_catchpoint, post_startup_inferior)
7785 (post_attach): Move...
7786 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7787 (remove_fork_catchpoint, post_startup_inferior)
7788 (post_attach): ...here.
7789 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7790 (remove_fork_catchpoint, post_startup_inferior)
7791 (post_attach): Move...
7792 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7793 (remove_fork_catchpoint, post_startup_inferior)
7794 (post_attach): ...here.
7795
7796 2020-04-24 Tom Tromey <tromey@adacore.com>
7797
7798 * nat/windows-nat.h (struct windows_thread_info)
7799 <pc_adjusted>: New member.
7800 * windows-nat.c (windows_fetch_one_register): Check
7801 pc_adjusted.
7802 (windows_nat_target::get_windows_debug_event)
7803 (windows_nat_target::wait): Set pc_adjusted.
7804
7805 2020-04-24 Tom de Vries <tdevries@suse.de>
7806
7807 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
7808 Run gdb-add-index inside temp dir.
7809
7810 2020-04-23 Tom Tromey <tromey@adacore.com>
7811
7812 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
7813 in loop.
7814
7815 2020-04-23 Luis Machado <luis.machado@linaro.org>
7816
7817 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7818 get_frame_register instead of gdbarch_unwind_pc.
7819
7820 2020-04-23 Tom de Vries <tdevries@suse.de>
7821
7822 * symtab.c (lookup_global_symbol): Prefer def over decl.
7823
7824 2020-04-23 Tom de Vries <tdevries@suse.de>
7825
7826 PR symtab/25807
7827 * block.c (best_symbol, better_symbol): Promote to external.
7828 * block.h (best_symbol, better_symbol): Declare.
7829 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
7830 decl.
7831
7832 2020-04-23 Tom Tromey <tromey@adacore.com>
7833
7834 PR ada/25837:
7835 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
7836 "const char *", not a "const std::string &".
7837 <name_and_matcher::operator==>: Update.
7838 * unittests/lookup_name_info-selftests.c: Change type of
7839 "result".
7840
7841 2020-04-23 Tom Tromey <tom@tromey.com>
7842
7843 * inferior.h (iterate_over_inferiors): Don't declare.
7844 * inferior.c (iterate_over_inferiors): Remove.
7845 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
7846 Remove.
7847 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
7848 use iterate_over_inferiors.
7849 (darwin_resume_inferior_it)
7850 (struct resume_inferior_threads_param)
7851 (darwin_resume_inferior_threads_it): Remove.
7852 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
7853
7854 2020-04-23 Tom de Vries <tdevries@suse.de>
7855
7856 * blockframe.c (find_pc_partial_function): Use
7857 find_pc_sect_compunit_symtab rather than
7858 objfile->sf->qf->find_pc_sect_compunit_symtab.
7859
7860 2020-04-22 Tom de Vries <tdevries@suse.de>
7861
7862 PR symtab/25764
7863 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7864 in psymtabs.
7865
7866 2020-04-22 Tom de Vries <tdevries@suse.de>
7867
7868 PR symtab/25801
7869 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7870 symtabs.
7871
7872 2020-04-22 Tom de Vries <tdevries@suse.de>
7873
7874 PR symtab/25700
7875 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7876 CU if already created.
7877
7878 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7879
7880 * infrun.c (displaced_step_fixup): Switch to the event_thread
7881 before calling displaced_step_restore, not after.
7882
7883 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7884
7885 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7886 its inferior is not recorded by us.
7887 (record_btrace_target_open): Replace call to
7888 all_non_exited_threads () with call to current_inferior
7889 ()->non_exited_threads ().
7890 (record_btrace_target::stop_recording): Likewise.
7891 (record_btrace_target::close): Likewise.
7892 (record_btrace_target::wait): Likewise.
7893 (record_btrace_target::record_stop_replaying): Likewise.
7894
7895 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7896
7897 * btrace.c (btrace_enable): Throw an error on double enables and
7898 when enabling recording fails.
7899 (btrace_disable): Throw an error if the thread is not recorded.
7900
7901 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7902
7903 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7904 request if we do not have a thread_info.
7905
7906 2020-04-21 Tom de Vries <tdevries@suse.de>
7907
7908 PR gdb/25471
7909 * thread.c
7910 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7911 exception in get_frame_id.
7912
7913 2020-04-20 Tom Tromey <tromey@adacore.com>
7914
7915 * python/python.c (struct gdbpy_event): Mark move constructor as
7916 noexcept.
7917 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7918 constructor as noexcept.
7919 * completer.h (struct completion_result): Mark move constructor as
7920 noexcept.
7921 * completer.c (completion_result::completion_result): Use
7922 initialization style. Don't call reset_match_list.
7923
7924 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7925
7926 * MAINTAINERS (Write After Approval): Add myself.
7927
7928 2020-04-18 Tom Tromey <tom@tromey.com>
7929
7930 * windows-tdep.c (init_w32_command_list)
7931 (w32_prefix_command_valid): Restore.
7932 (_initialize_windows_tdep): Call init_w32_command_list.
7933
7934 2020-04-18 Tom Tromey <tom@tromey.com>
7935
7936 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7937 * value.c (value_fn_field): Update.
7938 * valops.c (find_function_in_inferior)
7939 (value_allocate_space_in_inferior): Update.
7940 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7941 Update.
7942 * tui/tui-source.c (tui_source_window::set_contents): Update.
7943 * symtab.c (lookup_global_or_static_symbol)
7944 (find_function_start_sal_1, skip_prologue_sal)
7945 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7946 * symmisc.c (dump_msymbols, dump_symtab_1)
7947 (maintenance_print_one_line_table): Update.
7948 * symfile.c (init_entry_point_info, section_is_mapped)
7949 (list_overlays_command, simple_read_overlay_table)
7950 (simple_overlay_update_1): Update.
7951 * stap-probe.c (handle_stap_probe): Update.
7952 * stabsread.c (dbx_init_float_type, define_symbol)
7953 (read_one_struct_field, read_enum_type, read_range_type): Update.
7954 * source.c (info_line_command): Update.
7955 * python/python.c (gdbpy_source_objfile_script)
7956 (gdbpy_execute_objfile_script): Update.
7957 * python/py-type.c (save_objfile_types): Update.
7958 * python/py-objfile.c (py_free_objfile): Update.
7959 * python/py-inferior.c (python_new_objfile): Update.
7960 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7961 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7962 (maintenance_check_psymtabs): Update.
7963 * printcmd.c (info_address_command): Update.
7964 * objfiles.h (struct objfile) <arch>: New method, from
7965 get_objfile_arch.
7966 (get_objfile_arch): Don't declare.
7967 * objfiles.c (get_objfile_arch): Remove.
7968 (filter_overlapping_sections): Update.
7969 * minsyms.c (msymbol_is_function): Update.
7970 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7971 (output_nondebug_symbol): Update.
7972 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7973 (mdebug_expand_psymtab): Update.
7974 * machoread.c (macho_add_oso_symfile): Update.
7975 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7976 Update.
7977 * linux-fork.c (checkpoint_command): Update.
7978 * linespec.c (convert_linespec_to_sals): Update.
7979 * jit.c (finalize_symtab): Update.
7980 * infrun.c (insert_exception_resume_from_probe): Update.
7981 * ia64-tdep.c (ia64_find_unwind_table): Update.
7982 * hppa-tdep.c (internalize_unwinds): Update.
7983 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7984 Update.
7985 * gcore.c (call_target_sbrk): Update.
7986 * elfread.c (record_minimal_symbol, elf_symtab_read)
7987 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7988 (elf_gnu_ifunc_resolve_by_got): Update.
7989 * dwarf2/read.c (create_addrmap_from_index)
7990 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7991 (read_debug_names_from_section)
7992 (process_psymtab_comp_unit_reader, add_partial_symbol)
7993 (add_partial_subprogram, process_full_comp_unit)
7994 (read_file_scope, read_func_scope, read_lexical_block_scope)
7995 (read_call_site_scope, dwarf2_ranges_read)
7996 (dwarf2_record_block_ranges, dwarf2_add_field)
7997 (mark_common_block_symbol_computed, read_tag_pointer_type)
7998 (read_tag_string_type, dwarf2_init_float_type)
7999 (dwarf2_init_complex_target_type, read_base_type)
8000 (partial_die_info::read, partial_die_info::read)
8001 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
8002 (dwarf2_fetch_die_loc_sect_off): Update.
8003 * dwarf2/loc.c (dwarf2_find_location_expression)
8004 (class dwarf_evaluate_loc_desc, rw_pieced_value)
8005 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
8006 (dwarf2_loc_desc_get_symbol_read_needs)
8007 (locexpr_describe_location_piece, locexpr_describe_location_1)
8008 (loclist_describe_location): Update.
8009 * dwarf2/index-write.c (write_debug_names): Update.
8010 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
8011 * dtrace-probe.c (dtrace_process_dof): Update.
8012 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
8013 (process_one_symbol): Update.
8014 * ctfread.c (ctf_init_float_type, read_base_type): Update.
8015 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
8016 (coff_read_enum_type): Update.
8017 * cli/cli-cmds.c (edit_command, list_command): Update.
8018 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
8019 * breakpoint.c (create_overlay_event_breakpoint)
8020 (create_longjmp_master_breakpoint)
8021 (create_std_terminate_master_breakpoint)
8022 (create_exception_master_breakpoint, get_sal_arch): Update.
8023 * block.c (block_gdbarch): Update.
8024 * annotate.c (annotate_source_line): Update.
8025
8026 2020-04-17 Tom Tromey <tromey@adacore.com>
8027
8028 * auto-load.c (show_auto_load_cmd): Remove.
8029 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
8030 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
8031 (maintenance_print_arc_command): Remove.
8032 * tui/tui-win.c (tui_command): Remove.
8033 (tui_get_cmd_list): Use add_basic_prefix_cmd.
8034 * tui/tui-layout.c (tui_layout_command): Remove.
8035 (_initialize_tui_layout): Use add_basic_prefix_cmd.
8036 * python/python.c (user_set_python, user_show_python): Remove.
8037 (_initialize_python): Use add_basic_prefix_cmd,
8038 add_show_prefix_cmd.
8039 * guile/guile.c (set_guile_command, show_guile_command): Remove.
8040 (install_gdb_commands): Use add_basic_prefix_cmd,
8041 add_show_prefix_cmd.
8042 (info_guile_command): Remove.
8043 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
8044 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
8045 add_show_prefix_cmd.
8046 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
8047 Remove do_set and do_show parameters.
8048 * cli/cli-style.c (set_style, show_style): Remove.
8049 (_initialize_cli_style): Use add_basic_prefix_cmd,
8050 add_show_prefix_cmd.
8051 (cli_style_option::add_setshow_commands): Remove do_set and
8052 do_show parameters.
8053 (cli_style_option::add_setshow_commands): Use
8054 add_basic_prefix_cmd, add_show_prefix_cmd.
8055 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
8056 (set_style_name): Remove.
8057 * cli/cli-dump.c (dump_command, append_command): Remove.
8058 (srec_dump_command, ihex_dump_command, verilog_dump_command)
8059 (tekhex_dump_command, binary_dump_command)
8060 (binary_append_command): Remove.
8061 (_initialize_cli_dump): Use add_basic_prefix_cmd.
8062 * windows-tdep.c (w32_prefix_command_valid): Remove global.
8063 (init_w32_command_list): Remove; move into ...
8064 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
8065 * valprint.c (set_print, show_print, set_print_raw)
8066 (show_print_raw): Remove.
8067 (_initialize_valprint): Use add_basic_prefix_cmd,
8068 add_show_prefix_cmd.
8069 * typeprint.c (set_print_type, show_print_type): Remove.
8070 (_initialize_typeprint): Use add_basic_prefix_cmd,
8071 add_show_prefix_cmd.
8072 * record.c (set_record_command, show_record_command): Remove.
8073 (_initialize_record): Use add_basic_prefix_cmd,
8074 add_show_prefix_cmd.
8075 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
8076 add_show_prefix_cmd.
8077 (info_command, show_command, set_debug, show_debug): Remove.
8078 * top.h (set_history, show_history): Don't declare.
8079 * top.c (set_history, show_history): Remove.
8080 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
8081 (unset_tdesc_cmd): Remove.
8082 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
8083 add_show_prefix_cmd.
8084 * symtab.c (info_module_command): Remove.
8085 (_initialize_symtab): Use add_basic_prefix_cmd.
8086 * symfile.c (overlay_command): Remove.
8087 (_initialize_symfile): Use add_basic_prefix_cmd.
8088 * sparc64-tdep.c (info_adi_command): Remove.
8089 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
8090 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
8091 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
8092 add_show_prefix_cmd.
8093 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
8094 (_initialize_serial): Use add_basic_prefix_cmd,
8095 add_show_prefix_cmd.
8096 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
8097 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
8098 add_show_prefix_cmd.
8099 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
8100 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
8101 add_show_prefix_cmd.
8102 * riscv-tdep.c (show_riscv_command, set_riscv_command)
8103 (show_debug_riscv_command, set_debug_riscv_command): Remove.
8104 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
8105 add_show_prefix_cmd.
8106 * remote.c (remote_command, set_remote_cmd): Remove.
8107 (_initialize_remote): Use add_basic_prefix_cmd.
8108 * record-full.c (set_record_full_command)
8109 (show_record_full_command): Remove.
8110 (_initialize_record_full): Use add_basic_prefix_cmd,
8111 add_show_prefix_cmd.
8112 * record-btrace.c (cmd_set_record_btrace)
8113 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
8114 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
8115 (cmd_show_record_btrace_pt): Remove.
8116 (_initialize_record_btrace): Use add_basic_prefix_cmd,
8117 add_show_prefix_cmd.
8118 * ravenscar-thread.c (set_ravenscar_command)
8119 (show_ravenscar_command): Remove.
8120 (_initialize_ravenscar): Use add_basic_prefix_cmd,
8121 add_show_prefix_cmd.
8122 * mips-tdep.c (show_mips_command, set_mips_command)
8123 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
8124 add_show_prefix_cmd.
8125 * maint.c (maintenance_command, maintenance_info_command)
8126 (maintenance_check_command, maintenance_print_command)
8127 (maintenance_set_cmd, maintenance_show_cmd): Remove.
8128 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
8129 add_show_prefix_cmd.
8130 (show_per_command_cmd): Remove.
8131 * maint-test-settings.c (maintenance_set_test_settings_cmd):
8132 Remove.
8133 (maintenance_show_test_settings_cmd): Remove.
8134 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
8135 add_show_prefix_cmd.
8136 * maint-test-options.c (maintenance_test_options_command):
8137 Remove.
8138 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
8139 * macrocmd.c (macro_command): Remove
8140 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8141 * language.c (set_check, show_check): Remove.
8142 (_initialize_language): Use add_basic_prefix_cmd,
8143 add_show_prefix_cmd.
8144 * infcmd.c (unset_command): Remove.
8145 (_initialize_infcmd): Use add_basic_prefix_cmd.
8146 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8147 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8148 add_show_prefix_cmd.
8149 * go32-nat.c (go32_info_dos_command): Remove.
8150 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8151 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8152 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8153 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8154 (_initialize_frame): Use add_basic_prefix_cmd,
8155 add_show_prefix_cmd.
8156 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8157 (_initialize_dcache): Use add_basic_prefix_cmd,
8158 add_show_prefix_cmd.
8159 * cp-support.c (maint_cplus_command): Remove.
8160 (_initialize_cp_support): Use add_basic_prefix_cmd.
8161 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8162 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8163 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8164 add_basic_prefix_cmd, add_show_prefix_cmd.
8165 * breakpoint.c (save_command): Remove.
8166 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8167 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8168 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8169 add_show_prefix_cmd.
8170 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8171 (set_ada_command, show_ada_command): Remove.
8172 (_initialize_ada_language): Use add_basic_prefix_cmd,
8173 add_show_prefix_cmd.
8174 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8175
8176 2020-04-16 Kamil Rytarowski <n54@gmx.com>
8177
8178 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8179 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8180
8181 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8182
8183 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8184 warning messages.
8185
8186 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8187
8188 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8189 import table is not at beginning of .idata section.
8190
8191 2020-04-16 Pedro Alves <palves@redhat.com>
8192
8193 * inferior.c (delete_inferior): Use delete operator directly
8194 instead of delete_program_space.
8195 * progspace.c (add_program_space): New, factored out from
8196 program_space::program_space.
8197 (remove_program_space): New, factored out from
8198 delete_program_space.
8199 (program_space::program_space): Remove intro comment. Rewrite.
8200 (program_space::~program_space): Remove intro comment. Call
8201 remove_program_space.
8202 (delete_program_space): Delete.
8203 * progspace.h (program_space::program_space): Make explicit. Move
8204 intro comment here, adjusted.
8205 (program_space::~program_space): Move intro comment here,
8206 adjusted.
8207 (delete_program_space): Remove.
8208
8209 2020-04-16 Tom Tromey <tromey@adacore.com>
8210
8211 * windows-nat.c (windows_nat::handle_access_violation): New
8212 function.
8213 * nat/windows-nat.h (handle_access_violation): Declare.
8214 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8215 windows-nat.c. Call handle_access_violation.
8216
8217 2020-04-16 Tom de Vries <tdevries@suse.de>
8218
8219 PR symtab/25791
8220 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8221 CUs without psymtab.
8222
8223 2020-04-16 Kevin Buettner <kevinb@redhat.com>
8224
8225 * python/python.c (do_start_initialization): Don't call
8226 PyEval_InitThreads for Python 3.9 and beyond.
8227
8228 2020-04-15 Kamil Rytarowski <n54@gmx.com>
8229
8230 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8231 thread functions.
8232 (obsd_nat_target::wait): Likewise.
8233
8234 2020-04-15 Tom Tromey <tromey@adacore.com>
8235
8236 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8237 (DEBUG_EXCEPT): Use debug_printf.
8238
8239 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8240
8241 * completer.c (class completion_tracker::completion_hash_entry)
8242 <hash_name>: New member function.
8243 (completion_tracker::discard_completions): New callback to hash a
8244 completion_hash_entry, pass this to htab_create_alloc.
8245
8246 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8247
8248 * windows-nat.c (windows_make_so): Warn rather than stopping with
8249 an error if realpath() fails.
8250
8251 2020-04-14 Kamil Rytarowski <n54@gmx.com>
8252
8253 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8254 (nbsd_nat_target::info_proc): Add do_status.
8255
8256 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8257 Tom de Vries <tdevries@suse.de>
8258
8259 PR symtab/25718
8260 * psympriv.h (struct partial_symtab::read_symtab)
8261 (struct partial_symtab::expand_psymtab)
8262 (struct partial_symtab::read_dependencies): Update comments.
8263 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8264 read_symtab for includer.
8265 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8266 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8267 (struct dwarf2_include_psymtab::m_readin): Remove.
8268 (struct dwarf2_include_psymtab::includer): New member function.
8269 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8270
8271 2020-04-14 Tom de Vries <tdevries@suse.de>
8272
8273 PR symtab/25720
8274 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8275 with NULL symbol_matcher and lookup_name.
8276 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8277 and lookup_name.
8278 * dwarf2/read.c (dw2_expand_symtabs_matching)
8279 (dw2_debug_names_expand_symtabs_matching): Same.
8280 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8281 Make lookup_name a pointer. Update comment.
8282 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8283 lookup_name being a pointer.
8284 * symfile.c (expand_symtabs_matching): Same.
8285 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8286 * linespec.c (iterate_over_all_matching_symtabs): Same.
8287
8288 2020-04-13 Tom Tromey <tom@tromey.com>
8289
8290 * run-on-main-thread.c: Update include.
8291 * unittests/main-thread-selftests.c: Update include.
8292 * tui/tui-win.c: Update include.
8293 * tui/tui-io.c: Update include.
8294 * tui/tui-interp.c: Update include.
8295 * tui/tui-hooks.c: Update include.
8296 * top.h: Update include.
8297 * top.c: Update include.
8298 * ser-base.c: Update include.
8299 * remote.c: Update include.
8300 * remote-notif.c: Update include.
8301 * remote-fileio.c: Update include.
8302 * record-full.c: Update include.
8303 * record-btrace.c: Update include.
8304 * python/python.c: Update include.
8305 * posix-hdep.c: Update include.
8306 * mingw-hdep.c: Update include.
8307 * mi/mi-main.c: Update include.
8308 * mi/mi-interp.c: Update include.
8309 * main.c: Update include.
8310 * linux-nat.c: Update include.
8311 * interps.c: Update include.
8312 * infrun.c: Update include.
8313 * inf-loop.c: Update include.
8314 * event-top.c: Update include.
8315 * event-loop.c: Move to ../gdbsupport/.
8316 * event-loop.h: Move to ../gdbsupport/.
8317 * async-event.h: Update include.
8318 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8319
8320 2020-04-13 Tom Tromey <tom@tromey.com>
8321
8322 * tui/tui-win.c: Include async-event.h.
8323 * remote.c: Include async-event.h.
8324 * remote-notif.c: Include async-event.h.
8325 * record-full.c: Include async-event.h.
8326 * record-btrace.c: Include async-event.h.
8327 * infrun.c: Include async-event.h.
8328 * event-top.c: Include async-event.h.
8329 * event-loop.h: Move some declarations to async-event.h.
8330 * event-loop.c: Don't include ser-event.h or top.h. Move some
8331 code to async-event.c.
8332 * async-event.h: New file.
8333 * async-event.c: New file.
8334 * Makefile.in (COMMON_SFILES): Add async-event.c.
8335 (HFILES_NO_SRCDIR): Add async-event.h.
8336
8337 2020-04-13 Tom Tromey <tom@tromey.com>
8338
8339 * utils.c (flush_streams): New function.
8340 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8341
8342 2020-04-13 Tom Tromey <tom@tromey.com>
8343
8344 * event-loop.c (handle_file_event): Use warning, not
8345 printf_unfiltered.
8346
8347 2020-04-13 Tom Tromey <tom@tromey.com>
8348
8349 * event-loop.c: Include <chrono>.
8350
8351 2020-04-13 Tom Tromey <tom@tromey.com>
8352
8353 * gdb_select.h: Move to ../gdbsupport/.
8354 * event-loop.c: Update include path.
8355 * top.c: Update include path.
8356 * ser-base.c: Update include path.
8357 * ui-file.c: Update include path.
8358 * ser-tcp.c: Update include path.
8359 * guile/scm-ports.c: Update include path.
8360 * posix-hdep.c: Update include path.
8361 * ser-unix.c: Update include path.
8362 * gdb_usleep.c: Update include path.
8363 * mingw-hdep.c: Update include path.
8364 * inflow.c: Update include path.
8365 * infrun.c: Update include path.
8366 * event-top.c: Update include path.
8367
8368 2020-04-13 Tom Tromey <tom@tromey.com>
8369
8370 * configure: Rebuild.
8371 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8372
8373 2020-04-13 Tom Tromey <tom@tromey.com>
8374
8375 * event-loop.h (start_event_loop): Don't declare.
8376 * event-loop.c (start_event_loop): Move...
8377 * main.c (start_event_loop): ...here. Now static.
8378
8379 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8380
8381 * MAINTAINERS: Update my email address.
8382
8383 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8384
8385 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8386 IP_ALL.
8387
8388 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8389
8390 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
8391 (nbsd_nat_target::info_proc): Add do_cmdline.
8392
8393 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8394
8395 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
8396 (nbsd_nat_target::info_proc): Add do_cwd.
8397
8398 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8399
8400 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8401
8402 2020-04-11 Kamil Rytarowski <n54@gmx.com>
8403
8404 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8405 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8406 (nbsd_nat_target::info_proc): New functions.
8407 * nbsd-nat.c (kinfo_get_vmmap): New function.
8408 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8409 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8410 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8411 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8412 functions.
8413 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8414 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8415 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8416 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8417 (KINFO_VME_FLAG_GROWS_DOWN): New.
8418
8419 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8420
8421 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8422 bit shift.
8423
8424 2020-04-10 Tom Tromey <tromey@adacore.com>
8425
8426 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8427
8428 2020-04-10 Tom Tromey <tromey@adacore.com>
8429
8430 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8431 separate debug files.
8432
8433 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
8434
8435 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8436 Move to...
8437 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8438 ... here.
8439 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8440 Check for STATUS_WX86_BREAKPOINT.
8441 (windows_nat_target::wait): Same.
8442
8443 2020-04-10 Tom de Vries <tdevries@suse.de>
8444
8445 PR cli/25808
8446 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8447
8448 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8449
8450 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8451 (Write After Approval): Remove Tom de Vries.
8452
8453 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8454
8455 revert partially:
8456 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8457
8458 * buildsym.c (record_line): Fix undefined behavior and preserve
8459 lines at eof.
8460
8461 2020-04-09 Kamil Rytarowski <n54@gmx.com>
8462
8463 * auxv.h (svr4_auxv_parse): New.
8464 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8465 and generic_auxv_parse.
8466 (svr4_auxv_parse): Add.
8467 * obsd-tdep.c: Include "auxv.h".
8468 (obsd_auxv_parse): Remove.
8469 (obsd_init_abi): Remove comment.
8470 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8471 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8472 * nbsd-tdep.c: Include "auxv.h".
8473 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8474
8475 2020-04-08 Tom Tromey <tromey@adacore.com>
8476
8477 * nat/windows-nat.h (last_wait_event): Don't declare.
8478 (wait_for_debug_event): Update comment.
8479 * nat/windows-nat.c (last_wait_event): Now static.
8480
8481 2020-04-08 Tom Tromey <tromey@adacore.com>
8482
8483 * windows-nat.c (wait_for_debug_event): Move to
8484 nat/windows-nat.c.
8485 * nat/windows-nat.h (wait_for_debug_event): Declare.
8486 * nat/windows-nat.c (wait_for_debug_event): Move from
8487 windows-nat.c. No longer static.
8488
8489 2020-04-08 Tom Tromey <tromey@adacore.com>
8490
8491 * windows-nat.c (get_windows_debug_event): Use
8492 fetch_pending_stop.
8493 * nat/windows-nat.h (fetch_pending_stop): Declare.
8494 * nat/windows-nat.c (fetch_pending_stop): New function.
8495
8496 2020-04-08 Tom Tromey <tromey@adacore.com>
8497
8498 * windows-nat.c (windows_continue): Use matching_pending_stop and
8499 continue_last_debug_event.
8500 * nat/windows-nat.h (matching_pending_stop)
8501 (continue_last_debug_event): Declare.
8502 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8503 (matching_pending_stop, continue_last_debug_event): New
8504 functions.
8505
8506 2020-04-08 Tom Tromey <tromey@adacore.com>
8507
8508 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8509 (handle_exception_result): Move to nat/windows-nat.h.
8510 (DEBUG_EXCEPTION_SIMPLE): Remove.
8511 (windows_nat::handle_ms_vc_exception): New function.
8512 (handle_exception): Move to nat/windows-nat.c.
8513 (get_windows_debug_event): Update.
8514 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8515 nat/windows-nat.c.
8516 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8517 (handle_exception_result): Move from windows-nat.c.
8518 (handle_exception): Declare.
8519 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8520 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8521 windows-nat.c.
8522
8523 2020-04-08 Tom Tromey <tromey@adacore.com>
8524
8525 * windows-nat.c (exception_count, event_count): Remove.
8526 (handle_exception, get_windows_debug_event)
8527 (do_initial_windows_stuff): Update.
8528
8529 2020-04-08 Tom Tromey <tromey@adacore.com>
8530
8531 * windows-nat.c (windows_nat::handle_load_dll)
8532 (windows_nat::handle_unload_dll): Rename. No longer static.
8533 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8534 Declare.
8535
8536 2020-04-08 Tom Tromey <tromey@adacore.com>
8537
8538 * complaints.h (stop_whining): Declare at top-level.
8539 (complaint): Don't declare stop_whining.
8540
8541 2020-04-08 Tom Tromey <tromey@adacore.com>
8542
8543 * windows-nat.c (windows_nat::handle_output_debug_string):
8544 Rename. No longer static.
8545 * nat/windows-nat.h (handle_output_debug_string): Declare.
8546
8547 2020-04-08 Tom Tromey <tromey@adacore.com>
8548
8549 * windows-nat.c (current_process_handle, current_process_id)
8550 (main_thread_id, last_sig, current_event, last_wait_event)
8551 (current_windows_thread, desired_stop_thread_id, pending_stops)
8552 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8553 (display_selectors, fake_create_process)
8554 (get_windows_debug_event): Update.
8555 * nat/windows-nat.h (current_process_handle, current_process_id)
8556 (main_thread_id, last_sig, current_event, last_wait_event)
8557 (current_windows_thread, desired_stop_thread_id, pending_stops)
8558 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8559 * nat/windows-nat.c (current_process_handle, current_process_id)
8560 (main_thread_id, last_sig, current_event, last_wait_event)
8561 (current_windows_thread, desired_stop_thread_id, pending_stops)
8562 (siginfo_er): New globals. Move from windows-nat.c.
8563
8564 2020-04-08 Tom Tromey <tromey@adacore.com>
8565
8566 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8567 (handle_load_dll): Update.
8568 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8569
8570 2020-04-08 Tom Tromey <tromey@adacore.com>
8571
8572 * windows-nat.c (enum thread_disposition_type): Move to
8573 nat/windows-nat.h.
8574 (windows_nat::thread_rec): Rename from thread_rec. No longer
8575 static.
8576 (windows_add_thread, windows_nat_target::fetch_registers)
8577 (windows_nat_target::store_registers, handle_exception)
8578 (windows_nat_target::resume, get_windows_debug_event)
8579 (windows_nat_target::get_tib_address)
8580 (windows_nat_target::thread_name)
8581 (windows_nat_target::thread_alive): Update.
8582 * nat/windows-nat.h (enum thread_disposition_type): Move from
8583 windows-nat.c.
8584 (thread_rec): Declare.
8585
8586 2020-04-08 Tom Tromey <tromey@adacore.com>
8587
8588 * windows-nat.c: Add "using namespace".
8589 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8590 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8591
8592 2020-04-08 Tom Tromey <tromey@adacore.com>
8593
8594 * nat/windows-nat.h (struct windows_thread_info): Declare
8595 destructor.
8596 * nat/windows-nat.c (~windows_thread_info): New.
8597
8598 2020-04-08 Tom Tromey <tromey@adacore.com>
8599
8600 PR gdb/22992
8601 * windows-nat.c (current_event): Update comment.
8602 (last_wait_event, desired_stop_thread_id): New globals.
8603 (struct pending_stop): New.
8604 (pending_stops): New global.
8605 (windows_nat_target) <stopped_by_sw_breakpoint>
8606 <supports_stopped_by_sw_breakpoint>: New methods.
8607 (windows_fetch_one_register): Add assertions. Adjust PC.
8608 (windows_continue): Handle pending stops. Suspend other threads
8609 when stepping. Use last_wait_event
8610 (wait_for_debug_event): New function.
8611 (get_windows_debug_event): Use wait_for_debug_event. Handle
8612 pending stops. Queue spurious stops.
8613 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8614 (windows_nat_target::kill): Use wait_for_debug_event.
8615 * nat/windows-nat.h (struct windows_thread_info)
8616 <stopped_at_software_breakpoint>: New field.
8617 * nat/windows-nat.c (windows_thread_info::resume): Clear
8618 stopped_at_software_breakpoint.
8619
8620 2020-04-08 Tom Tromey <tromey@adacore.com>
8621
8622 * windows-nat.c (enum thread_disposition_type): New.
8623 (thread_rec): Replace "get_context" parameter with "disposition";
8624 change type.
8625 (windows_add_thread, windows_nat_target::fetch_registers)
8626 (windows_nat_target::store_registers, handle_exception)
8627 (windows_nat_target::resume, get_windows_debug_event)
8628 (windows_nat_target::get_tib_address)
8629 (windows_nat_target::thread_name)
8630 (windows_nat_target::thread_alive): Update.
8631
8632 2020-04-08 Tom Tromey <tromey@adacore.com>
8633
8634 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8635 (windows_continue): Use windows_continue::resume.
8636 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8637 resume>: Declare new methods.
8638 * nat/windows-nat.c: New file.
8639 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8640
8641 2020-04-08 Tom Tromey <tromey@adacore.com>
8642
8643 * windows-nat.c (windows_add_thread, windows_delete_thread)
8644 (windows_nat_target::fetch_registers)
8645 (windows_nat_target::store_registers, fake_create_process)
8646 (windows_nat_target::resume, windows_nat_target::resume)
8647 (get_windows_debug_event, windows_nat_target::wait)
8648 (windows_nat_target::pid_to_str)
8649 (windows_nat_target::get_tib_address)
8650 (windows_nat_target::get_ada_task_ptid)
8651 (windows_nat_target::thread_name)
8652 (windows_nat_target::thread_alive): Use lwp, not tid.
8653
8654 2020-04-08 Tom Tromey <tromey@adacore.com>
8655
8656 * windows-nat.c (handle_exception)
8657 (windows_nat_target::thread_name): Update.
8658 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8659 <name>: Now unique_xmalloc_ptr.
8660
8661 2020-04-08 Tom Tromey <tromey@adacore.com>
8662
8663 * windows-nat.c (thread_rec)
8664 (windows_nat_target::fetch_registers): Update.
8665 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8666 Update comment.
8667 <debug_registers_changed, reload_context>: Now bool.
8668
8669 2020-04-08 Tom Tromey <tromey@adacore.com>
8670
8671 * windows-nat.c (windows_add_thread): Use new.
8672 (windows_init_thread_list, windows_delete_thread): Use delete.
8673 (get_windows_debug_event): Update.
8674 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8675 destructor, and initializers.
8676
8677 2020-04-08 Tom Tromey <tromey@adacore.com>
8678
8679 * windows-nat.c (struct windows_thread_info): Remove.
8680 * nat/windows-nat.h: New file.
8681
8682 2020-04-08 Tom Tromey <tromey@adacore.com>
8683
8684 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8685 (thread_rec, windows_add_thread, windows_delete_thread)
8686 (windows_continue): Update.
8687
8688 2020-04-08 Tom Tromey <tromey@adacore.com>
8689
8690 * windows-nat.c (struct windows_thread_info): Remove typedef.
8691 (thread_head): Remove.
8692 (thread_list): New global.
8693 (thread_rec, windows_add_thread, windows_init_thread_list)
8694 (windows_delete_thread, windows_continue): Update.
8695
8696 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8697
8698 * windows-tdep.h (windows_init_abi): Add comment.
8699 (cygwin_init_abi): New declaration.
8700 * windows-tdep.c: Split signal enumeration in two, one for
8701 Windows and one for Cygwin.
8702 (windows_gdb_signal_to_target): Only deal with signal of the
8703 Windows OS ABI.
8704 (cygwin_gdb_signal_to_target): New function.
8705 (windows_init_abi): Rename to windows_init_abi_common, don't set
8706 gdb_signal_to_target gdbarch method. Add new new function with
8707 this name.
8708 (cygwin_init_abi): New function.
8709 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8710 comment. Don't call windows_init_abi.
8711 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8712 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8713 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8714 i386_windows_init_abi_common, don't call windows_init_abi. Add
8715 a new function of this name.
8716 (i386_cygwin_init_abi): New function.
8717 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8718 OS ABI Cygwin.
8719
8720 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8721
8722 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8723 parameter.c.
8724 (dwarf2_read_gdb_index): Update.
8725
8726 2020-04-07 Kamil Rytarowski <n54@gmx.com>
8727
8728 * nbsd-tdep.c: Include "objfiles.h".
8729 (nbsd_skip_solib_resolver): New.
8730 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8731
8732 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8733
8734 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8735 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8736 with DW_LLE_base_addressx are being emitted in DWARFv5.
8737 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8738 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8739 unsigned integer.
8740
8741 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8742
8743 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8744 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8745 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8746 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8747 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8748 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8749 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8750
8751
8752 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8753
8754 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8755 (read_loclist_index): New function definition.
8756 (lookup_loclist_base): New function definition.
8757 (read_loclist_header): New function definition.
8758 (dwarf2_cu): Add loclist_base and loclist_header field.
8759 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8760 (read_full_die_1): Read the value of DW_AT_loclists_base.
8761 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8762 (read_attribute_value): Handle DW_FORM_loclistx.
8763 (skip_one_die): Handle DW_FORM_loclistx.
8764 (loclist_header): New structure declaration.
8765 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8766
8767 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8768
8769 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8770 constructor. Remove `addr` parameter from other constructor and
8771 add `per_cu` parameter.
8772 * dwarf2/read.c (create_partial_symtab): Update.
8773
8774 2020-04-07 Tom de Vries <tdevries@suse.de>
8775
8776 PR symtab/25796
8777 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8778 (partial_die_info::fixup): Inherit has_const_value.
8779
8780 2020-04-07 Tom de Vries <tdevries@suse.de>
8781
8782 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8783 symbols without address.
8784
8785 2020-04-06 Kamil Rytarowski <n54@gmx.com>
8786
8787 * nbsd-nat.h (struct thread_info): Add forward declaration.
8788 (nbsd_nat_target::thread_alive): Add.
8789 (nbsd_nat_target::thread_name): Likewise.
8790 (nbsd_nat_target::update_thread_list): Likewise.
8791 (update_thread_list::post_attach): Likewise.
8792 (post_attach::pid_to_str): Likewise.
8793 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8794 (nbsd_thread_lister): Add.
8795 (nbsd_nat_target::thread_alive): Likewise.
8796 (nbsd_nat_target::thread_name): Likewise.
8797 (nbsd_add_threads): Likewise.
8798 (update_thread_list::post_attach): Likewise.
8799 (nbsd_nat_target::update_thread_list): Likewise.
8800 (post_attach::pid_to_str): Likewise.
8801
8802 2020-04-06 Tom Tromey <tromey@adacore.com>
8803
8804 * ada-valprint.c (print_variant_part): Extract the variant field.
8805 (print_field_values): Use the field as the outer value when
8806 recursing.
8807
8808 2020-04-06 Tom Tromey <tromey@adacore.com>
8809
8810 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
8811 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
8812 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
8813 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
8814 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
8815
8816 2020-04-06 Tom Tromey <tromey@adacore.com>
8817
8818 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8819 TYPE_CODE_ERROR.
8820
8821 2020-04-06 Kamil Rytarowski <n54@gmx.com>
8822
8823 * nbsd-tdep.c: Include "gdbarch.h".
8824 Define enum with NetBSD signal numbers.
8825 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
8826 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
8827 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
8828 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
8829 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
8830 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
8831 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
8832 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8833 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
8834 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8835 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8836 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
8837
8838 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
8839
8840 PR gdb/25325
8841 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
8842
8843 2020-04-03 Tom Tromey <tromey@adacore.com>
8844
8845 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
8846 Read constant block.
8847
8848 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8849
8850 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
8851 (gdb_bfd_get_full_section_contents): New declaration.
8852 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
8853 * windows-tdep.c (is_linked_with_cygwin_dll): Use
8854 gdb_bfd_get_full_section_contents.
8855
8856 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8857
8858 * exec.c (build_section_table): Replace internal_error with
8859 gdb_assert.
8860 (section_table_xfer_memory_partial): Likewise.
8861 * mdebugread.c (parse_partial_symbols): Likewise.
8862 * psymtab.c (lookup_partial_symbol): Likewise.
8863 * utils.c (wrap_here): Likewise.
8864
8865 2020-04-02 Tom Tromey <tromey@adacore.com>
8866
8867 * f-lang.c (build_fortran_types): Use arch_type to initialize
8868 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8869
8870 2020-04-02 Tom Tromey <tromey@adacore.com>
8871
8872 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8873 of attributes.
8874
8875 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8876 Bernd Edlinger <bernd.edlinger@hotmail.de>
8877 Tom Tromey <tromey@adacore.com>
8878
8879 * buildsym.c (buildsym_compunit::record_line): Remove
8880 deduplication code.
8881
8882 2020-04-02 Tom de Vries <tdevries@suse.de>
8883
8884 PR ada/24671
8885 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8886
8887 2020-04-02 Tom de Vries <tdevries@suse.de>
8888
8889 * dwarf2/read.c (dwarf2_gdb_index_functions,
8890 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8891 NULL.
8892 * psymtab.c (psym_lookup_global_symbol_language): New function.
8893 (psym_functions): Init psym_lookup_global_symbol_language with
8894 psym_lookup_global_symbol_language.
8895 * symfile-debug.c (debug_sym_quick_functions): Init
8896 lookup_global_symbol_language with NULL.
8897 * symfile.c (set_initial_language): Remove fixme comment.
8898 * symfile.h (struct quick_symbol_functions): Add
8899 lookup_global_symbol_language.
8900 * symtab.c (find_quick_global_symbol_language): New function.
8901 (find_main_name): Use find_quick_global_symbol_language.
8902
8903 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8904
8905 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8906
8907 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8908
8909 * buildsym.c (record_line): Fix undefined behavior and preserve
8910 lines at eof.
8911
8912 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8913
8914 * buildsym.c (record_line): Fix the resizing condition.
8915
8916 2020-04-01 Tom Tromey <tom@tromey.com>
8917
8918 * value.h (value_literal_complex): Add comment.
8919 * valops.c (value_literal_complex): Refer to value.h.
8920
8921 2020-04-01 Tom Tromey <tom@tromey.com>
8922
8923 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8924 (scalar_type): New rule, from typebase.
8925 (typebase): Use scalar_type. Recognize complex types.
8926 (field_name): Handle FLOAT_KEYWORD.
8927 (ident_tokens): Add _Complex and __complex__.
8928
8929 2020-04-01 Tom Tromey <tom@tromey.com>
8930
8931 PR exp/25299:
8932 * valarith.c (promotion_type, complex_binop): New functions.
8933 (scalar_binop): Handle complex numbers. Use promotion_type.
8934 (value_pos, value_neg, value_complement): Handle complex numbers.
8935
8936 2020-04-01 Tom Tromey <tom@tromey.com>
8937
8938 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8939 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8940 (parse_number): Handle complex numbers.
8941
8942 2020-04-01 Tom Tromey <tom@tromey.com>
8943
8944 * c-valprint.c (c_decorations): Change complex suffix to "i".
8945
8946 2020-04-01 Tom Tromey <tom@tromey.com>
8947
8948 * valprint.c (generic_value_print_complex): Use accessors.
8949 * value.h (value_real_part, value_imaginary_part): Declare.
8950 * valops.c (value_real_part, value_imaginary_part): New
8951 functions.
8952 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8953
8954 2020-04-01 Tom Tromey <tom@tromey.com>
8955
8956 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8957 (read_range_type): Update.
8958 * mdebugread.c (basic_type): Update.
8959 * go-lang.c (build_go_types): Use init_complex_type.
8960 * gdbtypes.h (struct main_type) <complex_type>: New member.
8961 (init_complex_type): Update.
8962 (arch_complex_type): Don't declare.
8963 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8964 Make name if none given. Use alloc_type_copy. Look for cached
8965 complex type.
8966 (arch_complex_type): Remove.
8967 (gdbtypes_post_init): Use init_complex_type.
8968 * f-lang.c (build_fortran_types): Use init_complex_type.
8969 * dwarf2/read.c (read_base_type): Update.
8970 * d-lang.c (build_d_types): Use init_complex_type.
8971 * ctfread.c (read_base_type): Update.
8972
8973 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8974
8975 * infrun.c (stop_all_threads): Update assertion, plus when
8976 stopping threads, take into account that we might be trying
8977 to stop an all-stop target.
8978 (stop_waiting): Call 'stop_all_threads' if there exists a
8979 non-stop target.
8980
8981 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8982
8983 * target.h (exists_non_stop_target): New function declaration.
8984 * target.c (exists_non_stop_target): New function.
8985
8986 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
8987
8988 PR gdb/24789
8989 * eval.c (is_integral_or_integral_reference): New function.
8990 (evaluate_subexp_standard): Allow integer references in
8991 pointer arithmetic.
8992
8993 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8994
8995 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8996 check for no ptid in the stop reply when the target is non-stop.
8997
8998 2020-04-01 Tom Tromey <tromey@adacore.com>
8999
9000 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
9001 "name" parameter to rvalue reference. Initialize m_name_holder.
9002 <lookup_name_info>: New overloads.
9003 <name>: Return gdb::string_view.
9004 <c_str>: New method.
9005 <make_ignore_params>: Update.
9006 <search_name_hash>: Update.
9007 <language_lookup_name>: Return const char *.
9008 <m_name>: Change type.
9009 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
9010 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
9011 (lookup_name_info::match_any): Update.
9012 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
9013 Update.
9014 * minsyms.c (linkage_name_str): Update.
9015 * language.c (default_symbol_name_matcher): Update.
9016 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
9017 Update.
9018 * ada-lang.c (ada_fold_name): Change parameter to string_view.
9019 (ada_lookup_name_info::ada_lookup_name_info): Update.
9020 (literal_symbol_name_matcher): Update.
9021
9022 2020-04-01 Tom Tromey <tromey@adacore.com>
9023
9024 * psymtab.c (psymtab_search_name): Remove function.
9025 (psym_lookup_symbol): Create search name and lookup name here.
9026 (lookup_partial_symbol): Remove "name" parameter; add
9027 lookup_name.
9028 (psym_expand_symtabs_for_function): Update.
9029
9030 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
9031
9032 PR tui/25597:
9033 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
9034
9035 2020-03-31 Tom Tromey <tromey@adacore.com>
9036
9037 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
9038 memcpy.
9039
9040 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
9041
9042 * features/riscv/32bit-csr.xml: Regenerated.
9043 * features/riscv/64bit-csr.xml: Regenerated.
9044
9045 2020-03-30 Tom Tromey <tromey@adacore.com>
9046
9047 * ada-valprint.c (print_variant_part): Update.
9048 * ada-lang.h (ada_which_variant_applies): Update.
9049 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
9050 outer_valaddr parameters; replace with "outer" value parameter.
9051 (to_fixed_variant_branch_type): Update.
9052
9053 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9054
9055 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
9056 <list>. Remove inclusion of observable.h.
9057 (PPC_DEBUG_CURRENT_VERSION): Move up define.
9058 (struct arch_lwp_info): New struct.
9059 (class ppc_linux_dreg_interface): New class.
9060 (struct ppc_linux_process_info): New struct.
9061 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
9062 <low_new_clone, low_forget_process, low_prepare_to_resume>
9063 <copy_thread_dreg_state, mark_thread_stale>
9064 <mark_debug_registers_changed, register_hw_breakpoint>
9065 <clear_hw_breakpoint, register_wp, clear_wp>
9066 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
9067 <num_memory_accesses, get_trigger_type>
9068 <create_watchpoint_request, hwdebug_point_cmp>
9069 <init_arch_lwp_info, get_arch_lwp_info>
9070 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
9071 methods.
9072 <struct ptid_hash>: New inner struct.
9073 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
9074 members.
9075 (saved_dabr_value, hwdebug_info, max_slots_number)
9076 (struct hw_break_tuple, struct thread_points, ppc_threads)
9077 (have_ptrace_hwdebug_interface)
9078 (hwdebug_find_thread_points_by_tid)
9079 (hwdebug_insert_point, hwdebug_remove_point): Remove.
9080 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
9081 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
9082 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
9083 use m_dreg_interface.
9084 (hwdebug_point_cmp): Change to...
9085 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
9086 reference arguments instead of pointers.
9087 (ppc_linux_nat_target::ranged_break_num_registers): Use
9088 m_dreg_interface.
9089 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
9090 m_dreg_interface. Call register_hw_breakpoint.
9091 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
9092 m_dreg_interface. Call clear_hw_breakpoint.
9093 (get_trigger_type): Change to...
9094 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
9095 comment.
9096 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
9097 use m_dreg_interface. Call register_hw_breakpoint.
9098 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
9099 use m_dreg_interface. Call clear_hw_breakpoint.
9100 (can_use_watchpoint_cond_accel): Change to...
9101 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
9102 method. Update comment, use m_dreg_interface and
9103 m_process_info.
9104 (calculate_dvc): Change to...
9105 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
9106 m_dreg_interface.
9107 (num_memory_accesses): Change to...
9108 (ppc_linux_nat_target::num_memory_accesses): ...this method.
9109 (check_condition): Change to...
9110 (ppc_linux_nat_target::check_condition): ...this method.
9111 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
9112 comment, use m_dreg_interface.
9113 (create_watchpoint_request): Change to...
9114 (ppc_linux_nat_target::create_watchpoint_request): ...this
9115 method. Use m_dreg_interface.
9116 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
9117 m_dreg_interface. Call register_hw_breakpoint or register_wp.
9118 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
9119 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
9120 (ppc_linux_nat_target::low_forget_process)
9121 (ppc_linux_nat_target::low_new_fork)
9122 (ppc_linux_nat_target::low_new_clone)
9123 (ppc_linux_nat_target::low_delete_thread)
9124 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
9125 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
9126 only call mark_thread_stale.
9127 (ppc_linux_thread_exit): Remove.
9128 (ppc_linux_nat_target::stopped_data_address): Change to...
9129 (ppc_linux_nat_target::low_stopped_data_address): This. Add
9130 comment, use m_dreg_interface and m_thread_hw_breakpoints.
9131 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
9132 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
9133 comment. Call low_stopped_data_address.
9134 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
9135 m_dreg_interface.
9136 (ppc_linux_nat_target::masked_watch_num_registers): Use
9137 m_dreg_interface.
9138 (ppc_linux_nat_target::copy_thread_dreg_state)
9139 (ppc_linux_nat_target::mark_thread_stale)
9140 (ppc_linux_nat_target::mark_debug_registers_changed)
9141 (ppc_linux_nat_target::register_hw_breakpoint)
9142 (ppc_linux_nat_target::clear_hw_breakpoint)
9143 (ppc_linux_nat_target::register_wp)
9144 (ppc_linux_nat_target::clear_wp)
9145 (ppc_linux_nat_target::init_arch_lwp_info)
9146 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9147 (_initialize_ppc_linux_nat): Remove observer callback.
9148
9149 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9150
9151 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9152 (ppc_linux_nat_target::auxv_parse)
9153 (ppc_linux_nat_target::read_description)
9154 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9155 Move up.
9156
9157 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9158
9159 * linux-nat.h (low_new_clone): New method.
9160 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9161
9162 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9163
9164 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9165 (dbx_expand_psymtab): ... this.
9166 (start_psymtab): Update.
9167 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9168 (mdebug_expand_psymtab): ... this.
9169 (parse_partial_symbols): Update.
9170 (new_psymtab): Update.
9171 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9172 (xcoff_expand_psymtab): ... this.
9173 (xcoff_start_psymtab): Update.
9174
9175 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9176
9177 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9178 <expand_dependencies>: ... this.
9179 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9180 (partial_symtab::expand_dependencies): ... this.
9181 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9182 Update.
9183 (dwarf2_psymtab::expand_psymtab): Update.
9184 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9185 * mdebugread.c (psymtab_to_symtab_1): Update.
9186 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9187
9188 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9189
9190 * psympriv.h (discard_psymtab): Remove.
9191 * dbxread.c (dbx_end_psymtab): Update.
9192 * xcoffread.c (xcoff_end_psymtab): Update.
9193
9194 2020-03-28 Tom Tromey <tom@tromey.com>
9195
9196 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9197 comment.
9198
9199 2020-03-28 Tom Tromey <tom@tromey.com>
9200
9201 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9202
9203 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
9204
9205 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9206
9207 2020-03-26 John Baldwin <jhb@FreeBSD.org>
9208
9209 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9210
9211 2020-03-26 Tom Tromey <tom@tromey.com>
9212
9213 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9214 (mark_common_block_symbol_computed, read_tag_string_type)
9215 (attr_to_dynamic_prop, read_subrange_type): Update.
9216 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9217 to be methods on struct attribute.
9218 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9219 (read_call_site_scope, partial_die_info::read)
9220 (partial_die_info::read, lookup_die_type, follow_die_ref):
9221 Update.
9222 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9223 from dwarf2_get_ref_die_offset.
9224 (attribute::constant_value): New method, from
9225 dwarf2_get_attr_constant_value.
9226 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9227 Declare method.
9228 <constant_value>: New method.
9229
9230 2020-03-26 Tom Tromey <tom@tromey.com>
9231
9232 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9233 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9234 (dwarf_type_encoding_name): Move to stringify.c.
9235 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9236 * dwarf2/stringify.c: New file.
9237 * dwarf2/stringify.h: New file.
9238
9239 2020-03-26 Tom Tromey <tom@tromey.com>
9240
9241 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9242 Rewrite.
9243
9244 2020-03-26 Tom Tromey <tom@tromey.com>
9245
9246 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9247 methods.
9248 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9249 (lookup_ranges_base): Likewise.
9250 (read_cutu_die_from_dwo, read_full_die_1): Update.
9251
9252 2020-03-26 Tom Tromey <tom@tromey.com>
9253
9254 * dwarf2/read.c (read_import_statement, read_file_scope)
9255 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9256 (read_lexical_block_scope, read_call_site_scope)
9257 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9258 (handle_struct_member_die, process_structure_scope)
9259 (update_enumeration_type_from_children)
9260 (process_enumeration_scope, read_array_type, read_common_block)
9261 (read_namespace, read_module, read_subroutine_type): Update.
9262 (sibling_die): Remove.
9263
9264 2020-03-26 Tom Tromey <tom@tromey.com>
9265
9266 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9267 (build_type_psymtabs_reader, read_structure_type)
9268 (read_enumeration_type, read_full_die_1): Update.
9269 (dwarf2_attr_no_follow): Move to die.h.
9270 * dwarf2/die.h (struct die_info) <attr>: New method.
9271
9272 2020-03-26 Tom Tromey <tom@tromey.com>
9273
9274 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9275 <base_address>: Now an optional.
9276 (dwarf2_find_base_address, dwarf2_rnglists_process)
9277 (dwarf2_ranges_process, fill_in_loclist_baton)
9278 (dwarf2_symbol_mark_computed): Update.
9279
9280 2020-03-26 Tom Tromey <tom@tromey.com>
9281
9282 * dwarf2/read.c (struct die_info): Move to die.h.
9283 * dwarf2/die.h: New file.
9284
9285 2020-03-26 Tom Tromey <tom@tromey.com>
9286
9287 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9288 * dwarf2/read.c
9289 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9290 Move to line-header.c.
9291 (read_checked_initial_length_and_offset, read_formatted_entries):
9292 Likewise.
9293 (dwarf_decode_line_header): Split into two.
9294 * dwarf2/line-header.c
9295 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9296 Move from read.c.
9297 (read_checked_initial_length_and_offset, read_formatted_entries):
9298 Likewise.
9299 (dwarf_decode_line_header): New function, split from read.c.
9300
9301 2020-03-26 Tom Tromey <tom@tromey.com>
9302
9303 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9304 Declare method.
9305 * dwarf2/read.c (read_attribute_value): Update.
9306 (dwarf2_per_objfile::read_line_string): Rename from
9307 read_indirect_line_string.
9308 (read_formatted_entries): Update.
9309
9310 2020-03-26 Tom Tromey <tom@tromey.com>
9311
9312 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9313 variable.
9314
9315 2020-03-26 Tom Tromey <tom@tromey.com>
9316
9317 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9318 const.
9319 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9320 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9321 parameter const.
9322
9323 2020-03-26 Tom Tromey <tom@tromey.com>
9324
9325 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9326 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9327 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9328 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9329
9330 2020-03-26 Tom Tromey <tom@tromey.com>
9331
9332 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9333 file_names_size, file_full_name, file_file_name>: Use const.
9334 <file_name_at, file_names>: Add const overload.
9335 * dwarf2/line-header.c (line_header::file_file_name)
9336 (line_header::file_full_name): Update.
9337
9338 2020-03-26 Tom Tromey <tom@tromey.com>
9339
9340 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9341 (macro_start_file, consume_improper_spaces)
9342 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9343 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9344 (dwarf_decode_macros): Move to macro.c.
9345 * dwarf2/macro.c: New file.
9346 * dwarf2/macro.h: New file.
9347 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9348
9349 2020-03-26 Tom Tromey <tom@tromey.com>
9350
9351 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9352 method.
9353 * dwarf2/section.c: New method. From
9354 read_indirect_string_at_offset_from.
9355 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9356 (read_indirect_string_at_offset_from): Move to section.c.
9357 (read_indirect_string_at_offset): Rewrite.
9358 (read_indirect_line_string_at_offset): Remove.
9359 (read_indirect_string, read_indirect_line_string)
9360 (dwarf_decode_macro_bytes): Update.
9361
9362 2020-03-26 Tom Tromey <tom@tromey.com>
9363
9364 * dwarf2/section.h (struct dwarf2_section_info)
9365 <overload_complaint>: Declare.
9366 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9367 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9368 Rename from dwarf2_section_buffer_overflow_complaint.
9369 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9370 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9371
9372 2020-03-26 Tom Tromey <tom@tromey.com>
9373
9374 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9375 Declare.
9376 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9377 Move from read.c.
9378 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9379 to section.c.
9380
9381 2020-03-26 Tom Tromey <tom@tromey.com>
9382
9383 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9384
9385 2020-03-26 Tom Tromey <tom@tromey.com>
9386
9387 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9388 "builder".
9389 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9390 parameter.
9391 (dwarf_decode_macros): Update.
9392
9393 2020-03-26 Tom Tromey <tom@tromey.com>
9394
9395 * dwarf2/read.c (read_attribute_value): Update.
9396 (read_indirect_string_from_dwz): Move to dwz.c; change into
9397 method.
9398 (dwarf_decode_macro_bytes): Update.
9399 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9400 * dwarf2/dwz.c: New file.
9401 * Makefile.in (COMMON_SFILES): Add dwz.c.
9402
9403 2020-03-26 Tom Tromey <tom@tromey.com>
9404
9405 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9406 * dwarf2/read.c: Add include.
9407 * dwarf2/index-write.c: Add include.
9408 * dwarf2/index-cache.c: Add include.
9409 * dwarf2/dwz.h: New file.
9410
9411 2020-03-25 Tom Tromey <tom@tromey.com>
9412
9413 * compile/compile-object-load.c (get_out_value_type): Mention
9414 correct symbol name in error message.
9415
9416 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
9417
9418 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9419
9420 2020-03-25 Tom de Vries <tdevries@suse.de>
9421
9422 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9423 * symmisc.c (dump_symtab_1): Print user and includes fields.
9424 (maintenance_info_symtabs): Same.
9425
9426 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9427
9428 PR gdb/25534
9429 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9430 (riscv_regcache_cooked_write): New function.
9431 (riscv_push_dummy_call): Use new function.
9432 (riscv_return_value): Likewise.
9433
9434 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9435
9436 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9437 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9438 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9439 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9440 * infrun.c (follow_fork): Likewise.
9441 (follow_fork_inferior): Likewise.
9442 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9443 * linux-nat.h (class linux_nat_target): Likewise.
9444 * remote.c (class remote_target) <follow_fork>: Likewise.
9445 (remote_target::follow_fork): Likewise.
9446 * target-delegates.c: Re-generate.
9447 * target.c (default_follow_fork): Likewise.
9448 (target_follow_fork): Likewise.
9449 * target.h (struct target_ops) <follow_fork>: Likewise.
9450 (target_follow_fork): Likewise.
9451
9452 2020-03-24 Tom de Vries <tdevries@suse.de>
9453
9454 * psymtab.c (maintenance_info_psymtabs): Print user field.
9455
9456 2020-03-20 Tom Tromey <tromey@adacore.com>
9457
9458 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9459 const.
9460 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9461 const.
9462
9463 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
9464
9465 * ptrace.m4: Don't check for ptrace declaration.
9466 * config.in: Re-generate.
9467 * configure: Re-generate.
9468 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9469 not defined.
9470
9471 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9472
9473 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9474 `PTRACE_TYPE_RET'.
9475 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9476 * sparc-nat.c (gdb_ptrace): Likewise.
9477 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9478
9479 2020-03-20 Tom Tromey <tromey@adacore.com>
9480
9481 * c-exp.y (lex_one_token): Fix assert.
9482
9483 2020-03-20 Tom Tromey <tromey@adacore.com>
9484
9485 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9486 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9487 strncpy call.
9488
9489 2020-03-20 Tom Tromey <tromey@adacore.com>
9490
9491 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9492
9493 2020-03-20 Tom Tromey <tromey@adacore.com>
9494
9495 * ada-valprint.c (print_variant_part): Remove parameters; switch
9496 to value-based API.
9497 (print_field_values): Likewise.
9498 (ada_val_print_struct_union): Likewise.
9499 (ada_value_print_1): Update.
9500
9501 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9502
9503 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9504 nbsd_nat_target instead of inf_ptrace_target.
9505 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9506 nbsd_nat_target.
9507
9508 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9509
9510 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9511 it to the ptrace call.
9512 * (store_registers): Likewise.
9513
9514 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9515
9516 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9517 it to the ptrace call.
9518 * (store_registers): Likewise.
9519
9520 2020-03-19 Luis Machado <luis.machado@linaro.org>
9521
9522 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9523 valid, fetch vg value from ptrace.
9524
9525 2020-03-19 Kamil Rytarowski <n54@gmx.com>
9526 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9527 * inf-ptrace.c: Likewise.
9528 * (gdb_ptrace): Add.
9529 * (inf_ptrace_target::resume): Update.
9530 * (inf_ptrace_target::xfer_partial): Likewise.
9531 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9532 * (inf_ptrace_peek_poke): Update.
9533
9534 2020-03-19 Kamil Rytarowski <n54@gmx.com>
9535
9536 * x86-bsd-nat.c (gdb_ptrace): New.
9537 * (x86bsd_dr_set): Add new argument `ptid'.
9538 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9539 x86bsd_dr_set_addr): Update.
9540
9541 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9542
9543 * remote.c (remote_target::process_stop_reply): Handle events for
9544 all threads differently.
9545
9546 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9547
9548 * completer.c (completion_tracker::remove_completion): Define new
9549 function.
9550 * completer.h (completion_tracker::remove_completion): Declare new
9551 function.
9552 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9553 when adding a C++ function symbol.
9554
9555 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9556
9557 * completer.c (completion_tracker::completion_hash_entry): Define
9558 new class.
9559 (advance_to_filename_complete_word_point): Call
9560 recompute_lowest_common_denominator.
9561 (completion_tracker::completion_tracker): Call discard_completions
9562 to setup the hash table.
9563 (completion_tracker::discard_completions): Allow for being called
9564 from the constructor, pass new equal function, and element deleter
9565 when constructing the hash table. Initialise new class member
9566 variables.
9567 (completion_tracker::maybe_add_completion): Remove use of
9568 m_entries_vec, and store more information into m_entries_hash.
9569 (completion_tracker::recompute_lcd_visitor): New function, most
9570 content taken from...
9571 (completion_tracker::recompute_lowest_common_denominator):
9572 ...here, this now just visits each item in the hash calling the
9573 above visitor.
9574 (completion_tracker::build_completion_result): Remove use of
9575 m_entries_vec, call recompute_lowest_common_denominator.
9576 * completer.h (completion_tracker::have_completions): Remove use
9577 of m_entries_vec.
9578 (completion_tracker::completion_hash_entry): Declare new class.
9579 (completion_tracker::recompute_lowest_common_denominator): Change
9580 function signature.
9581 (completion_tracker::recompute_lcd_visitor): Declare new function.
9582 (completion_tracker::m_entries_vec): Delete.
9583 (completion_tracker::m_entries_hash): Initialize to NULL.
9584 (completion_tracker::m_lowest_common_denominator_valid): New
9585 member variable.
9586 (completion_tracker::m_lowest_common_denominator_max_length): New
9587 member variable.
9588
9589 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9590
9591 * regformats/regdef.h: Put reg in gdb namespace.
9592
9593 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9594
9595 * i386-bsd-nat.c (gdb_ptrace): New.
9596 * (i386bsd_fetch_inferior_registers,
9597 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9598 * (i386bsd_fetch_inferior_registers,
9599 i386bsd_store_inferior_registers) Use gdb_ptrace.
9600
9601 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9602
9603 * amd64-bsd-nat.c (gdb_ptrace): New.
9604 * (amd64bsd_fetch_inferior_registers,
9605 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9606 * (amd64bsd_fetch_inferior_registers,
9607 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9608
9609 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9610
9611 * user-regs.c (user_reg::read): Rename to...
9612 (user_reg::xread): ...this.
9613 * (append_user_reg): Rename argument `read' to `xread'.
9614 * (user_reg_add_builtin): Likewise.
9615 * (user_reg_add): Likewise.
9616 * (value_of_user_reg): Likewise.
9617
9618 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9619
9620 * sparc-nat.c (gdb_ptrace): New.
9621 * sparc-nat.c (sparc_fetch_inferior_registers)
9622 (sparc_store_inferior_registers) Remove obsolete comment.
9623 * sparc-nat.c (sparc_fetch_inferior_registers)
9624 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9625 * sparc-nat.c (sparc_fetch_inferior_registers)
9626 (sparc_store_inferior_registers) Use gdb_ptrace.
9627
9628 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9629
9630 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9631 it to the ptrace call.
9632 * sh-nbsd-nat.c (store_registers): Likewise.
9633
9634 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9635
9636 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9637 nbsd_nat_target instead of inf_ptrace_target.
9638 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9639 nbsd_nat_target.
9640
9641 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9642
9643 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9644
9645 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9646
9647 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9648 <sys/sysctl.h>.
9649 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9650
9651 2020-03-17 Tom de Vries <tdevries@suse.de>
9652
9653 PR gdb/23710
9654 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9655 fields.
9656 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9657 fields.
9658 (process_imported_unit_die): Skip import of c++ CUs.
9659
9660 2020-03-16 Tom Tromey <tom@tromey.com>
9661
9662 * p-valprint.c (pascal_object_print_value): Initialize
9663 base_value.
9664
9665 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9666 Shahab Vahedi <shahab@synopsys.com>
9667
9668 * Makefile.in: Add arch/arc.o
9669 * configure.tgt: Likewise.
9670 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9671 (_initialize_arc_tdep): Don't initialize old target descriptions.
9672 (arc_read_description): New function to cache target descriptions.
9673 * arc-tdep.h (arc_read_description): Add proto type.
9674 * arch/arc.c: New file.
9675 * arch/arc.h: Likewise.
9676 * features/Makefile: Replace old target descriptions with new.
9677 * features/arc-arcompact.c: Remove.
9678 * features/arc-arcompact.xml: Likewise.
9679 * features/arc-v2.c: Likewise
9680 * features/arc-v2.xml: Likewise
9681 * features/arc/aux-arcompact.xml: New file.
9682 * features/arc/aux-v2.xml: Likewise.
9683 * features/arc/core-arcompact.xml: Likewise.
9684 * features/arc/core-v2.xml: Likewise.
9685 * features/arc/aux-arcompact.c: Generate.
9686 * features/arc/aux-v2.c: Likewise.
9687 * features/arc/core-arcompact.c: Likewise.
9688 * features/arc/core-v2.c: Likewise.
9689 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9690
9691 2020-03-16 Tom Tromey <tromey@adacore.com>
9692
9693 PR gdb/25663:
9694 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9695 putting value into bcache.
9696
9697 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9698
9699 PR gdb/21500
9700 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9701 to...
9702 (amd64_windows_init_abi_common): ... this. Don't set size of
9703 long type.
9704 (amd64_windows_init_abi): New function.
9705 (amd64_cygwin_init_abi): New function.
9706 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9707 the Cygwin OS ABI.
9708 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9709 comment.
9710
9711 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9712
9713 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9714 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9715 (pe_import_directory_entry): New struct type.
9716 (is_linked_with_cygwin_dll): New function.
9717 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9718 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9719 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9720
9721 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9722
9723 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9724 i386_cygwin_core_osabi_sniffer.
9725
9726 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9727
9728 * i386-cygwin-tdep.c: Rename to...
9729 * i386-windows-tdep.c: ... this.
9730 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9731 i386-windows-tdep.c.
9732 * configure.tgt: Likewise.
9733
9734 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9735
9736 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9737 * osabi.c (gdb_osabi_names): Add "Windows".
9738 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9739 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9740 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9741 i386_cygwin_osabi_sniffer.
9742 (_initialize_i386_cygwin_tdep): Register OS ABI
9743 GDB_OSABI_WINDOWS for i386.
9744 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9745 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9746 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9747 for x86-64.
9748 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9749 when the target matches '*-*-mingw*'.
9750
9751 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9752
9753 * defs.h (enum gdb_osabi): Move to...
9754 * osabi.h (enum gdb_osabi): ... here.
9755 * gdbarch.sh: Include osabi.h in gdbarch.h.
9756 * gdbarch.h: Re-generate.
9757
9758 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9759
9760 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9761 function.
9762 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9763
9764 2020-03-14 Tom Tromey <tom@tromey.com>
9765
9766 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9767 for C++.
9768 (c_type_print_modifier): Likewise. Add "language" parameter.
9769 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9770 (c_type_print_base_1): Update.
9771 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9772 constants.
9773 * type-stack.c (type_stack::insert): Handle tp_atomic and
9774 tp_restrict.
9775 (type_stack::follow_type_instance_flags): Likewise.
9776 (type_stack::follow_types): Likewise. Merge type-following code.
9777 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9778 (space_identifier, cv_with_space_id)
9779 (const_or_volatile_or_space_identifier_noopt)
9780 (const_or_volatile_or_space_identifier): Remove.
9781 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9782 rules.
9783 (ptr_operator, typebase): Update.
9784 (enum token_flag) <FLAG_C>: New constant.
9785 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9786 "_Atomic".
9787 (lex_one_token): Handle FLAG_C.
9788
9789 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9790
9791 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9792 it to the ptrace call.
9793 * m68k-bsd-nat.c (store_registers): Likewise.
9794
9795 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9796
9797 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9798 gdb_byte *.
9799 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9800 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9801 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9802
9803 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9804
9805 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
9806 nbsd_nat_target instead of inf_ptrace_target.
9807 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9808 nbsd_nat_target.
9809
9810 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9811
9812 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
9813 register_t.
9814
9815 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9816
9817 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9818 it to the ptrace call.
9819 * alpha-bsd-nat.c (store_registers): Likewise.
9820
9821 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9822
9823 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
9824 includes.
9825 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
9826 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
9827 fill_fpregset): Likewise.
9828
9829 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9830
9831 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
9832 nbsd_nat_target instead of inf_ptrace_target.
9833 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9834 nbsd_nat_target.
9835
9836 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9837
9838 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
9839 register_t.
9840
9841 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9842
9843 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
9844 it to the ptrace call.
9845 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
9846 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
9847 * arm-nbsd-nat.c (store_register): Likewise.
9848 * arm-nbsd-nat.c (store_regs): Likewise.
9849 * arm-nbsd-nat.c (store_fp_register): Likewise.
9850 * arm-nbsd-nat.c (store_fp_regs): Likewise.
9851
9852 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9853
9854 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
9855 nbsd_nat_target instead of inf_ptrace_target.
9856 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9857 nbsd_nat_target.
9858
9859 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9860
9861 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9862 it to the ptrace call.
9863 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9864
9865 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9866
9867 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9868 it to the ptrace call.
9869 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9870
9871 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9872
9873 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9874 gdb_byte *.
9875 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9876
9877 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9878
9879 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9880 instead of inf_ptrace_target.
9881 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9882 nbsd_nat_target.
9883
9884 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9885
9886 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9887 register_t.
9888
9889 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9890
9891 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9892 register_t.
9893
9894 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9895
9896 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9897 register_t.
9898
9899 2020-03-13 Tom Tromey <tom@tromey.com>
9900
9901 * value.h (val_print): Don't declare.
9902 * valprint.h (val_print_array_elements)
9903 (val_print_scalar_formatted, generic_val_print): Don't declare.
9904 * valprint.c (generic_val_print_array): Take a struct value.
9905 (generic_val_print_ptr, generic_val_print_memberptr)
9906 (generic_val_print_bool, generic_val_print_int)
9907 (generic_val_print_char, generic_val_print_complex)
9908 (generic_val_print): Remove.
9909 (generic_value_print): Update.
9910 (do_val_print): Remove unused parameters. Don't call
9911 la_val_print.
9912 (val_print): Remove.
9913 (common_val_print): Update. Don't call value_check_printable.
9914 (val_print_scalar_formatted, val_print_array_elements): Remove.
9915 * rust-lang.c (rust_val_print): Remove.
9916 (rust_language_defn): Update.
9917 * p-valprint.c (pascal_val_print): Remove.
9918 (pascal_value_print_inner): Update.
9919 (pascal_object_print_val_fields, pascal_object_print_val):
9920 Remove.
9921 (pascal_object_print_static_field): Update.
9922 * p-lang.h (pascal_val_print): Don't declare.
9923 * p-lang.c (pascal_language_defn): Update.
9924 * opencl-lang.c (opencl_language_defn): Update.
9925 * objc-lang.c (objc_language_defn): Update.
9926 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9927 * m2-lang.h (m2_val_print): Don't declare.
9928 * m2-lang.c (m2_language_defn): Update.
9929 * language.h (struct language_defn) <la_val_print>: Remove.
9930 * language.c (unk_lang_value_print_inner): Rename. Change
9931 argument types.
9932 (unknown_language_defn, auto_language_defn): Update.
9933 * go-valprint.c (go_val_print): Remove.
9934 * go-lang.h (go_val_print): Don't declare.
9935 * go-lang.c (go_language_defn): Update.
9936 * f-valprint.c (f_val_print): Remove.
9937 * f-lang.h (f_value_print): Don't declare.
9938 * f-lang.c (f_language_defn): Update.
9939 * d-valprint.c (d_val_print): Remove.
9940 * d-lang.h (d_value_print): Don't declare.
9941 * d-lang.c (d_language_defn): Update.
9942 * cp-valprint.c (cp_print_value_fields)
9943 (cp_print_value_fields_rtti, cp_print_value): Remove.
9944 (cp_print_static_field): Update.
9945 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9946 (c_val_print_struct, c_val_print_union, c_val_print_int)
9947 (c_val_print_memberptr, c_val_print): Remove.
9948 * c-lang.h (c_val_print_array, cp_print_value_fields)
9949 (cp_print_value_fields_rtti): Don't declare.
9950 * c-lang.c (c_language_defn, cplus_language_defn)
9951 (asm_language_defn, minimal_language_defn): Update.
9952 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9953 (ada_val_print_enum): Take a struct value.
9954 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9955 (ada_val_print): Remove.
9956 (ada_value_print_1): Update.
9957 (printable_val_type): Remove.
9958 * ada-lang.h (ada_val_print): Don't declare.
9959 * ada-lang.c (ada_language_defn): Update.
9960
9961 2020-03-13 Tom Tromey <tom@tromey.com>
9962
9963 * valprint.c (do_val_print): Update.
9964 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9965 a struct value.
9966 (value_to_value_object_no_release): Declare.
9967 * python/py-value.c (value_to_value_object_no_release): New
9968 function.
9969 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9970 struct value.
9971 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9972 function.
9973 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9974 a struct value.
9975 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9976 Declare.
9977 (gdbscm_apply_val_pretty_printer): Take a struct value.
9978 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9979 value.
9980 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9981 value.
9982 * extension-priv.h (struct extension_language_ops)
9983 <apply_val_pretty_printer>: Take a struct value.
9984 * cp-valprint.c (cp_print_value): Create a struct value.
9985 (cp_print_value): Update.
9986
9987 2020-03-13 Tom Tromey <tom@tromey.com>
9988
9989 * ada-valprint.c (print_field_values): Call common_val_print.
9990
9991 2020-03-13 Tom Tromey <tom@tromey.com>
9992
9993 * ada-valprint.c (val_print_packed_array_elements): Remove
9994 bitoffset and val parameters. Call common_val_print.
9995 (ada_val_print_string): Remove offset, address, and original_value
9996 parameters.
9997 (ada_val_print_array): Update.
9998 (ada_value_print_array): New function.
9999 (ada_value_print_1): Call it.
10000
10001 2020-03-13 Tom Tromey <tom@tromey.com>
10002
10003 * ada-valprint.c (ada_value_print): Use common_val_print.
10004
10005 2020-03-13 Tom Tromey <tom@tromey.com>
10006
10007 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
10008
10009 2020-03-13 Tom Tromey <tom@tromey.com>
10010
10011 * ada-valprint.c (ada_value_print_num): New function.
10012 (ada_value_print_1): Use it.
10013
10014 2020-03-13 Tom Tromey <tom@tromey.com>
10015
10016 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
10017
10018 2020-03-13 Tom Tromey <tom@tromey.com>
10019
10020 * ada-valprint.c (ada_value_print_ptr): New function.
10021 (ada_value_print_1): Use it.
10022
10023 2020-03-13 Tom Tromey <tom@tromey.com>
10024
10025 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
10026 call common_val_print.
10027 (ada_val_print_1): Update.
10028 (ada_value_print_1): New function.
10029 (ada_value_print_inner): Rewrite.
10030
10031 2020-03-13 Tom Tromey <tom@tromey.com>
10032
10033 * cp-valprint.c (cp_print_value_fields): Update.
10034 (cp_print_value): New function.
10035
10036 2020-03-13 Tom Tromey <tom@tromey.com>
10037
10038 * m2-valprint.c (m2_value_print_inner): Use
10039 cp_print_value_fields.
10040 * cp-valprint.c (cp_print_value_fields): New function.
10041 * c-valprint.c (c_value_print_struct): New function.
10042 (c_value_print_inner): Use c_value_print_struct.
10043 * c-lang.h (cp_print_value_fields): Declare.
10044
10045 2020-03-13 Tom Tromey <tom@tromey.com>
10046
10047 * c-valprint.c (c_value_print_array): New function.
10048 (c_value_print_inner): Use it.
10049
10050 2020-03-13 Tom Tromey <tom@tromey.com>
10051
10052 * c-valprint.c (c_value_print_memberptr): New function.
10053 (c_value_print_inner): Use it.
10054
10055 2020-03-13 Tom Tromey <tom@tromey.com>
10056
10057 * c-valprint.c (c_value_print_int): New function.
10058 (c_value_print_inner): Use it.
10059
10060 2020-03-13 Tom Tromey <tom@tromey.com>
10061
10062 * c-valprint.c (c_value_print_ptr): New function.
10063 (c_value_print_inner): Use it.
10064
10065 2020-03-13 Tom Tromey <tom@tromey.com>
10066
10067 * c-valprint.c (c_value_print_inner): Rewrite.
10068
10069 2020-03-13 Tom Tromey <tom@tromey.com>
10070
10071 * valprint.c (generic_value_print_complex): New function.
10072 (generic_value_print): Use it.
10073
10074 2020-03-13 Tom Tromey <tom@tromey.com>
10075
10076 * valprint.c (generic_val_print_float): Don't call
10077 val_print_scalar_formatted.
10078 (generic_val_print, generic_value_print): Update.
10079
10080 2020-03-13 Tom Tromey <tom@tromey.com>
10081
10082 * valprint.c (generic_value_print_char): New function
10083 (generic_value_print): Use it.
10084
10085 2020-03-13 Tom Tromey <tom@tromey.com>
10086
10087 * valprint.c (generic_value_print_int): New function.
10088 (generic_value_print): Use it.
10089
10090 2020-03-13 Tom Tromey <tom@tromey.com>
10091
10092 * valprint.c (generic_value_print_bool): New function.
10093 (generic_value_print): Use it.
10094
10095 2020-03-13 Tom Tromey <tom@tromey.com>
10096
10097 * valprint.c (generic_val_print_func): Simplify.
10098 (generic_val_print, generic_value_print): Update.
10099
10100 2020-03-13 Tom Tromey <tom@tromey.com>
10101
10102 * valprint.c (generic_val_print_flags): Remove.
10103 (generic_val_print, generic_value_print): Update.
10104 (val_print_type_code_flags): Add original_value parameter.
10105
10106 2020-03-13 Tom Tromey <tom@tromey.com>
10107
10108 * valprint.c (generic_val_print): Update.
10109 (generic_value_print): Update.
10110 * valprint.c (generic_val_print_enum): Don't call
10111 val_print_scalar_formatted.
10112
10113 2020-03-13 Tom Tromey <tom@tromey.com>
10114
10115 * valprint.c (generic_value_print): Call generic_value_print_ptr.
10116 * valprint.c (generic_value_print_ptr): New function.
10117
10118 2020-03-13 Tom Tromey <tom@tromey.com>
10119
10120 * valprint.c (generic_value_print): Rewrite.
10121
10122 2020-03-13 Tom Tromey <tom@tromey.com>
10123
10124 * p-valprint.c (pascal_object_print_value_fields)
10125 (pascal_object_print_value): New functions.
10126
10127 2020-03-13 Tom Tromey <tom@tromey.com>
10128
10129 * p-valprint.c (pascal_value_print_inner): Rewrite.
10130
10131 2020-03-13 Tom Tromey <tom@tromey.com>
10132
10133 * f-valprint.c (f_value_print_innner): Rewrite.
10134
10135 2020-03-13 Tom Tromey <tom@tromey.com>
10136
10137 * m2-valprint.c (m2_print_unbounded_array): New overload.
10138 (m2_print_unbounded_array): Update.
10139 (m2_print_array_contents): Take a struct value.
10140 (m2_value_print_inner): Rewrite.
10141
10142 2020-03-13 Tom Tromey <tom@tromey.com>
10143
10144 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10145 (d_value_print_inner): New function.
10146 * d-lang.h (d_value_print_inner): Declare.
10147 * d-lang.c (d_language_defn): Use d_value_print_inner.
10148
10149 2020-03-13 Tom Tromey <tom@tromey.com>
10150
10151 * go-valprint.c (go_value_print_inner): New function.
10152 * go-lang.h (go_value_print_inner): Declare.
10153 * go-lang.c (go_language_defn): Use go_value_print_inner.
10154
10155 2020-03-13 Tom Tromey <tom@tromey.com>
10156
10157 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10158 API.
10159 (rust_val_print): Rewrite.
10160 (rust_value_print_inner): New function, from rust_val_print.
10161 (rust_language_defn): Use rust_value_print_inner.
10162
10163 2020-03-13 Tom Tromey <tom@tromey.com>
10164
10165 * ada-valprint.c (ada_value_print_inner): New function.
10166 * ada-lang.h (ada_value_print_inner): Declare.
10167 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10168
10169 2020-03-13 Tom Tromey <tom@tromey.com>
10170
10171 * f-valprint.c (f_value_print_innner): New function.
10172 * f-lang.h (f_value_print_innner): Declare.
10173 * f-lang.c (f_language_defn): Use f_value_print_innner.
10174
10175 2020-03-13 Tom Tromey <tom@tromey.com>
10176
10177 * p-valprint.c (pascal_value_print_inner): New function.
10178 * p-lang.h (pascal_value_print_inner): Declare.
10179 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10180
10181 2020-03-13 Tom Tromey <tom@tromey.com>
10182
10183 * m2-valprint.c (m2_value_print_inner): New function.
10184 * m2-lang.h (m2_value_print_inner): Declare.
10185 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10186
10187 2020-03-13 Tom Tromey <tom@tromey.com>
10188
10189 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10190 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10191 * c-valprint.c (c_value_print_inner): New function.
10192 * c-lang.h (c_value_print_inner): Declare.
10193 * c-lang.c (c_language_defn, cplus_language_defn)
10194 (asm_language_defn, minimal_language_defn): Use
10195 c_value_print_inner.
10196
10197 2020-03-13 Tom Tromey <tom@tromey.com>
10198
10199 * p-valprint.c (pascal_object_print_value_fields): Now static.
10200 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10201
10202 2020-03-13 Tom Tromey <tom@tromey.com>
10203
10204 * c-valprint.c (c_val_print_array): Simplify.
10205
10206 2020-03-13 Tom Tromey <tom@tromey.com>
10207
10208 * valprint.c (value_print_array_elements): New function.
10209 * valprint.h (value_print_array_elements): Declare.
10210
10211 2020-03-13 Tom Tromey <tom@tromey.com>
10212
10213 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10214 * mips-tdep.c (mips_print_register): Use
10215 value_print_scalar_formatted.
10216
10217 2020-03-13 Tom Tromey <tom@tromey.com>
10218
10219 * valprint.h (value_print_scalar_formatted): Declare.
10220 * valprint.c (value_print_scalar_formatted): New function.
10221
10222 2020-03-13 Tom Tromey <tom@tromey.com>
10223
10224 * valprint.h (generic_value_print): Declare.
10225 * valprint.c (generic_value_print): New function.
10226
10227 2020-03-13 Tom Tromey <tom@tromey.com>
10228
10229 * valprint.c (do_val_print): Call la_value_print_inner, if
10230 available.
10231 * rust-lang.c (rust_language_defn): Update.
10232 * p-lang.c (pascal_language_defn): Update.
10233 * opencl-lang.c (opencl_language_defn): Update.
10234 * objc-lang.c (objc_language_defn): Update.
10235 * m2-lang.c (m2_language_defn): Update.
10236 * language.h (struct language_defn) <la_value_print_inner>: New
10237 member.
10238 * language.c (unknown_language_defn, auto_language_defn): Update.
10239 * go-lang.c (go_language_defn): Update.
10240 * f-lang.c (f_language_defn): Update.
10241 * d-lang.c (d_language_defn): Update.
10242 * c-lang.c (c_language_defn, cplus_language_defn)
10243 (asm_language_defn, minimal_language_defn): Update.
10244 * ada-lang.c (ada_language_defn): Update.
10245
10246 2020-03-13 Tom Tromey <tom@tromey.com>
10247
10248 * c-valprint.c (c_value_print): Use common_val_print.
10249
10250 2020-03-13 Tom Tromey <tom@tromey.com>
10251
10252 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10253
10254 2020-03-13 Tom Tromey <tom@tromey.com>
10255
10256 * f-valprint.c (f77_print_array_1, f_val_print): Use
10257 common_val_print.
10258
10259 2020-03-13 Tom Tromey <tom@tromey.com>
10260
10261 * riscv-tdep.c (riscv_print_one_register_info): Use
10262 common_val_print.
10263
10264 2020-03-13 Tom Tromey <tom@tromey.com>
10265
10266 * mi/mi-main.c (output_register): Use common_val_print.
10267
10268 2020-03-13 Tom Tromey <tom@tromey.com>
10269
10270 * infcmd.c (default_print_one_register_info): Use
10271 common_val_print.
10272
10273 2020-03-13 Tom Tromey <tom@tromey.com>
10274
10275 * valprint.h (common_val_print_checked): Declare.
10276 * valprint.c (common_val_print_checked): New function.
10277 * stack.c (print_frame_arg): Use common_val_print_checked.
10278
10279 2020-03-13 Tom Tromey <tom@tromey.com>
10280
10281 * valprint.c (do_val_print): New function, from val_print.
10282 (val_print): Use do_val_print.
10283 (common_val_print): Use do_val_print.
10284
10285 2020-03-13 Tom Tromey <tom@tromey.com>
10286
10287 * valprint.c (value_print): Use scoped_value_mark.
10288
10289 2020-03-13 Tom de Vries <tdevries@suse.de>
10290
10291 PR symtab/25646
10292 * psymtab.c (partial_symtab::partial_symtab): Don't set
10293 globals_offset and statics_offset. Push element onto
10294 current_global_psymbols and current_static_psymbols stacks.
10295 (concat): New function.
10296 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10297 element from current_global_psymbols and current_static_psymbols
10298 stacks. Concat popped elements to global_psymbols and
10299 static_symbols.
10300 (add_psymbol_to_list): Use current_global_psymbols and
10301 current_static_psymbols stacks.
10302 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10303 current_static_psymbols fields.
10304
10305 2020-03-12 Christian Biesinger <cbiesinger@google.com>
10306
10307 * corelow.c (sniff_core_bfd): Remove.
10308 (class core_target) <m_core_vec>: Remove.
10309 (core_target::core_target): Update.
10310 (core_file_fns): Remove.
10311 (deprecated_add_core_fns): Remove.
10312 (default_core_sniffer): Remove.
10313 (sniff_core_bfd): Remove.
10314 (default_check_format): Remove.
10315 (gdb_check_format): Remove.
10316 (core_target_open): Update.
10317 (core_target::get_core_register_section): Update.
10318 (get_core_registers_cb): Update.
10319 (core_target::fetch_registers): Update.
10320 * gdbcore.h (struct core_fns): Remove.
10321 (deprecated_add_core_fns): Remove.
10322 (default_core_sniffer): Remove.
10323 (default_check_format): Remove.
10324
10325 2020-03-12 Tom Tromey <tom@tromey.com>
10326
10327 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10328 CORE_ADDR.
10329 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10330
10331 2020-03-12 Tom Tromey <tom@tromey.com>
10332
10333 * remote.c (remote_target::download_tracepoint)
10334 (remote_target::enable_tracepoint)
10335 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10336 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10337 sprintf_vma.
10338
10339 2020-03-12 Tom Tromey <tom@tromey.com>
10340
10341 * symfile-mem.c: Update CORE_ADDR size assert.
10342
10343 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10344
10345 * selftest.m4: Move to gdbsupport/.
10346 * acinclude.m4: Update path to selftest.m4.
10347
10348 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10349
10350 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10351 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10352 gdbarch-selfselftests.c and selftest-arch.c.
10353 (SUBDIR_UNITTESTS_OBS): Rename to...
10354 (SELFTESTS_OBS): ... this.
10355 (COMMON_SFILES): Remove disasm-selftests.c and
10356 gdbarch-selftests.c.
10357 * configure.ac: Don't add selftest-arch.{c,o} to
10358 CONFIG_{SRCS,OBS}.
10359 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10360 preprocessor conditions.
10361
10362 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10363
10364 * configure.ac: Don't source bfd/development.sh.
10365 * selftest.m4: Modify comment.
10366 * configure: Re-generate.
10367
10368 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10369
10370 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10371 not "true" or "false".
10372 * configure: Re-generate.
10373
10374 2020-03-12 Christian Biesinger <cbiesinger@google.com>
10375
10376 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10377 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10378 renamed to arm_nbsd_supply_gregset.
10379 (fetch_register): Update to call arm_nbsd_supply_gregset.
10380 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10381 (arm_netbsd_nat_target::fetch_registers): Update.
10382 (fetch_elfcore_registers): Removed.
10383 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10384 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10385 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10386 not require NetBSD system headers.
10387 (arm_nbsd_regset): New struct.
10388 (arm_nbsd_iterate_over_regset_sections): New function.
10389 (arm_netbsd_init_abi_common): Updated to call
10390 set_gdbarch_iterate_over_regset_sections.
10391 * arm-nbsd-tdep.h: New file.
10392
10393 2020-03-11 Kevin Buettner <kevinb@redhat.com>
10394
10395 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10396 recursion.
10397
10398 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
10399
10400 * configure: Re-generate.
10401
10402 2020-03-11 Tom Tromey <tromey@adacore.com>
10403
10404 * ada-typeprint.c (print_choices): Fix comment.
10405
10406 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10407
10408 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10409 previous item in the list, when the list has no items.
10410
10411 2020-03-11 Tom de Vries <tdevries@suse.de>
10412
10413 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10414 PROP_LOCLIST handling code.
10415
10416 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10417
10418 * buildsym-legacy.c (record_line): Pass extra parameter to
10419 record_line.
10420 * buildsym.c (buildsym_compunit::record_line): Take an extra
10421 parameter, reduce duplication in the line table, and record the
10422 is_stmt flag in the line table.
10423 * buildsym.h (buildsym_compunit::record_line): Add extra
10424 parameter.
10425 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10426 non-statement lines.
10427 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10428 this to the symtab builder.
10429 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10430 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10431 through to dwarf_record_line_1.
10432 * infrun.c (process_event_stop_test): When stepping, don't stop at
10433 a non-statement instruction, and only refresh the step info when
10434 we land in the middle of a line's range. Also add an extra
10435 comment.
10436 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10437 field.
10438 * record-btrace.c (btrace_find_line_range): Only record lines
10439 marked as is-statement.
10440 * stack.c (frame_show_address): Show the frame address if we are
10441 in a non-statement sal.
10442 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10443 (maintenance_print_one_line_table): Print a header for the is_stmt
10444 column, and include is_stmt information in the output.
10445 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10446 preference to non-statements.
10447 (find_pcs_for_symtab_line): Prefer is-statement entries.
10448 (find_line_common): Likewise.
10449 * symtab.h (struct linetable_entry): Add is_stmt field.
10450 (struct symtab_and_line): Likewise.
10451 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10452 arranging the line table.
10453
10454 2020-03-07 Tom de Vries <tdevries@suse.de>
10455
10456 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10457 DIE.
10458
10459 2020-03-07 Tom Tromey <tom@tromey.com>
10460
10461 * valops.c (value_literal_complex): Remove obsolete comment.
10462 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10463 comment.
10464
10465 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10466
10467 * infrun.h: Forward-declare thread_info.
10468 (set_step_info): Add thread_info parameter, add doc.
10469 * infrun.c (set_step_info): Add thread_info parameter, move doc
10470 to header.
10471 * infrun.c (process_event_stop_test): Pass thread to
10472 set_step_info call.
10473 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10474 set_step_info.
10475 (prepare_one_step): Add thread_info parameter, pass it to
10476 set_step_frame and prepare_one_step (recursive) call.
10477 (step_1): Pass thread to prepare_one_step call.
10478 (step_command_fsm::should_stop): Pass thread to
10479 prepare_one_step.
10480 (until_next_fsm): Pass thread to set_step_frame call.
10481 (finish_command): Pass thread to set_step_info call.
10482
10483 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
10484
10485 * windows-tdep.c (windows_solib_create_inferior_hook):
10486 Check if inferior is running.
10487
10488 2020-03-06 Tom de Vries <tdevries@suse.de>
10489
10490 * NEWS: Fix "the the".
10491 * ctfread.c: Same.
10492
10493 2020-03-06 Tom de Vries <tdevries@suse.de>
10494
10495 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10496
10497 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10498
10499 * .dir-locals.el: Add a comment referencing the other copies of
10500 this file.
10501
10502 2020-03-05 John Baldwin <jhb@FreeBSD.org>
10503
10504 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10505 psargs.
10506
10507 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10508
10509 * .gitattributes: New file.
10510
10511 2020-03-04 Tom Tromey <tom@tromey.com>
10512
10513 * symmisc.c (print_symbol_bcache_statistics)
10514 (print_objfile_statistics): Update.
10515 * symfile.c (allocate_symtab): Use intern.
10516 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10517 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10518 macro_cache>: Remove.
10519 <string_cache>: New member.
10520 (struct objfile) <intern>: New methods.
10521 * elfread.c (elf_symtab_read): Use intern.
10522 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10523 (dwarf2_compute_name, dwarf2_physname)
10524 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10525 names.
10526 (guess_partial_die_structure_name): Update.
10527 (partial_die_info::fixup): Intern name.
10528 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10529 name.
10530 (dwarf2_name): Intern name. Update.
10531 * buildsym.c (buildsym_compunit::get_macro_table): Use
10532 string_cache.
10533
10534 2020-03-04 Tom Tromey <tom@tromey.com>
10535
10536 * jit.c (bfd_open_from_target_memory): Make "target" const.
10537 * corefile.c (gnutarget): Now const.
10538 * gdbcore.h (gnutarget): Now const.
10539
10540 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
10541
10542 * NEWS: Mention support for WOW64 processes.
10543 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10544 (amd64_windows_segment_register_p): Remove static.
10545 (_initialize_amd64_windows_nat): Update.
10546 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10547 * i386-windows-nat.c (context_offset): Update.
10548 (i386_mappings): Rename and remove static.
10549 (i386_windows_segment_register_p): Remove static.
10550 (_initialize_i386_windows_nat): Update.
10551 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10552 (STATUS_WX86_SINGLE_STEP): New macro.
10553 (EnumProcessModulesEx): New macro.
10554 (Wow64SuspendThread): New macro.
10555 (Wow64GetThreadContext): New macro.
10556 (Wow64SetThreadContext): New macro.
10557 (Wow64GetThreadSelectorEntry): New macro.
10558 (windows_set_context_register_offsets): Add static.
10559 (windows_set_segment_register_p): Likewise.
10560 (windows_add_thread): Adapt for WOW64 processes.
10561 (windows_fetch_one_register): Likewise.
10562 (windows_nat_target::fetch_registers): Likewise.
10563 (windows_store_one_register): Likewise.
10564 (display_selector): Likewise.
10565 (display_selectors): Likewise.
10566 (handle_exception): Likewise.
10567 (windows_continue): Likewise.
10568 (windows_nat_target::resume): Likewise.
10569 (windows_add_all_dlls): Likewise.
10570 (do_initial_windows_stuff): Likewise.
10571 (windows_nat_target::attach): Likewise.
10572 (windows_get_exec_module_filename): Likewise.
10573 (windows_nat_target::create_inferior): Likewise.
10574 (windows_xfer_siginfo): Likewise.
10575 (_initialize_loadable): Initialize Wow64SuspendThread,
10576 Wow64GetThreadContext, Wow64SetThreadContext,
10577 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10578 * windows-nat.h (windows_set_context_register_offsets):
10579 Remove declaration.
10580 (windows_set_segment_register_p): Likewise.
10581 (i386_windows_segment_register_p): Add declaration.
10582 (amd64_windows_segment_register_p): Likewise.
10583
10584 2020-03-04 Luis Machado <luis.machado@linaro.org>
10585
10586 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10587 in "info registers" for AArch64/ARM.
10588
10589 The change caused "info registers" to not print GPR's.
10590
10591 gdb/ChangeLog:
10592
10593 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10594
10595 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10596 when reg->group is empty and reggroup is not.
10597
10598 2020-03-03 Tom Tromey <tromey@adacore.com>
10599
10600 * dwarf2/frame.c (struct dwarf2_frame_cache)
10601 <checked_tailcall_bottom, entry_cfa_sp_offset,
10602 entry_cfa_sp_offset_p>: Remove members.
10603 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10604 (dwarf2_frame_prev_register): Don't call
10605 dwarf2_tailcall_sniffer_first.
10606 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10607 * frame-unwind.c (add_unwinder): New fuction.
10608 (frame_unwind_init): Use it. Add tailcall unwinder.
10609
10610 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10611 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10612
10613 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10614 value should be printed as true.
10615
10616 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
10617
10618 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10619 (windows_init_abi): Set and use windows_so_ops.
10620
10621 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10622
10623 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10624 when verifying if dealing with a convenience variable.
10625
10626 2020-03-03 Luis Machado <luis.machado@linaro.org>
10627
10628 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10629
10630 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10631
10632 * infrun.c (gdbarch_supports_displaced_stepping): New.
10633 (use_displaced_stepping): Break up conditions in smaller pieces.
10634 Use gdbarch_supports_displaced_stepping.
10635 (displaced_step_prepare_throw): Use
10636 gdbarch_supports_displaced_stepping.
10637
10638 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10639
10640 * NEWS: Mention new behaviour of the history filename.
10641 * top.c (write_history_p): Add comment.
10642 (show_write_history_p): Add header comment, give a different
10643 message when history writing is on, but the history filename is
10644 empty.
10645 (history_filename): Add comment.
10646 (history_filename_empty): New function.
10647 (show_history_filename): Add header comment, give a different
10648 message when the filename is empty.
10649 (init_history): Compare history_filename against nullptr, and only
10650 read history if the filename is not empty.
10651 (set_history_filename): Add header comment, and only make
10652 non-empty filenames absolute.
10653 (init_main): Make the filename argument to 'set history filename'
10654 optional.
10655
10656 2020-03-02 Christian Biesinger <cbiesinger@google.com>
10657
10658 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10659 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10660 (fetch_fp_register): Update.
10661 (fetch_fp_regs): Update.
10662 (store_fp_register): Update.
10663 (store_fp_regs): Update.
10664 (arm_netbsd_nat_target::read_description): New function.
10665 (fetch_elfcore_registers): Update.
10666
10667 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10668
10669 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10670 general_thread if the stop reply is missing a thread-id.
10671 (remote_target::process_stop_reply): Use the first non-exited
10672 thread if the target didn't pass a thread-id.
10673 * infrun.c (do_target_wait): Move call to
10674 switch_to_inferior_no_thread to ....
10675 (do_target_wait_1): ... here.
10676
10677 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10678
10679 * debuginfod-support.c: Include defs.h first.
10680
10681 2020-02-28 Tom de Vries <tdevries@suse.de>
10682
10683 * symfile.c (set_initial_language): Use default language for lookup.
10684
10685 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
10686
10687 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10688 reader variable, pass `this` to read_cutu_die_from_dwo.
10689
10690 2020-02-27 Aaron Merey <amerey@redhat.com>
10691
10692 * source.c (open_source_file): Check for nullptr when computing
10693 srcpath.
10694
10695 2020-02-27 Tom Tromey <tromey@adacore.com>
10696
10697 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10698 member.
10699 (dwarf2_add_field): Don't update nfields.
10700 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10701
10702 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10703
10704 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10705 abs.
10706
10707 2020-02-26 Tom Tromey <tom@tromey.com>
10708
10709 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10710 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10711 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10712 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10713 per_cu_data.
10714
10715 2020-02-26 Tom Tromey <tom@tromey.com>
10716
10717 * dwarf2/index-write.c (psym_index_map): Change type.
10718 (add_address_entry_worker, write_one_signatured_type)
10719 (recursively_count_psymbols, recursively_write_psymbols)
10720 (class debug_names, psyms_seen_size, write_gdbindex)
10721 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10722
10723 2020-02-26 Aaron Merey <amerey@redhat.com>
10724
10725 * Makefile.in: Handle optional debuginfod support.
10726 * NEWS: Update.
10727 * README: Add --with-debuginfod summary.
10728 * config.in: Regenerate.
10729 * configure: Regenerate.
10730 * configure.ac: Handle optional debuginfod support.
10731 * debuginfod-support.c: debuginfod helper functions.
10732 * debuginfod-support.h: Ditto.
10733 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10734 summary.
10735 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10736 when a dwz file cannot be found.
10737 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10738 debuginfo file cannot be found.
10739 * source.c (open_source_file): Query debuginfod servers when a
10740 source file cannot be found.
10741 * top.c (print_gdb_configuration): Include
10742 --{with,without}-debuginfod in the output.
10743
10744 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10745
10746 * thread.c (thr_try_catch_cmd): Print thread name.
10747
10748 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
10749
10750 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10751 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10752 dwarf2_fetch_die_type_sect_off): Move to...
10753 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10754 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10755 dwarf2_fetch_die_type_sect_off): ... here.
10756 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10757 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10758 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10759
10760 2020-02-26 Tom de Vries <tdevries@suse.de>
10761
10762 PR gdb/25603
10763 * symfile.c (set_initial_language): Exit-early if
10764 language_mode == language_mode_manual.
10765
10766 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10767
10768 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10769 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10770 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10771
10772 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10773
10774 * gdbtypes.c (create_array_type_with_stride): Handle negative
10775 array strides.
10776 * valarith.c (value_subscripted_rvalue): Likewise.
10777
10778 2020-02-25 Luis Machado <luis.machado@linaro.org>
10779
10780 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10781
10782 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10783
10784 * loc.h (dwarf2_get_die_type): Move to...
10785 * read.h (dwarf2_get_die_type): ... here.
10786 * read.c (dwarf2_get_die_type): Move doc to header.
10787
10788 2020-02-25 Joel Brobecker <brobecker@adacore.com>
10789
10790 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10791 'gnulib/Makefile.in' to the list.
10792
10793 2020-02-24 Tom Tromey <tom@tromey.com>
10794
10795 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10796 Remove.
10797 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10798 XOBNEWVEC.
10799
10800 2020-02-24 Tom Tromey <tom@tromey.com>
10801
10802 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10803 New method.
10804 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10805 (dw2_do_instantiate_symtab, dw2_get_file_names)
10806 (build_type_psymtab_dependencies, load_full_type_unit): Update.
10807
10808 2020-02-24 Tom Tromey <tom@tromey.com>
10809
10810 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
10811 make_scoped_restore.
10812 (dwarf2_psymtab::read_symtab): Don't clear
10813 reading_partial_symbols.
10814
10815 2020-02-24 Tom de Vries <tdevries@suse.de>
10816
10817 PR gdb/25592
10818 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10819
10820 2020-02-24 Tom de Vries <tdevries@suse.de>
10821
10822 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
10823 commands layout next/prev/regs.
10824
10825 2020-02-22 Tom Tromey <tom@tromey.com>
10826
10827 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
10828 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
10829
10830 2020-02-22 Tom Tromey <tom@tromey.com>
10831
10832 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
10833
10834 2020-02-22 Tom Tromey <tom@tromey.com>
10835
10836 * tui/tui-win.c (_initialize_tui_win): Add usage text.
10837 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
10838 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
10839 * tui/tui.c (_initialize_tui): Add usage text.
10840
10841 2020-02-22 Tom Tromey <tom@tromey.com>
10842
10843 * tui/tui-win.c (tui_set_focus_command)
10844 (tui_set_win_height_command): Use error_no_arg.
10845 (_initialize_tui_win): Update help text.
10846 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
10847
10848 2020-02-22 Tom Tromey <tom@tromey.com>
10849
10850 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
10851 * tui/tui-disasm.h (struct tui_disasm_window)
10852 <display_start_addr>: Declare.
10853 * tui/tui-source.h (struct tui_source_window)
10854 <display_start_addr>: Declare.
10855 * tui/tui-winsource.h (struct tui_source_window_base)
10856 <show_source_line, display_start_addr>: New methods.
10857 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
10858 Rename and move to protected section.
10859 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
10860 (tui_source_window_base::do_erase_source_content): Update.
10861 (tui_source_window_base::show_source_line): Now a method.
10862 (tui_source_window_base::show_source_content)
10863 (tui_source_window_base::tui_source_window_base)
10864 (tui_source_window_base::rerender)
10865 (tui_source_window_base::refill)
10866 (tui_source_window_base::do_scroll_horizontal)
10867 (tui_source_window_base::set_is_exec_point_at)
10868 (tui_source_window_base::update_breakpoint_info)
10869 (tui_source_window_base::update_exec_info): Update.
10870 * tui/tui-source.c (tui_source_window::set_contents)
10871 (tui_source_window::showing_source_p)
10872 (tui_source_window::do_scroll_vertical)
10873 (tui_source_window::location_matches_p)
10874 (tui_source_window::line_is_displayed): Update.
10875 (tui_source_window::display_start_addr): New method.
10876 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10877 (tui_disasm_window::do_scroll_vertical)
10878 (tui_disasm_window::location_matches_p): Update.
10879 (tui_disasm_window::display_start_addr): New method.
10880
10881 2020-02-22 Tom Tromey <tom@tromey.com>
10882
10883 * NEWS: Add entry for gdb.register_window_type.
10884 * tui/tui-layout.h (window_factory): New typedef.
10885 (tui_register_window): Declare.
10886 * tui/tui-layout.c (saved_tui_windows): New global.
10887 (tui_apply_current_layout): Use it.
10888 (tui_register_window): New function.
10889 * python/python.c (do_start_initialization): Call
10890 gdbpy_initialize_tui.
10891 (python_GdbMethods): Add "register_window_type" function.
10892 * python/python-internal.h (gdbpy_register_tui_window)
10893 (gdbpy_initialize_tui): Declare.
10894 * python/py-tui.c: New file.
10895 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10896
10897 2020-02-22 Tom Tromey <tom@tromey.com>
10898
10899 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10900
10901 2020-02-22 Tom Tromey <tom@tromey.com>
10902
10903 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10904 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10905 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10906 (tui_set_win_focus_to): Move from tui-win.c.
10907
10908 2020-02-22 Tom Tromey <tom@tromey.com>
10909
10910 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10911 functions.
10912 (known_window_types): New global.
10913 (tui_get_window_by_name): Reimplement.
10914 (initialize_known_windows): New function.
10915 (validate_window_name): Rewrite.
10916 (_initialize_tui_layout): Call initialize_known_windows.
10917
10918 2020-02-22 Tom Tromey <tom@tromey.com>
10919
10920 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10921 Remove constants.
10922 * tui/tui-winsource.h (struct tui_source_window_base)
10923 <tui_source_window_base>: Remove parameter.
10924 * tui/tui-winsource.c
10925 (tui_source_window_base::tui_source_window_base): Remove
10926 parameter.
10927 (tui_source_window_base::refill): Update.
10928 * tui/tui-stack.h (struct tui_locator_window)
10929 <tui_locator_window>: Update.
10930 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10931 Default the constructor.
10932 * tui/tui-regs.h (struct tui_data_item_window)
10933 <tui_data_item_window>: Default the constructor.
10934 (struct tui_data_window) <tui_data_window>: Likewise.
10935 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10936 Default the constructor.
10937 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10938 Default the constructor.
10939 <type>: Remove.
10940 (struct tui_win_info) <tui_win_info>: Default the constructor.
10941 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10942 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10943 Default the constructor.
10944
10945 2020-02-22 Tom Tromey <tom@tromey.com>
10946
10947 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10948 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10949 * tui/tui-win.c (tui_resize_all): Don't call
10950 tui_delete_invisible_windows.
10951 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10952 done.
10953 (tui_set_layout): Update.
10954 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10955 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10956 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10957
10958 2020-02-22 Tom Tromey <tom@tromey.com>
10959
10960 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10961 correctly.
10962
10963 2020-02-22 Tom Tromey <tom@tromey.com>
10964
10965 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10966
10967 2020-02-22 Tom Tromey <tom@tromey.com>
10968
10969 * tui/tui-winsource.h (struct tui_source_window_iterator)
10970 <inner_iterator>: New etytypedef.
10971 <tui_source_window_iterator>: Take "end" parameter.
10972 <tui_source_window_iterator>: Take iterator.
10973 <operator*, advance>: Update.
10974 <m_iter>: Change type.
10975 <m_end>: New field.
10976 (struct tui_source_windows) <begin, end>: Update.
10977 * tui/tui-layout.c (tui_windows): New global.
10978 (tui_apply_current_layout): Clear tui_windows.
10979 (tui_layout_window::apply): Update tui_windows.
10980 * tui/tui-data.h (tui_windows): Declare.
10981 (all_tui_windows): Now inline function.
10982 (class tui_window_iterator, struct all_tui_windows): Remove.
10983
10984 2020-02-22 Tom Tromey <tom@tromey.com>
10985
10986 PR tui/17850:
10987 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10988 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10989 "height" argument.
10990 (class tui_layout_window) <get_sizes>: Likewise.
10991 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10992 argument.
10993 <get_sizes>: Add "height" argument.
10994 <m_vertical>: New field.
10995 * tui/tui-layout.c (tui_layout_split::clone): Update.
10996 (tui_layout_split::get_sizes): Add "height" argument.
10997 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10998 (tui_new_layout_command): Parse "-horizontal".
10999 (_initialize_tui_layout): Update help string.
11000 (tui_layout_split::specification): Add "-horizontal" when needed.
11001 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
11002 argument.
11003 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
11004 New methods.
11005
11006 2020-02-22 Tom Tromey <tom@tromey.com>
11007
11008 * tui/tui-layout.h (enum tui_adjust_result): New.
11009 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
11010 (class tui_layout_window) <adjust_size>: Return
11011 tui_adjust_result. Rewrite.
11012 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
11013 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
11014
11015 2020-02-22 Tom Tromey <tom@tromey.com>
11016
11017 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
11018 parameter and return types.
11019 (class tui_layout_base) <specification>: Add "depth".
11020 (class tui_layout_window) <specification>: Add "depth".
11021 (class tui_layout_split) <specification>: Add "depth".
11022 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
11023 and return types.
11024 (tui_new_layout_command): Parse sub-layouts.
11025 (_initialize_tui_layout): Update help string.
11026 (tui_layout_window::specification): Add "depth".
11027 (add_layout_command): Update.
11028
11029 2020-02-22 Tom Tromey <tom@tromey.com>
11030
11031 * NEWS: Add "tui new-layout" item.
11032 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
11033 Add new-layout command to help text.
11034 (validate_window_name): New function.
11035 (tui_new_layout_command): New function.
11036 (_initialize_tui_layout): Register "new-layout".
11037 (tui_layout_window::specification): New method.
11038 (tui_layout_window::specification): New method.
11039 * tui/tui-layout.h (class tui_layout_base) <specification>: New
11040 method.
11041 (class tui_layout_window) <specification>: New method.
11042 (class tui_layout_split) <specification>: New method.
11043
11044 2020-02-22 Tom Tromey <tom@tromey.com>
11045
11046 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
11047 * tui/tui-win.c (window_name_completer): Update comment.
11048 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
11049 Declare method.
11050 (class tui_layout_window) <replace_window>: Likewise.
11051 (class tui_layout_split) <replace_window>: Likewise.
11052 (tui_set_layout): Don't declare.
11053 (tui_set_initial_layout): Declare function.
11054 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
11055 (asm_regs_layout): New globals.
11056 (tui_current_layout, show_layout): Remove.
11057 (tui_set_layout, tui_add_win_to_layout): Rewrite.
11058 (find_layout, tui_apply_layout): New function.
11059 (layout_completer): Remove.
11060 (tui_next_layout): Reimplement.
11061 (tui_next_layout_command): New function.
11062 (tui_set_initial_layout, tui_prev_layout_command): New functions.
11063 (tui_regs_layout): Reimplement.
11064 (tui_regs_layout_command): New function.
11065 (extract_display_start_addr): Rewrite.
11066 (next_layout, prev_layout): Remove.
11067 (tui_layout_window::replace_window): New method.
11068 (tui_layout_split::replace_window): New method.
11069 (destroy_layout): New function.
11070 (layout_list): New global.
11071 (add_layout_command): New function.
11072 (initialize_layouts): Update.
11073 (tui_layout_command): New function.
11074 (_initialize_tui_layout): Install "layout" commands.
11075 * tui/tui-data.h (enum tui_layout_type): Remove.
11076 (tui_current_layout): Don't declare.
11077
11078 2020-02-22 Tom Tromey <tom@tromey.com>
11079
11080 * tui/tui-regs.c (tui_reg_layout): Remove.
11081 (tui_reg_command): Use tui_regs_layout.
11082 * tui/tui-layout.h (tui_reg_command): Declare.
11083 * tui/tui-layout.c (tui_reg_command): New function.
11084
11085 2020-02-22 Tom Tromey <tom@tromey.com>
11086
11087 * tui/tui.c (tui_rl_delete_other_windows): Call
11088 tui_remove_some_windows.
11089 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
11090 Declare method.
11091 (class tui_layout_window) <remove_windows>: New method.
11092 (class tui_layout_split) <remove_windows>: Declare.
11093 (tui_remove_some_windows): Declare.
11094 * tui/tui-layout.c (tui_remove_some_windows): New function.
11095 (tui_layout_split::remove_windows): New method.
11096
11097 2020-02-22 Tom Tromey <tom@tromey.com>
11098
11099 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
11100 * tui/tui-layout.h (tui_next_layout): Declare.
11101 * tui/tui-layout.c (tui_next_layout): New function.
11102
11103 2020-02-22 Tom Tromey <tom@tromey.com>
11104
11105 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
11106 correct coordinates.
11107
11108 2020-02-22 Tom Tromey <tom@tromey.com>
11109
11110 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
11111 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
11112 DATA_WIN case.
11113
11114 2020-02-22 Tom Tromey <tom@tromey.com>
11115
11116 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
11117 TUI_DISASM_WIN, not tui_win_list.
11118
11119 2020-02-22 Tom Tromey <tom@tromey.com>
11120
11121 * valprint.c (generic_val_print_enum_1)
11122 (val_print_type_code_flags): Style member names.
11123 * rust-lang.c (val_print_struct, rust_print_enum)
11124 (rust_print_struct_def, rust_internal_print_type): Style member
11125 names.
11126 * p-valprint.c (pascal_object_print_value_fields): Style member
11127 names. Only call fprintf_symbol_filtered for static members.
11128 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
11129 * f-valprint.c (f_val_print): Style member names.
11130 * f-typeprint.c (f_type_print_base): Style member names.
11131 * cp-valprint.c (cp_print_value_fields): Style member names. Only
11132 call fprintf_symbol_filtered for static members.
11133 (cp_print_class_member): Style member names.
11134 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
11135 member names.
11136 * ada-valprint.c (ada_print_scalar): Style enum names.
11137 (ada_val_print_enum): Likewise.
11138 * ada-typeprint.c (print_enum_type): Style enum names.
11139
11140 2020-02-21 Tom Tromey <tom@tromey.com>
11141
11142 * psympriv.h (struct partial_symtab): Update comment.
11143
11144 2020-02-21 Tom Tromey <tromey@adacore.com>
11145
11146 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11147 type is CORE_ADDR.
11148
11149 2020-02-21 Tom de Vries <tdevries@suse.de>
11150
11151 PR gdb/25534
11152 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11153 if dependencies[i]->user != NULL.
11154
11155 2020-02-21 Ali Tamur <tamur@google.com>
11156
11157 * dwarf2/read.c (dwarf2_name): Add null check.
11158
11159 2020-02-20 Tom Tromey <tom@tromey.com>
11160
11161 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11162 ">=", in binary search.
11163 (dwarf2_find_containing_comp_unit): New overload.
11164 (run_test): New self-test.
11165 (_initialize_dwarf2_read): Register new test.
11166
11167 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
11168
11169 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11170 * riscv-tdep.h: Likewise.
11171 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11172 rv32-only CSR.
11173 * features/riscv/64bit-csr.xml: Regenerated.
11174
11175 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11176 Tom Tromey <tom@tromey.com>
11177
11178 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11179 of 'fputc_unfiltered'.
11180 (putchar_unfiltered): Call 'fputc_unfiltered'.
11181 (fputc_unfiltered): Call 'fputs_unfiltered'.
11182
11183 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11184
11185 * config.in: Regenerate.
11186 * configure: Regenerate.
11187 * configure.ac: Add --with-python-libdir option.
11188 * main.c: Use WITH_PYTHON_LIBDIR.
11189
11190 2020-02-19 Tom Tromey <tom@tromey.com>
11191
11192 * symtab.c (general_symbol_info::compute_and_set_names): Use
11193 obstack_strndup. Simplify call to symbol_set_demangled_name.
11194
11195 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
11196
11197 * dwarf2/read.c (allocate_signatured_type_table,
11198 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11199 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11200 Remove objfile parameter, update all callers.
11201
11202 2020-02-19 Doug Evans <dje@google.com>
11203
11204 PR rust/25535
11205 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11206 rust_enum_variant calculation.
11207
11208 2020-02-19 Tom Tromey <tromey@adacore.com>
11209
11210 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11211
11212 2020-02-19 Tom Tromey <tromey@adacore.com>
11213
11214 * ada-lang.c (cache_symbol): Use obstack_strdup.
11215
11216 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11217
11218 * configure: Regenerate.
11219
11220 2020-02-19 Tom Tromey <tromey@adacore.com>
11221
11222 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11223 NULL check.
11224
11225 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
11226
11227 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11228
11229 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11230
11231 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11232 if GDBSERVER is not defined.
11233 (riscv_tdesc_cache): Likewise, also store const target_desc.
11234 (STATIC_IN_GDB): Define.
11235 (riscv_create_target_description): Update declaration with
11236 STATIC_IN_GDB.
11237 (riscv_lookup_target_description): New function, only define if
11238 GDBSERVER is not defined.
11239 * arch/riscv.h (riscv_create_target_description): Declare only
11240 when GDBSERVER is defined.
11241 (riscv_lookup_target_description): New declaration when GDBSERVER
11242 is not defined.
11243 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11244 (riscv_linux_read_features): ...this, and return
11245 riscv_gdbarch_features instead of target_desc.
11246 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11247 (riscv_linux_read_description): Rename to...
11248 (riscv_linux_read_features): ...this.
11249 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11250 Update to use riscv_gdbarch_features and
11251 riscv_lookup_target_description.
11252 * riscv-tdep.c (riscv_find_default_target_description): Use
11253 riscv_lookup_target_description instead of
11254 riscv_create_target_description.
11255
11256 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11257
11258 * valprint.c (generic_val_print_enum_1): When printing a flag
11259 enum with value 0 and there is no enumerator with value 0, print
11260 just "0" instead of "(unknown: 0x0)".
11261
11262 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11263
11264 * valprint.c (generic_val_print_enum_1): Print unknown part of
11265 flag enum in hex.
11266
11267 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11268
11269 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11270 flag enums to contain duplicate enumerators.
11271 * valprint.c (generic_val_print_enum_1): Update comment.
11272
11273 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11274
11275 * dwarf2/read.c: Include "count-one-bits.h".
11276 (update_enumeration_type_from_children): If an enumerator has
11277 multiple bits set, don't treat the enumeration as a "flag enum".
11278 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11279 of flag enums have 0 or 1 bit set.
11280
11281 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11282
11283 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11284 conversion.
11285 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11286 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11287 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11288 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11289 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11290
11291 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11292
11293 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11294
11295 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11296
11297 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11298 displaced_step_closure_up.
11299 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11300 (struct displaced_step_closure_up):
11301 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11302 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11303 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11304 Likewise.
11305 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11306 * gdbarch.c, gdbarch.h: Re-generate.
11307 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11308 displaced_step_closure_up.
11309 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11310 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11311 * infrun.h (displaced_step_closure_up): New type alias.
11312 (struct displaced_step_inferior_state) <step_closure>: Change
11313 type to displaced_step_closure_up.
11314 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11315 displaced_step_closure_up.
11316 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11317
11318 2020-02-14 Tom Tromey <tom@tromey.com>
11319
11320 * minidebug.c (gnu_debug_key): New global.
11321 (find_separate_debug_file_in_section): Use it.
11322
11323 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11324
11325 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11326 std::unique_ptr.
11327 * gdbarch.c: Re-generate.
11328 * gdbarch.h: Re-generate.
11329 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11330 change.
11331 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11332 type to std::unique_ptr.
11333 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11334 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11335 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11336 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11337 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11338 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11339 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11340 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11341 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11342
11343 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11344
11345 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11346 std::unique_ptr.
11347 (displaced_step_clear): Rename to...
11348 (displaced_step_reset): ... this. Just call displaced->reset ().
11349 (displaced_step_clear_cleanup): Rename to...
11350 (displaced_step_reset_cleanup): ... this.
11351 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11352 (displaced_step_fixup): Likewise.
11353 (resume_1): Likewise.
11354 (handle_inferior_event): Restore child's memory before calling
11355 displaced_step_fixup on the parent.
11356 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11357 to std::unique_ptr.
11358 <step_closure>: Change type to std::unique_ptr.
11359
11360 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11361
11362 * arm-tdep.c: Include count-one-bits.h.
11363 (cleanup_block_store_pc): Use count_one_bits.
11364 (cleanup_block_load_pc): Use count_one_bits.
11365 (arm_copy_block_xfer): Use count_one_bits.
11366 (thumb2_copy_block_xfer): Use count_one_bits.
11367 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11368 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11369 (thumb_get_next_pcs_raw): Use count_one_bits.
11370 (arm_get_next_pcs_raw): Use count_one_bits_l.
11371 * arch/arm.c (bitcount): Remove.
11372 * arch/arm.h (bitcount): Remove.
11373
11374 2020-02-14 Tom Tromey <tromey@adacore.com>
11375
11376 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11377 Update.
11378 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11379 * dwarf2/loc.c (call_site_find_chain_1): Return
11380 unique_xmalloc_ptr.
11381 (call_site_find_chain): Likewise.
11382
11383 2020-02-14 Richard Biener <rguenther@suse.de>
11384
11385 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11386 on expression with division operators.
11387
11388 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11389
11390 * MAINTAINERS (Write After Approval): Adding myself.
11391
11392 2020-02-12 Tom Tromey <tom@tromey.com>
11393
11394 * event-loop.c (event_data, gdb_event, event_handler_func):
11395 Remove.
11396
11397 2020-02-12 Tom Tromey <tom@tromey.com>
11398
11399 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11400 (dwarf2_frame_objfile_data): Add comment.
11401 (find_comp_unit, set_comp_unit): New functions.
11402 (dwarf2_frame_find_fde): Use find_comp_unit.
11403 (dwarf2_build_frame_info): Use set_comp_unit.
11404
11405 2020-02-12 Tom Tromey <tom@tromey.com>
11406
11407 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11408 (comp_unit): Don't initialize objfile.
11409 (execute_cfa_program): Add text_offset parameter.
11410 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11411 (dwarf2_frame_cache): Update.
11412 (dwarf2_build_frame_info): Don't set "objfile" member.
11413
11414 2020-02-12 Tom Tromey <tom@tromey.com>
11415
11416 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11417 (decode_frame_entry): Likewise.
11418 (dwarf2_build_frame_info): Update.
11419
11420 2020-02-12 Tom Tromey <tom@tromey.com>
11421
11422 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11423 (decode_frame_entry_1): Use the comp_unit obstack.
11424
11425 2020-02-12 Tom Tromey <tom@tromey.com>
11426
11427 * dwarf2/frame.c (struct comp_unit): Add initializers and
11428 constructor.
11429 (dwarf2_frame_objfile_data): Store a comp_unit.
11430 (dwarf2_frame_find_fde): Update.
11431 (dwarf2_build_frame_info): Use "new".
11432
11433 2020-02-12 Tom Tromey <tom@tromey.com>
11434
11435 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11436 (dwarf2_fde_table): Typedef for std::vector.
11437 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11438 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11439 (decode_frame_entry): Update.
11440 (dwarf2_build_frame_info): Use "new".
11441
11442 2020-02-12 Christian Biesinger <cbiesinger@google.com>
11443
11444 * arm-tdep.c (arm_gdbarch_init): Update.
11445 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11446 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11447 have_neon, is_m>: Change to bool.
11448
11449 2020-02-12 Christian Biesinger <cbiesinger@google.com>
11450
11451 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11452
11453 2020-02-12 Tom Tromey <tom@tromey.com>
11454
11455 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11456
11457 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
11458
11459 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11460 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11461
11462 2020-02-11 Tom Tromey <tom@tromey.com>
11463
11464 * psymtab.h: Update comment.
11465
11466 2020-02-11 Tom Tromey <tom@tromey.com>
11467
11468 * gdb_obstack.h (struct auto_obstack): Use
11469 DISABLE_COPY_AND_ASSIGN.
11470
11471 2020-02-11 Tom Tromey <tom@tromey.com>
11472
11473 * dwarf2/frame.h (struct objfile): Don't forward declare.
11474
11475 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11476
11477 * cris-tdep.c (cris_supply_gregset): Change signature to match
11478 what struct regset expects.
11479 (cris_regset): New struct.
11480 (fetch_core_registers): Remove.
11481 (cris_iterate_over_regset_sections): New function.
11482 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11483 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11484
11485 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11486
11487 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11488 registers.
11489
11490 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11491
11492 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11493
11494 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11495
11496 * configure: Re-generate.
11497
11498 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11499
11500 * configure: Re-generate.
11501
11502 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11503
11504 * acinclude: Update warning.m4 path.
11505 * warning.m4: Move to gdbsupport.
11506
11507 2020-02-11 Tom Tromey <tromey@adacore.com>
11508
11509 * remote.c (remote_console_output): Update.
11510 * printcmd.c (printf_command): Update.
11511 * event-loop.c (gdb_wait_for_event): Update.
11512 * linux-nat.c (sigchld_handler): Update.
11513 * remote-sim.c (gdb_os_write_stdout): Update.
11514 (gdb_os_flush_stdout): Update.
11515 (gdb_os_flush_stderr): Update.
11516 (gdb_os_write_stderr): Update.
11517 * exceptions.c (print_exception): Update.
11518 * remote-fileio.c (remote_fileio_func_read): Update.
11519 (remote_fileio_func_write): Update.
11520 * tui/tui.c (tui_enable): Update.
11521 * tui/tui-interp.c (tui_interp::init): Update.
11522 * utils.c (init_page_info): Update.
11523 (putchar_unfiltered, fputc_unfiltered): Update.
11524 (gdb_flush): Update.
11525 (emit_style_escape): Update.
11526 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11527 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11528 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11529 (stderr_file::write): Update.
11530 (stderr_file::puts): Update.
11531 * ui-file.h (ui_file_isatty, ui_file_write)
11532 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11533 (ui_file_puts): Don't declare.
11534
11535 2020-02-10 Tom de Vries <tdevries@suse.de>
11536
11537 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11538 sentinel to char *.
11539
11540 2020-02-09 Tom de Vries <tdevries@suse.de>
11541
11542 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11543 filename if it matches "<artificial>".
11544
11545 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
11546
11547 * windows-tdep.c (struct enum_value_name): New struct.
11548 (create_enum): New function.
11549 (windows_get_siginfo_type): Create and use enum types.
11550
11551 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
11552
11553 * NEWS: Mention $_siginfo support for Windows.
11554 * windows-nat.c (handle_exception): Set siginfo_er.
11555 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11556 (windows_xfer_siginfo): New function.
11557 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11558 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11559 (init_windows_gdbarch_data): New function.
11560 (get_windows_gdbarch_data): New function.
11561 (windows_get_siginfo_type): New function.
11562 (windows_init_abi): Register windows_get_siginfo_type.
11563 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11564
11565 2020-02-08 Tom Tromey <tom@tromey.com>
11566
11567 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11568 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11569 <keep>: Declare method.
11570 <m_keep>: Remove member.
11571 <~cutu_reader>: Remove.
11572 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11573 (cutu_reader::cutu_reader): Update.
11574 (cutu_reader::keep): Rename from ~cutu_reader.
11575 (process_psymtab_comp_unit, build_type_psymtabs_1)
11576 (process_skeletonless_type_unit, load_partial_comp_unit)
11577 (load_full_comp_unit, dwarf2_read_addr_index)
11578 (read_signatured_type): Update.
11579
11580 2020-02-08 Tom Tromey <tom@tromey.com>
11581
11582 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11583 "want_partial_unit" parameter.
11584 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11585 Inline check for DW_TAG_partial_unit.
11586 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11587
11588 2020-02-08 Tom Tromey <tom@tromey.com>
11589
11590 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11591 read.c.
11592 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11593 read.c.
11594
11595 2020-02-08 Tom Tromey <tom@tromey.com>
11596
11597 * dwarf2/read.c (read_address): Move to comp-unit.c.
11598 (dwarf2_rnglists_process, dwarf2_ranges_process)
11599 (read_attribute_value, dwarf_decode_lines_1)
11600 (var_decode_location, decode_locdesc): Update.
11601 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11602 read.c. Remove "cu" parameter.
11603 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11604 method.
11605
11606 2020-02-08 Tom Tromey <tom@tromey.com>
11607
11608 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11609 (read_indirect_line_string): Update.
11610 * dwarf2/comp-unit.c (read_offset): Remove.
11611 (read_comp_unit_head): Update.
11612 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11613 method.
11614 (read_offset): Don't declare.
11615
11616 2020-02-08 Tom Tromey <tom@tromey.com>
11617
11618 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11619 * dwarf2/read.c (struct comp_unit_head): Move to
11620 dwarf2/comp-unit.h.
11621 (enum class rcuh_kind): Move to comp-unit.h.
11622 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11623 (read_comp_unit_head, error_check_comp_unit_head)
11624 (read_and_check_comp_unit_head): Move to comp-unit.c.
11625 (read_offset, dwarf_unit_type_name): Likewise.
11626 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11627 (cutu_reader::cutu_reader, read_call_site_scope)
11628 (find_partial_die, follow_die_offset): Update.
11629 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11630
11631 2020-02-08 Tom Tromey <tom@tromey.com>
11632
11633 * dwarf2/read.c (read_offset_1): Move to leb.c.
11634 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11635 (dwarf_decode_macro_bytes): Update.
11636 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11637 * dwarf2/leb.h (read_offset): Declare.
11638
11639 2020-02-08 Tom Tromey <tom@tromey.com>
11640
11641 * dwarf2/read.c (dwarf2_section_size): Remove.
11642 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11643 Update.
11644 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11645
11646 2020-02-08 Tom Tromey <tom@tromey.com>
11647
11648 * dwarf2/read.c (read_initial_length): Move to leb.c.
11649 * dwarf2/leb.h (read_initial_length): Declare.
11650 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11651 handle_nonstd parameter.
11652 * dwarf2/frame.c (read_initial_length): Remove.
11653 (decode_frame_entry_1): Update.
11654
11655 2020-02-08 Tom Tromey <tom@tromey.com>
11656
11657 * dwarf2/loc.c (dwarf2_find_location_expression)
11658 (dwarf_evaluate_loc_desc::get_tls_address)
11659 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11660 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11661 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11662 (dwarf2_compile_property_to_c)
11663 (dwarf2_loc_desc_get_symbol_read_needs)
11664 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11665 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11666 (loclist_describe_location, loclist_tracepoint_var_ref)
11667 (loclist_generate_c_location): Update.
11668 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11669 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11670 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11671 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11672 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11673 (dwarf2_per_cu_data::addr_size)
11674 (dwarf2_per_cu_data::ref_addr_size)
11675 (dwarf2_per_cu_data::text_offset)
11676 (dwarf2_per_cu_data::addr_type): Now methods.
11677 (per_cu_header_read_in): Make per_cu "const".
11678 (dwarf2_version): Remove.
11679 (dwarf2_per_cu_data::int_type): Now a method.
11680 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11681 (set_die_type, read_array_type, read_subrange_index_type)
11682 (read_tag_string_type, read_subrange_type): Update.
11683 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11684 offset_size, ref_addr_size, text_offset, addr_type, version,
11685 objfile, int_type, addr_sized_int_type>: Declare methods.
11686
11687 2020-02-08 Tom Tromey <tom@tromey.com>
11688
11689 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11690 Move earlier.
11691
11692 2020-02-08 Tom Tromey <tom@tromey.com>
11693
11694 * dwarf2/read.h (dwarf_line_debug): Declare.
11695 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11696 * dwarf2/read.c: Move line_header code to new files.
11697 (dwarf_line_debug): No longer static.
11698 * dwarf2/line-header.c: New file.
11699 * dwarf2/line-header.h: New file.
11700
11701 2020-02-08 Tom Tromey <tom@tromey.com>
11702
11703 * dwarf2/read.c (struct line_header) <file_full_name,
11704 file_file_name>: Return unique_xmalloc_ptr.
11705 (line_header::file_file_name): Update.
11706 (line_header::file_full_name): Update.
11707 (dw2_get_file_names_reader): Update.
11708 (macro_start_file): Update.
11709
11710 2020-02-08 Tom Tromey <tom@tromey.com>
11711
11712 * dwarf2/read.c (struct line_header) <file_full_name,
11713 file_file_name>: Declare methods.
11714 (dw2_get_file_names_reader): Update.
11715 (file_file_name): Now a method.
11716 (file_full_name): Likewise.
11717 (macro_start_file): Update.
11718
11719 2020-02-08 Tom Tromey <tom@tromey.com>
11720
11721 * dwarf2/read.c (dwarf_always_disassemble)
11722 (show_dwarf_always_disassemble): Move to loc.c.
11723 (_initialize_dwarf2_read): Move "always-disassemble" registration
11724 to loc.c.
11725 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11726 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11727 static.
11728 (show_dwarf_always_disassemble): Move from read.c.
11729 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11730
11731 2020-02-08 Tom Tromey <tom@tromey.com>
11732
11733 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11734 (create_quick_file_names_table): Return htab_up.
11735 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11736 Update.
11737 * dwarf2/read.h (struct dwarf2_per_objfile)
11738 <quick_file_names_table>: Now htab_up.
11739
11740 2020-02-08 Tom Tromey <tom@tromey.com>
11741
11742 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11743
11744 2020-02-08 Tom Tromey <tom@tromey.com>
11745
11746 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11747 Rewrite.
11748 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11749 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11750 (abbrev_table::abbrev_table): No longer inline.
11751 (ABBREV_HASH_SIZE): Remove.
11752 (abbrev_table::m_abbrevs): Now an htab_up.
11753
11754 2020-02-08 Tom Tromey <tom@tromey.com>
11755
11756 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11757 (cutu_reader): Update.
11758 (build_type_psymtabs_1): Update.
11759 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11760 (abbrev_table::alloc_abbrev): Update.
11761 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11762 (abbrev_table::read): New static method, renamed from
11763 abbrev_table_read_table.
11764 (abbrev_table::alloc_abbrev)
11765 (abbrev_table::add_abbrev): Now private.
11766 (abbrev_table::abbrev_table): Now private.
11767 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11768
11769 2020-02-08 Tom Tromey <tom@tromey.com>
11770
11771 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11772 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11773 htab_up.
11774
11775 2020-02-08 Tom Tromey <tom@tromey.com>
11776
11777 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11778 htab_up.
11779 (lookup_dwo_unit_in_dwp): Update.
11780 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11781 on obstack.
11782
11783 2020-02-08 Tom Tromey <tom@tromey.com>
11784
11785 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11786 obstack.
11787
11788 2020-02-08 Tom Tromey <tom@tromey.com>
11789
11790 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11791 line_header_hash.
11792 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11793 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11794 Change type to htab_up.
11795
11796 2020-02-08 Tom Tromey <tom@tromey.com>
11797
11798 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11799 htab_up. Don't allocate on obstack.
11800 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11801 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11802 Change type to htab_up.
11803
11804 2020-02-08 Tom Tromey <tom@tromey.com>
11805
11806 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
11807 Change type to htab_up.
11808 * dwarf2/read.c (create_signatured_type_table_from_index)
11809 (create_signatured_type_table_from_debug_names)
11810 (create_all_type_units, add_type_unit)
11811 (lookup_dwo_signatured_type, lookup_signatured_type)
11812 (process_skeletonless_type_unit): Update.
11813 (create_debug_type_hash_table, create_debug_types_hash_table):
11814 Change type of types_htab.
11815 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11816 htab_up. Don't allocate on obstack.
11817 (create_cus_hash_table): Change type of cus_htab parameter.
11818 (struct dwo_file) <cus, tus>: Now htab_up.
11819 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11820 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
11821 (queue_and_load_all_dwo_tus): Update.
11822 * dwarf2/index-write.c (write_gdbindex): Update.
11823 (write_debug_names): Update.
11824
11825 2020-02-08 Tom Tromey <tom@tromey.com>
11826
11827 * dwarf2/read.h (struct dwarf2_queue_item): Move from
11828 dwarf2/read.c. Remove "next" member. Add constructor ntad
11829 destructor.
11830 (struct dwarf2_per_objfile) <queue>: New member.
11831 * dwarf2/read.c (struct dwarf2_queue_item): Move to
11832 dwarf2/read.h.
11833 (dwarf2_queue, dwarf2_queue_tail): Remove.
11834 (class dwarf2_queue_guard): Add parameter to constructor. Use
11835 DISABLE_COPY_AND_ASSIGN.
11836 <m_per_objfile>: New member.
11837 <~dwarf2_queue_guard>: Rewrite.
11838 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
11839 Update.
11840 (~dwarf2_queue_item): New.
11841
11842 2020-02-08 Tom Tromey <tom@tromey.com>
11843
11844 * dwarf2/read.c (struct die_info) <has_children>: New member.
11845 (dw2_get_file_names_reader): Remove has_children.
11846 (dw2_get_file_names): Update.
11847 (read_cutu_die_from_dwo): Remove has_children.
11848 (cutu_reader::init_tu_and_read_dwo_dies)
11849 (cutu_reader::cutu_reader): Update.
11850 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
11851 Remove has_children.
11852 (build_type_psymtabs_1, process_skeletonless_type_unit)
11853 (load_partial_comp_unit, load_full_comp_unit): Update.
11854 (create_dwo_cu_reader): Remove has_children.
11855 (create_cus_hash_table, read_die_and_children): Update.
11856 (read_full_die_1,read_full_die): Remove has_children.
11857 (read_signatured_type): Update.
11858 (class cutu_reader) <has_children>: Remove.
11859
11860 2020-02-08 Tom Tromey <tom@tromey.com>
11861
11862 * dwarf2/expr.c: Rename from dwarf2expr.c.
11863 * dwarf2/expr.h: Rename from dwarf2expr.h.
11864 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11865 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11866 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11867 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11868 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11869 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11870 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11871 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11872 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11873 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11874 * dwarf2/loc.c: Rename from dwarf2loc.c.
11875 * dwarf2/loc.h: Rename from dwarf2loc.h.
11876 * dwarf2/read.c: Rename from dwarf2read.c.
11877 * dwarf2/read.h: Rename from dwarf2read.h.
11878 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11879 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11880 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11881 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11882 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11883 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11884 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11885 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11886 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11887 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11888 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11889 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11890 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11891 Update.
11892 * Makefile.in (COMMON_SFILES): Update.
11893 (HFILES_NO_SRCDIR): Update.
11894
11895 2020-02-08 Tom Tromey <tom@tromey.com>
11896
11897 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11898 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11899
11900 2020-02-08 Tom Tromey <tom@tromey.com>
11901
11902 * dwarf2read.h (struct die_info): Don't declare.
11903
11904 2020-02-08 Tom Tromey <tom@tromey.com>
11905
11906 * dwarf2read.h (die_info_ptr): Remove typedef.
11907
11908 2020-02-08 Tom Tromey <tom@tromey.com>
11909
11910 * dwarf2read.c (read_call_site_scope)
11911 (handle_data_member_location, dwarf2_add_member_fn)
11912 (mark_common_block_symbol_computed, read_common_block)
11913 (attr_to_dynamic_prop, partial_die_info::read)
11914 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11915 (dwarf2_symbol_mark_computed, set_die_type): Update.
11916 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11917 method.
11918 (attr_form_is_block): Don't declare.
11919 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11920
11921 2020-02-08 Tom Tromey <tom@tromey.com>
11922
11923 * dwarf2read.c (dwarf2_find_base_address, )
11924 (read_call_site_scope, rust_containing_type)
11925 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11926 (handle_data_member_location, dwarf2_add_member_fn)
11927 (get_alignment, read_structure_type, process_structure_scope)
11928 (mark_common_block_symbol_computed, read_common_block)
11929 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11930 (partial_die_info::read, read_attribute_value, new_symbol)
11931 (lookup_die_type, dwarf2_get_ref_die_offset)
11932 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11933 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11934 (dwarf2_symbol_mark_computed): Update.
11935 * dwarf2/attribute.h (struct attribute) <value_as_address,
11936 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11937 methods.
11938 (value_as_address, attr_form_is_section_offset)
11939 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11940 * dwarf2/attribute.c (attribute::value_as_address)
11941 (attribute::form_is_section_offset, attribute::form_is_constant)
11942 (attribute::form_is_ref): Now methods.
11943
11944 2020-02-08 Tom Tromey <tom@tromey.com>
11945
11946 * dwarf2read.c (struct attribute, DW_STRING)
11947 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11948 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11949 (attr_form_is_block, attr_form_is_section_offset)
11950 (attr_form_is_constant, attr_form_is_ref): Move.
11951 * dwarf2/attribute.h: New file.
11952 * dwarf2/attribute.c: New file, from dwarf2read.c.
11953 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11954
11955 2020-02-08 Tom Tromey <tom@tromey.com>
11956
11957 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11958 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11959 Move.
11960 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11961 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11962 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11963 abbrev.c.
11964 * dwarf2/abbrev.h: New file.
11965 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11966 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11967
11968 2020-02-08 Tom Tromey <tom@tromey.com>
11969
11970 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11971 (dwarf2_section_size, dwarf2_get_section_info)
11972 (create_signatured_type_table_from_debug_names)
11973 (create_addrmap_from_aranges, read_debug_names_from_section)
11974 (get_gdb_index_contents_from_section, read_comp_unit_head)
11975 (error_check_comp_unit_head, read_abbrev_offset)
11976 (create_debug_type_hash_table, init_cu_die_reader)
11977 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11978 (read_comp_units_from_section, create_cus_hash_table)
11979 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11980 (create_dwp_v2_section, dwarf2_rnglists_process)
11981 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11982 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11983 (read_indirect_string_from_dwz, read_addr_index_1)
11984 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11985 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11986 (fill_in_loclist_baton): Update.
11987 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11988 get_containing_section, get_bfd_owner, get_bfd_section,
11989 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11990 (dwarf2_read_section, get_section_name, get_section_file_name)
11991 (get_containing_section, get_section_bfd_owner)
11992 (get_section_bfd_section, get_section_name, get_section_file_name)
11993 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11994 declare.
11995 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11996 (dwarf2_section_info::get_bfd_owner)
11997 (dwarf2_section_info::get_bfd_section)
11998 (dwarf2_section_info::get_name)
11999 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
12000 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
12001 (dwarf2_section_info::read): Now methods.
12002 * dwarf-index-write.c (class debug_names): Update.
12003
12004 2020-02-08 Tom Tromey <tom@tromey.com>
12005
12006 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
12007 Move to dwarf2/section.h.
12008 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
12009 (get_section_bfd_section, get_section_name)
12010 (get_section_file_name, get_section_id, get_section_flags)
12011 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
12012 dwarf2/section.c.
12013 * dwarf2/section.h: New file.
12014 * dwarf2/section.c: New file, from dwarf2read.c.
12015 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
12016
12017 2020-02-08 Tom Tromey <tom@tromey.com>
12018
12019 * dwarf2read.h (read_unsigned_leb128): Don't declare.
12020 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
12021 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
12022 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
12023 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
12024 * dwarf2/leb.h: New file, from dwarf2read.c.
12025 * dwarf2/leb.c: New file, from dwarf2read.c.
12026 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
12027 Remove.
12028 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
12029 (COMMON_SFILES): Add dwarf2/leb.c.
12030
12031 2020-02-08 Joel Brobecker <brobecker@adacore.com>
12032
12033 GDB 9.1 released.
12034
12035 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12036
12037 PR gdb/25190:
12038 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
12039 * gdb/remote.c (remote_console_output): Update.
12040 * gdb/ui-file.c (fputs_unfiltered): Rename to...
12041 (ui_file_puts): ...this.
12042 * gdb/ui-file.h (ui_file_puts): Add declaration.
12043 * gdb/utils.c (emit_style_escape): Update.
12044 (flush_wrap_buffer): Update.
12045 (fputs_maybe_filtered): Update.
12046 (fputs_unfiltered): Add function.
12047
12048 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12049
12050 * gdb/event-loop.c (gdb_wait_for_event): Update.
12051 * gdb/printcmd.c (printf_command): Update.
12052 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
12053 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
12054 (gdb_os_flush_stderr): Update.
12055 * gdb/remote.c (remote_console_output): Update.
12056 * gdb/ui-file.c (gdb_flush): Rename to...
12057 (ui_file_flush): ...this.
12058 (stderr_file::write): Update.
12059 (stderr_file::puts): Update.
12060 * gdb/ui-file.h (gdb_flush): Rename to...
12061 (ui_file_flush): ...this.
12062 * gdb/utils.c (gdb_flush): Add function.
12063 * gdb/utils.h (gdb_flush): Add declaration.
12064
12065 2020-02-07 Tom Tromey <tromey@adacore.com>
12066
12067 PR breakpoints/24915:
12068 * source.c (find_and_open_source): Do not check basenames_may_differ.
12069
12070 2020-02-07 Tom Tromey <tom@tromey.com>
12071
12072 * README: Update gdbserver documentation.
12073 * gdbserver: Move to top level.
12074 * configure.tgt (build_gdbserver): Remove.
12075 * configure.ac: Remove --enable-gdbserver.
12076 * configure: Rebuild.
12077 * Makefile.in (distclean): Don't mention gdbserver.
12078
12079 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
12080
12081 * source-cache.c (source_cache::ensure): Surround
12082 get_plain_source_lines with a try/catch.
12083 (source_cache::get_line_charpos): Get rid of try/catch
12084 and only check for the return value of "ensure".
12085 * tui/tui-source.c (tui_source_window::set_contents):
12086 Simplify "nlines" calculation.
12087
12088 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
12089
12090 * MAINTAINERS (Write After Approval): Add myself.
12091
12092 2020-02-05 Christian Biesinger <cbiesinger@google.com>
12093
12094 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
12095 function call.
12096
12097 2020-02-05 Christian Biesinger <cbiesinger@google.com>
12098
12099 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
12100
12101 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
12102
12103 * nat/riscv-linux-tdesc.h: New file.
12104 * nat/riscv-linux-tdesc.c: New file, taking code from...
12105 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12106 ... here.
12107 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
12108 NATDEPFILES.
12109
12110 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
12111
12112 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
12113 we don't set the fake simulator ptid to the null_ptid.
12114
12115 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
12116
12117 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
12118 * gdbthread.h (class thread_info) <resumed>: Likewise.
12119 * infrun.c (resume_1): Likewise.
12120 (proceed): Likewise.
12121 (infrun_thread_stop_requested): Likewise.
12122 (stop_all_threads): Likewise.
12123 (handle_inferior_event): Likewise.
12124 (restart_threads): Likewise.
12125 (finish_step_over): Likewise.
12126 (keep_going_stepped_thread): Likewise.
12127 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
12128 (linux_handle_extended_wait): Likewise.
12129 * record-btrace.c (get_thread_current_frame_id): Likewise.
12130 * record-full.c (record_full_wait_1): Likewise.
12131 * remote.c (remote_target::process_initial_stop_replies): Likewise.
12132 * target.c (target_resume): Likewise.
12133 * thread.c (set_running_thread): Likewise.
12134
12135 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12136
12137 * f-valprint.c (f77_print_array_1): Changed datatype of index
12138 variable to LONGEST from int to enable it to contain bound
12139 values correctly.
12140
12141 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
12142
12143 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12144 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12145 offsets according to FLEN determined.
12146 (riscv_linux_nat_target::read_description): Determine FLEN
12147 dynamically.
12148 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12149 according to FLEN determined.
12150 (riscv_linux_nat_target::store_registers): Likewise.
12151
12152 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12153
12154 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12155 when reg->group is empty and reggroup is not.
12156
12157 2020-01-31 Tom Tromey <tromey@adacore.com>
12158
12159 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12160 Call beneath target's mourn_inferior after unpushing.
12161
12162 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12163
12164 PR tui/9765
12165 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12166 have enough lines to fill the screen, still return the lowest
12167 address we found.
12168
12169 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12170
12171 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12172 '-', '<', and '>' commands.
12173
12174 2020-01-29 Pedro Alves <palves@redhat.com>
12175 Sergio Durigan Junior <sergiodj@redhat.com>
12176
12177 * infcmd.c (construct_inferior_arguments): Assert that
12178 'argc' is greater than 0.
12179
12180 2020-01-29 Luis Machado <luis.machado@linaro.org>
12181
12182 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12183 (BRK_INSN_MASK): Define to 0xd4200000.
12184 (aarch64_program_breakpoint_here_p): New function.
12185 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12186 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12187 breakpoint.c.
12188 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12189 breakpoint.h
12190 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12191 call gdbarch_program_breakpoint_here_p.
12192 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12193 default_program_breakpoint_here_p, changed return type to bool and
12194 simplified.
12195 * breakpoint.h (program_breakpoint_here): Moved prototype to
12196 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12197 return type to bool.
12198 * gdbarch.c: Regenerate.
12199 * gdbarch.h: Regenerate.
12200 * gdbarch.sh (program_breakpoint_here_p): New method.
12201 * infrun.c (handle_signal_stop): Call
12202 gdbarch_program_breakpoint_here_p.
12203
12204 2020-01-26 Tom Tromey <tom@tromey.com>
12205
12206 * ctfread.c (struct ctf_fp_info): Reindent.
12207 (_initialize_ctfread): Remove.
12208
12209 2020-01-26 Tom Tromey <tom@tromey.com>
12210
12211 * psymtab.c (partial_map_expand_apply)
12212 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12213 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12214 (psym_print_stats, psym_expand_symtabs_for_function)
12215 (psym_map_symbol_filenames, psym_map_matching_symbols)
12216 (psym_expand_symtabs_matching)
12217 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12218 (maintenance_check_psymtabs): Use new methods.
12219 * psympriv.h (struct partial_symtab) <readin_p,
12220 get_compunit_symtab>: New methods.
12221 <readin, compunit_symtab>: Remove members.
12222 (struct standard_psymtab): New.
12223 (struct legacy_psymtab): Derive from standard_psymtab.
12224 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12225 standard_psymtab.
12226 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12227
12228 2020-01-26 Tom Tromey <tom@tromey.com>
12229
12230 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12231 read_dependencies. Add assert.
12232 * psymtab.c (partial_symtab::read_dependencies): New method.
12233 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12234 method.
12235 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12236 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12237 read_dependencies.
12238 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12239 Add assert.
12240
12241 2020-01-26 Tom Tromey <tom@tromey.com>
12242
12243 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12244 Call expand_psymtab.
12245 (xcoff_read_symtab): Call expand_psymtab.
12246 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12247 legacy_expand_psymtab.
12248 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12249 method.
12250 (struct legacy_psymtab) <expand_psymtab>: Implement.
12251 <legacy_expand_psymtab>: New member.
12252 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12253 (parse_partial_symbols): Set legacy_expand_psymtab.
12254 (psymtab_to_symtab_1): Change argument order. Call
12255 expand_psymtab.
12256 (new_psymtab): Set legacy_expand_psymtab.
12257 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12258 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12259 expand_psymtab.
12260 (dwarf2_psymtab::expand_psymtab): Rename from
12261 psymtab_to_symtab_1. Call expand_psymtab.
12262 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12263 (dbx_end_psymtab): Likewise.
12264 (dbx_psymtab_to_symtab_1): Change argument order. Call
12265 expand_psymtab.
12266 (dbx_read_symtab): Call expand_psymtab.
12267 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12268 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12269 (ctf_psymtab::read_symtab): Call expand_psymtab.
12270
12271 2020-01-26 Tom Tromey <tom@tromey.com>
12272
12273 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12274 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12275 messages.
12276 * mdebugread.c (mdebug_read_symtab): Remove prints.
12277 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12278 assert.
12279 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12280
12281 2020-01-26 Tom Tromey <tom@tromey.com>
12282
12283 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12284 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12285 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12286 legacy_symtab.
12287 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12288 * psymtab.c (psymtab_to_symtab): Call method.
12289 (dump_psymtab): Update.
12290 * psympriv.h (struct partial_symtab): Add virtual destructor.
12291 <read_symtab>: New method.
12292 (struct legacy_symtab): New.
12293 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12294 (struct pst_map) <pst>: Now a legacy_psymtab.
12295 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12296 (new_psymtab): Use legacy_psymtab.
12297 * dwarf2read.h (struct dwarf2_psymtab): New.
12298 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12299 * dwarf2read.c (dwarf2_create_include_psymtab)
12300 (dwarf2_build_include_psymtabs, create_type_unit_group)
12301 (create_partial_symtab, process_psymtab_comp_unit_reader)
12302 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12303 (set_partial_user): Use dwarf2_psymtab.
12304 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12305 (psymtab_to_symtab_1, process_full_comp_unit)
12306 (process_full_type_unit, dwarf2_ranges_read)
12307 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12308 (dwarf_decode_lines): Use dwarf2_psymtab.
12309 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12310 (add_address_entry_worker, write_one_signatured_type)
12311 (recursively_count_psymbols, recursively_write_psymbols)
12312 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12313 (write_debug_names): Likewise.
12314 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12315 <pst>: Now a legacy_psymtab.
12316 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12317 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12318 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12319 * ctfread.c (struct ctf_psymtab): New.
12320 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12321 ctf_psymtab.
12322 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12323 (create_partial_symtab): Return a ctf_psymtab.
12324 (scan_partial_symbols): Update.
12325
12326 2020-01-26 Tom Tromey <tom@tromey.com>
12327
12328 * xcoffread.c (xcoff_start_psymtab): Use new.
12329 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12330 renamed from start_psymtab_common.
12331 * psympriv.h (struct partial_symtab): Add new constructor.
12332 (start_psymtab_common): Don't declare.
12333 * mdebugread.c (parse_partial_symbols): Use new.
12334 * dwarf2read.c (create_partial_symtab): Use new.
12335 * dbxread.c (start_psymtab): Use new.
12336 * ctfread.c (create_partial_symtab): Use new.
12337
12338 2020-01-26 Tom Tromey <tom@tromey.com>
12339
12340 * xcoffread.c (xcoff_end_psymtab): Use new.
12341 * psymtab.c (start_psymtab_common): Use new.
12342 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12343 Update.
12344 * psympriv.h (struct partial_symtab): Add parameters to
12345 constructor. Don't inline.
12346 (allocate_psymtab): Don't declare.
12347 * mdebugread.c (new_psymtab): Use new.
12348 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12349 * dbxread.c (dbx_end_psymtab): Use new.
12350
12351 2020-01-26 Tom Tromey <tom@tromey.com>
12352
12353 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12354 allocate_psymtab. Update documentation.
12355 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12356 allocate_psymtab. Do not use new.
12357 (allocate_psymtab): Use new. Update.
12358
12359 2020-01-26 Tom Tromey <tom@tromey.com>
12360
12361 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12362 * psymtab.c (psym_print_stats): Update.
12363 * psympriv.h (struct partial_symtab) <readin,
12364 psymtabs_addrmap_supported, anonymous>: Now bool.
12365 * mdebugread.c (psymtab_to_symtab_1): Update.
12366 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12367 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12368 (process_full_comp_unit, process_full_type_unit): Update.
12369 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12370 * ctfread.c (psymtab_to_symtab): Update.
12371
12372 2020-01-26 Tom Tromey <tom@tromey.com>
12373
12374 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12375 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12376 * psymtab.c (psymtab_storage): Delete psymtabs.
12377 (psymtab_storage::allocate_psymtab): Use new.
12378 (psymtab_storage::discard_psymtab): Use delete.
12379 * psympriv.h (struct partial_symtab): Add constructor and
12380 initializers.
12381
12382 2020-01-26 Tom Tromey <tom@tromey.com>
12383
12384 * machoread.c: Do not include psympriv.h.
12385
12386 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12387
12388 * NEWS: Mention the new option and the set/show commands.
12389
12390 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12391
12392 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12393 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12394 (validate_exec_file): New variables, enums, functions.
12395 (exec_file_locate_attach, print_section_info): Style the filenames.
12396 (_initialize_exec): Install show_exec_file_mismatch_command and
12397 set_exec_file_mismatch_command.
12398 * gdbcore.h (validate_exec_file): Declare.
12399 * infcmd.c (attach_command): Call validate_exec_file.
12400 * remote.c ( remote_target::remote_add_inferior): Likewise.
12401
12402 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12403
12404 * frame.c (find_frame_sal): Move call to get_next_frame into more
12405 inner scope.
12406 * inline-frame.c (inilne_state) <inline_state>: Update argument
12407 types.
12408 (inilne_state) <skipped_symbol>: Rename to...
12409 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12410 (skip_inline_frames): Build vector of skipped symbols and use this
12411 to reate the inline_state.
12412 (inline_skipped_symbol): Add a comment and some assertions, fetch
12413 skipped symbol from the list.
12414
12415 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12416
12417 * buildsym.c (lte_is_less_than): Delete.
12418 (buildsym_compunit::end_symtab_with_blockvector): Create local
12419 lambda function to sort line table entries, and use
12420 std::stable_sort instead of std::sort.
12421 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12422 markers when looking for a previous line.
12423
12424 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12425
12426 * dwarf2read.c (lnp_state_machine::record_line): Include
12427 end_sequence parameter in debug print out. Record the line if we
12428 are at an end_sequence marker even if it's not the start of a
12429 statement.
12430 * symmisc.c (maintenance_print_one_line_table): Print end of
12431 sequence markers with 'END' not '0'.
12432
12433 2020-01-24 Pedro Alves <palves@redhat.com>
12434
12435 PR gdb/25410
12436 * thread.c (scoped_restore_current_thread::restore): Use
12437 switch_to_inferior_no_thread.
12438 * exec.c: Include "progspace-and-thread.h".
12439 (add_target_sections, remove_target_sections):
12440 scoped_restore_current_pspace_and_thread instead of
12441 scoped_restore_current_thread.
12442 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12443 and aspace to the inferior before calling clone_program_space.
12444 Remove stale comment.
12445
12446 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12447
12448 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12449 (arm_netbsd_nat_target::fetch_registers): ...this.
12450 (arm_nbsd_nat_target::store_registers): Rename to...
12451 (arm_netbsd_nat_target::store_registers): ...this.
12452
12453 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12454
12455 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12456 register_t.
12457
12458 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12459
12460 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12461 Update comment.
12462 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12463 Likewise.
12464 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12465 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12466 the correct replacement (iterate_over_regset_sections).
12467 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12468 Update comment.
12469
12470 2020-01-24 Graham Markall <graham.markall@embecosm.com>
12471
12472 PR gdb/23718
12473 * gdb/python/python.c (execute_gdb_command): Call
12474 async_enable_stdin in catch block.
12475
12476 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12477
12478 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12479 SWITCH_THRU_ALL_UIS.
12480
12481 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12482
12483 PR tui/9765
12484 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12485 comment, add extra parameter, and update to store previous symbol
12486 when appropriate.
12487 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12488 add extra parameter.
12489 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12490 remove unneeded parameter, add try/catch around gdb_print_insn,
12491 rewrite to add items to asm_lines vector.
12492 (tui_find_backward_disassembly_start_address): New function.
12493 (tui_find_disassembly_address): Updated throughout.
12494 (tui_disasm_window::set_contents): Update for changes to
12495 tui_disassemble.
12496 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12497 number of lines to scroll.
12498
12499 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12500
12501 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12502 (SECT_OFF_DATA): Likewise.
12503 (SECT_OFF_RODATA): Likewise.
12504 (SECT_OFF_TEXT): Likewise.
12505 (SECT_OFF_BSS): Likewise.
12506 (struct objfile) <text_section_offset, data_section_offset>: New
12507 methods.
12508 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12509 objfile::text_section_offset.
12510 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12511 * coffread.c (coff_symtab_read): Likewise.
12512 (enter_linenos): Likewise.
12513 (process_coff_symbol): Likewise.
12514 * ctfread.c (get_objfile_text_range): Likewise.
12515 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12516 Use objfile::data_section_offset.
12517 * dwarf2-frame.c (execute_cfa_program): Use
12518 objfile::text_section_offset.
12519 (dwarf2_frame_find_fde): Likewise.
12520 * dwarf2read.c (create_addrmap_from_index): Likewise.
12521 (create_addrmap_from_aranges): Likewise.
12522 (dw2_find_pc_sect_compunit_symtab): Likewise.
12523 (process_psymtab_comp_unit_reader): Likewise.
12524 (add_partial_symbol): Likewise.
12525 (add_partial_subprogram): Likewise.
12526 (process_full_comp_unit): Likewise.
12527 (read_file_scope): Likewise.
12528 (read_func_scope): Likewise.
12529 (read_lexical_block_scope): Likewise.
12530 (read_call_site_scope): Likewise.
12531 (dwarf2_rnglists_process): Likewise.
12532 (dwarf2_ranges_process): Likewise.
12533 (dwarf2_ranges_read): Likewise.
12534 (dwarf_decode_lines_1): Likewise.
12535 (new_symbol): Likewise.
12536 (dwarf2_fetch_die_loc_sect_off): Likewise.
12537 (dwarf2_per_cu_text_offset): Likewise.
12538 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12539 * hppa-tdep.c (read_unwind_info): Likewise.
12540 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12541 * psympriv.h (struct partial_symtab): Likewise.
12542 * psymtab.c (find_pc_sect_psymtab): Likewise.
12543 * solib-svr4.c (enable_break): Likewise.
12544 * stap-probe.c (relocate_address): Use
12545 objfile::data_section_offset.
12546 * xcoffread.c (enter_line_range): Use
12547 objfile::text_section_offset.
12548 (read_xcoff_symtab): Likewise.
12549
12550 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
12551
12552 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12553 declaration to narrower scopes.
12554
12555 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
12556
12557 * darwin-nat.h (struct darwin_exception_msg, enum
12558 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12559 Move up.
12560 (class darwin_nat_target) <wait_1, check_new_threads,
12561 decode_exception_message, decode_message, stop_inferior,
12562 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12563 * darwin-nat.c (darwin_check_new_threads): Rename to...
12564 (darwin_nat_target::check_new_threads): ... this.
12565 (darwin_suspend_inferior_it): Remove.
12566 (darwin_decode_exception_message): Rename to...
12567 (darwin_nat_target::decode_exception_message): ... this.
12568 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12569 (darwin_decode_message): Rename to...
12570 (darwin_nat_target::decode_message): ... this.
12571 (cancel_breakpoint): Rename to...
12572 (darwin_nat_target::cancel_breakpoint): ... this.
12573 (darwin_wait): Rename to...
12574 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12575 instead of iterate_over_inferiors.
12576 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12577 (darwin_stop_inferior): Rename to...
12578 (darwin_nat_target::stop_inferior): ... this.
12579 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12580 (darwin_init_thread_list): Rename to...
12581 (darwin_nat_target::init_thread_list): ... this.
12582 (darwin_ptrace_him): Rename to...
12583 (darwin_nat_target::ptrace_him): ... this.
12584 (darwin_nat_target::create_inferior): Pass lambda function to
12585 fork_inferior.
12586 (darwin_nat_target::detach): Call stop_inferior instead of
12587 darwin_stop_inferior.
12588 * fork-inferior.h (fork_inferior): Change init_trace_fun
12589 parameter to gdb::function_view.
12590 * fork-inferior.c (fork_inferior): Likewise.
12591
12592 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
12593
12594 * i386-cygwin-tdep.c (core_process_module_section): Update.
12595 * windows-nat.c (struct lm_info_windows): Add text_offset.
12596 (windows_xfer_shared_libraries): Update.
12597 * windows-tdep.c (windows_xfer_shared_library):
12598 Add text_offset_cached argument.
12599 * windows-tdep.h (windows_xfer_shared_library): Update.
12600
12601 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12602
12603 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12604
12605 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12606
12607 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12608 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12609 replace with range-based for.
12610 (gdbsim_interrupt_inferior): Remove.
12611 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12612 with a range-based for. Inline code from
12613 gdbsim_interrupt_inferior.
12614
12615 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12616
12617 * infrun.c (proceed): Fix indentation.
12618
12619 2020-01-21 Tom Tromey <tromey@adacore.com>
12620
12621 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12622 * python/python.c (python_extension_ops): Update.
12623 (gdbpy_colorize): New function.
12624 * python/lib/gdb/__init__.py (colorize): New function.
12625 * extension.h (ext_lang_colorize): Declare.
12626 * extension.c (ext_lang_colorize): New function.
12627 * extension-priv.h (struct extension_language_ops) <colorize>: New
12628 member.
12629 * cli/cli-style.c (_initialize_cli_style): Update help text.
12630
12631 2020-01-21 Luis Machado <luis.machado@linaro.org>
12632
12633 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12634 <cond>: Change type to bool.
12635 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12636 (aarch64_displaced_step_cb): Likewise.
12637 (aarch64_displaced_step_tb): Likewise.
12638
12639 2020-01-21 Luis Machado <luis.machado@linaro.org>
12640
12641 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12642 output.
12643
12644 2020-01-21 Luis Machado <luis.machado@linaro.org>
12645
12646 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12647 <pc_adjust>: Adjust the documentation.
12648 (aarch64_displaced_step_fixup): Check if PC really moved before
12649 adjusting it.
12650
12651 2020-01-19 Tom Tromey <tom@tromey.com>
12652
12653 * disasm.c (~gdb_disassembler): New destructor.
12654 (gdb_buffered_insn_length): Call disassemble_free_target.
12655 * disasm.h (class gdb_disassembler): Declare destructor. Use
12656 DISABLE_COPY_AND_ASSIGN.
12657
12658 2020-01-19 Tom Tromey <tom@tromey.com>
12659
12660 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12661 (die_reader_func_ftype): Remove.
12662 (cutu_reader): New class.
12663 (dw2_get_file_names_reader): Remove "data" parameter.
12664 (dw2_get_file_names): Use cutu_reader.
12665 (create_debug_type_hash_table): Update.
12666 (read_cutu_die_from_dwo): Update comment.
12667 (lookup_dwo_unit): Add dwo_name parameter.
12668 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12669 die_reader_func_ftype and data parameters.
12670 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12671 Remove die_reader_func_ftype and data parameters.
12672 (~cutu_reader): New; from init_cutu_and_read_dies.
12673 (cutu_reader::cutu_reader): Rename from
12674 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12675 and data parameters.
12676 (init_cutu_and_read_dies_simple): Remove.
12677 (struct process_psymtab_comp_unit_data): Remove.
12678 (process_psymtab_comp_unit_reader): Remove data parameter; add
12679 want_partial_unit and pretend_language parameters.
12680 (process_psymtab_comp_unit): Use cutu_reader.
12681 (build_type_psymtabs_reader): Remove data parameter.
12682 (build_type_psymtabs_1): Use cutu_reader.
12683 (process_skeletonless_type_unit): Likewise.
12684 (load_partial_comp_unit_reader): Remove.
12685 (load_partial_comp_unit): Use cutu_reader.
12686 (load_full_comp_unit_reader): Remove.
12687 (load_full_comp_unit): Use cutu_reader.
12688 (struct create_dwo_cu_data): Remove.
12689 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12690 dwo_unit parameters.
12691 (create_cus_hash_table): Use cutu_reader.
12692 (struct dwarf2_read_addr_index_data): Remove.
12693 (dwarf2_read_addr_index_reader): Remove.
12694 (dwarf2_read_addr_index): Use cutu_reader.
12695 (read_signatured_type_reader): Remove.
12696 (read_signatured_type): Use cutu_reader.
12697
12698 2020-01-19 Tom Tromey <tom@tromey.com>
12699
12700 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12701 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12702 (tui_wrefresh): Declare.
12703 * tui/tui-wingeneral.c (suppress_output): New global.
12704 (tui_suppress_output, ~tui_suppress_output): New constructor and
12705 destructor.
12706 (tui_wrefresh): New function.
12707 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12708 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12709 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12710 method.
12711 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12712 tui_wrefresh.
12713 (tui_data_window::no_refresh): New method.
12714 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12715 (tui_reg_command): Use tui_suppress_output
12716 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12717 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12718 method.
12719 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12720
12721 2020-01-19 Tom Tromey <tom@tromey.com>
12722
12723 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12724 Handle case where symtab is null.
12725
12726 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12727
12728 * linux-fork.c (one_fork_p): Simplify.
12729
12730 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12731
12732 * top.c (struct qt_args): Remove.
12733 (kill_or_detach): Change return type to void, replace `void *`
12734 parameter with a proper one.
12735 (print_inferior_quit_action): Likewise.
12736 (quit_confirm): Use range-based for loop to iterate over inferiors.
12737 (quit_force): Likewise.
12738
12739 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12740
12741 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12742 `void *` parameter with proper parameters.
12743 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12744 (print_one_inferior): Change return type to void, replace `void *`
12745 parameter with proper parameters.
12746 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12747 inferiors.
12748 (get_other_inferior): Remove.
12749 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12750 inferiors.
12751
12752 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12753
12754 * mi/mi-interp.c (report_initial_inferior): Remove.
12755 (mi_interp::init): Use range-based for to iterate over inferiors.
12756
12757 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12758
12759 * python/py-inferior.c (build_inferior_list): Remove.
12760 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12761
12762 2020-01-16 Christian Biesinger <cbiesinger@google.com>
12763
12764 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12765 (btrace_stitch_trace): Likewise.
12766 * charset.c (intermediate_encoding): Likewise (vaild).
12767 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12768 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12769 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12770
12771 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
12772
12773 * windows-tdep.c (windows_get_tlb_type):
12774 Add rtl_user_process_parameters type.
12775
12776 2020-01-16 Pedro Alves <palves@redhat.com>
12777 Norbert Lange <nolange79@gmail.com>
12778
12779 PR build/24805
12780 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12781 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12782 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12783 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12784 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12785 (ps_plog): Redeclare exported functions with default visibility.
12786
12787 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12788
12789 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12790 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12791
12792 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
12793
12794 * infcmd.c (post_create_inferior): Use get_thread_regcache
12795 instead of get_current_regcache.
12796
12797 2020-01-14 Tom Tromey <tom@tromey.com>
12798
12799 PR symtab/12535:
12800 * python/python.c (gdbpy_decode_line): Treat empty string the same
12801 as no argument.
12802
12803 2020-01-14 Tom Tromey <tom@tromey.com>
12804
12805 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
12806
12807 2020-01-14 Tom Tromey <tom@tromey.com>
12808
12809 * nat/linux-btrace.c: Don't include <config.h>.
12810 * nat/linux-ptrace.c: Don't include <config.h>.
12811 * nat/x86-linux-dregs.c: Don't include <config.h>.
12812
12813 2020-01-14 Tom Tromey <tom@tromey.com>
12814
12815 * configure: Rebuild.
12816 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12817
12818 2020-01-14 Tom Tromey <tom@tromey.com>
12819
12820 * nat/x86-linux-dregs.c: Include configh.h.
12821 * nat/linux-ptrace.c: Include configh.h.
12822 * nat/linux-btrace.c: Include configh.h.
12823 * defs.h: Include config.h, bfd.h.
12824 * configure.ac: Don't source common.host.
12825 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
12826 * configure: Rebuild.
12827 * acinclude.m4: Update path.
12828 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
12829 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
12830 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
12831 (CLIBS): Add LIBSUPPORT.
12832 (CDEPS): Likewise.
12833 (COMMON_SFILES): Remove gdbsupport files.
12834 (HFILES_NO_SRCDIR): Likewise.
12835 (stamp-version): Update path to create-version.sh.
12836 (ALLDEPFILES): Remove gdbsupport files.
12837
12838 2020-01-14 Tom Tromey <tom@tromey.com>
12839
12840 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
12841 USE_WIN32API when needed.
12842 * configure.ac (USE_WIN32API): Don't define.
12843 (WIN32LIBS): Use WIN32APILIBS.
12844 * configure: Rebuild.
12845
12846 2020-01-14 Tom Tromey <tom@tromey.com>
12847
12848 * configure: Rebuild.
12849 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
12850
12851 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12852
12853 * skip.c (skip_function_command): Make skip w/o arguments use the
12854 name of the inlined function if pc is inside any inlined function.
12855
12856 2020-01-14 Luis Machado <luis.machado@linaro.org>
12857
12858 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
12859 * infrun.c (resume_1): Likewise.
12860 (handle_inferior_event): Remove stale comment.
12861 * linux-nat.c (linux_nat_target::resume): Update comments.
12862 (save_stop_reason): Likewise.
12863 (linux_nat_filter_event): Likewise.
12864 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12865
12866 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12867
12868 * elfread.c (record_minimal_symbol): Set section index to 0 for
12869 non-allocatable sections.
12870
12871
12872 2020-01-13 Ali Tamur <tamur@google.com>
12873
12874 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12875 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12876 to gdb::optional. Update comments.
12877 (dwo_file): Update comments.
12878 (read_attribute): Update API to take an additional out parameter,
12879 need_reprocess. This is used to mark attributes that need other
12880 attributes (e.g. str_offsets_base) for correct computation which may not
12881 have been read yet.
12882 (read_attribute_reprocess): New function declaration.
12883 (read_addr_index): Likewise.
12884 (read_dwo_str_index): Likewise.
12885 (read_stub_str_index): Likewise.
12886 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12887 (lookup_addr_base): New function definition.
12888 (lookup_ranges_base): Likewise.
12889 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12890 lookup_ranges_base.
12891 (init_cutu_and_read_dies): Update comments.
12892 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12893 unit. This is used to inherit parent's str_offsets_base and addr_base.
12894 Update comments.
12895 (init_cutu_and_read_dies_simple): Reflect API changes.
12896 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12897 (create_cus_hash_table): Change API to take parent compile unit.
12898 Reflect API changes.
12899 (open_and_init_dwo_file): Reflect API changes.
12900 (dwarf2_get_pc_bounds): Update comments.
12901 (dwarf2_record_block_ranges): Likewise.
12902 (read_full_die_1): Change implementation to reprocess attributes that
12903 need str_offsets_base and addr_base.
12904 (partial_die_info::read): Likewise.
12905 (read_attribute_reprocess): New function definition.
12906 (read_attribute_value): Change API to take an additional out parameter,
12907 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12908 when a non-dwo compile unit has index based attributes.
12909 (read_attribute): Reflect API changes.
12910 (read_addr_index_1): Reflect API changes. Update comments.
12911 (dwarf2_read_addr_index_data): Reflect API changes.
12912 (dwarf2_read_addr_index): Likewise.
12913 (read_str_index): Change API and implementation. This becomes a helper
12914 to be used by the new string index related methods. Update error
12915 message and comments.
12916 (read_dwo_str_index): New function definition.
12917 (read_stub_str_index): Likewise.
12918 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12919 * symfile.h (dwarf2_debug_sections): Likewise.
12920 * xcoffread.c (dwarf2_debug_sections): Likewise.
12921
12922 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12923
12924 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12925 core_reg_sect type to gdb_byte *.
12926 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12927 * cris-tdep.c (fetch_core_registers): Likewise.
12928 * corelow.c (core_target::get_core_register_section): Change
12929 type of `contents` to gdb::byte_vector.
12930
12931 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12932
12933 * tui/tui-wingeneral.c (box_win): Position the title in the center
12934 of the border.
12935
12936 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12937
12938 * corelow.c (core_target::get_core_register_section): Use
12939 std::vector instead of alloca.
12940
12941 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12942
12943 * warning.m4: Add -Wmissing-declarations to build_warnings.
12944 * configure: Re-generate.
12945
12946 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12947
12948 * python/python.c (init__gdb_module): Add declaration.
12949
12950 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12951
12952 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12953 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12954 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12955 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12956 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12957 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12958 * ada-exp.y (_initialize_ada_exp): Add declaration.
12959 * ada-lang.c (_initialize_ada_language): Add declaration.
12960 * ada-tasks.c (_initialize_tasks): Add declaration.
12961 * agent.c (_initialize_agent): Add declaration.
12962 * aix-thread.c (_initialize_aix_thread): Add declaration.
12963 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12964 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12965 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12966 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12967 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12968 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12969 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12970 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12971 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12972 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12973 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12974 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12975 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12976 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12977 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12978 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12979 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12980 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12981 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12982 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12983 * annotate.c (_initialize_annotate): Add declaration.
12984 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12985 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12986 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12987 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12988 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12989 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12990 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12991 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12992 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12993 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12994 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12995 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12996 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12997 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12998 * auto-load.c (_initialize_auto_load): Add declaration.
12999 * auxv.c (_initialize_auxv): Add declaration.
13000 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
13001 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
13002 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
13003 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
13004 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
13005 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
13006 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
13007 * breakpoint.c (_initialize_breakpoint): Add declaration.
13008 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
13009 * btrace.c (_initialize_btrace): Add declaration.
13010 * charset.c (_initialize_charset): Add declaration.
13011 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
13012 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
13013 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
13014 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
13015 * cli/cli-script.c (_initialize_cli_script): Add declaration.
13016 * cli/cli-style.c (_initialize_cli_style): Add declaration.
13017 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
13018 * coffread.c (_initialize_coffread): Add declaration.
13019 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
13020 * compile/compile.c (_initialize_compile): Add declaration.
13021 * complaints.c (_initialize_complaints): Add declaration.
13022 * completer.c (_initialize_completer): Add declaration.
13023 * copying.c (_initialize_copying): Add declaration.
13024 * corefile.c (_initialize_core): Add declaration.
13025 * corelow.c (_initialize_corelow): Add declaration.
13026 * cp-abi.c (_initialize_cp_abi): Add declaration.
13027 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
13028 * cp-support.c (_initialize_cp_support): Add declaration.
13029 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
13030 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
13031 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
13032 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
13033 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
13034 * ctfread.c (_initialize_ctfread): Add declaration.
13035 * d-lang.c (_initialize_d_language): Add declaration.
13036 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
13037 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
13038 * dbxread.c (_initialize_dbxread): Add declaration.
13039 * dcache.c (_initialize_dcache): Add declaration.
13040 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
13041 * disasm.c (_initialize_disasm): Add declaration.
13042 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
13043 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
13044 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
13045 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
13046 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
13047 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
13048 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
13049 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
13050 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
13051 * elfread.c (_initialize_elfread): Add declaration.
13052 * exec.c (_initialize_exec): Add declaration.
13053 * extension.c (_initialize_extension): Add declaration.
13054 * f-lang.c (_initialize_f_language): Add declaration.
13055 * f-valprint.c (_initialize_f_valprint): Add declaration.
13056 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
13057 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
13058 * filesystem.c (_initialize_filesystem): Add declaration.
13059 * findcmd.c (_initialize_mem_search): Add declaration.
13060 * findvar.c (_initialize_findvar): Add declaration.
13061 * fork-child.c (_initialize_fork_child): Add declaration.
13062 * frame-base.c (_initialize_frame_base): Add declaration.
13063 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
13064 * frame.c (_initialize_frame): Add declaration.
13065 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
13066 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
13067 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
13068 * gcore.c (_initialize_gcore): Add declaration.
13069 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
13070 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
13071 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
13072 * gdbarch.c (_initialize_gdbarch): Add declaration.
13073 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
13074 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
13075 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
13076 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
13077 * go-lang.c (_initialize_go_language): Add declaration.
13078 * go32-nat.c (_initialize_go32_nat): Add declaration.
13079 * guile/guile.c (_initialize_guile): Add declaration.
13080 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
13081 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
13082 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
13083 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
13084 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
13085 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
13086 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
13087 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
13088 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
13089 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
13090 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
13091 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
13092 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
13093 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
13094 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
13095 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
13096 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
13097 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
13098 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
13099 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
13100 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
13101 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
13102 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
13103 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
13104 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
13105 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
13106 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
13107 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
13108 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
13109 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
13110 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
13111 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
13112 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
13113 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
13114 * infcall.c (_initialize_infcall): Add declaration.
13115 * infcmd.c (_initialize_infcmd): Add declaration.
13116 * inflow.c (_initialize_inflow): Add declaration.
13117 * infrun.c (_initialize_infrun): Add declaration.
13118 * interps.c (_initialize_interpreter): Add declaration.
13119 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
13120 * jit.c (_initialize_jit): Add declaration.
13121 * language.c (_initialize_language): Add declaration.
13122 * linux-fork.c (_initialize_linux_fork): Add declaration.
13123 * linux-nat.c (_initialize_linux_nat): Add declaration.
13124 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
13125 * linux-thread-db.c (_initialize_thread_db): Add declaration.
13126 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
13127 * m2-lang.c (_initialize_m2_language): Add declaration.
13128 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
13129 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
13130 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
13131 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
13132 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
13133 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
13134 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
13135 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
13136 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
13137 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
13138 * machoread.c (_initialize_machoread): Add declaration.
13139 * macrocmd.c (_initialize_macrocmd): Add declaration.
13140 * macroscope.c (_initialize_macroscope): Add declaration.
13141 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13142 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13143 * maint.c (_initialize_maint_cmds): Add declaration.
13144 * mdebugread.c (_initialize_mdebugread): Add declaration.
13145 * memattr.c (_initialize_mem): Add declaration.
13146 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13147 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13148 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13149 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13150 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13151 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13152 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13153 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13154 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13155 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13156 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13157 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13158 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13159 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13160 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13161 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13162 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13163 * mipsread.c (_initialize_mipsread): Add declaration.
13164 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13165 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13166 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13167 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13168 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13169 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13170 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13171 * nto-procfs.c (_initialize_procfs): Add declaration.
13172 * objc-lang.c (_initialize_objc_language): Add declaration.
13173 * observable.c (_initialize_observer): Add declaration.
13174 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13175 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13176 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13177 * osabi.c (_initialize_gdb_osabi): Add declaration.
13178 * osdata.c (_initialize_osdata): Add declaration.
13179 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13180 * parse.c (_initialize_parse): Add declaration.
13181 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13182 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13183 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13184 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13185 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13186 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13187 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13188 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13189 * printcmd.c (_initialize_printcmd): Add declaration.
13190 * probe.c (_initialize_probe): Add declaration.
13191 * proc-api.c (_initialize_proc_api): Add declaration.
13192 * proc-events.c (_initialize_proc_events): Add declaration.
13193 * proc-service.c (_initialize_proc_service): Add declaration.
13194 * procfs.c (_initialize_procfs): Add declaration.
13195 * producer.c (_initialize_producer): Add declaration.
13196 * psymtab.c (_initialize_psymtab): Add declaration.
13197 * python/python.c (_initialize_python): Add declaration.
13198 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13199 * record-btrace.c (_initialize_record_btrace): Add declaration.
13200 * record-full.c (_initialize_record_full): Add declaration.
13201 * record.c (_initialize_record): Add declaration.
13202 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13203 * regcache.c (_initialize_regcache): Add declaration.
13204 * reggroups.c (_initialize_reggroup): Add declaration.
13205 * remote-notif.c (_initialize_notif): Add declaration.
13206 * remote-sim.c (_initialize_remote_sim): Add declaration.
13207 * remote.c (_initialize_remote): Add declaration.
13208 * reverse.c (_initialize_reverse): Add declaration.
13209 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13210 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13211 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13212 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13213 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13214 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13215 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13216 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13217 Add declaration.
13218 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13219 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13220 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13221 * rust-exp.y (_initialize_rust_exp): Add declaration.
13222 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13223 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13224 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13225 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13226 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13227 * score-tdep.c (_initialize_score_tdep): Add declaration.
13228 * ser-go32.c (_initialize_ser_dos): Add declaration.
13229 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13230 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13231 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13232 * ser-uds.c (_initialize_ser_socket): Add declaration.
13233 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13234 * serial.c (_initialize_serial): Add declaration.
13235 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13236 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13237 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13238 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13239 * skip.c (_initialize_step_skip): Add declaration.
13240 * sol-thread.c (_initialize_sol_thread): Add declaration.
13241 * solib-aix.c (_initialize_solib_aix): Add declaration.
13242 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13243 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13244 * solib-frv.c (_initialize_frv_solib): Add declaration.
13245 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13246 * solib-target.c (_initialize_solib_target): Add declaration.
13247 * solib.c (_initialize_solib): Add declaration.
13248 * source-cache.c (_initialize_source_cache): Add declaration.
13249 * source.c (_initialize_source): Add declaration.
13250 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13251 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13252 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13253 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13254 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13255 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13256 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13257 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13258 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13259 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13260 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13261 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13262 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13263 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13264 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13265 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13266 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13267 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13268 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13269 * stabsread.c (_initialize_stabsread): Add declaration.
13270 * stack.c (_initialize_stack): Add declaration.
13271 * stap-probe.c (_initialize_stap_probe): Add declaration.
13272 * std-regs.c (_initialize_frame_reg): Add declaration.
13273 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13274 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13275 * symfile.c (_initialize_symfile): Add declaration.
13276 * symmisc.c (_initialize_symmisc): Add declaration.
13277 * symtab.c (_initialize_symtab): Add declaration.
13278 * target.c (_initialize_target): Add declaration.
13279 * target-connection.c (_initialize_target_connection): Add
13280 declaration.
13281 * target-dcache.c (_initialize_target_dcache): Add declaration.
13282 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13283 * thread.c (_initialize_thread): Add declaration.
13284 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13285 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13286 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13287 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13288 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13289 * tracectf.c (_initialize_ctf): Add declaration.
13290 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13291 * tracefile.c (_initialize_tracefile): Add declaration.
13292 * tracepoint.c (_initialize_tracepoint): Add declaration.
13293 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13294 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13295 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13296 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13297 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13298 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13299 * tui/tui.c (_initialize_tui): Add declaration.
13300 * typeprint.c (_initialize_typeprint): Add declaration.
13301 * ui-style.c (_initialize_ui_style): Add declaration.
13302 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13303 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13304 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13305 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13306 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13307 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13308 * unittests/filtered_iterator-selftests.c
13309 (_initialize_filtered_iterator_selftests): Add declaration.
13310 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13311 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13312 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13313 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13314 * unittests/main-thread-selftests.c
13315 (_initialize_main_thread_selftests): Add declaration.
13316 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13317 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13318 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13319 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13320 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13321 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13322 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13323 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13324 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13325 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13326 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13327 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13328 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13329 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13330 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13331 declaration.
13332 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13333 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13334 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13335 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13336 * user-regs.c (_initialize_user_regs): Add declaration.
13337 * utils.c (_initialize_utils): Add declaration.
13338 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13339 * valops.c (_initialize_valops): Add declaration.
13340 * valprint.c (_initialize_valprint): Add declaration.
13341 * value.c (_initialize_values): Add declaration.
13342 * varobj.c (_initialize_varobj): Add declaration.
13343 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13344 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13345 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13346 * windows-nat.c (_initialize_windows_nat): Add declaration.
13347 (_initialize_check_for_gdb_ini): Add declaration.
13348 (_initialize_loadable): Add declaration.
13349 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13350 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13351 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13352 * xcoffread.c (_initialize_xcoffread): Add declaration.
13353 * xml-support.c (_initialize_xml_support): Add declaration.
13354 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13355 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13356 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13357 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13358
13359 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13360
13361 * regformats/regdat.sh: Generate declaration for init function.
13362
13363 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13364
13365 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13366 up.
13367 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13368 close_one_inferior>: New methods.
13369 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13370 pass down target to find_inferior_pid.
13371 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13372 Pass down target to find_inferior_ptid.
13373 (gdbsim_target::create_inferior): Pass down target to
13374 add_thread_silent.
13375 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13376 target down to find_inferior_ptid and switch_to_thread.
13377 (gdbsim_target::close): Update to call close_one_inferior.
13378 (struct resume_data): Remove.
13379 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13380 directly, rather than through a void pointer.
13381 (gdbsim_target::resume): Update to call resume_one_inferior.
13382
13383 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13384
13385 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13386
13387 2020-01-12 Pedro Alves <palves@redhat.com>
13388
13389 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13390 directly for the current inferior instead of
13391 discard_all_inferiors.
13392 (discard_all_inferiors): Delete.
13393
13394 2020-01-11 Tom Tromey <tom@tromey.com>
13395
13396 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13397 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13398 deprecated_safe_get_selected_frame.
13399
13400 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13401
13402 * inferior.c (print_inferior): Switch inferior before printing it.
13403
13404 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13405 Pedro Alves <palves@redhat.com>
13406
13407 * progspace-and-thread.c (switch_to_program_space_and_thread):
13408 Assert there's an inferior for PSPACE. Use
13409 switch_to_inferior_no_thread to switch the inferior too.
13410 * progspace.c (program_space::~program_space): Call
13411 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13412 (program_space::free_all_objfiles): Don't call clear_symtab_users
13413 here.
13414 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13415
13416 2020-01-10 Pedro Alves <palves@redhat.com>
13417
13418 * NEWS: Mention multi-target debugging, "info connections", and
13419 "add-inferior -no-connection".
13420
13421 2020-01-10 Pedro Alves <palves@redhat.com>
13422
13423 * infrun.c: Include "target-connection.h".
13424 (check_multi_target_resumption): New.
13425 (proceed): Call it.
13426 * target-connection.c (make_target_connection_string): Make
13427 extern.
13428 * target-connection.h (make_target_connection_string): Declare.
13429
13430 2020-01-10 Pedro Alves <palves@redhat.com>
13431
13432 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13433 * inferior.c (uiout_field_connection): New function.
13434 (print_inferior): Add new "connection-id" column.
13435 (add_inferior_command): Show connection number/string of added
13436 inferior.
13437 * process-stratum-target.h
13438 (process_stratum_target::connection_string): New virtual method.
13439 (process_stratum_target::connection_number): New field.
13440 * remote.c (remote_target::connection_string): New override.
13441 * target-connection.c: New file.
13442 * target-connection.h: New file.
13443 * target.c (decref_target): Remove process_stratum targets from
13444 the connection list.
13445 (target_stack::push): Add process_stratum targets to the
13446 connection list.
13447
13448 2020-01-10 Pedro Alves <palves@redhat.com>
13449
13450 Revert:
13451 2016-04-12 Pedro Alves <palves@redhat.com>
13452 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13453 Remove references to name.
13454 * serial.h (struct serial) <name>: Delete.
13455
13456 2020-01-10 Pedro Alves <palves@redhat.com>
13457
13458 * gdbarch-selftests.c (register_to_value_test): Remove "target
13459 already pushed" check.
13460
13461 2020-01-10 Pedro Alves <palves@redhat.com>
13462 John Baldwin <jhb@FreeBSD.org>
13463
13464 * aarch64-linux-nat.c
13465 (aarch64_linux_nat_target::thread_architecture): Adjust.
13466 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13467 (task_command_1): Likewise.
13468 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13469 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13470 (aix_thread_target::store_registers)
13471 (aix_thread_target::thread_alive): Adjust.
13472 * amd64-fbsd-tdep.c: Include "inferior.h".
13473 (amd64fbsd_get_thread_local_address): Pass down target.
13474 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13475 thread's gdbarch instead of target_gdbarch.
13476 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13477 get_last_target_status.
13478 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13479 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13480 inferiors.
13481 (update_inserted_breakpoint_locations): Skip if inferiors with no
13482 execution.
13483 (update_global_location_list): When handling moribund locations,
13484 find representative inferior for location's pspace, and use thread
13485 count of its process_stratum target.
13486 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13487 * bsd-uthread.c (bsd_uthread_target::wait): Use
13488 as_process_stratum_target and adjust thread_change_ptid and
13489 add_thread calls.
13490 (bsd_uthread_target::update_thread_list): Use
13491 as_process_stratum_target and adjust find_thread_ptid,
13492 thread_change_ptid and add_thread calls.
13493 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13494 find_thread_ptid call.
13495 * corelow.c (add_to_thread_list): Adjust add_thread call.
13496 (core_target_open): Adjust add_thread_silent and thread_count
13497 calls.
13498 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13499 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13500 * event-top.c (async_disconnect): Pop targets from all inferiors.
13501 * exec.c (add_target_sections): Push exec target on all inferiors
13502 sharing the program space.
13503 (remove_target_sections): Remove the exec target from all
13504 inferiors sharing the program space.
13505 (exec_on_vfork): New.
13506 * exec.h (exec_on_vfork): Declare.
13507 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13508 Pass it down.
13509 (fbsd_nat_target::update_thread_list): Adjust.
13510 (fbsd_nat_target::resume): Adjust.
13511 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13512 down.
13513 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13514 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13515 get_thread_arch_regcache call.
13516 * fork-child.c (gdb_startup_inferior): Pass target down to
13517 startup_inferior and set_executing.
13518 * gdbthread.h (struct process_stratum_target): Forward declare.
13519 (add_thread, add_thread_silent, add_thread_with_info)
13520 (in_thread_list): Add process_stratum_target parameter.
13521 (find_thread_ptid(inferior*, ptid_t)): New overload.
13522 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13523 parameter.
13524 (all_threads()): Delete overload.
13525 (all_threads, all_non_exited_threads): Add process_stratum_target
13526 parameter.
13527 (all_threads_safe): Use brace initialization.
13528 (thread_count): Add process_stratum_target parameter.
13529 (set_resumed, set_running, set_stop_requested, set_executing)
13530 (threads_are_executing, finish_thread_state): Add
13531 process_stratum_target parameter.
13532 (switch_to_thread): Use is_current_thread.
13533 * i386-fbsd-tdep.c: Include "inferior.h".
13534 (i386fbsd_get_thread_local_address): Pass down target.
13535 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13536 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13537 have_inferiors check.
13538 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13539 (inf_ptrace_target::attach): Adjust.
13540 * infcall.c (run_inferior_call): Adjust.
13541 * infcmd.c (run_command_1): Pass target to
13542 scoped_finish_thread_state.
13543 (proceed_thread_callback): Skip inferiors with no execution.
13544 (continue_command): Rename 'all_threads' local to avoid hiding
13545 'all_threads' function. Adjust get_last_target_status call.
13546 (prepare_one_step): Adjust set_running call.
13547 (signal_command): Use user_visible_resume_target. Compare thread
13548 pointers instead of inferior_ptid.
13549 (info_program_command): Adjust to pass down target.
13550 (attach_command): Mark target's 'thread_executing' flag.
13551 (stop_current_target_threads_ns): New, factored out from ...
13552 (interrupt_target_1): ... this. Switch inferior before making
13553 target calls.
13554 * inferior-iter.h
13555 (struct all_inferiors_iterator, struct all_inferiors_range)
13556 (struct all_inferiors_safe_range)
13557 (struct all_non_exited_inferiors_range): Filter on
13558 process_stratum_target too. Remove explicit.
13559 * inferior.c (inferior::inferior): Push dummy target on target
13560 stack.
13561 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13562 Add process_stratum_target parameter, and pass it down.
13563 (have_live_inferiors): Adjust.
13564 (switch_to_inferior_and_push_target): New.
13565 (add_inferior_command, clone_inferior_command): Handle
13566 "-no-connection" parameter. Use
13567 switch_to_inferior_and_push_target.
13568 (_initialize_inferior): Mention "-no-connection" option in
13569 the help of "add-inferior" and "clone-inferior" commands.
13570 * inferior.h: Include "process-stratum-target.h".
13571 (interrupt_target_1): Use bool.
13572 (struct inferior) <push_target, unpush_target, target_is_pushed,
13573 find_target_beneath, top_target, process_target, target_at,
13574 m_stack>: New.
13575 (discard_all_inferiors): Delete.
13576 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13577 (all_inferiors, all_non_exited_inferiors): Add
13578 process_stratum_target parameter.
13579 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13580 (target_last_proc_target): New global.
13581 (follow_fork_inferior): Push target on new inferior. Pass target
13582 to add_thread_silent. Call exec_on_vfork. Handle target's
13583 reference count.
13584 (follow_fork): Adjust get_last_target_status call. Also consider
13585 target.
13586 (follow_exec): Push target on new inferior.
13587 (struct execution_control_state) <target>: New field.
13588 (user_visible_resume_target): New.
13589 (do_target_resume): Call target_async.
13590 (resume_1): Set target's threads_executing flag. Consider resume
13591 target.
13592 (commit_resume_all_targets): New.
13593 (proceed): Also consider resume target. Skip threads of inferiors
13594 with no execution. Commit resumtion in all targets.
13595 (start_remote): Pass current inferior to wait_for_inferior.
13596 (infrun_thread_stop_requested): Consider target as well. Pass
13597 thread_info pointer to clear_inline_frame_state instead of ptid.
13598 (infrun_thread_thread_exit): Consider target as well.
13599 (random_pending_event_thread): New inferior parameter. Use it.
13600 (do_target_wait): Rename to ...
13601 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13602 down.
13603 (threads_are_resumed_pending_p, do_target_wait): New.
13604 (prepare_for_detach): Adjust calls.
13605 (wait_for_inferior): New inferior parameter. Handle it. Use
13606 do_target_wait_1 instead of do_target_wait.
13607 (fetch_inferior_event): Adjust. Switch to representative
13608 inferior. Pass target down.
13609 (set_last_target_status): Add process_stratum_target parameter.
13610 Save target in global.
13611 (get_last_target_status): Add process_stratum_target parameter and
13612 handle it.
13613 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13614 (context_switch): Check inferior_ptid == null_ptid before calling
13615 inferior_thread().
13616 (get_inferior_stop_soon): Pass down target.
13617 (wait_one): Rename to ...
13618 (poll_one_curr_target): ... this.
13619 (struct wait_one_event): New.
13620 (wait_one): New.
13621 (stop_all_threads): Adjust.
13622 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13623 event's target.
13624 (switch_back_to_stepped_thread): Also consider target.
13625 (print_stop_event): Update.
13626 (normal_stop): Update. Also consider the resume target.
13627 * infrun.h (wait_for_inferior): Remove declaration.
13628 (user_visible_resume_target): New declaration.
13629 (get_last_target_status, set_last_target_status): New
13630 process_stratum_target parameter.
13631 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13632 process_stratum_target parameter, and use it.
13633 (clear_inline_frame_state (thread_info*)): New.
13634 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13635 process_stratum_target parameter.
13636 (clear_inline_frame_state (thread_info*)): Declare.
13637 * linux-fork.c (delete_checkpoint_command): Pass target down to
13638 find_thread_ptid.
13639 (checkpoint_command): Adjust.
13640 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13641 instead of just tweaking inferior_ptid.
13642 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13643 (exit_lwp): Pass target down to find_thread_ptid.
13644 (attach_proc_task_lwp_callback): Pass target down to
13645 add_thread/set_running/set_executing.
13646 (linux_nat_target::attach): Pass target down to
13647 thread_change_ptid.
13648 (get_detach_signal): Pass target down to find_thread_ptid.
13649 Consider last target status's target.
13650 (linux_resume_one_lwp_throw, resume_lwp)
13651 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13652 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13653 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13654 (linux_nat_target::async_wait_fd): New.
13655 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13656 target down.
13657 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13658 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13659 * linux-thread-db.c (struct thread_db_info::process_target): New
13660 field.
13661 (add_thread_db_info): Save target.
13662 (get_thread_db_info): New process_stratum_target parameter. Also
13663 match target.
13664 (delete_thread_db_info): New process_stratum_target parameter.
13665 Also match target.
13666 (thread_from_lwp): Adjust to pass down target.
13667 (thread_db_notice_clone): Pass down target.
13668 (check_thread_db_callback): Pass down target.
13669 (try_thread_db_load_1): Always push the thread_db target.
13670 (try_thread_db_load, record_thread): Pass target down.
13671 (thread_db_target::detach): Pass target down. Always unpush the
13672 thread_db target.
13673 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13674 target down. Always unpush the thread_db target.
13675 (find_new_threads_callback, thread_db_find_new_threads_2)
13676 (thread_db_target::update_thread_list): Pass target down.
13677 (thread_db_target::pid_to_str): Pass current inferior down.
13678 (thread_db_target::get_thread_local_address): Pass target down.
13679 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13680 target down.
13681 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13682 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13683 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13684 (procfs_init_inferior): Rename to ...
13685 (procfs_target::procfs_init_inferior): ... this and adjust.
13686 (procfs_target::create_inferior, procfs_notice_thread)
13687 (procfs_do_thread_registers): Adjust.
13688 * ppc-fbsd-tdep.c: Include "inferior.h".
13689 (ppcfbsd_get_thread_local_address): Pass down target.
13690 * proc-service.c (ps_xfer_memory): Switch current inferior and
13691 program space as well.
13692 (get_ps_regcache): Pass target down.
13693 * process-stratum-target.c
13694 (process_stratum_target::thread_address_space)
13695 (process_stratum_target::thread_architecture): Pass target down.
13696 * process-stratum-target.h
13697 (process_stratum_target::threads_executing): New field.
13698 (as_process_stratum_target): New.
13699 * ravenscar-thread.c
13700 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13701 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13702 down.
13703 * record-btrace.c (record_btrace_target::info_record): Adjust.
13704 (record_btrace_target::record_method)
13705 (record_btrace_target::record_is_replaying)
13706 (record_btrace_target::fetch_registers)
13707 (get_thread_current_frame_id, record_btrace_target::resume)
13708 (record_btrace_target::wait, record_btrace_target::stop): Pass
13709 target down.
13710 * record-full.c (record_full_wait_1): Switch to event thread.
13711 Pass target down.
13712 * regcache.c (regcache::regcache)
13713 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13714 process_stratum_target parameter and handle it.
13715 (current_thread_target): New global.
13716 (get_thread_regcache): Add process_stratum_target parameter and
13717 handle it. Switch inferior before calling target method.
13718 (get_thread_regcache): Pass target down.
13719 (get_thread_regcache_for_ptid): Pass target down.
13720 (registers_changed_ptid): Add process_stratum_target parameter and
13721 handle it.
13722 (registers_changed_thread, registers_changed): Pass target down.
13723 (test_get_thread_arch_aspace_regcache): New.
13724 (current_regcache_test): Define a couple local test_target_ops
13725 instances and use them for testing.
13726 (readwrite_regcache): Pass process_stratum_target parameter.
13727 (cooked_read_test, cooked_write_test): Pass mock_target down.
13728 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13729 (get_thread_arch_aspace_regcache): Add process_stratum_target
13730 parameter.
13731 (regcache::target): New method.
13732 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13733 (regcache::registers_changed_ptid): Add process_stratum_target
13734 parameter.
13735 (regcache::m_target): New field.
13736 (registers_changed_ptid): Add process_stratum_target parameter.
13737 * remote.c (remote_state::supports_vCont_probed): New field.
13738 (remote_target::async_wait_fd): New method.
13739 (remote_unpush_and_throw): Add remote_target parameter.
13740 (get_current_remote_target): Adjust.
13741 (remote_target::remote_add_inferior): Push target.
13742 (remote_target::remote_add_thread)
13743 (remote_target::remote_notice_new_inferior)
13744 (get_remote_thread_info): Pass target down.
13745 (remote_target::update_thread_list): Skip threads of inferiors
13746 bound to other targets. (remote_target::close): Don't discard
13747 inferiors. (remote_target::add_current_inferior_and_thread)
13748 (remote_target::process_initial_stop_replies)
13749 (remote_target::start_remote)
13750 (remote_target::remote_serial_quit_handler): Pass down target.
13751 (remote_target::remote_unpush_target): New remote_target
13752 parameter. Unpush the target from all inferiors.
13753 (remote_target::remote_unpush_and_throw): New remote_target
13754 parameter. Pass it down.
13755 (remote_target::open_1): Check whether the current inferior has
13756 execution instead of checking whether any inferior is live. Pass
13757 target down.
13758 (remote_target::remote_detach_1): Pass down target. Use
13759 remote_unpush_target.
13760 (extended_remote_target::attach): Pass down target.
13761 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13762 (remote_target::append_resumption): Pass down target.
13763 (remote_target::append_pending_thread_resumptions)
13764 (remote_target::remote_resume_with_hc, remote_target::resume)
13765 (remote_target::commit_resume): Pass down target.
13766 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13767 (remote_target::interrupt_query)
13768 (remote_target::remove_new_fork_children)
13769 (remote_target::check_pending_events_prevent_wildcard_vcont)
13770 (remote_target::remote_parse_stop_reply)
13771 (remote_target::process_stop_reply): Pass down target.
13772 (first_remote_resumed_thread): New remote_target parameter. Pass
13773 it down.
13774 (remote_target::wait_as): Pass down target.
13775 (unpush_and_perror): New remote_target parameter. Pass it down.
13776 (remote_target::readchar, remote_target::remote_serial_write)
13777 (remote_target::getpkt_or_notif_sane_1)
13778 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13779 down target.
13780 (remote_target::mourn_inferior): Pass down target. Use
13781 remote_unpush_target.
13782 (remote_target::core_of_thread)
13783 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13784 (remote_target::pid_to_exec_file)
13785 (remote_target::thread_handle_to_thread_info): Pass down target.
13786 (remote_target::async_wait_fd): New.
13787 * riscv-fbsd-tdep.c: Include "inferior.h".
13788 (riscv_fbsd_get_thread_local_address): Pass down target.
13789 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13790 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13791 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13792 Adjust.
13793 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13794 * solib-svr4.c (enable_break): Pass down target.
13795 * spu-multiarch.c (parse_spufs_run): Pass down target.
13796 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13797 * target-delegates.c: Regenerate.
13798 * target.c (g_target_stack): Delete.
13799 (current_top_target): Return the current inferior's top target.
13800 (target_has_execution_1): Refer to the passed-in inferior's top
13801 target.
13802 (target_supports_terminal_ours): Check whether the initial
13803 inferior was already created.
13804 (decref_target): New.
13805 (target_stack::push): Incref/decref the target.
13806 (push_target, push_target, unpush_target): Adjust.
13807 (target_stack::unpush): Defref target.
13808 (target_is_pushed): Return bool. Adjust to refer to the current
13809 inferior's target stack.
13810 (dispose_inferior): Delete, and inline parts ...
13811 (target_preopen): ... here. Only dispose of the current inferior.
13812 (target_detach): Hold strong target reference while detaching.
13813 Pass target down.
13814 (target_thread_name): Add assertion.
13815 (target_resume): Pass down target.
13816 (target_ops::beneath, find_target_at): Adjust to refer to the
13817 current inferior's target stack.
13818 (get_dummy_target): New.
13819 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13820 has a thread running.
13821 (initialize_targets): Rename to ...
13822 (_initialize_target): ... this.
13823 * target.h: Include "gdbsupport/refcounted-object.h".
13824 (struct target_ops): Inherit refcounted_object.
13825 (target_ops::shortname, target_ops::longname): Make const.
13826 (target_ops::async_wait_fd): New method.
13827 (decref_target): Declare.
13828 (struct target_ops_ref_policy): New.
13829 (target_ops_ref): New typedef.
13830 (get_dummy_target): Declare function.
13831 (target_is_pushed): Return bool.
13832 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
13833 (all_matching_threads_iterator::all_matching_threads_iterator):
13834 Handle filter target.
13835 * thread-iter.h (struct all_matching_threads_iterator, struct
13836 all_matching_threads_range, class all_non_exited_threads_range):
13837 Filter by target too. Remove explicit.
13838 * thread.c (threads_executing): Delete.
13839 (inferior_thread): Pass down current inferior.
13840 (clear_thread_inferior_resources): Pass down thread pointer
13841 instead of ptid_t.
13842 (add_thread_silent, add_thread_with_info, add_thread): Add
13843 process_stratum_target parameter. Use it for thread and inferior
13844 searches.
13845 (is_current_thread): New.
13846 (thread_info::deletable): Use it.
13847 (find_thread_ptid, thread_count, in_thread_list)
13848 (thread_change_ptid, set_resumed, set_running): New
13849 process_stratum_target parameter. Pass it down.
13850 (set_executing): New process_stratum_target parameter. Pass it
13851 down. Adjust reference to 'threads_executing'.
13852 (threads_are_executing): New process_stratum_target parameter.
13853 Adjust reference to 'threads_executing'.
13854 (set_stop_requested, finish_thread_state): New
13855 process_stratum_target parameter. Pass it down.
13856 (switch_to_thread): Also match inferior.
13857 (switch_to_thread): New process_stratum_target parameter. Pass it
13858 down.
13859 (update_threads_executing): Reimplement.
13860 * top.c (quit_force): Pop targets from all inferior.
13861 (gdb_init): Don't call initialize_targets.
13862 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13863 Declare.
13864 (windows_add_thread, windows_delete_thread): Adjust.
13865 (get_windows_debug_event): Rename to ...
13866 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13867 * tracefile-tfile.c (tfile_target_open): Pass down target.
13868 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13869 Forward declare.
13870 (switch_to_thread): Add process_stratum_target parameter.
13871 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13872 parameter. Use it.
13873 (mi_on_resume): Pass target down.
13874 * nat/fork-inferior.c (startup_inferior): Add
13875 process_stratum_target parameter. Pass it down.
13876 * nat/fork-inferior.h (startup_inferior): Add
13877 process_stratum_target parameter.
13878 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13879
13880 2020-01-10 Pedro Alves <palves@redhat.com>
13881
13882 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13883 directly. Instead find the first thread in the thread list and
13884 use switch_to_thread.
13885
13886 2020-01-10 Pedro Alves <palves@redhat.com>
13887
13888 * remote.c (remote_target::remote_add_inferior): Don't bind a
13889 process to the current inferior if the current inferior is already
13890 bound to a process.
13891
13892 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13893 Pedro Alves <palves@redhat.com>
13894
13895 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13896 If no process is specified, return null_ptid instead of
13897 inferior_ptid.
13898 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13899 TARGET_WAITKIND_SIGNALLED with no pid.
13900
13901 2020-01-10 Pedro Alves <palves@redhat.com>
13902
13903 * remote.c (first_remote_resumed_thread): New.
13904 (remote_target::wait_as): Use it as default event_ptid instead of
13905 inferior_ptid.
13906
13907 2020-01-10 Pedro Alves <palves@redhat.com>
13908
13909 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13910
13911 2020-01-10 Pedro Alves <palves@redhat.com>
13912
13913 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13914 not -1.
13915
13916 2020-01-10 Pedro Alves <palves@redhat.com>
13917
13918 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13919 ptid to get_last_target_status.
13920 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13921 ptid to get_last_target_status.
13922 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13923 get_last_target_status.
13924 (info_program_command): Don't pass a target_waitstatus to
13925 get_last_target_status.
13926 * infrun.c (init_wait_for_inferior): Use
13927 nullify_last_target_wait_ptid.
13928 (get_last_target_status): Handle nullptr arguments.
13929 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13930 (print_stop_event): Don't pass a ptid to get_last_target_status.
13931 (normal_stop): Don't pass a ptid to get_last_target_status.
13932 * infrun.h (get_last_target_status, set_last_target_status): Move
13933 comments here and update.
13934 (nullify_last_target_wait_ptid): Declare.
13935 * linux-fork.c (fork_load_infrun_state): Remove local extern
13936 declaration of nullify_last_target_wait_ptid.
13937 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13938 to get_last_target_status.
13939
13940 2020-01-10 Pedro Alves <palves@redhat.com>
13941
13942 * gdbthread.h (scoped_restore_current_thread)
13943 <dont_restore, restore, m_dont_restore>: Declare.
13944 * thread.c (thread_alive): Add assertion. Return bool.
13945 (switch_to_thread_if_alive): New.
13946 (prune_threads): Switch inferior/thread.
13947 (print_thread_info_1): Switch thread before calling target methods.
13948 (scoped_restore_current_thread::restore): New, factored out from
13949 ...
13950 (scoped_restore_current_thread::~scoped_restore_current_thread):
13951 ... this.
13952 (scoped_restore_current_thread::scoped_restore_current_thread):
13953 Add assertion.
13954 (thread_apply_all_command, thread_select): Use
13955 switch_to_thread_if_alive.
13956 * infrun.c (proceed, restart_threads, handle_signal_stop)
13957 (switch_back_to_stepped_thread): Switch current thread before
13958 calling target methods.
13959
13960 2020-01-10 Pedro Alves <palves@redhat.com>
13961
13962 * inferior.c (switch_to_inferior_no_thread): New function,
13963 factored out from ...
13964 (inferior_command): ... here.
13965 * inferior.h (switch_to_inferior_no_thread): Declare.
13966 * mi/mi-main.c (run_one_inferior): Use
13967 switch_to_inferior_no_thread.
13968
13969 2020-01-10 Pedro Alves <palves@redhat.com>
13970
13971 * infcmd.c (kill_command): Remove dead code.
13972
13973 2020-01-10 Pedro Alves <palves@redhat.com>
13974
13975 * remote.c (remote_target::mourn_inferior): No longer check
13976 whether the target is running.
13977
13978 2020-01-10 Pedro Alves <palves@redhat.com>
13979
13980 * corelow.c (core_target::has_execution): Change parameter type to
13981 inferior pointer.
13982 * inferior.c (number_of_live_inferiors): Use
13983 inferior::has_execution instead of target_has_execution_1.
13984 * inferior.h (inferior::has_execution): New.
13985 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13986 inferior::has_execution instead of target_has_execution_1.
13987 * process-stratum-target.c
13988 (process_stratum_target::has_execution): Change parameter type to
13989 inferior pointer. Check the inferior's PID instead of
13990 inferior_ptid.
13991 * process-stratum-target.h
13992 (process_stratum_target::has_execution): Change parameter type to
13993 inferior pointer.
13994 * record-full.c (record_full_core_target::has_execution): Change
13995 parameter type to inferior pointer.
13996 * target.c (target_has_execution_1): Change parameter type to
13997 inferior pointer.
13998 (target_has_execution_current): Adjust.
13999 * target.h (target_ops::has_execution): Change parameter type to
14000 inferior pointer.
14001 (target_has_execution_1): Change parameter type to inferior
14002 pointer. Change return type to bool.
14003 * tracefile.h (tracefile_target::has_execution): Change parameter
14004 type to inferior pointer.
14005
14006 2020-01-10 Pedro Alves <palves@redhat.com>
14007
14008 * exceptions.c (print_flush): Remove current_top_target() check.
14009
14010 2020-01-10 Pedro Alves <palves@redhat.com>
14011
14012 * remote.c (show_remote_exec_file): Show the current inferior's
14013 exec-file instead of the command variable's value.
14014
14015 2020-01-10 Pedro Alves <palves@redhat.com>
14016
14017 * record-full.c (record_full_resume_ptid): New global.
14018 (record_full_target::resume): Set it.
14019 (record_full_wait_1): Use record_full_resume_ptid instead of
14020 inferior_ptid.
14021
14022 2020-01-10 Pedro Alves <palves@redhat.com>
14023
14024 * gdbthread.h (scoped_restore_current_thread)
14025 <dont_restore, restore, m_dont_restore>: Declare.
14026 * thread.c (thread_alive): Add assertion. Return bool.
14027 (switch_to_thread_if_alive): New.
14028 (prune_threads): Switch inferior/thread.
14029 (print_thread_info_1): Switch thread before calling target methods.
14030 (scoped_restore_current_thread::restore): New, factored out from
14031 ...
14032 (scoped_restore_current_thread::~scoped_restore_current_thread):
14033 ... this.
14034 (scoped_restore_current_thread::scoped_restore_current_thread):
14035 Add assertion.
14036 (thread_apply_all_command, thread_select): Use
14037 switch_to_thread_if_alive.
14038
14039 2020-01-10 George Barrett <bob@bob131.so>
14040
14041 * stap-probe.c (stap_modify_semaphore): Don't check for null
14042 semaphores.
14043 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
14044 for null semaphores.
14045
14046 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14047
14048 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
14049 all source windows, and maintain horizontal scroll status while
14050 doing so.
14051
14052 2020-01-09 Tom Tromey <tom@tromey.com>
14053
14054 PR tui/18932:
14055 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
14056 update_source_window, not print_source_lines.
14057
14058 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14059
14060 * tui/tui.c (tui_enable): Register tui hooks after calling
14061 tui_display_main.
14062
14063 2020-01-09 Christian Biesinger <cbiesinger@google.com>
14064
14065 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
14066
14067 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
14068
14069 * thread.c (print_thread_info_1): Fix indentation.
14070
14071 2020-01-09 Christian Biesinger <cbiesinger@google.com>
14072
14073 * symtab.c (general_symbol_info::compute_and_set_names): Move the
14074 unique_xmalloc_ptr outside the if to always free the demangled name.
14075
14076 2020-01-08 Tom Tromey <tromey@adacore.com>
14077
14078 * xcoffread.c (enter_line_range, read_xcoff_symtab)
14079 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
14080 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
14081 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
14082 Remove.
14083 (section_offsets): New typedef.
14084 * symtab.c (fixup_section, get_msymbol_address): Update.
14085 * symmisc.c (dump_msymbols): Update.
14086 * symfile.h (relative_addr_info_to_section_offsets)
14087 (symfile_map_offsets_to_segments): Update.
14088 * symfile.c (build_section_addr_info_from_objfile)
14089 (init_objfile_sect_indices): Update.
14090 (struct place_section_arg): Change type of "offsets".
14091 (place_section): Update.
14092 (relative_addr_info_to_section_offsets): Change type of
14093 "section_offsets". Remove "num_sections" parameter.
14094 (default_symfile_offsets, syms_from_objfile_1)
14095 (set_objfile_default_section_offset): Update.
14096 (reread_symbols): No need to preserve section offsets by hand.
14097 (symfile_map_offsets_to_segments): Change type of "offsets".
14098 * stap-probe.c (relocate_address): Update.
14099 * stabsread.h (process_one_symbol): Update.
14100 * solib-target.c (struct lm_info_target) <offsets>: Change type.
14101 (solib_target_relocate_section_addresses): Update.
14102 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
14103 Update.
14104 * solib-frv.c (frv_relocate_main_executable): Update.
14105 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
14106 * solib-aix.c (solib_aix_get_section_offsets): Change return
14107 type.
14108 (solib_aix_solib_create_inferior_hook): Update.
14109 * remote.c (remote_target::get_offsets): Update.
14110 * psymtab.c (find_pc_sect_psymtab): Update.
14111 * psympriv.h (struct partial_symbol) <address, text_low,
14112 text_high>: Update.
14113 * objfiles.h (obj_section_offset): Update.
14114 (struct objfile) <section_offsets>: Change type.
14115 <num_sections>: Remove.
14116 (objfile_relocate): Update.
14117 * objfiles.c (entry_point_address_query): Update
14118 (relocate_one_symbol): Change type of "section_offsets".
14119 (objfile_relocate1, objfile_relocate1): Change type of
14120 "new_offsets".
14121 (objfile_rebase1): Update.
14122 * mipsread.c (mipscoff_symfile_read): Update.
14123 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
14124 parameter.
14125 * mdebugread.c (parse_symbol): Change type of "section_offsets".
14126 (parse_external, psymtab_to_symtab_1): Update.
14127 * machoread.c (macho_symfile_offsets): Update.
14128 * ia64-tdep.c (ia64_find_unwind_table): Update.
14129 * hppa-tdep.c (read_unwind_info): Update.
14130 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
14131 * dwarf2read.c (create_addrmap_from_index)
14132 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14133 (process_psymtab_comp_unit_reader, add_partial_symbol)
14134 (add_partial_subprogram, process_full_comp_unit)
14135 (read_file_scope, read_func_scope, read_lexical_block_scope)
14136 (read_call_site_scope, dwarf2_rnglists_process)
14137 (dwarf2_ranges_process, dwarf2_ranges_read)
14138 (dwarf_decode_lines_1, var_decode_location, new_symbol)
14139 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
14140 Update.
14141 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14142 Update.
14143 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14144 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14145 (process_one_symbol): Change type of "section_offsets".
14146 * ctfread.c (get_objfile_text_range): Update.
14147 * coffread.c (coff_symtab_read, enter_linenos)
14148 (process_coff_symbol): Update.
14149 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14150 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14151
14152 2020-01-08 Tom Tromey <tromey@adacore.com>
14153
14154 * dwarf2read.c (parse_macro_definition): Use std::string.
14155 (parse_macro_definition): Likewise.
14156
14157 2020-01-08 Tom Tromey <tromey@adacore.com>
14158
14159 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14160 (ATTR_ALLOC_CHUNK): Remove.
14161
14162 2020-01-08 Tom Tromey <tromey@adacore.com>
14163
14164 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14165
14166 2020-01-08 Tom Tromey <tromey@adacore.com>
14167
14168 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14169 (dwarf2_compute_name, open_dwo_file): Likewise.
14170 (process_enumeration_scope): Use std::vector.
14171 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14172 (partial_die_info::fixup, dwarf2_start_subfile)
14173 (guess_full_die_structure_name, dwarf2_name): Likewise.
14174 (determine_prefix): Update.
14175 (guess_full_die_structure_name): Make return type const.
14176 (partial_die_full_name): Return unique_xmalloc_ptr.
14177 (DW_FIELD_ALLOC_CHUNK): Remove.
14178
14179 2020-01-07 Tom Tromey <tromey@adacore.com>
14180
14181 PR build/24937:
14182 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14183
14184 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14185
14186 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14187
14188 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14189
14190 * stack.c (print_frame_info): Move disassemble_next_line code
14191 inside source_print block.
14192
14193 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14194
14195 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14196 gdb/signals.h, as we are now using native signal symbols.
14197
14198 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
14199
14200 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14201 overflow by an early check of content vs threshold.
14202 * tui/tui-source.c (tui_source_window::line_is_displayed):
14203 Likewise.
14204
14205 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14206
14207 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14208
14209 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14210
14211 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14212 export table if no section contains it's RVA.
14213
14214 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14215
14216 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14217
14218 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
14219
14220 * source.c (print_source_lines_base): Set last_line_listed.
14221
14222 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
14223
14224 * tui/tui-disasm.c: Remove trailing spaces.
14225
14226 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14227 Pedro Alves <palves@redhat.com>
14228
14229 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14230 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14231 (windows_gdb_signal_to_target): New function, uses the above
14232 enumeration to convert GDB internal signal codes to equivalent
14233 Windows codes.
14234 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14235 * windows-nat.c: Include "gdb_wait.h".
14236 (get_windows_debug_event): Extract the fatal exception from the
14237 exit status and convert to the equivalent Posix signal number.
14238 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14239 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14240 * gdbsupport/gdb_wait.c: New file, implements
14241 windows_status_to_termsig.
14242 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14243 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14244
14245 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14246
14247 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14248 show_layout.
14249
14250 2020-01-05 Luis Machado <luis.machado@linaro.org>
14251
14252 * aarch64-linux-nat.c
14253 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14254 and bfd_mach_aarch64.
14255
14256 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14257
14258 * ui-file.c (stdio_file::can_emit_style_escape)
14259 (tee_file::can_emit_style_escape): Ensure style is used also on
14260 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14261 to gdb_stdout.
14262 * main.c (set_gdb_data_directory): Use file style to output the
14263 warning that the given pathname is not a directory.
14264 * top.c (show_history_filename, gdb_safe_append_history)
14265 (show_gdb_datadir): Use file style.
14266
14267 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
14268
14269 * solib-target.c (struct lm_info_target):
14270 Change offsets to be a unique_xmalloc_ptr.
14271 (solib_target_relocate_section_addresses): Update.
14272
14273 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
14274
14275 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14276
14277 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14278
14279 * MAINTAINERS (Write After Approval): Add myself.
14280
14281 2020-01-02 Luis Machado <luis.machado@linaro.org>
14282
14283 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14284 Cell BE architecture.
14285 * target.h (struct target_ops) <thread_architecture>: Likewise.
14286
14287 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
14288
14289 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14290
14291 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
14292
14293 * MAINTAINERS (Write After Approval): Add myself.
14294
14295 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14296
14297 * gdbarch.sh: Update copyright year range of generated files.
14298
14299 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14300
14301 Update copyright year range in all GDB files.
14302
14303 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14304
14305 * copyright.py: Convert to Python 3.
14306
14307 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14308
14309 * copyright.py: Adapt after move of gnulib directory from gdb
14310 directory to toplevel directory.
14311
14312 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14313
14314 * copyright.py (main): Exit if run from the wrong directory.
14315
14316 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14317
14318 * top.c (print_gdb_version): Change copyright year to 2020.
14319
14320 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14321
14322 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
14323
14324 For older changes see ChangeLog-2019.
14325 \f
14326 Local Variables:
14327 mode: change-log
14328 left-margin: 8
14329 fill-column: 74
14330 version-control: never
14331 coding: utf-8
14332 End:
This page took 0.298712 seconds and 5 git commands to generate.