bc9768bb4a70b90579109845582c11643d3f98cb
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-09-28 Tom Tromey <tom@tromey.com>
2
3 * windows-tdep.c (tlb_make_value): Update.
4 * tui/tui-regs.c (tui_data_window::show_registers): Update.
5 * thread.c (scoped_restore_current_thread::restore)
6 (scoped_restore_current_thread::scoped_restore_current_thread)
7 (thread_command): Update.
8 * stack.c (backtrace_command_1, frame_apply_level_command)
9 (frame_apply_all_command, frame_apply_command): Update.
10 * infrun.c (siginfo_make_value, restore_infcall_control_state):
11 Update.
12 * gcore.c (derive_stack_segment): Update.
13 * frame.c (get_current_frame, has_stack_frames): Update.
14 * auxv.c (info_auxv_command): Update.
15 * ada-tasks.c (ada_build_task_list): Update.
16 * target.c (target_has_stack): Rename from target_has_stack_1.
17 * target.h (target_has_stack): Remove macro.
18 (target_has_stack): Rename from target_has_stack_1.
19
20 2020-09-28 Tom Tromey <tom@tromey.com>
21
22 * target.c (target_has_memory): Rename from target_has_memory_1.
23 * tui/tui-regs.c (tui_data_window::show_registers): Update.
24 * thread.c (scoped_restore_current_thread::restore)
25 (scoped_restore_current_thread::scoped_restore_current_thread):
26 Update.
27 * frame.c (get_current_frame, has_stack_frames): Update.
28 * target.h (target_has_memory): Remove macro.
29 (target_has_memory): Rename from target_has_memory_1.
30
31 2020-09-28 Tom Tromey <tom@tromey.com>
32
33 * target.c (target_has_all_memory_1): Remove.
34 * target.h (target_has_all_memory): Remove define.
35 (target_has_all_memory_1): Don't declare.
36
37 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
38
39 * ser-base.c: Adjust comments formatting.
40
41 2020-09-27 Tom Tromey <tom@tromey.com>
42
43 PR tui/25342:
44 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
45
46 2020-09-27 Tom Tromey <tom@tromey.com>
47
48 PR tui/25342:
49 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
50
51 2020-09-27 Tom Tromey <tom@tromey.com>
52
53 * unittests/tui-selftests.c: Update.
54 * tui/tui-winsource.h (struct tui_source_window_base)
55 <extra_margin, show_line_number, refresh_pad>: New methods.
56 <m_max_length, m_pad>: New members.
57 (tui_copy_source_line): Update.
58 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
59 first_col, line_width, ndigits parameters. Add length.
60 (tui_source_window_base::show_source_line): Write to pad. Line
61 number now 0-based.
62 (tui_source_window_base::refresh_pad): New method.
63 (tui_source_window_base::show_source_content): Write to pad. Call
64 refresh_pad.
65 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
66 not refill.
67 (tui_source_window_base::update_exec_info): Call
68 show_line_number.
69 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
70 method.
71 <m_digits>: New member.
72 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
73 and m_max_length.
74 (tui_source_window::show_line_number): New method.
75 * tui/tui-io.h (tui_puts): Fix comment.
76 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
77 m_max_length.
78
79 2020-09-27 Tom Tromey <tom@tromey.com>
80
81 * tui/tui-winsource.c
82 (tui_source_window_base::set_is_exec_point_at): Don't call
83 show_source_line.
84
85 2020-09-27 Tom Tromey <tom@tromey.com>
86
87 * python/py-tui.c (class tui_py_window) <refresh_window>: New
88 method.
89 <erase>: Update.
90 <cursor_x, cursor_y>: Remove.
91 <m_inner_window>: New member.
92 (tui_py_window::rerender): Create inner window.
93 (tui_py_window::output): Write to inner window.
94
95 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
96
97 PR python/26586
98 * cli/cli-script.c (execute_control_commands): don't set
99 instream to nullptr here as this breaks the from_tty argument
100 to gdb.execute in Python.
101 (execute_user_command): set instream to nullptr here instead.
102
103 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
104
105 * infrun.h (infrun_debug_printf): Fix formatting.
106 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
107
108 2020-09-25 Saagar Jha <saagar@saagarjha.com>
109
110 * compile/compile-object-load.h (struct munmap_list): Add
111 explicitly-defined move constructor.
112
113 2020-09-24 Tom Tromey <tromey@adacore.com>
114
115 PR tui/26638:
116 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
117 method.
118 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
119 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
120 (tui_prev_win): Rewrite.
121
122 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
123
124 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
125 in WOW64 processes as SIGINT.
126 * nat/windows-nat.h: Make wow64_process a shared variable.
127 * windows-nat.c: Remove static wow64_process variable.
128
129 2020-09-23 Tom Tromey <tom@tromey.com>
130
131 PR symtab/25470:
132 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
133 offset and bit size.
134 * printcmd.c (print_scalar_formatted): Handle zero-length
135 integer.
136 (print_scalar_formatted): Use bit_size_differs_p.
137 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
138 constant.
139 (union type_specific): <int_stuff>: New member.
140 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
141 methods.
142 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
143 TYPE_SPECIFIC_FIELD.
144 (recursive_dump_type, copy_type_recursive): Update.
145 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
146 DW_AT_data_bit_offset.
147
148 2020-09-23 Tom Tromey <tom@tromey.com>
149
150 * utils.h (class gdb_argv): Add move operators.
151 <append>: New methods.
152 * compile/compile.c (build_argc_argv): Remove.
153 (compile_args_argc): Remove.
154 (compile_args_argv): Change type.
155 (set_compile_args): Simplify.
156 (append_args): Remove.
157 (filter_args): Remove argcp parameter.
158 (get_args): Return gdb_argv. Simplify.
159 (compile_to_object): Update.
160
161 2020-09-23 Tom Tromey <tom@tromey.com>
162
163 * compile/compile-object-run.c (do_module_cleanup)
164 <~do_module_cleanup> :Remove.
165 (do_module_cleanup): Update.
166 * compile/compile-object-load.h (struct munmap_list): Add move
167 assignment operator.
168 <source_file>: Now a std::string.
169 <munmap_list>: Rename. No longer a pointer.
170 * compile/compile-object-load.c (struct setup_sections_data): Add
171 constructor.
172 <setup_one_section>: Declare.
173 <munmap_list>: Move earlier.
174 <m_bfd>: New member.
175 <m_last_size, m_last_section_first, m_last_prot,
176 m_last_max_alignment>: Rename, add initializers where needed.
177 (setup_sections_data::setup_one_section): Rename from
178 setup_sections. Update.
179 (compile_object_load): Update. Don't use bfd_map_over_sections.
180
181 2020-09-23 Tom Tromey <tom@tromey.com>
182
183 * compile/compile-object-run.c (struct do_module_cleanup): Add
184 parameters to constructor. Update destructor.
185 <source_file, scope, scope_data, out_value_type, out_value_addr,
186 munmap_list_head, objfile_name_string>: Remove.
187 <module>: New member.
188 (do_module_cleanup): Update.
189 (compile_object_run): Update.
190
191 2020-09-23 Tom Tromey <tom@tromey.com>
192
193 * compile/compile.c (eval_compile_command): Update.
194 * compile/compile-object-run.h (compile_object_run): Take a
195 compile_module_up.
196 * compile/compile-object-run.c (compile_object_run): Take a
197 compile_module_up.
198 * compile/compile-object-load.h (struct compile_module): Add
199 constructor, destructor.
200 (compile_module_up): New typedef.
201 (compile_object_load): Return compile_object_up.
202 * compile/compile-object-load.c (compile_object_load): Return
203 compile_module_up.
204
205 2020-09-23 Tom Tromey <tom@tromey.com>
206
207 * compile/compile-object-run.c (struct do_module_cleanup): Add
208 constructor, destructor.
209 <objfile_name_string>: Don't use struct hack.
210 (do_module_cleanup): Use delete.
211 (compile_object_run): Use new.
212
213 2020-09-23 Tom Tromey <tom@tromey.com>
214
215 * compile/compile-cplus-types.c
216 (compile_cplus_convert_struct_or_union): Use std::vector.
217 (compile_cplus_convert_func): Likewise.
218 * compile/compile-c-types.c (convert_func): Use std::vector.
219
220 2020-09-21 Tom Tromey <tromey@adacore.com>
221
222 * sparc-tdep.c (sparc32_skip_prologue): Use
223 skip_prologue_using_sal.
224
225 2020-09-19 Tom Tromey <tom@tromey.com>
226
227 * symfile.c (add_section_size_callback): Remove.
228 (load_one_section): Rename from load_section_callback. Change
229 parameters.
230 (generic_load): Use foreach.
231
232 2020-09-19 Tom Tromey <tom@tromey.com>
233
234 * exec.c (add_to_section_table): Remove.
235 (build_section_table): Use foreach.
236
237 2020-09-19 Tom Tromey <tom@tromey.com>
238
239 * elfread.c (elf_locate_sections): Change parameters.
240 (elf_symfile_read): Use foreach.
241
242 2020-09-19 Tom Tromey <tom@tromey.com>
243
244 * cli/cli-dump.c (struct callback_data): Remove.
245 (restore_one_section): Rename from restore_section_callback.
246 Change parameters.
247 (restore_binary_file): Change parameters.
248 (restore_command): Use foreach.
249
250 2020-09-19 Tom Tromey <tom@tromey.com>
251
252 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
253 (gcore_copy_callback): Likewise.
254 (gcore_memory_sections): Use foreach.
255
256 2020-09-19 Tom Tromey <tom@tromey.com>
257
258 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
259 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
260 parameters.
261 (generic_elf_osabi_sniffer): Use foreach.
262 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
263 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
264
265 2020-09-19 Tom Tromey <tom@tromey.com>
266
267 * dwarf2/read.c (locate_dwz_sections): Change parameters.
268 (dwarf2_get_dwz_file): Use foreach.
269 (dwarf2_locate_dwo_sections): Change parameters.
270 (open_and_init_dwo_file): Use foreach.
271 (dwarf2_locate_common_dwp_sections): Change parameters.
272 (open_and_init_dwp_file): Use foreach.
273
274 2020-09-19 Tom Tromey <tom@tromey.com>
275
276 * symfile.h: (find_lowest_section): Don't declare.
277 * symfile.c (find_lowest_section): Now static. Change
278 parameters.
279 (struct place_section_arg): Remove.
280 (place_section): Change parameters.
281 (addr_info_make_relative): Use foreach.
282 (symfile_dummy_outputs): Remove.
283 (default_symfile_relocate): Use foreach.
284
285 2020-09-19 Tom Tromey <tom@tromey.com>
286
287 * objfiles.c (add_to_objfile_sections): Rename from
288 add_to_objfile_sections_full.
289 (add_to_objfile_sections): Remove.
290 (build_objfile_section_table): Use foreach.
291
292 2020-09-19 Tom Tromey <tom@tromey.com>
293
294 * stap-probe.c (get_stap_base_address_1): Remove.
295 (get_stap_base_address): Use foreach.
296
297 2020-09-19 Tom Tromey <tom@tromey.com>
298
299 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
300 parameters.
301 (gdb_bfd_close_or_warn): Use foreach.
302
303 2020-09-19 Tom Tromey <tom@tromey.com>
304
305 * corelow.c (add_to_thread_list): Change parameters.
306 (core_target_open): Use foreach.
307
308 2020-09-19 Tom Tromey <tom@tromey.com>
309
310 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
311 existing function.
312
313 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
314
315 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
316 for arrays.
317
318 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
319
320 * eval.c: Remove 'f-lang.h' include.
321 (value_f90_subarray): Moved to f-lang.c.
322 (eval_call): Renamed to...
323 (evaluate_subexp_do_call): ...this, is no longer static, header
324 comment moved into header file.
325 (evaluate_funcall): Update call to eval_call.
326 (skip_undetermined_arglist): Moved to f-lang.c.
327 (fortran_value_subarray): Likewise.
328 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
329 moved to evaluate_subexp_f.
330 (calc_f77_array_dims): Moved to f-lang.c
331 * expprint.c (print_subexp_funcall): New function.
332 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
333 moved to print_subexp_f, OP_FUNCALL uses new function.
334 (dump_subexp_body_funcall): New function.
335 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
336 moved to dump_subexp_f, OP_FUNCALL uses new function.
337 * expression.h (evaluate_subexp_do_call): Declare.
338 * f-lang.c (value_f90_subarray): Moved from eval.c.
339 (skip_undetermined_arglist): Likewise.
340 (calc_f77_array_dims): Likewise.
341 (fortran_value_subarray): Likewise.
342 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
343 (operator_length_f): Likewise.
344 (print_subexp_f): Likewise.
345 (dump_subexp_body_f): Likewise.
346 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
347 declaration of this operation to here.
348 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
349 support moved to operator_length_f.
350 * parser-defs.h (dump_subexp_body_funcall): Declare.
351 (print_subexp_funcall): Declare.
352 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
353 fortran-operator.def.
354
355 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
356
357 * eval.c (fortran_value_subarray): New function, content is taken
358 from...
359 (evaluate_subexp_standard): ...here, in two places. Now arrays
360 and strings both call the new function.
361 (calc_f77_array_dims): Add header comment, handle strings.
362
363 2020-09-18 Victor Collod <vcollod@nvidia.com>
364
365 PR gdb/26635
366 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
367 (i386_analyze_prologue): Call i386_skip_endbr.
368
369 2020-09-18 Tom Tromey <tromey@adacore.com>
370
371 * windows-nat.c (struct windows_nat_target) <wait>: Update.
372 (windows_nat_target::wait): Update.
373 * target/wait.h (enum target_wait_flag): New. Use
374 DEF_ENUM_FLAGS_TYPE.
375 * target/target.h (target_wait): Change type of options.
376 * target.h (target_options_to_string, default_target_wait):
377 Update.
378 (struct target_ops) <wait>: Change type of options.
379 * target.c (target_wait, default_target_wait, do_option): Change
380 type of "options".
381 (target_options_to_string): Likewise.
382 * target-delegates.c: Rebuild.
383 * target-debug.h (target_debug_print_target_wait_flags): Rename
384 from target_debug_print_options.
385 * sol-thread.c (class sol_thread_target) <wait>: Update.
386 (sol_thread_target::wait): Update.
387 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
388 (rs6000_nat_target::wait): Update.
389 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
390 Update.
391 (remote_target::wait_ns, remote_target::wait_as): Change type of
392 "options".
393 (remote_target::wait): Update.
394 * remote-sim.c (struct gdbsim_target) <wait>: Update.
395 (gdbsim_target::wait): Update.
396 * record-full.c (class record_full_base_target) <wait>: Update.
397 (record_full_wait_1): Change type of "options".
398 (record_full_base_target::wait): Update.
399 * record-btrace.c (class record_btrace_target) <wait>: Update.
400 (record_btrace_target::wait): Update.
401 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
402 Update.
403 (ravenscar_thread_target::wait): Update.
404 * procfs.c (class procfs_target) <wait>: Update.
405 (procfs_target::wait): Update.
406 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
407 * obsd-nat.c (obsd_nat_target::wait): Update.
408 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
409 (nto_procfs_target::wait): Update.
410 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
411 * nbsd-nat.c (nbsd_wait): Change type of "options".
412 (nbsd_nat_target::wait): Update.
413 * linux-thread-db.c (class thread_db_target) <wait>: Update.
414 (thread_db_target::wait): Update.
415 * linux-nat.h (class linux_nat_target) <wait>: Update.
416 * linux-nat.c (linux_nat_target::wait): Update.
417 (linux_nat_wait_1): Update.
418 * infrun.c (do_target_wait_1, do_target_wait): Change type of
419 "options".
420 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
421 * inf-ptrace.c (inf_ptrace_target::wait): Update.
422 * go32-nat.c (struct go32_nat_target) <wait>: Update.
423 (go32_nat_target::wait): Update.
424 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
425 * gnu-nat.c (gnu_nat_target::wait): Update.
426 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
427 * fbsd-nat.c (fbsd_nat_target::wait): Update.
428 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
429 * darwin-nat.c (darwin_nat_target::wait): Update.
430 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
431 (bsd_uthread_target::wait): Update.
432 * aix-thread.c (class aix_thread_target) <wait>: Update.
433 (aix_thread_target::wait): Update.
434
435 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
436
437 * compile/compile-object-run.c (create_copied_type_recursive): New
438 function.
439 (compile_object_run): Use new function.
440
441 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
442
443 * NEWS: Mention x86_64 Cygwin core file support.
444
445 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
446
447 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
448 (core_process_module_section): Handle NOTE_INFO_MODULE64.
449
450 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
451
452 * windows-tdep.h: Add prototypes.
453 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
454 (i386_windows_core_pid_to_str): Move and rename ...
455 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
456 (windows_core_pid_to_str): ... and here.
457 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
458
459 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
460 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
461 (amd64_windows_init_abi_common): ... and register.
462
463 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
464
465 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
466 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
467
468 2020-09-18 Pedro Alves <pedro@palves.net>
469
470 PR gdb/26631
471 * thread.c (thread_find_command): Switch inferior before calling
472 target methods.
473
474 2020-09-17 Tom Tromey <tromey@adacore.com>
475
476 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
477 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
478 (tdesc_arch_data_up): New typedef.
479 (tdesc_use_registers, tdesc_data_alloc): Update.
480 (tdesc_data_cleanup): Don't declare.
481 * target-descriptions.c (tdesc_data_alloc): Return a
482 tdesc_arch_data_up.
483 (tdesc_arch_data_deleter::operator()): Rename from
484 tdesc_data_cleanup. Change argument type.
485 (tdesc_use_registers): Change early_data to an rvalue reference.
486 (tdesc_use_registers): Don't use delete.
487 * sparc-tdep.c (sparc32_gdbarch_init): Update.
488 * s390-tdep.c (s390_gdbarch_init): Update.
489 * rx-tdep.c (rx_gdbarch_init): Update.
490 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
491 * riscv-tdep.c (riscv_gdbarch_init): Update.
492 * or1k-tdep.c (or1k_gdbarch_init): Update.
493 * nios2-tdep.c (nios2_gdbarch_init): Update.
494 * nds32-tdep.c (nds32_gdbarch_init): Update.
495 * mips-tdep.c (mips_gdbarch_init): Update.
496 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
497 * m68k-tdep.c (m68k_gdbarch_init): Update.
498 * i386-tdep.c (i386_gdbarch_init): Update.
499 * arm-tdep.c (arm_gdbarch_init): Update.
500 * arc-tdep.c (arc_tdesc_init): Update.
501 (arc_gdbarch_init): Update.
502 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
503
504 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
505
506 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
507 for WOW64 processes.
508
509 2020-09-17 Tom Tromey <tom@tromey.com>
510
511 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
512
513 2020-09-17 Tom Tromey <tom@tromey.com>
514
515 * value.c (preserve_values): Update.
516 * python/py-type.c (save_objfile_types): Update.
517 * guile/scm-type.c (save_objfile_types): Update.
518 * gdbtypes.h (create_copied_types_hash): Return htab_up.
519 * gdbtypes.c (create_copied_types_hash): Return htab_up.
520 * compile/compile-object-run.c (compile_object_run): Update.
521
522 2020-09-17 Tom Tromey <tom@tromey.com>
523
524 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
525 Remove.
526 <m_table>: Now htab_up.
527 * typeprint.c (typedef_hash_table::recursively_update)
528 (typedef_hash_table::add_template_parameters)
529 (typedef_hash_table::typedef_hash_table): Update.
530 (typedef_hash_table::~typedef_hash_table): Remove.
531 (typedef_hash_table::typedef_hash_table)
532 (typedef_hash_table::find_global_typedef)
533 (typedef_hash_table::find_typedef): Update.
534
535 2020-09-17 Tom Tromey <tom@tromey.com>
536
537 * target-descriptions.c (tdesc_use_registers): Use htab_up.
538
539 2020-09-17 Tom Tromey <tom@tromey.com>
540
541 * linespec.c (class decode_compound_collector)
542 <~decode_compound_collector>: Remove.
543 <m_unique_syms>: Now htab_up.
544 (decode_compound_collector::operator ()): Update.
545 (class symtab_collector) <~symtab_collector>: Remove.
546 <m_symtab_table>: Now htab_up.
547 (symtab_collector::operator ()): Update.
548
549 2020-09-17 Tom Tromey <tom@tromey.com>
550
551 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
552 (filename_seen_cache::clear): Update.
553 (~filename_seen_cache): Remove.
554 (filename_seen_cache::seen): Update.
555 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
556 htab_up.
557 <~filename_seen_cache>: Remove.
558 <traverse>: Update.
559
560 2020-09-17 Tom Tromey <tom@tromey.com>
561
562 * completer.c (completion_tracker::discard_completions)
563 (completion_tracker::~completion_tracker)
564 (completion_tracker::maybe_add_completion)
565 (completion_tracker::remove_completion)
566 (completion_tracker::recompute_lowest_common_denominator)
567 (completion_tracker::build_completion_result): Update.
568 * completer.h (class completion_tracker) <have_completions>:
569 Update.
570 <m_entries_hash>: Now htab_up.
571
572 2020-09-17 Tom Tromey <tom@tromey.com>
573
574 * breakpoint.c (ambiguous_names_p): Use htab_up.
575
576 2020-09-17 Tom Tromey <tom@tromey.com>
577
578 * auto-load.c (struct auto_load_pspace_info)
579 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
580 <loaded_script_files, loaded_script_texts>: Change type to
581 htab_up.
582 (~auto_load_pspace_info) Remove.
583 (init_loaded_scripts_info, maybe_add_script_file)
584 (maybe_add_script_text, auto_load_info_scripts): Update.
585
586 2020-09-17 Tom Tromey <tromey@adacore.com>
587
588 * c-exp.y (name_obstack): Now static.
589
590 2020-09-17 Chungyi Chi <demonic@csie.io>
591
592 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
593
594 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
595
596 * breakpoint.h (init_catchpoint): Change int parameter to bool.
597 (add_solib_catchpoint): Likewise.
598 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
599 to bool.
600 (add_solib_catchpoint): Change int parameter/variable to bool.
601 (catch_load_or_unload): Likewise.
602 (init_catchpoint): Likewise.
603 (create_fork_vfork_event_catchpoint): Likewise.
604 (catch_fork_command_1): Likewise.
605 (catch_exec_command_1): Likewise.
606
607 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
608
609 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
610 Change instance_flags to m_instance_flags.
611
612 2020-09-16 Tom Tromey <tromey@adacore.com>
613
614 PR gdb/26598:
615 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
616
617 2020-09-16 John Baldwin <jhb@FreeBSD.org>
618
619 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
620 PL_FLAG_EXEC.
621 (fbsd_nat_target::insert_exec_catchpoint)
622 (fbsd_nat_target::remove_exec_catchpoint): Always define.
623 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
624 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
625
626 2020-09-16 John Baldwin <jhb@FreeBSD.org>
627
628 * configure.ac: Remove check for kinfo_getvmmap().
629 * configure, config.in: Regenerate.
630 * fbsd-nat.c (fbsd_read_mapping): Remove
631 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
632 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
633 kinfo_get_vmmap() are always present.
634
635 2020-09-16 John Baldwin <jhb@FreeBSD.org>
636
637 * fbsd-nat.c: Always include support for
638 TARGET_OBJECT_SIGNAL_INFO.
639
640 2020-09-16 John Baldwin <jhb@FreeBSD.org>
641
642 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
643 sysctl and remove procfs fallback.
644
645 2020-09-16 John Baldwin <jhb@FreeBSD.org>
646
647 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
648 * fbsd-nat.h: Likewise.
649
650 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
651
652 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
653 argument.
654
655 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
656
657 * ada-lang.c (ada_language_data): Delete.
658 (ada_language): Remove references to ada_language_data.
659 * c-lang.c (c_language_data): Delete.
660 (c_language): Remove references to c_language_data.
661 (cplus_language_data): Delete.
662 (cplus_language): Remove references to cplus_language_data.
663 (asm_language_data): Delete.
664 (asm_language): Remove references to asm_language_data.
665 (minimal_language_data): Delete.
666 (minimal_language): Remove references to minimal_language_data.
667 * d-lang.c (d_language_data): Delete.
668 (d_language): Remove references to d_language_data.
669 * f-lang.c (f_language_data): Delete.
670 (f_language): Remove references to f_language_data.
671 * go-lang.c (go_language_data): Delete.
672 (go_language): Remove references to go_language_data.
673 * language.c (unknown_language_data): Delete.
674 (unknown_language): Remove references to unknown_language_data.
675 (auto_language_data): Delete.
676 (auto_language): Remove references to auto_language_data.
677 * language.h (language_data): Delete struct.
678 (language_defn): No longer inherit from language_data.
679 * m2-lang.c (m2_language_data): Delete.
680 (m2_language): Remove references to m2_language_data.
681 * objc-lang.c (objc_language_data): Delete.
682 (objc_language): Remove references to objc_language_data.
683 * opencl-lang.c (opencl_language_data): Delete.
684 (opencl_language): Remove references to opencl_language_data.
685 * p-lang.c (pascal_language_data): Delete.
686 (pascal_language): Remove references to pascal_language_data.
687 * rust-lang.c (rust_language_data): Delete.
688 (rust_language): Remove references to rust_language_data.
689
690 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
691
692 * ada-lang.c (ada_language_data): Remove la_op_print_tab
693 initializer.
694 (ada_language::opcode_print_table): New member function.
695 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
696 (c_language::opcode_print_table): New member function.
697 (cplus_language_data): Remove la_op_print_tab initializer.
698 (cplus_language::opcode_print_table): New member function.
699 (asm_language_data): Remove la_op_print_tab initializer.
700 (asm_language::opcode_print_table): New member function.
701 (minimal_language_data): Remove la_op_print_tab initializer.
702 (minimal_language::opcode_print_table): New member function.
703 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
704 (d_language::opcode_print_table): New member function.
705 * expprint.c (print_subexp_standard): Update call to
706 opcode_print_table.
707 (op_string): Likewise.
708 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
709 (f_language::opcode_print_table): New member function.
710 * go-lang.c (go_language_data): Remove la_op_print_tab
711 initializer.
712 (go_language::opcode_print_table): New member function.
713 * language.c (unknown_language_data): Remove la_op_print_tab
714 initializer.
715 (unknown_language::opcode_print_table): New member function.
716 (auto_language_data): Remove la_op_print_tab initializer.
717 (auto_language::opcode_print_table): New member function.
718 * language.h (language_data): Remove la_op_print_tab field.
719 (language_defn::opcode_print_table): Declare new member function.
720 * m2-lang.c (m2_language_data): Remove la_op_print_tab
721 initializer.
722 (m2_language::opcode_print_table): New member function.
723 * objc-lang.c (objc_language_data): Remove la_op_print_tab
724 initializer.
725 (objc_language::opcode_print_table): New member function.
726 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
727 initializer.
728 (opencl_language::opcode_print_table): New member function.
729 * p-lang.c (pascal_language_data): Remove la_op_print_tab
730 initializer.
731 (pascal_language::opcode_print_table): New member function.
732 * rust-lang.c (rust_language_data): Remove la_op_print_tab
733 initializer.
734 (rust_language::opcode_print_table): New member function.
735
736 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
737
738 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
739 (ada_language::expression_ops): New member function.
740 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
741 (c_language::expression_ops): New member function.
742 (cplus_language_data): Remove la_exp_desc initializer.
743 (cplus_language::expression_ops): New member function.
744 (asm_language_data): Remove la_exp_desc initializer.
745 (asm_language::expression_ops): New member function.
746 (minimal_language_data): Remove la_exp_desc initializer.
747 (minimal_language::expression_ops): New member function.
748 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
749 (d_language::expression_ops): New member function.
750 * eval.c (evaluate_subexp): Update call to expression_ops.
751 * expprint.c (print_subexp): Likewise.
752 (op_name): Likewise.
753 (dump_subexp_body): Likewise.
754 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
755 (f_language::expression_ops): New member function.
756 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
757 (go_language::expression_ops): New member function.
758 * language.c (language_defn::expression_ops): New function.
759 (unknown_language_data): Remove la_exp_desc initializer.
760 (auto_language_data): Likewise.
761 * language.h (language_data): Remove la_exp_desc field.
762 (language_defn::expression_ops): Declare new member function.
763 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
764 (m2_language::expression_ops): New member function.
765 * objc-lang.c (objc_language_data): Remove la_exp_desc
766 initializer.
767 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
768 initializer.
769 (opencl_language::expression_ops): New member function.
770 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
771 * parse.c (operator_length): Update call to expression_ops.
772 (exp_iterate): Likewise.
773 * rust-lang.c (rust_language_data): Remove la_exp_desc
774 initializer.
775 (ruse_language::expression_ops): New member function.
776
777 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
778
779 * ada-lang.c (ada_language_data): Remove la_varobj_ops
780 initializer.
781 (ada_language::varobj_ops): New member function.
782 * c-lang.c (c_language_data): Remove la_varobj_ops
783 initializer.
784 (cplus_language_data): Likewise.
785 (cplus_language::varobj_ops): New member function.
786 (asm_language_data): Remove la_varobj_ops initializer.
787 (minimal_language_data): Likewise.
788 * d-lang.c (d_language_data): Likewise.
789 * f-lang.c (f_language_data): Likewise.
790 * go-lang.c (go_language_data): Likewise.
791 * language.c (language_defn::varobj_ops): New function.
792 (unknown_language_data): Remove la_varobj_ops
793 initializer.
794 (auto_language_data): Likewise.
795 * language.h (language_data): Remove la_varobj_ops field.
796 (language_defn::varobj_ops): Declare new member function.
797 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
798 * objc-lang.c (objc_language_data): Likewise.
799 * opencl-lang.c (opencl_language_data): Likewise.
800 * p-lang.c (pascal_language_data): Likewise.
801 * rust-lang.c (rust_language_data): Likewise.
802 * varobj.c (varobj_create): Update call to varobj_ops.
803 * varobj.h (default_varobj_ops): Delete define.
804
805 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
806
807 * ada-lang.c (ada_language_data): Remove la_macro_expansion
808 initializer.
809 * c-lang.c (c_language_data): Likewise.
810 (c_language::macro_expansion): New member function.
811 (cplus_language_data): Likewise.
812 (cplus_language::macro_expansion): New member function.
813 (asm_language_data): Likewise.
814 (asm_language::macro_expansion): New member function.
815 (minimal_language_data): Likewise.
816 (minimal_language::macro_expansion): New member function.
817 * d-lang.c (d_language_data): Remove la_macro_expansion
818 initializer.
819 * f-lang.c (f_language_data): Likewise.
820 * go-lang.c (go_language_data): Likewise.
821 * language.c (unknown_language_data): Likewise.
822 (auto_language_data): Likewise.
823 * language.h (language_data): Remove la_macro_expansion field.
824 (language_defn::macro_expansion): New member function.
825 * m2-lang.c (m2_language_data): Remove la_macro_expansion
826 initializer.
827 * objc-lang.c (objc_language_data): Likewise.
828 (objc_language::macro_expansion): New member function.
829 * opencl-lang.c (opencl_language_data): Likewise.
830 (opencl_language::macro_expansion): New member function.
831 * p-lang.c (pascal_language_data): Remove la_macro_expansion
832 initializer.
833 * rust-lang.c (rust_language_data): Likewise.
834 * symtab.c (default_collect_symbol_completion_matches_break_on):
835 Update call to macro_expansion.
836
837 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
838
839 * ada-lang.c (ada_language_data): Remove la_array_ordering
840 initializer.
841 * c-lang.c (c_language_data): Likewise.
842 (cplus_language_data): Likewise.
843 (asm_language_data): Likewise.
844 (minimal_language_data): Likewise.
845 * d-lang.c (d_language_data): Likewise.
846 * dwarf2/read.c (read_array_order): Update for call to
847 array_ordering.
848 * f-lang.c (f_language_data): Remove la_array_ordering
849 initializer.
850 (f_language::array_ordering): New member function.
851 * go-lang.c (go_language_data): Remove la_array_ordering
852 initializer.
853 * language.c (unknown_language_data): Likewise.
854 (auto_language_data): Likewise.
855 * language.h (language_data): Delete la_array_ordering field.
856 (language_defn::array_ordering): New member function.
857 * m2-lang.c (m2_language_data): Remove la_array_ordering
858 initializer.
859 * objc-lang.c (objc_language_data): Likewise.
860 * opencl-lang.c (opencl_language_data): Likewise.
861 * p-lang.c (pascal_language_data): Likewise.
862 * rust-lang.c (rust_language_data): Likewise.
863
864 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
865
866 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
867 initializer.
868 * c-lang.c (c_language_data): Likewise.
869 (cplus_language_data): Likewise.
870 (asm_language_data): Likewise.
871 (minimal_language_data): Likewise.
872 * d-lang.c (d_language_data): Likewise.
873 * f-lang.c (f_language_data): Likewise.
874 (f_language::case_sensitivity): New member function.
875 * go-lang.c (go_language_data): Remove la_case_sensitivity
876 initializer.
877 * language.c (enum case_mode): Moved here from language.h.
878 (case_mode): Make static.
879 (show_case_command): Update for case_sensitivity being a method.
880 (set_case_command): Likewise.
881 (set_range_case): Likewise.
882 (unknown_language_data): Remove la_case_sensitivity initializer.
883 (auto_language_data): Likewise.
884 * language.h (case_mode): Delete, move enum declaration to
885 language.c.
886 (language_data): Delete la_case_sensitivity field.
887 (language_defn::case_sensitivity): New member function.
888 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
889 initializer.
890 * objc-lang.c (objc_language_data): Likewise.
891 * opencl-lang.c (opencl_language_data): Likewise.
892 * p-lang.c (pascal_language_data): Likewise.
893 * rust-lang.c (rust_language_data): Likewise.
894
895 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
896
897 * ada-lang.c (ada_language_data): Remove la_range_check
898 initializer.
899 * c-lang.c (c_language_data): Likewise.
900 (cplus_language_data): Likewise.
901 (asm_language_data): Likewise.
902 (minimal_language_data): Likewise.
903 * d-lang.c (d_language_data): Likewise.
904 * f-lang.c (f_language_data): Likewise.
905 (f_language::range_checking_on_by_default): New member function.
906 * go-lang.c (go_language_data): Remove la_range_check initializer.
907 * language.c (enum range_mode): Moved here from language.h.
908 (range_mode): Made static.
909 (show_range_command): Update to use
910 range_checking_on_by_default.
911 (set_range_command): Likewise.
912 (set_range_case): Likewise.
913 (unknown_language_data): Remove la_range_check initializer.
914 (auto_language_data): Likewise.
915 * language.h (range_mode): Delete. Enum definition moved to
916 language.c.
917 (language_data): Remove la_range_check field.
918 (language_defn::range_checking_on_by_default): New member
919 function.
920 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
921 (m2_language::range_checking_on_by_default): New member function.
922 * objc-lang.c (objc_language_data): Remove la_range_check
923 initializer.
924 * opencl-lang.c (opencl_language_data): Likewise.
925 * p-lang.c (pascal_language_data): Likewise.
926 (pascal_language::range_checking_on_by_default): New member
927 function.
928 * rust-lang.c (rust_language_data): Remove la_range_check
929 initializer.
930 (rust_language::range_checking_on_by_default): New member
931 function.
932
933 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
934
935 * dwarf2/read.c (dwarf2_physname): Remove special case for
936 language_go.
937 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
938 member function.
939
940 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
941
942 * ada-lang.c (ada_language_data): Remove
943 la_store_sym_names_in_linkage_form_p initializer.
944 (ada_language::store_sym_names_in_linkage_form_p): New member
945 function.
946 * c-lang.c (c_language_data): Remove
947 la_store_sym_names_in_linkage_form_p initializer.
948 (c_language::store_sym_names_in_linkage_form_p): New member
949 function.
950 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
951 initializer.
952 (asm_language_data): Likewise.
953 (asm_language::store_sym_names_in_linkage_form_p): New member
954 function.
955 (minimal_language_data): Remove
956 la_store_sym_names_in_linkage_form_p initializer.
957 (minimal_language::store_sym_names_in_linkage_form_p): New member
958 function.
959 * d-lang.c (d_language_data): Remove
960 la_store_sym_names_in_linkage_form_p initializer.
961 * dwarf2/read.c (dwarf2_physname): Update call to
962 store_sym_names_in_linkage_form_p.
963 * f-lang.c (f_language_data): Remove
964 la_store_sym_names_in_linkage_form_p initializer.
965 * go-lang.c (go_language_data): Remove
966 la_store_sym_names_in_linkage_form_p initializer.
967 * language.c (unknown_language_data): Remove
968 la_store_sym_names_in_linkage_form_p initializer.
969 (unknown_language::store_sym_names_in_linkage_form_p): New member
970 function.
971 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
972 initializer.
973 (auto_language::store_sym_names_in_linkage_form_p): New member
974 function.
975 * language.h (language_data): Remove
976 la_store_sym_names_in_linkage_form_p member variable.
977 (language_defn::store_sym_names_in_linkage_form_p): New member
978 function.
979 * m2-lang.c (m2_language_data): Remove
980 la_store_sym_names_in_linkage_form_p initializer.
981 * objc-lang.c (objc_language_data): Likewise.
982 * opencl-lang.c (opencl_language_data): Likewise.
983 * p-lang.c (pascal_language_data): Likewise.
984 * rust-lang.c (rust_language_data): Likewise.
985
986 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
987
988 * ada-lang.c (ada_language_data): Remove string_lower_bound
989 initializer.
990 * c-lang.c (c_language_data): Likewise.
991 (cplus_language_data): Likewise.
992 (asm_language_data): Likewise.
993 (minimal_language_data): Likewise.
994 * d-lang.c (d_language_data): Likewise.
995 * f-lang.c (f_language_data): Likewise.
996 * go-lang.c (go_language_data): Likewise.
997 * language.c (unknown_language_data): Likewise.
998 (auto_language_data): Likewise.
999 * language.h (language_data): Remove string_lower_bound field.
1000 (language_defn::string_lower_bound): New member function.
1001 * m2-lang.c (m2_language_data): Remove string_lower_bound
1002 initializer.
1003 (m2_language::string_lower_bound): New member function.
1004 * objc-lang.c (objc_language_data): Remove string_lower_bound
1005 initializer.
1006 * opencl-lang.c (opencl_language_data): Likewise.
1007 * p-lang.c (pascal_language_data): Likewise.
1008 * rust-lang.c (rust_language_data): Likewise.
1009 * valops.c (value_cstring): Update call to string_lower_bound.
1010 (value_string): Likewise.
1011 * value.c (allocate_repeated_value): Likewise.
1012
1013 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1014
1015 * valops.c (value_repeat): Fix incorrect argument name in comment.
1016
1017 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1018
1019 * ada-lang.c (ada_language_data): Remove c_style_arrays
1020 initializer.
1021 (ada_language::c_style_arrays_p): New member fuction.
1022 * c-lang.c (c_language_data): Remove c_style_arrays
1023 initializer.
1024 (cplus_language_data): Likewise.
1025 (asm_language_data): Likewise.
1026 (minimal_language_data): Likewise.
1027 * d-lang.c (d_language_data): Likewise.
1028 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
1029 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
1030 (f_language::c_style_arrays_p): New member function.
1031 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
1032 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
1033 * language.c (unknown_language_data): Remove c_style_arrays
1034 initializer.
1035 (auto_language_data): Likewise.
1036 * language.h (language_data): Remove c_style_arrays field.
1037 (language_defn::c_style_arrays_p): New member function.
1038 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
1039 (m2_language::c_style_arrays_p): New member function.
1040 * objc-lang.c (objc_language_data): Remove c_style_arrays
1041 initializer.
1042 * opencl-lang.c (opencl_language_data): Likewise.
1043 * p-lang.c (pascal_language_data): Likewise.
1044 * rust-lang.c (rust_language_data): Likewise.
1045 * valarith.c (value_subscript): Update call to c_style_arrays_p,
1046 and update local variable to a bool.
1047 * valops.c (value_cast): Update call to c_style_arrays_p.
1048 (value_array): Likewise.
1049 * value.c (coerce_array): Likewise.
1050
1051 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1052
1053 * ada-lang.c (ada_language_data): Remove la_language initializer.
1054 * c-lang.c (c_language_data): Likewise.
1055 (cplus_language_data): Likewise.
1056 (asm_language_data): Likewise.
1057 (minimal_language_data): Likewise.
1058 * d-lang.c (d_language_data): Likewise.
1059 * f-lang.c (f_language_data): Likewise.
1060 * go-lang.c (go_language_data): Likewise.
1061 * language.c (unknown_language_data): Likewise.
1062 (auto_language_data): Likewise.
1063 * language.h (language_data): Remove la_language field.
1064 (language_defn::language_defn): Initialise la_language field.
1065 (language_defn::la_language): New member variable.
1066 * m2-lang.c (m2_language_data): Remove la_language field.
1067 * objc-lang.c (objc_language_data): Likewise.
1068 * opencl-lang.c (opencl_language_data): Likewise.
1069 * p-lang.c (pascal_language_data): Likewise.
1070 * rust-lang.c (rust_language_data): Likewise.
1071
1072 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1073
1074 * ada-lang.c (ada_extensions): Delete, moved into
1075 ada_language::filename_extensions.
1076 (ada_language_data): Remove la_filename_extensions initializer.
1077 (ada_language::filename_extensions): New member function.
1078 * c-lang.c (c_extensions): Delete, moved into
1079 c_language::filename_extensions.
1080 (c_language_data): Remove la_filename_extensions initializer.
1081 (c_language::filename_extensions): New member function.
1082 (cplus_extensions): Delete, moved into
1083 cplus_language::filename_extensions.
1084 (cplus_language_data): Remove la_filename_extensions initializer.
1085 (cplus_language::filename_extensions): New member function.
1086 (asm_extensions): Delete, moved into
1087 asm_language::filename_extensions.
1088 (asm_language_data): Remove la_filename_extensions initializer.
1089 (asm_language::filename_extensions): New member function.
1090 (minimal_language_data): Remove la_filename_extensions
1091 initializer.
1092 * d-lang.c (d_extensions): Delete, moved into
1093 d_language::filename_extensions.
1094 (d_language_data): Remove la_filename_extensions initializer.
1095 (d_language::filename_extensions): New member function.
1096 * f-lang.c (f_extensions): Delete, moved into
1097 f_language::filename_extensions.
1098 (f_language_data): Remove la_filename_extensions initializer.
1099 (f_language::filename_extensions): New member function.
1100 * go-lang.c (go_language_data): Remove la_filename_extensions
1101 initializer.
1102 * language.c (add_set_language_command): Update now that
1103 filename_extensions returns a vector.
1104 (unknown_language_data): Remove la_filename_extensions
1105 initializer.
1106 (auto_language_data): Likewise.
1107 * language.h (language_data): Remove la_filename_extensions field.
1108 (language_defn::filename_extensions): New member function.
1109 * m2-lang.c (m2_language_data): Remove la_filename_extensions
1110 initializer.
1111 * objc-lang.c (objc_extensions): Delete, moved into
1112 objc_language::filename_extensions.
1113 (objc_language_data): Remove la_filename_extensions initializer.
1114 (objc_language::filename_extensions): New member function.
1115 * opencl-lang.c (opencl_language_data): Remove
1116 la_filename_extensions initializer.
1117 * p-lang.c (pascal_extensions): Delete, moved into
1118 pascal_language::filename_extensions.
1119 (pascal_language_data): Remove la_filename_extensions initializer.
1120 (pascal_language::filename_extensions): New member function.
1121 * rust-lang.c (rust_extensions): Delete, moved into
1122 rust_language::filename_extensions.
1123 (rust_language_data): Remove la_filename_extensions initializer.
1124 (rust_language::filename_extensions): New member function.
1125 * symfile.c (add_filename_language): Add new assert.
1126
1127 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1128
1129 * ada-lang.c (ada_language_data): Remove la_name and
1130 la_natural_name initializers.
1131 (ada_language::name): New member function.
1132 (ada_language::natural_name): New member function.
1133 * c-lang.c (c_language_data): Remove la_name and
1134 la_natural_name initializers.
1135 (c_language::name): New member function.
1136 (c_language::natural_name): New member function.
1137 (cplus_language_data): Remove la_name and
1138 la_natural_name initializers.
1139 (cplus_language::name): New member function.
1140 (cplus_language::natural_name): New member function.
1141 (asm_language_data): Remove la_name and
1142 la_natural_name initializers.
1143 (asm_language::name): New member function.
1144 (asm_language::natural_name): New member function.
1145 (minimal_language_data): Remove la_name and
1146 la_natural_name initializers.
1147 (minimal_language::name): New member function.
1148 (minimal_language::natural_name): New member function.
1149 * compile/compile.c (compile_to_object): Update call to
1150 lanugage_defn::name.
1151 * d-lang.c (d_language_data): Remove la_name and
1152 la_natural_name initializers.
1153 (d_language::name): New member function.
1154 (d_language::natural_name): New member function.
1155 * expprint.c (print_subexp_standard): Update call to
1156 language_defn::name.
1157 (dump_raw_expression): Likewise
1158 (dump_prefix_expression): Likewise.
1159 * f-lang.c (f_language_data): Remove la_name and
1160 la_natural_name initializers.
1161 (f_language::name): New member function.
1162 (f_language::natural_name): New member function.
1163 * go-lang.c (go_language_data): Remove la_name and
1164 la_natural_name initializers.
1165 (go_language::name): New member function.
1166 (go_language::natural_name): New member function.
1167 * language.c (show_language_command): Update call to
1168 language_defn::name.
1169 (set_language_command): Likewise.
1170 (language_enum): Likewise.
1171 (language_str): Likewise.
1172 (add_set_language_command): Likewise, use
1173 language_defn::natural_name in the doc string.
1174 (unknown_language_data): Remove la_name and
1175 la_natural_name initializers.
1176 (unknown_language::name): New member function.
1177 (unknown_language::natural_name): New member function.
1178 (auto_language_data): Remove la_name and
1179 la_natural_name initializers.
1180 (auto_language::name): New member function.
1181 (auto_language::natural_name): New member function.
1182 (language_lookup_primitive_type_as_symbol): Update call to
1183 language_defn::name.
1184 * language.h (language_data): Remove la_name and la_natural_name
1185 member variables.
1186 (language_defn::name): New member function.
1187 (language_defn::natural_name): New member function.
1188 * m2-lang.c (m2_language_data): Remove la_name and
1189 la_natural_name initializers.
1190 (m2_language::name): New member function.
1191 (m2_language::natural_name): New member function.
1192 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
1193 language_defn::natural_name.
1194 * objc-lang.c (objc_language_data): Remove la_name and
1195 la_natural_name initializers.
1196 (objc_language::name): New member function.
1197 (objc_language::natural_name): New member function.
1198 * opencl-lang.c (opencl_language_data): Remove la_name and
1199 la_natural_name initializers.
1200 (opencl_language::name): New member function.
1201 (opencl_language::natural_name): New member function.
1202 * p-lang.c (pascal_language_data): Remove la_name and
1203 la_natural_name initializers.
1204 (pascal_language::name): New member function.
1205 (pascal_language::natural_name): New member function.
1206 * rust-lang.c (rust_language_data): Remove la_name and
1207 la_natural_name initializers.
1208 (rust_language::name): New member function.
1209 (rust_language::natural_name): New member function.
1210 * symtab.c (lookup_language_this): Update call to
1211 language_defn::name.
1212
1213 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1214
1215 * ada-lang.c (ada_language_data): Remove la_name_of_this
1216 initializer.
1217 * ax-gdb.c (gen_expr): Update call to name_of_this.
1218 * c-exp.y (classify_name): Likewise.
1219 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1220 (cplus_language_data): Likewise.
1221 (cplus_language::name_of_this): New member function.
1222 (asm_language_data): Remove la_name_of_this initializer.
1223 (minimal_language_data): Likewise.
1224 * d-lang.c (d_language_data): Likewise.
1225 (d_language::name_of_this): New member function.
1226 * expprint.c (print_subexp_standard): Update call to name_of_this.
1227 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1228 * go-lang.c (go_language_data): Likewise.
1229 * language.c (unknown_language_data): Likewise.
1230 (unknown_language::name_of_this): New member function.
1231 (auto_language_data): Remove la_name_of_this initializer.
1232 (auto_language::name_of_this): New member function.
1233 * language.h (language_data): Delete la_name_of_this member
1234 variable.
1235 (language_defn::name_of_this): New member function.
1236 * m2-lang.c (m2_language_data): Remove la_name_of_this
1237 initializer.
1238 * objc-lang.c (objc_language_data): Likewise.
1239 (objc_language::name_of_this): New member function.
1240 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1241 initializer.
1242 * p-lang.c (pascal_language_data): Likewise.
1243 (pascal_language::name_of_this): New member function.
1244 * rust-lang.c (rust_language_data): Remove la_name_of_this
1245 initializer.
1246 * symtab.c (lookup_language_this): Update call to name_of_this.
1247 (lookup_symbol_aux): Likewise.
1248 * valops.c (value_of_this): Likewise.
1249
1250 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1251
1252 * ada-lang.c (ada_language_data): Remove
1253 la_struct_too_deep_ellipsis initializer.
1254 (ada_language::struct_too_deep_ellipsis): New member function.
1255 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1256 initializer.
1257 (cplus_language_data): Likewise.
1258 (asm_language_data): Likewise.
1259 (minimal_language_data): Likewise.
1260 * cp-valprint.c (cp_print_value): Update call to
1261 struct_too_deep_ellipsis.
1262 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1263 initializer.
1264 * f-lang.c (f_language_data): Likewise.
1265 (f_language::struct_too_deep_ellipsis): New member function.
1266 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1267 initializer.
1268 * language.c (unknown_language_data): Likewise.
1269 (auto_language_data): Likewise.
1270 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1271 member variable.
1272 (language_defn::struct_too_deep_ellipsis): New member function.
1273 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1274 initializer.Q
1275 * objc-lang.c (objc_language_data): Likewise.
1276 * opencl-lang.c (opencl_language_data): Likewise.
1277 * p-lang.c (pascal_language_data): Likewise.
1278 * rust-lang.c (rust_language_data): Likewise.
1279 * valprint.c (val_print_check_max_depth): Update call to
1280 struct_too_deep_ellipsis.
1281
1282 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1283
1284 * MAINTAINERS (Write After Approval): Add myself.
1285
1286 2020-09-15 Tom Tromey <tom@tromey.com>
1287
1288 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1289 Remove.
1290
1291 2020-09-15 Tom Tromey <tom@tromey.com>
1292
1293 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1294 and TYPE_CODE_METHODPTR cases.
1295 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1296 (c_value_print_inner): Update.
1297 * valprint.c (generic_value_print_memberptr): New function, from
1298 c_value_print_memberptr.
1299 (generic_value_print): Use it. Call cplus_print_method_ptr.
1300
1301 2020-09-15 Tom Tromey <tromey@adacore.com>
1302
1303 * python/python-internal.h (PyInt_FromLong): Remove define.
1304 * python/py-value.c (convert_value_from_python): Use
1305 gdb_py_object_from_longest.
1306 * python/py-type.c (typy_get_code): Use
1307 gdb_py_object_from_longest.
1308 * python/py-symtab.c (salpy_get_line): Use
1309 gdb_py_object_from_longest.
1310 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1311 gdb_py_object_from_longest.
1312 * python/py-record.c (recpy_gap_reason_code): Use
1313 gdb_py_object_from_longest.
1314 * python/py-record-btrace.c (recpy_bt_insn_size)
1315 (recpy_bt_func_level, btpy_list_count): Use
1316 gdb_py_object_from_longest.
1317 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1318 gdb_py_object_from_longest. Fix error handling.
1319 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1320 gdb_py_object_from_longest.
1321 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1322 gdb_py_object_from_longest.
1323 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1324 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1325 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1326
1327 2020-09-15 Tom Tromey <tromey@adacore.com>
1328
1329 * python/python.c (gdbpy_parameter_value): Use
1330 gdb_py_object_from_ulongest.
1331
1332 2020-09-15 Tom Tromey <tromey@adacore.com>
1333
1334 * python/py-infevents.c (create_register_changed_event_object):
1335 Use gdb_py_object_from_longest.
1336 * python/py-exitedevent.c (create_exited_event_object): Use
1337 gdb_py_object_from_longest.
1338
1339 2020-09-15 Tom Tromey <tromey@adacore.com>
1340
1341 * python/python.c (gdbpy_parameter_value): Use
1342 gdb_py_object_from_longest.
1343 * python/py-type.c (convert_field, typy_range): Use
1344 gdb_py_object_from_longest.
1345 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1346 gdb_py_object_from_longest.
1347 * python/py-lazy-string.c (stpy_get_length): Use
1348 gdb_py_object_from_longest.
1349 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1350 gdb_py_object_from_longest.
1351 * python/py-infevents.c (create_memory_changed_event_object): Use
1352 gdb_py_object_from_longest.
1353 * python/py-inferior.c (infpy_get_num): Use
1354 gdb_py_object_from_longest.
1355 (infpy_get_pid): Likewise.
1356
1357 2020-09-15 Tom Tromey <tromey@adacore.com>
1358
1359 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1360 defines.
1361 * python/py-value.c (valpy_long): Use
1362 gdb_py_object_from_ulongest.
1363 * python/py-symtab.c (salpy_get_pc): Use
1364 gdb_py_object_from_ulongest.
1365 (salpy_get_last): Likewise.
1366 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1367 gdb_py_object_from_ulongest.
1368 * python/py-lazy-string.c (stpy_get_address): Use
1369 gdb_py_object_from_ulongest.
1370 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1371 * python/py-arch.c (archpy_disassemble): Use
1372 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1373 error handling.
1374
1375 2020-09-15 Tom Tromey <tromey@adacore.com>
1376
1377 * python/python-internal.h (gdb_py_long_from_longest): Remove
1378 defines.
1379 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1380 * python/py-type.c (convert_field, typy_get_sizeof): Use
1381 gdb_py_object_from_longest.
1382 * python/py-record-btrace.c (btpy_list_index): Use
1383 gdb_py_object_from_longest.
1384
1385 2020-09-15 Tom Tromey <tromey@adacore.com>
1386
1387 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1388 * python/py-record.c (recpy_element_number): Use
1389 gdb_py_object_from_longest.
1390 (recpy_gap_number): Likewise.
1391
1392 2020-09-15 Tom Tromey <tromey@adacore.com>
1393
1394 * top.c (ui::ui): Update.
1395 (highest_ui_num): Remove.
1396 * top.h (struct ui) <num>: Remove.
1397
1398 2020-09-15 Tom Tromey <tromey@adacore.com>
1399
1400 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1401 * ui-style.c (ansi_regex_text): Now array.
1402 * rust-exp.y (number_regex_text): Now array.
1403 * linespec.c (linespec_quote_characters): Now array.
1404 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1405 Now arrays.
1406
1407 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1408
1409 * debuginfod-support.c (debuginfod_client_deleter): New.
1410 (debuginfod_client_up): New.
1411 (debuginfod_init): Return debuginfod_client_up.
1412 (debuginfod_source_query): Adjust.
1413 (debuginfod_debuginfo_query): Adjust.
1414
1415 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1416
1417 * debuginfod-support.c (debuginfod_source_query): Use
1418 make_unique_xstrdup.
1419
1420 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1421
1422 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1423 with `type::instance_flags`.
1424
1425 2020-09-14 Michael Mullin <masmullin@gmail.com>
1426
1427 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1428 Remove baton parameter.
1429
1430 2020-09-14 Pedro Alves <pedro@palves.net>
1431
1432 * Makefile.in (SELFTESTS_SRCS): Add
1433 unittests/enum-flags-selftests.c.
1434 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1435 btrace_function_flags instead of enum btrace_function_flag.
1436 * compile/compile-c-types.c (convert_qualified): Use
1437 enum_flags::raw.
1438 * compile/compile-cplus-symbols.c (convert_one_symbol)
1439 (convert_symbol_bmsym):
1440 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1441 (compile_cplus_convert_struct_or_union_methods)
1442 (compile_cplus_instance::convert_qualified_base):
1443 * go-exp.y (parse_string_or_char): Add cast to int.
1444 * unittests/enum-flags-selftests.c: New file.
1445 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1446 type to btrace_thread_flags from btrace_thread_flag.
1447 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1448 local's type to btrace_thread_flags from btrace_thread_flag. Add
1449 cast in DEBUG call.
1450
1451 2020-09-14 Pedro Alves <pedro@palves.net>
1452
1453 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1454 * gdbtypes.c (address_space_name_to_int): Rename to ...
1455 (address_space_name_to_type_instance_flags): ... this.
1456 (address_space_int_to_name): Rename to ...
1457 (address_space_type_instance_flags_to_name): ... this.
1458 * gdbtypes.h (address_space_name_to_int): Rename to ...
1459 (address_space_name_to_type_instance_flags): ... this.
1460 (address_space_int_to_name): Rename to ...
1461 (address_space_type_instance_flags_to_name): ... this.
1462 * type-stack.c (type_stack::insert): Adjust to rename.
1463 * type-stack.h (type_stack::insert): Likewise.
1464
1465 2020-09-14 Pedro Alves <pedro@palves.net>
1466 Andrew Burgess <andrew.burgess@embecosm.com>
1467
1468 * avr-tdep.c (avr_address_class_type_flags): Return
1469 type_instance_flags.
1470 (avr_address_class_type_flags_to_name): Take a
1471 type_instance_flags.
1472 (avr_address_class_name_to_type_flags): Return bool and take a
1473 type_instance_flags.
1474 * d-lang.c (build_d_types): Use type::set_instance_flags.
1475 * ft32-tdep.c (ft32_address_class_type_flags): Return
1476 type_instance_flags.
1477 (ft32_address_class_type_flags_to_name): Take a
1478 type_instance_flags.
1479 (ft32_address_class_name_to_type_flags): Return bool and take a
1480 type_instance_flags.
1481 (ft32_gdbarch_init): Use type::set_instance_flags.
1482 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1483 * gdbarch.h, gdbarch.c: Regenerate.
1484 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1485 (address_class_name_to_type_flags): Use type_instance_flags and
1486 bool.
1487 * gdbtypes.c (address_space_name_to_int)
1488 (address_space_int_to_name, make_qualified_type): Use
1489 type_instance_flags.
1490 (make_qualified_type): Use type_instance_flags and
1491 type::set_instance_flags.
1492 (make_type_with_address_space, make_cv_type, make_vector_type)
1493 (check_typedef): Use type_instance_flags.
1494 (recursive_dump_type): Cast type_instance_flags to unsigned for
1495 printing.
1496 (copy_type_recursive): Use type::set_instance_flags.
1497 (gdbtypes_post_init): Use type::set_instance_flags.
1498 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1499 <m_instance_flags>: ... this.
1500 <instance_flags, set_instance_flags>: New methods.
1501 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1502 (SET_TYPE_INSTANCE_FLAGS): New.
1503 (address_space_name_to_int, address_space_int_to_name)
1504 (make_type_with_address_space): Pass flags using
1505 type_instance_flags instead of int.
1506 * stabsread.c (cleanup_undefined_types_noname): Use
1507 type::set_instance_flags.
1508 * s390-tdep.c (s390_address_class_type_flags): Return
1509 type_instance_flags.
1510 (s390_address_class_type_flags_to_name): Take a
1511 type_instance_flags.
1512 (s390_address_class_name_to_type_flags): Return bool and take a
1513 type_instance_flags.
1514 * type-stack.c (type_stack::follow_types): Use
1515 type_instance_flags.
1516 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1517
1518 2020-09-14 Tom Tromey <tromey@adacore.com>
1519
1520 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1521 * x86-tdep.c (x86_is_thunk_register_name)
1522 (x86_in_indirect_branch_thunk): Update.
1523 * sparc64-tdep.c (sparc64_fpu_register_names)
1524 (sparc64_cp0_register_names, sparc64_register_names)
1525 (sparc64_pseudo_register_names): Now const.
1526 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1527 cp0_registers_num>: Now const.
1528 * sparc-tdep.c (sparc_core_register_names)
1529 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1530 (sparc32_pseudo_register_names): Now const.
1531 (validate_tdesc_registers): Update.
1532 * rust-lang.c (rust_extensions): Now const.
1533 * p-lang.c (p_extensions): Now const.
1534 * objc-lang.c (objc_extensions): Now const.
1535 * nto-tdep.c (nto_thread_state_str): Now const.
1536 * moxie-tdep.c (moxie_register_names): Now const.
1537 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1538 Now const.
1539 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1540 (mips_linux_reg_names): Now const.
1541 (mips_gdbarch_init): Update.
1542 * microblaze-tdep.c (microblaze_register_names): Now const.
1543 * m68k-tdep.c (m68k_register_names): Now const.
1544 * m32r-tdep.c (m32r_register_names): Now const.
1545 * ia64-tdep.c (ia64_register_names): Now const.
1546 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1547 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1548 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1549 ymm_avx512_register_names, pkeys_register_names>: Now const.
1550 * i386-tdep.c (i386_register_names, i386_zmm_names)
1551 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1552 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1553 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1554 * f-lang.c (f_extensions): Now const.
1555 * d-lang.c (d_extensions): Now const.
1556 * csky-tdep.c (csky_register_names): Now const.
1557 * charset.c (default_charset_names, charset_enum): Now const.
1558 (_initialize_charset): Update.
1559 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1560 const.
1561 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1562 (bsd_uthread_solib_loaded): Update.
1563 (bsd_uthread_state): Now const.
1564 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1565 (amd64_ymm_avx512_names, amd64_ymmh_names)
1566 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1567 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1568 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1569 (amd64_dword_names): Now const.
1570 * agent.c (can_use_agent_enum): Now const.
1571 * ada-tasks.c (task_states, long_task_states): Now const.
1572 * ada-lang.c (known_runtime_file_name_patterns)
1573 (known_auxiliary_function_name_patterns, attribute_names)
1574 (standard_exc, ada_extensions): Now const.
1575
1576 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1577
1578 * bcache.h (struct bcache) <bcache>: Remove constructor.
1579 <m_hash_function, m_compare_function>: Remove.
1580 <~bcache>: Make virtual.
1581 <compare>: Remove static method, introduce virtual method.
1582 <default_hash>: Remove.
1583 <hash>: New virtual method.
1584 * bcache.c (bcache::expand_hash_table): Update.
1585 (bcache::insert): Update.
1586 (bcache::hash): New.
1587 (bcache::compare): Update comment and parameter names.
1588 * gdbtypes.c (types_deeply_equal): Update.
1589 * psymtab.h (struct psymbol_bcache): New struct.
1590 (class psymtab_storage) <psymtab_storage>: Make default.
1591 <psymbol_cache>: Change type to psymbol_bcache.
1592 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1593 (psymbol_hash): Change to...
1594 (psymbol_bcache::hash): ... this.
1595 (psymbol_compare): Change to...
1596 (psymbol_bcache::compare): ... this.
1597
1598 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1599
1600 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1601 checking for initial lwp.
1602
1603 2020-09-14 Tom Tromey <tromey@adacore.com>
1604
1605 * m68k-tdep.c (m68k_extract_return_value): Use
1606 pointer_result_regnum.
1607 (m68k_store_return_value): Likewise.
1608 (m68k_reg_struct_return_p): Handle vectors and arrays.
1609 (m68k_return_value): Handle arrays.
1610 (m68k_svr4_return_value): Fix single-element aggregate handling.
1611 Handle long double. Adjust for embedded ABI.
1612 (m68k_svr4_init_abi): Set pointer_result_regnum.
1613 (m68k_embedded_init_abi): New function.
1614 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1615 (m68k_osabi_sniffer): New function.
1616 (_initialize_m68k_tdep): Register osabi sniffer.
1617 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1618 member.
1619
1620 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1621
1622 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1623 with gdb::unique_xmalloc_ptr<char>.
1624
1625 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1626
1627 * xml-support.h (xml_fetch_another): Change type to be a
1628 function_view.
1629 (xml_process_xincludes): Remove baton parameter.
1630 (xml_fetch_content_from_file): Change baton parameter to
1631 dirname.
1632 * xml-support.c (struct xinclude_parsing_data)
1633 <xinclude_parsing_data>: Remove baton parameter.
1634 <fetcher_baton>: Remove.
1635 (xinclude_start_include): Adjust.
1636 (xml_process_xincludes): Adjust.
1637 (xml_fetch_content_from_file): Replace baton parameter with
1638 dirname.
1639 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1640 (xml_init_syscalls_info): Use a lambda.
1641 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1642 (file_read_description_xml): Use a lambda.
1643 (fetch_available_features_from_target): Change baton parameter
1644 to target_ops.
1645 (target_read_description_xml): Use a lambda.
1646 (target_fetch_description_xml): Use a lambda.
1647 (string_read_description_xml): Update.
1648
1649 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1650
1651 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1652 uses with type::endianity_is_not_default.
1653
1654 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1655
1656 * gdbtypes.h (struct type) <endianity_is_not_default,
1657 set_endianity_is_not_default>: New methods.
1658 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1659 type::endianity_is_not_default, change all write call sites to
1660 use type::set_endianity_is_not_default.
1661
1662 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1663
1664 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1665 uses with type::is_fixed_instance.
1666
1667 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1668
1669 * gdbtypes.h (struct type) <is_fixed_instance,
1670 set_is_fixed_instance>: New methods.
1671 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1672 write call sites to use type::set_is_fixed_instance.
1673
1674 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1675
1676 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1677 uses with type::is_gnu_ifunc.
1678
1679 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1680
1681 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1682 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1683 use type::set_is_gnu_ifunc.
1684
1685 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1686
1687 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1688 uses with type::stub_is_supported.
1689
1690 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1691
1692 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1693 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1694 use type::set_stub_is_supported.
1695
1696 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1697
1698 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1699 uses with type::is_vector.
1700
1701 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1702
1703 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1704 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1705 use type::set_is_vector.
1706
1707 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1708
1709 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1710 uses with type::has_varargs.
1711
1712 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1713
1714 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1715 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1716 use type::set_has_varargs.
1717
1718 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1719
1720 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1721 uses with type::is_prototyped.
1722
1723 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1724
1725 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1726 New methods.
1727 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1728 call sites to use type::set_is_prototyped.
1729
1730 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1731
1732 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1733 uses with type::target_is_stub.
1734
1735 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1736
1737 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1738 New methods.
1739 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1740 sites to use type::set_target_is_stub.
1741
1742 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1743
1744 * gdbtypes.h (TYPE_STUB): Remove, replace all
1745 uses with type::is_stub.
1746
1747 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1748
1749 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1750 (TYPE_STUB): Use type::is_stub, change all write call sites to
1751 use type::set_is_stub.
1752
1753 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1754
1755 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1756 type::has_no_signedness.
1757
1758 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1759
1760 * gdbtypes.h (struct type) <has_no_signedness,
1761 set_has_no_signedness>: New methods.
1762 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1763 call sites to use type::set_has_no_signedness.
1764
1765 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1766
1767 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1768 type::is_unsigned.
1769
1770 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1771
1772 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1773 methods.
1774 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1775 sites to use type::set_is_unsigned.
1776
1777 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
1778 Adam Renquinha <arenquinha@cimeq.qc.ca>
1779
1780 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1781 pointer and stack frame offset when unwinding.
1782
1783 2020-09-13 Pedro Alves <pedro@palves.net>
1784
1785 * NEWS: Document "-break-insert --qualified".
1786 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1787
1788 2020-09-13 Pedro Alves <pedro@palves.net>
1789
1790 * linespec.c (classify_mtype, compare_msyms): Delete.
1791 (search_minsyms_for_name): Remove classification logic. Instead
1792 filter out trampoline symbols if we also found an external
1793 function of the same name.
1794
1795 2020-09-13 Joel Brobecker <brobecker@adacore.com>
1796
1797 * NEWS: Create a new section for the next release branch.
1798 Rename the section of the current branch, now that it has
1799 been cut.
1800
1801 2020-09-13 Joel Brobecker <brobecker@adacore.com>
1802
1803 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1804 * version.in: Bump version to 11.0.50.DATE-git.
1805
1806 2020-09-12 Joel Brobecker <brobecker@adacore.com>
1807
1808 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1809
1810 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1811 Felix Willgerodt <Felix.Willgerodt@intel.com>
1812
1813 * gdbarch.sh: Added bfloat16 type.
1814 * gdbarch.c: Regenerated.
1815 * gdbarch.h: Regenerated.
1816 * gdbtypes.c (floatformats_bfloat16): New struct.
1817 (gdbtypes_post_init): Add builtin_bfloat16.
1818 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1819 (floatformats_bfloat16): New struct.
1820 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1821 (i386_ymm_type): Add field "v16_bfloat16"
1822 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1823 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1824 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1825 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1826 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1827 * features/i386/64bit-avx512.c: Regenerated.
1828 * features/i386/64bit-sse.xml: Add bfloat16 type.
1829 * features/i386/64bit-sse.c: Regenerated.
1830
1831 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1832
1833 * i386-tdep.c (i386_zmm_type): Fix field names.
1834 (i386_ymm_type): Fix field names.
1835
1836 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1837
1838 * breakpoint.c: Fix typo in the help message of the
1839 "set breakpoint condition-evaluation" command.
1840
1841 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1842
1843 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1844 * (nbsd_nat_target::pid_to_exec_file)
1845 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1846 (nbsd_nat_target::post_startup_inferior)
1847 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1848 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1849 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1850 * (nbsd_thread_lister): Remove.
1851
1852 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1853
1854 * fork-inferior.c (startup_inferior): Avoid double free.
1855
1856 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1857
1858 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1859 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1860
1861 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1862
1863 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1864 * netbsd-nat.c: Include <sys/ptrace.h>.
1865 * (netbsd_nat::enable_proc_events): Add.
1866
1867 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1868
1869 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1870 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1871 (netbsd_nat::for_each_thread): Add.
1872 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1873 "gdbsupport/common-debug.h".
1874 * (netbsd_nat::netbsd_thread_lister)
1875 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1876 (netbsd_nat::for_each_thread): Add.
1877
1878 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1879
1880 * netbsd-nat.h: Include <unistd.h>.
1881 * (netbsd_nat::pid_to_exec_file): Add.
1882 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1883 * (netbsd_nat::pid_to_exec_file) Add.
1884
1885 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1886
1887 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
1888
1889 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1890
1891 * netbsd-nat.h: New file.
1892 * netbsd-nat.c: Likewise.
1893
1894 2020-09-09 Tom Tromey <tromey@adacore.com>
1895
1896 * ada-lang.c (remove_extra_symbols): Do not increment when
1897 removing an element
1898
1899 2020-09-08 Tom Tromey <tromey@adacore.com>
1900
1901 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
1902
1903 2020-09-08 Tom Tromey <tromey@adacore.com>
1904
1905 PR win32/25302:
1906 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
1907 (gdb_bfd_init_data): New function.
1908 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
1909
1910 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1911
1912 * infrun.c (fetch_inferior_event): Use
1913 `switch_to_target_no_thread` to switch the target.
1914
1915 2020-09-06 Tom Tromey <tom@tromey.com>
1916
1917 * symfile.h (dwarf2_free_objfile): Don't declare.
1918
1919 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1920
1921 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
1922 to match 16 byte real/complex type generated by Flang compiler.
1923
1924 2020-09-03 Tom de Vries <tdevries@suse.de>
1925
1926 PR breakpoint/26546
1927 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
1928 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
1929
1930 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
1931
1932 * maint.c (index_digits): New function.
1933 (struct maint_print_section_data): Remove.
1934 (print_bfd_section_info): Remove print_data parameter, add arg
1935 and index_digits.
1936 (print_objfile_section_info): Likewise.
1937 (print_bfd_section_info_maybe_relocated): Likewise (plus
1938 objfile).
1939 (maintenance_info_sections): Adjust calls.
1940
1941 2020-09-02 Tom Tromey <tromey@adacore.com>
1942
1943 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1944 for null pointers.
1945 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1946
1947 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1948
1949 * bcache.h (struct bcache) <insert>: Change type of `added` to
1950 pointer to bool.
1951 * bcache.c (bcache::insert): Likewise.
1952 * gdbtypes.c (check_types_worklist): Adjust.
1953 * psymtab.c (add_psymbol_to_bcache): Adjust.
1954
1955 2020-08-31 Kevin Buettner <kevinb@redhat.com>
1956
1957 * corelow.c (unordered_set): Include.
1958 (class core_target): Add field 'm_core_unavailable_mappings'.
1959 (core_target::build_file_mappings): Print only one warning
1960 per inaccessible file. Add unavailable/broken mappings
1961 to m_core_unavailable_mappings.
1962 (core_target::xfer_partial): Call...
1963 (core_target::xfer_memory_via_mappings): New method.
1964
1965 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1966
1967 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1968 type to bool.
1969
1970 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1971
1972 * dwarf2/read.c (struct field_info): Fix indentation.
1973
1974 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1975
1976 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1977 ordering in comment.
1978 * frame.c (frame_id_eq): Fix indentation.
1979
1980 2020-08-31 Scott Linder <scott@scottlinder.com>
1981 Simon Marchi <simon.marchi@efficios.com>
1982
1983 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1984 inline frame ids in outer frame.
1985
1986 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1987
1988 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1989 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1990 (outer_frame_id): Use FID_STACK_OUTER instead of
1991 FID_STACK_INVALID.
1992 (frame_id_p): Don't check for outer_frame_id.
1993
1994 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1995
1996 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1997 regnum/frame in value. Call allocate_value_lazy.
1998 * frame.c (frame_unwind_register_value): Use
1999 val_print_not_saved.
2000
2001 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2002
2003 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
2004
2005 2020-08-29 Pedro Alves <pedro@palves.net>
2006
2007 * progspace.c (print_program_space): Use all_inferiors. Switch to
2008 the inferior before calling target_pid_to_str.
2009
2010 2020-08-28 Tom Tromey <tom@tromey.com>
2011
2012 * xcoffread.c (xcoff_end_psymtab): Update comment.
2013 * dbxread.c (dbx_end_psymtab): Update comment.
2014
2015 2020-08-28 Tom de Vries <tdevries@suse.de>
2016
2017 PR breakpoint/26544
2018 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
2019 event_location.
2020 (create_breakpoint): Same.
2021 (base_breakpoint_decode_location): Same.
2022 (bkpt_create_sals_from_location): Same.
2023 (bkpt_decode_location): Same.
2024 (bkpt_probe_create_sals_from_location): Same.
2025 (bkpt_probe_decode_location): Same.
2026 (tracepoint_create_sals_from_location): Same.
2027 (tracepoint_decode_location): Same.
2028 (tracepoint_probe_decode_location): Same.
2029 (strace_marker_create_sals_from_location): Same.
2030 (strace_marker_decode_location): Same.
2031 (create_sals_from_location_default): Same.
2032 (decode_location_default): Same.
2033 * breakpoint.h (struct breakpoint_ops): Same.
2034 (create_breakpoint): Same.
2035 * linespec.h (decode_line_full): Same.
2036 * linespec.c (decode_line_full): Same. Throw error if
2037 result.size () == 0.
2038
2039 2020-08-27 Pedro Alves <pedro@palves.net>
2040
2041 PR gdb/26524
2042 * breakpoint.c (until_break_fsm) <location_breakpoint,
2043 caller_breakpoint>: Delete fields.
2044 <breakpoints>: New field.
2045 <until_break_fsm>: Adjust to save a breakpoint vector instead of
2046 two individual breakpoints.
2047 (until_break_fsm::should_stop): Loop over breakpoints in the
2048 breakpoint vector.
2049 (until_break_fsm::clean_up): Adjust to clear the breakpoints
2050 vector.
2051 (until_break_command): Handle location expanding into multiple
2052 sals.
2053
2054 2020-08-27 Pedro Alves <pedro@palves.net>
2055
2056 PR gdb/26523
2057 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
2058 bp_until breakpoints user-specified locations. Update intro
2059 comment.
2060
2061 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
2062
2063 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
2064 gdb_bfd_sections): New.
2065 * maint.c (print_bfd_section_info): Change param type to
2066 maint_print_section_data.
2067 (print_objfile_section_info): Likewise.
2068 (print_bfd_section_info_maybe_relocated): Likewise.
2069 (maintenance_info_sections): Use gdb_bfd_sections.
2070
2071 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2072
2073 * MAINTAINERS: Add ARC target and maintainer.
2074
2075 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
2076
2077 * configure.tgt: ARC support for GNU/Linux.
2078 * Makefile.in (ALL_TARGET_OBJS): Likewise.
2079 * arc-linux-tdep.c: New file.
2080 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
2081 * arc-tdep.c (arc_write_pc): Use it.
2082
2083 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2084
2085 * arc-tdep.c (arc_check_for_hardware_loop): New.
2086 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
2087
2088 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2089
2090 * arc-tdep.h: Include "gdbarch.h".
2091
2092 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2093
2094 * arch/arc.h
2095 (arc_gdbarch_features): New class to stir the selection of target XML.
2096 (arc_create_target_description): Use FEATURES to choose XML target.
2097 (arc_lookup_target_description): Use arc_create_target_description
2098 to create _new_ target descriptions or return the already created
2099 ones if the FEATURES is the same.
2100 * arch/arc.c: Implementation of prototypes described above.
2101 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
2102 (arc_gdbarch_features_init): Initialize the FEATURES struct.
2103 * arc-tdep.c (*_feature_name): Make feature names consistent.
2104 (arc_register_feature): A new struct to hold information about
2105 registers of a particular target/feature.
2106 (arc_check_tdesc_feature): Check if XML provides registers in
2107 compliance with ARC_REGISTER_FEATURE structs.
2108 (arc_update_acc_reg_names): Add aliases for r58 and r59.
2109 (determine_*_reg_feature_set): Which feature name to look for.
2110 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
2111 (mach_type_to_arc_isa): Convert from a set of binutils machine types
2112 to expected ISA enums to be used in arc_gdbarch_features structs.
2113 * features/Makefile (FEATURE_XMLFILES): Add new files.
2114 * gdb/features/arc/v1-aux.c: New file.
2115 * gdb/features/arc/v1-aux.xml: Likewise.
2116 * gdb/features/arc/v1-core.c: Likewise.
2117 * gdb/features/arc/v1-core.xml: Likewise.
2118 * gdb/features/arc/v2-aux.c: Likewise.
2119 * gdb/features/arc/v2-aux.xml: Likewise.
2120 * gdb/features/arc/v2-core.c: Likewise.
2121 * gdb/features/arc/v2-core.xml: Likewise.
2122 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
2123
2124 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
2125 Andrew Burgess <andrew.burgess@embecosm.com>
2126
2127 PR m2/26372
2128 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
2129 an assert. Remove single element array indexing pattern as the
2130 MULTI_SUBSCRIPT support will handle this case too.
2131
2132 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
2133
2134 * value.h (valprint_check_validity): Move declaration from
2135 here...
2136 * valprint.h (valprint_check_validity): ... to here.
2137
2138 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
2139
2140 * debug.h: New file.
2141 * debug.c (debug_prefixed_vprintf): New function.
2142 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
2143 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
2144
2145 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
2146
2147 * infrun.h (infrun_debug_printf_1): New function declaration.
2148 (infrun_debug_printf): New macro.
2149 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
2150 throughout.
2151 (infrun_debug_printf): New function.
2152 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
2153 (handle_jit_event): Likewise.
2154
2155 2020-08-21 Mark Wielaard <mark@klomp.org>
2156
2157 * ada-lex.l: Extend register warnings diagnostics comment for g++.
2158
2159 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
2160
2161 * frame.c (enum class frame_id_status): New.
2162 (struct frame_info) <this_id::p>: Change type to frame_id_status.
2163 (fprintf_frame): Update.
2164 (compute_frame_id): Set frame id status to "computing" on entry.
2165 Set it back to "not_computed" on failure and to "computed" on
2166 success.
2167 (get_frame_id): Assert the frame id is not being computed.
2168 (create_sentinel_frame): Use frame_id_status::COMPUTED.
2169 (create_new_frame): Likewise.
2170 (frame_cleanup_after_sniffer): Update assert.
2171
2172 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2173
2174 * regcache.c (pid_ptid_regcache_map): New type.
2175 (target_ptid_regcache_map): Remove.
2176 (target_pid_ptid_regcache_map): New type.
2177 (regcaches): Change type to target_pid_ptid_regcache_map.
2178 (get_thread_arch_aspace_regcache): Update.
2179 (regcache_thread_ptid_changed): Update, handle pid-like ptid
2180 case.
2181 (regcaches_size): Update.
2182 (regcache_count): Update.
2183 (registers_changed_ptid_target_pid_test): New.
2184 (_initialize_regcache): Register new test.
2185
2186 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2187
2188 * regcache.c (regcache_count): New.
2189 (struct regcache_test_data): New.
2190 (regcache_test_data_up): New.
2191 (populate_regcaches_for_test): New.
2192 (regcaches_test): Remove.
2193 (get_thread_arch_aspace_regcache_test): New.
2194 (registers_changed_ptid_all_test): New.
2195 (registers_changed_ptid_target_test): New.
2196 (registers_changed_ptid_target_ptid_test): New.
2197 (regcache_thread_ptid_changed): Remove regcache_count lambda.
2198 (_initialize_regcache): Register new tests.
2199
2200 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2201
2202 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
2203 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
2204 gdbarch and aspace parameter. Use current inferior's aspace.
2205 Validate regcache's arch value.
2206 (regcaches_test): Update.
2207
2208 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2209
2210 * regcache.c (regcaches_test): Call registers_changed.
2211
2212 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2213
2214 * infrun.c (process_event_stop_test): Fix typo "breapoint".
2215
2216 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2217
2218 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2219 to find the end of prologue for flang compiled binaries.
2220 * arm-tdep.c (arm_skip_prologue): Likewise.
2221 * i386-tdep.c (i386_skip_prologue): Likewise.
2222 * producer.c (producer_is_llvm): New function.
2223 (producer_parsing_tests): Added new tests for clang/flang.
2224 * producer.h (producer_is_llvm): New declaration.
2225
2226 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
2227
2228 * linux-nat.c (linux_nat_debug_printf): New function.
2229 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2230
2231 2020-08-18 Aaron Merey <amerey@redhat.com>
2232
2233 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2234 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2235 (CLIBS): Add DEBUGINFOD_LIBS.
2236
2237 2020-08-17 Sergei Trofimovich <siarheit@google.com>
2238
2239 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2240 'gdbarch_num_regs'.
2241
2242 2020-08-17 Tom Tromey <tromey@adacore.com>
2243
2244 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2245 ada_get_decoded_value returns NULL.
2246
2247 2020-08-17 Tom Tromey <tromey@adacore.com>
2248
2249 * python/py-inferior.c (infpy_search_memory): Use
2250 gdb_py_object_from_ulongest.
2251 * python/py-infevents.c (create_inferior_call_event_object)
2252 (create_memory_changed_event_object): Use
2253 gdb_py_object_from_ulongest.
2254 * python/py-linetable.c (ltpy_entry_get_pc): Use
2255 gdb_py_object_from_ulongest.
2256
2257 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2258
2259 * loc.c (class symbol_needs_eval_context): Fix indentation.
2260
2261 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2262
2263 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2264 bool.
2265
2266 2020-08-17 Tom de Vries <tdevries@suse.de>
2267
2268 PR gdb/26393
2269 * gdbtypes.c (dump_dynamic_prop): New function.
2270 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2271
2272 2020-08-15 Tom de Vries <tdevries@suse.de>
2273
2274 PR backtrace/26390
2275 * stack.c (print_frame_args): Temporarily set the selected
2276 frame to FRAME while printing the frame's arguments.
2277
2278 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2279
2280 PR breakpoints/26385
2281 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2282 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2283
2284 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2285
2286 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2287 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2288 and >= to check return value instead of == -1 and != -1.
2289
2290 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2291
2292 * utils.h (class gdb_argv) <as_array_view>: New method.
2293 * utils.c (gdb_argv_as_array_view_test): New.
2294 (_initialize_utils): Register selftest.
2295 * maint.c (maintenance_selftest): Use the new method.
2296
2297 2020-08-13 Kamil Rytarowski <n54@gmx.com>
2298
2299 * target.h (supports_dumpcore, dumpcore): New
2300 function declarations.
2301 * target.c (supports_dumpcore, dumpcore): New
2302 functions.
2303 * target-delegates.c: Rebuild.
2304 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2305 and target_dumpcore ().
2306
2307 2020-08-13 Aaron Merey <amerey@redhat.com>
2308
2309 * debuginfod-support.c: Replace global variables with user_data.
2310
2311 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2312
2313 * maint.c (maintenance_selftest): Split args and pass array_view
2314 to run_tests.
2315
2316 2020-08-12 Luis Machado <luis.machado@linaro.org>
2317
2318 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2319 type's length.
2320 Use %s and pulongest to print the length.
2321
2322 2020-08-12 Pedro Alves <palves@redhat.com>
2323
2324 * NEWS: Move "Multi-target debugging support" item to the
2325 "Changes since GDB 9" section.
2326
2327 2020-08-12 Pedro Alves <palves@redhat.com>
2328
2329 PR gdb/26336
2330 * progspace.c (program_space::remove_objfile): Invalidate the
2331 frame cache.
2332
2333 2020-08-11 Tom de Vries <tdevries@suse.de>
2334
2335 * MAINTAINERS: Mark ms1 as deleted.
2336
2337 2020-08-10 Luis Machado <luis.machado@linaro.org>
2338
2339 PR gdb/26310
2340
2341 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2342 act accordingly.
2343 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2344 movz/str/stur/stp skipping behavior.
2345
2346 2020-08-10 Luis Machado <luis.machado@linaro.org>
2347
2348 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2349 struct user_sve_header instead of struct sve_context.
2350
2351 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2352
2353 * read.h (dwarf2_fetch_die_loc_sect_off,
2354 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2355 `void *` parameter with function_view.
2356 * read.c (dwarf2_fetch_die_loc_sect_off,
2357 dwarf2_fetch_die_loc_cu_off): Likewise.
2358 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2359 (per_cu_dwarf_call): Adjust.
2360 (get_frame_address_in_block_wrapper): Remove.
2361 (indirect_synthetic_pointer): Adjust.
2362 (get_ax_pc): Remove.
2363 (dwarf2_compile_expr_to_ax): Adjust.
2364
2365 2020-08-08 Tom de Vries <tdevries@suse.de>
2366
2367 PR build/26344
2368 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2369 constructor.
2370 * regcache.c (get_thread_arch_aspace_regcache): Same.
2371
2372 2020-08-07 Tom Tromey <tromey@adacore.com>
2373
2374 * ravenscar-thread.c
2375 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2376 New method.
2377 (ravenscar_thread_target::wait): Check
2378 runtime_initialized.
2379 (ravenscar_thread_target::prepare_to_store)
2380 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2381 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2382 (ravenscar_thread_target::stopped_by_watchpoint)
2383 (ravenscar_thread_target::stopped_data_address)
2384 (ravenscar_thread_target::core_of_thread): Use
2385 scoped_restore_current_thread and
2386 set_base_thread_from_ravenscar_task.
2387
2388 2020-08-07 Tom Tromey <tromey@adacore.com>
2389
2390 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2391
2392 2020-08-07 Tom Tromey <tromey@adacore.com>
2393
2394 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2395 update_inferior_ptid before update_thread_list.
2396 (temporarily_change_regcache_ptid): New class.
2397 (ravenscar_thread_target::fetch_registers)
2398 (ravenscar_thread_target::store_registers)
2399 (ravenscar_thread_target::prepare_to_store): Use base thread when
2400 forwarding operation.
2401
2402 2020-08-07 Tom Tromey <tromey@adacore.com>
2403
2404 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2405 "is_pid" case.
2406
2407 2020-08-07 Tom Tromey <tromey@adacore.com>
2408
2409 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2410 New methods.
2411 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2412 first.
2413 (ravenscar_thread_target::add_thread): Rename from
2414 ravenscar_add_thread.
2415 (ravenscar_thread_target::update_thread_list): Use a lambda.
2416 (ravenscar_thread_target::xfer_partial): New method.
2417
2418 2020-08-07 Tom Tromey <tromey@adacore.com>
2419
2420 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2421 gdb::function_view.
2422 (iterate_over_live_ada_tasks): Change type of argument.
2423 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2424 of argument.
2425
2426 2020-08-07 Tom Tromey <tromey@adacore.com>
2427
2428 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2429 Remove.
2430 (ravenscar_thread_target::extra_thread_info): Remove.
2431 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2432 defer to target beneath for non-Ravenscar threads.
2433
2434 2020-08-07 Tom Tromey <tromey@adacore.com>
2435
2436 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2437 get_base_thread_from_ravenscar_task>: Now methods.
2438 <m_cpu_map>: New member.
2439 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2440 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2441 (ravenscar_thread_target::task_is_currently_active): Update.
2442 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2443 Now a method.
2444 (ravenscar_thread_target::add_active_thread): Put initial thread
2445 into the m_cpu_map.
2446
2447 2020-08-07 Tom Tromey <tromey@adacore.com>
2448
2449 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2450 event_ptid.
2451
2452 2020-08-07 Tom Tromey <tromey@adacore.com>
2453
2454 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2455 runtime_initialized.
2456
2457 2020-08-07 Tom Tromey <tromey@adacore.com>
2458
2459 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2460 add_active_thread.
2461 (ravenscar_thread_target::add_active_thread): Now public.
2462 (ravenscar_inferior_created): Call add_active_thread after pushing
2463 the target.
2464
2465 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2466
2467 * regcache.c (ptid_regcache_map): New type.
2468 (target_ptid_regcache_map): New type.
2469 (regcaches): Change type to target_ptid_regcache_map.
2470 (get_thread_arch_aspace_regcache): Update to regcaches' new
2471 type.
2472 (regcache_thread_ptid_changed): Likewise.
2473 (registers_changed_ptid): Likewise.
2474 (regcaches_size): Likewise.
2475 (regcaches_test): Update.
2476 (regcache_thread_ptid_changed): Update.
2477 * regcache.h (regcache_up): New type.
2478 * gdbsupport/ptid.h (hash_ptid): New struct.
2479
2480 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
2481
2482 * observable.h (thread_ptid_changed): Add parameter
2483 `process_stratum_target *`.
2484 * infrun.c (infrun_thread_ptid_changed): Add parameter
2485 `process_stratum_target *` and use it.
2486 (selftests): New namespace.
2487 (infrun_thread_ptid_changed): New function.
2488 (_initialize_infrun): Register selftest.
2489 * regcache.c (regcache_thread_ptid_changed): Add parameter
2490 `process_stratum_target *` and use it.
2491 (regcache_thread_ptid_changed): New function.
2492 (_initialize_regcache): Register selftest.
2493 * thread.c (thread_change_ptid): Pass target to
2494 thread_ptid_changed observable.
2495
2496 2020-08-06 Caroline Tice <cmtice@google.com>
2497
2498 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2499 (struct dwp_sections): Update field comments. Add loclists and
2500 rnglists fields.
2501 (struct virtual_v2_dwo_sections): Rename struct to
2502 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2503 size & offset fields for loclists and rnglists.
2504 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2505 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2506 skipping dummy type units.
2507 (create_dwp_hash_table): Update the large comment above the function to
2508 discuss Version 5 DWP files as well, with references. Update all the
2509 version checks in the function to check for version 5 as well. Add new
2510 section at the end to create dwp hash table for version 5.
2511 (create_dwp_v2_section): Rename function to
2512 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2513 Add V5 to error message text.
2514 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2515 into calls to create_dwp_v2_or_v5_section.
2516 (create_dwo_unit_in_dwp_v5): New function.
2517 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2518 check for version2; add else clause to handle version 5.
2519 (open_and_init_dwo_file): Add code to check dwarf version & only call
2520 create_debug_types_hash_table (with sections.types) if version is not 5;
2521 else call create_debug_type_hash_table, with sections.info.
2522 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2523 version 5.
2524 (dwarf2_locate_v5_dwp_sections): New function.
2525 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2526 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
2527
2528 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
2529
2530 * regcache.h (class regcache): Remove friend
2531 registers_changed_ptid.
2532 <regcache_thread_ptid_changed>: Remove.
2533 <regcaches>: Remove.
2534 * regcache.c (regcache::regcaches): Rename to...
2535 (regcaches): ... this. Make static.
2536 (get_thread_arch_aspace_regcache): Update.
2537 (regcache::regcache_thread_ptid_changed): Rename to...
2538 (regcache_thread_ptid_changed): ... this. Update.
2539 (class regcache_access): Remove.
2540 (regcaches_test): Update.
2541 (_initialize_regcache): Update.
2542 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2543 <forward_list>.
2544
2545 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
2546
2547 * regcache.h (class regcache) <current_regcache>: Rename to...
2548 <regcaches>: ... this. Move doc here.
2549 * regcache.c (regcache::current_regcache) Rename to...
2550 (regcache::regcaches): ... this. Move doc to header.
2551 (get_thread_arch_aspace_regcache): Update.
2552 (regcache::regcache_thread_ptid_changed): Update.
2553 (registers_changed_ptid): Update.
2554 (class regcache_access) <current_regcache_size>: Rename to...
2555 <regcaches_size>: ... this.
2556 (current_regcache_test): Rename to...
2557 (regcaches_test): ... this.
2558 (_initialize_regcache): Update.
2559
2560 2020-08-06 Victor Collod <vcollod@nvidia.com>
2561
2562 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2563
2564 2020-08-05 Kevin Buettner <kevinb@redhat.com>
2565
2566 * corelow.c (core_target::build_file_mappings): Don't output
2567 null pathname in warning.
2568
2569 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2570
2571 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2572 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2573 gdb.dwarf2/dw2-single-line-discriminators.exp,
2574 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2575
2576 2020-08-05 Tom Tromey <tromey@adacore.com>
2577
2578 PR rust/26197:
2579 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2580 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2581 Fix off-by-one and type size errors in ordinary case.
2582
2583 2020-08-05 Tom de Vries <tdevries@suse.de>
2584
2585 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2586 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2587
2588 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
2589
2590 * frame.h (frame_id_p): Return bool.
2591 (frame_id_artificial_p): Return bool.
2592 (frame_id_eq): Return bool.
2593 (has_stack_frames): Return bool.
2594 (get_selected_frame): Fix typo in comment.
2595 (get_frame_pc_if_available): Return bool.
2596 (get_frame_address_in_block_if_available): Return bool.
2597 (get_frame_func_if_available): Return bool.
2598 (read_frame_register_unsigned): Return bool.
2599 (get_frame_register_bytes): Return bool.
2600 (safe_frame_unwind_memory): Return bool.
2601 (deprecated_frame_register_read): Return bool.
2602 (frame_unwinder_is): Return bool.
2603 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2604 bool.
2605 <this_id::p>: Likewise.
2606 <prev_p>: Likewise.
2607 (frame_stash_add): Return bool.
2608 (get_frame_id): Use bool.
2609 (frame_id_build_special) Use bool.
2610 (frame_id_build_unavailable_stack): Use bool.
2611 (frame_id_build): Use bool.
2612 (frame_id_p): Return bool, use true/false instead of 1/0.
2613 (frame_id_artificial_p): Likewise.
2614 (frame_id_eq): Likewise.
2615 (frame_id_inner): Likewise.
2616 (get_frame_func_if_available): Likewise.
2617 (read_frame_register_unsigned): Likewise.
2618 (deprecated_frame_register_read): Likewise.
2619 (get_frame_register_bytes): Likewise.
2620 (has_stack_frames): Likewise.
2621 (inside_main_func): Likewise.
2622 (inside_entry_func): Likewise.
2623 (get_frame_pc_if_available): Likewise.
2624 (get_frame_address_in_block_if_available): Likewise.
2625 (frame_unwinder_is): Likewise.
2626 (safe_frame_unwind_memory): Likewise.
2627 (frame_unwind_arch): Likewise.
2628
2629 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
2630
2631 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2632 type to cached_copy_status.
2633 (fprintf_frame): Adjust.
2634 (get_frame_func_if_available): Adjust.
2635 (frame_cleanup_after_sniffer): Adjust.
2636
2637 2020-08-04 Mark Wielaard <mark@klomp.org>
2638
2639 * MAINTAINERS (Write After Approval): Update email address.
2640
2641 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2642
2643 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2644 dynamic_prop::const_val.
2645
2646 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2647
2648 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2649 dynamic_prop::kind.
2650
2651 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2652
2653 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2654
2655 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2656
2657 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2658
2659 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
2660 Jose E. Marchesi <jose.marchesi@oracle.com>
2661
2662 * configure.tgt: Add entry for bpf-*-*.
2663 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2664 (ALLDEPFILES): Add bpf-tdep.c.
2665 * bpf-tdep.c: New file.
2666 * MAINTAINERS: Add bpf target and maintainer.
2667 * NEWS: Mention the support for the new target.
2668
2669 2020-08-04 Tom de Vries <tdevries@suse.de>
2670
2671 PR symtab/23270
2672 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2673 Error.
2674
2675 2020-08-03 John Baldwin <jhb@FreeBSD.org>
2676
2677 * syscalls/freebsd.xml: Regenerate.
2678
2679 2020-08-03 John Baldwin <jhb@FreeBSD.org>
2680
2681 * syscalls/update-freebsd.sh: Fix usage and year range.
2682
2683 2020-08-03 Tom de Vries <tdevries@suse.de>
2684
2685 PR symtab/26333
2686 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2687 DW_LNE_lo_user/DW_LNE_hi_user range.
2688
2689 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2690
2691 PR ada/26318
2692 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2693 kind.
2694
2695 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2696
2697 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2698
2699 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2700
2701 * breakpoint.c (set_breakpoint_condition): Update the condition
2702 expressions after checking that the input condition string parses
2703 successfully and does not contain junk at the end.
2704
2705 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2706
2707 * breakpoint.c (set_breakpoint_condition): Update the
2708 condition string after parsing the new condition successfully.
2709
2710 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2711
2712 * proc-api.c (_STRUCTURED_PROC): Don't define.
2713 * proc-events.c: Likewise.
2714 * proc-flags.c: Likewise.
2715 * proc-why.c: Likewise.
2716 * procfs.c: Likewise.
2717
2718 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2719 * configure, config.in: Regenerate.
2720
2721 2020-07-30 Tom de Vries <tdevries@suse.de>
2722
2723 PR build/26320
2724 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2725 m_red/m_green/m_blue in a union.
2726
2727 2020-07-29 Tom de Vries <tdevries@suse.de>
2728
2729 PR tdep/26280
2730 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2731
2732 2020-07-28 Tom Tromey <tromey@adacore.com>
2733
2734 PR symtab/26270:
2735 * symtab.h (find_pc_partial_function_sym): Declare.
2736 * cli/cli-cmds.c (disassemble_command): Use
2737 find_pc_partial_function_sym. Check asm_demangle.
2738 * blockframe.c (cache_pc_function_sym): New global.
2739 (cache_pc_function_name): Remove.
2740 (clear_pc_function_cache): Update.
2741 (find_pc_partial_function_sym): New function, from
2742 find_pc_partial_function.
2743 (find_pc_partial_function): Rewrite using
2744 find_pc_partial_function_sym.
2745
2746 2020-07-28 Tom Tromey <tromey@adacore.com>
2747
2748 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2749 help. Add usage.
2750
2751 2020-07-28 Tom Tromey <tromey@adacore.com>
2752
2753 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2754 <DW_OP_GNU_variable_value>: Cast to address type.
2755
2756 2020-07-28 Kamil Rytarowski <n54@gmx.com>
2757
2758 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2759 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2760 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2761 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2762 (nbsd_get_siginfo_type): New.
2763 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2764 (_initialize_nbsd_tdep): New.
2765
2766 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2767
2768 PR binutils/26301
2769 * configure: Regenerated.
2770
2771 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2772
2773 PR binutils/26301
2774 * configure: Regenerated.
2775
2776 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2777
2778 * python/py-frame.c: Remove 'user-regs.h' include.
2779 (frapy_read_register): Rewrite to make use of
2780 gdbpy_parse_register_id.
2781 * python/py-registers.c (gdbpy_parse_register_id): New function,
2782 moved here from python/py-unwind.c. Updated the return type, and
2783 also accepts register descriptor objects.
2784 * python/py-unwind.c: Remove 'user-regs.h' include.
2785 (pyuw_parse_register_id): Moved to python/py-registers.c.
2786 (unwind_infopy_add_saved_register): Update to use
2787 gdbpy_parse_register_id.
2788 (pending_framepy_read_register): Likewise.
2789 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2790
2791 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2792
2793 * python/py-registers.c: Add 'user-regs.h' include.
2794 (register_descriptor_iter_find): New function.
2795 (register_descriptor_iterator_object_methods): New static global
2796 methods array.
2797 (register_descriptor_iterator_object_type): Add pointer to methods
2798 array.
2799
2800 2020-07-27 John Baldwin <jhb@FreeBSD.org>
2801
2802 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2803 for all architectures on FreeBSD 11.3 and later.
2804
2805 2020-07-27 Tom Tromey <tromey@adacore.com>
2806
2807 * gcore.h (load_corefile): Don't declare.
2808
2809 2020-07-27 Tom de Vries <tdevries@suse.de>
2810
2811 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2812 * config.in: Regenerate.
2813 * configure: Regenerate.
2814
2815 2020-07-26 Eli Zaretskii <eliz@gnu.org>
2816
2817 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2818 ws2tcpip.h. When checking whether socklen_t type is defined, use
2819 ws2tcpip.h if it is available and sys/socket.h isn't.
2820 * configure: Regenerate.
2821 * config.in: Regenerate.
2822
2823 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2824
2825 PR fortran/23051
2826 PR fortran/26139
2827 * valops.c (value_ind): Pass address to
2828 readjust_indirect_value_type.
2829 * value.c (readjust_indirect_value_type): Make parameter
2830 non-const, and add extra address parameter. Resolve original type
2831 before using it.
2832 * value.h (readjust_indirect_value_type): Update function
2833 signature and comment.
2834
2835 2020-07-25 Tom de Vries <tdevries@suse.de>
2836
2837 PR symtab/26243
2838 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2839 entries.
2840
2841 2020-07-24 Aaron Merey <amerey@redhat.com>
2842
2843 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2844 * configure: Rebuild.
2845
2846 2020-07-23 Kevin Buettner <kevinb@redhat.com>
2847
2848 PR corefiles/26294
2849 * corelow.c (_initialize_corelow): Add period to help text
2850 for "maintenance print core-file-backed-mappings".
2851
2852 2020-07-23 Pedro Alves <pedro@palves.net>
2853
2854 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2855 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2856 meanwhile.
2857 * frame.c (frame_cache_generation, get_frame_cache_generation):
2858 New.
2859 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2860 (get_prev_frame_if_no_cycle): On exception, don't touch
2861 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2862 * frame.h (get_frame_cache_generation): Declare.
2863
2864 2020-07-23 Tom de Vries <tdevries@suse.de>
2865
2866 PR tui/26282
2867 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2868 New default constructor.
2869
2870 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2871
2872 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2873 exclude non-statement entries.
2874
2875 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2876
2877 * NEWS (New commands): Mention new command
2878 "maintenance print core-file-backed-mappings".
2879
2880 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2881
2882 * corelow.c (gdbcmd.h): Include.
2883 (core_target::info_proc_mappings): New method.
2884 (get_current_core_target): New function.
2885 (maintenance_print_core_file_backed_mappings): New function.
2886 (_initialize_corelow): Add core-file-backed-mappings to
2887 "maint print" commands.
2888
2889 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2890
2891 * linux-tdep.c (dump_note_entry_p): New function.
2892 (linux_dump_mapping_p_ftype): New typedef.
2893 (linux_find_memory_regions_full): Add new parameter,
2894 should_dump_mapping_p.
2895 (linux_find_memory_regions): Adjust call to
2896 linux_find_memory_regions_full.
2897 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2898 call to linux_find_memory_regions_full.
2899
2900 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2901
2902 * corelow.c (solist.h, unordered_map): Include.
2903 (class core_target): Add field m_core_file_mappings and
2904 method build_file_mappings.
2905 (core_target::core_target): Call build_file_mappings.
2906 (core_target::~core_target): Free memory associated with
2907 m_core_file_mappings.
2908 (core_target::build_file_mappings): New method.
2909 (core_target::xfer_partial): Use m_core_file_mappings
2910 for memory transfers.
2911 * linux-tdep.c (linux_read_core_file_mappings): New
2912 function.
2913 (linux_core_info_proc_mappings): Rewrite to use
2914 linux_read_core_file_mappings.
2915 (linux_init_abi): Register linux_read_core_file_mappings.
2916
2917 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2918
2919 * arch-utils.c (default_read_core_file_mappings): New function.
2920 * arch-utils.c (default_read_core_file_mappings): Declare.
2921 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
2922 * gdbarch.h, gdbarch.c: Regenerate.
2923
2924 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2925
2926 PR corefiles/25631
2927 * corelow.c (core_target:xfer_partial): Revise
2928 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
2929 case after first checking the stratum beneath the core
2930 target.
2931 (has_all_memory): Return true.
2932 * target.c (raw_memory_xfer_partial): Revise comment
2933 regarding use of has_all_memory.
2934
2935 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2936
2937 * exec.h (section_table_xfer_memory): Revise declaration,
2938 replacing section name parameter with an optional callback
2939 predicate.
2940 * exec.c (section_table_xfer_memory): Likewise.
2941 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2942 of section_table_xfer_memory.
2943
2944 2020-07-22 Tom Tromey <tromey@adacore.com>
2945
2946 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2947 lookup_symbol_search_name.
2948
2949 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2950
2951 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2952 redundant local variable.
2953 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2954 reference, not pointer, update code accordingly.
2955
2956 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2957 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2958
2959 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2960 * jit.c (jit_breakpoint_re_set_internal): Use the
2961 `skip_jit_symbol_lookup` field.
2962
2963 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2964 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2965
2966 * jit.c (jit_read_descriptor): Define the descriptor address once,
2967 use twice.
2968 (jit_breakpoint_deleted): Move the declaration of the loop variable
2969 `iter` into the loop header.
2970 (jit_breakpoint_re_set_internal): Move the declaration of the local
2971 variable `objf_data` to the first point of definition.
2972 (jit_event_handler): Move the declaration of local variables
2973 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2974 Rename `objf` to `jited`.
2975
2976 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2977
2978 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2979 Remove.
2980 * jit.c (get_jiter_objfile_data): Update.
2981
2982 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2983 Simon Marchi <simon.marchi@polymtl.ca>
2984
2985 * jit.c (struct jit_program_space_data): Remove.
2986 (jit_program_space_key): Remove.
2987 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2988 stuff.
2989 (get_jit_program_space_data): Remove.
2990 (jit_breakpoint_deleted): Iterate on all of the program space's
2991 objfiles.
2992 (jit_inferior_init): Likewise.
2993 (jit_breakpoint_re_set_internal): Likewise. Also change return
2994 type to void.
2995 (jit_breakpoint_re_set): Pass current_program_space to
2996 jit_breakpoint_re_set_internal.
2997
2998 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2999
3000 * jit.h (struct jiter_objfile_data) <cached_code_address,
3001 jit_breakpoint>: Move to here from ...
3002 * jit.c (jit_program_space_data): ... here.
3003 (jiter_objfile_data::~jiter_objfile_data): Update.
3004 (jit_breakpoint_deleted): Update.
3005 (jit_breakpoint_re_set_internal): Update.
3006
3007 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3008
3009 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
3010 checks.
3011 (jit_read_descriptor): Remove NULL check.
3012 (jit_event_handler): Add an assertion.
3013
3014 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3015
3016 * jit.h (struct jit_objfile_data): Split into...
3017 (struct jiter_objfile_data): ... this ...
3018 (struct jited_objfile_data): ... and this.
3019 * objfiles.h (struct objfile) <jit_data>: Remove.
3020 <jiter_data, jited_data>: New fields.
3021 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
3022 (jiter_objfile_data::~jiter_objfile_data): ... this.
3023 (get_jit_objfile_data): Rename to ...
3024 (get_jiter_objfile_data): ... this.
3025 (add_objfile_entry): Update.
3026 (jit_read_descriptor): Use get_jiter_objfile_data.
3027 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
3028 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
3029 (jit_inferior_exit_hook): Use objfile's jited_data field.
3030
3031 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3032
3033 * jit.h: Forward-declare `struct minimal_symbol`.
3034 (struct jit_objfile_data): Migrate to here from jit.c; also add a
3035 constructor, destructor, and an objfile* field.
3036 * jit.c (jit_objfile_data): Remove.
3037 (struct jit_objfile_data): Migrate from here to jit.h.
3038 (jit_objfile_data::~jit_objfile_data): New destructor
3039 implementation with code moved from free_objfile_data.
3040 (free_objfile_data): Delete.
3041 (get_jit_objfile_data): Update to use the jit_data field of objfile.
3042 (jit_find_objf_with_entry_addr): Ditto.
3043 (jit_inferior_exit_hook): Ditto.
3044 (_initialize_jit): Remove the call to
3045 register_objfile_data_with_cleanup.
3046 * objfiles.h (struct objfile) <jit_data>: New field.
3047
3048 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3049
3050 * jit.h: Forward-declare `struct objfile`.
3051 (jit_event_handler): Add a second parameter, the JITer objfile.
3052 * jit.c (jit_read_descriptor): Change the signature to take the
3053 JITer objfile as an argument instead of the jit_program_space_data.
3054 (jit_inferior_init): Update the call to jit_read_descriptor.
3055 (jit_event_handler): Use the new JITer objfile argument when calling
3056 jit_read_descriptor.
3057 * breakpoint.c (handle_jit_event): Update the call to
3058 jit_event_handler to pass the JITer objfile.
3059
3060 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3061
3062 * gdbarch.c: Regenerate.
3063 * gdbarch.h: Regenerate.
3064 * gdbarch.sh (handle_segmentation_fault): Remove method.
3065 * infrun.c (handle_segmentation_fault): Remove.
3066 (print_signal_received_reason): Remove call to
3067 handle_segmentation_fault.
3068
3069 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3070
3071 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3072 Rename to sparc64_linux_report_signal_info and add siggnal
3073 argument.
3074 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
3075 instead of sparc64_linux_handle_segmentation_fault.
3076
3077 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3078
3079 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
3080 i386_linux_report_signal_info instead of
3081 i386_linux_handle_segmentation_fault.
3082 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
3083 to i386_linux_report_signal_info and add siggnal argument.
3084 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
3085 of i386_linux_handle_segmentation_fault.
3086 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
3087 to i386_linux_report_signal_info and add siggnal argument.
3088
3089 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3090
3091 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
3092 hook if present.
3093
3094 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3095
3096 * gdbarch.c: Regenerate.
3097 * gdbarch.h: Regenerate.
3098 * gdbarch.sh (report_signal_info): New method.
3099 * infrun.c (print_signal_received_reason): Invoke gdbarch
3100 report_signal_info hook if present.
3101
3102 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3103
3104 * python/py-registers.c : Add 'unordered_map' include.
3105 (gdbpy_new_reggroup): Renamed to...
3106 (gdbpy_get_reggroup): ...this. Update to only create register
3107 group descriptors when needed.
3108 (gdbpy_reggroup_iter_next): Update.
3109
3110 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3111
3112 * python/py-registers.c (gdbpy_register_object_data): New static
3113 global.
3114 (gdbpy_register_object_data_init): New function.
3115 (gdbpy_new_register_descriptor): Renamed to...
3116 (gdbpy_get_register_descriptor): ...this, and update to reuse
3117 existing register descriptors where possible.
3118 (gdbpy_register_descriptor_iter_next): Update.
3119 (gdbpy_initialize_registers): Register new gdbarch data.
3120
3121 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
3122
3123 * linux-nat.c (stopped_pids): Make static.
3124
3125 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3126
3127 PR ada/26235
3128 * gdbtypes.c (ada_discrete_type_low_bound,
3129 ada_discrete_type_high_bound): Handle undefined bounds.
3130
3131 2020-07-21 Kamil Rytarowski <n54@gmx.com>
3132
3133 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
3134 declaration.
3135 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
3136 function.
3137
3138 2020-07-20 John Baldwin <jhb@FreeBSD.org>
3139
3140 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
3141 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
3142 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
3143 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
3144 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
3145 method.
3146
3147 2020-07-20 Ludovic Courtès <ludo@gnu.org>
3148
3149 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
3150 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
3151 which are deprecated in Guile 3.0.
3152 * configure.ac (try_guile_versions): Add "guile-3.0".
3153 * configure (try_guile_versions): Regenerate.
3154 * NEWS: Update entry.
3155
3156 2020-07-20 Ludovic Courtès <ludo@gnu.org>
3157 Doug Evans <dje@google.com>
3158
3159 PR gdb/21104
3160 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
3161 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
3162 USING_GUILE_BEFORE_2_2.
3163 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
3164 Change type to 'scm_t_port_type *'.
3165 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
3166 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
3167 parameter and honor it. Update callers.
3168 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
3169 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
3170 functions.
3171 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
3172 USING_GUILE_BEFORE_2_2.
3173 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
3174 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
3175 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
3176 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
3177 and 'SCM_PORT_TYPE'.
3178 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
3179 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
3180 (gdbscm_memory_port_read, gdbscm_memory_port_write)
3181 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
3182 [!USING_GUILE_BEFORE_2_2]: New functions.
3183 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
3184 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
3185 'gdbscm_memory_port_read'.
3186 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
3187 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
3188 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
3189 function.
3190 (ioscm_init_memory_port): Remove.
3191 (ioscm_init_memory_port_stream): New function
3192 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
3193 function.
3194 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3195 Return scm_from_uint (0).
3196 (gdbscm_set_memory_port_read_buffer_size_x)
3197 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3198 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3199 Return scm_from_uint (0).
3200 (gdbscm_set_memory_port_write_buffer_size_x)
3201 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3202 * configure.ac (try_guile_versions): Add "guile-2.2".
3203 * configure: Regenerate.
3204 * NEWS: Add entry.
3205
3206 2020-07-18 Tom Tromey <tom@tromey.com>
3207
3208 * linux-nat.c (linux_multi_process): Remove.
3209 (linux_nat_target::supports_multi_process): Return true.
3210
3211 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3212
3213 * arch/riscv.c (riscv_tdesc_cache): Change map type.
3214 (riscv_lookup_target_description): Return pointer out of
3215 unique_ptr.
3216 * target-descriptions.c (allocate_target_description): Add
3217 comment.
3218 (target_desc_deleter::operator()): Likewise.
3219 * target-descriptions.h (struct target_desc_deleter): Moved to
3220 gdbsupport/tdesc.h.
3221 (target_desc_up): Likewise.
3222
3223 2020-07-17 Tom Tromey <tromey@adacore.com>
3224
3225 * linux-nat.c (linux_nat_target::supports_non_stop)
3226 (linux_nat_target::always_non_stop_p): Use "true".
3227 (linux_nat_target::supports_disable_randomization): Use "true" and
3228 "false".
3229
3230 2020-07-16 Caroline Tice <cmtice@google.com>
3231
3232 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3233 (RNGLIST_HEADER_SIZE64): New constant definition.
3234 (struct dwop_section_names): Add rnglists_dwo.
3235 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3236 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3237 (struct dwo_sections): Add rnglists field.
3238 (read_attribut_reprocess): Add tag parameter.
3239 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3240 (cu_debug_rnglists_section): New function (decl & definition).
3241 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3242 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3243 die whose range is being checked; get rnglist section from
3244 cu_debug_rnglists_section, to get from either objfile or dwo file as
3245 appropriate. Add cases for DW_RLE_base_addressx,
3246 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3247 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3248 test inside if-condition and updating complaint message.
3249 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3250 dwarf2_rnglists_process.
3251 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3252 dwarf2_ranges_process.
3253 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3254 need_ranges_base and update comment appropriately. Also pass die tag
3255 to dwarf2_ranges_read.
3256 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3257 need_ranges_base and update comment appropriately. Also pass die tag
3258 to dwarf2_ranges_process.
3259 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3260 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3261 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3262 need_ranges_base and update comment appropriately. Also pass die tag
3263 to read_attribute_reprocess and dwarf2_ranges_read.
3264 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3265 and update function comment appropriately.
3266 (read_loclist_index): Call read_loclists_rnglists_header instead of
3267 read_loclist_header.
3268 (read_rnglist_index): New function.
3269 (read_attribute_reprocess): Add tag parameter. Add code for
3270 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3271 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3272
3273 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3274
3275 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3276 being resolved.
3277
3278 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3279
3280 * arch-utils.c (show_architecture): Update formatting of messages.
3281
3282 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3283
3284 * gdbtypes.h (struct type) <bounds>: Handle array and string
3285 types.
3286 * ada-lang.c (assign_aggregate): Use type::bounds on
3287 array/string type.
3288 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3289 * c-varobj.c (c_number_of_children): Likewise.
3290 (c_describe_child): Likewise.
3291 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3292 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3293 (f_type_print_base): Likewise.
3294 * f-valprint.c (f77_array_offset_tbl): Likewise.
3295 (f77_get_upperbound): Likewise.
3296 (f77_print_array_1): Likewise.
3297 * guile/scm-type.c (gdbscm_type_range): Likewise.
3298 * m2-typeprint.c (m2_array): Likewise.
3299 (m2_is_long_set_of_type): Likewise.
3300 * m2-valprint.c (get_long_set_bounds): Likewise.
3301 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3302 * python/py-type.c (typy_range): Likewise.
3303 * rust-lang.c (rust_internal_print_type): Likewise.
3304 * type-stack.c (type_stack::follow_types): Likewise.
3305 * valarith.c (value_subscripted_rvalue): Likewise.
3306 * valops.c (value_cast): Likewise.
3307
3308 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3309
3310 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3311 callers to use the equivalent accessor methods.
3312
3313 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3314
3315 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3316 (struct type) <bit_stride>: New method.
3317 (TYPE_BIT_STRIDE): Remove.
3318 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3319
3320 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3321
3322 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3323 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3324 callers to use the equivalent accessor methods instead.
3325
3326 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3327
3328 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3329 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3330 callers to use the equivalent accessor methods instead.
3331
3332 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3333
3334 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3335 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3336 to use dynamic_prop::kind.
3337
3338 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3339
3340 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3341 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3342 to get the bound property's kind and check against
3343 PROP_UNDEFINED.
3344
3345 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3346
3347 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3348 all callers to use type::range_bounds followed by
3349 dynamic_prop::{low,high}.
3350
3351 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3352
3353 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3354 const_val, set_const_val, baton, set_locexpr, set_loclist,
3355 set_addr_offset, variant_parts, set_variant_parts,
3356 original_type, set_original_type>: New methods.
3357 <kind>: Rename to...
3358 <m_kind>: ... this. Update all users to use the new methods
3359 instead.
3360 <data>: Rename to...
3361 <m_data>: ... this. Update all users to use the new methods
3362 instead.
3363
3364 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3365
3366 * gdbtypes.c (get_discrete_bounds): Return failure if
3367 the range type's bounds are not both defined and constant
3368 values.
3369 (get_array_bounds): Update comment. Remove undefined bound check.
3370
3371 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3372
3373 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3374 the type::bounds method directly.
3375
3376 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3377
3378 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3379 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3380 are used to set the range type's bounds to use set_bounds.
3381
3382 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3383
3384 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3385
3386 2020-07-10 Pedro Alves <pedro@palves.net>
3387
3388 * gdbthread.h (inferior_ref): Define.
3389 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3390 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3391 * thread.c
3392 (scoped_restore_current_thread::restore):
3393 Adjust to gdb::ref_ptr.
3394 (scoped_restore_current_thread::~scoped_restore_current_thread):
3395 Remove manual decref handling.
3396 (scoped_restore_current_thread::scoped_restore_current_thread):
3397 Adjust to use
3398 inferior_ref::new_reference/thread_info_ref::new_reference.
3399 Incref the thread before calling get_frame_id instead of after.
3400 Let TARGET_CLOSE_ERROR propagate.
3401
3402 2020-07-10 Pedro Alves <pedro@palves.net>
3403
3404 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3405 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3406 NOT_AVAILABLE_ERROR.
3407 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3408 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3409
3410 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3411 Pedro Alves <pedro@palves.net>
3412
3413 PR gdb/26199
3414 * infrun.c (threads_are_resumed_pending_p): Delete.
3415 (do_target_wait): Remove threads_are_executing and
3416 threads_are_resumed_pending_p checks from the inferior_matches
3417 lambda. Update comments.
3418
3419 2020-07-10 Pedro Alves <pedro@palves.net>
3420
3421 PR gdb/26199
3422 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3423 executing threads.
3424
3425 2020-07-10 Pedro Alves <pedro@palves.net>
3426
3427 PR gdb/26199
3428 * infrun.c (handle_no_resumed): Handle multiple targets.
3429
3430 2020-07-10 Pedro Alves <pedro@palves.net>
3431
3432 PR gdb/26199
3433 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3434 target_is_async_p.
3435
3436 2020-07-10 Pedro Alves <pedro@palves.net>
3437
3438 PR gdb/26199
3439 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3440 threads, not all threads.
3441
3442 2020-07-10 Pedro Alves <pedro@palves.net>
3443
3444 PR gdb/26199
3445 * remote.c (remote_target::open_1): Pass remote target pointer as
3446 data to create_async_event_handler.
3447 (remote_async_inferior_event_handler): Mark async event handler
3448 before returning if the remote target still has either pending
3449 events or unacknowledged notifications.
3450
3451 2020-07-10 John Baldwin <jhb@FreeBSD.org>
3452
3453 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3454 declaration.
3455 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3456 function.
3457
3458 2020-07-09 John Baldwin <jhb@FreeBSD.org>
3459
3460 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3461 inferior_ptid.
3462
3463 2020-07-09 John Baldwin <jhb@FreeBSD.org>
3464
3465 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3466 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3467 AT_FREEBSD_PS_STRINGS.
3468
3469 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
3470
3471 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3472 of debugfile path on Windows.
3473
3474 2020-07-08 John Baldwin <jhb@FreeBSD.org>
3475
3476 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3477 argument to 'data'.
3478
3479 2020-07-08 Tom Tromey <tromey@adacore.com>
3480
3481 * ada-lang.c (ada_exception_message_1): Use read_memory.
3482
3483 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3484
3485 PR python/22748
3486 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3487 special handling for inline frames.
3488 * findvar.c (value_of_register_lazy): Skip inline frames when
3489 creating lazy register values.
3490 * frame.c (frame_id_computed_p): Delete definition.
3491 * frame.h (frame_id_computed_p): Delete declaration.
3492
3493 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3494
3495 * NEWS: Mention additions to Python API.
3496 * python/py-arch.c (archpy_register_groups): New function.
3497 (arch_object_methods): Add 'register_groups' method.
3498 * python/py-registers.c (reggroup_iterator_object): New struct.
3499 (reggroup_object): New struct.
3500 (gdbpy_new_reggroup): New function.
3501 (gdbpy_reggroup_to_string): New function.
3502 (gdbpy_reggroup_name): New function.
3503 (gdbpy_reggroup_iter): New function.
3504 (gdbpy_reggroup_iter_next): New function.
3505 (gdbpy_new_reggroup_iterator): New function
3506 (gdbpy_initialize_registers): Register new types.
3507 (reggroup_iterator_object_type): Define new Python type.
3508 (gdbpy_reggroup_getset): New static global.
3509 (reggroup_object_type): Define new Python type.
3510 * python/python-internal.h
3511
3512 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3513
3514 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3515 * python/py-arch.c (archpy_registers): New function.
3516 (arch_object_methods): Add 'registers' method.
3517 * python/py-registers.c: New file.
3518 * python/python-internal.h
3519 (gdbpy_new_register_descriptor_iterator): Declare.
3520 (gdbpy_initialize_registers): Declare.
3521 * python/python.c (do_start_initialization): Call
3522 gdbpy_initialize_registers.
3523 * NEWS: Mention additions to the Python API.
3524
3525 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3526
3527 * NEWS: Mention new Python API method.
3528 * python/py-unwind.c (pending_framepy_architecture): New function.
3529 (pending_frame_object_methods): Add architecture method.
3530
3531 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3532
3533 * gdbarch.c: Regenerate.
3534 * gdbarch.h: Regenerate.
3535 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3536 (gdbarch_data): Use internal_error for the case where
3537 deprecated_set_gdbarch_data was originally needed.
3538 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3539 and use passed in obstack.
3540 (libunwind_frame_set_descr): Should no longer get back NULL from
3541 gdbarch_data.
3542 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3543 type.
3544 * user-regs.c (user_regs_init): Update parameters, and use passed
3545 in obstack.
3546 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3547 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3548
3549 2020-07-06 Tom de Vries <tdevries@suse.de>
3550
3551 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3552 End-Of-Sequence in lte_is_less_than.
3553 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3554 "gdb: Don't reorder line table entries too much when sorting".
3555
3556 2020-07-06 Tom de Vries <tdevries@suse.de>
3557
3558 PR tui/26205
3559 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3560
3561 2020-07-05 Tom de Vries <tdevries@suse.de>
3562
3563 PR build/26187
3564 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3565 std::uncaught_exceptions instead of deprecated
3566 std::uncaught_exception.
3567
3568 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3569
3570 * macroexp.h (macro_stringify): Return
3571 gdb::unique_xmalloc_ptr<char>.
3572 * macroexp.c (macro_stringify): Likewise.
3573 * macrotab.c (fixup_definition): Update.
3574
3575 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3576
3577 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3578 (lex_one_token): Update.
3579 * macroexp.c (struct macro_buffer) <release>: Return
3580 gdb::unique_xmalloc_ptr<char>.
3581 (macro_stringify): Update.
3582 (macro_expand): Update.
3583 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3584 * macroexp.h (macro_expand_next): Likewise.
3585
3586 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
3587
3588 * macroexp.h (macro_lookup_ftype): Remove.
3589 (macro_expand, macro_expand_once, macro_expand_next): Remove
3590 lookup function parameters, add scope parameter.
3591 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3592 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3593 * macroscope.h (standard_macro_lookup): Change parameter type
3594 to macro_scope.
3595 * macroscope.c (standard_macro_lookup): Likewise.
3596 * c-exp.y (lex_one_token): Update.
3597 * macrocmd.c (macro_expand_command): Likewise.
3598 (macro_expand_once_command): Likewise.
3599
3600 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3601
3602 * inf-loop.c (inferior_event_handler): Remove client_data param.
3603 * inf-loop.h (inferior_event_handler): Likewise.
3604 * infcmd.c (step_1): Adjust.
3605 * infrun.c (proceed): Adjust.
3606 (fetch_inferior_event): Remove client_data param.
3607 (infrun_async_inferior_event_handler): Adjust.
3608 * infrun.h (fetch_inferior_event): Remove `void *` param.
3609 * linux-nat.c (handle_target_event): Adjust.
3610 * record-btrace.c (record_btrace_handle_async_inferior_event):
3611 Adjust.
3612 * record-full.c (record_full_async_inferior_event_handler):
3613 Adjust.
3614 * remote.c (remote_async_inferior_event_handler): Adjust.
3615
3616 2020-07-01 Tom Tromey <tom@tromey.com>
3617
3618 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3619 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3620
3621 2020-07-01 Tom Tromey <tom@tromey.com>
3622
3623 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3624 tui_gen_win_info.
3625 (tui_win_info::make_window): Merge with
3626 tui_gen_win_info::make_window.
3627 (tui_win_info::make_visible): Move from tui_gen_win_info.
3628 * tui/tui-win.c (tui_win_info::max_width): Move from
3629 tui_gen_win_info.
3630 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3631 type.
3632 <window_factory>: Likewise.
3633 * tui/tui-layout.c (tui_win_info::resize): Move from
3634 tui_gen_win_info.
3635 (make_standard_window): Change return type.
3636 (get_locator_window, tui_get_window_by_name): Likewise.
3637 (tui_layout_window::apply): Remove a cast.
3638 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3639 (struct tui_win_info): Merge with tui_gen_win_info.
3640 (struct tui_gen_win_info): Remove.
3641
3642 2020-07-01 Tom Tromey <tom@tromey.com>
3643
3644 * tui/tui-stack.h (struct tui_locator_window): Derive from
3645 tui_win_info.
3646 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3647 <can_box>: New method.
3648
3649 2020-07-01 Tom Tromey <tom@tromey.com>
3650
3651 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3652
3653 2020-07-01 Tom Tromey <tom@tromey.com>
3654
3655 * tui/tui-regs.c (tui_data_window::display_registers_from)
3656 (tui_data_window::display_registers_from)
3657 (tui_data_window::first_data_item_displayed)
3658 (tui_data_window::delete_data_content_windows): Update.
3659 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3660 Remove.
3661 (tui_data_window::check_register_values): Update.
3662 (tui_data_item_window::rerender): Add parameters. Update.
3663 (tui_data_item_window::refresh_window): Remove.
3664 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3665 virtual.
3666 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3667 tui_gen_win_info.
3668 <refresh_window, max_height, min_height>: Remove.
3669 <rerender>: Add parameters.
3670 <x, y, visible>: New members.
3671 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3672 <m_item_width>: New member.
3673
3674 2020-07-01 Tom Tromey <tom@tromey.com>
3675
3676 * tui/tui-regs.c (tui_data_window::show_register_group)
3677 (tui_data_window::check_register_values): Update.
3678 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3679 from item_no.
3680
3681 2020-07-01 Tom Tromey <tom@tromey.com>
3682
3683 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3684 useless "if".
3685
3686 2020-07-01 Tom Tromey <tom@tromey.com>
3687
3688 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3689 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3690
3691 2020-07-01 Tom Tromey <tom@tromey.com>
3692
3693 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3694 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3695 (struct tui_line_or_address): Move from tui-data.h.
3696 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3697 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3698 (tui_cmd_window, tui_source_window_base, tui_source_window)
3699 (tui_disasm_window): Don't declare.
3700 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3701 to tui-winsource.h.
3702 (SINGLE_KEY): Move to tui-stack.c.
3703
3704 2020-07-01 Tom Tromey <tom@tromey.com>
3705
3706 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3707 std::string.
3708 * tui/tui-regs.c (class tab_expansion_file): New.
3709 (tab_expansion_file::write): New method.
3710 (tui_register_format): Change return type. Use
3711 tab_expansion_file.
3712 (tui_get_register, tui_data_window::display_registers_from)
3713 (tui_data_item_window::rerender): Update.
3714 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3715 * tui/tui-io.c (tui_expand_tabs): Remove.
3716
3717 2020-07-01 Tom Tromey <tom@tromey.com>
3718
3719 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3720
3721 2020-07-01 Fangrui Song <maskray@google.com>
3722
3723 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3724
3725 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3726
3727 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3728 forms for DW_AT_associated and DW_AT_allocated attributes,
3729 which is already checked in function attr_to_dynamic_prop.
3730
3731 2020-06-30 Tom Tromey <tromey@adacore.com>
3732
3733 * dwarf2/read.c (quirk_rust_enum): Correctly call
3734 alloc_rust_variant for default-less enum.
3735
3736 2020-06-30 Tom Tromey <tromey@adacore.com>
3737
3738 PR build/26183:
3739 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3740 gdb::to_string.
3741
3742 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
3743
3744 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3745 * gdbarch.h: Re-generate.
3746
3747 2020-06-28 Tom Tromey <tom@tromey.com>
3748
3749 * command.h (cmd_types): Remove.
3750 (cmd_type): Don't declare.
3751 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3752 typedef.
3753 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3754 * cli/cli-decode.c (cmd_type): Remove.
3755
3756 2020-06-27 Pedro Alves <palves@redhat.com>
3757
3758 * fork-child.c (prefork_hook): Adjust.
3759 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3760 Delete.
3761 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3762 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3763 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3764 Remove declarations.
3765 (struct inferior) <set_tty, tty>: New methods.
3766 (struct inferior) <terminal>: Rename to ...
3767 (struct inferior) <m_terminal>: ... this and make private.
3768 * main.c (captured_main_1): Adjust.
3769 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3770 (mi_cmd_inferior_tty_show): Adjust.
3771 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3772 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3773
3774 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
3775
3776 * configure.ac: Add --enable-libctf: handle --disable-static
3777 properly.
3778 * acinclude.m4: sinclude ../config/enable.m4.
3779 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3780 (LIBCTF): Substitute in.
3781 (CTF_DEPS): New, likewise.
3782 (CLIBS): libctf needs symbols from libbfd: move earlier.
3783 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3784 flags.
3785 * ctfread.c: Surround in ENABLE_LIBCTF.
3786 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3787 * configure: Regenerate.
3788 * config.in: Likewise.
3789
3790 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
3791
3792 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3793
3794 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
3795
3796 * inferior.h (struct inferior) <terminal>: Change type to
3797 gdb::unique_xmalloc_ptr<char>.
3798 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3799 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3800 field, adjust to unique pointer.
3801 (get_inferior_io_terminal): Adjust to unique pointer.
3802
3803 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3804
3805 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3806 registers, not just the known core set of registers.
3807
3808 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3809
3810 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3811 fflags, frm, and fcsr registers.
3812 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3813 restore groups.
3814 (riscv_tdesc_unknown_reg): New function.
3815 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3816 tdesc_use_registers.
3817 * riscv-tdep.h (struct gdbarch_tdep): Add
3818 unknown_csrs_first_regnum, unknown_csrs_count,
3819 duplicate_fflags_regnum, duplicate_frm_regnum, and
3820 duplicate_fcsr_regnum fields.
3821
3822 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3823
3824 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3825 callback, use the callback (when not null) to help number unknown
3826 registers.
3827 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3828 (tdesc_use_registers): Add extra parameter to declaration.
3829
3830 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3831
3832 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3833 in the file.
3834 (class riscv_pending_register_alias): Likewise.
3835 (riscv_register_feature::register_info): Change 'required_p' field
3836 to 'required', and change its type. Add 'check' member function.
3837 (riscv_register_feature::register_info::check): Define new member
3838 function.
3839 (riscv_xreg_feature): Change initialisation of 'required' field.
3840 (riscv_freg_feature): Likewise.
3841 (riscv_virtual_feature): Likewise.
3842 (riscv_csr_feature): Likewise.
3843 (riscv_check_tdesc_feature): Take extra parameter, the csr
3844 tdesc_feature, rewrite the function to use the new
3845 riscv_register_feature::register_info::check function.
3846 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3847
3848 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3849
3850 * features/Makefile: Remove all references to the deleted files
3851 below.
3852 * features/riscv/32bit-csr.c: Deleted.
3853 * features/riscv/32bit-csr.xml: Deleted.
3854 * features/riscv/64bit-csr.c: Deleted.
3855 * features/riscv/64bit-csr.xml: Deleted.
3856 * features/riscv/rebuild-csr-xml.sh: Deleted.
3857
3858 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3859
3860 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3861 whitespace error for declaration of names member variable.
3862 (struct riscv_register_feature): Add new prefer_first_name member
3863 variable, and fix whitespace error in declaration of registers.
3864 (riscv_xreg_feature): Initialize prefer_first_name field.
3865 (riscv_freg_feature): Likewise.
3866 (riscv_virtual_feature): Likewise.
3867 (riscv_csr_feature): Likewise.
3868 (riscv_register_name): Expand on comments. Remove register name
3869 modifications for CSR and virtual registers.
3870
3871 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3872
3873 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3874 errors.
3875
3876 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3877
3878 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3879 riscv-opc.h.
3880 (class riscv_pending_register_alias): New class.
3881 (riscv_check_tdesc_feature): Take vector of pending aliases and
3882 populate it as appropriate.
3883 (riscv_setup_register_aliases): Delete.
3884 (riscv_gdbarch_init): Create vector of pending aliases and pass it
3885 to riscv_check_tdesc_feature in all cases. Use the vector to
3886 create the register aliases.
3887
3888 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3889
3890 * sol2-tdep.c (sol2_static_transform_name): Remove.
3891 (sol2_init_abi): Don't register it.
3892 * gdbarch.sh (static_transform_name): Remove.
3893 * gdbarch.c, gdbarch.h: Regenerate.
3894
3895 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3896 gdbarch_static_transform_name.
3897 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3898 * stabsread.c (define_symbol) <'X'>: Remove.
3899 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
3900 handling.
3901 <'V'>: Likewise.
3902 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
3903 <'S'>: Remove call to gdbarch_static_transform_name.
3904
3905 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3906
3907 * procfs.c (procfs_pre_trace): New function.
3908 (procfs_target::create_inferior): Pass it to fork_inferior.
3909
3910 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3911
3912 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
3913 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
3914 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
3915 sol2-tdep.o, sparc-sol2-tdep.o.
3916 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
3917 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
3918 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
3919 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
3920
3921 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3922
3923 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
3924 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
3925 Call sol2_init_abi.
3926 Remove calls to set_gdbarch_skip_solib_resolver,
3927 set_gdbarch_core_pid_to_str.
3928 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
3929 (i386_sol2_static_transform_name): Remove.
3930 (i386_sol2_init_abi): Call sol2_init_abi.
3931 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3932 set_gdbarch_static_transform_name,
3933 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3934 Use sol2_sigtramp_p.
3935 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
3936 (sol2_sigtramp_p): New function.
3937 (sol2_static_transform_name): New function.
3938 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3939 (sol2_init_abi): New function.
3940 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3941 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3942 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3943 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3944 (sparc_sol2_static_transform_name): Remove.
3945 (sparc32_sol2_init_abi): Call sol2_init_abi.
3946 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3947 set_gdbarch_static_transform_name,
3948 set_gdbarch_skip_solib_resolver,
3949 set_gdbarch_core_pid_to_str.
3950 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3951 (sparc_sol2_static_transform_name): Remove
3952 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3953 call sol2_sigtramp_p.
3954 (sparc64_sol2_init_abi): Call sol2_init_abi.
3955 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3956 set_gdbarch_static_transform_name,
3957 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3958
3959 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3960
3961 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3962 * exec.c (validate_exec_file): If from_tty, set both
3963 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3964 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3965 and from_tty, unconditionally ask a confirmation.
3966
3967 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3968
3969 * target-descriptions.c (tdesc_architecture_name): Protect against
3970 NULL pointer dereference.
3971 (maint_print_xml_tdesc_cmd): New function.
3972 (_initialize_target_descriptions): Register new 'maint print
3973 xml-tdesc' command and give it the filename completer.
3974 * NEWS: Mention new 'maint print xml-tdesc' command.
3975
3976 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3977
3978 * target-descriptions.c (class tdesc_compatible_info): New class.
3979 (struct target_desc): Change type of compatible vector.
3980 (tdesc_compatible_p): Update for change in type of
3981 target_desc::compatible.
3982 (tdesc_compatible_info_list): New function.
3983 (tdesc_compatible_info_arch_name): New function.
3984 (tdesc_add_compatible): Update for change in type of
3985 target_desc::compatible.
3986 (print_c_tdesc::visit_pre): Likewise.
3987
3988 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3989
3990 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3991 whitespace to underscore.
3992 (maint_print_c_tdesc_cmd): Use fake filename for target
3993 descriptions that came from the target.
3994 (_initialize_target_descriptions): Add filename command completion
3995 for 'maint print c-tdesc'.
3996
3997 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
3998
3999 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
4000 lines.
4001
4002 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
4003
4004 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
4005 lines.
4006 (dwarf2_find_location_expression): Likewise.
4007 (call_site_parameter_matches): Likewise.
4008 (dwarf2_compile_expr_to_ax): Likewise.
4009 (disassemble_dwarf_expression): Likewise.
4010 (loclist_describe_location): Likewise.
4011
4012 2020-06-23 Pedro Alves <palves@redhat.com>
4013
4014 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
4015 progspace-and-thread.h. Include scoped-mock-context.h instead.
4016 (register_to_value_test): Use scoped_mock_context.
4017 * regcache.c: Include "scoped-mock-context.h".
4018 (cooked_read_test): Don't error out if a target is already pushed.
4019 Use scoped_mock_context. Adjust.
4020 * scoped-mock-context.h: New file.
4021
4022 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4023
4024 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
4025 initializer.
4026 (ada_language::is_string_type_p): New member function.
4027 * c-lang.c (c_language_data): Delete la_is_string_type_p
4028 initializer.
4029 (cplus_language_data): Likewise.
4030 (asm_language_data): Likewise.
4031 (minimal_language_data): Likewise.
4032 * d-lang.c (d_language_data): Likewise.
4033 * f-lang.c (f_is_string_type_p): Delete function, implementation
4034 moved to f_language::is_string_type_p.
4035 (f_language_data): Delete la_is_string_type_p initializer.
4036 (f_language::is_string_type_p): New member function,
4037 implementation from f_is_string_type_p.
4038 * go-lang.c (go_is_string_type_p): Delete function, implementation
4039 moved to go_language::is_string_type_p.
4040 (go_language_data): Delete la_is_string_type_p initializer.
4041 (go_language::is_string_type_p): New member function,
4042 implementation from go_is_string_type_p.
4043 * language.c (language_defn::is_string_type_p): Define new member
4044 function.
4045 (default_is_string_type_p): Make static, add comment copied from
4046 header file.
4047 (unknown_language_data): Delete la_is_string_type_p initializer.
4048 (unknown_language::is_string_type_p): New member function.
4049 (auto_language_data): Delete la_is_string_type_p initializer.
4050 (auto_language::is_string_type_p): New member function.
4051 * language.h (language_data): Delete la_is_string_type_p field.
4052 (language_defn::is_string_type_p): Declare new function.
4053 (default_is_string_type_p): Delete desclaration, move comment to
4054 definition.
4055 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
4056 moved to m2_language::is_string_type_p.
4057 (m2_language_data): Delete la_is_string_type_p initializer.
4058 (m2_language::is_string_type_p): New member function,
4059 implementation from m2_is_string_type_p.
4060 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
4061 initializer.
4062 * opencl-lang.c (opencl_language_data): Likewise.
4063 * p-lang.c (pascal_is_string_type_p): Delete function,
4064 implementation moved to pascal_language::is_string_type_p.
4065 (pascal_language_data): Delete la_is_string_type_p initializer.
4066 (pascal_language::is_string_type_p): New member function,
4067 implementation from pascal_is_string_type_p.
4068 * rust-lang.c (rust_is_string_type_p): Delete function,
4069 implementation moved to rust_language::is_string_type_p.
4070 (rust_language_data): Delete la_is_string_type_p initializer.
4071 (rust_language::is_string_type_p): New member function,
4072 implementation from rust_is_string_type_p.
4073 * valprint.c (val_print_scalar_or_string_type_p): Update call to
4074 is_string_type_p.
4075
4076 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4077
4078 * ada-lang.c (ada_language_data): Delete la_print_typedef
4079 initializer.
4080 (ada_language::print_typedef): New member function.
4081 * c-lang.c (c_language_data): Delete la_print_typedef 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_language_data): Likewise.
4087 (f_language::print_typedef): New member function.
4088 * go-lang.c (go_language_data): Delete la_print_typedef
4089 initializer.
4090 * language.c (language_defn::print_typedef): Define member
4091 function.
4092 (unknown_language_data): Delete la_print_typedef initializer.
4093 (unknown_language::print_typedef): New member function.
4094 (auto_language_data): Delete la_print_typedef initializer.
4095 (auto_language::print_typedef): New member function.
4096 * language.h (language_data): Delete la_print_typedef field.
4097 (language_defn::print_typedef): Declare new member function.
4098 (LA_PRINT_TYPEDEF): Update call to print_typedef.
4099 (default_print_typedef): Delete declaration.
4100 * m2-lang.c (m2_language_data): Delete la_print_typedef
4101 initializer.
4102 (m2_language::print_typedef): New member function.
4103 * objc-lang.c (objc_language_data): Delete la_print_typedef
4104 initializer.
4105 * opencl-lang.c (opencl_language_data): Likewise.
4106 * p-lang.c (pascal_language_data): Likewise.
4107 (pascal_language::print_typedef): New member function.
4108 * rust-lang.c (rust_print_typedef): Delete function,
4109 implementation moved to rust_language::print_typedef.
4110 (rust_language): Delete la_print_typedef initializer.
4111 (rust_language::print_typedef): New member function,
4112 implementation from rust_print_typedef.
4113 * typeprint.c (default_print_typedef): Delete.
4114
4115 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4116
4117 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
4118 (ada_language::printstr): New member function.
4119 * c-lang.c (c_language_data): Delete la_printstr initializer.
4120 (cplus_language_data): Likewise.
4121 (asm_language_data): Likewise.
4122 (minimal_language_data): Likewise.
4123 * d-lang.c (d_language_data): Likewise.
4124 * f-lang.c (f_printstr): Rename to f_language::printstr.
4125 (f_language_data): Delete la_printstr initializer.
4126 (f_language::printstr): New member function, implementation from
4127 f_printstr.
4128 * go-lang.c (go_language_data): Delete la_printstr initializer.
4129 * language.c (language_defn::printstr): Define new member
4130 function.
4131 (unk_lang_printstr): Delete.
4132 (unknown_language_data): Delete la_printstr initializer.
4133 (unknown_language::printstr): New member function.
4134 (auto_language_data): Delete la_printstr initializer.
4135 (auto_language::printstr): New member function.
4136 * language.h (language_data): Delete la_printstr field.
4137 (language_defn::printstr): Declare new member function.
4138 (LA_PRINT_STRING): Update call to printstr.
4139 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
4140 (m2_language_data): Delete la_printstr initializer.
4141 (m2_language::printstr): New member function, implementation from
4142 m2_printstr.
4143 * objc-lang.c (objc_language_data): Delete la_printstr
4144 initializer.
4145 * opencl-lang.c (opencl_language_data): Likewise.
4146 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
4147 (pascal_language_data): Delete la_printstr initializer.
4148 (pascal_language::printstr): New member function, implementation
4149 from pascal_printstr.
4150 * p-lang.h (pascal_printstr): Delete declaration.
4151 * rust-lang.c (rust_printstr): Update header comment.
4152 (rust_language_data): Delete la_printstr initializer.
4153 (rust_language::printstr): New member function.
4154
4155 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4156
4157 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
4158 (ada_language::printchar): New member function.
4159 * c-lang.c (c_language_data): Delete la_printchar initializer.
4160 (cplus_language_data): Likewise.
4161 (asm_language_data): Likewise.
4162 (minimal_language_data): Likewise.
4163 * d-lang.c (d_language_data): Likewise.
4164 * f-lang.c (f_printchar): Rename to f_language::printchar.
4165 (f_language_data): Delete la_printchar initializer.
4166 (f_language::printchar): New member function, implementation from
4167 f_printchar.
4168 * go-lang.c (go_language_data): Delete la_printchar initializer.
4169 * language.c (unk_lang_printchar): Delete.
4170 (language_defn::printchar): Define new member function.
4171 (unknown_language_data): Delete la_printchar initializer.
4172 (unknown_language::printchar): New member function.
4173 (auto_language_data): Delete la_printchar initializer.
4174 (auto_language::printchar): New member function.
4175 * language.h (language_data): Delete la_printchar field.
4176 (language_defn::printchar): Declare new member function.
4177 (LA_PRINT_CHAR): Update call to printchar.
4178 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
4179 (m2_language::printchar): New member function.
4180 * objc-lang.c (objc_language_data): Delete la_printchar
4181 initializer.
4182 * opencl-lang.c (opencl_language_data): Likewise.
4183 * p-lang.c (pascal_language_data): Delete la_printchar
4184 initializer.
4185 (pascal_language::printchar): New member function.
4186 * rust-lang.c (rust_printchar): Rename to
4187 rust_language::printchar.
4188 (rust_language_data): Delete la_printchar initializer.
4189 (rust_language::printchar): New member function, implementation
4190 from rust_printchar.
4191
4192 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4193
4194 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
4195 (ada_language_data): Delete la_emitchar initializer.
4196 (ada_language::emitchar): New member function, implementation from
4197 emit_char.
4198 * c-lang.c (c_language_data): Delete la_emitchar initializer.
4199 (cplus_language_data): Likewise.
4200 (asm_language_data): Likewise.
4201 (minimal_language_data): Likewise.
4202 * d-lang.c (d_language_data): Likewise.
4203 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
4204 (f_language_data): Delete la_emitchar initializer.
4205 (f_language::emitchar): New member function, implementation from
4206 f_emit_char.
4207 * go-lang.c (go_language_data): Delete la_emitchar initializer.
4208 * language.c (unk_lang_emit_char): Delete.
4209 (language_defn::emitchar): New member function definition.
4210 (unknown_language_data): Delete la_emitchar initializer.
4211 (unknown_language::emitchar): New member function.
4212 (auto_language_data): Delete la_emitchar initializer.
4213 (auto_language::emitchar): New member function.
4214 * language.h (language_data): Delete la_emitchar field.
4215 (language_defn::emitchar): New member field declaration.
4216 (LA_EMIT_CHAR): Update call to emitchar.
4217 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
4218 (m2_language_data): Delete la_emitchar initializer.
4219 (m2_language::emitchar): New member function, implementation from
4220 m2_emit_char.
4221 * objc-lang.c (objc_language_data): Delete la_emitchar
4222 initializer.
4223 * opencl-lang.c (opencl_language_data): Likewise.
4224 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4225 (pascal_language_data): Delete la_emitchar initializer.
4226 (pascal_language::emitchar): New member function, implementation
4227 from pascal_emit_char.
4228 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4229 (rust_language_data): Delete la_emitchar initializer.
4230 (rust_language::emitchar): New member function, implementation
4231 from rust_emitchar.
4232
4233 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4234
4235 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4236 (ada_language_data): Delete la_post_parser initializer.
4237 (ada_language::post_parser): New member function.
4238 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4239 (cplus_language_data): Likewise.
4240 (asm_language_data): Likewise.
4241 (minimal_language_data): Likewise.
4242 * d-lang.c (d_language_data): Likewise.
4243 * f-lang.c (f_language_data): Likewise.
4244 * go-lang.c (go_language_data): Likewise.
4245 * language.c (unknown_language_data): Likewise.
4246 (auto_language_data): Likewise.
4247 * language.h (language_data): Delete la_post_parser field.
4248 (language_defn::post_parser): New member function.
4249 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4250 * objc-lang.c (objc_language_data): Likewise.
4251 * opencl-lang.c (opencl_language_data): Likewise.
4252 * p-lang.c (pascal_language_data): Likewise.
4253 * parse.c (parse_exp_in_context): Update call to post_parser.
4254 (null_post_parser): Delete definition.
4255 * parser-defs.h (null_post_parser): Delete declaration.
4256 * rust-lang.c (rust_language_data): Delete la_post_parser
4257 initializer.
4258
4259 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4260
4261 * ada-lang.c (parse): Rename to ada_language::parser.
4262 (ada_language_data): Delete la_parser initializer.
4263 (ada_language::parser): New member function, implementation from
4264 parse.
4265 * c-lang.c (c_language_data): Delete la_parser initializer.
4266 (cplus_language_data): Likewise.
4267 (asm_language_data): Likewise.
4268 (minimal_language_data): Likewise.
4269 * d-lang.c (d_language_data): Likewise.
4270 (d_language::parser): New member function.
4271 * f-lang.c (f_language_data): Delete la_parser initializer.
4272 (f_language::parser): New member function.
4273 * go-lang.c (go_language_data): Delete la_parser initializer.
4274 (go_language::parser): New member function.
4275 * language.c (unk_lang_parser): Delete.
4276 (language_defn::parser): Define new member function.
4277 (unknown_language_data): Delete la_parser initializer.
4278 (unknown_language::parser): New member function.
4279 (auto_language_data): Delete la_parser initializer.
4280 (auto_language::parser): New member function.
4281 * language.h (language_data): Delete la_parser field.
4282 (language_defn::parser): Declare new member function.
4283 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4284 (m2_language::parser): New member function.
4285 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4286 * opencl-lang.c (opencl_language_data): Likewise.
4287 * p-lang.c (pascal_language_data): Likewise.
4288 (pascal_language::parser): New member function.
4289 * parse.c (parse_exp_in_context): Update call to parser.
4290 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4291 (rust_language::parser): New member function.
4292
4293 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4294
4295 * top.c (print_gdb_configuration): Print --with-python-libdir
4296 configuration value.
4297
4298 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4299
4300 * NEWS: Mention change to the alias command.
4301
4302 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4303
4304 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4305 (alias_command_completer)
4306 (make_alias_options_def_group): New functions.
4307 (alias_opts, alias_option_defs): New struct and array.
4308 (alias_usage_error): Update usage.
4309 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4310 Use option framework.
4311 (_initialize_cli_cmds): Update alias command help.
4312 Update aliases command help.
4313 (show_user):
4314 Add NULL for new default_args lookup_cmd argument.
4315 (valid_command_p): Rename to validate_aliased_command.
4316 Add NULL for new default_args lookup_cmd argument. Verify that the
4317 aliased_command has no default args.
4318 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4319 (lookup_cmd_1, lookup_cmd): New argument default_args.
4320 (add_alias_cmd):
4321 Add NULL for new default_args lookup_cmd argument.
4322 (print_help_for_command): Show default args under the layout
4323 alias some_alias = some_aliased_cmd some_alias_default_arg.
4324 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4325 xfree default_args in destructor.
4326 * cli/cli-script.c (process_next_line, do_define_command):
4327 Add NULL for new default_args lookup_cmd argument.
4328 * command.h: Declare new default_args argument in lookup_cmd
4329 and lookup_cmd_1.
4330 * completer.c (complete_line_internal_1):
4331 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4332 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4333 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4334 Likewise.
4335 * infcmd.c (_initialize_infcmd): Likewise.
4336 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4337 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4338 * python/py-param.c (add_setshow_generic): Likewise.
4339 * remote.c (_initialize_remote): Likewise.
4340 * top.c (execute_command): Prepend default_args if command has some.
4341 (set_verbose):
4342 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4343 * tracepoint.c (validate_actionline, encode_actions_1):
4344 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4345
4346 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4347
4348 * jit.c (jit_read_descriptor): Use bool as the return type.
4349 (jit_breakpoint_re_set_internal): Use bool as the return type.
4350 Invert the return value logic; return true if the jit breakpoint
4351 has been successfully initialized.
4352 (jit_inferior_init): Update the call to
4353 jit_breakpoint_re_set_internal.
4354
4355 2020-06-22 Pedro Alves <palves@redhat.com>
4356
4357 PR gdb/25939
4358 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4359 Use the current inferior instead. Don't return
4360 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4361 wait again.
4362 * sol-thread.c (sol_thread_target::wait): Don't reference
4363 inferior_ptid.
4364 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4365 (sol_update_thread_list_callback): Use the current inferior's pid
4366 instead of inferior_ptid.
4367
4368 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4369
4370 * procfs.c: Cleanup many comments.
4371
4372 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4373 (AFTER_WATCHFLAG): Replace by value.
4374
4375 (MAIN_PROC_NAME_FORMAT): Inline ...
4376 (create_procinfo): ... here.
4377
4378 (procfs_debug_inferior): Remove SYS_exec handling.
4379 (syscall_is_exec): Likewise.
4380 (procfs_set_exec_trap): Likewise.
4381
4382 (syscall_is_lwp_exit): Inline in callers.
4383 (syscall_is_exit): Likewise.
4384 (syscall_is_exec): Likewise.
4385 (syscall_is_lwp_create): Likewise.
4386
4387 (invalidate_cache): Remove #if 0 code.
4388
4389 (make_signal_thread_runnable): Remove.
4390 (procfs_target::resume): Remove #if 0 code.
4391
4392 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4393
4394 PR gdb/25939
4395 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4396 call ...
4397 (procfs_target::create_inferior): ... here.
4398
4399 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4400
4401 * exec.c (validate_exec_file): Ensure the build-id is up to
4402 date by calling reopen_exec_file (that checks file timestamp
4403 to decide to re-read the file).
4404
4405 2020-06-18 Pedro Alves <palves@redhat.com>
4406
4407 PR gdb/25412
4408 * gdbthread.h (delete_thread, delete_thread_silent)
4409 (find_thread_ptid): Update comments.
4410 * thread.c (current_thread_): New global.
4411 (is_current_thread): Move higher, and reimplement.
4412 (inferior_thread): Reimplement.
4413 (set_thread_exited): Use bool. Add assertions.
4414 (add_thread_silent): Simplify thread-reuse handling by always
4415 calling delete_thread.
4416 (delete_thread): Remove intro comment.
4417 (find_thread_ptid): Skip exited threads.
4418 (switch_to_thread_no_regs): Write to current_thread_.
4419 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4420 INFERIOR_PTID. Clear current_thread_.
4421
4422 2020-06-18 Pedro Alves <palves@redhat.com>
4423
4424 * aix-thread.c (pd_update): Use switch_to_thread.
4425
4426 2020-06-18 Pedro Alves <palves@redhat.com>
4427
4428 * ravenscar-thread.c (ravenscar_thread_target): Update.
4429 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4430 (ravenscar_thread_target::add_active_thread): ... this. Don't
4431 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4432 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4433
4434 2020-06-18 Pedro Alves <palves@redhat.com>
4435
4436 * nat/windows-nat.c (current_windows_thread): Remove.
4437 * nat/windows-nat.h (current_windows_thread): Remove.
4438 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4439 Adjust.
4440 (display_selectors): Adjust to fetch the current
4441 windows_thread_info based on inferior_ptid.
4442 (fake_create_process): No longer write to current_windows_thread.
4443 (windows_nat_target::get_windows_debug_event):
4444 Don't set inferior_ptid or current_windows_thread.
4445 (windows_nat_target::wait): Adjust to not rely on
4446 current_windows_thread.
4447 (do_initial_windows_stuff): Now a method of windows_nat_target.
4448 Switch to the last_ptid thread.
4449 (windows_nat_target::attach): Adjust.
4450 (windows_nat_target::detach): Use switch_to_no_thread instead of
4451 writing to inferior_ptid directly.
4452 (windows_nat_target::create_inferior): Adjust.
4453
4454 2020-06-18 Pedro Alves <palves@redhat.com>
4455
4456 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4457
4458 2020-06-18 Pedro Alves <palves@redhat.com>
4459
4460 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4461 after creating it, instead of writing to inferior_ptid. Don't
4462 write to inferior_ptid.
4463
4464 2020-06-18 Pedro Alves <palves@redhat.com>
4465
4466 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4467
4468 2020-06-18 Pedro Alves <palves@redhat.com>
4469
4470 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4471 it, instead of writing to inferior_ptid.
4472
4473 2020-06-18 Pedro Alves <palves@redhat.com>
4474
4475 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4476 to inferior_ptid.
4477
4478 2020-06-18 Pedro Alves <palves@redhat.com>
4479
4480 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4481 instead of writing to inferior_ptid directly.
4482
4483 2020-06-18 Pedro Alves <palves@redhat.com>
4484
4485 * corelow.c (core_target::close): Use switch_to_no_thread instead
4486 of writing to inferior_ptid directly.
4487 (add_to_thread_list, core_target_open): Use switch_to_thread
4488 instead of writing to inferior_ptid directly.
4489
4490 2020-06-18 Pedro Alves <palves@redhat.com>
4491
4492 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4493 inferior_ptid.
4494 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4495 inferior_ptid.
4496 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4497 inferior_ptid directly.
4498 (darwin_nat_target::init_thread_list): Switch to thread, instead
4499 of writing to inferior_ptid.
4500 (darwin_nat_target::attach): Don't write to inferior_ptid.
4501 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4502
4503 2020-06-18 Pedro Alves <palves@redhat.com>
4504
4505 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4506 thread.
4507 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4508 Instead use switch_to_thread.
4509 (gnu_nat_target::detach): Use switch_to_no_thread
4510 instead of writing to inferior_ptid directly. Used passed-in
4511 inferior instead of looking up the inferior by pid.
4512
4513 2020-06-18 Pedro Alves <palves@redhat.com>
4514
4515 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4516 inferior_ptid.
4517
4518 2020-06-18 Pedro Alves <palves@redhat.com>
4519
4520 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4521 inferior_ptid.
4522 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4523 thread.
4524 (nto_procfs_target::detach): Avoid referencing
4525 inferior_ptid. Use switch_to_no_thread instead of writing to
4526 inferior_ptid directly.
4527 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4528 instead of writing to inferior_ptid directly.
4529 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4530 to thread.
4531
4532 2020-06-18 Pedro Alves <palves@redhat.com>
4533
4534 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4535 after creating it, instead of writing to inferior_ptid.
4536 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4537 to inferior_ptid directly.
4538 (gdbsim_target::wait): Don't write to inferior_ptid.
4539
4540 2020-06-18 Pedro Alves <palves@redhat.com>
4541
4542 * remote.c (remote_target::remote_notice_new_inferior): Use
4543 switch_to_thread instead of writing to inferior_ptid directly.
4544 (remote_target::add_current_inferior_and_thread): Use
4545 switch_to_no_thread instead of writing to inferior_ptid directly.
4546 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4547 and switch_to_thread instead of using set_current_inferior or
4548 writing to inferior_ptid directly.
4549
4550 2020-06-18 Pedro Alves <palves@redhat.com>
4551
4552 * tracectf.c (ctf_target_open): Switch to added thread instead of
4553 writing to inferior_ptid directly.
4554 (ctf_target::close): Use switch_to_no_thread instead of writing to
4555 inferior_ptid directly.
4556
4557 2020-06-18 Pedro Alves <palves@redhat.com>
4558
4559 * tracefile-tfile.c (tfile_target_open): Don't write to
4560 inferior_ptid directly, instead switch to added thread.
4561 (tfile_target::close): Use switch_to_no_thread instead of writing
4562 to inferior_ptid directly.
4563
4564 2020-06-18 Pedro Alves <palves@redhat.com>
4565
4566 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4567 (procfs_target::detach): Use switch_to_no_thread
4568 instead of writing to inferior_ptid directly.
4569 (do_attach): Change return type to void. Switch to the added
4570 thread.
4571 (procfs_target::create_inferior): Switch to the added thread.
4572 (procfs_do_thread_registers): Don't write to inferior_ptid.
4573
4574 2020-06-18 Pedro Alves <palves@redhat.com>
4575
4576 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4577 of writing to inferior_ptid.
4578 (scoped_restore_exited_inferior): Delete.
4579 (handle_vfork_child_exec_or_exit): Simplify using
4580 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4581 instead of writing to inferior_ptid.
4582 (THREAD_STOPPED_BY): Delete.
4583 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4584 (thread_stopped_by_hw_breakpoint): Delete.
4585 (save_waitstatus): Use
4586 scoped_restore_current_thread+switch_to_thread, and call
4587 target_stopped_by_watchpoint instead of
4588 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4589 instead of thread_stopped_by_sw_breakpoint, and
4590 target_stopped_by_hw_breakpoint instead of
4591 thread_stopped_by_hw_breakpoint.
4592 (handle_inferior_event)
4593 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4594 inferior_ptid directly, nor
4595 set_current_inferior/set_current_program_space. Use
4596 switch_to_thread / switch_to_inferior_no_thread instead.
4597
4598 2020-06-18 Pedro Alves <palves@redhat.com>
4599
4600 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4601 instead of writing to inferior_ptid.
4602
4603 2020-06-18 Pedro Alves <palves@redhat.com>
4604
4605 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4606 added thread.
4607 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4608 to the added thread.
4609 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4610 instead of writing to inferior_ptid.
4611
4612 2020-06-18 Pedro Alves <palves@redhat.com>
4613
4614 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4615 (register_to_value_test): Mock a program_space too. Heap-allocate
4616 the address space. Don't write to inferior_ptid. Use
4617 switch_to_thread instead.
4618
4619 2020-06-18 Pedro Alves <palves@redhat.com>
4620
4621 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4622 Delete.
4623 (find_signalled_thread()): New, factored out from
4624 linux_make_corefile_notes and adjusted to handle exited threads.
4625 (linux_make_corefile_notes): Adjust to use the new
4626 find_signalled_thread.
4627
4628 2020-06-18 Pedro Alves <palves@redhat.com>
4629
4630 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4631 of saving/restoring inferior_ptid.
4632
4633 2020-06-17 Tom Tromey <tom@tromey.com>
4634
4635 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4636 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4637 declare.
4638 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4639
4640 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
4641
4642 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4643 of partial symtabs.
4644
4645 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4646
4647 * regformats/reg-arm.dat: Remove.
4648 * regformats/reg-bfin.dat: Remove.
4649 * regformats/reg-cris.dat: Remove.
4650 * regformats/reg-crisv32.dat: Remove.
4651 * regformats/reg-m32r.dat: Remove.
4652 * regformats/reg-tilegx.dat: Remove.
4653 * regformats/reg-tilegx32.dat: Remove.
4654
4655 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4656
4657 * features/Makefile (WHICH): Remove arm files.
4658 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4659 * regformats/arm/arm-with-neon.dat: Remove.
4660 * regformats/arm/arm-with-vfpv2.dat: Remove.
4661 * regformats/arm/arm-with-vfpv3.dat: Remove.
4662
4663 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4664
4665 * features/Makefile (XMLTOC): Remove rx.xml.
4666
4667 2020-06-17 Pedro Alves <palves@redhat.com>
4668
4669 * gdbthread.h (thread_control_state) <trap_expected> Update
4670 comments.
4671
4672 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4673
4674 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4675 ada_language::lookup_symbol_nonlocal.
4676 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4677 (ada_language::lookup_symbol_nonlocal): New member function,
4678 implementation from ada_lookup_symbol_nonlocal.
4679 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4680 initializer.
4681 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4682 initializer.
4683 (cplus_language::lookup_symbol_nonlocal): New member function.
4684 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4685 (minimal_language_data) Likewise.
4686 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4687 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4688 initializer.
4689 (d_language::lookup_symbol_nonlocal): New member function.
4690 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4691 initializer.
4692 (f_language::lookup_symbol_nonlocal): New member function.
4693 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4694 initializer.
4695 * language.c (unknown_language_data): Likewise.
4696 (auto_language_data): Likewise.
4697 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4698 field.
4699 (language_defn::lookup_symbol_nonlocal): New member function.
4700 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4701 initializer.
4702 * objc-lang.c (objc_language_data): Likewise.
4703 * opencl-lang.c (opencl_language_data): Likewise.
4704 * p-lang.c (pascal_language_data): Likewise.
4705 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4706 rust_language::lookup_symbol_nonlocal.
4707 (rust_language_data): Delete la_lookup_symbol_nonlocal
4708 initializer.
4709 (rust_language::lookup_symbol_nonlocal): New member function,
4710 implementation from rust_lookup_symbol_nonlocal.
4711 * symtab.c (lookup_symbol_aux): Update call to
4712 lookup_symbol_nonlocal.
4713 (basic_lookup_symbol_nonlocal): Rename to...
4714 (language_defn::lookup_symbol_nonlocal): ...this, and update
4715 header comment. Remove language_defn parameter, and replace with
4716 uses of `this'.
4717 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4718
4719 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4720
4721 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4722 initializer.
4723 (ada_language::value_print_inner): New member function.
4724 * c-lang.c (c_language_data): Delete la_value_print_inner
4725 initializer.
4726 (cplus_language_data): Likewise.
4727 (asm_language_data): Likewise.
4728 (minimal_language_data): Likewise.
4729 * d-lang.c (d_language_data): Likewise.
4730 (d_language::value_print_inner): New member function.
4731 * f-lang.c (f_language_data): Delete la_value_print_inner
4732 initializer.
4733 (f_language::value_print_inner): New member function.
4734 * f-lang.h (f_value_print_innner): Rename to...
4735 (f_value_print_inner): ...this (note spelling of 'inner').
4736 * f-valprint.c (f_value_print_innner): Rename to...
4737 (f_value_print_inner): ...this (note spelling of 'inner').
4738 * go-lang.c (go_language_data): Delete la_value_print_inner
4739 initializer.
4740 (go_language::value_print_inner): New member function.
4741 * language.c (language_defn::value_print_inner): Define new member
4742 function.
4743 (unk_lang_value_print_inner): Delete.
4744 (unknown_language_data): Delete la_value_print_inner initializer.
4745 (unknown_language::value_print_inner): New member function.
4746 (auto_language_data): Delete la_value_print_inner initializer.
4747 (auto_language::value_print_inner): New member function.
4748 * language.h (language_data): Delete la_value_print_inner field.
4749 (language_defn::value_print_inner): Delcare new member function.
4750 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4751 initializer.
4752 (m2_language::value_print_inner): New member function.
4753 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4754 initializer.
4755 * opencl-lang.c (opencl_language_data): Likewise.
4756 * p-lang.c (pascal_language_data): Likewise.
4757 (pascal_language::value_print_inner): New member function.
4758 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4759 initializer.
4760 (rust_language::value_print_inner): New member function.
4761 * valprint.c (do_val_print): Update call to value_print_inner.
4762
4763 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4764
4765 * ada-lang.c (ada_language_data): Delete la_value_print
4766 initializer.
4767 (ada_language::value_print): New member function.
4768 * c-lang.c (c_language_data): Delete la_value_print initializer.
4769 (cplus_language_data): Likewise.
4770 (asm_language_data): Likewise.
4771 (minimal_language_data): Likewise.
4772 * d-lang.c (d_language_data): Likewise.
4773 * f-lang.c (f_language_data): Likewise.
4774 * go-lang.c (go_language_data): Likewise.
4775 * language.c (unk_lang_value_print): Delete.
4776 (language_defn::value_print): Define new member function.
4777 (unknown_language_data): Delete la_value_print initializer.
4778 (unknown_language::value_print): New member function.
4779 (auto_language_data): Delete la_value_print initializer.
4780 (auto_language::value_print): New member function.
4781 * language.h (language_data): Delete la_value_print field.
4782 (language_defn::value_print): Declare new member function.
4783 (LA_VALUE_PRINT): Update call to value_print.
4784 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4785 * objc-lang.c (objc_language_data): Likewise.
4786 * opencl-lang.c (opencl_language_data): Likewise.
4787 * p-lang.c (pascal_language_data): Likewise.
4788 (pascal_language::value_print): New member function.
4789 * rust-lang.c (rust_language_data): Delete la_value_print
4790 initializer.
4791
4792 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4793
4794 * ada-lang.c (ada_watch_location_expression): Rename to
4795 ada_language::watch_location_expression.
4796 (ada_language_data): Delete la_watch_location_expression
4797 initializer.
4798 (ada_language::watch_location_expression): New member function,
4799 implementation from ada_watch_location_expression.
4800 * breakpoint.c (watch_command_1): Update call to
4801 watch_location_expression.
4802 * c-lang.c (c_watch_location_expression): Rename to
4803 language_defn::watch_location_expression.
4804 (c_language_data): Delete la_watch_location_expression
4805 initializer.
4806 (cplus_language_data): Likewise.
4807 (asm_language_data): Likewise.
4808 (minimal_language_data): Likewise.
4809 * c-lang.h (c_watch_location_expression): Delete declaration.
4810 * d-lang.c (d_language_data): Delete la_watch_location_expression
4811 initializer.
4812 * f-lang.c (f_language_data): Likewise.
4813 * go-lang.c (go_language_data): Likewise.
4814 * language.c (language_defn::watch_location_expression): Member
4815 function implementation from c_watch_location_expression.
4816 (unknown_language_data): Delete la_watch_location_expression
4817 initializer.
4818 (auto_language_data): Likewise.
4819 * language.h (language_data): Delete la_watch_location_expression
4820 field.
4821 (language_defn::watch_location_expression): Declare new member
4822 function.
4823 * m2-lang.c (m2_language_data): Delete
4824 la_watch_location_expression initializer.
4825 * objc-lang.c (objc_language_data): Likewise.
4826 * opencl-lang.c (opencl_language_data): Likewise.
4827 * p-lang.c (pascal_language_data): Likewise.
4828 * rust-lang.c (rust_watch_location_expression): Rename to
4829 rust_language::watch_location_expression.
4830 (rust_language_data): Delete la_watch_location_expression
4831 initializer.
4832 (rust_language::watch_location_expression): New member function,
4833 implementation from rust_watch_location_expression.
4834
4835 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4836
4837 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4838 ada_language::collect_symbol_completion_matches.
4839 (ada_language_data): Delete la_collect_symbol_completion_matches
4840 initializer.
4841 (ada_language::collect_symbol_completion_matches): New member
4842 function, implementation from
4843 ada_collect_symbol_completion_matches.
4844 * c-lang.c (c_language_data): Delete
4845 la_collect_symbol_completion_matches initializer.
4846 (cplus_language_data): Likewise.
4847 (asm_language_data): Likewise.
4848 (minimal_language_data): Likewise.
4849 * d-lang.c (d_language_data): Likewise.
4850 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4851 f_language::collect_symbol_completion_matches.
4852 (f_language_data): Delete la_collect_symbol_completion_matches
4853 initializer.
4854 (f_language::collect_symbol_completion_matches) New member
4855 function, implementation from f_collect_symbol_completion_matches.
4856 * go-lang.c (go_language_data): Delete
4857 la_collect_symbol_completion_matches initializer.
4858 * language.c (unknown_language_data): Likewise.
4859 (auto_language_data): Likewise.
4860 * language.h (language_data): Delete
4861 la_collect_symbol_completion_matches field.
4862 (language_defn::collect_symbol_completion_matches): New member
4863 function.
4864 * m2-lang.c (m2_language_data): Delete
4865 la_collect_symbol_completion_matches initializer.
4866 * objc-lang.c (objc_language_data): Likewise.
4867 * opencl-lang.c (opencl_language_data): Likewise.
4868 * p-lang.c (pascal_language_data): Likewise.
4869 * rust-lang.c (rust_language_data): Likewise.
4870 * symtab.c (default_collect_symbol_completion_matches): Delete.
4871 (collect_symbol_completion_matches): Update call to
4872 collect_symbol_completion_matches.
4873 (collect_symbol_completion_matches_type): Likewise.
4874 * symtab.h (default_collect_symbol_completion_matches): Delete
4875 declaration.
4876
4877 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4878
4879 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4880 (ada_language_data): Delete la_word_break_characters initializer.
4881 (ada_language::word_break_characters): New member function.
4882 * c-lang.c (c_language_data): Delete la_word_break_characters
4883 initializer.
4884 (cplus_language_data): Likewise.
4885 (asm_language_data): Likewise.
4886 (minimal_language_data): Likewise.
4887 * completer.c: Update global comment.
4888 (advance_to_expression_complete_word_point): Update call to
4889 word_break_characters.
4890 (complete_files_symbols): Likewise.
4891 (complete_line_internal_1): Likewise.
4892 (default_completer_handle_brkchars): Likewise.
4893 (skip_quoted_chars): Likewise.
4894 * d-lang.c (d_language_data): Delete la_word_break_characters
4895 initializer.
4896 * f-lang.c (f_word_break_characters): Delete.
4897 (f_language_data): Delete la_word_break_characters initializer.
4898 (f_language::word_break_characters): New member function.
4899 * go-lang.c (go_language_data): Delete la_word_break_characters
4900 initializer.
4901 * language.c (unknown_language_data): Likewise.
4902 (auto_language_data): Likewise.
4903 * language.h (default_word_break_characters): Move declaration to
4904 earlier in the file.
4905 (language_data): Delete la_word_break_characters field.
4906 (language_defn::word_break_characters): New member function.
4907 * m2-lang.c (m2_language_data): Delete la_word_break_characters
4908 initializer.
4909 * objc-lang.c (objc_language_data): Likewise.
4910 * opencl-lang.c (opencl_language_data): Likewise.
4911 * p-lang.c (pascal_language_data): Likewise.
4912 * rust-lang.c (rust_language_data): Likewise.
4913
4914 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4915
4916 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
4917 (ada_language_data): Delete la_get_symbol_name_matcher
4918 initializer.
4919 (language_defn::get_symbol_name_matcher_inner): New member
4920 function.
4921 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
4922 initializer.
4923 (cplus_language_data): Likewise.
4924 (cplus_language::get_symbol_name_matcher_inner): New member
4925 function.
4926 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
4927 (minimal_language_data): Likewise.
4928 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
4929 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
4930 initializer.
4931 * dictionary.c (iter_match_first_hashed): Update call to
4932 get_symbol_name_matcher.
4933 (iter_match_next_hashed): Likewise.
4934 (iter_match_next_linear): Likewise.
4935 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
4936 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
4937 initializer.
4938 (f_language::get_symbol_name_matcher_inner): New member function.
4939 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4940 initializer.
4941 * language.c (default_symbol_name_matcher): Update header comment,
4942 make static.
4943 (language_defn::get_symbol_name_matcher): New definition.
4944 (language_defn::get_symbol_name_matcher_inner): Likewise.
4945 (get_symbol_name_matcher): Delete.
4946 (unknown_language_data): Delete la_get_symbol_name_matcher
4947 initializer.
4948 (auto_language_data): Likewise.
4949 * language.h (language_data): Delete la_get_symbol_name_matcher
4950 field.
4951 (language_defn::get_symbol_name_matcher): New member function.
4952 (language_defn::get_symbol_name_matcher_inner): Likewise.
4953 (default_symbol_name_matcher): Delete declaration.
4954 * linespec.c (find_methods): Update call to
4955 get_symbol_name_matcher.
4956 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4957 initializer.
4958 * minsyms.c (lookup_minimal_symbol): Update call to
4959 get_symbol_name_matcher.
4960 (iterate_over_minimal_symbols): Likewise.
4961 * objc-lang.c (objc_language_data): Delete
4962 la_get_symbol_name_matcher initializer.
4963 * opencl-lang.c (opencl_language_data): Likewise.
4964 * p-lang.c (pascal_language_data): Likewise.
4965 * psymtab.c (psymbol_name_matches): Update call to
4966 get_symbol_name_matcher.
4967 * rust-lang.c (rust_language_data): Delete
4968 la_get_symbol_name_matcher initializer.
4969 * symtab.c (symbol_matches_search_name): Update call to
4970 get_symbol_name_matcher.
4971 (compare_symbol_name): Likewise.
4972
4973 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4974
4975 * ada-lang.c (ada_language_data): Delete la_compute_program
4976 initializer.
4977 * c-lang.c (c_language_data): Likewise.
4978 (c_language::compute_program): New member function.
4979 (cplus_language_data): Delete la_compute_program initializer.
4980 (cplus_language::compute_program): New member function.
4981 (asm_language_data): Delete la_compute_program initializer.
4982 (minimal_language_data): Likewise.
4983 * c-lang.h (c_compute_program): Update comment.
4984 (cplus_compute_program): Likewise.
4985 * compile/compile-c-support.c (c_compute_program): Likewise.
4986 (cplus_compute_program): Likewise.
4987 * compile/compile.c (compile_to_object): Update call to
4988 la_compute_program.
4989 * d-lang.c (d_language_data): Delete la_compute_program
4990 initializer.
4991 * f-lang.c (f_language_data): Likewise.
4992 * go-lang.c (go_language_data): Likewise.
4993 * language.c (unknown_language_data): Likewise.
4994 (auto_language_data): Likewise.
4995 * language.h (language_data): Delete la_compute_program field.
4996 (language_defn::compute_program): New member function.
4997 * m2-lang.c (m2_language_data): Delete la_compute_program
4998 initializer.
4999 * objc-lang.c (objc_language_data): Likewise.
5000 * opencl-lang.c (opencl_language_data): Likewise.
5001 * p-lang.c (pascal_language_data): Likewise.
5002 * rust-lang.c (rust_language_data): Likewise.
5003
5004 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5005
5006 * ada-lang.c (ada_language_data) Delete
5007 la_class_name_from_physname initializer.
5008 * c-lang.c (c_language_data): Likewise.
5009 (cplus_language_data): Likewise.
5010 (cplus_language::class_name_from_physname): New member function.
5011 (asm_language_data): Delete la_class_name_from_physname
5012 initializer.
5013 (minimal_language_data): Likewise.
5014 * d-lang.c (d_language_data): Likewise.
5015 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
5016 method on language_defn class.
5017 (guess_full_die_structure_name): Likewise.
5018 * f-lang.c (f_language_data): Delete la_class_name_from_physname
5019 initializer.
5020 * go-lang.c (go_language_data): Likewise.
5021 * language.c (language_class_name_from_physname): Delete.
5022 (unk_lang_class_name): Delete.
5023 (unknown_language_data): Delete la_class_name_from_physname
5024 initializer.
5025 (auto_language_data): Likewise.
5026 * language.h (language_data): Delete la_class_name_from_physname
5027 field.
5028 (language_defn::class_name_from_physname): New function.
5029 (language_class_name_from_physname): Delete declaration.
5030 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
5031 initializer.
5032 * objc-lang.c (objc_language_data): Likewise.
5033 * opencl-lang.c (opencl_language_data): Likewise.
5034 * p-lang.c (pascal_language_data): Likewise.
5035 * rust-lang.c (rust_language_data): Likewise.
5036
5037 2020-06-16 Tom Tromey <tom@tromey.com>
5038
5039 * tui/tui-data.h (STATUS_NAME): New macro.
5040 * tui/tui-layout.c (tui_remove_some_windows)
5041 (initialize_known_windows, tui_register_window)
5042 (tui_layout_split::remove_windows, initialize_layouts)
5043 (tui_new_layout_command): Don't use hard-coded window names.
5044
5045 2020-06-16 Tom Tromey <tom@tromey.com>
5046
5047 PR tui/25348:
5048 * tui/tui.c (tui_ensure_readline_initialized): Rename from
5049 tui_initialize_readline. Only run once. Call rl_initialize.
5050 * tui/tui.h (tui_ensure_readline_initialized): Rename from
5051 tui_initialize_readline.
5052 * tui/tui-io.c (tui_setup_io): Call
5053 tui_ensure_readline_initialized.
5054 * tui/tui-interp.c (tui_interp::init): Update.
5055
5056 2020-06-16 Tom Tromey <tom@tromey.com>
5057
5058 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
5059 Also preserve the status window.
5060
5061 2020-06-16 Tom Tromey <tom@tromey.com>
5062
5063 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
5064 where m_window==nullptr.
5065
5066 2020-06-15 Tom Tromey <tromey@adacore.com>
5067
5068 * windows-nat.c (windows_nat::handle_output_debug_string):
5069 Update.
5070 (windows_nat::handle_ms_vc_exception): Update.
5071 * target.h (target_read_string): Change API.
5072 * target.c (target_read_string): Change API.
5073 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
5074 Update.
5075 * solib-frv.c (frv_current_sos): Update.
5076 * solib-dsbt.c (dsbt_current_sos): Update.
5077 * solib-darwin.c (darwin_current_sos): Update.
5078 * linux-thread-db.c (inferior_has_bug): Update.
5079 * expprint.c (print_subexp_standard): Update.
5080 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
5081 (ada_exception_message_1): Update.
5082
5083 2020-06-15 Tom Tromey <tromey@adacore.com>
5084
5085 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
5086
5087 2020-06-15 Tom Tromey <tromey@adacore.com>
5088
5089 * valprint.c (read_string): Update comment.
5090 * target.c (MIN): Remove.
5091 (target_read_string): Rewrite.
5092
5093 2020-06-15 Tom Tromey <tromey@adacore.com>
5094
5095 * corefile.c (read_memory_string): Remove.
5096 * ada-valprint.c (ada_value_print_ptr): Update.
5097 * ada-lang.h (ada_tag_name): Change return type.
5098 * ada-lang.c (type_from_tag): Update.
5099 (ada_tag_name_from_tsd): Change return type. Use
5100 target_read_string.
5101 (ada_tag_name): Likewise.
5102 * gdbcore.h (read_memory_string): Don't declare.
5103
5104 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
5105
5106 * symtab.c (rbreak_command): Ignore Windows drive colon.
5107
5108 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
5109
5110 * NEWS: Mention removed GDBserver host support.
5111
5112 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
5113
5114 * features/riscv/rebuild-csr-xml.sh: Updated.
5115
5116 2020-06-11 Tom Tromey <tom@tromey.com>
5117
5118 PR gdb/18318:
5119 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
5120
5121 2020-06-09 Jonny Grant <jg@jguk.org>
5122 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
5123
5124 * main.c (captured_main_1): Don't print new line after help.
5125 (print_gdb_help): add mailing list and IRC channel information
5126 to --help. Add new lines between items in the footer. Remove
5127 quotes around bug url.
5128
5129 2020-06-11 Keith Seitz <keiths@redhat.com>
5130
5131 PR gdb/21356
5132 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
5133 Resolve typedefs for type length calculations.
5134
5135 2020-06-10 Tom de Vries <tdevries@suse.de>
5136
5137 PR ada/24713
5138 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
5139 (write_psymbols): Enable .gdb_index for ada.
5140 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
5141 ada.
5142
5143 2020-06-10 Tom de Vries <tdevries@suse.de>
5144
5145 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
5146 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
5147 namei" instead of "const char *name" argument.
5148 (dw2_map_matching_symbols): Use "offset_type namei" variant of
5149 dw2_symtab_iter_init.
5150
5151 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5152
5153 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
5154 to use type::field and field::type instead.
5155
5156 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5157
5158 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
5159 to use field::type instead.
5160
5161 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5162
5163 * gdbtypes.h (struct field) <type, set_type>: New methods.
5164 Rename `type` field to...
5165 <m_type>: ... this. Change references throughout to use type or
5166 set_type methods.
5167 (FIELD_TYPE): Use field::type. Change call sites that modify
5168 the field's type to use field::set_type instead.
5169
5170 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5171
5172 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
5173 to use type::index_type instead.
5174
5175 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5176
5177 * gdbtypes.h (struct type) <index_type, set_index_type>: New
5178 methods.
5179 (TYPE_INDEX_TYPE): Use type::index_type.
5180 * gdbtypes.c (create_array_type_with_stride): Likewise.
5181
5182 2020-06-07 Tom Tromey <tom@tromey.com>
5183
5184 * valprint.c (generic_val_print_float): Remove "embedded_offset"
5185 parameter.
5186 (generic_value_print): Update.
5187
5188 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5189
5190 Revert commit 982a38f60b0.
5191 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
5192
5193 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5194
5195 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
5196 avoid use after free.
5197
5198 2020-06-05 Tom de Vries <tdevries@suse.de>
5199
5200 * NEWS: Fix typos.
5201
5202 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
5203
5204 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
5205 the per_bfd object.
5206 (dwarf2_read_debug_names): Likewise.
5207 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
5208 object when re-using a per_bfd object with an index.
5209
5210 2020-06-03 Tom de Vries <tdevries@suse.de>
5211
5212 PR symtab/26046
5213 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
5214 children for C++.
5215 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
5216 DW_TAG_subprogram.
5217
5218 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5219
5220 * ada-lang.c (ada_language_data): Delete skip_trampoline
5221 initializer.
5222 * c-lang.c (c_language_data): Likewise.
5223 (cplus_language_data): Likewise.
5224 (cplus_language::skip_trampoline): New member function.
5225 (asm_language_data): Delete skip_trampoline initializer.
5226 (minimal_language_data): Likewise.
5227 * d-lang.c (d_language_data): Likewise.
5228 * f-lang.c (f_language_data): Likewise.
5229 * go-lang.c (go_language_data): Likewise.
5230 * language.c (unk_lang_trampoline): Delete function.
5231 (skip_language_trampoline): Update.
5232 (unknown_language_data): Delete skip_trampoline initializer.
5233 (auto_language_data): Likewise.
5234 * language.h (language_data): Delete skip_trampoline field.
5235 (language_defn::skip_trampoline): New function.
5236 * m2-lang.c (m2_language_data): Delete skip_trampoline
5237 initializer.
5238 * objc-lang.c (objc_skip_trampoline): Delete function, move
5239 implementation to objc_language::skip_trampoline.
5240 (objc_language_data): Delete skip_trampoline initializer.
5241 (objc_language::skip_trampoline): New member function with
5242 implementation from objc_skip_trampoline.
5243 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5244 initializer.
5245 * p-lang.c (pascal_language_data): Likewise.
5246 * rust-lang.c (rust_language_data): Likewise.
5247
5248 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5249
5250 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5251 (ada_language::demangle): New member function.
5252 * c-lang.c (c_language_data): Delete la_demangle initializer.
5253 (cplus_language_data): Delete la_demangle initializer.
5254 (cplus_language::demangle): New member function.
5255 (asm_language_data): Delete la_demangle initializer.
5256 (minimal_language_data): Delete la_demangle initializer.
5257 * d-lang.c (d_language_data): Delete la_demangle initializer.
5258 (d_language::demangle): New member function.
5259 * f-lang.c (f_language_data): Delete la_demangle initializer.
5260 (f_language::demangle): New member function.
5261 * go-lang.c (go_language_data): Delete la_demangle initializer.
5262 (go_language::demangle): New member function.
5263 * language.c (language_demangle): Update.
5264 (unk_lang_demangle): Delete.
5265 (unknown_language_data): Delete la_demangle initializer.
5266 (unknown_language::demangle): New member function.
5267 (auto_language_data): Delete la_demangle initializer.
5268 (auto_language::demangle): New member function.
5269 * language.h (language_data): Delete la_demangle field.
5270 (language_defn::demangle): New function.
5271 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5272 * objc-lang.c (objc_language_data): Delete la_demangle
5273 initializer.
5274 (objc_language::demangle): New member function.
5275 * opencl-lang.c (opencl_language_data): Delete la_demangle
5276 initializer.
5277 * p-lang.c (pascal_language_data): Likewise.
5278 * rust-lang.c (rust_language_data): Likewise.
5279 (rust_language::demangle): New member function.
5280
5281 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5282
5283 * ada-lang.c (ada_language_data): Delete la_print_type
5284 initializer.
5285 (ada_language::print_type): New member function.
5286 * c-lang.c (c_language_data): Delete la_print_type initializer.
5287 (c_language::print_type): New member function.
5288 (cplus_language_data): Delete la_print_type initializer.
5289 (cplus_language::print_type): New member function.
5290 (asm_language_data): Delete la_print_type initializer.
5291 (asm_language::print_type): New member function.
5292 (minimal_language_data): Delete la_print_type initializer.
5293 (minimal_language::print_type): New member function.
5294 * d-lang.c (d_language_data): Delete la_print_type initializer.
5295 (d_language::print_type): New member function.
5296 * f-lang.c (f_language_data): Delete la_print_type initializer.
5297 (f_language::print_type): New member function.
5298 * go-lang.c (go_language_data): Delete la_print_type initializer.
5299 (go_language::print_type): New member function.
5300 * language.c (unk_lang_print_type): Delete.
5301 (unknown_language_data): Delete la_print_type initializer.
5302 (unknown_language::print_type): New member function.
5303 (auto_language_data): Delete la_print_type initializer.
5304 (auto_language::print_type): New member function.
5305 * language.h (language_data): Delete la_print_type field.
5306 (language_defn::print_type): New function.
5307 (LA_PRINT_TYPE): Update.
5308 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5309 (m2_language::print_type): New member function.
5310 * objc-lang.c (objc_language_data): Delete la_print_type
5311 initializer.
5312 (objc_language::print_type): New member function.
5313 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5314 to opencl_language::print_type.
5315 (opencl_language_data): Delete la_print_type initializer.
5316 (opencl_language::print_type): New member function, implementation
5317 from opencl_print_type.
5318 * p-lang.c (pascal_language_data): Delete la_print_type
5319 initializer.
5320 (pascal_language::print_type): New member function.
5321 * rust-lang.c (rust_print_type): Delete, implementation moved to
5322 rust_language::print_type.
5323 (rust_language_data): Delete la_print_type initializer.
5324 (rust_language::print_type): New member function, implementation
5325 from rust_print_type.
5326
5327 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5328
5329 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5330 implementation moves to...
5331 (ada_language::sniff_from_mangled_name): ...here. Update return
5332 type.
5333 (ada_language_data): Delete la_sniff_from_mangled_name
5334 initializer.
5335 * c-lang.c (c_language_data): Likewise.
5336 (cplus_language_data): Likewise.
5337 (cplus_language::sniff_from_mangled_name): New member function,
5338 implementation taken from gdb_sniff_from_mangled_name.
5339 (asm_language_data): Delete la_sniff_from_mangled_name
5340 initializer.
5341 (minimal_language_data): Likewise.
5342 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5343 implementation moves to cplus_language::sniff_from_mangled_name.
5344 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5345 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5346 moves to...
5347 (d_language::sniff_from_mangled_name): ...here.
5348 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5349 * f-lang.c (f_language_data): Likewise.
5350 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5351 moves to...
5352 (go_language::sniff_from_mangled_name): ...here.
5353 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5354 * language.c (language_sniff_from_mangled_name): Delete.
5355 (unknown_language_data): Delete la_sniff_from_mangled_name
5356 initializer.
5357 (auto_language_data): Likewise.
5358 * language.h (language_data): Delete la_sniff_from_mangled_name
5359 field.
5360 (language_defn::sniff_from_mangled_name): New function.
5361 (language_sniff_from_mangled_name): Delete declaration.
5362 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5363 field.
5364 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5365 implementation moves to...
5366 (objc_language::sniff_from_mangled_name): ...here.
5367 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5368 * opencl-lang.c (opencl_language_data): Likewise.
5369 * p-lang.c (pascal_language_data): Likewise.
5370 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5371 implementation moves to...
5372 (rust_language::sniff_from_mangled_name): ...here.
5373 (rust_language_data): Delete la_sniff_from_mangled_name
5374 initializer.
5375 * symtab.c (symbol_find_demangled_name): Call
5376 sniff_from_mangled_name member function.
5377
5378 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5379
5380 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5381 initializer.
5382 * c-lang.c (c_language_data): Likewise.
5383 (cplus_language_data): Likewise.
5384 (cplus_language::search_name_hash): New member function.
5385 (asm_language_data): Delete la_search_name_hash initializer.
5386 (minimal_language_data): Likewise.
5387 * d-lang.c (d_language_data): Likewise.
5388 * dictionary.c (default_search_name_hash): Rename to...
5389 (language_defn::search_name_hash): ...this.
5390 * f-lang.c (f_language_data): Likewise.
5391 (f_language::search_name_hash): New member function.
5392 * go-lang.c (go_language_data): Delete la_search_name_hash
5393 initializer.
5394 * language.c (unknown_language_data): Likewise.
5395 (auto_language_data): Likewise.
5396 * language.h (struct language_data): Delete la_search_name_hash
5397 field.
5398 (language_defn::search_name_hash): Declare new member function.
5399 (default_search_name_hash): Delete declaration.
5400 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5401 initializer.
5402 * objc-lang.c (objc_language_data): Likewise.
5403 * opencl-lang.c (opencl_language_data): Likewise.
5404 * p-lang.c (pascal_language_data): Likewise.
5405 * rust-lang.c (rust_language_data): Likewise.
5406 * symtab.c (search_name_hash): Update call.
5407
5408 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5409
5410 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5411 initializer.
5412 * c-lang.c (class compile_instance): Declare.
5413 (c_language_data): Delete la_get_compile_instance initializer.
5414 (c_language::get_compile_instance): New member function.
5415 (cplus_language_data): Delete la_get_compile_instance initializer.
5416 (cplus_language::get_compile_instance): New member function.
5417 (asm_language_data): Delete la_get_compile_instance initializer.
5418 (minimal_language_data): Likewise.
5419 * c-lang.h (c_get_compile_context): Update comment.
5420 (cplus_get_compile_context): Update comment.
5421 * compile/compile.c (compile_to_object): Update calls, don't rely
5422 on function pointer being NULL.
5423 * d-lang.c (d_language_data): Delete la_get_compile_instance
5424 initializer.
5425 * f-lang.c (f_language_data): Likewise.
5426 * go-lang.c (go_language_data): Likewise.
5427 * language.c (unknown_language_data): Likewise.
5428 (auto_language_data): Likewise.
5429 * language.h (language_data): Delete la_get_compile_instance field.
5430 (language_defn::get_compile_instance): New member function.
5431 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5432 initializer.
5433 * objc-lang.c (objc_language_data): Likewise.
5434 * opencl-lang.c (opencl_language_data): Likewise.
5435 * p-lang.c (pascal_language_data): Likewise.
5436 * rust-lang.c (rust_language_data): Likewise.
5437
5438 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5439
5440 * ada-lang.c (ada_add_all_symbols): Update comment.
5441 (ada_iterate_over_symbols): Delete, move implementation to...
5442 (ada_language::iterate_over_symbols): ...here, a new member
5443 function, rewrite to use range based for loop.
5444 (ada_language_data): Delete la_iterate_over_symbols initializer.
5445 * c-lang.c (c_language_data): Likewise.
5446 (cplus_language_data): Likewise.
5447 (asm_language_data): Likewise.
5448 (minimal_language_data): Likewise.
5449 * d-lang.c (d_language_data): Likewise.
5450 * f-lang.c (f_language_data): Likewise.
5451 * go-lang.c (go_language_data): Likewise.
5452 * language.c (unknown_language_data): Likewise.
5453 (auto_language_data): Likewise.
5454 * language.h (language_data): Delete la_iterate_over_symbols field.
5455 (language_defn::iterate_over_symbols): New member function.
5456 (LA_ITERATE_OVER_SYMBOLS): Update.
5457 * linespec.c (iterate_over_all_matching_symtabs): Update.
5458 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5459 initializer.
5460 * objc-lang.c (objc_language_data): Likewise.
5461 * opencl-lang.c (opencl_language_data): Likewise.
5462 * p-lang.c (pascal_language_data): Likewise.
5463 * rust-lang.c (rust_language_data): Likewise.
5464
5465 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5466
5467 * ada-lang.c (ada_language_data): Delete
5468 la_lookup_transparent_type initializer.
5469 * c-lang.c (c_language_data): Likewise.
5470 (cplus_language_data): Likewise.
5471 (cplus_language::lookup_transparent_type): New member function.
5472 (asm_language_data): Delete la_lookup_transparent_type
5473 initializer.
5474 (minimal_language_data): Likewise.
5475 * d-lang.c (d_language_data): Likewise.
5476 * f-lang.c (f_language_data): Likewise.
5477 * go-lang.c (go_language_data): Likewise.
5478 * language.c (unknown_language_data): Likewise.
5479 (auto_language_data): Likewise.
5480 * language.h (struct language_data): Delete
5481 la_lookup_transparent_type field.
5482 (language_defn::lookup_transparent_type): New member function.
5483 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5484 initializer.
5485 * objc-lang.c (objc_language_data): Likewise.
5486 * opencl-lang.c (opencl_language_data): Likewise.
5487 * p-lang.c (pascal_language_data): Likewise.
5488 * rust-lang.c (rust_language_data): Likewise.
5489 * symtab.c (symbol_matches_domain): Update call.
5490
5491 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5492
5493 * ada-lang.c (ada_language_arch_info): Delete function, move
5494 implementation to...
5495 (ada_language::language_arch_info): ...here, a new member
5496 function.
5497 (ada_language_data): Delete la_language_arch_info.
5498 * c-lang.c (c_language_data): Likewise.
5499 (c_language::language_arch_info): New member function.
5500 (cplus_language_arch_info): Delete function, move
5501 implementation to...
5502 (cplus_language::language_arch_info): ...here, a new member
5503 function.
5504 (cplus_language_data): Delete la_language_arch_info.
5505 (asm_language_data): Likewise.
5506 (asm_language::language_arch_info): New member function.
5507 (minimal_language_data): Delete la_language_arch_info.
5508 (minimal_language::language_arch_info): New member function.
5509 * d-lang.c (d_language_arch_info): Delete function, move
5510 implementation to...
5511 (d_language::language_arch_info): ...here, a new member
5512 function.
5513 (d_language_data): Delete la_language_arch_info.
5514 * f-lang.c (f_language_arch_info): Delete function, move
5515 implementation to...
5516 (f_language::language_arch_info): ...here, a new member
5517 function.
5518 (f_language_data): Delete la_language_arch_info.
5519 * go-lang.c (go_language_arch_info): Delete function, move
5520 implementation to...
5521 (go_language::language_arch_info): ...here, a new member
5522 function.
5523 (go_language_data): Delete la_language_arch_info.
5524 * language.c (unknown_language_data): Likewise.
5525 (unknown_language::language_arch_info): New member function.
5526 (auto_language_data): Delete la_language_arch_info.
5527 (auto_language::language_arch_info): New member function.
5528 (language_gdbarch_post_init): Update call to
5529 la_language_arch_info.
5530 * language.h (language_data): Delete la_language_arch_info
5531 function pointer.
5532 (language_defn::language_arch_info): New function.
5533 * m2-lang.c (m2_language_arch_info): Delete function, move
5534 implementation to...
5535 (m2_language::language_arch_info): ...here, a new member
5536 function.
5537 (m2_language_data): Delete la_language_arch_info.
5538 * objc-lang.c (objc_language_arch_info): Delete function, move
5539 implementation to...
5540 (objc_language::language_arch_info): ...here, a new member
5541 function.
5542 (objc_language_data): Delete la_language_arch_info.
5543 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5544 implementation to...
5545 (opencl_language::language_arch_info): ...here, a new member
5546 function.
5547 (opencl_language_data): Delete la_language_arch_info.
5548 * p-lang.c (pascal_language_arch_info): Delete function, move
5549 implementation to...
5550 (pascal_language::language_arch_info): ...here, a new member
5551 function.
5552 (pascal_language_data): Delete la_language_arch_info.
5553 * rust-lang.c (rust_language_arch_info): Delete function, move
5554 implementation to...
5555 (rust_language::language_arch_info): ...here, a new member
5556 function.
5557 (rust_language_data): Delete la_language_arch_info.
5558
5559 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5560
5561 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5562 initializer.
5563 * c-lang.c (c_language_data): Likewise.
5564 (cplus_language_data): Likewise.
5565 (cplus_language::pass_by_reference_info): New method.
5566 (asm_language_data): Delete la_pass_by_reference initializer.
5567 (minimal_language_data): Likewise.
5568 * cp-abi.c (cp_pass_by_reference): Remove use of
5569 default_pass_by_reference.
5570 * d-lang.c (d_language_data): Likewise.
5571 * f-lang.c (f_language_data): Likewise.
5572 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5573 default_pass_by_reference.
5574 * go-lang.c (go_language_data): Likewise.
5575 * language.c (language_pass_by_reference): Update.
5576 (default_pass_by_reference): Delete.
5577 (unknown_language_data): Delete la_pass_by_reference
5578 initializer.
5579 (auto_language_data): Likewise.
5580 * language.h (struct language_data): Delete la_pass_by_reference
5581 field.
5582 (language_defn::pass_by_reference_info): New member function.
5583 (default_pass_by_reference): Delete declaration.
5584 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5585 initializer.
5586 * objc-lang.c (objc_language_data): Likewise.
5587 * opencl-lang.c (opencl_language_data): Likewise.
5588 * p-lang.c (pascal_language_data): Likewise.
5589 * rust-lang.c (rust_language_data): Likewise.
5590
5591 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5592
5593 * ada-lang.c (ada_read_var_value): Delete function, move
5594 implementation to...
5595 (ada_language::read_var_value): ...here.
5596 (ada_language_data): Delete la_read_var_value initializer.
5597 * c-lang.c (c_language_data): Likewise.
5598 (cplus_language_data): Likewise.
5599 (minimal_language_data): Likewise.
5600 * d-lang.c (d_language_data): Likewise.
5601 * f-lang.c (f_language_data): Likewise.
5602 * findvar.c (default_read_var_value): Rename to...
5603 (language_defn::read_var_value): ...this.
5604 * findvar.c (read_var_value): Update header comment, and change to
5605 call member function instead of function pointer.
5606 * go-lang.c (go_language_data): Likewise.
5607 * language.c (unknown_language_data): Delete la_read_var_value
5608 initializer.
5609 (auto_language_data): Likewise.
5610 * language.h (struct language_data): Delete la_read_var_value
5611 field.
5612 (language_defn::read_var_value): New member function.
5613 (default_read_var_value): Delete declaration.
5614 * m2-lang.c (m2_language_data): Delete la_read_var_value
5615 initializer.
5616 * objc-lang.c (objc_language_data): Likewise.
5617 * opencl-lang.c (opencl_language_data): Likewise.
5618 * p-lang.c (pascal_language_data): Likewise.
5619 * rust-lang.c (rust_language_data): Likewise.
5620 * value.h (default_read_var_value): Delete declaration.
5621
5622 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5623
5624 * ada-lang.c (ada_print_array_index): Delete function, move
5625 implementation to...
5626 (ada_language::print_array_index): ...here.
5627 (ada_language_data): Delete la_print_array_index initializer.
5628 * c-lang.c (c_language_data): Likewise.
5629 (cplus_language_data): Likewise.
5630 (minimal_language_data): Likewise.
5631 * d-lang.c (d_language_data): Likewise.
5632 * f-lang.c (f_language_data): Likewise.
5633 * go-lang.c (go_language_data): Likewise.
5634 * language.c (default_print_array_index): Delete function, move
5635 implementation to...
5636 (language_defn::print_array_index): ...here.
5637 (unknown_language_data): Delete la_print_array_index initializer.
5638 (auto_language_data): Likewise.
5639 * language.h (struct language_data): Delete la_print_array_index
5640 field.
5641 (language_defn::print_array_index): New member function.
5642 (LA_PRINT_ARRAY_INDEX): Update.
5643 (default_print_array_index): Delete declaration.
5644 * m2-lang.c (m2_language_data): Delete la_print_array_index
5645 initializer.
5646 * objc-lang.c (objc_language_data): Likewise.
5647 * opencl-lang.c (opencl_language_data): Likewise.
5648 * p-lang.c (pascal_language_data): Likewise.
5649 * rust-lang.c (rust_language_data): Likewise.
5650
5651 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5652
5653 * gdb/ada-lang.c (ada_language_defn): Convert to...
5654 (ada_language_data): ...this.
5655 (class ada_language): New class.
5656 (ada_language_defn): New static global.
5657 * gdb/c-lang.c (c_language_defn): Convert to...
5658 (c_language_data): ...this.
5659 (class c_language): New class.
5660 (c_language_defn): New static global.
5661 (cplus_language_defn): Convert to...
5662 (cplus_language_data): ...this.
5663 (class cplus_language): New class.
5664 (cplus_language_defn): New static global.
5665 (asm_language_defn): Convert to...
5666 (asm_language_data): ...this.
5667 (class asm_language): New class.
5668 (asm_language_defn): New static global.
5669 (minimal_language_defn): Convert to...
5670 (minimal_language_data): ...this.
5671 (class minimal_language): New class.
5672 (minimal_language_defn): New static global.
5673 * gdb/d-lang.c (d_language_defn): Convert to...
5674 (d_language_data): ...this.
5675 (class d_language): New class.
5676 (d_language_defn): New static global.
5677 * gdb/f-lang.c (f_language_defn): Convert to...
5678 (f_language_data): ...this.
5679 (class f_language): New class.
5680 (f_language_defn): New static global.
5681 * gdb/go-lang.c (go_language_defn): Convert to...
5682 (go_language_data): ...this.
5683 (class go_language): New class.
5684 (go_language_defn): New static global.
5685 * gdb/language.c (unknown_language_defn): Remove declaration.
5686 (current_language): Initialize to nullptr, real initialization is
5687 moved to _initialize_language.
5688 (languages): Delete global.
5689 (language_defn::languages): Define.
5690 (set_language_command): Use language_defn::languages.
5691 (set_language): Likewise.
5692 (range_error): Likewise.
5693 (language_enum): Likewise.
5694 (language_def): Likewise.
5695 (add_set_language_command): Use language_def::languages for the
5696 language list, and language_def to lookup language pointers.
5697 (skip_language_trampoline): Use language_defn::languages.
5698 (unknown_language_defn): Convert to...
5699 (unknown_language_data): ...this.
5700 (class unknown_language): New class.
5701 (unknown_language_defn): New static global.
5702 (auto_language_defn): Convert to...
5703 (auto_language_data): ...this.
5704 (class auto_language): New class.
5705 (auto_language_defn): New static global.
5706 (language_gdbarch_post_init): Use language_defn::languages.
5707 (_initialize_language): Initialize current_language.
5708 * gdb/language.h (struct language_defn): Rename to...
5709 (struct language_data): ...this.
5710 (struct language_defn): New.
5711 (auto_language_defn): Delete.
5712 (unknown_language_defn): Delete.
5713 (minimal_language_defn): Delete.
5714 (ada_language_defn): Delete.
5715 (asm_language_defn): Delete.
5716 (c_language_defn): Delete.
5717 (cplus_language_defn): Delete.
5718 (d_language_defn): Delete.
5719 (f_language_defn): Delete.
5720 (go_language_defn): Delete.
5721 (m2_language_defn): Delete.
5722 (objc_language_defn): Delete.
5723 (opencl_language_defn): Delete.
5724 (pascal_language_defn): Delete.
5725 (rust_language_defn): Delete.
5726 * gdb/m2-lang.c (m2_language_defn): Convert to...
5727 (m2_language_data): ...this.
5728 (class m2_language): New class.
5729 (m2_language_defn): New static global.
5730 * gdb/objc-lang.c (objc_language_defn): Convert to...
5731 (objc_language_data): ...this.
5732 (class objc_language): New class.
5733 (objc_language_defn): New static global.
5734 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5735 (opencl_language_data): ...this.
5736 (class opencl_language): New class.
5737 (opencl_language_defn): New static global.
5738 * gdb/p-lang.c (pascal_language_defn): Convert to...
5739 (pascal_language_data): ...this.
5740 (class pascal_language): New class.
5741 (pascal_language_defn): New static global.
5742 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5743 language pointer, update comment format.
5744 * gdb/rust-lang.c (rust_language_defn): Convert to...
5745 (rust_language_data): ...this.
5746 (class rust_language): New class.
5747 (rust_language_defn): New static global.
5748
5749 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5750
5751 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5752 member variable.
5753 <m_stmt_at_address>: New member variable.
5754 (lnp_state_machine::record_line): Don't record some lines, update
5755 tracking of is_stmt at the same address.
5756 (lnp_state_machine::lnp_state_machine): Initialise new member
5757 variables.
5758
5759 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5760
5761 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5762 "-include gnu-nat-mig.h".
5763 * gnu-nat-mig.h: New file.
5764 * gnu-nat.c: Include "gnu-nat-mig.h".
5765 (exc_server, msg_reply_server, notify_server,
5766 process_reply_server): Remove declarations.
5767
5768 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5769
5770 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5771 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5772 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5773 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5774 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5775 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5776 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5777 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5778 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5779 to gnu_nat_target class.
5780 * gnu-nat.c: Likewise.
5781 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5782 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5783 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5784 object.
5785 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5786 instead of `gnu_target'.
5787
5788 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5789
5790 * i386-gnu-tdep.c: Include "gdbcore.h"
5791 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5792 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5793 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5794 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5795 i386_gnu_sigcontext_addr): New functions
5796 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5797 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5798 tdep.
5799
5800 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5801
5802 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5803 before fork_inferior call. Avoid calling it if target_is_pushed returns
5804 true.
5805
5806 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5807
5808 * gnu-nat.h (gnu_target): New variable declaration.
5809 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5810 gnu_target.
5811 * gnu-nat.c (gnu_target): New variable.
5812 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5813 add_thread_silent, and add_thread calls.
5814 (gnu_nat_target::create_inferior): Pass gnu_target to
5815 add_thread_silent, thread_change_ptid call.
5816 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5817 call.
5818
5819 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5820
5821 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5822 (gnu_nat_target::find_memory_regions): Remove unused
5823 `old_address' variable.
5824
5825 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5826
5827 * gnu-nat.c: Include "gdbarch.h".
5828
5829 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5830
5831 * reply_mig_hack.awk (Error return): Cast function through
5832 void *, to bypass compiler function call check.
5833
5834 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5835
5836 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5837 $(srcdir)/reply_mig_hack.awk.
5838
5839 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5840
5841 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5842
5843 2020-05-30 Jonny Grant <jg@jguk.org>
5844
5845 * configure.ac (ACX_BUGURL): change bug URL to https.
5846
5847 2020-05-30 Pedro Alves <palves@redhat.com>
5848
5849 * cp-support.c (replace_typedefs_template): New.
5850 (replace_typedefs_qualified_name): Handle
5851 DEMANGLE_COMPONENT_TEMPLATE.
5852
5853 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
5854
5855 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5856 dwarf2/index-cache.h, dwarf2/index-write.c,
5857 dwarf2/index-write.h, dwarf2/line-header.c,
5858 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5859 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5860 variables and fields from `dwarf2_per_objfile` to just
5861 `per_objfile` throughout.
5862
5863 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5864
5865 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5866 <push_dwarf_reg_entry_value>: Add comment.
5867
5868 2020-05-28 Kevin Buettner <kevinb@redhat.com>
5869 Keith Seitz <keiths@redhat.com>
5870
5871 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5872 instead of PyEval_ReleaseLock.
5873 (class gdbpy_gil): Move to earlier in file.
5874 (finalize_python): Set gdb_python_initialized.
5875 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5876 when not initialized.
5877
5878 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
5879
5880 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5881 <push_dwarf_reg_entry_value>: Remove assert. Override
5882 per_objfile with caller_per_objfile.
5883
5884 2020-05-28 Tom de Vries <tdevries@suse.de>
5885
5886 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
5887 PR gold/15646 workaround to symbol kind "type".
5888
5889 2020-05-27 Tom Tromey <tromey@adacore.com>
5890
5891 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
5892
5893 2020-05-27 Tom Tromey <tromey@adacore.com>
5894
5895 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5896 Use htab_find_with_hash.
5897 <add_abbrev>: Remove "abbrev_number" parameter.
5898 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
5899 "abbrev_number" parameter. Use htab_find_slot_with_hash.
5900 (hash_abbrev): Add comment.
5901 (abbrev_table::lookup_abbrev): Move to header file.
5902 (abbrev_table::read): Update.
5903
5904 2020-05-27 Tom Tromey <tromey@adacore.com>
5905
5906 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
5907 method.
5908 <canonical_name>: New member.
5909 <raw_name>: Rename from "name".
5910 (partial_die_info): Initialize canonical_name.
5911 (scan_partial_symbols): Check raw_name.
5912 (partial_die_parent_scope, partial_die_full_name)
5913 (add_partial_symbol, add_partial_subprogram)
5914 (add_partial_enumeration, load_partial_dies): Use "name" method.
5915 (partial_die_info::name): New method.
5916 (partial_die_info::read, guess_partial_die_structure_name)
5917 (partial_die_info::fixup): Update.
5918
5919 2020-05-27 Tom Tromey <tromey@adacore.com>
5920
5921 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
5922 <get_ref_die_offset>: Inline.
5923 <get_ref_die_offset_complaint>: New method.
5924 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
5925 (attribute::get_ref_die_offset_complaint): Rename from
5926 get_ref_die_offset. Just issue complaint.
5927
5928 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5929
5930 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
5931
5932 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5933
5934 * exec.c (exec_file_attach): Use errno value of first openp failure.
5935
5936 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5937
5938 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5939 Don't close thread handle.
5940
5941 2020-05-27 Tom Tromey <tom@tromey.com>
5942 Simon Marchi <simon.marchi@efficios.com>
5943
5944 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5945 shared_ptr.
5946 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5947 member.
5948 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5949 dwarf2_per_bfd_objfile_data_key>: New globals.
5950 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5951 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5952 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5953 shared.
5954 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5955 short-circuit when sharing.
5956 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5957 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5958
5959 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5960
5961 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5962 to...
5963 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5964 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5965
5966 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5967
5968 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5969 build_name_components, find_name_components_bounds>:
5970 Add per_objfile parameter.
5971 (struct mapped_index) <symbol_name_at>: Likewise.
5972 (struct mapped_debug_names): Remove constructor.
5973 <dwarf2_per_objfile>: Remove field.
5974 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5975 (mapped_index_base::find_name_components_bounds,
5976 mapped_index_base::build_name_components,
5977 dw2_expand_symtabs_matching_symbol): Likewise.
5978 (class mock_mapped_index) <symbol_name_at>: Likewise.
5979 (check_match): Likewise.
5980 (check_find_bounds_finds): Likewise.
5981 (test_mapped_index_find_name_component_bounds): Update.
5982 (CHECK_MATCH): Update.
5983 (dw2_expand_symtabs_matching): Update.
5984 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5985 per_objfile parameter.
5986 <find_vec_in_debug_names>: Likewise.
5987 <m_per_objfile>: New field.
5988 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5989 parameter.
5990 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5991 (dw2_debug_names_iterator::next): Update.
5992 (dw2_debug_names_lookup_symbol): Update.
5993 (dw2_debug_names_expand_symtabs_for_function): Update.
5994 (dw2_debug_names_map_matching_symbols): Update.
5995 (dw2_debug_names_expand_symtabs_matching): Update.
5996 (dwarf2_read_debug_names): Update.
5997
5998 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5999
6000 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
6001 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
6002 move to dwarf2_per_objfile.
6003 <read_in_chain>: Remove.
6004 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
6005 remove_all_cus, age_comp_units>: New methods.
6006 <m_dwarf2_cus>: New member.
6007 (struct dwarf2_per_cu_data) <cu>: Remove.
6008 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
6009 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
6010 moved to methods of dwarf2_per_objfile.
6011 (dwarf2_clear_marks): Remove.
6012 (dwarf2_queue_item::~dwarf2_queue_item): Update.
6013 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
6014 (dwarf2_per_bfd::free_cached_comp_units): Remove.
6015 (dwarf2_per_objfile::remove_all_cus): New.
6016 (class free_cached_comp_units) <~free_cached_comp_units>:
6017 Update.
6018 (load_cu): Update.
6019 (dw2_do_instantiate_symtab): Adjust.
6020 (fill_in_sig_entry_from_dwo_entry): Adjust.
6021 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6022 (cutu_reader::cutu_reader): Likewise.
6023 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
6024 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
6025 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
6026 and dwarf2_per_objfile::age_comp_units.
6027 (load_partial_comp_unit): Update.
6028 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
6029 (process_queue): Likewise.
6030 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
6031 backlink.
6032 (dwarf2_read_addr_index): Likewise.
6033 (follow_die_offset): Likewise.
6034 (dwarf2_fetch_die_loc_sect_off): Likewise.
6035 (dwarf2_fetch_constant_bytes): Likewise.
6036 (dwarf2_fetch_die_type_sect_off): Likewise.
6037 (follow_die_sig_1): Likewise.
6038 (load_full_type_unit): Likewise.
6039 (read_signatured_type): Likewise.
6040 (dwarf2_cu::dwarf2_cu): Don't set cu field.
6041 (dwarf2_cu::~dwarf2_cu): Remove.
6042 (dwarf2_per_objfile::get_cu): New.
6043 (dwarf2_per_objfile::set_cu): New.
6044 (age_cached_comp_units): Rename to...
6045 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
6046 to std::unordered_map.
6047 (free_one_cached_comp_unit): Rename to...
6048 (dwarf2_per_objfile::remove_cu): ... this. Adjust
6049 to std::unordered_map.
6050 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
6051 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
6052 a dwarf2_per_objfile in data.
6053 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
6054 (dwarf2_clear_marks): Remove.
6055
6056 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6057
6058 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
6059 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
6060 (init_tu_and_read_dwo_dies): Likewise.
6061 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
6062 (cutu_reader::cutu_reader): Likewise.
6063 (load_partial_comp_unit): Likewise.
6064 (process_psymtab_comp_unit): Update.
6065 (build_type_psymtabs_1): Update.
6066 (process_skeletonless_type_unit): Update.
6067 (load_full_comp_unit): Update.
6068 (find_partial_die): Update.
6069 (dwarf2_read_addr_index): Update.
6070 (read_signatured_type): Update.
6071
6072 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6073
6074 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
6075 m_header_read_in>: New fields.
6076 <get_header>: New method.
6077 * dwarf2/read.c (per_cu_header_read_in): Remove.
6078 (dwarf2_per_cu_data::get_header): New.
6079 (dwarf2_per_cu_data::addr_size): Update.
6080 (dwarf2_per_cu_data::offset_size): Update.
6081 (dwarf2_per_cu_data::ref_addr_size): Update.
6082
6083 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6084
6085 * dwarf2/read.c (load_cu): Return dwarf2_cu.
6086 (dw2_do_instantiate_symtab): Update.
6087 (queue_and_load_all_dwo_tus): Change parameter from
6088 dwarf2_per_cu_data to dwarf2_cu.
6089 (dwarf2_fetch_die_loc_sect_off): Update.
6090 (dwarf2_fetch_constant_bytes): Update.
6091 (dwarf2_fetch_die_type_sect_off): Update.
6092
6093 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6094
6095 * dwarf2/read.c (process_full_comp_unit,
6096 process_full_type_unit): Remove per_cu, per_objfile paramters.
6097 Add dwarf2_cu parameter.
6098 (process_queue): Update.
6099
6100 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6101
6102 * dwarf2/read.c (create_cu_from_index_list): Replace
6103 dwarf2_per_objfile parameter with dwarf2_per_bfd.
6104 (create_cus_from_index_list): Likewise.
6105 (create_cus_from_index): Likewise.
6106 (create_signatured_type_table_from_index): Likewise.
6107 (create_cus_from_debug_names_list): Likewise.
6108 (create_cus_from_debug_names): Likewise.
6109 (dwarf2_read_gdb_index): Update.
6110 (dwarf2_read_debug_names): Update.
6111
6112 2020-05-27 Tom Tromey <tom@tromey.com>
6113 Simon Marchi <simon.marchi@efficios.com>
6114
6115 * dwarf2/read.h (struct dwarf2_per_objfile)
6116 <get_type_for_signatured_type, set_type_for_signatured_type>:
6117 New methods.
6118 <m_type_map>: New member.
6119 (struct signatured_type) <type>: Remove.
6120 * dwarf2/read.c
6121 (dwarf2_per_objfile::get_type_for_signatured_type,
6122 dwarf2_per_objfile::set_type_for_signatured_type): New.
6123 (get_signatured_type): Use new methods.
6124
6125 2020-05-27 Tom Tromey <tom@tromey.com>
6126 Simon Marchi <simon.marchi@efficios.com>
6127
6128 * dwarf2/read.h (struct type_unit_group_unshareable): New.
6129 (struct dwarf2_per_objfile) <type_units>: New member.
6130 <get_type_unit_group_unshareable>: New method.
6131 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
6132 num_symtabs, symtabs>: Remove; move to
6133 type_unit_group_unshareable.
6134 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
6135 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
6136 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
6137
6138 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6139
6140 * dwarf2/read.h (struct dwarf2_per_cu_data):
6141 <dwarf2_per_objfile>: Remove.
6142 * dwarf2/read.c (create_cu_from_index_list): Don't assign
6143 dwarf2_per_objfile.
6144 (create_signatured_type_table_from_index): Likewise.
6145 (create_signatured_type_table_from_debug_names): Likewise.
6146 (create_debug_type_hash_table): Likewise.
6147 (fill_in_sig_entry_from_dwo_entry): Likewise.
6148 (create_type_unit_group): Likewise.
6149 (read_comp_units_from_section): Likewise.
6150 (create_cus_hash_table): Likewise.
6151
6152 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6153
6154 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
6155 dwarf2_per_cu_data::dwarf2_per_objfile.
6156 (compute_compunit_symtab_includes): Likewise.
6157 (dwarf2_cu::start_symtab): Likewise.
6158
6159 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6160
6161 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
6162 parameter.
6163 * dwarf2/read.c (get_die_type_at_offset): Likewise.
6164 (read_namespace_alias): Update.
6165 (lookup_die_type): Update.
6166 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
6167 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
6168 Update.
6169 (disassemble_dwarf_expression): Update.
6170
6171 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6172
6173 * dwarf2/read.h (struct dwarf2_queue_item): Add
6174 dwarf2_per_objfile parameter, assign new parameter.
6175 <per_objfile>: New field.
6176 * dwarf2/read.c (free_one_cached_comp_unit): Add
6177 dwarf2_per_objfile parameter.
6178 (queue_comp_unit): Likewise.
6179 (dw2_do_instantiate_symtab): Update.
6180 (process_psymtab_comp_unit): Update.
6181 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
6182 (process_imported_unit_die): Update.
6183 (queue_and_load_dwo_tu): Update.
6184 (follow_die_offset): Update.
6185 (follow_die_sig_1): Update.
6186
6187 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6188
6189 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
6190 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
6191 (read_call_site_scope): Assign per_objfile.
6192 (dwarf2_per_cu_data::objfile): Remove.
6193 * gdbtypes.h (struct call_site) <per_objfile>: New member.
6194 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
6195 dwarf2_per_objfile parameter.
6196 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
6197 dwarf2_per_objfile parameter.
6198 (dwarf_expr_reg_to_entry_parameter): Add output
6199 dwarf2_per_objfile parameter.
6200 (locexpr_get_frame_base): Update.
6201 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
6202 <push_dwarf_reg_entry_value>: Update.
6203 <call_site_to_target_addr>: Update.
6204 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
6205 parameter.
6206 (value_of_dwarf_reg_entry): Update.
6207 (rw_pieced_value): Update.
6208 (indirect_synthetic_pointer): Update.
6209 (dwarf2_evaluate_property): Update.
6210 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
6211 parameter.
6212 (locexpr_read_variable): Update.
6213 (locexpr_get_symbol_read_needs): Update.
6214 (loclist_read_variable): Update.
6215
6216 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6217
6218 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6219 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6220 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6221 parameter.
6222 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6223 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6224 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6225 parameter.
6226 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6227 sect_variable_value): Add dwarf2_per_objfile parameter.
6228 (class dwarf_evaluate_loc_desc) <dwarf_call,
6229 dwarf_variable_value>: Update.
6230 (fetch_const_value_from_synthetic_pointer): Add
6231 dwarf2_per_objfile parameter.
6232 (fetch_const_value_from_synthetic_pointer): Update.
6233 (coerced_pieced_ref): Update.
6234 (class symbol_needs_eval_context) <dwarf_call,
6235 dwarf_variable_value>: Update.
6236 (dwarf2_compile_expr_to_ax): Update.
6237
6238 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6239
6240 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6241 parameter.
6242 (dwarf2_evaluate_loc_desc_full): Update.
6243
6244 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6245
6246 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6247 parameter.
6248 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6249 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6250 dwarf2_per_objfile parameter.
6251 (decode_debug_loc_dwo_addresses): Likewise.
6252 (dwarf2_find_location_expression): Update.
6253 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6254 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6255 parameter.
6256 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6257 parameter.
6258 (locexpr_describe_location_1): Likewise.
6259 (locexpr_describe_location): Update.
6260
6261 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6262
6263 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6264 Remove.
6265 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6266 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6267 (dwarf2_compile_property_to_c): Update.
6268 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6269 use text offset from objfile.
6270 (locexpr_tracepoint_var_ref): Update.
6271 (locexpr_generate_c_location): Update.
6272 (loclist_describe_location): Update.
6273 (loclist_tracepoint_var_ref): Update.
6274 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6275 dwarf2_per_objfile parameter.
6276 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6277 use text offset from objfile.
6278 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6279
6280 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6281
6282 * dwarf2/expr.h (struct dwarf_expr_context)
6283 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6284 <offset>: Remove.
6285 <per_objfile>: New member.
6286 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6287 dwarf2_per_objfile parameter. Don't set offset, set
6288 per_objfile.
6289 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6290 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6291 a dwarf2_per_objfile object instead of an offset.
6292 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6293 constructor.
6294 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6295 to dwarf2_expr_executor constructor. Don't set offset.
6296 (dwarf2_fetch_cfa_info): Update.
6297 (struct dwarf2_frame_cache) <text_offset>: Remove.
6298 <per_objfile>: New field.
6299 (dwarf2_frame_cache): Update.
6300 (dwarf2_frame_prev_register): Update.
6301 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6302 <dwarf_evaluate_loc_desc>: Add constructor.
6303 (dwarf2_evaluate_loc_desc_full): Update.
6304 (dwarf2_locexpr_baton_eval): Update.
6305 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6306 Add constructor.
6307 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6308
6309 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6310
6311 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6312 addr_sized_int_type>: Move to dwarf2_cu.
6313 <int_type>: Move to dwarf2_per_objfile.
6314 (struct dwarf2_per_objfile) <int_type>: Move here.
6315 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6316 addr_sized_int_type>: Move here.
6317 (read_func_scope): Update.
6318 (read_array_type): Update.
6319 (read_tag_string_type): Update.
6320 (attr_to_dynamic_prop): Update.
6321 (dwarf2_per_cu_data::int_type): Rename to...
6322 (dwarf2_per_objfile::int_type): ... this.
6323 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6324 (dwarf2_cu::addr_sized_int_type): ... this.
6325 (read_subrange_type): Update.
6326 (dwarf2_per_cu_data::addr_type): Rename to...
6327 (dwarf2_cu::addr_type): ... this.
6328 (set_die_type): Update.
6329
6330 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6331
6332 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6333 data through per_cu->cu.
6334
6335 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6336
6337 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6338 dwarf2_per_cu_data parameter fo dwarf2_cu.
6339 (lookup_dwo_type_unit): Likewise.
6340 (read_cutu_die_from_dwo): Likewise.
6341 (lookup_dwo_unit): Likewise.
6342 (open_and_init_dwo_file): Likewise.
6343 (lookup_dwo_cutu): Likewise.
6344 (lookup_dwo_comp_unit): Likewise.
6345 (lookup_dwo_type_unit): Likewise.
6346 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6347 (cutu_reader::cutu_reader): Update.
6348
6349 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6350
6351 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6352 parameter.
6353 (process_full_type_unit): Likewise.
6354 (process_queue): Update.
6355
6356 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6357
6358 * dwarf2/read.c (recursively_compute_inclusions): Add
6359 dwarf2_per_objfile parameter.
6360 (compute_compunit_symtab_includes): Likewise.
6361 (process_cu_includes): Update.
6362
6363 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6364
6365 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6366 parameter.
6367 (create_type_unit_group): Update.
6368 (process_psymtab_comp_unit_reader): Update.
6369 (build_type_psymtabs_reader): Update.
6370
6371 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6372
6373 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6374 object through m_this_cu->cu.
6375
6376 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6377
6378 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6379 the info parameter.
6380 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6381
6382 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6383
6384 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6385 per_objfile parameter.
6386 (load_full_type_unit): Add per_objfile parameter.
6387 (read_signatured_type): Likewise.
6388 (load_full_comp_unit): Likewise.
6389 (load_cu): Likewise.
6390 (dw2_do_instantiate_symtab): Likewise.
6391 (dw2_get_file_names): Likewise.
6392 (dw2_map_symtabs_matching_filename): Update.
6393 (dw_expand_symtabs_matching_file_matcher): Update.
6394 (dw2_map_symbol_filenames): Update.
6395 (process_psymtab_comp_unit): Add per_objfile parameter.
6396 (build_type_psymtabs_1): Update.
6397 (process_skeletonless_type_unit): Update.
6398 (dwarf2_build_psymtabs_hard): Update.
6399 (load_partial_comp_unit): Add per_objfile parameter.
6400 (scan_partial_symbols): Update.
6401 (load_full_comp_unit): Add per_objfile parameter.
6402 (process_imported_unit_die): Update.
6403 (create_cus_hash_table): Update.
6404 (find_partial_die): Update.
6405 (dwarf2_read_addr_index): Update.
6406 (follow_die_offset): Update.
6407 (dwarf2_fetch_die_loc_sect_off): Update.
6408 (dwarf2_fetch_constant_bytes): Update.
6409 (dwarf2_fetch_die_type_sect_off): Update.
6410 (follow_die_sig_1): Update.
6411 (load_full_type_unit): Add per_objfile parameter.
6412 (read_signatured_type): Likewise.
6413
6414 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6415
6416 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6417 of objfile_name.
6418
6419 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6420
6421 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6422 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6423 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6424 field.
6425 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6426 (create_cus_from_index): Update.
6427 (dwarf2_read_gdb_index): Update.
6428 (create_cus_from_debug_names): Update.
6429 (dwarf2_read_debug_names): Update.
6430 (get_abbrev_section_for_cu): Update.
6431 (create_all_comp_units): Update.
6432 (read_attribute_value): Update.
6433 (get_debug_line_section): Update.
6434 * dwarf2/index-cache.c (index_cache::store): Update.
6435 * dwarf2/index-write.c (save_gdb_index_command): Update.
6436 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6437
6438 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6439
6440 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6441 member.
6442 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6443 dwarf2_per_cu_data::per_bfd.
6444 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6445 (create_type_unit_group): Likewise.
6446 (queue_comp_unit): Remove reference to
6447 per_cu->dwarf2_per_objfile.
6448 (maybe_queue_comp_unit): Likewise.
6449 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6450 (create_cus_hash_table): Assign new field.
6451
6452 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6453
6454 * dwarf2/read.c: Replace
6455 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6456 dwarf2_cu->per_objfile throughout.
6457
6458 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6459
6460 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6461 parameter, don't use per_cu->dwarf2_per_objfile.
6462 (dw2_instantiate_symtab): Likewise.
6463 (dw2_find_last_source_symtab): Update.
6464 (dw2_map_expand_apply): Update.
6465 (dw2_lookup_symbol): Update.
6466 (dw2_expand_symtabs_for_function): Update.
6467 (dw2_expand_all_symtabs): Update.
6468 (dw2_expand_symtabs_with_fullname): Update.
6469 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6470 don't use per_cu->dwarf2_per_objfile.
6471 (dw2_expand_marked_cus): Update.
6472 (dw2_find_pc_sect_compunit_symtab): Update.
6473 (dw2_debug_names_lookup_symbol): Update.
6474 (dw2_debug_names_expand_symtabs_for_function): Update.
6475 (dw2_debug_names_map_matching_symbols): Update.
6476 (dwarf2_psymtab::expand_psymtab): Update.
6477
6478 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6479
6480 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6481 <per_objfile>: New member.
6482 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6483 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6484 call to dwarf2_cu.
6485 (cutu_reader::cutu_reader): Update.
6486 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6487
6488 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6489
6490 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6491 struct dwarf2_per_objfile.
6492 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6493 dwarf2_per_bfd.
6494 * dwarf2/read.c (set_die_type): Update.
6495 (get_die_type_at_offset): Update.
6496
6497 2020-05-27 Tom Tromey <tom@tromey.com>
6498 Simon Marchi <simon.marchi@efficios.com>
6499
6500 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6501 method.
6502 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6503 get_symtab, set_symtab>: New methods.
6504 <m_symtabs>: New field.
6505 (struct dwarf2_psymtab): Derive from partial_symtab.
6506 <readin_p, get_compunit_symtab>: Declare methods.
6507 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6508 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6509 New methods.
6510 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6511 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6512 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6513 (dw2_symtab_iter_next, dw2_print_stats)
6514 (dw2_expand_symtabs_with_fullname)
6515 (dw2_expand_symtabs_matching_one)
6516 (dw_expand_symtabs_matching_file_matcher)
6517 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6518 (dw2_debug_names_iterator::next)
6519 (dw2_debug_names_map_matching_symbols)
6520 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6521 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6522 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6523 New methods.
6524 (get_compunit_symtab, process_full_comp_unit)
6525 (process_full_type_unit): Update.
6526 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6527
6528 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6529
6530 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6531 then introduce a new dwarf2_per_objfile type.
6532 <read_line_string>: Move to the new dwarf2_per_objfile type.
6533 <objfile>: Likewise.
6534 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6535 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6536 dwarf2_per_objfile->per_bfd.
6537 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6538 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6539 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6540 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6541 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6542 (dwarf2_per_objfile::locate_sections): Rename to...
6543 (dwarf2_per_bfd::locate_sections): ... this.
6544 (dwarf2_per_objfile::get_cutu): Rename to...
6545 (dwarf2_per_bfd::get_cutu): ... this.
6546 (dwarf2_per_objfile::get_cu): Rename to...
6547 (dwarf2_per_bfd::get_cu): ... this.
6548 (dwarf2_per_objfile::get_tu): Rename to...
6549 (dwarf2_per_bfd::get_tu): ... this.
6550 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6551 (dwarf2_per_bfd::allocate_per_cu): ... this.
6552 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6553 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6554 (get_gdb_index_contents_ftype): Change parameter from
6555 dwarf2_per_objfile to dwarf2_per_bfd.
6556 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6557 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6558
6559 2020-05-27 Tom Tromey <tom@tromey.com>
6560 Simon Marchi <simon.marchi@efficios.com>
6561
6562 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6563 (allocate_piece_closure): Set "per_objfile" member.
6564 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6565 (locexpr_describe_location, loclist_describe_location): Use new
6566 member.
6567 * dwarf2/read.c (read_call_site_scope)
6568 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6569 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6570 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6571 handle_data_member_location): Set per_objfile member.
6572 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6573 member.
6574 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6575
6576 2020-05-27 Tom Tromey <tom@tromey.com>
6577
6578 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6579 allocate_signatured_type>: Declare new methods.
6580 <m_num_psymtabs>: New member.
6581 (struct dwarf2_per_cu_data) <index>: New member.
6582 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6583 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6584 (create_cu_from_index_list): Use allocate_per_cu.
6585 (create_signatured_type_table_from_index)
6586 (create_signatured_type_table_from_debug_names)
6587 (create_debug_type_hash_table, add_type_unit)
6588 (read_comp_units_from_section): Use allocate_signatured_type.
6589
6590 2020-05-27 Tom Tromey <tom@tromey.com>
6591
6592 * psymtab.c (partial_map_expand_apply)
6593 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6594 (psym_lookup_global_symbol_language)
6595 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6596 (psym_print_stats, psym_expand_symtabs_for_function)
6597 (psym_map_symbol_filenames, psym_map_matching_symbols)
6598 (psym_expand_symtabs_matching)
6599 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6600 (maintenance_check_psymtabs): Update.
6601 * psympriv.h (struct partial_symtab) <readin_p,
6602 get_compunit_symtab>: Add objfile parameter.
6603 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6604 Likewise.
6605 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6606 get_compunit_symtab>: Likewise.
6607 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6608
6609 2020-05-27 Tom Tromey <tom@tromey.com>
6610
6611 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6612 member.
6613 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6614 (create_cu_from_index_list)
6615 (create_signatured_type_table_from_index)
6616 (create_signatured_type_table_from_debug_names)
6617 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6618 (dwarf2_create_include_psymtab)
6619 (create_debug_type_hash_table, add_type_unit)
6620 (create_type_unit_group, read_comp_units_from_section)
6621 (dwarf2_compute_name, create_cus_hash_table)
6622 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6623 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6624 obstack.
6625 (dw2_get_real_path): Likewise. Change argument to
6626 dwarf2_per_objfile.
6627
6628 2020-05-27 Luis Machado <luis.machado@linaro.org>
6629
6630 PR tdep/26000
6631 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6632 for ldrd (immediate).
6633
6634 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6635
6636 * command.h: Add comment giving the name of class_tui.
6637 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6638 create the fake command for the help for class_tui.
6639
6640 2020-05-26 Tom Tromey <tromey@adacore.com>
6641
6642 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6643 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6644 (val_atr): New function.
6645 (value_val_atr): Use it.
6646 * ada-valprint.c (print_optional_low_bound): Change low bound
6647 handling for enums.
6648 (val_print_packed_array_elements): Don't call discrete_position.
6649 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6650 discrete_position for enum types.
6651 * language.c (default_print_array_index): Change type.
6652 * language.h (struct language_defn) <la_print_array_index>: Add
6653 index_type parameter, change type of index_value.
6654 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6655 (default_print_array_index): Update.
6656 * valprint.c (maybe_print_array_index): Don't call
6657 value_from_longest. Update.
6658 (value_print_array_elements): Don't call discrete_position.
6659
6660 2020-05-26 Tom Tromey <tromey@adacore.com>
6661
6662 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6663 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6664
6665 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6666
6667 PR gdb/13519
6668 * avr-tdep.c (avr_integer_to_address): Return data or code
6669 address accordingly to the second 'type' argument of the
6670 function.
6671
6672 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6673
6674 * infcmd.c, inferior.h: (construct_inferior_arguments):
6675 Moved function from here to gdbsupport/common-inferior.{h,cc}
6676
6677 2020-05-23 Tom Tromey <tom@tromey.com>
6678
6679 Revert commit eca1f90c:
6680 * NEWS: Remove entry for completion styling.
6681 * completer.c (_rl_completion_prefix_display_length): Move
6682 declaration later.
6683 (gdb_fnprint): Revert.
6684 (gdb_display_match_list_1): Likewise.
6685 * cli/cli-style.c (completion_prefix_style)
6686 (completion_difference_style, completion_suffix_style): Remove.
6687 (_initialize_cli_style): Revert.
6688 * cli/cli-style.h (completion_prefix_style)
6689 (completion_difference_style, completion_suffix_style): Don't
6690 declare.
6691
6692 2020-05-24 Pedro Alves <palves@redhat.com>
6693
6694 * symtab.c (completion_list_add_name): Return boolean indication
6695 of whether the symbol matched.
6696 (completion_list_add_symbol): Don't try to remove C++ aliases if
6697 the symbol didn't match in the first place.
6698 * symtab.h (completion_list_add_name): Return bool.
6699
6700 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6701
6702 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6703 type::field.
6704
6705 2020-05-23 Joel Brobecker <brobecker@adacore.com>
6706
6707 GDB 9.2 released.
6708
6709 2020-05-23 Tom Tromey <tom@tromey.com>
6710
6711 * NEWS: Add entry for completion styling.
6712 * completer.c (_rl_completion_prefix_display_length): Move
6713 declaration earlier.
6714 (gdb_fnprint): Use completion_style.
6715 (gdb_display_match_list_1): Likewise.
6716 * cli/cli-style.c (completion_prefix_style)
6717 (completion_difference_style, completion_suffix_style): New
6718 globals.
6719 (_initialize_cli_style): Register new globals.
6720 * cli/cli-style.h (completion_prefix_style)
6721 (completion_difference_style, completion_suffix_style): Declare.
6722
6723 2020-05-23 Pedro Alves <palves@redhat.com>
6724
6725 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6726 (parse_escape): Use ISDIGIT instead of isdigit.
6727 (puts_debug): Use gdb_isprint instead of isprint.
6728 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6729 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6730 ISSPACE instead of isspace.
6731 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6732 instead of isspace.
6733 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6734 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6735 instead of isxdigit and ISDIGIT instead of isdigit.
6736
6737 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6738
6739 * gdbtypes.h (struct type) <field>: New method.
6740 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6741 or type::field.
6742
6743 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6744
6745 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6746 (TYPE_FIELDS): Use type::fields. Change all call sites that
6747 modify the propery to use type::set_fields instead.
6748
6749 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6750
6751 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6752 type::num_fields instead.
6753
6754 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6755
6756 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6757 methods.
6758 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6759 that modify the number of fields to use type::set_num_fields
6760 instead.
6761
6762 2020-05-22 Tom Tromey <tromey@adacore.com>
6763
6764 * compile/compile-object-load.h (munmap_list_free): Don't
6765 declare.
6766
6767 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6768
6769 * annotate.c (annotate_source_line): Update return type, add call
6770 to update current symtab and line.
6771 * annotate.h (annotate_source_line): Update return type, and
6772 extend header comment.
6773 * source.c (info_line_command): Check annotation_level before
6774 calling annotate_source_line.
6775 * stack.c (print_frame_info): If calling annotate_source_line
6776 returns true, then don't print any other source line information.
6777
6778 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
6779
6780 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6781
6782 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
6783
6784 * coffread.c (patch_type): Remove NULL check before xfree.
6785 * corefile.c (set_gnutarget): Likewise.
6786 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6787 * exec.c (build_section_table): Likewise.
6788 * remote.c (remote_target::pass_signals): Likewise.
6789 * utils.c (n_spaces): Likewise.
6790 * cli/cli-script.c (document_command): Likewise.
6791 * i386-windows-tdep.c (core_process_module_section): Likewise.
6792 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6793
6794 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
6795
6796 * symfile.c (reread_symbols): Clear objfile's section_offsets
6797 vector and section indices, re-compute them by calling
6798 sym_offsets.
6799
6800 2020-05-20 Tom Tromey <tromey@adacore.com>
6801
6802 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
6803 (desc_one_bound, desc_index_type): Compute field name.
6804
6805 2020-05-20 Tom de Vries <tdevries@suse.de>
6806
6807 PR symtab/25833
6808 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6809
6810 2020-05-20 Alan Modra <amodra@gmail.com>
6811
6812 PR 25993
6813 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6814 bfd_set_filename.
6815 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6816 passed to bfd_set_filename.
6817 * symfile-mem.c (add_vsyscall_page): Likewise for string
6818 passed to symbol_file_add_from_memory.
6819 (symbol_file_add_from_memory): Make name param a const char* and
6820 don't strdup.
6821
6822 2020-05-20 Alan Modra <amodra@gmail.com>
6823
6824 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6825 rather than accessing bfd->filename directly.
6826 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6827 and use bfd_section_name.
6828 * dwarf2/frame.c (decode_frame_entry): Likewise.
6829 * exec.c (exec_set_section_address): Likewise.
6830 * solib-aix.c (solib_aix_bfd_open): Likewise.
6831 * stap-probe.c (get_stap_base_address): Likewise.
6832 * symfile.c (reread_symbols): Likewise.
6833
6834 2020-05-19 Tom Tromey <tromey@adacore.com>
6835
6836 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6837
6838 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6839
6840 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6841
6842 2020-05-19 Pedro Alves <palves@redhat.com>
6843
6844 * NEWS (set exec-file-mismatch): Adjust entry.
6845 * exec.c: Include "build-id.h".
6846 (validate_exec_file): Try to match build IDs instead of filenames.
6847 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6848 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6849 and pass down 'warn_if_slow'.
6850 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6851 gdb_bfd_open_closure to pass it down.
6852 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6853
6854 2020-05-19 Pedro Alves <palves@redhat.com>
6855
6856 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6857 * target.c (target_fileio_open_1): Rename to target_fileio_open
6858 and make extern. Use bool.
6859 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6860 (target_fileio_read_alloc_1): Adjust.
6861 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6862 (target_fileio_open_warn_if_slow): Delete declaration.
6863
6864 2020-05-19 Pedro Alves <palves@redhat.com>
6865
6866 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6867 Adjust all callers.
6868
6869 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6870
6871 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6872 whether disp is negative.
6873
6874 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6875
6876 * symfile.h (struct symfile_segment_data)
6877 <~symfile_segment_data>: Remove.
6878 <segment_info>: Change to std::vector.
6879 * symfile.c (default_symfile_segments): Update.
6880 * elfread.c (elf_symfile_segments): Update.
6881
6882 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6883
6884 * symfile.h (struct symfile_segment_data) <struct segment>: New.
6885 <segments>: New.
6886 <segment_bases, segment_sizes>: Remove.
6887 * symfile.c (default_symfile_segments): Update.
6888 * elfread.c (elf_symfile_segments): Update.
6889 * remote.c (remote_target::get_offsets): Update.
6890 * solib-target.c (solib_target_relocate_section_addresses):
6891 Update.
6892
6893 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6894
6895 * symfile.h (struct symfile_segment_data): Initialize fields.
6896 <~symfile_segment_data>: Add.
6897 (symfile_segment_data_up): New.
6898 (struct sym_fns) <sym_segments>: Return a
6899 symfile_segment_data_up.
6900 (default_symfile_segments): Return a symfile_segment_data_up.
6901 (free_symfile_segment_data): Remove.
6902 (get_symfile_segment_data): Return a symfile_segment_data_up.
6903 * symfile.c (default_symfile_segments): Likewise.
6904 (get_symfile_segment_data): Likewise.
6905 (free_symfile_segment_data): Remove.
6906 (symfile_find_segment_sections): Update.
6907 * elfread.c (elf_symfile_segments): Return a
6908 symfile_segment_data_up.
6909 * remote.c (remote_target::get_offsets): Update.
6910 * solib-target.c (solib_target_relocate_section_addresses):
6911 Update.
6912 * symfile-debug.c (debug_sym_segments): Return a
6913 symfile_segment_data_up.
6914
6915 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6916
6917 PR build/25981
6918 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
6919 Hardcode register numbers.
6920
6921 PR build/25981
6922 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
6923 procfs_find_LDT_entry): Remove.
6924 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
6925 procfs_find_LDT_entry): Remove.
6926 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
6927 Remove.
6928
6929 2020-05-17 Pedro Alves <palves@redhat.com>
6930 Andrew Burgess <andrew.burgess@embecosm.com>
6931 Keno Fischer <keno@juliacomputing.com>
6932
6933 PR gdb/25741
6934 * breakpoint.c (build_target_condition_list): Update comments.
6935 (build_target_command_list): Update comments and skip matching
6936 locations.
6937 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
6938 a separate function. Simplify "set breakpoint auto-hw off"
6939 handling.
6940 (insert_breakpoints): Update comment.
6941 (tracepoint_locations_match): New parameter. For breakpoints,
6942 compare location types too, if the caller wants to.
6943 (handle_automatic_hardware_breakpoints): New functions.
6944 (bp_location_is_less_than): Also sort by location type and
6945 hardware breakpoint length.
6946 (update_global_location_list): Handle "set breakpoint auto-hw on"
6947 here.
6948 (update_breakpoint_locations): Ask breakpoint_locations_match to
6949 ignore location types.
6950
6951 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6952
6953 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6954 type::name instead.
6955
6956 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6957
6958 * gdbtypes.h (struct type) <name, set_name>: New methods.
6959 (TYPE_CODE): Use type::name. Change all call sites used to set
6960 the name to use type::set_name instead.
6961
6962 2020-05-16 Tom Tromey <tom@tromey.com>
6963
6964 * top.c (quit_force): Update.
6965 * infrun.c (handle_no_resumed): Update.
6966 * top.h (all_uis): New function.
6967 (ALL_UIS): Remove.
6968
6969 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6970
6971 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6972
6973 2020-05-16 Pedro Alves <palves@redhat.com>
6974
6975 * ia64-linux-nat.c
6976 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6977 Declare method.
6978 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6979
6980 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
6981
6982 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6983 (sparc64_adi_info): Likewise.
6984
6985 2020-05-15 Tom Tromey <tom@tromey.com>
6986
6987 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6988 block_objfile.
6989 (lookup_objfile_from_block): Remove.
6990 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6991 (lookup_global_symbol): Use block_objfile.
6992 * symtab.h (lookup_objfile_from_block): Don't declare.
6993 * printcmd.c (clear_dangling_display_expressions): Use
6994 block_objfile.
6995 * parse.c (operator_check_standard): Use block_objfile.
6996
6997 2020-05-15 Tom Tromey <tom@tromey.com>
6998
6999 * language.c (language_alloc_type_symbol): Set
7000 SYMBOL_SECTION.
7001 * symtab.c (initialize_objfile_symbol): Remove.
7002 (allocate_symbol): Remove.
7003 (allocate_template_symbol): Remove.
7004 * dwarf2/read.c (fixup_go_packaging): Use "new".
7005 (new_symbol): Use "new".
7006 (read_variable): Don't call initialize_objfile_symbol. Use
7007 "new".
7008 (read_func_scope): Use "new".
7009 * xcoffread.c (process_xcoff_symbol): Don't call
7010 initialize_objfile_symbol.
7011 (SYMBOL_DUP): Remove.
7012 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
7013 "new".
7014 * symtab.h (allocate_symbol, initialize_objfile_symbol)
7015 (allocate_template_symbol): Don't declare.
7016 (struct symbol): Add copy constructor. Change defaults.
7017 * jit.c (finalize_symtab): Use "new".
7018 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
7019 Use "new".
7020 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7021 (common_block_end): Use "new".
7022 * mdebugread.c (parse_symbol): Use "new".
7023 (new_symbol): Likewise.
7024
7025 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7026
7027 * NEWS: Mention changes to help and apropos.
7028
7029 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7030
7031 * command.h (enum command_class): Improve comments, document
7032 that class_alias is for user-defined aliases, give the class
7033 name for each class, remove unused class_xdb.
7034 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
7035 * breakpoint.c (_initialize_breakpoint): Replace class_alias
7036 by a precise class.
7037 * infcmd.c (_initialize_infcmd): Likewise.
7038 * reverse.c (_initialize_reverse): Likewise.
7039 * stack.c (_initialize_stack): Likewise.
7040 * symfile.c (_initialize_symfile): Likewise.
7041 * tracepoint.c (_initialize_tracepoint): Likewise.
7042
7043 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7044
7045 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
7046 when their aliased command is traversed.
7047 (help_cmd): Add fput_command_names_styled call to
7048 output command name and aliases when command has an alias.
7049
7050 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7051
7052 * cli/cli-decode.h (help_cmd_list): Remove declaration.
7053 * cli/cli-decode.c (help_cmd_list): Declare as static,
7054 remove prefix argument, use bool for recurse arg, rework to show the aliases of
7055 a command together with the command.
7056 (fput_command_name_styled, fput_command_names_styled): New functions.
7057 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
7058 fput_command_name_styled.
7059 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
7060 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
7061
7062 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7063
7064 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
7065 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
7066 * command.h (cmd_show_list): Likewise.
7067 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
7068 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
7069
7070 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7071
7072 * unittests/command-def-selftests.c (traverse_command_structure):
7073 Verify all commands of a list have the same prefix command and
7074 that only the top cmdlist commands have a null prefix.
7075
7076 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7077
7078 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
7079 as prefix, not one of its aliases.
7080 (set_cmd_prefix): Remove.
7081 (do_add_cmd): Centralize the setting of the prefix of a command, when
7082 command is defined after its full chain of prefix commands.
7083 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
7084 (add_setshow_cmd_full): Likewise.
7085 (update_prefix_field_of_prefixed_commands): New function.
7086 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
7087 update_prefix_field_of_prefixed_commands.
7088 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
7089 addresses of remote_set_cmdlist and remote_show_cmdlist given
7090 as argument, not the address of an argument.
7091 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
7092 * gdb/remote.c (_initialize_remote): Likewise.
7093
7094 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7095
7096 * cli/cli-cmds.c (alias_command): Check for an existing alias
7097 using lookup_cmd_composition, as valid_command_p is too strict
7098 and forbids aliases that are the prefix of an existing alias
7099 or command.
7100 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
7101 command is properly recognised as a valid command.
7102
7103 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7104
7105 * unittests/help-doc-selftests.c: Rename to
7106 unittests/command-def-selftests.c
7107 * unittests/command-def-selftests.c (help_doc_tests): Update some
7108 comments.
7109 (command_structure_tests, traverse_command_structure): New namespace
7110 and function.
7111 (command_structure_invariants_tests): New function.
7112 (_initialize_command_def_selftests) Renamed from
7113 _initialize_help_doc_selftests, register command_structure_invariants
7114 selftest.
7115
7116 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7117
7118 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
7119 an alias of 'show'.
7120
7121 2020-05-15 Joel Brobecker <brobecker@adacore.com>
7122
7123 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
7124 ada_is_fixed_point_type. Update all callers.
7125 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
7126 all callers.
7127 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
7128 Update all callers.
7129 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
7130 print_fixed_point_type. Update all callers.
7131 * ada-valprint.c (ada_value_print_num): Replace call to
7132 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
7133
7134 2020-05-14 Kevin Buettner <kevinb@redhat.com>
7135
7136 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
7137 processors.
7138 (cpu_supports_bts): Add CV_AMD case.
7139
7140 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
7141 Simon Marchi <simon.marchi@efficios.com>
7142
7143 * infrun.c (stop_all_threads): Collect multiple wait events at
7144 each pass.
7145
7146 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
7147
7148 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
7149 type::code instead.
7150
7151 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
7152
7153 * gdbtypes.h (struct type) <code, set_code>: New methods.
7154 (TYPE_CODE): Use type::code. Change all call sites used to set
7155 the code to use type::set_code instead.
7156
7157 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7158 Tom de Vries <tdevries@suse.de>
7159 Pedro Alves <palves@redhat.com>
7160
7161 PR threads/25478
7162 * infrun.c (stop_all_threads): Do NOT ignore
7163 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
7164 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
7165 received.
7166 (handle_no_resumed): Remove code handling a live inferior with no
7167 threads.
7168 * remote.c (has_single_non_exited_thread): New.
7169 (remote_target::update_thread_list): Do not delete a thread if is
7170 the last thread of the process.
7171 * thread.c (thread_select): Call delete_exited_threads instead of
7172 prune_threads.
7173
7174 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7175
7176 * infrun.c (stop_all_threads): Enable/disable thread events of all
7177 targets. Move a debug message denoting the end of the function
7178 into the SCOPED_EXIT block.
7179
7180 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7181
7182 * process-stratum-target.h: Include <set>.
7183 (all_non_exited_process_targets, switch_to_target_no_thread): New
7184 function declarations.
7185 * process-stratum-target.c (all_non_exited_process_targets)
7186 (switch_to_target_no_thread): New function implementations.
7187
7188 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7189
7190 * infrun.c (handle_inferior_event): Extract out a piece of code
7191 into...
7192 (mark_non_executing_threads): ...this new function.
7193
7194 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7195
7196 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
7197 use.
7198
7199 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7200
7201 * regcache.c (regcache_read_pc_protected): New function
7202 implementation that returns 0 if the PC cannot read via
7203 'regcache_read_pc'.
7204 * infrun.c (proceed): Call 'regcache_read_pc_protected'
7205 instead of 'regcache_read_pc'.
7206 (keep_going_pass_signal): Ditto.
7207
7208 2020-05-13 Tom Tromey <tromey@adacore.com>
7209
7210 * ada-lang.c (align_value): Remove.
7211 (ada_template_to_fixed_record_type_1): Use align_up.
7212
7213 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7214
7215 * async-event.c: Update the copyright year.
7216 * async-event.h: Update the copyright year.
7217
7218 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
7219
7220 * objfiles.h (is_addr_in_objfile,
7221 shared_objfile_contains_address_p): Return bool.
7222 * objfile.c (is_addr_in_objfile,
7223 shared_objfile_contains_address_p): Return bool.
7224
7225 2020-05-11 Tom Tromey <tromey@adacore.com>
7226
7227 * cli/cli-cmds.c (info_command): Restore.
7228 (_initialize_cli_cmds): Use add_prefix_command for "info".
7229 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7230
7231 2020-05-11 Tom Tromey <tromey@adacore.com>
7232
7233 * ada-lang.c (ada_value_primitive_field): Now public.
7234 * ada-lang.h (ada_value_primitive_field): Declare.
7235 * ada-valprint.c (print_field_values): Use
7236 ada_value_primitive_field for wrapper fields.
7237
7238 2020-05-11 Tom de Vries <tdevries@suse.de>
7239
7240 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7241 MODULE_DOMAIN.
7242
7243 2020-05-11 Tom de Vries <tdevries@suse.de>
7244
7245 PR symtab/25941
7246 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7247 with length 0, if not gdb-produced.
7248 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7249
7250 2020-05-09 Tom de Vries <tdevries@suse.de>
7251
7252 PR gdb/25955
7253 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7254 calculation.
7255
7256 2020-05-09 Tom Tromey <tom@tromey.com>
7257
7258 * top.c (server_command): Now bool.
7259 * top.h (server_command): Now bool.
7260
7261 2020-05-08 Tom Tromey <tromey@adacore.com>
7262
7263 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7264 already being processed.
7265
7266 2020-05-08 Tom Tromey <tom@tromey.com>
7267
7268 * printcmd.c (struct display) <next>: Remove.
7269 <display>: New constructor.
7270 <exp_string>: Now a std::string.
7271 <enabled_p>: Now a bool.
7272 (display_number): Move definition earlier.
7273 (displays): Rename from display_chain. Now a std::vector.
7274 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7275 (display_command): Update.
7276 (do_one_display, disable_display)
7277 (enable_disable_display_command, do_enable_disable_display):
7278 Update.
7279 (free_display): Remove.
7280 (clear_displays): Rewrite.
7281 (delete_display): Update.
7282 (map_display_numbers): Use function_view. Remove "data"
7283 parameter. Update.
7284 (do_delete_display): Remove.
7285 (undisplay_command): Update.
7286 (do_one_display, do_displays, disable_display)
7287 (info_display_command): Update.
7288 (do_enable_disable_display): Remove.
7289 (enable_disable_display_command)
7290 (clear_dangling_display_expressions): Update.
7291
7292 2020-05-08 Tom Tromey <tom@tromey.com>
7293
7294 * symtab.c (set_symbol_cache_size)
7295 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7296 (maintenance_print_symbol_cache_statistics): Update.
7297 * symmisc.c (print_symbol_bcache_statistics)
7298 (print_objfile_statistics, maintenance_print_objfiles)
7299 (maintenance_info_symtabs, maintenance_check_symtabs)
7300 (maintenance_expand_symtabs, maintenance_info_line_tables):
7301 Update.
7302 * symfile-debug.c (set_debug_symfile): Update.
7303 * source.c (forget_cached_source_info): Update.
7304 * python/python.c (gdbpy_progspaces): Update.
7305 * psymtab.c (maintenance_info_psymtabs): Update.
7306 * probe.c (parse_probes): Update.
7307 * linespec.c (iterate_over_all_matching_symtabs)
7308 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7309 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7310 * exec.c (exec_target::close): Update.
7311 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7312 * breakpoint.c (print_one_breakpoint_location)
7313 (create_longjmp_master_breakpoint)
7314 (create_std_terminate_master_breakpoint): Update.
7315 * progspace.c (program_spaces): Now a std::vector.
7316 (maybe_new_address_space): Update.
7317 (add_program_space): Remove.
7318 (program_space::program_space): Update.
7319 (remove_program_space): Update.
7320 (number_of_program_spaces): Remove.
7321 (print_program_space, update_address_spaces): Update.
7322 * progspace.h (program_spaces): Change type.
7323 (ALL_PSPACES): Remove.
7324 (number_of_program_spaces): Don't declare.
7325 (struct program_space) <next>: Remove.
7326
7327 2020-05-08 Tom Tromey <tom@tromey.com>
7328
7329 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7330 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7331 (enable_break): Update.
7332 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7333 (frv_fdpic_find_canonical_descriptor): Update.
7334 (frv_fetch_objfile_link_map): Update.
7335 * progspace.c (program_space::free_all_objfiles): Update.
7336 (program_space::solibs): New method.
7337 * progspace.h (struct program_space) <solibs>: New method.
7338 * solist.h (master_so_list): Don't declare.
7339 (ALL_SO_LIBS): Remove.
7340 * solib.h (so_list_head): Remove.
7341 (update_solib_list): Update comment.
7342 * solib.c (master_so_list): Remove.
7343 (solib_used, update_solib_list, solib_add)
7344 (info_sharedlibrary_command, clear_solib)
7345 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7346
7347 2020-05-08 Tom Tromey <tom@tromey.com>
7348
7349 * extension.c (extension_languages): Now a std::array.
7350 (ALL_EXTENSION_LANGUAGES): Remove.
7351 (get_ext_lang_defn, get_ext_lang_of_file)
7352 (eval_ext_lang_from_control_command): Update.
7353 (finish_ext_lang_initialization)
7354 (auto_load_ext_lang_scripts_for_objfile)
7355 (ext_lang_type_printers::ext_lang_type_printers)
7356 (apply_ext_lang_type_printers)
7357 (ext_lang_type_printers::~ext_lang_type_printers)
7358 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7359 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7360 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7361 (get_matching_xmethod_workers, ext_lang_colorize)
7362 (ext_lang_before_prompt): Update.
7363 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7364
7365 2020-05-08 Tom Tromey <tom@tromey.com>
7366
7367 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7368 overload.
7369 <swap_string, m_string>: Remove.
7370 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7371 Update.
7372 * stabsread.c (define_symbol, read_type): Update.
7373 * linespec.c (find_linespec_symbols): Update.
7374 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7375 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7376 * dbxread.c (read_dbx_symtab): Update.
7377 * cp-support.h (cp_canonicalize_string_full)
7378 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7379 Return unique_xmalloc_ptr.
7380 * cp-support.c (inspect_type): Update.
7381 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7382 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7383 Likewise.
7384 * c-typeprint.c (print_name_maybe_canonical): Update.
7385 * break-catch-throw.c (check_status_exception_catchpoint):
7386 Update.
7387
7388 2020-05-08 Tom de Vries <tdevries@suse.de>
7389
7390 * infrun.c (follow_fork): Copy current_line and current_symtab to
7391 child thread.
7392
7393 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7394
7395 * async-event.c (struct async_signal_handler, struct
7396 async_event_handler): Reformat, remove typedef.
7397
7398 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7399
7400 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7401 access thistype->main_type->dyn_prop_list directly.
7402
7403 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7404
7405 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7406 (remove_dyn_prop): Remove. Update all users to use
7407 type::remove_dyn_prop.
7408 * gdbtypes.c (remove_dyn_prop): Rename to...
7409 (type::remove_dyn_prop): ... this.
7410
7411 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7412
7413 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7414 (add_dyn_prop): Remove. Update all users to use
7415 type::add_dyn_prop.
7416 * gdbtypes.c (add_dyn_prop): Rename to...
7417 (type::add_dyn_prop): ... this.
7418
7419 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7420
7421 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7422 (get_dyn_prop): Remove. Update all users to use
7423 type::dyn_prop.
7424 * gdbtypes.c (get_dyn_prop): Rename to...
7425 (type::dyn_prop): ... this.
7426
7427 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
7428
7429 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7430
7431 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
7432
7433 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7434 instruction, skip it if it's there.
7435
7436 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
7437
7438 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7439
7440 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
7441
7442 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7443 * gdbtypes.c (recursive_dump_type): Remove use of
7444 TYPE_INCOMPLETE.
7445
7446 2020-05-03 Tom Tromey <tom@tromey.com>
7447
7448 * breakpoint.c (catch_command, tcatch_command): Remove.
7449 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7450 add_show_prefix_cmd.
7451 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7452 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7453 Remove.
7454 (add_internal_problem_command): Use add_basic_prefix_cmd,
7455 add_show_prefix_cmd.
7456 * mips-tdep.c (set_mipsfpu_command): Remove.
7457 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7458 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7459 (_initialize_index_cache): Use add_basic_prefix_cmd.
7460 * memattr.c (dummy_cmd): Remove.
7461 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7462 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7463 (_initialize_tui_win): Use add_basic_prefix_cmd,
7464 add_show_prefix_cmd.
7465 * cli/cli-logging.c (set_logging_command): Remove.
7466 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7467 add_show_prefix_cmd.
7468 (show_logging_command): Remove.
7469 * target.c (target_command): Remove.
7470 (add_target): Use add_basic_prefix_cmd.
7471
7472 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
7473
7474 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7475
7476 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7477
7478 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7479 info_command.
7480
7481 2020-04-30 Kamil Rytarowski <n54@gmx.com>
7482
7483 * nbsd-nat.c (nbsd_enable_proc_events)
7484 (nbsd_nat_target::post_startup_inferior): Add.
7485 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7486 (nbsd_nat_target::update_thread_list): Rewrite.
7487 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7488 "PTRACE_LWP_CREATE".
7489 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7490
7491 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7492
7493 * stack.c (_initialize_stack): Remove duplicated creation
7494 of "frame" command and "f" alias.
7495
7496 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
7497
7498 PR gdb/18706
7499 * gdbtypes.c (check_typedef): Calculate size of array of
7500 stubbed type.
7501
7502 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
7503
7504 PR gdb/15559
7505 * i386-tdep.c (i386_push_dummy_call): Call
7506 i386_thiscall_push_dummy_call.
7507 (i386_thiscall_push_dummy_call): New function.
7508 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7509 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7510 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7511
7512 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7513
7514 * gdbarch.sh (do_read): Add shellcheck disable directive for
7515 warning SC2162.
7516
7517 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7518
7519 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7520 "referenced but not assigned" warning.
7521
7522 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7523
7524 * gdbarch.sh: Remove code that sets fallbackdefault.
7525
7526 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7527
7528 * gdbarch.sh: Use shell operators && and || instead of
7529 -a and -o.
7530
7531 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7532
7533 * gdbarch.sh: Use $(...) instead of `...`.
7534
7535 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7536
7537 * gdbarch.sh: Use double quotes around variables.
7538
7539 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7540
7541 * gdbarch.sh: Use %s with printf, instead of variables in the
7542 format string.
7543
7544 2020-04-29 Tom Tromey <tromey@adacore.com>
7545
7546 PR ada/25875:
7547 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7548 type fields here.
7549 (read_enumeration_type): Call
7550 update_enumeration_type_from_children later. Update comments.
7551 (process_enumeration_scope): Don't create type fields.
7552
7553 2020-04-29 Kamil Rytarowski <n54@gmx.com>
7554
7555 * nbsd-tdep.c: Include "xml-syscall.h".
7556 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7557
7558 2020-04-29 Kamil Rytarowski <n54@gmx.com>
7559
7560 * nbsd-nat.c: Include "sys/wait.h".
7561 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7562 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7563 (nbsd_nat_target::remove_exec_catchpoint)
7564 (nbsd_nat_target::set_syscall_catchpoint): Add.
7565 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7566 (nbsd_nat_target::insert_exec_catchpoint)
7567 (nbsd_nat_target::remove_exec_catchpoint)
7568 (nbsd_nat_target::set_syscall_catchpoint): Add.
7569 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7570 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7571 `nbsd_get_syscall_number'.
7572
7573 2020-04-29 Tom Tromey <tom@tromey.com>
7574
7575 * stack.c (print_block_frame_labels): Remove.
7576
7577 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
7578
7579 PR gdb/17320
7580 * ada-valprint.c (val_print_packed_array_elements): Move array
7581 end bracket to new line.
7582 (ada_val_print_string): Remove extra spaces before first array
7583 element.
7584 * c-valprint.c (c_value_print_array): Likewise.
7585 * m2-valprint.c (m2_print_array_contents): Likewise.
7586 (m2_value_print_inner): Likewise.
7587 * p-valprint.c (pascal_value_print_inner): Likewise.
7588 * valprint.c (generic_val_print_array): Likewise.
7589 (value_print_array_elements): Move first array element and array
7590 end bracket to new line.
7591
7592 2020-04-29 Tom de Vries <tdevries@suse.de>
7593
7594 PR symtab/25889
7595 * linespec.c (find_method): Fix ix calculation.
7596
7597 2020-04-28 Kamil Rytarowski <n54@gmx.com>
7598
7599 * syscalls/update-netbsd.sh: New file.
7600 * syscalls/netbsd.xml: Regenerate.
7601 * data-directory/Makefile.in: Register `netbsd.xml' in
7602 `SYSCALLS_FILES'.
7603
7604 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
7605
7606 * syscalls/update-freebsd.sh: Add double quotes.
7607
7608 2020-04-28 Tom Tromey <tom@tromey.com>
7609
7610 * NEWS: Update.
7611 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7612 (cmdpy_init): Allow class_tui.
7613
7614 2020-04-28 Mark Williams <mark@myosotissp.com>
7615
7616 PR gdb/24480
7617 * dwarf2read.c: Add missing assingments to list_in_scope when
7618 start_symtab was already called.
7619
7620 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
7621
7622 PR gdb/25881
7623 * dwarf2/read.c (offset_map_type): Use
7624 gdb:hash_enum<sect_offset> as hash function.
7625
7626 2020-04-28 Tom de Vries <tdevries@suse.de>
7627
7628 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7629 with DW_AT_signature.
7630
7631 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
7632
7633 * configure.ac: Remove check for fs_base/gs_base in
7634 user_regs_struct.
7635 * configure: Re-generate.
7636 * config.in: Re-generate.
7637 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7638 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7639 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7640
7641 2020-04-27 Luis Machado <luis.machado@linaro.org>
7642
7643 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7644 problematic inline frame unwinding situation.
7645 * frame.c (frame_id_computed_p): New function.
7646 * frame.h (frame_id_computed_p): New prototype.
7647
7648 2020-04-26 Tom Tromey <tom@tromey.com>
7649
7650 * command.h (enum command_class) <class_pseudo>: Remove.
7651
7652 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7653
7654 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7655 and whitespace.
7656
7657 2020-04-25 Kamil Rytarowski <n54@gmx.com>
7658
7659 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7660 `PT_GET_PROCESS_STATE' block.
7661
7662 2020-04-24 Tom Tromey <tom@tromey.com>
7663
7664 * symtab.h (symbol_get_demangled_name): Don't declare.
7665 * symtab.c (symbol_get_demangled_name): Remove.
7666 (general_symbol_info::natural_name)
7667 (general_symbol_info::demangled_name): Update.
7668
7669 2020-04-24 Tom Tromey <tom@tromey.com>
7670
7671 PR rust/25025:
7672 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7673
7674 2020-04-24 Tom Tromey <tom@tromey.com>
7675
7676 PR symtab/12707:
7677 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7678 exists.
7679 (new_symbol): Likewise.
7680 * compile/compile-object-load.c (get_out_value_type): Use
7681 symbol_matches_search_name.
7682
7683 2020-04-24 Tom Tromey <tom@tromey.com>
7684
7685 * dwarf2/read.c (add_partial_symbol): Do not call
7686 compute_and_set_names.
7687
7688 2020-04-24 Tom Tromey <tom@tromey.com>
7689
7690 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7691 overload.
7692
7693 2020-04-24 Tom Tromey <tom@tromey.com>
7694
7695 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7696 (add_psymbol_to_list): New overload. Make old overload call new
7697 one.
7698 * psympriv.h (add_psymbol_to_list): New overload.
7699
7700 2020-04-24 Tom Tromey <tom@tromey.com>
7701
7702 * dwarf2/read.c (partial_die_info::read) <case
7703 DW_AT_linkage_name>: Use value_as_string.
7704 (dwarf2_string_attr): Use value_as_string.
7705 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7706 method.
7707 * dwarf2/attribute.c (attribute::value_as_string): New method.
7708
7709 2020-04-24 Tom Tromey <tom@tromey.com>
7710
7711 * symtab.c (general_symbol_info::natural_name)
7712 (general_symbol_info::demangled_name): Check for language_rust.
7713
7714 2020-04-24 Tom Tromey <tom@tromey.com>
7715
7716 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7717 (dwarf2_physname): ... from here.
7718 (partial_die_info::read): Add Rust "{" hack.
7719
7720 2020-04-24 Tom Tromey <tom@tromey.com>
7721
7722 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7723 method.
7724 (symbol_set_demangled_name): Don't declare.
7725 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7726 symbol_set_demangled_name.
7727 (general_symbol_info::set_language)
7728 (general_symbol_info::compute_and_set_names): Update.
7729 * minsyms.c (minimal_symbol_reader::install): Update.
7730 * dwarf2/read.c (new_symbol): Update.
7731
7732 2020-04-24 Tom Tromey <tromey@adacore.com>
7733
7734 PR python/23662:
7735 * python/py-type.c (convert_field): Handle
7736 FIELD_LOC_KIND_DWARF_BLOCK.
7737 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7738 (typy_get_dynamic): Nw function.
7739 (type_object_getset): Add "dynamic".
7740 * NEWS: Add entry.
7741
7742 2020-04-24 Tom Tromey <tromey@adacore.com>
7743
7744 * ada-typeprint.c (print_choices, print_variant_part)
7745 (print_record_field_types_dynamic): New functions.
7746 (print_record_field_types): Use print_record_field_types_dynamic.
7747
7748 2020-04-24 Tom Tromey <tromey@adacore.com>
7749
7750 * dwarf2/read.c (handle_data_member_location): New overload.
7751 (dwarf2_add_field): Use it.
7752 (decode_locdesc): Add "computed" parameter. Update comment.
7753 * gdbtypes.c (is_dynamic_type_internal): Also look for
7754 FIELD_LOC_KIND_DWARF_BLOCK.
7755 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7756 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7757 virtual base classes.
7758 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7759 FIELD_LOC_KIND_DWARF_BLOCK.
7760
7761 2020-04-24 Tom Tromey <tromey@adacore.com>
7762
7763 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7764 * gdbtypes.c (is_dynamic_type_internal): Check
7765 TYPE_HAS_DYNAMIC_LENGTH.
7766 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7767 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7768 New macros.
7769 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7770 constant.
7771
7772 2020-04-24 Tom Tromey <tromey@adacore.com>
7773
7774 * dwarf2/read.c (struct variant_field): Rewrite.
7775 (struct variant_part_builder): New.
7776 (struct nextfield): Remove "variant" field. Add "offset".
7777 (struct field_info): Add "current_variant_part" and
7778 "variant_parts".
7779 (alloc_discriminant_info): Remove.
7780 (alloc_rust_variant): New function.
7781 (quirk_rust_enum): Update.
7782 (dwarf2_add_field): Set "offset" member. Don't handle
7783 DW_TAG_variant_part.
7784 (offset_map_type): New typedef.
7785 (convert_variant_range, create_one_variant)
7786 (create_one_variant_part, create_variant_parts)
7787 (add_variant_property): New functions.
7788 (dwarf2_attach_fields_to_type): Call add_variant_property.
7789 (read_structure_type): Don't handle DW_TAG_variant_part.
7790 (handle_variant_part, handle_variant): New functions.
7791 (handle_struct_member_die): Use them.
7792 (process_structure_scope): Don't handle variant parts.
7793 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7794 (struct discriminant_info): Remove.
7795 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7796 (struct main_type) <flag_discriminated_union>: Remove.
7797 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7798 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7799 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7800 Update.
7801 * valops.c (value_union_variant): Remove.
7802 * value.h (value_union_variant): Don't declare.
7803
7804 2020-04-24 Tom Tromey <tromey@adacore.com>
7805
7806 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7807 (ada_value_primitive_packed_val): Update.
7808 * ada-valprint.c (ada_value_print_1): Update.
7809 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7810 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7811 just an address. Use evaluate_for_locexpr_baton.
7812 (dwarf2_evaluate_property): Update.
7813 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7814 array_view.
7815 * findvar.c (default_read_var_value): Update.
7816 * gdbtypes.c (compute_variant_fields_inner)
7817 (resolve_dynamic_type_internal): Update.
7818 (resolve_dynamic_type): Change type of valaddr parameter.
7819 * gdbtypes.h (resolve_dynamic_type): Update.
7820 * valarith.c (value_subscripted_rvalue): Update.
7821 * value.c (value_from_contents_and_address): Update.
7822
7823 2020-04-24 Tom Tromey <tromey@adacore.com>
7824
7825 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7826 "push_initial_value" parameter.
7827 (dwarf2_evaluate_property): Likewise.
7828 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7829
7830 2020-04-24 Tom Tromey <tromey@adacore.com>
7831
7832 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7833 (variant::matches, compute_variant_fields_recurse)
7834 (compute_variant_fields_inner, compute_variant_fields): New
7835 functions.
7836 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7837 Use resolved_type after type is made.
7838 (operator==): Add new cases.
7839 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7840 (struct discriminant_range, struct variant, struct variant_part):
7841 New.
7842 (union dynamic_prop_data) <variant_parts, original_type>: New
7843 members.
7844 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7845 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7846 constants.
7847 * value.c (unpack_bits_as_long): Now public.
7848 * value.h (unpack_bits_as_long): Declare.
7849
7850 2020-04-24 Tom Tromey <tromey@adacore.com>
7851
7852 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7853 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7854
7855 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
7856
7857 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7858
7859 2020-04-24 Kamil Rytarowski <n54@gmx.com>
7860
7861 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7862 (remove_fork_catchpoint, post_startup_inferior)
7863 (post_attach): Move...
7864 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7865 (remove_fork_catchpoint, post_startup_inferior)
7866 (post_attach): ...here.
7867 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7868 (remove_fork_catchpoint, post_startup_inferior)
7869 (post_attach): Move...
7870 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7871 (remove_fork_catchpoint, post_startup_inferior)
7872 (post_attach): ...here.
7873
7874 2020-04-24 Tom Tromey <tromey@adacore.com>
7875
7876 * nat/windows-nat.h (struct windows_thread_info)
7877 <pc_adjusted>: New member.
7878 * windows-nat.c (windows_fetch_one_register): Check
7879 pc_adjusted.
7880 (windows_nat_target::get_windows_debug_event)
7881 (windows_nat_target::wait): Set pc_adjusted.
7882
7883 2020-04-24 Tom de Vries <tdevries@suse.de>
7884
7885 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
7886 Run gdb-add-index inside temp dir.
7887
7888 2020-04-23 Tom Tromey <tromey@adacore.com>
7889
7890 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
7891 in loop.
7892
7893 2020-04-23 Luis Machado <luis.machado@linaro.org>
7894
7895 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7896 get_frame_register instead of gdbarch_unwind_pc.
7897
7898 2020-04-23 Tom de Vries <tdevries@suse.de>
7899
7900 * symtab.c (lookup_global_symbol): Prefer def over decl.
7901
7902 2020-04-23 Tom de Vries <tdevries@suse.de>
7903
7904 PR symtab/25807
7905 * block.c (best_symbol, better_symbol): Promote to external.
7906 * block.h (best_symbol, better_symbol): Declare.
7907 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
7908 decl.
7909
7910 2020-04-23 Tom Tromey <tromey@adacore.com>
7911
7912 PR ada/25837:
7913 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
7914 "const char *", not a "const std::string &".
7915 <name_and_matcher::operator==>: Update.
7916 * unittests/lookup_name_info-selftests.c: Change type of
7917 "result".
7918
7919 2020-04-23 Tom Tromey <tom@tromey.com>
7920
7921 * inferior.h (iterate_over_inferiors): Don't declare.
7922 * inferior.c (iterate_over_inferiors): Remove.
7923 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
7924 Remove.
7925 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
7926 use iterate_over_inferiors.
7927 (darwin_resume_inferior_it)
7928 (struct resume_inferior_threads_param)
7929 (darwin_resume_inferior_threads_it): Remove.
7930 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
7931
7932 2020-04-23 Tom de Vries <tdevries@suse.de>
7933
7934 * blockframe.c (find_pc_partial_function): Use
7935 find_pc_sect_compunit_symtab rather than
7936 objfile->sf->qf->find_pc_sect_compunit_symtab.
7937
7938 2020-04-22 Tom de Vries <tdevries@suse.de>
7939
7940 PR symtab/25764
7941 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7942 in psymtabs.
7943
7944 2020-04-22 Tom de Vries <tdevries@suse.de>
7945
7946 PR symtab/25801
7947 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7948 symtabs.
7949
7950 2020-04-22 Tom de Vries <tdevries@suse.de>
7951
7952 PR symtab/25700
7953 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7954 CU if already created.
7955
7956 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7957
7958 * infrun.c (displaced_step_fixup): Switch to the event_thread
7959 before calling displaced_step_restore, not after.
7960
7961 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7962
7963 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7964 its inferior is not recorded by us.
7965 (record_btrace_target_open): Replace call to
7966 all_non_exited_threads () with call to current_inferior
7967 ()->non_exited_threads ().
7968 (record_btrace_target::stop_recording): Likewise.
7969 (record_btrace_target::close): Likewise.
7970 (record_btrace_target::wait): Likewise.
7971 (record_btrace_target::record_stop_replaying): Likewise.
7972
7973 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7974
7975 * btrace.c (btrace_enable): Throw an error on double enables and
7976 when enabling recording fails.
7977 (btrace_disable): Throw an error if the thread is not recorded.
7978
7979 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7980
7981 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7982 request if we do not have a thread_info.
7983
7984 2020-04-21 Tom de Vries <tdevries@suse.de>
7985
7986 PR gdb/25471
7987 * thread.c
7988 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7989 exception in get_frame_id.
7990
7991 2020-04-20 Tom Tromey <tromey@adacore.com>
7992
7993 * python/python.c (struct gdbpy_event): Mark move constructor as
7994 noexcept.
7995 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7996 constructor as noexcept.
7997 * completer.h (struct completion_result): Mark move constructor as
7998 noexcept.
7999 * completer.c (completion_result::completion_result): Use
8000 initialization style. Don't call reset_match_list.
8001
8002 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
8003
8004 * MAINTAINERS (Write After Approval): Add myself.
8005
8006 2020-04-18 Tom Tromey <tom@tromey.com>
8007
8008 * windows-tdep.c (init_w32_command_list)
8009 (w32_prefix_command_valid): Restore.
8010 (_initialize_windows_tdep): Call init_w32_command_list.
8011
8012 2020-04-18 Tom Tromey <tom@tromey.com>
8013
8014 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
8015 * value.c (value_fn_field): Update.
8016 * valops.c (find_function_in_inferior)
8017 (value_allocate_space_in_inferior): Update.
8018 * tui/tui-winsource.c (tui_update_source_windows_with_line):
8019 Update.
8020 * tui/tui-source.c (tui_source_window::set_contents): Update.
8021 * symtab.c (lookup_global_or_static_symbol)
8022 (find_function_start_sal_1, skip_prologue_sal)
8023 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
8024 * symmisc.c (dump_msymbols, dump_symtab_1)
8025 (maintenance_print_one_line_table): Update.
8026 * symfile.c (init_entry_point_info, section_is_mapped)
8027 (list_overlays_command, simple_read_overlay_table)
8028 (simple_overlay_update_1): Update.
8029 * stap-probe.c (handle_stap_probe): Update.
8030 * stabsread.c (dbx_init_float_type, define_symbol)
8031 (read_one_struct_field, read_enum_type, read_range_type): Update.
8032 * source.c (info_line_command): Update.
8033 * python/python.c (gdbpy_source_objfile_script)
8034 (gdbpy_execute_objfile_script): Update.
8035 * python/py-type.c (save_objfile_types): Update.
8036 * python/py-objfile.c (py_free_objfile): Update.
8037 * python/py-inferior.c (python_new_objfile): Update.
8038 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
8039 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
8040 (maintenance_check_psymtabs): Update.
8041 * printcmd.c (info_address_command): Update.
8042 * objfiles.h (struct objfile) <arch>: New method, from
8043 get_objfile_arch.
8044 (get_objfile_arch): Don't declare.
8045 * objfiles.c (get_objfile_arch): Remove.
8046 (filter_overlapping_sections): Update.
8047 * minsyms.c (msymbol_is_function): Update.
8048 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
8049 (output_nondebug_symbol): Update.
8050 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
8051 (mdebug_expand_psymtab): Update.
8052 * machoread.c (macho_add_oso_symfile): Update.
8053 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
8054 Update.
8055 * linux-fork.c (checkpoint_command): Update.
8056 * linespec.c (convert_linespec_to_sals): Update.
8057 * jit.c (finalize_symtab): Update.
8058 * infrun.c (insert_exception_resume_from_probe): Update.
8059 * ia64-tdep.c (ia64_find_unwind_table): Update.
8060 * hppa-tdep.c (internalize_unwinds): Update.
8061 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
8062 Update.
8063 * gcore.c (call_target_sbrk): Update.
8064 * elfread.c (record_minimal_symbol, elf_symtab_read)
8065 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
8066 (elf_gnu_ifunc_resolve_by_got): Update.
8067 * dwarf2/read.c (create_addrmap_from_index)
8068 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
8069 (read_debug_names_from_section)
8070 (process_psymtab_comp_unit_reader, add_partial_symbol)
8071 (add_partial_subprogram, process_full_comp_unit)
8072 (read_file_scope, read_func_scope, read_lexical_block_scope)
8073 (read_call_site_scope, dwarf2_ranges_read)
8074 (dwarf2_record_block_ranges, dwarf2_add_field)
8075 (mark_common_block_symbol_computed, read_tag_pointer_type)
8076 (read_tag_string_type, dwarf2_init_float_type)
8077 (dwarf2_init_complex_target_type, read_base_type)
8078 (partial_die_info::read, partial_die_info::read)
8079 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
8080 (dwarf2_fetch_die_loc_sect_off): Update.
8081 * dwarf2/loc.c (dwarf2_find_location_expression)
8082 (class dwarf_evaluate_loc_desc, rw_pieced_value)
8083 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
8084 (dwarf2_loc_desc_get_symbol_read_needs)
8085 (locexpr_describe_location_piece, locexpr_describe_location_1)
8086 (loclist_describe_location): Update.
8087 * dwarf2/index-write.c (write_debug_names): Update.
8088 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
8089 * dtrace-probe.c (dtrace_process_dof): Update.
8090 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
8091 (process_one_symbol): Update.
8092 * ctfread.c (ctf_init_float_type, read_base_type): Update.
8093 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
8094 (coff_read_enum_type): Update.
8095 * cli/cli-cmds.c (edit_command, list_command): Update.
8096 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
8097 * breakpoint.c (create_overlay_event_breakpoint)
8098 (create_longjmp_master_breakpoint)
8099 (create_std_terminate_master_breakpoint)
8100 (create_exception_master_breakpoint, get_sal_arch): Update.
8101 * block.c (block_gdbarch): Update.
8102 * annotate.c (annotate_source_line): Update.
8103
8104 2020-04-17 Tom Tromey <tromey@adacore.com>
8105
8106 * auto-load.c (show_auto_load_cmd): Remove.
8107 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
8108 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
8109 (maintenance_print_arc_command): Remove.
8110 * tui/tui-win.c (tui_command): Remove.
8111 (tui_get_cmd_list): Use add_basic_prefix_cmd.
8112 * tui/tui-layout.c (tui_layout_command): Remove.
8113 (_initialize_tui_layout): Use add_basic_prefix_cmd.
8114 * python/python.c (user_set_python, user_show_python): Remove.
8115 (_initialize_python): Use add_basic_prefix_cmd,
8116 add_show_prefix_cmd.
8117 * guile/guile.c (set_guile_command, show_guile_command): Remove.
8118 (install_gdb_commands): Use add_basic_prefix_cmd,
8119 add_show_prefix_cmd.
8120 (info_guile_command): Remove.
8121 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
8122 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
8123 add_show_prefix_cmd.
8124 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
8125 Remove do_set and do_show parameters.
8126 * cli/cli-style.c (set_style, show_style): Remove.
8127 (_initialize_cli_style): Use add_basic_prefix_cmd,
8128 add_show_prefix_cmd.
8129 (cli_style_option::add_setshow_commands): Remove do_set and
8130 do_show parameters.
8131 (cli_style_option::add_setshow_commands): Use
8132 add_basic_prefix_cmd, add_show_prefix_cmd.
8133 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
8134 (set_style_name): Remove.
8135 * cli/cli-dump.c (dump_command, append_command): Remove.
8136 (srec_dump_command, ihex_dump_command, verilog_dump_command)
8137 (tekhex_dump_command, binary_dump_command)
8138 (binary_append_command): Remove.
8139 (_initialize_cli_dump): Use add_basic_prefix_cmd.
8140 * windows-tdep.c (w32_prefix_command_valid): Remove global.
8141 (init_w32_command_list): Remove; move into ...
8142 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
8143 * valprint.c (set_print, show_print, set_print_raw)
8144 (show_print_raw): Remove.
8145 (_initialize_valprint): Use add_basic_prefix_cmd,
8146 add_show_prefix_cmd.
8147 * typeprint.c (set_print_type, show_print_type): Remove.
8148 (_initialize_typeprint): Use add_basic_prefix_cmd,
8149 add_show_prefix_cmd.
8150 * record.c (set_record_command, show_record_command): Remove.
8151 (_initialize_record): Use add_basic_prefix_cmd,
8152 add_show_prefix_cmd.
8153 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
8154 add_show_prefix_cmd.
8155 (info_command, show_command, set_debug, show_debug): Remove.
8156 * top.h (set_history, show_history): Don't declare.
8157 * top.c (set_history, show_history): Remove.
8158 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
8159 (unset_tdesc_cmd): Remove.
8160 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
8161 add_show_prefix_cmd.
8162 * symtab.c (info_module_command): Remove.
8163 (_initialize_symtab): Use add_basic_prefix_cmd.
8164 * symfile.c (overlay_command): Remove.
8165 (_initialize_symfile): Use add_basic_prefix_cmd.
8166 * sparc64-tdep.c (info_adi_command): Remove.
8167 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
8168 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
8169 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
8170 add_show_prefix_cmd.
8171 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
8172 (_initialize_serial): Use add_basic_prefix_cmd,
8173 add_show_prefix_cmd.
8174 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
8175 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
8176 add_show_prefix_cmd.
8177 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
8178 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
8179 add_show_prefix_cmd.
8180 * riscv-tdep.c (show_riscv_command, set_riscv_command)
8181 (show_debug_riscv_command, set_debug_riscv_command): Remove.
8182 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
8183 add_show_prefix_cmd.
8184 * remote.c (remote_command, set_remote_cmd): Remove.
8185 (_initialize_remote): Use add_basic_prefix_cmd.
8186 * record-full.c (set_record_full_command)
8187 (show_record_full_command): Remove.
8188 (_initialize_record_full): Use add_basic_prefix_cmd,
8189 add_show_prefix_cmd.
8190 * record-btrace.c (cmd_set_record_btrace)
8191 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
8192 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
8193 (cmd_show_record_btrace_pt): Remove.
8194 (_initialize_record_btrace): Use add_basic_prefix_cmd,
8195 add_show_prefix_cmd.
8196 * ravenscar-thread.c (set_ravenscar_command)
8197 (show_ravenscar_command): Remove.
8198 (_initialize_ravenscar): Use add_basic_prefix_cmd,
8199 add_show_prefix_cmd.
8200 * mips-tdep.c (show_mips_command, set_mips_command)
8201 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
8202 add_show_prefix_cmd.
8203 * maint.c (maintenance_command, maintenance_info_command)
8204 (maintenance_check_command, maintenance_print_command)
8205 (maintenance_set_cmd, maintenance_show_cmd): Remove.
8206 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
8207 add_show_prefix_cmd.
8208 (show_per_command_cmd): Remove.
8209 * maint-test-settings.c (maintenance_set_test_settings_cmd):
8210 Remove.
8211 (maintenance_show_test_settings_cmd): Remove.
8212 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
8213 add_show_prefix_cmd.
8214 * maint-test-options.c (maintenance_test_options_command):
8215 Remove.
8216 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
8217 * macrocmd.c (macro_command): Remove
8218 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8219 * language.c (set_check, show_check): Remove.
8220 (_initialize_language): Use add_basic_prefix_cmd,
8221 add_show_prefix_cmd.
8222 * infcmd.c (unset_command): Remove.
8223 (_initialize_infcmd): Use add_basic_prefix_cmd.
8224 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8225 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8226 add_show_prefix_cmd.
8227 * go32-nat.c (go32_info_dos_command): Remove.
8228 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8229 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8230 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8231 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8232 (_initialize_frame): Use add_basic_prefix_cmd,
8233 add_show_prefix_cmd.
8234 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8235 (_initialize_dcache): Use add_basic_prefix_cmd,
8236 add_show_prefix_cmd.
8237 * cp-support.c (maint_cplus_command): Remove.
8238 (_initialize_cp_support): Use add_basic_prefix_cmd.
8239 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8240 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8241 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8242 add_basic_prefix_cmd, add_show_prefix_cmd.
8243 * breakpoint.c (save_command): Remove.
8244 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8245 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8246 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8247 add_show_prefix_cmd.
8248 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8249 (set_ada_command, show_ada_command): Remove.
8250 (_initialize_ada_language): Use add_basic_prefix_cmd,
8251 add_show_prefix_cmd.
8252 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8253
8254 2020-04-16 Kamil Rytarowski <n54@gmx.com>
8255
8256 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8257 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8258
8259 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8260
8261 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8262 warning messages.
8263
8264 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8265
8266 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8267 import table is not at beginning of .idata section.
8268
8269 2020-04-16 Pedro Alves <palves@redhat.com>
8270
8271 * inferior.c (delete_inferior): Use delete operator directly
8272 instead of delete_program_space.
8273 * progspace.c (add_program_space): New, factored out from
8274 program_space::program_space.
8275 (remove_program_space): New, factored out from
8276 delete_program_space.
8277 (program_space::program_space): Remove intro comment. Rewrite.
8278 (program_space::~program_space): Remove intro comment. Call
8279 remove_program_space.
8280 (delete_program_space): Delete.
8281 * progspace.h (program_space::program_space): Make explicit. Move
8282 intro comment here, adjusted.
8283 (program_space::~program_space): Move intro comment here,
8284 adjusted.
8285 (delete_program_space): Remove.
8286
8287 2020-04-16 Tom Tromey <tromey@adacore.com>
8288
8289 * windows-nat.c (windows_nat::handle_access_violation): New
8290 function.
8291 * nat/windows-nat.h (handle_access_violation): Declare.
8292 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8293 windows-nat.c. Call handle_access_violation.
8294
8295 2020-04-16 Tom de Vries <tdevries@suse.de>
8296
8297 PR symtab/25791
8298 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8299 CUs without psymtab.
8300
8301 2020-04-16 Kevin Buettner <kevinb@redhat.com>
8302
8303 * python/python.c (do_start_initialization): Don't call
8304 PyEval_InitThreads for Python 3.9 and beyond.
8305
8306 2020-04-15 Kamil Rytarowski <n54@gmx.com>
8307
8308 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8309 thread functions.
8310 (obsd_nat_target::wait): Likewise.
8311
8312 2020-04-15 Tom Tromey <tromey@adacore.com>
8313
8314 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8315 (DEBUG_EXCEPT): Use debug_printf.
8316
8317 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8318
8319 * completer.c (class completion_tracker::completion_hash_entry)
8320 <hash_name>: New member function.
8321 (completion_tracker::discard_completions): New callback to hash a
8322 completion_hash_entry, pass this to htab_create_alloc.
8323
8324 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8325
8326 * windows-nat.c (windows_make_so): Warn rather than stopping with
8327 an error if realpath() fails.
8328
8329 2020-04-14 Kamil Rytarowski <n54@gmx.com>
8330
8331 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8332 (nbsd_nat_target::info_proc): Add do_status.
8333
8334 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8335 Tom de Vries <tdevries@suse.de>
8336
8337 PR symtab/25718
8338 * psympriv.h (struct partial_symtab::read_symtab)
8339 (struct partial_symtab::expand_psymtab)
8340 (struct partial_symtab::read_dependencies): Update comments.
8341 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8342 read_symtab for includer.
8343 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8344 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8345 (struct dwarf2_include_psymtab::m_readin): Remove.
8346 (struct dwarf2_include_psymtab::includer): New member function.
8347 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8348
8349 2020-04-14 Tom de Vries <tdevries@suse.de>
8350
8351 PR symtab/25720
8352 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8353 with NULL symbol_matcher and lookup_name.
8354 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8355 and lookup_name.
8356 * dwarf2/read.c (dw2_expand_symtabs_matching)
8357 (dw2_debug_names_expand_symtabs_matching): Same.
8358 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8359 Make lookup_name a pointer. Update comment.
8360 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8361 lookup_name being a pointer.
8362 * symfile.c (expand_symtabs_matching): Same.
8363 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8364 * linespec.c (iterate_over_all_matching_symtabs): Same.
8365
8366 2020-04-13 Tom Tromey <tom@tromey.com>
8367
8368 * run-on-main-thread.c: Update include.
8369 * unittests/main-thread-selftests.c: Update include.
8370 * tui/tui-win.c: Update include.
8371 * tui/tui-io.c: Update include.
8372 * tui/tui-interp.c: Update include.
8373 * tui/tui-hooks.c: Update include.
8374 * top.h: Update include.
8375 * top.c: Update include.
8376 * ser-base.c: Update include.
8377 * remote.c: Update include.
8378 * remote-notif.c: Update include.
8379 * remote-fileio.c: Update include.
8380 * record-full.c: Update include.
8381 * record-btrace.c: Update include.
8382 * python/python.c: Update include.
8383 * posix-hdep.c: Update include.
8384 * mingw-hdep.c: Update include.
8385 * mi/mi-main.c: Update include.
8386 * mi/mi-interp.c: Update include.
8387 * main.c: Update include.
8388 * linux-nat.c: Update include.
8389 * interps.c: Update include.
8390 * infrun.c: Update include.
8391 * inf-loop.c: Update include.
8392 * event-top.c: Update include.
8393 * event-loop.c: Move to ../gdbsupport/.
8394 * event-loop.h: Move to ../gdbsupport/.
8395 * async-event.h: Update include.
8396 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8397
8398 2020-04-13 Tom Tromey <tom@tromey.com>
8399
8400 * tui/tui-win.c: Include async-event.h.
8401 * remote.c: Include async-event.h.
8402 * remote-notif.c: Include async-event.h.
8403 * record-full.c: Include async-event.h.
8404 * record-btrace.c: Include async-event.h.
8405 * infrun.c: Include async-event.h.
8406 * event-top.c: Include async-event.h.
8407 * event-loop.h: Move some declarations to async-event.h.
8408 * event-loop.c: Don't include ser-event.h or top.h. Move some
8409 code to async-event.c.
8410 * async-event.h: New file.
8411 * async-event.c: New file.
8412 * Makefile.in (COMMON_SFILES): Add async-event.c.
8413 (HFILES_NO_SRCDIR): Add async-event.h.
8414
8415 2020-04-13 Tom Tromey <tom@tromey.com>
8416
8417 * utils.c (flush_streams): New function.
8418 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8419
8420 2020-04-13 Tom Tromey <tom@tromey.com>
8421
8422 * event-loop.c (handle_file_event): Use warning, not
8423 printf_unfiltered.
8424
8425 2020-04-13 Tom Tromey <tom@tromey.com>
8426
8427 * event-loop.c: Include <chrono>.
8428
8429 2020-04-13 Tom Tromey <tom@tromey.com>
8430
8431 * gdb_select.h: Move to ../gdbsupport/.
8432 * event-loop.c: Update include path.
8433 * top.c: Update include path.
8434 * ser-base.c: Update include path.
8435 * ui-file.c: Update include path.
8436 * ser-tcp.c: Update include path.
8437 * guile/scm-ports.c: Update include path.
8438 * posix-hdep.c: Update include path.
8439 * ser-unix.c: Update include path.
8440 * gdb_usleep.c: Update include path.
8441 * mingw-hdep.c: Update include path.
8442 * inflow.c: Update include path.
8443 * infrun.c: Update include path.
8444 * event-top.c: Update include path.
8445
8446 2020-04-13 Tom Tromey <tom@tromey.com>
8447
8448 * configure: Rebuild.
8449 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8450
8451 2020-04-13 Tom Tromey <tom@tromey.com>
8452
8453 * event-loop.h (start_event_loop): Don't declare.
8454 * event-loop.c (start_event_loop): Move...
8455 * main.c (start_event_loop): ...here. Now static.
8456
8457 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8458
8459 * MAINTAINERS: Update my email address.
8460
8461 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8462
8463 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8464 IP_ALL.
8465
8466 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8467
8468 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
8469 (nbsd_nat_target::info_proc): Add do_cmdline.
8470
8471 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8472
8473 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
8474 (nbsd_nat_target::info_proc): Add do_cwd.
8475
8476 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8477
8478 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8479
8480 2020-04-11 Kamil Rytarowski <n54@gmx.com>
8481
8482 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8483 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8484 (nbsd_nat_target::info_proc): New functions.
8485 * nbsd-nat.c (kinfo_get_vmmap): New function.
8486 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8487 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8488 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8489 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8490 functions.
8491 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8492 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8493 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8494 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8495 (KINFO_VME_FLAG_GROWS_DOWN): New.
8496
8497 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8498
8499 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8500 bit shift.
8501
8502 2020-04-10 Tom Tromey <tromey@adacore.com>
8503
8504 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8505
8506 2020-04-10 Tom Tromey <tromey@adacore.com>
8507
8508 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8509 separate debug files.
8510
8511 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
8512
8513 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8514 Move to...
8515 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8516 ... here.
8517 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8518 Check for STATUS_WX86_BREAKPOINT.
8519 (windows_nat_target::wait): Same.
8520
8521 2020-04-10 Tom de Vries <tdevries@suse.de>
8522
8523 PR cli/25808
8524 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8525
8526 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8527
8528 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8529 (Write After Approval): Remove Tom de Vries.
8530
8531 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8532
8533 revert partially:
8534 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8535
8536 * buildsym.c (record_line): Fix undefined behavior and preserve
8537 lines at eof.
8538
8539 2020-04-09 Kamil Rytarowski <n54@gmx.com>
8540
8541 * auxv.h (svr4_auxv_parse): New.
8542 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8543 and generic_auxv_parse.
8544 (svr4_auxv_parse): Add.
8545 * obsd-tdep.c: Include "auxv.h".
8546 (obsd_auxv_parse): Remove.
8547 (obsd_init_abi): Remove comment.
8548 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8549 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8550 * nbsd-tdep.c: Include "auxv.h".
8551 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8552
8553 2020-04-08 Tom Tromey <tromey@adacore.com>
8554
8555 * nat/windows-nat.h (last_wait_event): Don't declare.
8556 (wait_for_debug_event): Update comment.
8557 * nat/windows-nat.c (last_wait_event): Now static.
8558
8559 2020-04-08 Tom Tromey <tromey@adacore.com>
8560
8561 * windows-nat.c (wait_for_debug_event): Move to
8562 nat/windows-nat.c.
8563 * nat/windows-nat.h (wait_for_debug_event): Declare.
8564 * nat/windows-nat.c (wait_for_debug_event): Move from
8565 windows-nat.c. No longer static.
8566
8567 2020-04-08 Tom Tromey <tromey@adacore.com>
8568
8569 * windows-nat.c (get_windows_debug_event): Use
8570 fetch_pending_stop.
8571 * nat/windows-nat.h (fetch_pending_stop): Declare.
8572 * nat/windows-nat.c (fetch_pending_stop): New function.
8573
8574 2020-04-08 Tom Tromey <tromey@adacore.com>
8575
8576 * windows-nat.c (windows_continue): Use matching_pending_stop and
8577 continue_last_debug_event.
8578 * nat/windows-nat.h (matching_pending_stop)
8579 (continue_last_debug_event): Declare.
8580 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8581 (matching_pending_stop, continue_last_debug_event): New
8582 functions.
8583
8584 2020-04-08 Tom Tromey <tromey@adacore.com>
8585
8586 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8587 (handle_exception_result): Move to nat/windows-nat.h.
8588 (DEBUG_EXCEPTION_SIMPLE): Remove.
8589 (windows_nat::handle_ms_vc_exception): New function.
8590 (handle_exception): Move to nat/windows-nat.c.
8591 (get_windows_debug_event): Update.
8592 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8593 nat/windows-nat.c.
8594 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8595 (handle_exception_result): Move from windows-nat.c.
8596 (handle_exception): Declare.
8597 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8598 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8599 windows-nat.c.
8600
8601 2020-04-08 Tom Tromey <tromey@adacore.com>
8602
8603 * windows-nat.c (exception_count, event_count): Remove.
8604 (handle_exception, get_windows_debug_event)
8605 (do_initial_windows_stuff): Update.
8606
8607 2020-04-08 Tom Tromey <tromey@adacore.com>
8608
8609 * windows-nat.c (windows_nat::handle_load_dll)
8610 (windows_nat::handle_unload_dll): Rename. No longer static.
8611 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8612 Declare.
8613
8614 2020-04-08 Tom Tromey <tromey@adacore.com>
8615
8616 * complaints.h (stop_whining): Declare at top-level.
8617 (complaint): Don't declare stop_whining.
8618
8619 2020-04-08 Tom Tromey <tromey@adacore.com>
8620
8621 * windows-nat.c (windows_nat::handle_output_debug_string):
8622 Rename. No longer static.
8623 * nat/windows-nat.h (handle_output_debug_string): Declare.
8624
8625 2020-04-08 Tom Tromey <tromey@adacore.com>
8626
8627 * windows-nat.c (current_process_handle, current_process_id)
8628 (main_thread_id, last_sig, current_event, last_wait_event)
8629 (current_windows_thread, desired_stop_thread_id, pending_stops)
8630 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8631 (display_selectors, fake_create_process)
8632 (get_windows_debug_event): Update.
8633 * nat/windows-nat.h (current_process_handle, current_process_id)
8634 (main_thread_id, last_sig, current_event, last_wait_event)
8635 (current_windows_thread, desired_stop_thread_id, pending_stops)
8636 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8637 * nat/windows-nat.c (current_process_handle, current_process_id)
8638 (main_thread_id, last_sig, current_event, last_wait_event)
8639 (current_windows_thread, desired_stop_thread_id, pending_stops)
8640 (siginfo_er): New globals. Move from windows-nat.c.
8641
8642 2020-04-08 Tom Tromey <tromey@adacore.com>
8643
8644 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8645 (handle_load_dll): Update.
8646 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8647
8648 2020-04-08 Tom Tromey <tromey@adacore.com>
8649
8650 * windows-nat.c (enum thread_disposition_type): Move to
8651 nat/windows-nat.h.
8652 (windows_nat::thread_rec): Rename from thread_rec. No longer
8653 static.
8654 (windows_add_thread, windows_nat_target::fetch_registers)
8655 (windows_nat_target::store_registers, handle_exception)
8656 (windows_nat_target::resume, get_windows_debug_event)
8657 (windows_nat_target::get_tib_address)
8658 (windows_nat_target::thread_name)
8659 (windows_nat_target::thread_alive): Update.
8660 * nat/windows-nat.h (enum thread_disposition_type): Move from
8661 windows-nat.c.
8662 (thread_rec): Declare.
8663
8664 2020-04-08 Tom Tromey <tromey@adacore.com>
8665
8666 * windows-nat.c: Add "using namespace".
8667 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8668 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8669
8670 2020-04-08 Tom Tromey <tromey@adacore.com>
8671
8672 * nat/windows-nat.h (struct windows_thread_info): Declare
8673 destructor.
8674 * nat/windows-nat.c (~windows_thread_info): New.
8675
8676 2020-04-08 Tom Tromey <tromey@adacore.com>
8677
8678 PR gdb/22992
8679 * windows-nat.c (current_event): Update comment.
8680 (last_wait_event, desired_stop_thread_id): New globals.
8681 (struct pending_stop): New.
8682 (pending_stops): New global.
8683 (windows_nat_target) <stopped_by_sw_breakpoint>
8684 <supports_stopped_by_sw_breakpoint>: New methods.
8685 (windows_fetch_one_register): Add assertions. Adjust PC.
8686 (windows_continue): Handle pending stops. Suspend other threads
8687 when stepping. Use last_wait_event
8688 (wait_for_debug_event): New function.
8689 (get_windows_debug_event): Use wait_for_debug_event. Handle
8690 pending stops. Queue spurious stops.
8691 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8692 (windows_nat_target::kill): Use wait_for_debug_event.
8693 * nat/windows-nat.h (struct windows_thread_info)
8694 <stopped_at_software_breakpoint>: New field.
8695 * nat/windows-nat.c (windows_thread_info::resume): Clear
8696 stopped_at_software_breakpoint.
8697
8698 2020-04-08 Tom Tromey <tromey@adacore.com>
8699
8700 * windows-nat.c (enum thread_disposition_type): New.
8701 (thread_rec): Replace "get_context" parameter with "disposition";
8702 change type.
8703 (windows_add_thread, windows_nat_target::fetch_registers)
8704 (windows_nat_target::store_registers, handle_exception)
8705 (windows_nat_target::resume, get_windows_debug_event)
8706 (windows_nat_target::get_tib_address)
8707 (windows_nat_target::thread_name)
8708 (windows_nat_target::thread_alive): Update.
8709
8710 2020-04-08 Tom Tromey <tromey@adacore.com>
8711
8712 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8713 (windows_continue): Use windows_continue::resume.
8714 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8715 resume>: Declare new methods.
8716 * nat/windows-nat.c: New file.
8717 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8718
8719 2020-04-08 Tom Tromey <tromey@adacore.com>
8720
8721 * windows-nat.c (windows_add_thread, windows_delete_thread)
8722 (windows_nat_target::fetch_registers)
8723 (windows_nat_target::store_registers, fake_create_process)
8724 (windows_nat_target::resume, windows_nat_target::resume)
8725 (get_windows_debug_event, windows_nat_target::wait)
8726 (windows_nat_target::pid_to_str)
8727 (windows_nat_target::get_tib_address)
8728 (windows_nat_target::get_ada_task_ptid)
8729 (windows_nat_target::thread_name)
8730 (windows_nat_target::thread_alive): Use lwp, not tid.
8731
8732 2020-04-08 Tom Tromey <tromey@adacore.com>
8733
8734 * windows-nat.c (handle_exception)
8735 (windows_nat_target::thread_name): Update.
8736 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8737 <name>: Now unique_xmalloc_ptr.
8738
8739 2020-04-08 Tom Tromey <tromey@adacore.com>
8740
8741 * windows-nat.c (thread_rec)
8742 (windows_nat_target::fetch_registers): Update.
8743 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8744 Update comment.
8745 <debug_registers_changed, reload_context>: Now bool.
8746
8747 2020-04-08 Tom Tromey <tromey@adacore.com>
8748
8749 * windows-nat.c (windows_add_thread): Use new.
8750 (windows_init_thread_list, windows_delete_thread): Use delete.
8751 (get_windows_debug_event): Update.
8752 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8753 destructor, and initializers.
8754
8755 2020-04-08 Tom Tromey <tromey@adacore.com>
8756
8757 * windows-nat.c (struct windows_thread_info): Remove.
8758 * nat/windows-nat.h: New file.
8759
8760 2020-04-08 Tom Tromey <tromey@adacore.com>
8761
8762 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8763 (thread_rec, windows_add_thread, windows_delete_thread)
8764 (windows_continue): Update.
8765
8766 2020-04-08 Tom Tromey <tromey@adacore.com>
8767
8768 * windows-nat.c (struct windows_thread_info): Remove typedef.
8769 (thread_head): Remove.
8770 (thread_list): New global.
8771 (thread_rec, windows_add_thread, windows_init_thread_list)
8772 (windows_delete_thread, windows_continue): Update.
8773
8774 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8775
8776 * windows-tdep.h (windows_init_abi): Add comment.
8777 (cygwin_init_abi): New declaration.
8778 * windows-tdep.c: Split signal enumeration in two, one for
8779 Windows and one for Cygwin.
8780 (windows_gdb_signal_to_target): Only deal with signal of the
8781 Windows OS ABI.
8782 (cygwin_gdb_signal_to_target): New function.
8783 (windows_init_abi): Rename to windows_init_abi_common, don't set
8784 gdb_signal_to_target gdbarch method. Add new new function with
8785 this name.
8786 (cygwin_init_abi): New function.
8787 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8788 comment. Don't call windows_init_abi.
8789 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8790 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8791 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8792 i386_windows_init_abi_common, don't call windows_init_abi. Add
8793 a new function of this name.
8794 (i386_cygwin_init_abi): New function.
8795 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8796 OS ABI Cygwin.
8797
8798 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8799
8800 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8801 parameter.c.
8802 (dwarf2_read_gdb_index): Update.
8803
8804 2020-04-07 Kamil Rytarowski <n54@gmx.com>
8805
8806 * nbsd-tdep.c: Include "objfiles.h".
8807 (nbsd_skip_solib_resolver): New.
8808 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8809
8810 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8811
8812 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8813 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8814 with DW_LLE_base_addressx are being emitted in DWARFv5.
8815 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8816 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8817 unsigned integer.
8818
8819 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8820
8821 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8822 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8823 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8824 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8825 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8826 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8827 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8828
8829
8830 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8831
8832 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8833 (read_loclist_index): New function definition.
8834 (lookup_loclist_base): New function definition.
8835 (read_loclist_header): New function definition.
8836 (dwarf2_cu): Add loclist_base and loclist_header field.
8837 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8838 (read_full_die_1): Read the value of DW_AT_loclists_base.
8839 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8840 (read_attribute_value): Handle DW_FORM_loclistx.
8841 (skip_one_die): Handle DW_FORM_loclistx.
8842 (loclist_header): New structure declaration.
8843 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8844
8845 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8846
8847 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8848 constructor. Remove `addr` parameter from other constructor and
8849 add `per_cu` parameter.
8850 * dwarf2/read.c (create_partial_symtab): Update.
8851
8852 2020-04-07 Tom de Vries <tdevries@suse.de>
8853
8854 PR symtab/25796
8855 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8856 (partial_die_info::fixup): Inherit has_const_value.
8857
8858 2020-04-07 Tom de Vries <tdevries@suse.de>
8859
8860 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8861 symbols without address.
8862
8863 2020-04-06 Kamil Rytarowski <n54@gmx.com>
8864
8865 * nbsd-nat.h (struct thread_info): Add forward declaration.
8866 (nbsd_nat_target::thread_alive): Add.
8867 (nbsd_nat_target::thread_name): Likewise.
8868 (nbsd_nat_target::update_thread_list): Likewise.
8869 (update_thread_list::post_attach): Likewise.
8870 (post_attach::pid_to_str): Likewise.
8871 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8872 (nbsd_thread_lister): Add.
8873 (nbsd_nat_target::thread_alive): Likewise.
8874 (nbsd_nat_target::thread_name): Likewise.
8875 (nbsd_add_threads): Likewise.
8876 (update_thread_list::post_attach): Likewise.
8877 (nbsd_nat_target::update_thread_list): Likewise.
8878 (post_attach::pid_to_str): Likewise.
8879
8880 2020-04-06 Tom Tromey <tromey@adacore.com>
8881
8882 * ada-valprint.c (print_variant_part): Extract the variant field.
8883 (print_field_values): Use the field as the outer value when
8884 recursing.
8885
8886 2020-04-06 Tom Tromey <tromey@adacore.com>
8887
8888 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
8889 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
8890 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
8891 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
8892 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
8893
8894 2020-04-06 Tom Tromey <tromey@adacore.com>
8895
8896 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8897 TYPE_CODE_ERROR.
8898
8899 2020-04-06 Kamil Rytarowski <n54@gmx.com>
8900
8901 * nbsd-tdep.c: Include "gdbarch.h".
8902 Define enum with NetBSD signal numbers.
8903 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
8904 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
8905 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
8906 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
8907 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
8908 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
8909 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
8910 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8911 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
8912 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8913 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8914 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
8915
8916 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
8917
8918 PR gdb/25325
8919 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
8920
8921 2020-04-03 Tom Tromey <tromey@adacore.com>
8922
8923 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
8924 Read constant block.
8925
8926 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8927
8928 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
8929 (gdb_bfd_get_full_section_contents): New declaration.
8930 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
8931 * windows-tdep.c (is_linked_with_cygwin_dll): Use
8932 gdb_bfd_get_full_section_contents.
8933
8934 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8935
8936 * exec.c (build_section_table): Replace internal_error with
8937 gdb_assert.
8938 (section_table_xfer_memory_partial): Likewise.
8939 * mdebugread.c (parse_partial_symbols): Likewise.
8940 * psymtab.c (lookup_partial_symbol): Likewise.
8941 * utils.c (wrap_here): Likewise.
8942
8943 2020-04-02 Tom Tromey <tromey@adacore.com>
8944
8945 * f-lang.c (build_fortran_types): Use arch_type to initialize
8946 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8947
8948 2020-04-02 Tom Tromey <tromey@adacore.com>
8949
8950 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8951 of attributes.
8952
8953 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8954 Bernd Edlinger <bernd.edlinger@hotmail.de>
8955 Tom Tromey <tromey@adacore.com>
8956
8957 * buildsym.c (buildsym_compunit::record_line): Remove
8958 deduplication code.
8959
8960 2020-04-02 Tom de Vries <tdevries@suse.de>
8961
8962 PR ada/24671
8963 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8964
8965 2020-04-02 Tom de Vries <tdevries@suse.de>
8966
8967 * dwarf2/read.c (dwarf2_gdb_index_functions,
8968 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8969 NULL.
8970 * psymtab.c (psym_lookup_global_symbol_language): New function.
8971 (psym_functions): Init psym_lookup_global_symbol_language with
8972 psym_lookup_global_symbol_language.
8973 * symfile-debug.c (debug_sym_quick_functions): Init
8974 lookup_global_symbol_language with NULL.
8975 * symfile.c (set_initial_language): Remove fixme comment.
8976 * symfile.h (struct quick_symbol_functions): Add
8977 lookup_global_symbol_language.
8978 * symtab.c (find_quick_global_symbol_language): New function.
8979 (find_main_name): Use find_quick_global_symbol_language.
8980
8981 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8982
8983 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8984
8985 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8986
8987 * buildsym.c (record_line): Fix undefined behavior and preserve
8988 lines at eof.
8989
8990 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8991
8992 * buildsym.c (record_line): Fix the resizing condition.
8993
8994 2020-04-01 Tom Tromey <tom@tromey.com>
8995
8996 * value.h (value_literal_complex): Add comment.
8997 * valops.c (value_literal_complex): Refer to value.h.
8998
8999 2020-04-01 Tom Tromey <tom@tromey.com>
9000
9001 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
9002 (scalar_type): New rule, from typebase.
9003 (typebase): Use scalar_type. Recognize complex types.
9004 (field_name): Handle FLOAT_KEYWORD.
9005 (ident_tokens): Add _Complex and __complex__.
9006
9007 2020-04-01 Tom Tromey <tom@tromey.com>
9008
9009 PR exp/25299:
9010 * valarith.c (promotion_type, complex_binop): New functions.
9011 (scalar_binop): Handle complex numbers. Use promotion_type.
9012 (value_pos, value_neg, value_complement): Handle complex numbers.
9013
9014 2020-04-01 Tom Tromey <tom@tromey.com>
9015
9016 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
9017 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
9018 (parse_number): Handle complex numbers.
9019
9020 2020-04-01 Tom Tromey <tom@tromey.com>
9021
9022 * c-valprint.c (c_decorations): Change complex suffix to "i".
9023
9024 2020-04-01 Tom Tromey <tom@tromey.com>
9025
9026 * valprint.c (generic_value_print_complex): Use accessors.
9027 * value.h (value_real_part, value_imaginary_part): Declare.
9028 * valops.c (value_real_part, value_imaginary_part): New
9029 functions.
9030 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
9031
9032 2020-04-01 Tom Tromey <tom@tromey.com>
9033
9034 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
9035 (read_range_type): Update.
9036 * mdebugread.c (basic_type): Update.
9037 * go-lang.c (build_go_types): Use init_complex_type.
9038 * gdbtypes.h (struct main_type) <complex_type>: New member.
9039 (init_complex_type): Update.
9040 (arch_complex_type): Don't declare.
9041 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
9042 Make name if none given. Use alloc_type_copy. Look for cached
9043 complex type.
9044 (arch_complex_type): Remove.
9045 (gdbtypes_post_init): Use init_complex_type.
9046 * f-lang.c (build_fortran_types): Use init_complex_type.
9047 * dwarf2/read.c (read_base_type): Update.
9048 * d-lang.c (build_d_types): Use init_complex_type.
9049 * ctfread.c (read_base_type): Update.
9050
9051 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9052
9053 * infrun.c (stop_all_threads): Update assertion, plus when
9054 stopping threads, take into account that we might be trying
9055 to stop an all-stop target.
9056 (stop_waiting): Call 'stop_all_threads' if there exists a
9057 non-stop target.
9058
9059 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9060
9061 * target.h (exists_non_stop_target): New function declaration.
9062 * target.c (exists_non_stop_target): New function.
9063
9064 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
9065
9066 PR gdb/24789
9067 * eval.c (is_integral_or_integral_reference): New function.
9068 (evaluate_subexp_standard): Allow integer references in
9069 pointer arithmetic.
9070
9071 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9072
9073 * remote.c (remote_target::remote_parse_stop_reply): Remove the
9074 check for no ptid in the stop reply when the target is non-stop.
9075
9076 2020-04-01 Tom Tromey <tromey@adacore.com>
9077
9078 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
9079 "name" parameter to rvalue reference. Initialize m_name_holder.
9080 <lookup_name_info>: New overloads.
9081 <name>: Return gdb::string_view.
9082 <c_str>: New method.
9083 <make_ignore_params>: Update.
9084 <search_name_hash>: Update.
9085 <language_lookup_name>: Return const char *.
9086 <m_name>: Change type.
9087 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
9088 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
9089 (lookup_name_info::match_any): Update.
9090 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
9091 Update.
9092 * minsyms.c (linkage_name_str): Update.
9093 * language.c (default_symbol_name_matcher): Update.
9094 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
9095 Update.
9096 * ada-lang.c (ada_fold_name): Change parameter to string_view.
9097 (ada_lookup_name_info::ada_lookup_name_info): Update.
9098 (literal_symbol_name_matcher): Update.
9099
9100 2020-04-01 Tom Tromey <tromey@adacore.com>
9101
9102 * psymtab.c (psymtab_search_name): Remove function.
9103 (psym_lookup_symbol): Create search name and lookup name here.
9104 (lookup_partial_symbol): Remove "name" parameter; add
9105 lookup_name.
9106 (psym_expand_symtabs_for_function): Update.
9107
9108 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
9109
9110 PR tui/25597:
9111 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
9112
9113 2020-03-31 Tom Tromey <tromey@adacore.com>
9114
9115 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
9116 memcpy.
9117
9118 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
9119
9120 * features/riscv/32bit-csr.xml: Regenerated.
9121 * features/riscv/64bit-csr.xml: Regenerated.
9122
9123 2020-03-30 Tom Tromey <tromey@adacore.com>
9124
9125 * ada-valprint.c (print_variant_part): Update.
9126 * ada-lang.h (ada_which_variant_applies): Update.
9127 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
9128 outer_valaddr parameters; replace with "outer" value parameter.
9129 (to_fixed_variant_branch_type): Update.
9130
9131 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9132
9133 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
9134 <list>. Remove inclusion of observable.h.
9135 (PPC_DEBUG_CURRENT_VERSION): Move up define.
9136 (struct arch_lwp_info): New struct.
9137 (class ppc_linux_dreg_interface): New class.
9138 (struct ppc_linux_process_info): New struct.
9139 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
9140 <low_new_clone, low_forget_process, low_prepare_to_resume>
9141 <copy_thread_dreg_state, mark_thread_stale>
9142 <mark_debug_registers_changed, register_hw_breakpoint>
9143 <clear_hw_breakpoint, register_wp, clear_wp>
9144 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
9145 <num_memory_accesses, get_trigger_type>
9146 <create_watchpoint_request, hwdebug_point_cmp>
9147 <init_arch_lwp_info, get_arch_lwp_info>
9148 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
9149 methods.
9150 <struct ptid_hash>: New inner struct.
9151 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
9152 members.
9153 (saved_dabr_value, hwdebug_info, max_slots_number)
9154 (struct hw_break_tuple, struct thread_points, ppc_threads)
9155 (have_ptrace_hwdebug_interface)
9156 (hwdebug_find_thread_points_by_tid)
9157 (hwdebug_insert_point, hwdebug_remove_point): Remove.
9158 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
9159 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
9160 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
9161 use m_dreg_interface.
9162 (hwdebug_point_cmp): Change to...
9163 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
9164 reference arguments instead of pointers.
9165 (ppc_linux_nat_target::ranged_break_num_registers): Use
9166 m_dreg_interface.
9167 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
9168 m_dreg_interface. Call register_hw_breakpoint.
9169 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
9170 m_dreg_interface. Call clear_hw_breakpoint.
9171 (get_trigger_type): Change to...
9172 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
9173 comment.
9174 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
9175 use m_dreg_interface. Call register_hw_breakpoint.
9176 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
9177 use m_dreg_interface. Call clear_hw_breakpoint.
9178 (can_use_watchpoint_cond_accel): Change to...
9179 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
9180 method. Update comment, use m_dreg_interface and
9181 m_process_info.
9182 (calculate_dvc): Change to...
9183 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
9184 m_dreg_interface.
9185 (num_memory_accesses): Change to...
9186 (ppc_linux_nat_target::num_memory_accesses): ...this method.
9187 (check_condition): Change to...
9188 (ppc_linux_nat_target::check_condition): ...this method.
9189 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
9190 comment, use m_dreg_interface.
9191 (create_watchpoint_request): Change to...
9192 (ppc_linux_nat_target::create_watchpoint_request): ...this
9193 method. Use m_dreg_interface.
9194 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
9195 m_dreg_interface. Call register_hw_breakpoint or register_wp.
9196 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
9197 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
9198 (ppc_linux_nat_target::low_forget_process)
9199 (ppc_linux_nat_target::low_new_fork)
9200 (ppc_linux_nat_target::low_new_clone)
9201 (ppc_linux_nat_target::low_delete_thread)
9202 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
9203 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
9204 only call mark_thread_stale.
9205 (ppc_linux_thread_exit): Remove.
9206 (ppc_linux_nat_target::stopped_data_address): Change to...
9207 (ppc_linux_nat_target::low_stopped_data_address): This. Add
9208 comment, use m_dreg_interface and m_thread_hw_breakpoints.
9209 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
9210 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
9211 comment. Call low_stopped_data_address.
9212 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
9213 m_dreg_interface.
9214 (ppc_linux_nat_target::masked_watch_num_registers): Use
9215 m_dreg_interface.
9216 (ppc_linux_nat_target::copy_thread_dreg_state)
9217 (ppc_linux_nat_target::mark_thread_stale)
9218 (ppc_linux_nat_target::mark_debug_registers_changed)
9219 (ppc_linux_nat_target::register_hw_breakpoint)
9220 (ppc_linux_nat_target::clear_hw_breakpoint)
9221 (ppc_linux_nat_target::register_wp)
9222 (ppc_linux_nat_target::clear_wp)
9223 (ppc_linux_nat_target::init_arch_lwp_info)
9224 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9225 (_initialize_ppc_linux_nat): Remove observer callback.
9226
9227 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9228
9229 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9230 (ppc_linux_nat_target::auxv_parse)
9231 (ppc_linux_nat_target::read_description)
9232 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9233 Move up.
9234
9235 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9236
9237 * linux-nat.h (low_new_clone): New method.
9238 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9239
9240 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9241
9242 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9243 (dbx_expand_psymtab): ... this.
9244 (start_psymtab): Update.
9245 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9246 (mdebug_expand_psymtab): ... this.
9247 (parse_partial_symbols): Update.
9248 (new_psymtab): Update.
9249 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9250 (xcoff_expand_psymtab): ... this.
9251 (xcoff_start_psymtab): Update.
9252
9253 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9254
9255 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9256 <expand_dependencies>: ... this.
9257 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9258 (partial_symtab::expand_dependencies): ... this.
9259 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9260 Update.
9261 (dwarf2_psymtab::expand_psymtab): Update.
9262 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9263 * mdebugread.c (psymtab_to_symtab_1): Update.
9264 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9265
9266 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9267
9268 * psympriv.h (discard_psymtab): Remove.
9269 * dbxread.c (dbx_end_psymtab): Update.
9270 * xcoffread.c (xcoff_end_psymtab): Update.
9271
9272 2020-03-28 Tom Tromey <tom@tromey.com>
9273
9274 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9275 comment.
9276
9277 2020-03-28 Tom Tromey <tom@tromey.com>
9278
9279 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9280
9281 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
9282
9283 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9284
9285 2020-03-26 John Baldwin <jhb@FreeBSD.org>
9286
9287 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9288
9289 2020-03-26 Tom Tromey <tom@tromey.com>
9290
9291 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9292 (mark_common_block_symbol_computed, read_tag_string_type)
9293 (attr_to_dynamic_prop, read_subrange_type): Update.
9294 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9295 to be methods on struct attribute.
9296 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9297 (read_call_site_scope, partial_die_info::read)
9298 (partial_die_info::read, lookup_die_type, follow_die_ref):
9299 Update.
9300 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9301 from dwarf2_get_ref_die_offset.
9302 (attribute::constant_value): New method, from
9303 dwarf2_get_attr_constant_value.
9304 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9305 Declare method.
9306 <constant_value>: New method.
9307
9308 2020-03-26 Tom Tromey <tom@tromey.com>
9309
9310 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9311 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9312 (dwarf_type_encoding_name): Move to stringify.c.
9313 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9314 * dwarf2/stringify.c: New file.
9315 * dwarf2/stringify.h: New file.
9316
9317 2020-03-26 Tom Tromey <tom@tromey.com>
9318
9319 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9320 Rewrite.
9321
9322 2020-03-26 Tom Tromey <tom@tromey.com>
9323
9324 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9325 methods.
9326 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9327 (lookup_ranges_base): Likewise.
9328 (read_cutu_die_from_dwo, read_full_die_1): Update.
9329
9330 2020-03-26 Tom Tromey <tom@tromey.com>
9331
9332 * dwarf2/read.c (read_import_statement, read_file_scope)
9333 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9334 (read_lexical_block_scope, read_call_site_scope)
9335 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9336 (handle_struct_member_die, process_structure_scope)
9337 (update_enumeration_type_from_children)
9338 (process_enumeration_scope, read_array_type, read_common_block)
9339 (read_namespace, read_module, read_subroutine_type): Update.
9340 (sibling_die): Remove.
9341
9342 2020-03-26 Tom Tromey <tom@tromey.com>
9343
9344 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9345 (build_type_psymtabs_reader, read_structure_type)
9346 (read_enumeration_type, read_full_die_1): Update.
9347 (dwarf2_attr_no_follow): Move to die.h.
9348 * dwarf2/die.h (struct die_info) <attr>: New method.
9349
9350 2020-03-26 Tom Tromey <tom@tromey.com>
9351
9352 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9353 <base_address>: Now an optional.
9354 (dwarf2_find_base_address, dwarf2_rnglists_process)
9355 (dwarf2_ranges_process, fill_in_loclist_baton)
9356 (dwarf2_symbol_mark_computed): Update.
9357
9358 2020-03-26 Tom Tromey <tom@tromey.com>
9359
9360 * dwarf2/read.c (struct die_info): Move to die.h.
9361 * dwarf2/die.h: New file.
9362
9363 2020-03-26 Tom Tromey <tom@tromey.com>
9364
9365 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9366 * dwarf2/read.c
9367 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9368 Move to line-header.c.
9369 (read_checked_initial_length_and_offset, read_formatted_entries):
9370 Likewise.
9371 (dwarf_decode_line_header): Split into two.
9372 * dwarf2/line-header.c
9373 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9374 Move from read.c.
9375 (read_checked_initial_length_and_offset, read_formatted_entries):
9376 Likewise.
9377 (dwarf_decode_line_header): New function, split from read.c.
9378
9379 2020-03-26 Tom Tromey <tom@tromey.com>
9380
9381 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9382 Declare method.
9383 * dwarf2/read.c (read_attribute_value): Update.
9384 (dwarf2_per_objfile::read_line_string): Rename from
9385 read_indirect_line_string.
9386 (read_formatted_entries): Update.
9387
9388 2020-03-26 Tom Tromey <tom@tromey.com>
9389
9390 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9391 variable.
9392
9393 2020-03-26 Tom Tromey <tom@tromey.com>
9394
9395 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9396 const.
9397 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9398 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9399 parameter const.
9400
9401 2020-03-26 Tom Tromey <tom@tromey.com>
9402
9403 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9404 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9405 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9406 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9407
9408 2020-03-26 Tom Tromey <tom@tromey.com>
9409
9410 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9411 file_names_size, file_full_name, file_file_name>: Use const.
9412 <file_name_at, file_names>: Add const overload.
9413 * dwarf2/line-header.c (line_header::file_file_name)
9414 (line_header::file_full_name): Update.
9415
9416 2020-03-26 Tom Tromey <tom@tromey.com>
9417
9418 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9419 (macro_start_file, consume_improper_spaces)
9420 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9421 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9422 (dwarf_decode_macros): Move to macro.c.
9423 * dwarf2/macro.c: New file.
9424 * dwarf2/macro.h: New file.
9425 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9426
9427 2020-03-26 Tom Tromey <tom@tromey.com>
9428
9429 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9430 method.
9431 * dwarf2/section.c: New method. From
9432 read_indirect_string_at_offset_from.
9433 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9434 (read_indirect_string_at_offset_from): Move to section.c.
9435 (read_indirect_string_at_offset): Rewrite.
9436 (read_indirect_line_string_at_offset): Remove.
9437 (read_indirect_string, read_indirect_line_string)
9438 (dwarf_decode_macro_bytes): Update.
9439
9440 2020-03-26 Tom Tromey <tom@tromey.com>
9441
9442 * dwarf2/section.h (struct dwarf2_section_info)
9443 <overload_complaint>: Declare.
9444 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9445 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9446 Rename from dwarf2_section_buffer_overflow_complaint.
9447 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9448 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9449
9450 2020-03-26 Tom Tromey <tom@tromey.com>
9451
9452 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9453 Declare.
9454 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9455 Move from read.c.
9456 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9457 to section.c.
9458
9459 2020-03-26 Tom Tromey <tom@tromey.com>
9460
9461 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9462
9463 2020-03-26 Tom Tromey <tom@tromey.com>
9464
9465 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9466 "builder".
9467 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9468 parameter.
9469 (dwarf_decode_macros): Update.
9470
9471 2020-03-26 Tom Tromey <tom@tromey.com>
9472
9473 * dwarf2/read.c (read_attribute_value): Update.
9474 (read_indirect_string_from_dwz): Move to dwz.c; change into
9475 method.
9476 (dwarf_decode_macro_bytes): Update.
9477 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9478 * dwarf2/dwz.c: New file.
9479 * Makefile.in (COMMON_SFILES): Add dwz.c.
9480
9481 2020-03-26 Tom Tromey <tom@tromey.com>
9482
9483 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9484 * dwarf2/read.c: Add include.
9485 * dwarf2/index-write.c: Add include.
9486 * dwarf2/index-cache.c: Add include.
9487 * dwarf2/dwz.h: New file.
9488
9489 2020-03-25 Tom Tromey <tom@tromey.com>
9490
9491 * compile/compile-object-load.c (get_out_value_type): Mention
9492 correct symbol name in error message.
9493
9494 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
9495
9496 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9497
9498 2020-03-25 Tom de Vries <tdevries@suse.de>
9499
9500 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9501 * symmisc.c (dump_symtab_1): Print user and includes fields.
9502 (maintenance_info_symtabs): Same.
9503
9504 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9505
9506 PR gdb/25534
9507 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9508 (riscv_regcache_cooked_write): New function.
9509 (riscv_push_dummy_call): Use new function.
9510 (riscv_return_value): Likewise.
9511
9512 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9513
9514 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9515 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9516 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9517 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9518 * infrun.c (follow_fork): Likewise.
9519 (follow_fork_inferior): Likewise.
9520 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9521 * linux-nat.h (class linux_nat_target): Likewise.
9522 * remote.c (class remote_target) <follow_fork>: Likewise.
9523 (remote_target::follow_fork): Likewise.
9524 * target-delegates.c: Re-generate.
9525 * target.c (default_follow_fork): Likewise.
9526 (target_follow_fork): Likewise.
9527 * target.h (struct target_ops) <follow_fork>: Likewise.
9528 (target_follow_fork): Likewise.
9529
9530 2020-03-24 Tom de Vries <tdevries@suse.de>
9531
9532 * psymtab.c (maintenance_info_psymtabs): Print user field.
9533
9534 2020-03-20 Tom Tromey <tromey@adacore.com>
9535
9536 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9537 const.
9538 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9539 const.
9540
9541 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
9542
9543 * ptrace.m4: Don't check for ptrace declaration.
9544 * config.in: Re-generate.
9545 * configure: Re-generate.
9546 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9547 not defined.
9548
9549 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9550
9551 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9552 `PTRACE_TYPE_RET'.
9553 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9554 * sparc-nat.c (gdb_ptrace): Likewise.
9555 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9556
9557 2020-03-20 Tom Tromey <tromey@adacore.com>
9558
9559 * c-exp.y (lex_one_token): Fix assert.
9560
9561 2020-03-20 Tom Tromey <tromey@adacore.com>
9562
9563 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9564 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9565 strncpy call.
9566
9567 2020-03-20 Tom Tromey <tromey@adacore.com>
9568
9569 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9570
9571 2020-03-20 Tom Tromey <tromey@adacore.com>
9572
9573 * ada-valprint.c (print_variant_part): Remove parameters; switch
9574 to value-based API.
9575 (print_field_values): Likewise.
9576 (ada_val_print_struct_union): Likewise.
9577 (ada_value_print_1): Update.
9578
9579 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9580
9581 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9582 nbsd_nat_target instead of inf_ptrace_target.
9583 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9584 nbsd_nat_target.
9585
9586 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9587
9588 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9589 it to the ptrace call.
9590 * (store_registers): Likewise.
9591
9592 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9593
9594 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9595 it to the ptrace call.
9596 * (store_registers): Likewise.
9597
9598 2020-03-19 Luis Machado <luis.machado@linaro.org>
9599
9600 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9601 valid, fetch vg value from ptrace.
9602
9603 2020-03-19 Kamil Rytarowski <n54@gmx.com>
9604 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9605 * inf-ptrace.c: Likewise.
9606 * (gdb_ptrace): Add.
9607 * (inf_ptrace_target::resume): Update.
9608 * (inf_ptrace_target::xfer_partial): Likewise.
9609 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9610 * (inf_ptrace_peek_poke): Update.
9611
9612 2020-03-19 Kamil Rytarowski <n54@gmx.com>
9613
9614 * x86-bsd-nat.c (gdb_ptrace): New.
9615 * (x86bsd_dr_set): Add new argument `ptid'.
9616 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9617 x86bsd_dr_set_addr): Update.
9618
9619 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9620
9621 * remote.c (remote_target::process_stop_reply): Handle events for
9622 all threads differently.
9623
9624 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9625
9626 * completer.c (completion_tracker::remove_completion): Define new
9627 function.
9628 * completer.h (completion_tracker::remove_completion): Declare new
9629 function.
9630 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9631 when adding a C++ function symbol.
9632
9633 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9634
9635 * completer.c (completion_tracker::completion_hash_entry): Define
9636 new class.
9637 (advance_to_filename_complete_word_point): Call
9638 recompute_lowest_common_denominator.
9639 (completion_tracker::completion_tracker): Call discard_completions
9640 to setup the hash table.
9641 (completion_tracker::discard_completions): Allow for being called
9642 from the constructor, pass new equal function, and element deleter
9643 when constructing the hash table. Initialise new class member
9644 variables.
9645 (completion_tracker::maybe_add_completion): Remove use of
9646 m_entries_vec, and store more information into m_entries_hash.
9647 (completion_tracker::recompute_lcd_visitor): New function, most
9648 content taken from...
9649 (completion_tracker::recompute_lowest_common_denominator):
9650 ...here, this now just visits each item in the hash calling the
9651 above visitor.
9652 (completion_tracker::build_completion_result): Remove use of
9653 m_entries_vec, call recompute_lowest_common_denominator.
9654 * completer.h (completion_tracker::have_completions): Remove use
9655 of m_entries_vec.
9656 (completion_tracker::completion_hash_entry): Declare new class.
9657 (completion_tracker::recompute_lowest_common_denominator): Change
9658 function signature.
9659 (completion_tracker::recompute_lcd_visitor): Declare new function.
9660 (completion_tracker::m_entries_vec): Delete.
9661 (completion_tracker::m_entries_hash): Initialize to NULL.
9662 (completion_tracker::m_lowest_common_denominator_valid): New
9663 member variable.
9664 (completion_tracker::m_lowest_common_denominator_max_length): New
9665 member variable.
9666
9667 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9668
9669 * regformats/regdef.h: Put reg in gdb namespace.
9670
9671 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9672
9673 * i386-bsd-nat.c (gdb_ptrace): New.
9674 * (i386bsd_fetch_inferior_registers,
9675 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9676 * (i386bsd_fetch_inferior_registers,
9677 i386bsd_store_inferior_registers) Use gdb_ptrace.
9678
9679 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9680
9681 * amd64-bsd-nat.c (gdb_ptrace): New.
9682 * (amd64bsd_fetch_inferior_registers,
9683 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9684 * (amd64bsd_fetch_inferior_registers,
9685 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9686
9687 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9688
9689 * user-regs.c (user_reg::read): Rename to...
9690 (user_reg::xread): ...this.
9691 * (append_user_reg): Rename argument `read' to `xread'.
9692 * (user_reg_add_builtin): Likewise.
9693 * (user_reg_add): Likewise.
9694 * (value_of_user_reg): Likewise.
9695
9696 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9697
9698 * sparc-nat.c (gdb_ptrace): New.
9699 * sparc-nat.c (sparc_fetch_inferior_registers)
9700 (sparc_store_inferior_registers) Remove obsolete comment.
9701 * sparc-nat.c (sparc_fetch_inferior_registers)
9702 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9703 * sparc-nat.c (sparc_fetch_inferior_registers)
9704 (sparc_store_inferior_registers) Use gdb_ptrace.
9705
9706 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9707
9708 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9709 it to the ptrace call.
9710 * sh-nbsd-nat.c (store_registers): Likewise.
9711
9712 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9713
9714 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9715 nbsd_nat_target instead of inf_ptrace_target.
9716 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9717 nbsd_nat_target.
9718
9719 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9720
9721 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9722
9723 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9724
9725 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9726 <sys/sysctl.h>.
9727 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9728
9729 2020-03-17 Tom de Vries <tdevries@suse.de>
9730
9731 PR gdb/23710
9732 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9733 fields.
9734 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9735 fields.
9736 (process_imported_unit_die): Skip import of c++ CUs.
9737
9738 2020-03-16 Tom Tromey <tom@tromey.com>
9739
9740 * p-valprint.c (pascal_object_print_value): Initialize
9741 base_value.
9742
9743 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9744 Shahab Vahedi <shahab@synopsys.com>
9745
9746 * Makefile.in: Add arch/arc.o
9747 * configure.tgt: Likewise.
9748 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9749 (_initialize_arc_tdep): Don't initialize old target descriptions.
9750 (arc_read_description): New function to cache target descriptions.
9751 * arc-tdep.h (arc_read_description): Add proto type.
9752 * arch/arc.c: New file.
9753 * arch/arc.h: Likewise.
9754 * features/Makefile: Replace old target descriptions with new.
9755 * features/arc-arcompact.c: Remove.
9756 * features/arc-arcompact.xml: Likewise.
9757 * features/arc-v2.c: Likewise
9758 * features/arc-v2.xml: Likewise
9759 * features/arc/aux-arcompact.xml: New file.
9760 * features/arc/aux-v2.xml: Likewise.
9761 * features/arc/core-arcompact.xml: Likewise.
9762 * features/arc/core-v2.xml: Likewise.
9763 * features/arc/aux-arcompact.c: Generate.
9764 * features/arc/aux-v2.c: Likewise.
9765 * features/arc/core-arcompact.c: Likewise.
9766 * features/arc/core-v2.c: Likewise.
9767 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9768
9769 2020-03-16 Tom Tromey <tromey@adacore.com>
9770
9771 PR gdb/25663:
9772 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9773 putting value into bcache.
9774
9775 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9776
9777 PR gdb/21500
9778 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9779 to...
9780 (amd64_windows_init_abi_common): ... this. Don't set size of
9781 long type.
9782 (amd64_windows_init_abi): New function.
9783 (amd64_cygwin_init_abi): New function.
9784 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9785 the Cygwin OS ABI.
9786 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9787 comment.
9788
9789 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9790
9791 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9792 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9793 (pe_import_directory_entry): New struct type.
9794 (is_linked_with_cygwin_dll): New function.
9795 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9796 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9797 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9798
9799 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9800
9801 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9802 i386_cygwin_core_osabi_sniffer.
9803
9804 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9805
9806 * i386-cygwin-tdep.c: Rename to...
9807 * i386-windows-tdep.c: ... this.
9808 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9809 i386-windows-tdep.c.
9810 * configure.tgt: Likewise.
9811
9812 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9813
9814 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9815 * osabi.c (gdb_osabi_names): Add "Windows".
9816 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9817 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9818 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9819 i386_cygwin_osabi_sniffer.
9820 (_initialize_i386_cygwin_tdep): Register OS ABI
9821 GDB_OSABI_WINDOWS for i386.
9822 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9823 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9824 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9825 for x86-64.
9826 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9827 when the target matches '*-*-mingw*'.
9828
9829 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9830
9831 * defs.h (enum gdb_osabi): Move to...
9832 * osabi.h (enum gdb_osabi): ... here.
9833 * gdbarch.sh: Include osabi.h in gdbarch.h.
9834 * gdbarch.h: Re-generate.
9835
9836 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9837
9838 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9839 function.
9840 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9841
9842 2020-03-14 Tom Tromey <tom@tromey.com>
9843
9844 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9845 for C++.
9846 (c_type_print_modifier): Likewise. Add "language" parameter.
9847 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9848 (c_type_print_base_1): Update.
9849 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9850 constants.
9851 * type-stack.c (type_stack::insert): Handle tp_atomic and
9852 tp_restrict.
9853 (type_stack::follow_type_instance_flags): Likewise.
9854 (type_stack::follow_types): Likewise. Merge type-following code.
9855 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9856 (space_identifier, cv_with_space_id)
9857 (const_or_volatile_or_space_identifier_noopt)
9858 (const_or_volatile_or_space_identifier): Remove.
9859 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9860 rules.
9861 (ptr_operator, typebase): Update.
9862 (enum token_flag) <FLAG_C>: New constant.
9863 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9864 "_Atomic".
9865 (lex_one_token): Handle FLAG_C.
9866
9867 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9868
9869 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9870 it to the ptrace call.
9871 * m68k-bsd-nat.c (store_registers): Likewise.
9872
9873 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9874
9875 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9876 gdb_byte *.
9877 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9878 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9879 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9880
9881 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9882
9883 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
9884 nbsd_nat_target instead of inf_ptrace_target.
9885 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9886 nbsd_nat_target.
9887
9888 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9889
9890 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
9891 register_t.
9892
9893 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9894
9895 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9896 it to the ptrace call.
9897 * alpha-bsd-nat.c (store_registers): Likewise.
9898
9899 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9900
9901 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
9902 includes.
9903 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
9904 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
9905 fill_fpregset): Likewise.
9906
9907 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9908
9909 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
9910 nbsd_nat_target instead of inf_ptrace_target.
9911 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9912 nbsd_nat_target.
9913
9914 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9915
9916 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
9917 register_t.
9918
9919 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9920
9921 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
9922 it to the ptrace call.
9923 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
9924 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
9925 * arm-nbsd-nat.c (store_register): Likewise.
9926 * arm-nbsd-nat.c (store_regs): Likewise.
9927 * arm-nbsd-nat.c (store_fp_register): Likewise.
9928 * arm-nbsd-nat.c (store_fp_regs): Likewise.
9929
9930 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9931
9932 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
9933 nbsd_nat_target instead of inf_ptrace_target.
9934 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9935 nbsd_nat_target.
9936
9937 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9938
9939 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9940 it to the ptrace call.
9941 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9942
9943 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9944
9945 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9946 it to the ptrace call.
9947 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9948
9949 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9950
9951 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9952 gdb_byte *.
9953 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9954
9955 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9956
9957 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9958 instead of inf_ptrace_target.
9959 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9960 nbsd_nat_target.
9961
9962 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9963
9964 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9965 register_t.
9966
9967 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9968
9969 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9970 register_t.
9971
9972 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9973
9974 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9975 register_t.
9976
9977 2020-03-13 Tom Tromey <tom@tromey.com>
9978
9979 * value.h (val_print): Don't declare.
9980 * valprint.h (val_print_array_elements)
9981 (val_print_scalar_formatted, generic_val_print): Don't declare.
9982 * valprint.c (generic_val_print_array): Take a struct value.
9983 (generic_val_print_ptr, generic_val_print_memberptr)
9984 (generic_val_print_bool, generic_val_print_int)
9985 (generic_val_print_char, generic_val_print_complex)
9986 (generic_val_print): Remove.
9987 (generic_value_print): Update.
9988 (do_val_print): Remove unused parameters. Don't call
9989 la_val_print.
9990 (val_print): Remove.
9991 (common_val_print): Update. Don't call value_check_printable.
9992 (val_print_scalar_formatted, val_print_array_elements): Remove.
9993 * rust-lang.c (rust_val_print): Remove.
9994 (rust_language_defn): Update.
9995 * p-valprint.c (pascal_val_print): Remove.
9996 (pascal_value_print_inner): Update.
9997 (pascal_object_print_val_fields, pascal_object_print_val):
9998 Remove.
9999 (pascal_object_print_static_field): Update.
10000 * p-lang.h (pascal_val_print): Don't declare.
10001 * p-lang.c (pascal_language_defn): Update.
10002 * opencl-lang.c (opencl_language_defn): Update.
10003 * objc-lang.c (objc_language_defn): Update.
10004 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
10005 * m2-lang.h (m2_val_print): Don't declare.
10006 * m2-lang.c (m2_language_defn): Update.
10007 * language.h (struct language_defn) <la_val_print>: Remove.
10008 * language.c (unk_lang_value_print_inner): Rename. Change
10009 argument types.
10010 (unknown_language_defn, auto_language_defn): Update.
10011 * go-valprint.c (go_val_print): Remove.
10012 * go-lang.h (go_val_print): Don't declare.
10013 * go-lang.c (go_language_defn): Update.
10014 * f-valprint.c (f_val_print): Remove.
10015 * f-lang.h (f_value_print): Don't declare.
10016 * f-lang.c (f_language_defn): Update.
10017 * d-valprint.c (d_val_print): Remove.
10018 * d-lang.h (d_value_print): Don't declare.
10019 * d-lang.c (d_language_defn): Update.
10020 * cp-valprint.c (cp_print_value_fields)
10021 (cp_print_value_fields_rtti, cp_print_value): Remove.
10022 (cp_print_static_field): Update.
10023 * c-valprint.c (c_val_print_array, c_val_print_ptr)
10024 (c_val_print_struct, c_val_print_union, c_val_print_int)
10025 (c_val_print_memberptr, c_val_print): Remove.
10026 * c-lang.h (c_val_print_array, cp_print_value_fields)
10027 (cp_print_value_fields_rtti): Don't declare.
10028 * c-lang.c (c_language_defn, cplus_language_defn)
10029 (asm_language_defn, minimal_language_defn): Update.
10030 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
10031 (ada_val_print_enum): Take a struct value.
10032 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
10033 (ada_val_print): Remove.
10034 (ada_value_print_1): Update.
10035 (printable_val_type): Remove.
10036 * ada-lang.h (ada_val_print): Don't declare.
10037 * ada-lang.c (ada_language_defn): Update.
10038
10039 2020-03-13 Tom Tromey <tom@tromey.com>
10040
10041 * valprint.c (do_val_print): Update.
10042 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
10043 a struct value.
10044 (value_to_value_object_no_release): Declare.
10045 * python/py-value.c (value_to_value_object_no_release): New
10046 function.
10047 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
10048 struct value.
10049 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
10050 function.
10051 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
10052 a struct value.
10053 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
10054 Declare.
10055 (gdbscm_apply_val_pretty_printer): Take a struct value.
10056 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
10057 value.
10058 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
10059 value.
10060 * extension-priv.h (struct extension_language_ops)
10061 <apply_val_pretty_printer>: Take a struct value.
10062 * cp-valprint.c (cp_print_value): Create a struct value.
10063 (cp_print_value): Update.
10064
10065 2020-03-13 Tom Tromey <tom@tromey.com>
10066
10067 * ada-valprint.c (print_field_values): Call common_val_print.
10068
10069 2020-03-13 Tom Tromey <tom@tromey.com>
10070
10071 * ada-valprint.c (val_print_packed_array_elements): Remove
10072 bitoffset and val parameters. Call common_val_print.
10073 (ada_val_print_string): Remove offset, address, and original_value
10074 parameters.
10075 (ada_val_print_array): Update.
10076 (ada_value_print_array): New function.
10077 (ada_value_print_1): Call it.
10078
10079 2020-03-13 Tom Tromey <tom@tromey.com>
10080
10081 * ada-valprint.c (ada_value_print): Use common_val_print.
10082
10083 2020-03-13 Tom Tromey <tom@tromey.com>
10084
10085 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
10086
10087 2020-03-13 Tom Tromey <tom@tromey.com>
10088
10089 * ada-valprint.c (ada_value_print_num): New function.
10090 (ada_value_print_1): Use it.
10091
10092 2020-03-13 Tom Tromey <tom@tromey.com>
10093
10094 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
10095
10096 2020-03-13 Tom Tromey <tom@tromey.com>
10097
10098 * ada-valprint.c (ada_value_print_ptr): New function.
10099 (ada_value_print_1): Use it.
10100
10101 2020-03-13 Tom Tromey <tom@tromey.com>
10102
10103 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
10104 call common_val_print.
10105 (ada_val_print_1): Update.
10106 (ada_value_print_1): New function.
10107 (ada_value_print_inner): Rewrite.
10108
10109 2020-03-13 Tom Tromey <tom@tromey.com>
10110
10111 * cp-valprint.c (cp_print_value_fields): Update.
10112 (cp_print_value): New function.
10113
10114 2020-03-13 Tom Tromey <tom@tromey.com>
10115
10116 * m2-valprint.c (m2_value_print_inner): Use
10117 cp_print_value_fields.
10118 * cp-valprint.c (cp_print_value_fields): New function.
10119 * c-valprint.c (c_value_print_struct): New function.
10120 (c_value_print_inner): Use c_value_print_struct.
10121 * c-lang.h (cp_print_value_fields): Declare.
10122
10123 2020-03-13 Tom Tromey <tom@tromey.com>
10124
10125 * c-valprint.c (c_value_print_array): New function.
10126 (c_value_print_inner): Use it.
10127
10128 2020-03-13 Tom Tromey <tom@tromey.com>
10129
10130 * c-valprint.c (c_value_print_memberptr): New function.
10131 (c_value_print_inner): Use it.
10132
10133 2020-03-13 Tom Tromey <tom@tromey.com>
10134
10135 * c-valprint.c (c_value_print_int): New function.
10136 (c_value_print_inner): Use it.
10137
10138 2020-03-13 Tom Tromey <tom@tromey.com>
10139
10140 * c-valprint.c (c_value_print_ptr): New function.
10141 (c_value_print_inner): Use it.
10142
10143 2020-03-13 Tom Tromey <tom@tromey.com>
10144
10145 * c-valprint.c (c_value_print_inner): Rewrite.
10146
10147 2020-03-13 Tom Tromey <tom@tromey.com>
10148
10149 * valprint.c (generic_value_print_complex): New function.
10150 (generic_value_print): Use it.
10151
10152 2020-03-13 Tom Tromey <tom@tromey.com>
10153
10154 * valprint.c (generic_val_print_float): Don't call
10155 val_print_scalar_formatted.
10156 (generic_val_print, generic_value_print): Update.
10157
10158 2020-03-13 Tom Tromey <tom@tromey.com>
10159
10160 * valprint.c (generic_value_print_char): New function
10161 (generic_value_print): Use it.
10162
10163 2020-03-13 Tom Tromey <tom@tromey.com>
10164
10165 * valprint.c (generic_value_print_int): New function.
10166 (generic_value_print): Use it.
10167
10168 2020-03-13 Tom Tromey <tom@tromey.com>
10169
10170 * valprint.c (generic_value_print_bool): New function.
10171 (generic_value_print): Use it.
10172
10173 2020-03-13 Tom Tromey <tom@tromey.com>
10174
10175 * valprint.c (generic_val_print_func): Simplify.
10176 (generic_val_print, generic_value_print): Update.
10177
10178 2020-03-13 Tom Tromey <tom@tromey.com>
10179
10180 * valprint.c (generic_val_print_flags): Remove.
10181 (generic_val_print, generic_value_print): Update.
10182 (val_print_type_code_flags): Add original_value parameter.
10183
10184 2020-03-13 Tom Tromey <tom@tromey.com>
10185
10186 * valprint.c (generic_val_print): Update.
10187 (generic_value_print): Update.
10188 * valprint.c (generic_val_print_enum): Don't call
10189 val_print_scalar_formatted.
10190
10191 2020-03-13 Tom Tromey <tom@tromey.com>
10192
10193 * valprint.c (generic_value_print): Call generic_value_print_ptr.
10194 * valprint.c (generic_value_print_ptr): New function.
10195
10196 2020-03-13 Tom Tromey <tom@tromey.com>
10197
10198 * valprint.c (generic_value_print): Rewrite.
10199
10200 2020-03-13 Tom Tromey <tom@tromey.com>
10201
10202 * p-valprint.c (pascal_object_print_value_fields)
10203 (pascal_object_print_value): New functions.
10204
10205 2020-03-13 Tom Tromey <tom@tromey.com>
10206
10207 * p-valprint.c (pascal_value_print_inner): Rewrite.
10208
10209 2020-03-13 Tom Tromey <tom@tromey.com>
10210
10211 * f-valprint.c (f_value_print_innner): Rewrite.
10212
10213 2020-03-13 Tom Tromey <tom@tromey.com>
10214
10215 * m2-valprint.c (m2_print_unbounded_array): New overload.
10216 (m2_print_unbounded_array): Update.
10217 (m2_print_array_contents): Take a struct value.
10218 (m2_value_print_inner): Rewrite.
10219
10220 2020-03-13 Tom Tromey <tom@tromey.com>
10221
10222 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10223 (d_value_print_inner): New function.
10224 * d-lang.h (d_value_print_inner): Declare.
10225 * d-lang.c (d_language_defn): Use d_value_print_inner.
10226
10227 2020-03-13 Tom Tromey <tom@tromey.com>
10228
10229 * go-valprint.c (go_value_print_inner): New function.
10230 * go-lang.h (go_value_print_inner): Declare.
10231 * go-lang.c (go_language_defn): Use go_value_print_inner.
10232
10233 2020-03-13 Tom Tromey <tom@tromey.com>
10234
10235 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10236 API.
10237 (rust_val_print): Rewrite.
10238 (rust_value_print_inner): New function, from rust_val_print.
10239 (rust_language_defn): Use rust_value_print_inner.
10240
10241 2020-03-13 Tom Tromey <tom@tromey.com>
10242
10243 * ada-valprint.c (ada_value_print_inner): New function.
10244 * ada-lang.h (ada_value_print_inner): Declare.
10245 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10246
10247 2020-03-13 Tom Tromey <tom@tromey.com>
10248
10249 * f-valprint.c (f_value_print_innner): New function.
10250 * f-lang.h (f_value_print_innner): Declare.
10251 * f-lang.c (f_language_defn): Use f_value_print_innner.
10252
10253 2020-03-13 Tom Tromey <tom@tromey.com>
10254
10255 * p-valprint.c (pascal_value_print_inner): New function.
10256 * p-lang.h (pascal_value_print_inner): Declare.
10257 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10258
10259 2020-03-13 Tom Tromey <tom@tromey.com>
10260
10261 * m2-valprint.c (m2_value_print_inner): New function.
10262 * m2-lang.h (m2_value_print_inner): Declare.
10263 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10264
10265 2020-03-13 Tom Tromey <tom@tromey.com>
10266
10267 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10268 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10269 * c-valprint.c (c_value_print_inner): New function.
10270 * c-lang.h (c_value_print_inner): Declare.
10271 * c-lang.c (c_language_defn, cplus_language_defn)
10272 (asm_language_defn, minimal_language_defn): Use
10273 c_value_print_inner.
10274
10275 2020-03-13 Tom Tromey <tom@tromey.com>
10276
10277 * p-valprint.c (pascal_object_print_value_fields): Now static.
10278 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10279
10280 2020-03-13 Tom Tromey <tom@tromey.com>
10281
10282 * c-valprint.c (c_val_print_array): Simplify.
10283
10284 2020-03-13 Tom Tromey <tom@tromey.com>
10285
10286 * valprint.c (value_print_array_elements): New function.
10287 * valprint.h (value_print_array_elements): Declare.
10288
10289 2020-03-13 Tom Tromey <tom@tromey.com>
10290
10291 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10292 * mips-tdep.c (mips_print_register): Use
10293 value_print_scalar_formatted.
10294
10295 2020-03-13 Tom Tromey <tom@tromey.com>
10296
10297 * valprint.h (value_print_scalar_formatted): Declare.
10298 * valprint.c (value_print_scalar_formatted): New function.
10299
10300 2020-03-13 Tom Tromey <tom@tromey.com>
10301
10302 * valprint.h (generic_value_print): Declare.
10303 * valprint.c (generic_value_print): New function.
10304
10305 2020-03-13 Tom Tromey <tom@tromey.com>
10306
10307 * valprint.c (do_val_print): Call la_value_print_inner, if
10308 available.
10309 * rust-lang.c (rust_language_defn): Update.
10310 * p-lang.c (pascal_language_defn): Update.
10311 * opencl-lang.c (opencl_language_defn): Update.
10312 * objc-lang.c (objc_language_defn): Update.
10313 * m2-lang.c (m2_language_defn): Update.
10314 * language.h (struct language_defn) <la_value_print_inner>: New
10315 member.
10316 * language.c (unknown_language_defn, auto_language_defn): Update.
10317 * go-lang.c (go_language_defn): Update.
10318 * f-lang.c (f_language_defn): Update.
10319 * d-lang.c (d_language_defn): Update.
10320 * c-lang.c (c_language_defn, cplus_language_defn)
10321 (asm_language_defn, minimal_language_defn): Update.
10322 * ada-lang.c (ada_language_defn): Update.
10323
10324 2020-03-13 Tom Tromey <tom@tromey.com>
10325
10326 * c-valprint.c (c_value_print): Use common_val_print.
10327
10328 2020-03-13 Tom Tromey <tom@tromey.com>
10329
10330 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10331
10332 2020-03-13 Tom Tromey <tom@tromey.com>
10333
10334 * f-valprint.c (f77_print_array_1, f_val_print): Use
10335 common_val_print.
10336
10337 2020-03-13 Tom Tromey <tom@tromey.com>
10338
10339 * riscv-tdep.c (riscv_print_one_register_info): Use
10340 common_val_print.
10341
10342 2020-03-13 Tom Tromey <tom@tromey.com>
10343
10344 * mi/mi-main.c (output_register): Use common_val_print.
10345
10346 2020-03-13 Tom Tromey <tom@tromey.com>
10347
10348 * infcmd.c (default_print_one_register_info): Use
10349 common_val_print.
10350
10351 2020-03-13 Tom Tromey <tom@tromey.com>
10352
10353 * valprint.h (common_val_print_checked): Declare.
10354 * valprint.c (common_val_print_checked): New function.
10355 * stack.c (print_frame_arg): Use common_val_print_checked.
10356
10357 2020-03-13 Tom Tromey <tom@tromey.com>
10358
10359 * valprint.c (do_val_print): New function, from val_print.
10360 (val_print): Use do_val_print.
10361 (common_val_print): Use do_val_print.
10362
10363 2020-03-13 Tom Tromey <tom@tromey.com>
10364
10365 * valprint.c (value_print): Use scoped_value_mark.
10366
10367 2020-03-13 Tom de Vries <tdevries@suse.de>
10368
10369 PR symtab/25646
10370 * psymtab.c (partial_symtab::partial_symtab): Don't set
10371 globals_offset and statics_offset. Push element onto
10372 current_global_psymbols and current_static_psymbols stacks.
10373 (concat): New function.
10374 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10375 element from current_global_psymbols and current_static_psymbols
10376 stacks. Concat popped elements to global_psymbols and
10377 static_symbols.
10378 (add_psymbol_to_list): Use current_global_psymbols and
10379 current_static_psymbols stacks.
10380 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10381 current_static_psymbols fields.
10382
10383 2020-03-12 Christian Biesinger <cbiesinger@google.com>
10384
10385 * corelow.c (sniff_core_bfd): Remove.
10386 (class core_target) <m_core_vec>: Remove.
10387 (core_target::core_target): Update.
10388 (core_file_fns): Remove.
10389 (deprecated_add_core_fns): Remove.
10390 (default_core_sniffer): Remove.
10391 (sniff_core_bfd): Remove.
10392 (default_check_format): Remove.
10393 (gdb_check_format): Remove.
10394 (core_target_open): Update.
10395 (core_target::get_core_register_section): Update.
10396 (get_core_registers_cb): Update.
10397 (core_target::fetch_registers): Update.
10398 * gdbcore.h (struct core_fns): Remove.
10399 (deprecated_add_core_fns): Remove.
10400 (default_core_sniffer): Remove.
10401 (default_check_format): Remove.
10402
10403 2020-03-12 Tom Tromey <tom@tromey.com>
10404
10405 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10406 CORE_ADDR.
10407 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10408
10409 2020-03-12 Tom Tromey <tom@tromey.com>
10410
10411 * remote.c (remote_target::download_tracepoint)
10412 (remote_target::enable_tracepoint)
10413 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10414 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10415 sprintf_vma.
10416
10417 2020-03-12 Tom Tromey <tom@tromey.com>
10418
10419 * symfile-mem.c: Update CORE_ADDR size assert.
10420
10421 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10422
10423 * selftest.m4: Move to gdbsupport/.
10424 * acinclude.m4: Update path to selftest.m4.
10425
10426 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10427
10428 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10429 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10430 gdbarch-selfselftests.c and selftest-arch.c.
10431 (SUBDIR_UNITTESTS_OBS): Rename to...
10432 (SELFTESTS_OBS): ... this.
10433 (COMMON_SFILES): Remove disasm-selftests.c and
10434 gdbarch-selftests.c.
10435 * configure.ac: Don't add selftest-arch.{c,o} to
10436 CONFIG_{SRCS,OBS}.
10437 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10438 preprocessor conditions.
10439
10440 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10441
10442 * configure.ac: Don't source bfd/development.sh.
10443 * selftest.m4: Modify comment.
10444 * configure: Re-generate.
10445
10446 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10447
10448 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10449 not "true" or "false".
10450 * configure: Re-generate.
10451
10452 2020-03-12 Christian Biesinger <cbiesinger@google.com>
10453
10454 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10455 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10456 renamed to arm_nbsd_supply_gregset.
10457 (fetch_register): Update to call arm_nbsd_supply_gregset.
10458 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10459 (arm_netbsd_nat_target::fetch_registers): Update.
10460 (fetch_elfcore_registers): Removed.
10461 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10462 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10463 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10464 not require NetBSD system headers.
10465 (arm_nbsd_regset): New struct.
10466 (arm_nbsd_iterate_over_regset_sections): New function.
10467 (arm_netbsd_init_abi_common): Updated to call
10468 set_gdbarch_iterate_over_regset_sections.
10469 * arm-nbsd-tdep.h: New file.
10470
10471 2020-03-11 Kevin Buettner <kevinb@redhat.com>
10472
10473 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10474 recursion.
10475
10476 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
10477
10478 * configure: Re-generate.
10479
10480 2020-03-11 Tom Tromey <tromey@adacore.com>
10481
10482 * ada-typeprint.c (print_choices): Fix comment.
10483
10484 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10485
10486 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10487 previous item in the list, when the list has no items.
10488
10489 2020-03-11 Tom de Vries <tdevries@suse.de>
10490
10491 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10492 PROP_LOCLIST handling code.
10493
10494 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10495
10496 * buildsym-legacy.c (record_line): Pass extra parameter to
10497 record_line.
10498 * buildsym.c (buildsym_compunit::record_line): Take an extra
10499 parameter, reduce duplication in the line table, and record the
10500 is_stmt flag in the line table.
10501 * buildsym.h (buildsym_compunit::record_line): Add extra
10502 parameter.
10503 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10504 non-statement lines.
10505 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10506 this to the symtab builder.
10507 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10508 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10509 through to dwarf_record_line_1.
10510 * infrun.c (process_event_stop_test): When stepping, don't stop at
10511 a non-statement instruction, and only refresh the step info when
10512 we land in the middle of a line's range. Also add an extra
10513 comment.
10514 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10515 field.
10516 * record-btrace.c (btrace_find_line_range): Only record lines
10517 marked as is-statement.
10518 * stack.c (frame_show_address): Show the frame address if we are
10519 in a non-statement sal.
10520 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10521 (maintenance_print_one_line_table): Print a header for the is_stmt
10522 column, and include is_stmt information in the output.
10523 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10524 preference to non-statements.
10525 (find_pcs_for_symtab_line): Prefer is-statement entries.
10526 (find_line_common): Likewise.
10527 * symtab.h (struct linetable_entry): Add is_stmt field.
10528 (struct symtab_and_line): Likewise.
10529 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10530 arranging the line table.
10531
10532 2020-03-07 Tom de Vries <tdevries@suse.de>
10533
10534 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10535 DIE.
10536
10537 2020-03-07 Tom Tromey <tom@tromey.com>
10538
10539 * valops.c (value_literal_complex): Remove obsolete comment.
10540 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10541 comment.
10542
10543 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10544
10545 * infrun.h: Forward-declare thread_info.
10546 (set_step_info): Add thread_info parameter, add doc.
10547 * infrun.c (set_step_info): Add thread_info parameter, move doc
10548 to header.
10549 * infrun.c (process_event_stop_test): Pass thread to
10550 set_step_info call.
10551 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10552 set_step_info.
10553 (prepare_one_step): Add thread_info parameter, pass it to
10554 set_step_frame and prepare_one_step (recursive) call.
10555 (step_1): Pass thread to prepare_one_step call.
10556 (step_command_fsm::should_stop): Pass thread to
10557 prepare_one_step.
10558 (until_next_fsm): Pass thread to set_step_frame call.
10559 (finish_command): Pass thread to set_step_info call.
10560
10561 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
10562
10563 * windows-tdep.c (windows_solib_create_inferior_hook):
10564 Check if inferior is running.
10565
10566 2020-03-06 Tom de Vries <tdevries@suse.de>
10567
10568 * NEWS: Fix "the the".
10569 * ctfread.c: Same.
10570
10571 2020-03-06 Tom de Vries <tdevries@suse.de>
10572
10573 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10574
10575 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10576
10577 * .dir-locals.el: Add a comment referencing the other copies of
10578 this file.
10579
10580 2020-03-05 John Baldwin <jhb@FreeBSD.org>
10581
10582 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10583 psargs.
10584
10585 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10586
10587 * .gitattributes: New file.
10588
10589 2020-03-04 Tom Tromey <tom@tromey.com>
10590
10591 * symmisc.c (print_symbol_bcache_statistics)
10592 (print_objfile_statistics): Update.
10593 * symfile.c (allocate_symtab): Use intern.
10594 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10595 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10596 macro_cache>: Remove.
10597 <string_cache>: New member.
10598 (struct objfile) <intern>: New methods.
10599 * elfread.c (elf_symtab_read): Use intern.
10600 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10601 (dwarf2_compute_name, dwarf2_physname)
10602 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10603 names.
10604 (guess_partial_die_structure_name): Update.
10605 (partial_die_info::fixup): Intern name.
10606 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10607 name.
10608 (dwarf2_name): Intern name. Update.
10609 * buildsym.c (buildsym_compunit::get_macro_table): Use
10610 string_cache.
10611
10612 2020-03-04 Tom Tromey <tom@tromey.com>
10613
10614 * jit.c (bfd_open_from_target_memory): Make "target" const.
10615 * corefile.c (gnutarget): Now const.
10616 * gdbcore.h (gnutarget): Now const.
10617
10618 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
10619
10620 * NEWS: Mention support for WOW64 processes.
10621 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10622 (amd64_windows_segment_register_p): Remove static.
10623 (_initialize_amd64_windows_nat): Update.
10624 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10625 * i386-windows-nat.c (context_offset): Update.
10626 (i386_mappings): Rename and remove static.
10627 (i386_windows_segment_register_p): Remove static.
10628 (_initialize_i386_windows_nat): Update.
10629 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10630 (STATUS_WX86_SINGLE_STEP): New macro.
10631 (EnumProcessModulesEx): New macro.
10632 (Wow64SuspendThread): New macro.
10633 (Wow64GetThreadContext): New macro.
10634 (Wow64SetThreadContext): New macro.
10635 (Wow64GetThreadSelectorEntry): New macro.
10636 (windows_set_context_register_offsets): Add static.
10637 (windows_set_segment_register_p): Likewise.
10638 (windows_add_thread): Adapt for WOW64 processes.
10639 (windows_fetch_one_register): Likewise.
10640 (windows_nat_target::fetch_registers): Likewise.
10641 (windows_store_one_register): Likewise.
10642 (display_selector): Likewise.
10643 (display_selectors): Likewise.
10644 (handle_exception): Likewise.
10645 (windows_continue): Likewise.
10646 (windows_nat_target::resume): Likewise.
10647 (windows_add_all_dlls): Likewise.
10648 (do_initial_windows_stuff): Likewise.
10649 (windows_nat_target::attach): Likewise.
10650 (windows_get_exec_module_filename): Likewise.
10651 (windows_nat_target::create_inferior): Likewise.
10652 (windows_xfer_siginfo): Likewise.
10653 (_initialize_loadable): Initialize Wow64SuspendThread,
10654 Wow64GetThreadContext, Wow64SetThreadContext,
10655 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10656 * windows-nat.h (windows_set_context_register_offsets):
10657 Remove declaration.
10658 (windows_set_segment_register_p): Likewise.
10659 (i386_windows_segment_register_p): Add declaration.
10660 (amd64_windows_segment_register_p): Likewise.
10661
10662 2020-03-04 Luis Machado <luis.machado@linaro.org>
10663
10664 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10665 in "info registers" for AArch64/ARM.
10666
10667 The change caused "info registers" to not print GPR's.
10668
10669 gdb/ChangeLog:
10670
10671 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10672
10673 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10674 when reg->group is empty and reggroup is not.
10675
10676 2020-03-03 Tom Tromey <tromey@adacore.com>
10677
10678 * dwarf2/frame.c (struct dwarf2_frame_cache)
10679 <checked_tailcall_bottom, entry_cfa_sp_offset,
10680 entry_cfa_sp_offset_p>: Remove members.
10681 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10682 (dwarf2_frame_prev_register): Don't call
10683 dwarf2_tailcall_sniffer_first.
10684 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10685 * frame-unwind.c (add_unwinder): New fuction.
10686 (frame_unwind_init): Use it. Add tailcall unwinder.
10687
10688 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10689 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10690
10691 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10692 value should be printed as true.
10693
10694 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
10695
10696 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10697 (windows_init_abi): Set and use windows_so_ops.
10698
10699 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10700
10701 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10702 when verifying if dealing with a convenience variable.
10703
10704 2020-03-03 Luis Machado <luis.machado@linaro.org>
10705
10706 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10707
10708 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10709
10710 * infrun.c (gdbarch_supports_displaced_stepping): New.
10711 (use_displaced_stepping): Break up conditions in smaller pieces.
10712 Use gdbarch_supports_displaced_stepping.
10713 (displaced_step_prepare_throw): Use
10714 gdbarch_supports_displaced_stepping.
10715
10716 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10717
10718 * NEWS: Mention new behaviour of the history filename.
10719 * top.c (write_history_p): Add comment.
10720 (show_write_history_p): Add header comment, give a different
10721 message when history writing is on, but the history filename is
10722 empty.
10723 (history_filename): Add comment.
10724 (history_filename_empty): New function.
10725 (show_history_filename): Add header comment, give a different
10726 message when the filename is empty.
10727 (init_history): Compare history_filename against nullptr, and only
10728 read history if the filename is not empty.
10729 (set_history_filename): Add header comment, and only make
10730 non-empty filenames absolute.
10731 (init_main): Make the filename argument to 'set history filename'
10732 optional.
10733
10734 2020-03-02 Christian Biesinger <cbiesinger@google.com>
10735
10736 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10737 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10738 (fetch_fp_register): Update.
10739 (fetch_fp_regs): Update.
10740 (store_fp_register): Update.
10741 (store_fp_regs): Update.
10742 (arm_netbsd_nat_target::read_description): New function.
10743 (fetch_elfcore_registers): Update.
10744
10745 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10746
10747 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10748 general_thread if the stop reply is missing a thread-id.
10749 (remote_target::process_stop_reply): Use the first non-exited
10750 thread if the target didn't pass a thread-id.
10751 * infrun.c (do_target_wait): Move call to
10752 switch_to_inferior_no_thread to ....
10753 (do_target_wait_1): ... here.
10754
10755 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10756
10757 * debuginfod-support.c: Include defs.h first.
10758
10759 2020-02-28 Tom de Vries <tdevries@suse.de>
10760
10761 * symfile.c (set_initial_language): Use default language for lookup.
10762
10763 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
10764
10765 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10766 reader variable, pass `this` to read_cutu_die_from_dwo.
10767
10768 2020-02-27 Aaron Merey <amerey@redhat.com>
10769
10770 * source.c (open_source_file): Check for nullptr when computing
10771 srcpath.
10772
10773 2020-02-27 Tom Tromey <tromey@adacore.com>
10774
10775 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10776 member.
10777 (dwarf2_add_field): Don't update nfields.
10778 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10779
10780 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10781
10782 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10783 abs.
10784
10785 2020-02-26 Tom Tromey <tom@tromey.com>
10786
10787 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10788 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10789 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10790 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10791 per_cu_data.
10792
10793 2020-02-26 Tom Tromey <tom@tromey.com>
10794
10795 * dwarf2/index-write.c (psym_index_map): Change type.
10796 (add_address_entry_worker, write_one_signatured_type)
10797 (recursively_count_psymbols, recursively_write_psymbols)
10798 (class debug_names, psyms_seen_size, write_gdbindex)
10799 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10800
10801 2020-02-26 Aaron Merey <amerey@redhat.com>
10802
10803 * Makefile.in: Handle optional debuginfod support.
10804 * NEWS: Update.
10805 * README: Add --with-debuginfod summary.
10806 * config.in: Regenerate.
10807 * configure: Regenerate.
10808 * configure.ac: Handle optional debuginfod support.
10809 * debuginfod-support.c: debuginfod helper functions.
10810 * debuginfod-support.h: Ditto.
10811 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10812 summary.
10813 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10814 when a dwz file cannot be found.
10815 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10816 debuginfo file cannot be found.
10817 * source.c (open_source_file): Query debuginfod servers when a
10818 source file cannot be found.
10819 * top.c (print_gdb_configuration): Include
10820 --{with,without}-debuginfod in the output.
10821
10822 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10823
10824 * thread.c (thr_try_catch_cmd): Print thread name.
10825
10826 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
10827
10828 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10829 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10830 dwarf2_fetch_die_type_sect_off): Move to...
10831 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10832 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10833 dwarf2_fetch_die_type_sect_off): ... here.
10834 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10835 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10836 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10837
10838 2020-02-26 Tom de Vries <tdevries@suse.de>
10839
10840 PR gdb/25603
10841 * symfile.c (set_initial_language): Exit-early if
10842 language_mode == language_mode_manual.
10843
10844 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10845
10846 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10847 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10848 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10849
10850 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10851
10852 * gdbtypes.c (create_array_type_with_stride): Handle negative
10853 array strides.
10854 * valarith.c (value_subscripted_rvalue): Likewise.
10855
10856 2020-02-25 Luis Machado <luis.machado@linaro.org>
10857
10858 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10859
10860 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10861
10862 * loc.h (dwarf2_get_die_type): Move to...
10863 * read.h (dwarf2_get_die_type): ... here.
10864 * read.c (dwarf2_get_die_type): Move doc to header.
10865
10866 2020-02-25 Joel Brobecker <brobecker@adacore.com>
10867
10868 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10869 'gnulib/Makefile.in' to the list.
10870
10871 2020-02-24 Tom Tromey <tom@tromey.com>
10872
10873 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10874 Remove.
10875 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10876 XOBNEWVEC.
10877
10878 2020-02-24 Tom Tromey <tom@tromey.com>
10879
10880 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10881 New method.
10882 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10883 (dw2_do_instantiate_symtab, dw2_get_file_names)
10884 (build_type_psymtab_dependencies, load_full_type_unit): Update.
10885
10886 2020-02-24 Tom Tromey <tom@tromey.com>
10887
10888 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
10889 make_scoped_restore.
10890 (dwarf2_psymtab::read_symtab): Don't clear
10891 reading_partial_symbols.
10892
10893 2020-02-24 Tom de Vries <tdevries@suse.de>
10894
10895 PR gdb/25592
10896 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10897
10898 2020-02-24 Tom de Vries <tdevries@suse.de>
10899
10900 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
10901 commands layout next/prev/regs.
10902
10903 2020-02-22 Tom Tromey <tom@tromey.com>
10904
10905 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
10906 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
10907
10908 2020-02-22 Tom Tromey <tom@tromey.com>
10909
10910 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
10911
10912 2020-02-22 Tom Tromey <tom@tromey.com>
10913
10914 * tui/tui-win.c (_initialize_tui_win): Add usage text.
10915 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
10916 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
10917 * tui/tui.c (_initialize_tui): Add usage text.
10918
10919 2020-02-22 Tom Tromey <tom@tromey.com>
10920
10921 * tui/tui-win.c (tui_set_focus_command)
10922 (tui_set_win_height_command): Use error_no_arg.
10923 (_initialize_tui_win): Update help text.
10924 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
10925
10926 2020-02-22 Tom Tromey <tom@tromey.com>
10927
10928 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
10929 * tui/tui-disasm.h (struct tui_disasm_window)
10930 <display_start_addr>: Declare.
10931 * tui/tui-source.h (struct tui_source_window)
10932 <display_start_addr>: Declare.
10933 * tui/tui-winsource.h (struct tui_source_window_base)
10934 <show_source_line, display_start_addr>: New methods.
10935 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
10936 Rename and move to protected section.
10937 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
10938 (tui_source_window_base::do_erase_source_content): Update.
10939 (tui_source_window_base::show_source_line): Now a method.
10940 (tui_source_window_base::show_source_content)
10941 (tui_source_window_base::tui_source_window_base)
10942 (tui_source_window_base::rerender)
10943 (tui_source_window_base::refill)
10944 (tui_source_window_base::do_scroll_horizontal)
10945 (tui_source_window_base::set_is_exec_point_at)
10946 (tui_source_window_base::update_breakpoint_info)
10947 (tui_source_window_base::update_exec_info): Update.
10948 * tui/tui-source.c (tui_source_window::set_contents)
10949 (tui_source_window::showing_source_p)
10950 (tui_source_window::do_scroll_vertical)
10951 (tui_source_window::location_matches_p)
10952 (tui_source_window::line_is_displayed): Update.
10953 (tui_source_window::display_start_addr): New method.
10954 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10955 (tui_disasm_window::do_scroll_vertical)
10956 (tui_disasm_window::location_matches_p): Update.
10957 (tui_disasm_window::display_start_addr): New method.
10958
10959 2020-02-22 Tom Tromey <tom@tromey.com>
10960
10961 * NEWS: Add entry for gdb.register_window_type.
10962 * tui/tui-layout.h (window_factory): New typedef.
10963 (tui_register_window): Declare.
10964 * tui/tui-layout.c (saved_tui_windows): New global.
10965 (tui_apply_current_layout): Use it.
10966 (tui_register_window): New function.
10967 * python/python.c (do_start_initialization): Call
10968 gdbpy_initialize_tui.
10969 (python_GdbMethods): Add "register_window_type" function.
10970 * python/python-internal.h (gdbpy_register_tui_window)
10971 (gdbpy_initialize_tui): Declare.
10972 * python/py-tui.c: New file.
10973 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10974
10975 2020-02-22 Tom Tromey <tom@tromey.com>
10976
10977 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10978
10979 2020-02-22 Tom Tromey <tom@tromey.com>
10980
10981 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10982 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10983 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10984 (tui_set_win_focus_to): Move from tui-win.c.
10985
10986 2020-02-22 Tom Tromey <tom@tromey.com>
10987
10988 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10989 functions.
10990 (known_window_types): New global.
10991 (tui_get_window_by_name): Reimplement.
10992 (initialize_known_windows): New function.
10993 (validate_window_name): Rewrite.
10994 (_initialize_tui_layout): Call initialize_known_windows.
10995
10996 2020-02-22 Tom Tromey <tom@tromey.com>
10997
10998 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10999 Remove constants.
11000 * tui/tui-winsource.h (struct tui_source_window_base)
11001 <tui_source_window_base>: Remove parameter.
11002 * tui/tui-winsource.c
11003 (tui_source_window_base::tui_source_window_base): Remove
11004 parameter.
11005 (tui_source_window_base::refill): Update.
11006 * tui/tui-stack.h (struct tui_locator_window)
11007 <tui_locator_window>: Update.
11008 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
11009 Default the constructor.
11010 * tui/tui-regs.h (struct tui_data_item_window)
11011 <tui_data_item_window>: Default the constructor.
11012 (struct tui_data_window) <tui_data_window>: Likewise.
11013 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
11014 Default the constructor.
11015 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
11016 Default the constructor.
11017 <type>: Remove.
11018 (struct tui_win_info) <tui_win_info>: Default the constructor.
11019 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
11020 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
11021 Default the constructor.
11022
11023 2020-02-22 Tom Tromey <tom@tromey.com>
11024
11025 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
11026 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
11027 * tui/tui-win.c (tui_resize_all): Don't call
11028 tui_delete_invisible_windows.
11029 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
11030 done.
11031 (tui_set_layout): Update.
11032 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
11033 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
11034 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
11035
11036 2020-02-22 Tom Tromey <tom@tromey.com>
11037
11038 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
11039 correctly.
11040
11041 2020-02-22 Tom Tromey <tom@tromey.com>
11042
11043 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
11044
11045 2020-02-22 Tom Tromey <tom@tromey.com>
11046
11047 * tui/tui-winsource.h (struct tui_source_window_iterator)
11048 <inner_iterator>: New etytypedef.
11049 <tui_source_window_iterator>: Take "end" parameter.
11050 <tui_source_window_iterator>: Take iterator.
11051 <operator*, advance>: Update.
11052 <m_iter>: Change type.
11053 <m_end>: New field.
11054 (struct tui_source_windows) <begin, end>: Update.
11055 * tui/tui-layout.c (tui_windows): New global.
11056 (tui_apply_current_layout): Clear tui_windows.
11057 (tui_layout_window::apply): Update tui_windows.
11058 * tui/tui-data.h (tui_windows): Declare.
11059 (all_tui_windows): Now inline function.
11060 (class tui_window_iterator, struct all_tui_windows): Remove.
11061
11062 2020-02-22 Tom Tromey <tom@tromey.com>
11063
11064 PR tui/17850:
11065 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
11066 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
11067 "height" argument.
11068 (class tui_layout_window) <get_sizes>: Likewise.
11069 (class tui_layout_split) <tui_layout_split>: Add "vertical"
11070 argument.
11071 <get_sizes>: Add "height" argument.
11072 <m_vertical>: New field.
11073 * tui/tui-layout.c (tui_layout_split::clone): Update.
11074 (tui_layout_split::get_sizes): Add "height" argument.
11075 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
11076 (tui_new_layout_command): Parse "-horizontal".
11077 (_initialize_tui_layout): Update help string.
11078 (tui_layout_split::specification): Add "-horizontal" when needed.
11079 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
11080 argument.
11081 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
11082 New methods.
11083
11084 2020-02-22 Tom Tromey <tom@tromey.com>
11085
11086 * tui/tui-layout.h (enum tui_adjust_result): New.
11087 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
11088 (class tui_layout_window) <adjust_size>: Return
11089 tui_adjust_result. Rewrite.
11090 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
11091 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
11092
11093 2020-02-22 Tom Tromey <tom@tromey.com>
11094
11095 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
11096 parameter and return types.
11097 (class tui_layout_base) <specification>: Add "depth".
11098 (class tui_layout_window) <specification>: Add "depth".
11099 (class tui_layout_split) <specification>: Add "depth".
11100 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
11101 and return types.
11102 (tui_new_layout_command): Parse sub-layouts.
11103 (_initialize_tui_layout): Update help string.
11104 (tui_layout_window::specification): Add "depth".
11105 (add_layout_command): Update.
11106
11107 2020-02-22 Tom Tromey <tom@tromey.com>
11108
11109 * NEWS: Add "tui new-layout" item.
11110 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
11111 Add new-layout command to help text.
11112 (validate_window_name): New function.
11113 (tui_new_layout_command): New function.
11114 (_initialize_tui_layout): Register "new-layout".
11115 (tui_layout_window::specification): New method.
11116 (tui_layout_window::specification): New method.
11117 * tui/tui-layout.h (class tui_layout_base) <specification>: New
11118 method.
11119 (class tui_layout_window) <specification>: New method.
11120 (class tui_layout_split) <specification>: New method.
11121
11122 2020-02-22 Tom Tromey <tom@tromey.com>
11123
11124 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
11125 * tui/tui-win.c (window_name_completer): Update comment.
11126 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
11127 Declare method.
11128 (class tui_layout_window) <replace_window>: Likewise.
11129 (class tui_layout_split) <replace_window>: Likewise.
11130 (tui_set_layout): Don't declare.
11131 (tui_set_initial_layout): Declare function.
11132 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
11133 (asm_regs_layout): New globals.
11134 (tui_current_layout, show_layout): Remove.
11135 (tui_set_layout, tui_add_win_to_layout): Rewrite.
11136 (find_layout, tui_apply_layout): New function.
11137 (layout_completer): Remove.
11138 (tui_next_layout): Reimplement.
11139 (tui_next_layout_command): New function.
11140 (tui_set_initial_layout, tui_prev_layout_command): New functions.
11141 (tui_regs_layout): Reimplement.
11142 (tui_regs_layout_command): New function.
11143 (extract_display_start_addr): Rewrite.
11144 (next_layout, prev_layout): Remove.
11145 (tui_layout_window::replace_window): New method.
11146 (tui_layout_split::replace_window): New method.
11147 (destroy_layout): New function.
11148 (layout_list): New global.
11149 (add_layout_command): New function.
11150 (initialize_layouts): Update.
11151 (tui_layout_command): New function.
11152 (_initialize_tui_layout): Install "layout" commands.
11153 * tui/tui-data.h (enum tui_layout_type): Remove.
11154 (tui_current_layout): Don't declare.
11155
11156 2020-02-22 Tom Tromey <tom@tromey.com>
11157
11158 * tui/tui-regs.c (tui_reg_layout): Remove.
11159 (tui_reg_command): Use tui_regs_layout.
11160 * tui/tui-layout.h (tui_reg_command): Declare.
11161 * tui/tui-layout.c (tui_reg_command): New function.
11162
11163 2020-02-22 Tom Tromey <tom@tromey.com>
11164
11165 * tui/tui.c (tui_rl_delete_other_windows): Call
11166 tui_remove_some_windows.
11167 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
11168 Declare method.
11169 (class tui_layout_window) <remove_windows>: New method.
11170 (class tui_layout_split) <remove_windows>: Declare.
11171 (tui_remove_some_windows): Declare.
11172 * tui/tui-layout.c (tui_remove_some_windows): New function.
11173 (tui_layout_split::remove_windows): New method.
11174
11175 2020-02-22 Tom Tromey <tom@tromey.com>
11176
11177 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
11178 * tui/tui-layout.h (tui_next_layout): Declare.
11179 * tui/tui-layout.c (tui_next_layout): New function.
11180
11181 2020-02-22 Tom Tromey <tom@tromey.com>
11182
11183 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
11184 correct coordinates.
11185
11186 2020-02-22 Tom Tromey <tom@tromey.com>
11187
11188 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
11189 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
11190 DATA_WIN case.
11191
11192 2020-02-22 Tom Tromey <tom@tromey.com>
11193
11194 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
11195 TUI_DISASM_WIN, not tui_win_list.
11196
11197 2020-02-22 Tom Tromey <tom@tromey.com>
11198
11199 * valprint.c (generic_val_print_enum_1)
11200 (val_print_type_code_flags): Style member names.
11201 * rust-lang.c (val_print_struct, rust_print_enum)
11202 (rust_print_struct_def, rust_internal_print_type): Style member
11203 names.
11204 * p-valprint.c (pascal_object_print_value_fields): Style member
11205 names. Only call fprintf_symbol_filtered for static members.
11206 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
11207 * f-valprint.c (f_val_print): Style member names.
11208 * f-typeprint.c (f_type_print_base): Style member names.
11209 * cp-valprint.c (cp_print_value_fields): Style member names. Only
11210 call fprintf_symbol_filtered for static members.
11211 (cp_print_class_member): Style member names.
11212 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
11213 member names.
11214 * ada-valprint.c (ada_print_scalar): Style enum names.
11215 (ada_val_print_enum): Likewise.
11216 * ada-typeprint.c (print_enum_type): Style enum names.
11217
11218 2020-02-21 Tom Tromey <tom@tromey.com>
11219
11220 * psympriv.h (struct partial_symtab): Update comment.
11221
11222 2020-02-21 Tom Tromey <tromey@adacore.com>
11223
11224 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11225 type is CORE_ADDR.
11226
11227 2020-02-21 Tom de Vries <tdevries@suse.de>
11228
11229 PR gdb/25534
11230 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11231 if dependencies[i]->user != NULL.
11232
11233 2020-02-21 Ali Tamur <tamur@google.com>
11234
11235 * dwarf2/read.c (dwarf2_name): Add null check.
11236
11237 2020-02-20 Tom Tromey <tom@tromey.com>
11238
11239 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11240 ">=", in binary search.
11241 (dwarf2_find_containing_comp_unit): New overload.
11242 (run_test): New self-test.
11243 (_initialize_dwarf2_read): Register new test.
11244
11245 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
11246
11247 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11248 * riscv-tdep.h: Likewise.
11249 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11250 rv32-only CSR.
11251 * features/riscv/64bit-csr.xml: Regenerated.
11252
11253 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11254 Tom Tromey <tom@tromey.com>
11255
11256 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11257 of 'fputc_unfiltered'.
11258 (putchar_unfiltered): Call 'fputc_unfiltered'.
11259 (fputc_unfiltered): Call 'fputs_unfiltered'.
11260
11261 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11262
11263 * config.in: Regenerate.
11264 * configure: Regenerate.
11265 * configure.ac: Add --with-python-libdir option.
11266 * main.c: Use WITH_PYTHON_LIBDIR.
11267
11268 2020-02-19 Tom Tromey <tom@tromey.com>
11269
11270 * symtab.c (general_symbol_info::compute_and_set_names): Use
11271 obstack_strndup. Simplify call to symbol_set_demangled_name.
11272
11273 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
11274
11275 * dwarf2/read.c (allocate_signatured_type_table,
11276 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11277 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11278 Remove objfile parameter, update all callers.
11279
11280 2020-02-19 Doug Evans <dje@google.com>
11281
11282 PR rust/25535
11283 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11284 rust_enum_variant calculation.
11285
11286 2020-02-19 Tom Tromey <tromey@adacore.com>
11287
11288 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11289
11290 2020-02-19 Tom Tromey <tromey@adacore.com>
11291
11292 * ada-lang.c (cache_symbol): Use obstack_strdup.
11293
11294 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11295
11296 * configure: Regenerate.
11297
11298 2020-02-19 Tom Tromey <tromey@adacore.com>
11299
11300 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11301 NULL check.
11302
11303 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
11304
11305 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11306
11307 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11308
11309 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11310 if GDBSERVER is not defined.
11311 (riscv_tdesc_cache): Likewise, also store const target_desc.
11312 (STATIC_IN_GDB): Define.
11313 (riscv_create_target_description): Update declaration with
11314 STATIC_IN_GDB.
11315 (riscv_lookup_target_description): New function, only define if
11316 GDBSERVER is not defined.
11317 * arch/riscv.h (riscv_create_target_description): Declare only
11318 when GDBSERVER is defined.
11319 (riscv_lookup_target_description): New declaration when GDBSERVER
11320 is not defined.
11321 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11322 (riscv_linux_read_features): ...this, and return
11323 riscv_gdbarch_features instead of target_desc.
11324 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11325 (riscv_linux_read_description): Rename to...
11326 (riscv_linux_read_features): ...this.
11327 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11328 Update to use riscv_gdbarch_features and
11329 riscv_lookup_target_description.
11330 * riscv-tdep.c (riscv_find_default_target_description): Use
11331 riscv_lookup_target_description instead of
11332 riscv_create_target_description.
11333
11334 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11335
11336 * valprint.c (generic_val_print_enum_1): When printing a flag
11337 enum with value 0 and there is no enumerator with value 0, print
11338 just "0" instead of "(unknown: 0x0)".
11339
11340 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11341
11342 * valprint.c (generic_val_print_enum_1): Print unknown part of
11343 flag enum in hex.
11344
11345 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11346
11347 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11348 flag enums to contain duplicate enumerators.
11349 * valprint.c (generic_val_print_enum_1): Update comment.
11350
11351 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11352
11353 * dwarf2/read.c: Include "count-one-bits.h".
11354 (update_enumeration_type_from_children): If an enumerator has
11355 multiple bits set, don't treat the enumeration as a "flag enum".
11356 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11357 of flag enums have 0 or 1 bit set.
11358
11359 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11360
11361 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11362 conversion.
11363 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11364 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11365 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11366 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11367 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11368
11369 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11370
11371 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11372
11373 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11374
11375 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11376 displaced_step_closure_up.
11377 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11378 (struct displaced_step_closure_up):
11379 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11380 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11381 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11382 Likewise.
11383 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11384 * gdbarch.c, gdbarch.h: Re-generate.
11385 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11386 displaced_step_closure_up.
11387 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11388 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11389 * infrun.h (displaced_step_closure_up): New type alias.
11390 (struct displaced_step_inferior_state) <step_closure>: Change
11391 type to displaced_step_closure_up.
11392 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11393 displaced_step_closure_up.
11394 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11395
11396 2020-02-14 Tom Tromey <tom@tromey.com>
11397
11398 * minidebug.c (gnu_debug_key): New global.
11399 (find_separate_debug_file_in_section): Use it.
11400
11401 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11402
11403 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11404 std::unique_ptr.
11405 * gdbarch.c: Re-generate.
11406 * gdbarch.h: Re-generate.
11407 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11408 change.
11409 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11410 type to std::unique_ptr.
11411 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11412 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11413 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11414 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11415 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11416 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11417 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11418 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11419 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11420
11421 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11422
11423 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11424 std::unique_ptr.
11425 (displaced_step_clear): Rename to...
11426 (displaced_step_reset): ... this. Just call displaced->reset ().
11427 (displaced_step_clear_cleanup): Rename to...
11428 (displaced_step_reset_cleanup): ... this.
11429 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11430 (displaced_step_fixup): Likewise.
11431 (resume_1): Likewise.
11432 (handle_inferior_event): Restore child's memory before calling
11433 displaced_step_fixup on the parent.
11434 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11435 to std::unique_ptr.
11436 <step_closure>: Change type to std::unique_ptr.
11437
11438 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11439
11440 * arm-tdep.c: Include count-one-bits.h.
11441 (cleanup_block_store_pc): Use count_one_bits.
11442 (cleanup_block_load_pc): Use count_one_bits.
11443 (arm_copy_block_xfer): Use count_one_bits.
11444 (thumb2_copy_block_xfer): Use count_one_bits.
11445 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11446 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11447 (thumb_get_next_pcs_raw): Use count_one_bits.
11448 (arm_get_next_pcs_raw): Use count_one_bits_l.
11449 * arch/arm.c (bitcount): Remove.
11450 * arch/arm.h (bitcount): Remove.
11451
11452 2020-02-14 Tom Tromey <tromey@adacore.com>
11453
11454 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11455 Update.
11456 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11457 * dwarf2/loc.c (call_site_find_chain_1): Return
11458 unique_xmalloc_ptr.
11459 (call_site_find_chain): Likewise.
11460
11461 2020-02-14 Richard Biener <rguenther@suse.de>
11462
11463 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11464 on expression with division operators.
11465
11466 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11467
11468 * MAINTAINERS (Write After Approval): Adding myself.
11469
11470 2020-02-12 Tom Tromey <tom@tromey.com>
11471
11472 * event-loop.c (event_data, gdb_event, event_handler_func):
11473 Remove.
11474
11475 2020-02-12 Tom Tromey <tom@tromey.com>
11476
11477 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11478 (dwarf2_frame_objfile_data): Add comment.
11479 (find_comp_unit, set_comp_unit): New functions.
11480 (dwarf2_frame_find_fde): Use find_comp_unit.
11481 (dwarf2_build_frame_info): Use set_comp_unit.
11482
11483 2020-02-12 Tom Tromey <tom@tromey.com>
11484
11485 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11486 (comp_unit): Don't initialize objfile.
11487 (execute_cfa_program): Add text_offset parameter.
11488 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11489 (dwarf2_frame_cache): Update.
11490 (dwarf2_build_frame_info): Don't set "objfile" member.
11491
11492 2020-02-12 Tom Tromey <tom@tromey.com>
11493
11494 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11495 (decode_frame_entry): Likewise.
11496 (dwarf2_build_frame_info): Update.
11497
11498 2020-02-12 Tom Tromey <tom@tromey.com>
11499
11500 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11501 (decode_frame_entry_1): Use the comp_unit obstack.
11502
11503 2020-02-12 Tom Tromey <tom@tromey.com>
11504
11505 * dwarf2/frame.c (struct comp_unit): Add initializers and
11506 constructor.
11507 (dwarf2_frame_objfile_data): Store a comp_unit.
11508 (dwarf2_frame_find_fde): Update.
11509 (dwarf2_build_frame_info): Use "new".
11510
11511 2020-02-12 Tom Tromey <tom@tromey.com>
11512
11513 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11514 (dwarf2_fde_table): Typedef for std::vector.
11515 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11516 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11517 (decode_frame_entry): Update.
11518 (dwarf2_build_frame_info): Use "new".
11519
11520 2020-02-12 Christian Biesinger <cbiesinger@google.com>
11521
11522 * arm-tdep.c (arm_gdbarch_init): Update.
11523 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11524 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11525 have_neon, is_m>: Change to bool.
11526
11527 2020-02-12 Christian Biesinger <cbiesinger@google.com>
11528
11529 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11530
11531 2020-02-12 Tom Tromey <tom@tromey.com>
11532
11533 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11534
11535 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
11536
11537 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11538 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11539
11540 2020-02-11 Tom Tromey <tom@tromey.com>
11541
11542 * psymtab.h: Update comment.
11543
11544 2020-02-11 Tom Tromey <tom@tromey.com>
11545
11546 * gdb_obstack.h (struct auto_obstack): Use
11547 DISABLE_COPY_AND_ASSIGN.
11548
11549 2020-02-11 Tom Tromey <tom@tromey.com>
11550
11551 * dwarf2/frame.h (struct objfile): Don't forward declare.
11552
11553 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11554
11555 * cris-tdep.c (cris_supply_gregset): Change signature to match
11556 what struct regset expects.
11557 (cris_regset): New struct.
11558 (fetch_core_registers): Remove.
11559 (cris_iterate_over_regset_sections): New function.
11560 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11561 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11562
11563 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11564
11565 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11566 registers.
11567
11568 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11569
11570 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11571
11572 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11573
11574 * configure: Re-generate.
11575
11576 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11577
11578 * configure: Re-generate.
11579
11580 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11581
11582 * acinclude: Update warning.m4 path.
11583 * warning.m4: Move to gdbsupport.
11584
11585 2020-02-11 Tom Tromey <tromey@adacore.com>
11586
11587 * remote.c (remote_console_output): Update.
11588 * printcmd.c (printf_command): Update.
11589 * event-loop.c (gdb_wait_for_event): Update.
11590 * linux-nat.c (sigchld_handler): Update.
11591 * remote-sim.c (gdb_os_write_stdout): Update.
11592 (gdb_os_flush_stdout): Update.
11593 (gdb_os_flush_stderr): Update.
11594 (gdb_os_write_stderr): Update.
11595 * exceptions.c (print_exception): Update.
11596 * remote-fileio.c (remote_fileio_func_read): Update.
11597 (remote_fileio_func_write): Update.
11598 * tui/tui.c (tui_enable): Update.
11599 * tui/tui-interp.c (tui_interp::init): Update.
11600 * utils.c (init_page_info): Update.
11601 (putchar_unfiltered, fputc_unfiltered): Update.
11602 (gdb_flush): Update.
11603 (emit_style_escape): Update.
11604 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11605 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11606 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11607 (stderr_file::write): Update.
11608 (stderr_file::puts): Update.
11609 * ui-file.h (ui_file_isatty, ui_file_write)
11610 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11611 (ui_file_puts): Don't declare.
11612
11613 2020-02-10 Tom de Vries <tdevries@suse.de>
11614
11615 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11616 sentinel to char *.
11617
11618 2020-02-09 Tom de Vries <tdevries@suse.de>
11619
11620 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11621 filename if it matches "<artificial>".
11622
11623 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
11624
11625 * windows-tdep.c (struct enum_value_name): New struct.
11626 (create_enum): New function.
11627 (windows_get_siginfo_type): Create and use enum types.
11628
11629 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
11630
11631 * NEWS: Mention $_siginfo support for Windows.
11632 * windows-nat.c (handle_exception): Set siginfo_er.
11633 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11634 (windows_xfer_siginfo): New function.
11635 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11636 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11637 (init_windows_gdbarch_data): New function.
11638 (get_windows_gdbarch_data): New function.
11639 (windows_get_siginfo_type): New function.
11640 (windows_init_abi): Register windows_get_siginfo_type.
11641 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11642
11643 2020-02-08 Tom Tromey <tom@tromey.com>
11644
11645 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11646 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11647 <keep>: Declare method.
11648 <m_keep>: Remove member.
11649 <~cutu_reader>: Remove.
11650 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11651 (cutu_reader::cutu_reader): Update.
11652 (cutu_reader::keep): Rename from ~cutu_reader.
11653 (process_psymtab_comp_unit, build_type_psymtabs_1)
11654 (process_skeletonless_type_unit, load_partial_comp_unit)
11655 (load_full_comp_unit, dwarf2_read_addr_index)
11656 (read_signatured_type): Update.
11657
11658 2020-02-08 Tom Tromey <tom@tromey.com>
11659
11660 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11661 "want_partial_unit" parameter.
11662 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11663 Inline check for DW_TAG_partial_unit.
11664 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11665
11666 2020-02-08 Tom Tromey <tom@tromey.com>
11667
11668 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11669 read.c.
11670 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11671 read.c.
11672
11673 2020-02-08 Tom Tromey <tom@tromey.com>
11674
11675 * dwarf2/read.c (read_address): Move to comp-unit.c.
11676 (dwarf2_rnglists_process, dwarf2_ranges_process)
11677 (read_attribute_value, dwarf_decode_lines_1)
11678 (var_decode_location, decode_locdesc): Update.
11679 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11680 read.c. Remove "cu" parameter.
11681 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11682 method.
11683
11684 2020-02-08 Tom Tromey <tom@tromey.com>
11685
11686 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11687 (read_indirect_line_string): Update.
11688 * dwarf2/comp-unit.c (read_offset): Remove.
11689 (read_comp_unit_head): Update.
11690 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11691 method.
11692 (read_offset): Don't declare.
11693
11694 2020-02-08 Tom Tromey <tom@tromey.com>
11695
11696 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11697 * dwarf2/read.c (struct comp_unit_head): Move to
11698 dwarf2/comp-unit.h.
11699 (enum class rcuh_kind): Move to comp-unit.h.
11700 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11701 (read_comp_unit_head, error_check_comp_unit_head)
11702 (read_and_check_comp_unit_head): Move to comp-unit.c.
11703 (read_offset, dwarf_unit_type_name): Likewise.
11704 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11705 (cutu_reader::cutu_reader, read_call_site_scope)
11706 (find_partial_die, follow_die_offset): Update.
11707 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11708
11709 2020-02-08 Tom Tromey <tom@tromey.com>
11710
11711 * dwarf2/read.c (read_offset_1): Move to leb.c.
11712 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11713 (dwarf_decode_macro_bytes): Update.
11714 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11715 * dwarf2/leb.h (read_offset): Declare.
11716
11717 2020-02-08 Tom Tromey <tom@tromey.com>
11718
11719 * dwarf2/read.c (dwarf2_section_size): Remove.
11720 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11721 Update.
11722 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11723
11724 2020-02-08 Tom Tromey <tom@tromey.com>
11725
11726 * dwarf2/read.c (read_initial_length): Move to leb.c.
11727 * dwarf2/leb.h (read_initial_length): Declare.
11728 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11729 handle_nonstd parameter.
11730 * dwarf2/frame.c (read_initial_length): Remove.
11731 (decode_frame_entry_1): Update.
11732
11733 2020-02-08 Tom Tromey <tom@tromey.com>
11734
11735 * dwarf2/loc.c (dwarf2_find_location_expression)
11736 (dwarf_evaluate_loc_desc::get_tls_address)
11737 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11738 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11739 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11740 (dwarf2_compile_property_to_c)
11741 (dwarf2_loc_desc_get_symbol_read_needs)
11742 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11743 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11744 (loclist_describe_location, loclist_tracepoint_var_ref)
11745 (loclist_generate_c_location): Update.
11746 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11747 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11748 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11749 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11750 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11751 (dwarf2_per_cu_data::addr_size)
11752 (dwarf2_per_cu_data::ref_addr_size)
11753 (dwarf2_per_cu_data::text_offset)
11754 (dwarf2_per_cu_data::addr_type): Now methods.
11755 (per_cu_header_read_in): Make per_cu "const".
11756 (dwarf2_version): Remove.
11757 (dwarf2_per_cu_data::int_type): Now a method.
11758 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11759 (set_die_type, read_array_type, read_subrange_index_type)
11760 (read_tag_string_type, read_subrange_type): Update.
11761 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11762 offset_size, ref_addr_size, text_offset, addr_type, version,
11763 objfile, int_type, addr_sized_int_type>: Declare methods.
11764
11765 2020-02-08 Tom Tromey <tom@tromey.com>
11766
11767 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11768 Move earlier.
11769
11770 2020-02-08 Tom Tromey <tom@tromey.com>
11771
11772 * dwarf2/read.h (dwarf_line_debug): Declare.
11773 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11774 * dwarf2/read.c: Move line_header code to new files.
11775 (dwarf_line_debug): No longer static.
11776 * dwarf2/line-header.c: New file.
11777 * dwarf2/line-header.h: New file.
11778
11779 2020-02-08 Tom Tromey <tom@tromey.com>
11780
11781 * dwarf2/read.c (struct line_header) <file_full_name,
11782 file_file_name>: Return unique_xmalloc_ptr.
11783 (line_header::file_file_name): Update.
11784 (line_header::file_full_name): Update.
11785 (dw2_get_file_names_reader): Update.
11786 (macro_start_file): Update.
11787
11788 2020-02-08 Tom Tromey <tom@tromey.com>
11789
11790 * dwarf2/read.c (struct line_header) <file_full_name,
11791 file_file_name>: Declare methods.
11792 (dw2_get_file_names_reader): Update.
11793 (file_file_name): Now a method.
11794 (file_full_name): Likewise.
11795 (macro_start_file): Update.
11796
11797 2020-02-08 Tom Tromey <tom@tromey.com>
11798
11799 * dwarf2/read.c (dwarf_always_disassemble)
11800 (show_dwarf_always_disassemble): Move to loc.c.
11801 (_initialize_dwarf2_read): Move "always-disassemble" registration
11802 to loc.c.
11803 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11804 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11805 static.
11806 (show_dwarf_always_disassemble): Move from read.c.
11807 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11808
11809 2020-02-08 Tom Tromey <tom@tromey.com>
11810
11811 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11812 (create_quick_file_names_table): Return htab_up.
11813 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11814 Update.
11815 * dwarf2/read.h (struct dwarf2_per_objfile)
11816 <quick_file_names_table>: Now htab_up.
11817
11818 2020-02-08 Tom Tromey <tom@tromey.com>
11819
11820 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11821
11822 2020-02-08 Tom Tromey <tom@tromey.com>
11823
11824 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11825 Rewrite.
11826 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11827 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11828 (abbrev_table::abbrev_table): No longer inline.
11829 (ABBREV_HASH_SIZE): Remove.
11830 (abbrev_table::m_abbrevs): Now an htab_up.
11831
11832 2020-02-08 Tom Tromey <tom@tromey.com>
11833
11834 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11835 (cutu_reader): Update.
11836 (build_type_psymtabs_1): Update.
11837 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11838 (abbrev_table::alloc_abbrev): Update.
11839 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11840 (abbrev_table::read): New static method, renamed from
11841 abbrev_table_read_table.
11842 (abbrev_table::alloc_abbrev)
11843 (abbrev_table::add_abbrev): Now private.
11844 (abbrev_table::abbrev_table): Now private.
11845 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11846
11847 2020-02-08 Tom Tromey <tom@tromey.com>
11848
11849 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11850 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11851 htab_up.
11852
11853 2020-02-08 Tom Tromey <tom@tromey.com>
11854
11855 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11856 htab_up.
11857 (lookup_dwo_unit_in_dwp): Update.
11858 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11859 on obstack.
11860
11861 2020-02-08 Tom Tromey <tom@tromey.com>
11862
11863 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11864 obstack.
11865
11866 2020-02-08 Tom Tromey <tom@tromey.com>
11867
11868 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11869 line_header_hash.
11870 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11871 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11872 Change type to htab_up.
11873
11874 2020-02-08 Tom Tromey <tom@tromey.com>
11875
11876 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11877 htab_up. Don't allocate on obstack.
11878 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11879 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11880 Change type to htab_up.
11881
11882 2020-02-08 Tom Tromey <tom@tromey.com>
11883
11884 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
11885 Change type to htab_up.
11886 * dwarf2/read.c (create_signatured_type_table_from_index)
11887 (create_signatured_type_table_from_debug_names)
11888 (create_all_type_units, add_type_unit)
11889 (lookup_dwo_signatured_type, lookup_signatured_type)
11890 (process_skeletonless_type_unit): Update.
11891 (create_debug_type_hash_table, create_debug_types_hash_table):
11892 Change type of types_htab.
11893 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11894 htab_up. Don't allocate on obstack.
11895 (create_cus_hash_table): Change type of cus_htab parameter.
11896 (struct dwo_file) <cus, tus>: Now htab_up.
11897 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11898 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
11899 (queue_and_load_all_dwo_tus): Update.
11900 * dwarf2/index-write.c (write_gdbindex): Update.
11901 (write_debug_names): Update.
11902
11903 2020-02-08 Tom Tromey <tom@tromey.com>
11904
11905 * dwarf2/read.h (struct dwarf2_queue_item): Move from
11906 dwarf2/read.c. Remove "next" member. Add constructor ntad
11907 destructor.
11908 (struct dwarf2_per_objfile) <queue>: New member.
11909 * dwarf2/read.c (struct dwarf2_queue_item): Move to
11910 dwarf2/read.h.
11911 (dwarf2_queue, dwarf2_queue_tail): Remove.
11912 (class dwarf2_queue_guard): Add parameter to constructor. Use
11913 DISABLE_COPY_AND_ASSIGN.
11914 <m_per_objfile>: New member.
11915 <~dwarf2_queue_guard>: Rewrite.
11916 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
11917 Update.
11918 (~dwarf2_queue_item): New.
11919
11920 2020-02-08 Tom Tromey <tom@tromey.com>
11921
11922 * dwarf2/read.c (struct die_info) <has_children>: New member.
11923 (dw2_get_file_names_reader): Remove has_children.
11924 (dw2_get_file_names): Update.
11925 (read_cutu_die_from_dwo): Remove has_children.
11926 (cutu_reader::init_tu_and_read_dwo_dies)
11927 (cutu_reader::cutu_reader): Update.
11928 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
11929 Remove has_children.
11930 (build_type_psymtabs_1, process_skeletonless_type_unit)
11931 (load_partial_comp_unit, load_full_comp_unit): Update.
11932 (create_dwo_cu_reader): Remove has_children.
11933 (create_cus_hash_table, read_die_and_children): Update.
11934 (read_full_die_1,read_full_die): Remove has_children.
11935 (read_signatured_type): Update.
11936 (class cutu_reader) <has_children>: Remove.
11937
11938 2020-02-08 Tom Tromey <tom@tromey.com>
11939
11940 * dwarf2/expr.c: Rename from dwarf2expr.c.
11941 * dwarf2/expr.h: Rename from dwarf2expr.h.
11942 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11943 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11944 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11945 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11946 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11947 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11948 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11949 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11950 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11951 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11952 * dwarf2/loc.c: Rename from dwarf2loc.c.
11953 * dwarf2/loc.h: Rename from dwarf2loc.h.
11954 * dwarf2/read.c: Rename from dwarf2read.c.
11955 * dwarf2/read.h: Rename from dwarf2read.h.
11956 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11957 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11958 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11959 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11960 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11961 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11962 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11963 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11964 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11965 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11966 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11967 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11968 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11969 Update.
11970 * Makefile.in (COMMON_SFILES): Update.
11971 (HFILES_NO_SRCDIR): Update.
11972
11973 2020-02-08 Tom Tromey <tom@tromey.com>
11974
11975 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11976 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11977
11978 2020-02-08 Tom Tromey <tom@tromey.com>
11979
11980 * dwarf2read.h (struct die_info): Don't declare.
11981
11982 2020-02-08 Tom Tromey <tom@tromey.com>
11983
11984 * dwarf2read.h (die_info_ptr): Remove typedef.
11985
11986 2020-02-08 Tom Tromey <tom@tromey.com>
11987
11988 * dwarf2read.c (read_call_site_scope)
11989 (handle_data_member_location, dwarf2_add_member_fn)
11990 (mark_common_block_symbol_computed, read_common_block)
11991 (attr_to_dynamic_prop, partial_die_info::read)
11992 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11993 (dwarf2_symbol_mark_computed, set_die_type): Update.
11994 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11995 method.
11996 (attr_form_is_block): Don't declare.
11997 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11998
11999 2020-02-08 Tom Tromey <tom@tromey.com>
12000
12001 * dwarf2read.c (dwarf2_find_base_address, )
12002 (read_call_site_scope, rust_containing_type)
12003 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
12004 (handle_data_member_location, dwarf2_add_member_fn)
12005 (get_alignment, read_structure_type, process_structure_scope)
12006 (mark_common_block_symbol_computed, read_common_block)
12007 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
12008 (partial_die_info::read, read_attribute_value, new_symbol)
12009 (lookup_die_type, dwarf2_get_ref_die_offset)
12010 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
12011 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
12012 (dwarf2_symbol_mark_computed): Update.
12013 * dwarf2/attribute.h (struct attribute) <value_as_address,
12014 form_is_section_offset, form_is_constant, form_is_ref>: Declare
12015 methods.
12016 (value_as_address, attr_form_is_section_offset)
12017 (attr_form_is_constant, attr_form_is_ref): Don't declare.
12018 * dwarf2/attribute.c (attribute::value_as_address)
12019 (attribute::form_is_section_offset, attribute::form_is_constant)
12020 (attribute::form_is_ref): Now methods.
12021
12022 2020-02-08 Tom Tromey <tom@tromey.com>
12023
12024 * dwarf2read.c (struct attribute, DW_STRING)
12025 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
12026 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
12027 (attr_form_is_block, attr_form_is_section_offset)
12028 (attr_form_is_constant, attr_form_is_ref): Move.
12029 * dwarf2/attribute.h: New file.
12030 * dwarf2/attribute.c: New file, from dwarf2read.c.
12031 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
12032
12033 2020-02-08 Tom Tromey <tom@tromey.com>
12034
12035 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
12036 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
12037 Move.
12038 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
12039 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
12040 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
12041 abbrev.c.
12042 * dwarf2/abbrev.h: New file.
12043 * dwarf2/abbrev.c: New file, from dwarf2read.c.
12044 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
12045
12046 2020-02-08 Tom Tromey <tom@tromey.com>
12047
12048 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
12049 (dwarf2_section_size, dwarf2_get_section_info)
12050 (create_signatured_type_table_from_debug_names)
12051 (create_addrmap_from_aranges, read_debug_names_from_section)
12052 (get_gdb_index_contents_from_section, read_comp_unit_head)
12053 (error_check_comp_unit_head, read_abbrev_offset)
12054 (create_debug_type_hash_table, init_cu_die_reader)
12055 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
12056 (read_comp_units_from_section, create_cus_hash_table)
12057 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
12058 (create_dwp_v2_section, dwarf2_rnglists_process)
12059 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
12060 (abbrev_table_read_table, read_indirect_string_at_offset_from)
12061 (read_indirect_string_from_dwz, read_addr_index_1)
12062 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
12063 (dwarf_decode_macro_bytes, dwarf_decode_macros)
12064 (fill_in_loclist_baton): Update.
12065 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
12066 get_containing_section, get_bfd_owner, get_bfd_section,
12067 get_file_name, get_id, get_flags, empty, read>: Declare methods.
12068 (dwarf2_read_section, get_section_name, get_section_file_name)
12069 (get_containing_section, get_section_bfd_owner)
12070 (get_section_bfd_section, get_section_name, get_section_file_name)
12071 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
12072 declare.
12073 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
12074 (dwarf2_section_info::get_bfd_owner)
12075 (dwarf2_section_info::get_bfd_section)
12076 (dwarf2_section_info::get_name)
12077 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
12078 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
12079 (dwarf2_section_info::read): Now methods.
12080 * dwarf-index-write.c (class debug_names): Update.
12081
12082 2020-02-08 Tom Tromey <tom@tromey.com>
12083
12084 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
12085 Move to dwarf2/section.h.
12086 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
12087 (get_section_bfd_section, get_section_name)
12088 (get_section_file_name, get_section_id, get_section_flags)
12089 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
12090 dwarf2/section.c.
12091 * dwarf2/section.h: New file.
12092 * dwarf2/section.c: New file, from dwarf2read.c.
12093 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
12094
12095 2020-02-08 Tom Tromey <tom@tromey.com>
12096
12097 * dwarf2read.h (read_unsigned_leb128): Don't declare.
12098 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
12099 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
12100 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
12101 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
12102 * dwarf2/leb.h: New file, from dwarf2read.c.
12103 * dwarf2/leb.c: New file, from dwarf2read.c.
12104 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
12105 Remove.
12106 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
12107 (COMMON_SFILES): Add dwarf2/leb.c.
12108
12109 2020-02-08 Joel Brobecker <brobecker@adacore.com>
12110
12111 GDB 9.1 released.
12112
12113 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12114
12115 PR gdb/25190:
12116 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
12117 * gdb/remote.c (remote_console_output): Update.
12118 * gdb/ui-file.c (fputs_unfiltered): Rename to...
12119 (ui_file_puts): ...this.
12120 * gdb/ui-file.h (ui_file_puts): Add declaration.
12121 * gdb/utils.c (emit_style_escape): Update.
12122 (flush_wrap_buffer): Update.
12123 (fputs_maybe_filtered): Update.
12124 (fputs_unfiltered): Add function.
12125
12126 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12127
12128 * gdb/event-loop.c (gdb_wait_for_event): Update.
12129 * gdb/printcmd.c (printf_command): Update.
12130 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
12131 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
12132 (gdb_os_flush_stderr): Update.
12133 * gdb/remote.c (remote_console_output): Update.
12134 * gdb/ui-file.c (gdb_flush): Rename to...
12135 (ui_file_flush): ...this.
12136 (stderr_file::write): Update.
12137 (stderr_file::puts): Update.
12138 * gdb/ui-file.h (gdb_flush): Rename to...
12139 (ui_file_flush): ...this.
12140 * gdb/utils.c (gdb_flush): Add function.
12141 * gdb/utils.h (gdb_flush): Add declaration.
12142
12143 2020-02-07 Tom Tromey <tromey@adacore.com>
12144
12145 PR breakpoints/24915:
12146 * source.c (find_and_open_source): Do not check basenames_may_differ.
12147
12148 2020-02-07 Tom Tromey <tom@tromey.com>
12149
12150 * README: Update gdbserver documentation.
12151 * gdbserver: Move to top level.
12152 * configure.tgt (build_gdbserver): Remove.
12153 * configure.ac: Remove --enable-gdbserver.
12154 * configure: Rebuild.
12155 * Makefile.in (distclean): Don't mention gdbserver.
12156
12157 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
12158
12159 * source-cache.c (source_cache::ensure): Surround
12160 get_plain_source_lines with a try/catch.
12161 (source_cache::get_line_charpos): Get rid of try/catch
12162 and only check for the return value of "ensure".
12163 * tui/tui-source.c (tui_source_window::set_contents):
12164 Simplify "nlines" calculation.
12165
12166 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
12167
12168 * MAINTAINERS (Write After Approval): Add myself.
12169
12170 2020-02-05 Christian Biesinger <cbiesinger@google.com>
12171
12172 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
12173 function call.
12174
12175 2020-02-05 Christian Biesinger <cbiesinger@google.com>
12176
12177 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
12178
12179 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
12180
12181 * nat/riscv-linux-tdesc.h: New file.
12182 * nat/riscv-linux-tdesc.c: New file, taking code from...
12183 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12184 ... here.
12185 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
12186 NATDEPFILES.
12187
12188 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
12189
12190 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
12191 we don't set the fake simulator ptid to the null_ptid.
12192
12193 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
12194
12195 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
12196 * gdbthread.h (class thread_info) <resumed>: Likewise.
12197 * infrun.c (resume_1): Likewise.
12198 (proceed): Likewise.
12199 (infrun_thread_stop_requested): Likewise.
12200 (stop_all_threads): Likewise.
12201 (handle_inferior_event): Likewise.
12202 (restart_threads): Likewise.
12203 (finish_step_over): Likewise.
12204 (keep_going_stepped_thread): Likewise.
12205 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
12206 (linux_handle_extended_wait): Likewise.
12207 * record-btrace.c (get_thread_current_frame_id): Likewise.
12208 * record-full.c (record_full_wait_1): Likewise.
12209 * remote.c (remote_target::process_initial_stop_replies): Likewise.
12210 * target.c (target_resume): Likewise.
12211 * thread.c (set_running_thread): Likewise.
12212
12213 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12214
12215 * f-valprint.c (f77_print_array_1): Changed datatype of index
12216 variable to LONGEST from int to enable it to contain bound
12217 values correctly.
12218
12219 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
12220
12221 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12222 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12223 offsets according to FLEN determined.
12224 (riscv_linux_nat_target::read_description): Determine FLEN
12225 dynamically.
12226 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12227 according to FLEN determined.
12228 (riscv_linux_nat_target::store_registers): Likewise.
12229
12230 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12231
12232 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12233 when reg->group is empty and reggroup is not.
12234
12235 2020-01-31 Tom Tromey <tromey@adacore.com>
12236
12237 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12238 Call beneath target's mourn_inferior after unpushing.
12239
12240 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12241
12242 PR tui/9765
12243 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12244 have enough lines to fill the screen, still return the lowest
12245 address we found.
12246
12247 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12248
12249 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12250 '-', '<', and '>' commands.
12251
12252 2020-01-29 Pedro Alves <palves@redhat.com>
12253 Sergio Durigan Junior <sergiodj@redhat.com>
12254
12255 * infcmd.c (construct_inferior_arguments): Assert that
12256 'argc' is greater than 0.
12257
12258 2020-01-29 Luis Machado <luis.machado@linaro.org>
12259
12260 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12261 (BRK_INSN_MASK): Define to 0xd4200000.
12262 (aarch64_program_breakpoint_here_p): New function.
12263 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12264 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12265 breakpoint.c.
12266 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12267 breakpoint.h
12268 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12269 call gdbarch_program_breakpoint_here_p.
12270 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12271 default_program_breakpoint_here_p, changed return type to bool and
12272 simplified.
12273 * breakpoint.h (program_breakpoint_here): Moved prototype to
12274 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12275 return type to bool.
12276 * gdbarch.c: Regenerate.
12277 * gdbarch.h: Regenerate.
12278 * gdbarch.sh (program_breakpoint_here_p): New method.
12279 * infrun.c (handle_signal_stop): Call
12280 gdbarch_program_breakpoint_here_p.
12281
12282 2020-01-26 Tom Tromey <tom@tromey.com>
12283
12284 * ctfread.c (struct ctf_fp_info): Reindent.
12285 (_initialize_ctfread): Remove.
12286
12287 2020-01-26 Tom Tromey <tom@tromey.com>
12288
12289 * psymtab.c (partial_map_expand_apply)
12290 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12291 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12292 (psym_print_stats, psym_expand_symtabs_for_function)
12293 (psym_map_symbol_filenames, psym_map_matching_symbols)
12294 (psym_expand_symtabs_matching)
12295 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12296 (maintenance_check_psymtabs): Use new methods.
12297 * psympriv.h (struct partial_symtab) <readin_p,
12298 get_compunit_symtab>: New methods.
12299 <readin, compunit_symtab>: Remove members.
12300 (struct standard_psymtab): New.
12301 (struct legacy_psymtab): Derive from standard_psymtab.
12302 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12303 standard_psymtab.
12304 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12305
12306 2020-01-26 Tom Tromey <tom@tromey.com>
12307
12308 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12309 read_dependencies. Add assert.
12310 * psymtab.c (partial_symtab::read_dependencies): New method.
12311 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12312 method.
12313 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12314 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12315 read_dependencies.
12316 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12317 Add assert.
12318
12319 2020-01-26 Tom Tromey <tom@tromey.com>
12320
12321 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12322 Call expand_psymtab.
12323 (xcoff_read_symtab): Call expand_psymtab.
12324 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12325 legacy_expand_psymtab.
12326 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12327 method.
12328 (struct legacy_psymtab) <expand_psymtab>: Implement.
12329 <legacy_expand_psymtab>: New member.
12330 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12331 (parse_partial_symbols): Set legacy_expand_psymtab.
12332 (psymtab_to_symtab_1): Change argument order. Call
12333 expand_psymtab.
12334 (new_psymtab): Set legacy_expand_psymtab.
12335 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12336 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12337 expand_psymtab.
12338 (dwarf2_psymtab::expand_psymtab): Rename from
12339 psymtab_to_symtab_1. Call expand_psymtab.
12340 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12341 (dbx_end_psymtab): Likewise.
12342 (dbx_psymtab_to_symtab_1): Change argument order. Call
12343 expand_psymtab.
12344 (dbx_read_symtab): Call expand_psymtab.
12345 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12346 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12347 (ctf_psymtab::read_symtab): Call expand_psymtab.
12348
12349 2020-01-26 Tom Tromey <tom@tromey.com>
12350
12351 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12352 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12353 messages.
12354 * mdebugread.c (mdebug_read_symtab): Remove prints.
12355 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12356 assert.
12357 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12358
12359 2020-01-26 Tom Tromey <tom@tromey.com>
12360
12361 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12362 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12363 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12364 legacy_symtab.
12365 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12366 * psymtab.c (psymtab_to_symtab): Call method.
12367 (dump_psymtab): Update.
12368 * psympriv.h (struct partial_symtab): Add virtual destructor.
12369 <read_symtab>: New method.
12370 (struct legacy_symtab): New.
12371 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12372 (struct pst_map) <pst>: Now a legacy_psymtab.
12373 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12374 (new_psymtab): Use legacy_psymtab.
12375 * dwarf2read.h (struct dwarf2_psymtab): New.
12376 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12377 * dwarf2read.c (dwarf2_create_include_psymtab)
12378 (dwarf2_build_include_psymtabs, create_type_unit_group)
12379 (create_partial_symtab, process_psymtab_comp_unit_reader)
12380 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12381 (set_partial_user): Use dwarf2_psymtab.
12382 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12383 (psymtab_to_symtab_1, process_full_comp_unit)
12384 (process_full_type_unit, dwarf2_ranges_read)
12385 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12386 (dwarf_decode_lines): Use dwarf2_psymtab.
12387 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12388 (add_address_entry_worker, write_one_signatured_type)
12389 (recursively_count_psymbols, recursively_write_psymbols)
12390 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12391 (write_debug_names): Likewise.
12392 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12393 <pst>: Now a legacy_psymtab.
12394 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12395 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12396 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12397 * ctfread.c (struct ctf_psymtab): New.
12398 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12399 ctf_psymtab.
12400 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12401 (create_partial_symtab): Return a ctf_psymtab.
12402 (scan_partial_symbols): Update.
12403
12404 2020-01-26 Tom Tromey <tom@tromey.com>
12405
12406 * xcoffread.c (xcoff_start_psymtab): Use new.
12407 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12408 renamed from start_psymtab_common.
12409 * psympriv.h (struct partial_symtab): Add new constructor.
12410 (start_psymtab_common): Don't declare.
12411 * mdebugread.c (parse_partial_symbols): Use new.
12412 * dwarf2read.c (create_partial_symtab): Use new.
12413 * dbxread.c (start_psymtab): Use new.
12414 * ctfread.c (create_partial_symtab): Use new.
12415
12416 2020-01-26 Tom Tromey <tom@tromey.com>
12417
12418 * xcoffread.c (xcoff_end_psymtab): Use new.
12419 * psymtab.c (start_psymtab_common): Use new.
12420 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12421 Update.
12422 * psympriv.h (struct partial_symtab): Add parameters to
12423 constructor. Don't inline.
12424 (allocate_psymtab): Don't declare.
12425 * mdebugread.c (new_psymtab): Use new.
12426 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12427 * dbxread.c (dbx_end_psymtab): Use new.
12428
12429 2020-01-26 Tom Tromey <tom@tromey.com>
12430
12431 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12432 allocate_psymtab. Update documentation.
12433 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12434 allocate_psymtab. Do not use new.
12435 (allocate_psymtab): Use new. Update.
12436
12437 2020-01-26 Tom Tromey <tom@tromey.com>
12438
12439 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12440 * psymtab.c (psym_print_stats): Update.
12441 * psympriv.h (struct partial_symtab) <readin,
12442 psymtabs_addrmap_supported, anonymous>: Now bool.
12443 * mdebugread.c (psymtab_to_symtab_1): Update.
12444 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12445 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12446 (process_full_comp_unit, process_full_type_unit): Update.
12447 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12448 * ctfread.c (psymtab_to_symtab): Update.
12449
12450 2020-01-26 Tom Tromey <tom@tromey.com>
12451
12452 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12453 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12454 * psymtab.c (psymtab_storage): Delete psymtabs.
12455 (psymtab_storage::allocate_psymtab): Use new.
12456 (psymtab_storage::discard_psymtab): Use delete.
12457 * psympriv.h (struct partial_symtab): Add constructor and
12458 initializers.
12459
12460 2020-01-26 Tom Tromey <tom@tromey.com>
12461
12462 * machoread.c: Do not include psympriv.h.
12463
12464 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12465
12466 * NEWS: Mention the new option and the set/show commands.
12467
12468 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12469
12470 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12471 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12472 (validate_exec_file): New variables, enums, functions.
12473 (exec_file_locate_attach, print_section_info): Style the filenames.
12474 (_initialize_exec): Install show_exec_file_mismatch_command and
12475 set_exec_file_mismatch_command.
12476 * gdbcore.h (validate_exec_file): Declare.
12477 * infcmd.c (attach_command): Call validate_exec_file.
12478 * remote.c ( remote_target::remote_add_inferior): Likewise.
12479
12480 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12481
12482 * frame.c (find_frame_sal): Move call to get_next_frame into more
12483 inner scope.
12484 * inline-frame.c (inilne_state) <inline_state>: Update argument
12485 types.
12486 (inilne_state) <skipped_symbol>: Rename to...
12487 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12488 (skip_inline_frames): Build vector of skipped symbols and use this
12489 to reate the inline_state.
12490 (inline_skipped_symbol): Add a comment and some assertions, fetch
12491 skipped symbol from the list.
12492
12493 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12494
12495 * buildsym.c (lte_is_less_than): Delete.
12496 (buildsym_compunit::end_symtab_with_blockvector): Create local
12497 lambda function to sort line table entries, and use
12498 std::stable_sort instead of std::sort.
12499 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12500 markers when looking for a previous line.
12501
12502 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12503
12504 * dwarf2read.c (lnp_state_machine::record_line): Include
12505 end_sequence parameter in debug print out. Record the line if we
12506 are at an end_sequence marker even if it's not the start of a
12507 statement.
12508 * symmisc.c (maintenance_print_one_line_table): Print end of
12509 sequence markers with 'END' not '0'.
12510
12511 2020-01-24 Pedro Alves <palves@redhat.com>
12512
12513 PR gdb/25410
12514 * thread.c (scoped_restore_current_thread::restore): Use
12515 switch_to_inferior_no_thread.
12516 * exec.c: Include "progspace-and-thread.h".
12517 (add_target_sections, remove_target_sections):
12518 scoped_restore_current_pspace_and_thread instead of
12519 scoped_restore_current_thread.
12520 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12521 and aspace to the inferior before calling clone_program_space.
12522 Remove stale comment.
12523
12524 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12525
12526 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12527 (arm_netbsd_nat_target::fetch_registers): ...this.
12528 (arm_nbsd_nat_target::store_registers): Rename to...
12529 (arm_netbsd_nat_target::store_registers): ...this.
12530
12531 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12532
12533 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12534 register_t.
12535
12536 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12537
12538 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12539 Update comment.
12540 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12541 Likewise.
12542 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12543 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12544 the correct replacement (iterate_over_regset_sections).
12545 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12546 Update comment.
12547
12548 2020-01-24 Graham Markall <graham.markall@embecosm.com>
12549
12550 PR gdb/23718
12551 * gdb/python/python.c (execute_gdb_command): Call
12552 async_enable_stdin in catch block.
12553
12554 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12555
12556 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12557 SWITCH_THRU_ALL_UIS.
12558
12559 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12560
12561 PR tui/9765
12562 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12563 comment, add extra parameter, and update to store previous symbol
12564 when appropriate.
12565 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12566 add extra parameter.
12567 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12568 remove unneeded parameter, add try/catch around gdb_print_insn,
12569 rewrite to add items to asm_lines vector.
12570 (tui_find_backward_disassembly_start_address): New function.
12571 (tui_find_disassembly_address): Updated throughout.
12572 (tui_disasm_window::set_contents): Update for changes to
12573 tui_disassemble.
12574 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12575 number of lines to scroll.
12576
12577 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12578
12579 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12580 (SECT_OFF_DATA): Likewise.
12581 (SECT_OFF_RODATA): Likewise.
12582 (SECT_OFF_TEXT): Likewise.
12583 (SECT_OFF_BSS): Likewise.
12584 (struct objfile) <text_section_offset, data_section_offset>: New
12585 methods.
12586 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12587 objfile::text_section_offset.
12588 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12589 * coffread.c (coff_symtab_read): Likewise.
12590 (enter_linenos): Likewise.
12591 (process_coff_symbol): Likewise.
12592 * ctfread.c (get_objfile_text_range): Likewise.
12593 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12594 Use objfile::data_section_offset.
12595 * dwarf2-frame.c (execute_cfa_program): Use
12596 objfile::text_section_offset.
12597 (dwarf2_frame_find_fde): Likewise.
12598 * dwarf2read.c (create_addrmap_from_index): Likewise.
12599 (create_addrmap_from_aranges): Likewise.
12600 (dw2_find_pc_sect_compunit_symtab): Likewise.
12601 (process_psymtab_comp_unit_reader): Likewise.
12602 (add_partial_symbol): Likewise.
12603 (add_partial_subprogram): Likewise.
12604 (process_full_comp_unit): Likewise.
12605 (read_file_scope): Likewise.
12606 (read_func_scope): Likewise.
12607 (read_lexical_block_scope): Likewise.
12608 (read_call_site_scope): Likewise.
12609 (dwarf2_rnglists_process): Likewise.
12610 (dwarf2_ranges_process): Likewise.
12611 (dwarf2_ranges_read): Likewise.
12612 (dwarf_decode_lines_1): Likewise.
12613 (new_symbol): Likewise.
12614 (dwarf2_fetch_die_loc_sect_off): Likewise.
12615 (dwarf2_per_cu_text_offset): Likewise.
12616 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12617 * hppa-tdep.c (read_unwind_info): Likewise.
12618 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12619 * psympriv.h (struct partial_symtab): Likewise.
12620 * psymtab.c (find_pc_sect_psymtab): Likewise.
12621 * solib-svr4.c (enable_break): Likewise.
12622 * stap-probe.c (relocate_address): Use
12623 objfile::data_section_offset.
12624 * xcoffread.c (enter_line_range): Use
12625 objfile::text_section_offset.
12626 (read_xcoff_symtab): Likewise.
12627
12628 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
12629
12630 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12631 declaration to narrower scopes.
12632
12633 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
12634
12635 * darwin-nat.h (struct darwin_exception_msg, enum
12636 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12637 Move up.
12638 (class darwin_nat_target) <wait_1, check_new_threads,
12639 decode_exception_message, decode_message, stop_inferior,
12640 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12641 * darwin-nat.c (darwin_check_new_threads): Rename to...
12642 (darwin_nat_target::check_new_threads): ... this.
12643 (darwin_suspend_inferior_it): Remove.
12644 (darwin_decode_exception_message): Rename to...
12645 (darwin_nat_target::decode_exception_message): ... this.
12646 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12647 (darwin_decode_message): Rename to...
12648 (darwin_nat_target::decode_message): ... this.
12649 (cancel_breakpoint): Rename to...
12650 (darwin_nat_target::cancel_breakpoint): ... this.
12651 (darwin_wait): Rename to...
12652 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12653 instead of iterate_over_inferiors.
12654 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12655 (darwin_stop_inferior): Rename to...
12656 (darwin_nat_target::stop_inferior): ... this.
12657 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12658 (darwin_init_thread_list): Rename to...
12659 (darwin_nat_target::init_thread_list): ... this.
12660 (darwin_ptrace_him): Rename to...
12661 (darwin_nat_target::ptrace_him): ... this.
12662 (darwin_nat_target::create_inferior): Pass lambda function to
12663 fork_inferior.
12664 (darwin_nat_target::detach): Call stop_inferior instead of
12665 darwin_stop_inferior.
12666 * fork-inferior.h (fork_inferior): Change init_trace_fun
12667 parameter to gdb::function_view.
12668 * fork-inferior.c (fork_inferior): Likewise.
12669
12670 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
12671
12672 * i386-cygwin-tdep.c (core_process_module_section): Update.
12673 * windows-nat.c (struct lm_info_windows): Add text_offset.
12674 (windows_xfer_shared_libraries): Update.
12675 * windows-tdep.c (windows_xfer_shared_library):
12676 Add text_offset_cached argument.
12677 * windows-tdep.h (windows_xfer_shared_library): Update.
12678
12679 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12680
12681 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12682
12683 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12684
12685 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12686 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12687 replace with range-based for.
12688 (gdbsim_interrupt_inferior): Remove.
12689 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12690 with a range-based for. Inline code from
12691 gdbsim_interrupt_inferior.
12692
12693 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12694
12695 * infrun.c (proceed): Fix indentation.
12696
12697 2020-01-21 Tom Tromey <tromey@adacore.com>
12698
12699 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12700 * python/python.c (python_extension_ops): Update.
12701 (gdbpy_colorize): New function.
12702 * python/lib/gdb/__init__.py (colorize): New function.
12703 * extension.h (ext_lang_colorize): Declare.
12704 * extension.c (ext_lang_colorize): New function.
12705 * extension-priv.h (struct extension_language_ops) <colorize>: New
12706 member.
12707 * cli/cli-style.c (_initialize_cli_style): Update help text.
12708
12709 2020-01-21 Luis Machado <luis.machado@linaro.org>
12710
12711 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12712 <cond>: Change type to bool.
12713 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12714 (aarch64_displaced_step_cb): Likewise.
12715 (aarch64_displaced_step_tb): Likewise.
12716
12717 2020-01-21 Luis Machado <luis.machado@linaro.org>
12718
12719 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12720 output.
12721
12722 2020-01-21 Luis Machado <luis.machado@linaro.org>
12723
12724 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12725 <pc_adjust>: Adjust the documentation.
12726 (aarch64_displaced_step_fixup): Check if PC really moved before
12727 adjusting it.
12728
12729 2020-01-19 Tom Tromey <tom@tromey.com>
12730
12731 * disasm.c (~gdb_disassembler): New destructor.
12732 (gdb_buffered_insn_length): Call disassemble_free_target.
12733 * disasm.h (class gdb_disassembler): Declare destructor. Use
12734 DISABLE_COPY_AND_ASSIGN.
12735
12736 2020-01-19 Tom Tromey <tom@tromey.com>
12737
12738 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12739 (die_reader_func_ftype): Remove.
12740 (cutu_reader): New class.
12741 (dw2_get_file_names_reader): Remove "data" parameter.
12742 (dw2_get_file_names): Use cutu_reader.
12743 (create_debug_type_hash_table): Update.
12744 (read_cutu_die_from_dwo): Update comment.
12745 (lookup_dwo_unit): Add dwo_name parameter.
12746 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12747 die_reader_func_ftype and data parameters.
12748 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12749 Remove die_reader_func_ftype and data parameters.
12750 (~cutu_reader): New; from init_cutu_and_read_dies.
12751 (cutu_reader::cutu_reader): Rename from
12752 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12753 and data parameters.
12754 (init_cutu_and_read_dies_simple): Remove.
12755 (struct process_psymtab_comp_unit_data): Remove.
12756 (process_psymtab_comp_unit_reader): Remove data parameter; add
12757 want_partial_unit and pretend_language parameters.
12758 (process_psymtab_comp_unit): Use cutu_reader.
12759 (build_type_psymtabs_reader): Remove data parameter.
12760 (build_type_psymtabs_1): Use cutu_reader.
12761 (process_skeletonless_type_unit): Likewise.
12762 (load_partial_comp_unit_reader): Remove.
12763 (load_partial_comp_unit): Use cutu_reader.
12764 (load_full_comp_unit_reader): Remove.
12765 (load_full_comp_unit): Use cutu_reader.
12766 (struct create_dwo_cu_data): Remove.
12767 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12768 dwo_unit parameters.
12769 (create_cus_hash_table): Use cutu_reader.
12770 (struct dwarf2_read_addr_index_data): Remove.
12771 (dwarf2_read_addr_index_reader): Remove.
12772 (dwarf2_read_addr_index): Use cutu_reader.
12773 (read_signatured_type_reader): Remove.
12774 (read_signatured_type): Use cutu_reader.
12775
12776 2020-01-19 Tom Tromey <tom@tromey.com>
12777
12778 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12779 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12780 (tui_wrefresh): Declare.
12781 * tui/tui-wingeneral.c (suppress_output): New global.
12782 (tui_suppress_output, ~tui_suppress_output): New constructor and
12783 destructor.
12784 (tui_wrefresh): New function.
12785 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12786 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12787 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12788 method.
12789 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12790 tui_wrefresh.
12791 (tui_data_window::no_refresh): New method.
12792 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12793 (tui_reg_command): Use tui_suppress_output
12794 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12795 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12796 method.
12797 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12798
12799 2020-01-19 Tom Tromey <tom@tromey.com>
12800
12801 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12802 Handle case where symtab is null.
12803
12804 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12805
12806 * linux-fork.c (one_fork_p): Simplify.
12807
12808 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12809
12810 * top.c (struct qt_args): Remove.
12811 (kill_or_detach): Change return type to void, replace `void *`
12812 parameter with a proper one.
12813 (print_inferior_quit_action): Likewise.
12814 (quit_confirm): Use range-based for loop to iterate over inferiors.
12815 (quit_force): Likewise.
12816
12817 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12818
12819 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12820 `void *` parameter with proper parameters.
12821 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12822 (print_one_inferior): Change return type to void, replace `void *`
12823 parameter with proper parameters.
12824 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12825 inferiors.
12826 (get_other_inferior): Remove.
12827 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12828 inferiors.
12829
12830 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12831
12832 * mi/mi-interp.c (report_initial_inferior): Remove.
12833 (mi_interp::init): Use range-based for to iterate over inferiors.
12834
12835 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12836
12837 * python/py-inferior.c (build_inferior_list): Remove.
12838 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12839
12840 2020-01-16 Christian Biesinger <cbiesinger@google.com>
12841
12842 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12843 (btrace_stitch_trace): Likewise.
12844 * charset.c (intermediate_encoding): Likewise (vaild).
12845 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12846 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12847 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12848
12849 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
12850
12851 * windows-tdep.c (windows_get_tlb_type):
12852 Add rtl_user_process_parameters type.
12853
12854 2020-01-16 Pedro Alves <palves@redhat.com>
12855 Norbert Lange <nolange79@gmail.com>
12856
12857 PR build/24805
12858 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12859 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12860 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12861 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12862 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12863 (ps_plog): Redeclare exported functions with default visibility.
12864
12865 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12866
12867 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12868 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12869
12870 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
12871
12872 * infcmd.c (post_create_inferior): Use get_thread_regcache
12873 instead of get_current_regcache.
12874
12875 2020-01-14 Tom Tromey <tom@tromey.com>
12876
12877 PR symtab/12535:
12878 * python/python.c (gdbpy_decode_line): Treat empty string the same
12879 as no argument.
12880
12881 2020-01-14 Tom Tromey <tom@tromey.com>
12882
12883 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
12884
12885 2020-01-14 Tom Tromey <tom@tromey.com>
12886
12887 * nat/linux-btrace.c: Don't include <config.h>.
12888 * nat/linux-ptrace.c: Don't include <config.h>.
12889 * nat/x86-linux-dregs.c: Don't include <config.h>.
12890
12891 2020-01-14 Tom Tromey <tom@tromey.com>
12892
12893 * configure: Rebuild.
12894 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12895
12896 2020-01-14 Tom Tromey <tom@tromey.com>
12897
12898 * nat/x86-linux-dregs.c: Include configh.h.
12899 * nat/linux-ptrace.c: Include configh.h.
12900 * nat/linux-btrace.c: Include configh.h.
12901 * defs.h: Include config.h, bfd.h.
12902 * configure.ac: Don't source common.host.
12903 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
12904 * configure: Rebuild.
12905 * acinclude.m4: Update path.
12906 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
12907 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
12908 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
12909 (CLIBS): Add LIBSUPPORT.
12910 (CDEPS): Likewise.
12911 (COMMON_SFILES): Remove gdbsupport files.
12912 (HFILES_NO_SRCDIR): Likewise.
12913 (stamp-version): Update path to create-version.sh.
12914 (ALLDEPFILES): Remove gdbsupport files.
12915
12916 2020-01-14 Tom Tromey <tom@tromey.com>
12917
12918 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
12919 USE_WIN32API when needed.
12920 * configure.ac (USE_WIN32API): Don't define.
12921 (WIN32LIBS): Use WIN32APILIBS.
12922 * configure: Rebuild.
12923
12924 2020-01-14 Tom Tromey <tom@tromey.com>
12925
12926 * configure: Rebuild.
12927 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
12928
12929 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12930
12931 * skip.c (skip_function_command): Make skip w/o arguments use the
12932 name of the inlined function if pc is inside any inlined function.
12933
12934 2020-01-14 Luis Machado <luis.machado@linaro.org>
12935
12936 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
12937 * infrun.c (resume_1): Likewise.
12938 (handle_inferior_event): Remove stale comment.
12939 * linux-nat.c (linux_nat_target::resume): Update comments.
12940 (save_stop_reason): Likewise.
12941 (linux_nat_filter_event): Likewise.
12942 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12943
12944 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12945
12946 * elfread.c (record_minimal_symbol): Set section index to 0 for
12947 non-allocatable sections.
12948
12949
12950 2020-01-13 Ali Tamur <tamur@google.com>
12951
12952 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12953 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12954 to gdb::optional. Update comments.
12955 (dwo_file): Update comments.
12956 (read_attribute): Update API to take an additional out parameter,
12957 need_reprocess. This is used to mark attributes that need other
12958 attributes (e.g. str_offsets_base) for correct computation which may not
12959 have been read yet.
12960 (read_attribute_reprocess): New function declaration.
12961 (read_addr_index): Likewise.
12962 (read_dwo_str_index): Likewise.
12963 (read_stub_str_index): Likewise.
12964 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12965 (lookup_addr_base): New function definition.
12966 (lookup_ranges_base): Likewise.
12967 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12968 lookup_ranges_base.
12969 (init_cutu_and_read_dies): Update comments.
12970 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12971 unit. This is used to inherit parent's str_offsets_base and addr_base.
12972 Update comments.
12973 (init_cutu_and_read_dies_simple): Reflect API changes.
12974 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12975 (create_cus_hash_table): Change API to take parent compile unit.
12976 Reflect API changes.
12977 (open_and_init_dwo_file): Reflect API changes.
12978 (dwarf2_get_pc_bounds): Update comments.
12979 (dwarf2_record_block_ranges): Likewise.
12980 (read_full_die_1): Change implementation to reprocess attributes that
12981 need str_offsets_base and addr_base.
12982 (partial_die_info::read): Likewise.
12983 (read_attribute_reprocess): New function definition.
12984 (read_attribute_value): Change API to take an additional out parameter,
12985 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12986 when a non-dwo compile unit has index based attributes.
12987 (read_attribute): Reflect API changes.
12988 (read_addr_index_1): Reflect API changes. Update comments.
12989 (dwarf2_read_addr_index_data): Reflect API changes.
12990 (dwarf2_read_addr_index): Likewise.
12991 (read_str_index): Change API and implementation. This becomes a helper
12992 to be used by the new string index related methods. Update error
12993 message and comments.
12994 (read_dwo_str_index): New function definition.
12995 (read_stub_str_index): Likewise.
12996 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12997 * symfile.h (dwarf2_debug_sections): Likewise.
12998 * xcoffread.c (dwarf2_debug_sections): Likewise.
12999
13000 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13001
13002 * gdbcore.h (struct core_fns) <core_read_registers>: Change
13003 core_reg_sect type to gdb_byte *.
13004 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
13005 * cris-tdep.c (fetch_core_registers): Likewise.
13006 * corelow.c (core_target::get_core_register_section): Change
13007 type of `contents` to gdb::byte_vector.
13008
13009 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13010
13011 * tui/tui-wingeneral.c (box_win): Position the title in the center
13012 of the border.
13013
13014 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13015
13016 * corelow.c (core_target::get_core_register_section): Use
13017 std::vector instead of alloca.
13018
13019 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13020
13021 * warning.m4: Add -Wmissing-declarations to build_warnings.
13022 * configure: Re-generate.
13023
13024 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13025
13026 * python/python.c (init__gdb_module): Add declaration.
13027
13028 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13029
13030 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
13031 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
13032 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
13033 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
13034 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
13035 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
13036 * ada-exp.y (_initialize_ada_exp): Add declaration.
13037 * ada-lang.c (_initialize_ada_language): Add declaration.
13038 * ada-tasks.c (_initialize_tasks): Add declaration.
13039 * agent.c (_initialize_agent): Add declaration.
13040 * aix-thread.c (_initialize_aix_thread): Add declaration.
13041 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
13042 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
13043 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
13044 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
13045 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
13046 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
13047 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
13048 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
13049 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
13050 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
13051 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
13052 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
13053 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
13054 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
13055 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
13056 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
13057 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
13058 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
13059 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
13060 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
13061 * annotate.c (_initialize_annotate): Add declaration.
13062 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
13063 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
13064 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
13065 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
13066 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
13067 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
13068 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
13069 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
13070 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
13071 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
13072 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
13073 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
13074 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
13075 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
13076 * auto-load.c (_initialize_auto_load): Add declaration.
13077 * auxv.c (_initialize_auxv): Add declaration.
13078 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
13079 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
13080 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
13081 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
13082 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
13083 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
13084 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
13085 * breakpoint.c (_initialize_breakpoint): Add declaration.
13086 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
13087 * btrace.c (_initialize_btrace): Add declaration.
13088 * charset.c (_initialize_charset): Add declaration.
13089 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
13090 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
13091 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
13092 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
13093 * cli/cli-script.c (_initialize_cli_script): Add declaration.
13094 * cli/cli-style.c (_initialize_cli_style): Add declaration.
13095 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
13096 * coffread.c (_initialize_coffread): Add declaration.
13097 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
13098 * compile/compile.c (_initialize_compile): Add declaration.
13099 * complaints.c (_initialize_complaints): Add declaration.
13100 * completer.c (_initialize_completer): Add declaration.
13101 * copying.c (_initialize_copying): Add declaration.
13102 * corefile.c (_initialize_core): Add declaration.
13103 * corelow.c (_initialize_corelow): Add declaration.
13104 * cp-abi.c (_initialize_cp_abi): Add declaration.
13105 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
13106 * cp-support.c (_initialize_cp_support): Add declaration.
13107 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
13108 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
13109 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
13110 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
13111 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
13112 * ctfread.c (_initialize_ctfread): Add declaration.
13113 * d-lang.c (_initialize_d_language): Add declaration.
13114 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
13115 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
13116 * dbxread.c (_initialize_dbxread): Add declaration.
13117 * dcache.c (_initialize_dcache): Add declaration.
13118 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
13119 * disasm.c (_initialize_disasm): Add declaration.
13120 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
13121 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
13122 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
13123 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
13124 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
13125 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
13126 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
13127 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
13128 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
13129 * elfread.c (_initialize_elfread): Add declaration.
13130 * exec.c (_initialize_exec): Add declaration.
13131 * extension.c (_initialize_extension): Add declaration.
13132 * f-lang.c (_initialize_f_language): Add declaration.
13133 * f-valprint.c (_initialize_f_valprint): Add declaration.
13134 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
13135 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
13136 * filesystem.c (_initialize_filesystem): Add declaration.
13137 * findcmd.c (_initialize_mem_search): Add declaration.
13138 * findvar.c (_initialize_findvar): Add declaration.
13139 * fork-child.c (_initialize_fork_child): Add declaration.
13140 * frame-base.c (_initialize_frame_base): Add declaration.
13141 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
13142 * frame.c (_initialize_frame): Add declaration.
13143 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
13144 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
13145 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
13146 * gcore.c (_initialize_gcore): Add declaration.
13147 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
13148 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
13149 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
13150 * gdbarch.c (_initialize_gdbarch): Add declaration.
13151 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
13152 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
13153 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
13154 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
13155 * go-lang.c (_initialize_go_language): Add declaration.
13156 * go32-nat.c (_initialize_go32_nat): Add declaration.
13157 * guile/guile.c (_initialize_guile): Add declaration.
13158 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
13159 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
13160 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
13161 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
13162 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
13163 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
13164 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
13165 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
13166 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
13167 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
13168 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
13169 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
13170 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
13171 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
13172 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
13173 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
13174 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
13175 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
13176 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
13177 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
13178 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
13179 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
13180 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
13181 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
13182 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
13183 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
13184 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
13185 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
13186 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
13187 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
13188 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
13189 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
13190 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
13191 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
13192 * infcall.c (_initialize_infcall): Add declaration.
13193 * infcmd.c (_initialize_infcmd): Add declaration.
13194 * inflow.c (_initialize_inflow): Add declaration.
13195 * infrun.c (_initialize_infrun): Add declaration.
13196 * interps.c (_initialize_interpreter): Add declaration.
13197 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
13198 * jit.c (_initialize_jit): Add declaration.
13199 * language.c (_initialize_language): Add declaration.
13200 * linux-fork.c (_initialize_linux_fork): Add declaration.
13201 * linux-nat.c (_initialize_linux_nat): Add declaration.
13202 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
13203 * linux-thread-db.c (_initialize_thread_db): Add declaration.
13204 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
13205 * m2-lang.c (_initialize_m2_language): Add declaration.
13206 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
13207 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
13208 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
13209 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
13210 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
13211 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
13212 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
13213 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
13214 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
13215 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
13216 * machoread.c (_initialize_machoread): Add declaration.
13217 * macrocmd.c (_initialize_macrocmd): Add declaration.
13218 * macroscope.c (_initialize_macroscope): Add declaration.
13219 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13220 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13221 * maint.c (_initialize_maint_cmds): Add declaration.
13222 * mdebugread.c (_initialize_mdebugread): Add declaration.
13223 * memattr.c (_initialize_mem): Add declaration.
13224 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13225 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13226 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13227 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13228 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13229 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13230 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13231 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13232 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13233 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13234 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13235 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13236 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13237 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13238 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13239 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13240 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13241 * mipsread.c (_initialize_mipsread): Add declaration.
13242 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13243 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13244 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13245 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13246 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13247 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13248 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13249 * nto-procfs.c (_initialize_procfs): Add declaration.
13250 * objc-lang.c (_initialize_objc_language): Add declaration.
13251 * observable.c (_initialize_observer): Add declaration.
13252 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13253 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13254 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13255 * osabi.c (_initialize_gdb_osabi): Add declaration.
13256 * osdata.c (_initialize_osdata): Add declaration.
13257 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13258 * parse.c (_initialize_parse): Add declaration.
13259 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13260 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13261 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13262 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13263 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13264 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13265 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13266 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13267 * printcmd.c (_initialize_printcmd): Add declaration.
13268 * probe.c (_initialize_probe): Add declaration.
13269 * proc-api.c (_initialize_proc_api): Add declaration.
13270 * proc-events.c (_initialize_proc_events): Add declaration.
13271 * proc-service.c (_initialize_proc_service): Add declaration.
13272 * procfs.c (_initialize_procfs): Add declaration.
13273 * producer.c (_initialize_producer): Add declaration.
13274 * psymtab.c (_initialize_psymtab): Add declaration.
13275 * python/python.c (_initialize_python): Add declaration.
13276 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13277 * record-btrace.c (_initialize_record_btrace): Add declaration.
13278 * record-full.c (_initialize_record_full): Add declaration.
13279 * record.c (_initialize_record): Add declaration.
13280 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13281 * regcache.c (_initialize_regcache): Add declaration.
13282 * reggroups.c (_initialize_reggroup): Add declaration.
13283 * remote-notif.c (_initialize_notif): Add declaration.
13284 * remote-sim.c (_initialize_remote_sim): Add declaration.
13285 * remote.c (_initialize_remote): Add declaration.
13286 * reverse.c (_initialize_reverse): Add declaration.
13287 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13288 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13289 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13290 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13291 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13292 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13293 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13294 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13295 Add declaration.
13296 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13297 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13298 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13299 * rust-exp.y (_initialize_rust_exp): Add declaration.
13300 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13301 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13302 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13303 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13304 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13305 * score-tdep.c (_initialize_score_tdep): Add declaration.
13306 * ser-go32.c (_initialize_ser_dos): Add declaration.
13307 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13308 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13309 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13310 * ser-uds.c (_initialize_ser_socket): Add declaration.
13311 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13312 * serial.c (_initialize_serial): Add declaration.
13313 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13314 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13315 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13316 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13317 * skip.c (_initialize_step_skip): Add declaration.
13318 * sol-thread.c (_initialize_sol_thread): Add declaration.
13319 * solib-aix.c (_initialize_solib_aix): Add declaration.
13320 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13321 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13322 * solib-frv.c (_initialize_frv_solib): Add declaration.
13323 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13324 * solib-target.c (_initialize_solib_target): Add declaration.
13325 * solib.c (_initialize_solib): Add declaration.
13326 * source-cache.c (_initialize_source_cache): Add declaration.
13327 * source.c (_initialize_source): Add declaration.
13328 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13329 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13330 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13331 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13332 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13333 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13334 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13335 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13336 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13337 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13338 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13339 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13340 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13341 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13342 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13343 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13344 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13345 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13346 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13347 * stabsread.c (_initialize_stabsread): Add declaration.
13348 * stack.c (_initialize_stack): Add declaration.
13349 * stap-probe.c (_initialize_stap_probe): Add declaration.
13350 * std-regs.c (_initialize_frame_reg): Add declaration.
13351 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13352 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13353 * symfile.c (_initialize_symfile): Add declaration.
13354 * symmisc.c (_initialize_symmisc): Add declaration.
13355 * symtab.c (_initialize_symtab): Add declaration.
13356 * target.c (_initialize_target): Add declaration.
13357 * target-connection.c (_initialize_target_connection): Add
13358 declaration.
13359 * target-dcache.c (_initialize_target_dcache): Add declaration.
13360 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13361 * thread.c (_initialize_thread): Add declaration.
13362 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13363 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13364 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13365 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13366 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13367 * tracectf.c (_initialize_ctf): Add declaration.
13368 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13369 * tracefile.c (_initialize_tracefile): Add declaration.
13370 * tracepoint.c (_initialize_tracepoint): Add declaration.
13371 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13372 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13373 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13374 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13375 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13376 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13377 * tui/tui.c (_initialize_tui): Add declaration.
13378 * typeprint.c (_initialize_typeprint): Add declaration.
13379 * ui-style.c (_initialize_ui_style): Add declaration.
13380 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13381 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13382 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13383 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13384 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13385 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13386 * unittests/filtered_iterator-selftests.c
13387 (_initialize_filtered_iterator_selftests): Add declaration.
13388 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13389 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13390 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13391 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13392 * unittests/main-thread-selftests.c
13393 (_initialize_main_thread_selftests): Add declaration.
13394 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13395 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13396 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13397 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13398 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13399 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13400 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13401 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13402 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13403 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13404 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13405 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13406 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13407 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13408 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13409 declaration.
13410 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13411 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13412 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13413 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13414 * user-regs.c (_initialize_user_regs): Add declaration.
13415 * utils.c (_initialize_utils): Add declaration.
13416 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13417 * valops.c (_initialize_valops): Add declaration.
13418 * valprint.c (_initialize_valprint): Add declaration.
13419 * value.c (_initialize_values): Add declaration.
13420 * varobj.c (_initialize_varobj): Add declaration.
13421 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13422 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13423 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13424 * windows-nat.c (_initialize_windows_nat): Add declaration.
13425 (_initialize_check_for_gdb_ini): Add declaration.
13426 (_initialize_loadable): Add declaration.
13427 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13428 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13429 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13430 * xcoffread.c (_initialize_xcoffread): Add declaration.
13431 * xml-support.c (_initialize_xml_support): Add declaration.
13432 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13433 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13434 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13435 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13436
13437 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13438
13439 * regformats/regdat.sh: Generate declaration for init function.
13440
13441 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13442
13443 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13444 up.
13445 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13446 close_one_inferior>: New methods.
13447 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13448 pass down target to find_inferior_pid.
13449 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13450 Pass down target to find_inferior_ptid.
13451 (gdbsim_target::create_inferior): Pass down target to
13452 add_thread_silent.
13453 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13454 target down to find_inferior_ptid and switch_to_thread.
13455 (gdbsim_target::close): Update to call close_one_inferior.
13456 (struct resume_data): Remove.
13457 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13458 directly, rather than through a void pointer.
13459 (gdbsim_target::resume): Update to call resume_one_inferior.
13460
13461 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13462
13463 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13464
13465 2020-01-12 Pedro Alves <palves@redhat.com>
13466
13467 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13468 directly for the current inferior instead of
13469 discard_all_inferiors.
13470 (discard_all_inferiors): Delete.
13471
13472 2020-01-11 Tom Tromey <tom@tromey.com>
13473
13474 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13475 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13476 deprecated_safe_get_selected_frame.
13477
13478 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13479
13480 * inferior.c (print_inferior): Switch inferior before printing it.
13481
13482 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13483 Pedro Alves <palves@redhat.com>
13484
13485 * progspace-and-thread.c (switch_to_program_space_and_thread):
13486 Assert there's an inferior for PSPACE. Use
13487 switch_to_inferior_no_thread to switch the inferior too.
13488 * progspace.c (program_space::~program_space): Call
13489 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13490 (program_space::free_all_objfiles): Don't call clear_symtab_users
13491 here.
13492 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13493
13494 2020-01-10 Pedro Alves <palves@redhat.com>
13495
13496 * NEWS: Mention multi-target debugging, "info connections", and
13497 "add-inferior -no-connection".
13498
13499 2020-01-10 Pedro Alves <palves@redhat.com>
13500
13501 * infrun.c: Include "target-connection.h".
13502 (check_multi_target_resumption): New.
13503 (proceed): Call it.
13504 * target-connection.c (make_target_connection_string): Make
13505 extern.
13506 * target-connection.h (make_target_connection_string): Declare.
13507
13508 2020-01-10 Pedro Alves <palves@redhat.com>
13509
13510 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13511 * inferior.c (uiout_field_connection): New function.
13512 (print_inferior): Add new "connection-id" column.
13513 (add_inferior_command): Show connection number/string of added
13514 inferior.
13515 * process-stratum-target.h
13516 (process_stratum_target::connection_string): New virtual method.
13517 (process_stratum_target::connection_number): New field.
13518 * remote.c (remote_target::connection_string): New override.
13519 * target-connection.c: New file.
13520 * target-connection.h: New file.
13521 * target.c (decref_target): Remove process_stratum targets from
13522 the connection list.
13523 (target_stack::push): Add process_stratum targets to the
13524 connection list.
13525
13526 2020-01-10 Pedro Alves <palves@redhat.com>
13527
13528 Revert:
13529 2016-04-12 Pedro Alves <palves@redhat.com>
13530 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13531 Remove references to name.
13532 * serial.h (struct serial) <name>: Delete.
13533
13534 2020-01-10 Pedro Alves <palves@redhat.com>
13535
13536 * gdbarch-selftests.c (register_to_value_test): Remove "target
13537 already pushed" check.
13538
13539 2020-01-10 Pedro Alves <palves@redhat.com>
13540 John Baldwin <jhb@FreeBSD.org>
13541
13542 * aarch64-linux-nat.c
13543 (aarch64_linux_nat_target::thread_architecture): Adjust.
13544 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13545 (task_command_1): Likewise.
13546 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13547 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13548 (aix_thread_target::store_registers)
13549 (aix_thread_target::thread_alive): Adjust.
13550 * amd64-fbsd-tdep.c: Include "inferior.h".
13551 (amd64fbsd_get_thread_local_address): Pass down target.
13552 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13553 thread's gdbarch instead of target_gdbarch.
13554 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13555 get_last_target_status.
13556 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13557 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13558 inferiors.
13559 (update_inserted_breakpoint_locations): Skip if inferiors with no
13560 execution.
13561 (update_global_location_list): When handling moribund locations,
13562 find representative inferior for location's pspace, and use thread
13563 count of its process_stratum target.
13564 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13565 * bsd-uthread.c (bsd_uthread_target::wait): Use
13566 as_process_stratum_target and adjust thread_change_ptid and
13567 add_thread calls.
13568 (bsd_uthread_target::update_thread_list): Use
13569 as_process_stratum_target and adjust find_thread_ptid,
13570 thread_change_ptid and add_thread calls.
13571 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13572 find_thread_ptid call.
13573 * corelow.c (add_to_thread_list): Adjust add_thread call.
13574 (core_target_open): Adjust add_thread_silent and thread_count
13575 calls.
13576 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13577 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13578 * event-top.c (async_disconnect): Pop targets from all inferiors.
13579 * exec.c (add_target_sections): Push exec target on all inferiors
13580 sharing the program space.
13581 (remove_target_sections): Remove the exec target from all
13582 inferiors sharing the program space.
13583 (exec_on_vfork): New.
13584 * exec.h (exec_on_vfork): Declare.
13585 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13586 Pass it down.
13587 (fbsd_nat_target::update_thread_list): Adjust.
13588 (fbsd_nat_target::resume): Adjust.
13589 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13590 down.
13591 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13592 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13593 get_thread_arch_regcache call.
13594 * fork-child.c (gdb_startup_inferior): Pass target down to
13595 startup_inferior and set_executing.
13596 * gdbthread.h (struct process_stratum_target): Forward declare.
13597 (add_thread, add_thread_silent, add_thread_with_info)
13598 (in_thread_list): Add process_stratum_target parameter.
13599 (find_thread_ptid(inferior*, ptid_t)): New overload.
13600 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13601 parameter.
13602 (all_threads()): Delete overload.
13603 (all_threads, all_non_exited_threads): Add process_stratum_target
13604 parameter.
13605 (all_threads_safe): Use brace initialization.
13606 (thread_count): Add process_stratum_target parameter.
13607 (set_resumed, set_running, set_stop_requested, set_executing)
13608 (threads_are_executing, finish_thread_state): Add
13609 process_stratum_target parameter.
13610 (switch_to_thread): Use is_current_thread.
13611 * i386-fbsd-tdep.c: Include "inferior.h".
13612 (i386fbsd_get_thread_local_address): Pass down target.
13613 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13614 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13615 have_inferiors check.
13616 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13617 (inf_ptrace_target::attach): Adjust.
13618 * infcall.c (run_inferior_call): Adjust.
13619 * infcmd.c (run_command_1): Pass target to
13620 scoped_finish_thread_state.
13621 (proceed_thread_callback): Skip inferiors with no execution.
13622 (continue_command): Rename 'all_threads' local to avoid hiding
13623 'all_threads' function. Adjust get_last_target_status call.
13624 (prepare_one_step): Adjust set_running call.
13625 (signal_command): Use user_visible_resume_target. Compare thread
13626 pointers instead of inferior_ptid.
13627 (info_program_command): Adjust to pass down target.
13628 (attach_command): Mark target's 'thread_executing' flag.
13629 (stop_current_target_threads_ns): New, factored out from ...
13630 (interrupt_target_1): ... this. Switch inferior before making
13631 target calls.
13632 * inferior-iter.h
13633 (struct all_inferiors_iterator, struct all_inferiors_range)
13634 (struct all_inferiors_safe_range)
13635 (struct all_non_exited_inferiors_range): Filter on
13636 process_stratum_target too. Remove explicit.
13637 * inferior.c (inferior::inferior): Push dummy target on target
13638 stack.
13639 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13640 Add process_stratum_target parameter, and pass it down.
13641 (have_live_inferiors): Adjust.
13642 (switch_to_inferior_and_push_target): New.
13643 (add_inferior_command, clone_inferior_command): Handle
13644 "-no-connection" parameter. Use
13645 switch_to_inferior_and_push_target.
13646 (_initialize_inferior): Mention "-no-connection" option in
13647 the help of "add-inferior" and "clone-inferior" commands.
13648 * inferior.h: Include "process-stratum-target.h".
13649 (interrupt_target_1): Use bool.
13650 (struct inferior) <push_target, unpush_target, target_is_pushed,
13651 find_target_beneath, top_target, process_target, target_at,
13652 m_stack>: New.
13653 (discard_all_inferiors): Delete.
13654 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13655 (all_inferiors, all_non_exited_inferiors): Add
13656 process_stratum_target parameter.
13657 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13658 (target_last_proc_target): New global.
13659 (follow_fork_inferior): Push target on new inferior. Pass target
13660 to add_thread_silent. Call exec_on_vfork. Handle target's
13661 reference count.
13662 (follow_fork): Adjust get_last_target_status call. Also consider
13663 target.
13664 (follow_exec): Push target on new inferior.
13665 (struct execution_control_state) <target>: New field.
13666 (user_visible_resume_target): New.
13667 (do_target_resume): Call target_async.
13668 (resume_1): Set target's threads_executing flag. Consider resume
13669 target.
13670 (commit_resume_all_targets): New.
13671 (proceed): Also consider resume target. Skip threads of inferiors
13672 with no execution. Commit resumtion in all targets.
13673 (start_remote): Pass current inferior to wait_for_inferior.
13674 (infrun_thread_stop_requested): Consider target as well. Pass
13675 thread_info pointer to clear_inline_frame_state instead of ptid.
13676 (infrun_thread_thread_exit): Consider target as well.
13677 (random_pending_event_thread): New inferior parameter. Use it.
13678 (do_target_wait): Rename to ...
13679 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13680 down.
13681 (threads_are_resumed_pending_p, do_target_wait): New.
13682 (prepare_for_detach): Adjust calls.
13683 (wait_for_inferior): New inferior parameter. Handle it. Use
13684 do_target_wait_1 instead of do_target_wait.
13685 (fetch_inferior_event): Adjust. Switch to representative
13686 inferior. Pass target down.
13687 (set_last_target_status): Add process_stratum_target parameter.
13688 Save target in global.
13689 (get_last_target_status): Add process_stratum_target parameter and
13690 handle it.
13691 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13692 (context_switch): Check inferior_ptid == null_ptid before calling
13693 inferior_thread().
13694 (get_inferior_stop_soon): Pass down target.
13695 (wait_one): Rename to ...
13696 (poll_one_curr_target): ... this.
13697 (struct wait_one_event): New.
13698 (wait_one): New.
13699 (stop_all_threads): Adjust.
13700 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13701 event's target.
13702 (switch_back_to_stepped_thread): Also consider target.
13703 (print_stop_event): Update.
13704 (normal_stop): Update. Also consider the resume target.
13705 * infrun.h (wait_for_inferior): Remove declaration.
13706 (user_visible_resume_target): New declaration.
13707 (get_last_target_status, set_last_target_status): New
13708 process_stratum_target parameter.
13709 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13710 process_stratum_target parameter, and use it.
13711 (clear_inline_frame_state (thread_info*)): New.
13712 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13713 process_stratum_target parameter.
13714 (clear_inline_frame_state (thread_info*)): Declare.
13715 * linux-fork.c (delete_checkpoint_command): Pass target down to
13716 find_thread_ptid.
13717 (checkpoint_command): Adjust.
13718 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13719 instead of just tweaking inferior_ptid.
13720 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13721 (exit_lwp): Pass target down to find_thread_ptid.
13722 (attach_proc_task_lwp_callback): Pass target down to
13723 add_thread/set_running/set_executing.
13724 (linux_nat_target::attach): Pass target down to
13725 thread_change_ptid.
13726 (get_detach_signal): Pass target down to find_thread_ptid.
13727 Consider last target status's target.
13728 (linux_resume_one_lwp_throw, resume_lwp)
13729 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13730 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13731 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13732 (linux_nat_target::async_wait_fd): New.
13733 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13734 target down.
13735 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13736 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13737 * linux-thread-db.c (struct thread_db_info::process_target): New
13738 field.
13739 (add_thread_db_info): Save target.
13740 (get_thread_db_info): New process_stratum_target parameter. Also
13741 match target.
13742 (delete_thread_db_info): New process_stratum_target parameter.
13743 Also match target.
13744 (thread_from_lwp): Adjust to pass down target.
13745 (thread_db_notice_clone): Pass down target.
13746 (check_thread_db_callback): Pass down target.
13747 (try_thread_db_load_1): Always push the thread_db target.
13748 (try_thread_db_load, record_thread): Pass target down.
13749 (thread_db_target::detach): Pass target down. Always unpush the
13750 thread_db target.
13751 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13752 target down. Always unpush the thread_db target.
13753 (find_new_threads_callback, thread_db_find_new_threads_2)
13754 (thread_db_target::update_thread_list): Pass target down.
13755 (thread_db_target::pid_to_str): Pass current inferior down.
13756 (thread_db_target::get_thread_local_address): Pass target down.
13757 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13758 target down.
13759 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13760 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13761 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13762 (procfs_init_inferior): Rename to ...
13763 (procfs_target::procfs_init_inferior): ... this and adjust.
13764 (procfs_target::create_inferior, procfs_notice_thread)
13765 (procfs_do_thread_registers): Adjust.
13766 * ppc-fbsd-tdep.c: Include "inferior.h".
13767 (ppcfbsd_get_thread_local_address): Pass down target.
13768 * proc-service.c (ps_xfer_memory): Switch current inferior and
13769 program space as well.
13770 (get_ps_regcache): Pass target down.
13771 * process-stratum-target.c
13772 (process_stratum_target::thread_address_space)
13773 (process_stratum_target::thread_architecture): Pass target down.
13774 * process-stratum-target.h
13775 (process_stratum_target::threads_executing): New field.
13776 (as_process_stratum_target): New.
13777 * ravenscar-thread.c
13778 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13779 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13780 down.
13781 * record-btrace.c (record_btrace_target::info_record): Adjust.
13782 (record_btrace_target::record_method)
13783 (record_btrace_target::record_is_replaying)
13784 (record_btrace_target::fetch_registers)
13785 (get_thread_current_frame_id, record_btrace_target::resume)
13786 (record_btrace_target::wait, record_btrace_target::stop): Pass
13787 target down.
13788 * record-full.c (record_full_wait_1): Switch to event thread.
13789 Pass target down.
13790 * regcache.c (regcache::regcache)
13791 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13792 process_stratum_target parameter and handle it.
13793 (current_thread_target): New global.
13794 (get_thread_regcache): Add process_stratum_target parameter and
13795 handle it. Switch inferior before calling target method.
13796 (get_thread_regcache): Pass target down.
13797 (get_thread_regcache_for_ptid): Pass target down.
13798 (registers_changed_ptid): Add process_stratum_target parameter and
13799 handle it.
13800 (registers_changed_thread, registers_changed): Pass target down.
13801 (test_get_thread_arch_aspace_regcache): New.
13802 (current_regcache_test): Define a couple local test_target_ops
13803 instances and use them for testing.
13804 (readwrite_regcache): Pass process_stratum_target parameter.
13805 (cooked_read_test, cooked_write_test): Pass mock_target down.
13806 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13807 (get_thread_arch_aspace_regcache): Add process_stratum_target
13808 parameter.
13809 (regcache::target): New method.
13810 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13811 (regcache::registers_changed_ptid): Add process_stratum_target
13812 parameter.
13813 (regcache::m_target): New field.
13814 (registers_changed_ptid): Add process_stratum_target parameter.
13815 * remote.c (remote_state::supports_vCont_probed): New field.
13816 (remote_target::async_wait_fd): New method.
13817 (remote_unpush_and_throw): Add remote_target parameter.
13818 (get_current_remote_target): Adjust.
13819 (remote_target::remote_add_inferior): Push target.
13820 (remote_target::remote_add_thread)
13821 (remote_target::remote_notice_new_inferior)
13822 (get_remote_thread_info): Pass target down.
13823 (remote_target::update_thread_list): Skip threads of inferiors
13824 bound to other targets. (remote_target::close): Don't discard
13825 inferiors. (remote_target::add_current_inferior_and_thread)
13826 (remote_target::process_initial_stop_replies)
13827 (remote_target::start_remote)
13828 (remote_target::remote_serial_quit_handler): Pass down target.
13829 (remote_target::remote_unpush_target): New remote_target
13830 parameter. Unpush the target from all inferiors.
13831 (remote_target::remote_unpush_and_throw): New remote_target
13832 parameter. Pass it down.
13833 (remote_target::open_1): Check whether the current inferior has
13834 execution instead of checking whether any inferior is live. Pass
13835 target down.
13836 (remote_target::remote_detach_1): Pass down target. Use
13837 remote_unpush_target.
13838 (extended_remote_target::attach): Pass down target.
13839 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13840 (remote_target::append_resumption): Pass down target.
13841 (remote_target::append_pending_thread_resumptions)
13842 (remote_target::remote_resume_with_hc, remote_target::resume)
13843 (remote_target::commit_resume): Pass down target.
13844 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13845 (remote_target::interrupt_query)
13846 (remote_target::remove_new_fork_children)
13847 (remote_target::check_pending_events_prevent_wildcard_vcont)
13848 (remote_target::remote_parse_stop_reply)
13849 (remote_target::process_stop_reply): Pass down target.
13850 (first_remote_resumed_thread): New remote_target parameter. Pass
13851 it down.
13852 (remote_target::wait_as): Pass down target.
13853 (unpush_and_perror): New remote_target parameter. Pass it down.
13854 (remote_target::readchar, remote_target::remote_serial_write)
13855 (remote_target::getpkt_or_notif_sane_1)
13856 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13857 down target.
13858 (remote_target::mourn_inferior): Pass down target. Use
13859 remote_unpush_target.
13860 (remote_target::core_of_thread)
13861 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13862 (remote_target::pid_to_exec_file)
13863 (remote_target::thread_handle_to_thread_info): Pass down target.
13864 (remote_target::async_wait_fd): New.
13865 * riscv-fbsd-tdep.c: Include "inferior.h".
13866 (riscv_fbsd_get_thread_local_address): Pass down target.
13867 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13868 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13869 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13870 Adjust.
13871 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13872 * solib-svr4.c (enable_break): Pass down target.
13873 * spu-multiarch.c (parse_spufs_run): Pass down target.
13874 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13875 * target-delegates.c: Regenerate.
13876 * target.c (g_target_stack): Delete.
13877 (current_top_target): Return the current inferior's top target.
13878 (target_has_execution_1): Refer to the passed-in inferior's top
13879 target.
13880 (target_supports_terminal_ours): Check whether the initial
13881 inferior was already created.
13882 (decref_target): New.
13883 (target_stack::push): Incref/decref the target.
13884 (push_target, push_target, unpush_target): Adjust.
13885 (target_stack::unpush): Defref target.
13886 (target_is_pushed): Return bool. Adjust to refer to the current
13887 inferior's target stack.
13888 (dispose_inferior): Delete, and inline parts ...
13889 (target_preopen): ... here. Only dispose of the current inferior.
13890 (target_detach): Hold strong target reference while detaching.
13891 Pass target down.
13892 (target_thread_name): Add assertion.
13893 (target_resume): Pass down target.
13894 (target_ops::beneath, find_target_at): Adjust to refer to the
13895 current inferior's target stack.
13896 (get_dummy_target): New.
13897 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13898 has a thread running.
13899 (initialize_targets): Rename to ...
13900 (_initialize_target): ... this.
13901 * target.h: Include "gdbsupport/refcounted-object.h".
13902 (struct target_ops): Inherit refcounted_object.
13903 (target_ops::shortname, target_ops::longname): Make const.
13904 (target_ops::async_wait_fd): New method.
13905 (decref_target): Declare.
13906 (struct target_ops_ref_policy): New.
13907 (target_ops_ref): New typedef.
13908 (get_dummy_target): Declare function.
13909 (target_is_pushed): Return bool.
13910 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
13911 (all_matching_threads_iterator::all_matching_threads_iterator):
13912 Handle filter target.
13913 * thread-iter.h (struct all_matching_threads_iterator, struct
13914 all_matching_threads_range, class all_non_exited_threads_range):
13915 Filter by target too. Remove explicit.
13916 * thread.c (threads_executing): Delete.
13917 (inferior_thread): Pass down current inferior.
13918 (clear_thread_inferior_resources): Pass down thread pointer
13919 instead of ptid_t.
13920 (add_thread_silent, add_thread_with_info, add_thread): Add
13921 process_stratum_target parameter. Use it for thread and inferior
13922 searches.
13923 (is_current_thread): New.
13924 (thread_info::deletable): Use it.
13925 (find_thread_ptid, thread_count, in_thread_list)
13926 (thread_change_ptid, set_resumed, set_running): New
13927 process_stratum_target parameter. Pass it down.
13928 (set_executing): New process_stratum_target parameter. Pass it
13929 down. Adjust reference to 'threads_executing'.
13930 (threads_are_executing): New process_stratum_target parameter.
13931 Adjust reference to 'threads_executing'.
13932 (set_stop_requested, finish_thread_state): New
13933 process_stratum_target parameter. Pass it down.
13934 (switch_to_thread): Also match inferior.
13935 (switch_to_thread): New process_stratum_target parameter. Pass it
13936 down.
13937 (update_threads_executing): Reimplement.
13938 * top.c (quit_force): Pop targets from all inferior.
13939 (gdb_init): Don't call initialize_targets.
13940 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13941 Declare.
13942 (windows_add_thread, windows_delete_thread): Adjust.
13943 (get_windows_debug_event): Rename to ...
13944 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13945 * tracefile-tfile.c (tfile_target_open): Pass down target.
13946 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13947 Forward declare.
13948 (switch_to_thread): Add process_stratum_target parameter.
13949 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13950 parameter. Use it.
13951 (mi_on_resume): Pass target down.
13952 * nat/fork-inferior.c (startup_inferior): Add
13953 process_stratum_target parameter. Pass it down.
13954 * nat/fork-inferior.h (startup_inferior): Add
13955 process_stratum_target parameter.
13956 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13957
13958 2020-01-10 Pedro Alves <palves@redhat.com>
13959
13960 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13961 directly. Instead find the first thread in the thread list and
13962 use switch_to_thread.
13963
13964 2020-01-10 Pedro Alves <palves@redhat.com>
13965
13966 * remote.c (remote_target::remote_add_inferior): Don't bind a
13967 process to the current inferior if the current inferior is already
13968 bound to a process.
13969
13970 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13971 Pedro Alves <palves@redhat.com>
13972
13973 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13974 If no process is specified, return null_ptid instead of
13975 inferior_ptid.
13976 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13977 TARGET_WAITKIND_SIGNALLED with no pid.
13978
13979 2020-01-10 Pedro Alves <palves@redhat.com>
13980
13981 * remote.c (first_remote_resumed_thread): New.
13982 (remote_target::wait_as): Use it as default event_ptid instead of
13983 inferior_ptid.
13984
13985 2020-01-10 Pedro Alves <palves@redhat.com>
13986
13987 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13988
13989 2020-01-10 Pedro Alves <palves@redhat.com>
13990
13991 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13992 not -1.
13993
13994 2020-01-10 Pedro Alves <palves@redhat.com>
13995
13996 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13997 ptid to get_last_target_status.
13998 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13999 ptid to get_last_target_status.
14000 * infcmd.c (continue_command): Don't pass a target_waitstatus to
14001 get_last_target_status.
14002 (info_program_command): Don't pass a target_waitstatus to
14003 get_last_target_status.
14004 * infrun.c (init_wait_for_inferior): Use
14005 nullify_last_target_wait_ptid.
14006 (get_last_target_status): Handle nullptr arguments.
14007 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
14008 (print_stop_event): Don't pass a ptid to get_last_target_status.
14009 (normal_stop): Don't pass a ptid to get_last_target_status.
14010 * infrun.h (get_last_target_status, set_last_target_status): Move
14011 comments here and update.
14012 (nullify_last_target_wait_ptid): Declare.
14013 * linux-fork.c (fork_load_infrun_state): Remove local extern
14014 declaration of nullify_last_target_wait_ptid.
14015 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
14016 to get_last_target_status.
14017
14018 2020-01-10 Pedro Alves <palves@redhat.com>
14019
14020 * gdbthread.h (scoped_restore_current_thread)
14021 <dont_restore, restore, m_dont_restore>: Declare.
14022 * thread.c (thread_alive): Add assertion. Return bool.
14023 (switch_to_thread_if_alive): New.
14024 (prune_threads): Switch inferior/thread.
14025 (print_thread_info_1): Switch thread before calling target methods.
14026 (scoped_restore_current_thread::restore): New, factored out from
14027 ...
14028 (scoped_restore_current_thread::~scoped_restore_current_thread):
14029 ... this.
14030 (scoped_restore_current_thread::scoped_restore_current_thread):
14031 Add assertion.
14032 (thread_apply_all_command, thread_select): Use
14033 switch_to_thread_if_alive.
14034 * infrun.c (proceed, restart_threads, handle_signal_stop)
14035 (switch_back_to_stepped_thread): Switch current thread before
14036 calling target methods.
14037
14038 2020-01-10 Pedro Alves <palves@redhat.com>
14039
14040 * inferior.c (switch_to_inferior_no_thread): New function,
14041 factored out from ...
14042 (inferior_command): ... here.
14043 * inferior.h (switch_to_inferior_no_thread): Declare.
14044 * mi/mi-main.c (run_one_inferior): Use
14045 switch_to_inferior_no_thread.
14046
14047 2020-01-10 Pedro Alves <palves@redhat.com>
14048
14049 * infcmd.c (kill_command): Remove dead code.
14050
14051 2020-01-10 Pedro Alves <palves@redhat.com>
14052
14053 * remote.c (remote_target::mourn_inferior): No longer check
14054 whether the target is running.
14055
14056 2020-01-10 Pedro Alves <palves@redhat.com>
14057
14058 * corelow.c (core_target::has_execution): Change parameter type to
14059 inferior pointer.
14060 * inferior.c (number_of_live_inferiors): Use
14061 inferior::has_execution instead of target_has_execution_1.
14062 * inferior.h (inferior::has_execution): New.
14063 * linux-thread-db.c (thread_db_target::update_thread_list): Use
14064 inferior::has_execution instead of target_has_execution_1.
14065 * process-stratum-target.c
14066 (process_stratum_target::has_execution): Change parameter type to
14067 inferior pointer. Check the inferior's PID instead of
14068 inferior_ptid.
14069 * process-stratum-target.h
14070 (process_stratum_target::has_execution): Change parameter type to
14071 inferior pointer.
14072 * record-full.c (record_full_core_target::has_execution): Change
14073 parameter type to inferior pointer.
14074 * target.c (target_has_execution_1): Change parameter type to
14075 inferior pointer.
14076 (target_has_execution_current): Adjust.
14077 * target.h (target_ops::has_execution): Change parameter type to
14078 inferior pointer.
14079 (target_has_execution_1): Change parameter type to inferior
14080 pointer. Change return type to bool.
14081 * tracefile.h (tracefile_target::has_execution): Change parameter
14082 type to inferior pointer.
14083
14084 2020-01-10 Pedro Alves <palves@redhat.com>
14085
14086 * exceptions.c (print_flush): Remove current_top_target() check.
14087
14088 2020-01-10 Pedro Alves <palves@redhat.com>
14089
14090 * remote.c (show_remote_exec_file): Show the current inferior's
14091 exec-file instead of the command variable's value.
14092
14093 2020-01-10 Pedro Alves <palves@redhat.com>
14094
14095 * record-full.c (record_full_resume_ptid): New global.
14096 (record_full_target::resume): Set it.
14097 (record_full_wait_1): Use record_full_resume_ptid instead of
14098 inferior_ptid.
14099
14100 2020-01-10 Pedro Alves <palves@redhat.com>
14101
14102 * gdbthread.h (scoped_restore_current_thread)
14103 <dont_restore, restore, m_dont_restore>: Declare.
14104 * thread.c (thread_alive): Add assertion. Return bool.
14105 (switch_to_thread_if_alive): New.
14106 (prune_threads): Switch inferior/thread.
14107 (print_thread_info_1): Switch thread before calling target methods.
14108 (scoped_restore_current_thread::restore): New, factored out from
14109 ...
14110 (scoped_restore_current_thread::~scoped_restore_current_thread):
14111 ... this.
14112 (scoped_restore_current_thread::scoped_restore_current_thread):
14113 Add assertion.
14114 (thread_apply_all_command, thread_select): Use
14115 switch_to_thread_if_alive.
14116
14117 2020-01-10 George Barrett <bob@bob131.so>
14118
14119 * stap-probe.c (stap_modify_semaphore): Don't check for null
14120 semaphores.
14121 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
14122 for null semaphores.
14123
14124 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14125
14126 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
14127 all source windows, and maintain horizontal scroll status while
14128 doing so.
14129
14130 2020-01-09 Tom Tromey <tom@tromey.com>
14131
14132 PR tui/18932:
14133 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
14134 update_source_window, not print_source_lines.
14135
14136 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14137
14138 * tui/tui.c (tui_enable): Register tui hooks after calling
14139 tui_display_main.
14140
14141 2020-01-09 Christian Biesinger <cbiesinger@google.com>
14142
14143 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
14144
14145 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
14146
14147 * thread.c (print_thread_info_1): Fix indentation.
14148
14149 2020-01-09 Christian Biesinger <cbiesinger@google.com>
14150
14151 * symtab.c (general_symbol_info::compute_and_set_names): Move the
14152 unique_xmalloc_ptr outside the if to always free the demangled name.
14153
14154 2020-01-08 Tom Tromey <tromey@adacore.com>
14155
14156 * xcoffread.c (enter_line_range, read_xcoff_symtab)
14157 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
14158 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
14159 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
14160 Remove.
14161 (section_offsets): New typedef.
14162 * symtab.c (fixup_section, get_msymbol_address): Update.
14163 * symmisc.c (dump_msymbols): Update.
14164 * symfile.h (relative_addr_info_to_section_offsets)
14165 (symfile_map_offsets_to_segments): Update.
14166 * symfile.c (build_section_addr_info_from_objfile)
14167 (init_objfile_sect_indices): Update.
14168 (struct place_section_arg): Change type of "offsets".
14169 (place_section): Update.
14170 (relative_addr_info_to_section_offsets): Change type of
14171 "section_offsets". Remove "num_sections" parameter.
14172 (default_symfile_offsets, syms_from_objfile_1)
14173 (set_objfile_default_section_offset): Update.
14174 (reread_symbols): No need to preserve section offsets by hand.
14175 (symfile_map_offsets_to_segments): Change type of "offsets".
14176 * stap-probe.c (relocate_address): Update.
14177 * stabsread.h (process_one_symbol): Update.
14178 * solib-target.c (struct lm_info_target) <offsets>: Change type.
14179 (solib_target_relocate_section_addresses): Update.
14180 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
14181 Update.
14182 * solib-frv.c (frv_relocate_main_executable): Update.
14183 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
14184 * solib-aix.c (solib_aix_get_section_offsets): Change return
14185 type.
14186 (solib_aix_solib_create_inferior_hook): Update.
14187 * remote.c (remote_target::get_offsets): Update.
14188 * psymtab.c (find_pc_sect_psymtab): Update.
14189 * psympriv.h (struct partial_symbol) <address, text_low,
14190 text_high>: Update.
14191 * objfiles.h (obj_section_offset): Update.
14192 (struct objfile) <section_offsets>: Change type.
14193 <num_sections>: Remove.
14194 (objfile_relocate): Update.
14195 * objfiles.c (entry_point_address_query): Update
14196 (relocate_one_symbol): Change type of "section_offsets".
14197 (objfile_relocate1, objfile_relocate1): Change type of
14198 "new_offsets".
14199 (objfile_rebase1): Update.
14200 * mipsread.c (mipscoff_symfile_read): Update.
14201 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
14202 parameter.
14203 * mdebugread.c (parse_symbol): Change type of "section_offsets".
14204 (parse_external, psymtab_to_symtab_1): Update.
14205 * machoread.c (macho_symfile_offsets): Update.
14206 * ia64-tdep.c (ia64_find_unwind_table): Update.
14207 * hppa-tdep.c (read_unwind_info): Update.
14208 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
14209 * dwarf2read.c (create_addrmap_from_index)
14210 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14211 (process_psymtab_comp_unit_reader, add_partial_symbol)
14212 (add_partial_subprogram, process_full_comp_unit)
14213 (read_file_scope, read_func_scope, read_lexical_block_scope)
14214 (read_call_site_scope, dwarf2_rnglists_process)
14215 (dwarf2_ranges_process, dwarf2_ranges_read)
14216 (dwarf_decode_lines_1, var_decode_location, new_symbol)
14217 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
14218 Update.
14219 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14220 Update.
14221 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14222 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14223 (process_one_symbol): Change type of "section_offsets".
14224 * ctfread.c (get_objfile_text_range): Update.
14225 * coffread.c (coff_symtab_read, enter_linenos)
14226 (process_coff_symbol): Update.
14227 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14228 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14229
14230 2020-01-08 Tom Tromey <tromey@adacore.com>
14231
14232 * dwarf2read.c (parse_macro_definition): Use std::string.
14233 (parse_macro_definition): Likewise.
14234
14235 2020-01-08 Tom Tromey <tromey@adacore.com>
14236
14237 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14238 (ATTR_ALLOC_CHUNK): Remove.
14239
14240 2020-01-08 Tom Tromey <tromey@adacore.com>
14241
14242 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14243
14244 2020-01-08 Tom Tromey <tromey@adacore.com>
14245
14246 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14247 (dwarf2_compute_name, open_dwo_file): Likewise.
14248 (process_enumeration_scope): Use std::vector.
14249 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14250 (partial_die_info::fixup, dwarf2_start_subfile)
14251 (guess_full_die_structure_name, dwarf2_name): Likewise.
14252 (determine_prefix): Update.
14253 (guess_full_die_structure_name): Make return type const.
14254 (partial_die_full_name): Return unique_xmalloc_ptr.
14255 (DW_FIELD_ALLOC_CHUNK): Remove.
14256
14257 2020-01-07 Tom Tromey <tromey@adacore.com>
14258
14259 PR build/24937:
14260 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14261
14262 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14263
14264 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14265
14266 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14267
14268 * stack.c (print_frame_info): Move disassemble_next_line code
14269 inside source_print block.
14270
14271 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14272
14273 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14274 gdb/signals.h, as we are now using native signal symbols.
14275
14276 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
14277
14278 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14279 overflow by an early check of content vs threshold.
14280 * tui/tui-source.c (tui_source_window::line_is_displayed):
14281 Likewise.
14282
14283 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14284
14285 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14286
14287 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14288
14289 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14290 export table if no section contains it's RVA.
14291
14292 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14293
14294 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14295
14296 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
14297
14298 * source.c (print_source_lines_base): Set last_line_listed.
14299
14300 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
14301
14302 * tui/tui-disasm.c: Remove trailing spaces.
14303
14304 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14305 Pedro Alves <palves@redhat.com>
14306
14307 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14308 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14309 (windows_gdb_signal_to_target): New function, uses the above
14310 enumeration to convert GDB internal signal codes to equivalent
14311 Windows codes.
14312 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14313 * windows-nat.c: Include "gdb_wait.h".
14314 (get_windows_debug_event): Extract the fatal exception from the
14315 exit status and convert to the equivalent Posix signal number.
14316 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14317 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14318 * gdbsupport/gdb_wait.c: New file, implements
14319 windows_status_to_termsig.
14320 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14321 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14322
14323 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14324
14325 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14326 show_layout.
14327
14328 2020-01-05 Luis Machado <luis.machado@linaro.org>
14329
14330 * aarch64-linux-nat.c
14331 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14332 and bfd_mach_aarch64.
14333
14334 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14335
14336 * ui-file.c (stdio_file::can_emit_style_escape)
14337 (tee_file::can_emit_style_escape): Ensure style is used also on
14338 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14339 to gdb_stdout.
14340 * main.c (set_gdb_data_directory): Use file style to output the
14341 warning that the given pathname is not a directory.
14342 * top.c (show_history_filename, gdb_safe_append_history)
14343 (show_gdb_datadir): Use file style.
14344
14345 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
14346
14347 * solib-target.c (struct lm_info_target):
14348 Change offsets to be a unique_xmalloc_ptr.
14349 (solib_target_relocate_section_addresses): Update.
14350
14351 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
14352
14353 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14354
14355 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14356
14357 * MAINTAINERS (Write After Approval): Add myself.
14358
14359 2020-01-02 Luis Machado <luis.machado@linaro.org>
14360
14361 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14362 Cell BE architecture.
14363 * target.h (struct target_ops) <thread_architecture>: Likewise.
14364
14365 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
14366
14367 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14368
14369 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
14370
14371 * MAINTAINERS (Write After Approval): Add myself.
14372
14373 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14374
14375 * gdbarch.sh: Update copyright year range of generated files.
14376
14377 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14378
14379 Update copyright year range in all GDB files.
14380
14381 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14382
14383 * copyright.py: Convert to Python 3.
14384
14385 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14386
14387 * copyright.py: Adapt after move of gnulib directory from gdb
14388 directory to toplevel directory.
14389
14390 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14391
14392 * copyright.py (main): Exit if run from the wrong directory.
14393
14394 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14395
14396 * top.c (print_gdb_version): Change copyright year to 2020.
14397
14398 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14399
14400 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
14401
14402 For older changes see ChangeLog-2019.
14403 \f
14404 Local Variables:
14405 mode: change-log
14406 left-margin: 8
14407 fill-column: 74
14408 version-control: never
14409 coding: utf-8
14410 End:
This page took 0.343889 seconds and 4 git commands to generate.