]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Remove target_has_all_memory
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
5b8a4776
TT
12020-09-28 Tom Tromey <tom@tromey.com>
2
3 * target.c (target_has_all_memory_1): Remove.
4 * target.h (target_has_all_memory): Remove define.
5 (target_has_all_memory_1): Don't declare.
6
bd356ec6
SM
72020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
8
9 * ser-base.c: Adjust comments formatting.
10
2c72d5e5
TT
112020-09-27 Tom Tromey <tom@tromey.com>
12
13 PR tui/25342:
14 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
15
35a98237
TT
162020-09-27 Tom Tromey <tom@tromey.com>
17
18 PR tui/25342:
19 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
20
9e820dec
TT
212020-09-27 Tom Tromey <tom@tromey.com>
22
23 * unittests/tui-selftests.c: Update.
24 * tui/tui-winsource.h (struct tui_source_window_base)
25 <extra_margin, show_line_number, refresh_pad>: New methods.
26 <m_max_length, m_pad>: New members.
27 (tui_copy_source_line): Update.
28 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
29 first_col, line_width, ndigits parameters. Add length.
30 (tui_source_window_base::show_source_line): Write to pad. Line
31 number now 0-based.
32 (tui_source_window_base::refresh_pad): New method.
33 (tui_source_window_base::show_source_content): Write to pad. Call
34 refresh_pad.
35 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
36 not refill.
37 (tui_source_window_base::update_exec_info): Call
38 show_line_number.
39 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
40 method.
41 <m_digits>: New member.
42 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
43 and m_max_length.
44 (tui_source_window::show_line_number): New method.
45 * tui/tui-io.h (tui_puts): Fix comment.
46 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
47 m_max_length.
48
c15c15c8
TT
492020-09-27 Tom Tromey <tom@tromey.com>
50
51 * tui/tui-winsource.c
52 (tui_source_window_base::set_is_exec_point_at): Don't call
53 show_source_line.
54
149830c1
TT
552020-09-27 Tom Tromey <tom@tromey.com>
56
57 * python/py-tui.c (class tui_py_window) <refresh_window>: New
58 method.
59 <erase>: Update.
60 <cursor_x, cursor_y>: Remove.
61 <m_inner_window>: New member.
62 (tui_py_window::rerender): Create inner window.
63 (tui_py_window::output): Write to inner window.
64
8f9929bb
GR
652020-09-26 Gareth Rees <grees@undo.io> (tiny change)
66
67 PR python/26586
68 * cli/cli-script.c (execute_control_commands): don't set
69 instream to nullptr here as this breaks the from_tty argument
70 to gdb.execute in Python.
71 (execute_user_command): set instream to nullptr here instead.
72
956bdb59
SM
732020-09-25 Simon Marchi <simon.marchi@efficios.com>
74
75 * infrun.h (infrun_debug_printf): Fix formatting.
76 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
77
3b93626b
SJ
782020-09-25 Saagar Jha <saagar@saagarjha.com>
79
80 * compile/compile-object-load.h (struct munmap_list): Add
81 explicitly-defined move constructor.
82
b551a89f
TT
832020-09-24 Tom Tromey <tromey@adacore.com>
84
85 PR tui/26638:
86 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
87 method.
88 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
89 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
90 (tui_prev_win): Rewrite.
91
99bb393f
HD
922020-09-23 Hannes Domani <ssbssa@yahoo.de>
93
94 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
95 in WOW64 processes as SIGINT.
96 * nat/windows-nat.h: Make wow64_process a shared variable.
97 * windows-nat.c: Remove static wow64_process variable.
98
20a5fcbd
TT
992020-09-23 Tom Tromey <tom@tromey.com>
100
101 PR symtab/25470:
102 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
103 offset and bit size.
104 * printcmd.c (print_scalar_formatted): Handle zero-length
105 integer.
106 (print_scalar_formatted): Use bit_size_differs_p.
107 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
108 constant.
109 (union type_specific): <int_stuff>: New member.
110 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
111 methods.
112 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
113 TYPE_SPECIFIC_FIELD.
114 (recursive_dump_type, copy_type_recursive): Update.
115 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
116 DW_AT_data_bit_offset.
117
bac51ab7
TT
1182020-09-23 Tom Tromey <tom@tromey.com>
119
120 * utils.h (class gdb_argv): Add move operators.
121 <append>: New methods.
122 * compile/compile.c (build_argc_argv): Remove.
123 (compile_args_argc): Remove.
124 (compile_args_argv): Change type.
125 (set_compile_args): Simplify.
126 (append_args): Remove.
127 (filter_args): Remove argcp parameter.
128 (get_args): Return gdb_argv. Simplify.
129 (compile_to_object): Update.
130
92677124
TT
1312020-09-23 Tom Tromey <tom@tromey.com>
132
133 * compile/compile-object-run.c (do_module_cleanup)
134 <~do_module_cleanup> :Remove.
135 (do_module_cleanup): Update.
136 * compile/compile-object-load.h (struct munmap_list): Add move
137 assignment operator.
138 <source_file>: Now a std::string.
139 <munmap_list>: Rename. No longer a pointer.
140 * compile/compile-object-load.c (struct setup_sections_data): Add
141 constructor.
142 <setup_one_section>: Declare.
143 <munmap_list>: Move earlier.
144 <m_bfd>: New member.
145 <m_last_size, m_last_section_first, m_last_prot,
146 m_last_max_alignment>: Rename, add initializers where needed.
147 (setup_sections_data::setup_one_section): Rename from
148 setup_sections. Update.
149 (compile_object_load): Update. Don't use bfd_map_over_sections.
150
e616f60a
TT
1512020-09-23 Tom Tromey <tom@tromey.com>
152
153 * compile/compile-object-run.c (struct do_module_cleanup): Add
154 parameters to constructor. Update destructor.
155 <source_file, scope, scope_data, out_value_type, out_value_addr,
156 munmap_list_head, objfile_name_string>: Remove.
157 <module>: New member.
158 (do_module_cleanup): Update.
159 (compile_object_run): Update.
160
e947a848
TT
1612020-09-23 Tom Tromey <tom@tromey.com>
162
163 * compile/compile.c (eval_compile_command): Update.
164 * compile/compile-object-run.h (compile_object_run): Take a
165 compile_module_up.
166 * compile/compile-object-run.c (compile_object_run): Take a
167 compile_module_up.
168 * compile/compile-object-load.h (struct compile_module): Add
169 constructor, destructor.
170 (compile_module_up): New typedef.
171 (compile_object_load): Return compile_object_up.
172 * compile/compile-object-load.c (compile_object_load): Return
173 compile_module_up.
174
0dbf6ee6
TT
1752020-09-23 Tom Tromey <tom@tromey.com>
176
177 * compile/compile-object-run.c (struct do_module_cleanup): Add
178 constructor, destructor.
179 <objfile_name_string>: Don't use struct hack.
180 (do_module_cleanup): Use delete.
181 (compile_object_run): Use new.
182
ebe824f5
TT
1832020-09-23 Tom Tromey <tom@tromey.com>
184
185 * compile/compile-cplus-types.c
186 (compile_cplus_convert_struct_or_union): Use std::vector.
187 (compile_cplus_convert_func): Likewise.
188 * compile/compile-c-types.c (convert_func): Use std::vector.
189
5dd918d9
TT
1902020-09-21 Tom Tromey <tromey@adacore.com>
191
192 * sparc-tdep.c (sparc32_skip_prologue): Use
193 skip_prologue_using_sal.
194
5486c517
TT
1952020-09-19 Tom Tromey <tom@tromey.com>
196
197 * symfile.c (add_section_size_callback): Remove.
198 (load_one_section): Rename from load_section_callback. Change
199 parameters.
200 (generic_load): Use foreach.
201
8a6bb1d1
TT
2022020-09-19 Tom Tromey <tom@tromey.com>
203
204 * exec.c (add_to_section_table): Remove.
205 (build_section_table): Use foreach.
206
08f93a1a
TT
2072020-09-19 Tom Tromey <tom@tromey.com>
208
209 * elfread.c (elf_locate_sections): Change parameters.
210 (elf_symfile_read): Use foreach.
211
03cd72b8
TT
2122020-09-19 Tom Tromey <tom@tromey.com>
213
214 * cli/cli-dump.c (struct callback_data): Remove.
215 (restore_one_section): Rename from restore_section_callback.
216 Change parameters.
217 (restore_binary_file): Change parameters.
218 (restore_command): Use foreach.
219
f4f2b85f
TT
2202020-09-19 Tom Tromey <tom@tromey.com>
221
222 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
223 (gcore_copy_callback): Likewise.
224 (gcore_memory_sections): Use foreach.
225
b35c1d1c
TT
2262020-09-19 Tom Tromey <tom@tromey.com>
227
228 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
229 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
230 parameters.
231 (generic_elf_osabi_sniffer): Use foreach.
232 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
233 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
234
5bb6e9dd
TT
2352020-09-19 Tom Tromey <tom@tromey.com>
236
237 * dwarf2/read.c (locate_dwz_sections): Change parameters.
238 (dwarf2_get_dwz_file): Use foreach.
239 (dwarf2_locate_dwo_sections): Change parameters.
240 (open_and_init_dwo_file): Use foreach.
241 (dwarf2_locate_common_dwp_sections): Change parameters.
242 (open_and_init_dwp_file): Use foreach.
243
ad7277da
TT
2442020-09-19 Tom Tromey <tom@tromey.com>
245
246 * symfile.h: (find_lowest_section): Don't declare.
247 * symfile.c (find_lowest_section): Now static. Change
248 parameters.
249 (struct place_section_arg): Remove.
250 (place_section): Change parameters.
251 (addr_info_make_relative): Use foreach.
252 (symfile_dummy_outputs): Remove.
253 (default_symfile_relocate): Use foreach.
254
cb814f2e
TT
2552020-09-19 Tom Tromey <tom@tromey.com>
256
257 * objfiles.c (add_to_objfile_sections): Rename from
258 add_to_objfile_sections_full.
259 (add_to_objfile_sections): Remove.
260 (build_objfile_section_table): Use foreach.
261
3cabfd26
TT
2622020-09-19 Tom Tromey <tom@tromey.com>
263
264 * stap-probe.c (get_stap_base_address_1): Remove.
265 (get_stap_base_address): Use foreach.
266
1ce51eb5
TT
2672020-09-19 Tom Tromey <tom@tromey.com>
268
269 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
270 parameters.
271 (gdb_bfd_close_or_warn): Use foreach.
272
a190fabb
TT
2732020-09-19 Tom Tromey <tom@tromey.com>
274
275 * corelow.c (add_to_thread_list): Change parameters.
276 (core_target_open): Use foreach.
277
cafb0d81
TT
2782020-09-19 Tom Tromey <tom@tromey.com>
279
280 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
281 existing function.
282
c8d5abea
AB
2832020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
284
285 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
286 for arrays.
287
6d816919
AB
2882020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
289
290 * eval.c: Remove 'f-lang.h' include.
291 (value_f90_subarray): Moved to f-lang.c.
292 (eval_call): Renamed to...
293 (evaluate_subexp_do_call): ...this, is no longer static, header
294 comment moved into header file.
295 (evaluate_funcall): Update call to eval_call.
296 (skip_undetermined_arglist): Moved to f-lang.c.
297 (fortran_value_subarray): Likewise.
298 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
299 moved to evaluate_subexp_f.
300 (calc_f77_array_dims): Moved to f-lang.c
301 * expprint.c (print_subexp_funcall): New function.
302 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
303 moved to print_subexp_f, OP_FUNCALL uses new function.
304 (dump_subexp_body_funcall): New function.
305 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
306 moved to dump_subexp_f, OP_FUNCALL uses new function.
307 * expression.h (evaluate_subexp_do_call): Declare.
308 * f-lang.c (value_f90_subarray): Moved from eval.c.
309 (skip_undetermined_arglist): Likewise.
310 (calc_f77_array_dims): Likewise.
311 (fortran_value_subarray): Likewise.
312 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
313 (operator_length_f): Likewise.
314 (print_subexp_f): Likewise.
315 (dump_subexp_body_f): Likewise.
316 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
317 declaration of this operation to here.
318 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
319 support moved to operator_length_f.
320 * parser-defs.h (dump_subexp_body_funcall): Declare.
321 (print_subexp_funcall): Declare.
322 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
323 fortran-operator.def.
324
8c37706a
AB
3252020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
326
327 * eval.c (fortran_value_subarray): New function, content is taken
328 from...
329 (evaluate_subexp_standard): ...here, in two places. Now arrays
330 and strings both call the new function.
331 (calc_f77_array_dims): Add header comment, handle strings.
332
14f9473c
VC
3332020-09-18 Victor Collod <vcollod@nvidia.com>
334
335 PR gdb/26635
336 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
337 (i386_analyze_prologue): Call i386_skip_endbr.
338
b60cea74
TT
3392020-09-18 Tom Tromey <tromey@adacore.com>
340
341 * windows-nat.c (struct windows_nat_target) <wait>: Update.
342 (windows_nat_target::wait): Update.
343 * target/wait.h (enum target_wait_flag): New. Use
344 DEF_ENUM_FLAGS_TYPE.
345 * target/target.h (target_wait): Change type of options.
346 * target.h (target_options_to_string, default_target_wait):
347 Update.
348 (struct target_ops) <wait>: Change type of options.
349 * target.c (target_wait, default_target_wait, do_option): Change
350 type of "options".
351 (target_options_to_string): Likewise.
352 * target-delegates.c: Rebuild.
353 * target-debug.h (target_debug_print_target_wait_flags): Rename
354 from target_debug_print_options.
355 * sol-thread.c (class sol_thread_target) <wait>: Update.
356 (sol_thread_target::wait): Update.
357 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
358 (rs6000_nat_target::wait): Update.
359 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
360 Update.
361 (remote_target::wait_ns, remote_target::wait_as): Change type of
362 "options".
363 (remote_target::wait): Update.
364 * remote-sim.c (struct gdbsim_target) <wait>: Update.
365 (gdbsim_target::wait): Update.
366 * record-full.c (class record_full_base_target) <wait>: Update.
367 (record_full_wait_1): Change type of "options".
368 (record_full_base_target::wait): Update.
369 * record-btrace.c (class record_btrace_target) <wait>: Update.
370 (record_btrace_target::wait): Update.
371 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
372 Update.
373 (ravenscar_thread_target::wait): Update.
374 * procfs.c (class procfs_target) <wait>: Update.
375 (procfs_target::wait): Update.
376 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
377 * obsd-nat.c (obsd_nat_target::wait): Update.
378 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
379 (nto_procfs_target::wait): Update.
380 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
381 * nbsd-nat.c (nbsd_wait): Change type of "options".
382 (nbsd_nat_target::wait): Update.
383 * linux-thread-db.c (class thread_db_target) <wait>: Update.
384 (thread_db_target::wait): Update.
385 * linux-nat.h (class linux_nat_target) <wait>: Update.
386 * linux-nat.c (linux_nat_target::wait): Update.
387 (linux_nat_wait_1): Update.
388 * infrun.c (do_target_wait_1, do_target_wait): Change type of
389 "options".
390 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
391 * inf-ptrace.c (inf_ptrace_target::wait): Update.
392 * go32-nat.c (struct go32_nat_target) <wait>: Update.
393 (go32_nat_target::wait): Update.
394 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
395 * gnu-nat.c (gnu_nat_target::wait): Update.
396 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
397 * fbsd-nat.c (fbsd_nat_target::wait): Update.
398 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
399 * darwin-nat.c (darwin_nat_target::wait): Update.
400 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
401 (bsd_uthread_target::wait): Update.
402 * aix-thread.c (class aix_thread_target) <wait>: Update.
403 (aix_thread_target::wait): Update.
404
0295dde6
AB
4052020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
406
407 * compile/compile-object-run.c (create_copied_type_recursive): New
408 function.
409 (compile_object_run): Use new function.
410
d3483b43
JT
4112020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
412
413 * NEWS: Mention x86_64 Cygwin core file support.
414
e7d612ad
JT
4152020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
416
417 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
418 (core_process_module_section): Handle NOTE_INFO_MODULE64.
419
aff9d387
JT
4202020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
421
62a5151b
JT
422 * windows-tdep.h: Add prototypes.
423 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
424 (i386_windows_core_pid_to_str): Move and rename ...
425 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
426 (windows_core_pid_to_str): ... and here.
427 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
428
4292020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
430 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
431 (amd64_windows_init_abi_common): ... and register.
432
7d155da3
JT
4332020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
434
435 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
436 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
437
e8ef12b9
PA
4382020-09-18 Pedro Alves <pedro@palves.net>
439
440 PR gdb/26631
441 * thread.c (thread_find_command): Switch inferior before calling
442 target methods.
443
c1e1314d
TT
4442020-09-17 Tom Tromey <tromey@adacore.com>
445
446 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
447 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
448 (tdesc_arch_data_up): New typedef.
449 (tdesc_use_registers, tdesc_data_alloc): Update.
450 (tdesc_data_cleanup): Don't declare.
451 * target-descriptions.c (tdesc_data_alloc): Return a
452 tdesc_arch_data_up.
453 (tdesc_arch_data_deleter::operator()): Rename from
454 tdesc_data_cleanup. Change argument type.
455 (tdesc_use_registers): Change early_data to an rvalue reference.
456 (tdesc_use_registers): Don't use delete.
457 * sparc-tdep.c (sparc32_gdbarch_init): Update.
458 * s390-tdep.c (s390_gdbarch_init): Update.
459 * rx-tdep.c (rx_gdbarch_init): Update.
460 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
461 * riscv-tdep.c (riscv_gdbarch_init): Update.
462 * or1k-tdep.c (or1k_gdbarch_init): Update.
463 * nios2-tdep.c (nios2_gdbarch_init): Update.
464 * nds32-tdep.c (nds32_gdbarch_init): Update.
465 * mips-tdep.c (mips_gdbarch_init): Update.
466 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
467 * m68k-tdep.c (m68k_gdbarch_init): Update.
468 * i386-tdep.c (i386_gdbarch_init): Update.
469 * arm-tdep.c (arm_gdbarch_init): Update.
470 * arc-tdep.c (arc_tdesc_init): Update.
471 (arc_gdbarch_init): Update.
472 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
473
0363df3d
HD
4742020-09-17 Hannes Domani <ssbssa@yahoo.de>
475
476 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
477 for WOW64 processes.
478
280a9412
TT
4792020-09-17 Tom Tromey <tom@tromey.com>
480
481 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
482
6108fd18
TT
4832020-09-17 Tom Tromey <tom@tromey.com>
484
485 * value.c (preserve_values): Update.
486 * python/py-type.c (save_objfile_types): Update.
487 * guile/scm-type.c (save_objfile_types): Update.
488 * gdbtypes.h (create_copied_types_hash): Return htab_up.
489 * gdbtypes.c (create_copied_types_hash): Return htab_up.
490 * compile/compile-object-run.c (compile_object_run): Update.
491
fa9b1164
TT
4922020-09-17 Tom Tromey <tom@tromey.com>
493
494 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
495 Remove.
496 <m_table>: Now htab_up.
497 * typeprint.c (typedef_hash_table::recursively_update)
498 (typedef_hash_table::add_template_parameters)
499 (typedef_hash_table::typedef_hash_table): Update.
500 (typedef_hash_table::~typedef_hash_table): Remove.
501 (typedef_hash_table::typedef_hash_table)
502 (typedef_hash_table::find_global_typedef)
503 (typedef_hash_table::find_typedef): Update.
504
eb53f105
TT
5052020-09-17 Tom Tromey <tom@tromey.com>
506
507 * target-descriptions.c (tdesc_use_registers): Use htab_up.
508
7a8a5d47
TT
5092020-09-17 Tom Tromey <tom@tromey.com>
510
511 * linespec.c (class decode_compound_collector)
512 <~decode_compound_collector>: Remove.
513 <m_unique_syms>: Now htab_up.
514 (decode_compound_collector::operator ()): Update.
515 (class symtab_collector) <~symtab_collector>: Remove.
516 <m_symtab_table>: Now htab_up.
517 (symtab_collector::operator ()): Update.
518
99032cfc
TT
5192020-09-17 Tom Tromey <tom@tromey.com>
520
521 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
522 (filename_seen_cache::clear): Update.
523 (~filename_seen_cache): Remove.
524 (filename_seen_cache::seen): Update.
525 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
526 htab_up.
527 <~filename_seen_cache>: Remove.
528 <traverse>: Update.
529
32580f6d
TT
5302020-09-17 Tom Tromey <tom@tromey.com>
531
532 * completer.c (completion_tracker::discard_completions)
533 (completion_tracker::~completion_tracker)
534 (completion_tracker::maybe_add_completion)
535 (completion_tracker::remove_completion)
536 (completion_tracker::recompute_lowest_common_denominator)
537 (completion_tracker::build_completion_result): Update.
538 * completer.h (class completion_tracker) <have_completions>:
539 Update.
540 <m_entries_hash>: Now htab_up.
541
c1fb9836
TT
5422020-09-17 Tom Tromey <tom@tromey.com>
543
544 * breakpoint.c (ambiguous_names_p): Use htab_up.
545
88f07206
TT
5462020-09-17 Tom Tromey <tom@tromey.com>
547
548 * auto-load.c (struct auto_load_pspace_info)
549 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
550 <loaded_script_files, loaded_script_texts>: Change type to
551 htab_up.
552 (~auto_load_pspace_info) Remove.
553 (init_loaded_scripts_info, maybe_add_script_file)
554 (maybe_add_script_text, auto_load_info_scripts): Update.
555
9519b2ee
TT
5562020-09-17 Tom Tromey <tromey@adacore.com>
557
558 * c-exp.y (name_obstack): Now static.
559
d2cd4113
CC
5602020-09-17 Chungyi Chi <demonic@csie.io>
561
562 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
563
b650a282
SM
5642020-09-16 Simon Marchi <simon.marchi@efficios.com>
565
566 * breakpoint.h (init_catchpoint): Change int parameter to bool.
567 (add_solib_catchpoint): Likewise.
568 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
569 to bool.
570 (add_solib_catchpoint): Change int parameter/variable to bool.
571 (catch_load_or_unload): Likewise.
572 (init_catchpoint): Likewise.
573 (create_fork_vfork_event_catchpoint): Likewise.
574 (catch_fork_command_1): Likewise.
575 (catch_exec_command_1): Likewise.
576
4d0bcfcf
SM
5772020-09-16 Simon Marchi <simon.marchi@efficios.com>
578
579 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
580 Change instance_flags to m_instance_flags.
581
fe830662
TT
5822020-09-16 Tom Tromey <tromey@adacore.com>
583
584 PR gdb/26598:
585 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
586
fe5ddfc3
JB
5872020-09-16 John Baldwin <jhb@FreeBSD.org>
588
589 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
590 PL_FLAG_EXEC.
591 (fbsd_nat_target::insert_exec_catchpoint)
592 (fbsd_nat_target::remove_exec_catchpoint): Always define.
593 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
594 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
595
e911c666
JB
5962020-09-16 John Baldwin <jhb@FreeBSD.org>
597
598 * configure.ac: Remove check for kinfo_getvmmap().
599 * configure, config.in: Regenerate.
600 * fbsd-nat.c (fbsd_read_mapping): Remove
601 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
602 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
603 kinfo_get_vmmap() are always present.
604
1f17d372
JB
6052020-09-16 John Baldwin <jhb@FreeBSD.org>
606
607 * fbsd-nat.c: Always include support for
608 TARGET_OBJECT_SIGNAL_INFO.
609
bcb1da7f
JB
6102020-09-16 John Baldwin <jhb@FreeBSD.org>
611
612 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
613 sysctl and remove procfs fallback.
614
5515f729
JB
6152020-09-16 John Baldwin <jhb@FreeBSD.org>
616
617 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
618 * fbsd-nat.h: Likewise.
619
da1df1db
TBA
6202020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
621
622 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
623 argument.
624
0e25e767
AB
6252020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
626
627 * ada-lang.c (ada_language_data): Delete.
628 (ada_language): Remove references to ada_language_data.
629 * c-lang.c (c_language_data): Delete.
630 (c_language): Remove references to c_language_data.
631 (cplus_language_data): Delete.
632 (cplus_language): Remove references to cplus_language_data.
633 (asm_language_data): Delete.
634 (asm_language): Remove references to asm_language_data.
635 (minimal_language_data): Delete.
636 (minimal_language): Remove references to minimal_language_data.
637 * d-lang.c (d_language_data): Delete.
638 (d_language): Remove references to d_language_data.
639 * f-lang.c (f_language_data): Delete.
640 (f_language): Remove references to f_language_data.
641 * go-lang.c (go_language_data): Delete.
642 (go_language): Remove references to go_language_data.
643 * language.c (unknown_language_data): Delete.
644 (unknown_language): Remove references to unknown_language_data.
645 (auto_language_data): Delete.
646 (auto_language): Remove references to auto_language_data.
647 * language.h (language_data): Delete struct.
648 (language_defn): No longer inherit from language_data.
649 * m2-lang.c (m2_language_data): Delete.
650 (m2_language): Remove references to m2_language_data.
651 * objc-lang.c (objc_language_data): Delete.
652 (objc_language): Remove references to objc_language_data.
653 * opencl-lang.c (opencl_language_data): Delete.
654 (opencl_language): Remove references to opencl_language_data.
655 * p-lang.c (pascal_language_data): Delete.
656 (pascal_language): Remove references to pascal_language_data.
657 * rust-lang.c (rust_language_data): Delete.
658 (rust_language): Remove references to rust_language_data.
659
b7c6e27d
AB
6602020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
661
662 * ada-lang.c (ada_language_data): Remove la_op_print_tab
663 initializer.
664 (ada_language::opcode_print_table): New member function.
665 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
666 (c_language::opcode_print_table): New member function.
667 (cplus_language_data): Remove la_op_print_tab initializer.
668 (cplus_language::opcode_print_table): New member function.
669 (asm_language_data): Remove la_op_print_tab initializer.
670 (asm_language::opcode_print_table): New member function.
671 (minimal_language_data): Remove la_op_print_tab initializer.
672 (minimal_language::opcode_print_table): New member function.
673 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
674 (d_language::opcode_print_table): New member function.
675 * expprint.c (print_subexp_standard): Update call to
676 opcode_print_table.
677 (op_string): Likewise.
678 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
679 (f_language::opcode_print_table): New member function.
680 * go-lang.c (go_language_data): Remove la_op_print_tab
681 initializer.
682 (go_language::opcode_print_table): New member function.
683 * language.c (unknown_language_data): Remove la_op_print_tab
684 initializer.
685 (unknown_language::opcode_print_table): New member function.
686 (auto_language_data): Remove la_op_print_tab initializer.
687 (auto_language::opcode_print_table): New member function.
688 * language.h (language_data): Remove la_op_print_tab field.
689 (language_defn::opcode_print_table): Declare new member function.
690 * m2-lang.c (m2_language_data): Remove la_op_print_tab
691 initializer.
692 (m2_language::opcode_print_table): New member function.
693 * objc-lang.c (objc_language_data): Remove la_op_print_tab
694 initializer.
695 (objc_language::opcode_print_table): New member function.
696 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
697 initializer.
698 (opencl_language::opcode_print_table): New member function.
699 * p-lang.c (pascal_language_data): Remove la_op_print_tab
700 initializer.
701 (pascal_language::opcode_print_table): New member function.
702 * rust-lang.c (rust_language_data): Remove la_op_print_tab
703 initializer.
704 (rust_language::opcode_print_table): New member function.
705
5aba6ebe
AB
7062020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
707
708 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
709 (ada_language::expression_ops): New member function.
710 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
711 (c_language::expression_ops): New member function.
712 (cplus_language_data): Remove la_exp_desc initializer.
713 (cplus_language::expression_ops): New member function.
714 (asm_language_data): Remove la_exp_desc initializer.
715 (asm_language::expression_ops): New member function.
716 (minimal_language_data): Remove la_exp_desc initializer.
717 (minimal_language::expression_ops): New member function.
718 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
719 (d_language::expression_ops): New member function.
720 * eval.c (evaluate_subexp): Update call to expression_ops.
721 * expprint.c (print_subexp): Likewise.
722 (op_name): Likewise.
723 (dump_subexp_body): Likewise.
724 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
725 (f_language::expression_ops): New member function.
726 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
727 (go_language::expression_ops): New member function.
728 * language.c (language_defn::expression_ops): New function.
729 (unknown_language_data): Remove la_exp_desc initializer.
730 (auto_language_data): Likewise.
731 * language.h (language_data): Remove la_exp_desc field.
732 (language_defn::expression_ops): Declare new member function.
733 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
734 (m2_language::expression_ops): New member function.
735 * objc-lang.c (objc_language_data): Remove la_exp_desc
736 initializer.
737 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
738 initializer.
739 (opencl_language::expression_ops): New member function.
740 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
741 * parse.c (operator_length): Update call to expression_ops.
742 (exp_iterate): Likewise.
743 * rust-lang.c (rust_language_data): Remove la_exp_desc
744 initializer.
745 (ruse_language::expression_ops): New member function.
746
b63a3f3f
AB
7472020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
748
749 * ada-lang.c (ada_language_data): Remove la_varobj_ops
750 initializer.
751 (ada_language::varobj_ops): New member function.
752 * c-lang.c (c_language_data): Remove la_varobj_ops
753 initializer.
754 (cplus_language_data): Likewise.
755 (cplus_language::varobj_ops): New member function.
756 (asm_language_data): Remove la_varobj_ops initializer.
757 (minimal_language_data): Likewise.
758 * d-lang.c (d_language_data): Likewise.
759 * f-lang.c (f_language_data): Likewise.
760 * go-lang.c (go_language_data): Likewise.
761 * language.c (language_defn::varobj_ops): New function.
762 (unknown_language_data): Remove la_varobj_ops
763 initializer.
764 (auto_language_data): Likewise.
765 * language.h (language_data): Remove la_varobj_ops field.
766 (language_defn::varobj_ops): Declare new member function.
767 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
768 * objc-lang.c (objc_language_data): Likewise.
769 * opencl-lang.c (opencl_language_data): Likewise.
770 * p-lang.c (pascal_language_data): Likewise.
771 * rust-lang.c (rust_language_data): Likewise.
772 * varobj.c (varobj_create): Update call to varobj_ops.
773 * varobj.h (default_varobj_ops): Delete define.
774
1ac14a04
AB
7752020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
776
777 * ada-lang.c (ada_language_data): Remove la_macro_expansion
778 initializer.
779 * c-lang.c (c_language_data): Likewise.
780 (c_language::macro_expansion): New member function.
781 (cplus_language_data): Likewise.
782 (cplus_language::macro_expansion): New member function.
783 (asm_language_data): Likewise.
784 (asm_language::macro_expansion): New member function.
785 (minimal_language_data): Likewise.
786 (minimal_language::macro_expansion): New member function.
787 * d-lang.c (d_language_data): Remove la_macro_expansion
788 initializer.
789 * f-lang.c (f_language_data): Likewise.
790 * go-lang.c (go_language_data): Likewise.
791 * language.c (unknown_language_data): Likewise.
792 (auto_language_data): Likewise.
793 * language.h (language_data): Remove la_macro_expansion field.
794 (language_defn::macro_expansion): New member function.
795 * m2-lang.c (m2_language_data): Remove la_macro_expansion
796 initializer.
797 * objc-lang.c (objc_language_data): Likewise.
798 (objc_language::macro_expansion): New member function.
799 * opencl-lang.c (opencl_language_data): Likewise.
800 (opencl_language::macro_expansion): New member function.
801 * p-lang.c (pascal_language_data): Remove la_macro_expansion
802 initializer.
803 * rust-lang.c (rust_language_data): Likewise.
804 * symtab.c (default_collect_symbol_completion_matches_break_on):
805 Update call to macro_expansion.
806
3a3440fb
AB
8072020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
808
809 * ada-lang.c (ada_language_data): Remove la_array_ordering
810 initializer.
811 * c-lang.c (c_language_data): Likewise.
812 (cplus_language_data): Likewise.
813 (asm_language_data): Likewise.
814 (minimal_language_data): Likewise.
815 * d-lang.c (d_language_data): Likewise.
816 * dwarf2/read.c (read_array_order): Update for call to
817 array_ordering.
818 * f-lang.c (f_language_data): Remove la_array_ordering
819 initializer.
820 (f_language::array_ordering): New member function.
821 * go-lang.c (go_language_data): Remove la_array_ordering
822 initializer.
823 * language.c (unknown_language_data): Likewise.
824 (auto_language_data): Likewise.
825 * language.h (language_data): Delete la_array_ordering field.
826 (language_defn::array_ordering): New member function.
827 * m2-lang.c (m2_language_data): Remove la_array_ordering
828 initializer.
829 * objc-lang.c (objc_language_data): Likewise.
830 * opencl-lang.c (opencl_language_data): Likewise.
831 * p-lang.c (pascal_language_data): Likewise.
832 * rust-lang.c (rust_language_data): Likewise.
833
0d201fa4
AB
8342020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
835
836 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
837 initializer.
838 * c-lang.c (c_language_data): Likewise.
839 (cplus_language_data): Likewise.
840 (asm_language_data): Likewise.
841 (minimal_language_data): Likewise.
842 * d-lang.c (d_language_data): Likewise.
843 * f-lang.c (f_language_data): Likewise.
844 (f_language::case_sensitivity): New member function.
845 * go-lang.c (go_language_data): Remove la_case_sensitivity
846 initializer.
847 * language.c (enum case_mode): Moved here from language.h.
848 (case_mode): Make static.
849 (show_case_command): Update for case_sensitivity being a method.
850 (set_case_command): Likewise.
851 (set_range_case): Likewise.
852 (unknown_language_data): Remove la_case_sensitivity initializer.
853 (auto_language_data): Likewise.
854 * language.h (case_mode): Delete, move enum declaration to
855 language.c.
856 (language_data): Delete la_case_sensitivity field.
857 (language_defn::case_sensitivity): New member function.
858 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
859 initializer.
860 * objc-lang.c (objc_language_data): Likewise.
861 * opencl-lang.c (opencl_language_data): Likewise.
862 * p-lang.c (pascal_language_data): Likewise.
863 * rust-lang.c (rust_language_data): Likewise.
864
efdf6a73
AB
8652020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
866
867 * ada-lang.c (ada_language_data): Remove la_range_check
868 initializer.
869 * c-lang.c (c_language_data): Likewise.
870 (cplus_language_data): Likewise.
871 (asm_language_data): Likewise.
872 (minimal_language_data): Likewise.
873 * d-lang.c (d_language_data): Likewise.
874 * f-lang.c (f_language_data): Likewise.
875 (f_language::range_checking_on_by_default): New member function.
876 * go-lang.c (go_language_data): Remove la_range_check initializer.
877 * language.c (enum range_mode): Moved here from language.h.
878 (range_mode): Made static.
879 (show_range_command): Update to use
880 range_checking_on_by_default.
881 (set_range_command): Likewise.
882 (set_range_case): Likewise.
883 (unknown_language_data): Remove la_range_check initializer.
884 (auto_language_data): Likewise.
885 * language.h (range_mode): Delete. Enum definition moved to
886 language.c.
887 (language_data): Remove la_range_check field.
888 (language_defn::range_checking_on_by_default): New member
889 function.
890 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
891 (m2_language::range_checking_on_by_default): New member function.
892 * objc-lang.c (objc_language_data): Remove la_range_check
893 initializer.
894 * opencl-lang.c (opencl_language_data): Likewise.
895 * p-lang.c (pascal_language_data): Likewise.
896 (pascal_language::range_checking_on_by_default): New member
897 function.
898 * rust-lang.c (rust_language_data): Remove la_range_check
899 initializer.
900 (rust_language::range_checking_on_by_default): New member
901 function.
902
bf92aec5
AB
9032020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
904
905 * dwarf2/read.c (dwarf2_physname): Remove special case for
906 language_go.
907 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
908 member function.
909
d3355e4d
AB
9102020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
911
912 * ada-lang.c (ada_language_data): Remove
913 la_store_sym_names_in_linkage_form_p initializer.
914 (ada_language::store_sym_names_in_linkage_form_p): New member
915 function.
916 * c-lang.c (c_language_data): Remove
917 la_store_sym_names_in_linkage_form_p initializer.
918 (c_language::store_sym_names_in_linkage_form_p): New member
919 function.
920 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
921 initializer.
922 (asm_language_data): Likewise.
923 (asm_language::store_sym_names_in_linkage_form_p): New member
924 function.
925 (minimal_language_data): Remove
926 la_store_sym_names_in_linkage_form_p initializer.
927 (minimal_language::store_sym_names_in_linkage_form_p): New member
928 function.
929 * d-lang.c (d_language_data): Remove
930 la_store_sym_names_in_linkage_form_p initializer.
931 * dwarf2/read.c (dwarf2_physname): Update call to
932 store_sym_names_in_linkage_form_p.
933 * f-lang.c (f_language_data): Remove
934 la_store_sym_names_in_linkage_form_p initializer.
935 * go-lang.c (go_language_data): Remove
936 la_store_sym_names_in_linkage_form_p initializer.
937 * language.c (unknown_language_data): Remove
938 la_store_sym_names_in_linkage_form_p initializer.
939 (unknown_language::store_sym_names_in_linkage_form_p): New member
940 function.
941 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
942 initializer.
943 (auto_language::store_sym_names_in_linkage_form_p): New member
944 function.
945 * language.h (language_data): Remove
946 la_store_sym_names_in_linkage_form_p member variable.
947 (language_defn::store_sym_names_in_linkage_form_p): New member
948 function.
949 * m2-lang.c (m2_language_data): Remove
950 la_store_sym_names_in_linkage_form_p initializer.
951 * objc-lang.c (objc_language_data): Likewise.
952 * opencl-lang.c (opencl_language_data): Likewise.
953 * p-lang.c (pascal_language_data): Likewise.
954 * rust-lang.c (rust_language_data): Likewise.
955
22c12a6c
AB
9562020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
957
958 * ada-lang.c (ada_language_data): Remove string_lower_bound
959 initializer.
960 * c-lang.c (c_language_data): Likewise.
961 (cplus_language_data): Likewise.
962 (asm_language_data): Likewise.
963 (minimal_language_data): Likewise.
964 * d-lang.c (d_language_data): Likewise.
965 * f-lang.c (f_language_data): Likewise.
966 * go-lang.c (go_language_data): Likewise.
967 * language.c (unknown_language_data): Likewise.
968 (auto_language_data): Likewise.
969 * language.h (language_data): Remove string_lower_bound field.
970 (language_defn::string_lower_bound): New member function.
971 * m2-lang.c (m2_language_data): Remove string_lower_bound
972 initializer.
973 (m2_language::string_lower_bound): New member function.
974 * objc-lang.c (objc_language_data): Remove string_lower_bound
975 initializer.
976 * opencl-lang.c (opencl_language_data): Likewise.
977 * p-lang.c (pascal_language_data): Likewise.
978 * rust-lang.c (rust_language_data): Likewise.
979 * valops.c (value_cstring): Update call to string_lower_bound.
980 (value_string): Likewise.
981 * value.c (allocate_repeated_value): Likewise.
982
1c236ddd
AB
9832020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
984
985 * valops.c (value_repeat): Fix incorrect argument name in comment.
986
67bd3fd5
AB
9872020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
988
989 * ada-lang.c (ada_language_data): Remove c_style_arrays
990 initializer.
991 (ada_language::c_style_arrays_p): New member fuction.
992 * c-lang.c (c_language_data): Remove c_style_arrays
993 initializer.
994 (cplus_language_data): Likewise.
995 (asm_language_data): Likewise.
996 (minimal_language_data): Likewise.
997 * d-lang.c (d_language_data): Likewise.
998 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
999 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
1000 (f_language::c_style_arrays_p): New member function.
1001 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
1002 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
1003 * language.c (unknown_language_data): Remove c_style_arrays
1004 initializer.
1005 (auto_language_data): Likewise.
1006 * language.h (language_data): Remove c_style_arrays field.
1007 (language_defn::c_style_arrays_p): New member function.
1008 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
1009 (m2_language::c_style_arrays_p): New member function.
1010 * objc-lang.c (objc_language_data): Remove c_style_arrays
1011 initializer.
1012 * opencl-lang.c (opencl_language_data): Likewise.
1013 * p-lang.c (pascal_language_data): Likewise.
1014 * rust-lang.c (rust_language_data): Likewise.
1015 * valarith.c (value_subscript): Update call to c_style_arrays_p,
1016 and update local variable to a bool.
1017 * valops.c (value_cast): Update call to c_style_arrays_p.
1018 (value_array): Likewise.
1019 * value.c (coerce_array): Likewise.
1020
85967615
AB
10212020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1022
1023 * ada-lang.c (ada_language_data): Remove la_language initializer.
1024 * c-lang.c (c_language_data): Likewise.
1025 (cplus_language_data): Likewise.
1026 (asm_language_data): Likewise.
1027 (minimal_language_data): Likewise.
1028 * d-lang.c (d_language_data): Likewise.
1029 * f-lang.c (f_language_data): Likewise.
1030 * go-lang.c (go_language_data): Likewise.
1031 * language.c (unknown_language_data): Likewise.
1032 (auto_language_data): Likewise.
1033 * language.h (language_data): Remove la_language field.
1034 (language_defn::language_defn): Initialise la_language field.
1035 (language_defn::la_language): New member variable.
1036 * m2-lang.c (m2_language_data): Remove la_language field.
1037 * objc-lang.c (objc_language_data): Likewise.
1038 * opencl-lang.c (opencl_language_data): Likewise.
1039 * p-lang.c (pascal_language_data): Likewise.
1040 * rust-lang.c (rust_language_data): Likewise.
1041
e171d6f1
AB
10422020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1043
1044 * ada-lang.c (ada_extensions): Delete, moved into
1045 ada_language::filename_extensions.
1046 (ada_language_data): Remove la_filename_extensions initializer.
1047 (ada_language::filename_extensions): New member function.
1048 * c-lang.c (c_extensions): Delete, moved into
1049 c_language::filename_extensions.
1050 (c_language_data): Remove la_filename_extensions initializer.
1051 (c_language::filename_extensions): New member function.
1052 (cplus_extensions): Delete, moved into
1053 cplus_language::filename_extensions.
1054 (cplus_language_data): Remove la_filename_extensions initializer.
1055 (cplus_language::filename_extensions): New member function.
1056 (asm_extensions): Delete, moved into
1057 asm_language::filename_extensions.
1058 (asm_language_data): Remove la_filename_extensions initializer.
1059 (asm_language::filename_extensions): New member function.
1060 (minimal_language_data): Remove la_filename_extensions
1061 initializer.
1062 * d-lang.c (d_extensions): Delete, moved into
1063 d_language::filename_extensions.
1064 (d_language_data): Remove la_filename_extensions initializer.
1065 (d_language::filename_extensions): New member function.
1066 * f-lang.c (f_extensions): Delete, moved into
1067 f_language::filename_extensions.
1068 (f_language_data): Remove la_filename_extensions initializer.
1069 (f_language::filename_extensions): New member function.
1070 * go-lang.c (go_language_data): Remove la_filename_extensions
1071 initializer.
1072 * language.c (add_set_language_command): Update now that
1073 filename_extensions returns a vector.
1074 (unknown_language_data): Remove la_filename_extensions
1075 initializer.
1076 (auto_language_data): Likewise.
1077 * language.h (language_data): Remove la_filename_extensions field.
1078 (language_defn::filename_extensions): New member function.
1079 * m2-lang.c (m2_language_data): Remove la_filename_extensions
1080 initializer.
1081 * objc-lang.c (objc_extensions): Delete, moved into
1082 objc_language::filename_extensions.
1083 (objc_language_data): Remove la_filename_extensions initializer.
1084 (objc_language::filename_extensions): New member function.
1085 * opencl-lang.c (opencl_language_data): Remove
1086 la_filename_extensions initializer.
1087 * p-lang.c (pascal_extensions): Delete, moved into
1088 pascal_language::filename_extensions.
1089 (pascal_language_data): Remove la_filename_extensions initializer.
1090 (pascal_language::filename_extensions): New member function.
1091 * rust-lang.c (rust_extensions): Delete, moved into
1092 rust_language::filename_extensions.
1093 (rust_language_data): Remove la_filename_extensions initializer.
1094 (rust_language::filename_extensions): New member function.
1095 * symfile.c (add_filename_language): Add new assert.
1096
6f7664a9
AB
10972020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1098
1099 * ada-lang.c (ada_language_data): Remove la_name and
1100 la_natural_name initializers.
1101 (ada_language::name): New member function.
1102 (ada_language::natural_name): New member function.
1103 * c-lang.c (c_language_data): Remove la_name and
1104 la_natural_name initializers.
1105 (c_language::name): New member function.
1106 (c_language::natural_name): New member function.
1107 (cplus_language_data): Remove la_name and
1108 la_natural_name initializers.
1109 (cplus_language::name): New member function.
1110 (cplus_language::natural_name): New member function.
1111 (asm_language_data): Remove la_name and
1112 la_natural_name initializers.
1113 (asm_language::name): New member function.
1114 (asm_language::natural_name): New member function.
1115 (minimal_language_data): Remove la_name and
1116 la_natural_name initializers.
1117 (minimal_language::name): New member function.
1118 (minimal_language::natural_name): New member function.
1119 * compile/compile.c (compile_to_object): Update call to
1120 lanugage_defn::name.
1121 * d-lang.c (d_language_data): Remove la_name and
1122 la_natural_name initializers.
1123 (d_language::name): New member function.
1124 (d_language::natural_name): New member function.
1125 * expprint.c (print_subexp_standard): Update call to
1126 language_defn::name.
1127 (dump_raw_expression): Likewise
1128 (dump_prefix_expression): Likewise.
1129 * f-lang.c (f_language_data): Remove la_name and
1130 la_natural_name initializers.
1131 (f_language::name): New member function.
1132 (f_language::natural_name): New member function.
1133 * go-lang.c (go_language_data): Remove la_name and
1134 la_natural_name initializers.
1135 (go_language::name): New member function.
1136 (go_language::natural_name): New member function.
1137 * language.c (show_language_command): Update call to
1138 language_defn::name.
1139 (set_language_command): Likewise.
1140 (language_enum): Likewise.
1141 (language_str): Likewise.
1142 (add_set_language_command): Likewise, use
1143 language_defn::natural_name in the doc string.
1144 (unknown_language_data): Remove la_name and
1145 la_natural_name initializers.
1146 (unknown_language::name): New member function.
1147 (unknown_language::natural_name): New member function.
1148 (auto_language_data): Remove la_name and
1149 la_natural_name initializers.
1150 (auto_language::name): New member function.
1151 (auto_language::natural_name): New member function.
1152 (language_lookup_primitive_type_as_symbol): Update call to
1153 language_defn::name.
1154 * language.h (language_data): Remove la_name and la_natural_name
1155 member variables.
1156 (language_defn::name): New member function.
1157 (language_defn::natural_name): New member function.
1158 * m2-lang.c (m2_language_data): Remove la_name and
1159 la_natural_name initializers.
1160 (m2_language::name): New member function.
1161 (m2_language::natural_name): New member function.
1162 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
1163 language_defn::natural_name.
1164 * objc-lang.c (objc_language_data): Remove la_name and
1165 la_natural_name initializers.
1166 (objc_language::name): New member function.
1167 (objc_language::natural_name): New member function.
1168 * opencl-lang.c (opencl_language_data): Remove la_name and
1169 la_natural_name initializers.
1170 (opencl_language::name): New member function.
1171 (opencl_language::natural_name): New member function.
1172 * p-lang.c (pascal_language_data): Remove la_name and
1173 la_natural_name initializers.
1174 (pascal_language::name): New member function.
1175 (pascal_language::natural_name): New member function.
1176 * rust-lang.c (rust_language_data): Remove la_name and
1177 la_natural_name initializers.
1178 (rust_language::name): New member function.
1179 (rust_language::natural_name): New member function.
1180 * symtab.c (lookup_language_this): Update call to
1181 language_defn::name.
1182
5bae7c4e
AB
11832020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1184
1185 * ada-lang.c (ada_language_data): Remove la_name_of_this
1186 initializer.
1187 * ax-gdb.c (gen_expr): Update call to name_of_this.
1188 * c-exp.y (classify_name): Likewise.
1189 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1190 (cplus_language_data): Likewise.
1191 (cplus_language::name_of_this): New member function.
1192 (asm_language_data): Remove la_name_of_this initializer.
1193 (minimal_language_data): Likewise.
1194 * d-lang.c (d_language_data): Likewise.
1195 (d_language::name_of_this): New member function.
1196 * expprint.c (print_subexp_standard): Update call to name_of_this.
1197 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1198 * go-lang.c (go_language_data): Likewise.
1199 * language.c (unknown_language_data): Likewise.
1200 (unknown_language::name_of_this): New member function.
1201 (auto_language_data): Remove la_name_of_this initializer.
1202 (auto_language::name_of_this): New member function.
1203 * language.h (language_data): Delete la_name_of_this member
1204 variable.
1205 (language_defn::name_of_this): New member function.
1206 * m2-lang.c (m2_language_data): Remove la_name_of_this
1207 initializer.
1208 * objc-lang.c (objc_language_data): Likewise.
1209 (objc_language::name_of_this): New member function.
1210 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1211 initializer.
1212 * p-lang.c (pascal_language_data): Likewise.
1213 (pascal_language::name_of_this): New member function.
1214 * rust-lang.c (rust_language_data): Remove la_name_of_this
1215 initializer.
1216 * symtab.c (lookup_language_this): Update call to name_of_this.
1217 (lookup_symbol_aux): Likewise.
1218 * valops.c (value_of_this): Likewise.
1219
22e3f3ed
AB
12202020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1221
1222 * ada-lang.c (ada_language_data): Remove
1223 la_struct_too_deep_ellipsis initializer.
1224 (ada_language::struct_too_deep_ellipsis): New member function.
1225 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1226 initializer.
1227 (cplus_language_data): Likewise.
1228 (asm_language_data): Likewise.
1229 (minimal_language_data): Likewise.
1230 * cp-valprint.c (cp_print_value): Update call to
1231 struct_too_deep_ellipsis.
1232 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1233 initializer.
1234 * f-lang.c (f_language_data): Likewise.
1235 (f_language::struct_too_deep_ellipsis): New member function.
1236 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1237 initializer.
1238 * language.c (unknown_language_data): Likewise.
1239 (auto_language_data): Likewise.
1240 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1241 member variable.
1242 (language_defn::struct_too_deep_ellipsis): New member function.
1243 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1244 initializer.Q
1245 * objc-lang.c (objc_language_data): Likewise.
1246 * opencl-lang.c (opencl_language_data): Likewise.
1247 * p-lang.c (pascal_language_data): Likewise.
1248 * rust-lang.c (rust_language_data): Likewise.
1249 * valprint.c (val_print_check_max_depth): Update call to
1250 struct_too_deep_ellipsis.
1251
ed29e1c7
FW
12522020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1253
1254 * MAINTAINERS (Write After Approval): Add myself.
1255
12d8f940
TT
12562020-09-15 Tom Tromey <tom@tromey.com>
1257
1258 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1259 Remove.
1260
6b5a7bc7
TT
12612020-09-15 Tom Tromey <tom@tromey.com>
1262
1263 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1264 and TYPE_CODE_METHODPTR cases.
1265 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1266 (c_value_print_inner): Update.
1267 * valprint.c (generic_value_print_memberptr): New function, from
1268 c_value_print_memberptr.
1269 (generic_value_print): Use it. Call cplus_print_method_ptr.
1270
47f0e2ff
TT
12712020-09-15 Tom Tromey <tromey@adacore.com>
1272
1273 * python/python-internal.h (PyInt_FromLong): Remove define.
1274 * python/py-value.c (convert_value_from_python): Use
1275 gdb_py_object_from_longest.
1276 * python/py-type.c (typy_get_code): Use
1277 gdb_py_object_from_longest.
1278 * python/py-symtab.c (salpy_get_line): Use
1279 gdb_py_object_from_longest.
1280 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1281 gdb_py_object_from_longest.
1282 * python/py-record.c (recpy_gap_reason_code): Use
1283 gdb_py_object_from_longest.
1284 * python/py-record-btrace.c (recpy_bt_insn_size)
1285 (recpy_bt_func_level, btpy_list_count): Use
1286 gdb_py_object_from_longest.
1287 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1288 gdb_py_object_from_longest. Fix error handling.
1289 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1290 gdb_py_object_from_longest.
1291 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1292 gdb_py_object_from_longest.
1293 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1294 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1295 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1296
512116ce
TT
12972020-09-15 Tom Tromey <tromey@adacore.com>
1298
1299 * python/python.c (gdbpy_parameter_value): Use
1300 gdb_py_object_from_ulongest.
1301
4ab1029c
TT
13022020-09-15 Tom Tromey <tromey@adacore.com>
1303
1304 * python/py-infevents.c (create_register_changed_event_object):
1305 Use gdb_py_object_from_longest.
1306 * python/py-exitedevent.c (create_exited_event_object): Use
1307 gdb_py_object_from_longest.
1308
062534d4
TT
13092020-09-15 Tom Tromey <tromey@adacore.com>
1310
1311 * python/python.c (gdbpy_parameter_value): Use
1312 gdb_py_object_from_longest.
1313 * python/py-type.c (convert_field, typy_range): Use
1314 gdb_py_object_from_longest.
1315 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1316 gdb_py_object_from_longest.
1317 * python/py-lazy-string.c (stpy_get_length): Use
1318 gdb_py_object_from_longest.
1319 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1320 gdb_py_object_from_longest.
1321 * python/py-infevents.c (create_memory_changed_event_object): Use
1322 gdb_py_object_from_longest.
1323 * python/py-inferior.c (infpy_get_num): Use
1324 gdb_py_object_from_longest.
1325 (infpy_get_pid): Likewise.
1326
d1cab987
TT
13272020-09-15 Tom Tromey <tromey@adacore.com>
1328
1329 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1330 defines.
1331 * python/py-value.c (valpy_long): Use
1332 gdb_py_object_from_ulongest.
1333 * python/py-symtab.c (salpy_get_pc): Use
1334 gdb_py_object_from_ulongest.
1335 (salpy_get_last): Likewise.
1336 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1337 gdb_py_object_from_ulongest.
1338 * python/py-lazy-string.c (stpy_get_address): Use
1339 gdb_py_object_from_ulongest.
1340 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1341 * python/py-arch.c (archpy_disassemble): Use
1342 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1343 error handling.
1344
4bde49dc
TT
13452020-09-15 Tom Tromey <tromey@adacore.com>
1346
1347 * python/python-internal.h (gdb_py_long_from_longest): Remove
1348 defines.
1349 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1350 * python/py-type.c (convert_field, typy_get_sizeof): Use
1351 gdb_py_object_from_longest.
1352 * python/py-record-btrace.c (btpy_list_index): Use
1353 gdb_py_object_from_longest.
1354
37431074
TT
13552020-09-15 Tom Tromey <tromey@adacore.com>
1356
1357 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1358 * python/py-record.c (recpy_element_number): Use
1359 gdb_py_object_from_longest.
1360 (recpy_gap_number): Likewise.
1361
cbe25684
TT
13622020-09-15 Tom Tromey <tromey@adacore.com>
1363
1364 * top.c (ui::ui): Update.
1365 (highest_ui_num): Remove.
1366 * top.h (struct ui) <num>: Remove.
1367
db92ac45
TT
13682020-09-15 Tom Tromey <tromey@adacore.com>
1369
1370 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1371 * ui-style.c (ansi_regex_text): Now array.
1372 * rust-exp.y (number_regex_text): Now array.
1373 * linespec.c (linespec_quote_characters): Now array.
1374 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1375 Now arrays.
1376
d2b31b67
SM
13772020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1378
1379 * debuginfod-support.c (debuginfod_client_deleter): New.
1380 (debuginfod_client_up): New.
1381 (debuginfod_init): Return debuginfod_client_up.
1382 (debuginfod_source_query): Adjust.
1383 (debuginfod_debuginfo_query): Adjust.
1384
3246bd8e
SM
13852020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1386
1387 * debuginfod-support.c (debuginfod_source_query): Use
1388 make_unique_xstrdup.
1389
10242f36
SM
13902020-09-14 Simon Marchi <simon.marchi@efficios.com>
1391
1392 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1393 with `type::instance_flags`.
1394
e1044e6a
MM
13952020-09-14 Michael Mullin <masmullin@gmail.com>
1396
1397 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1398 Remove baton parameter.
1399
04902b09
PA
14002020-09-14 Pedro Alves <pedro@palves.net>
1401
1402 * Makefile.in (SELFTESTS_SRCS): Add
1403 unittests/enum-flags-selftests.c.
1404 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1405 btrace_function_flags instead of enum btrace_function_flag.
1406 * compile/compile-c-types.c (convert_qualified): Use
1407 enum_flags::raw.
1408 * compile/compile-cplus-symbols.c (convert_one_symbol)
1409 (convert_symbol_bmsym):
1410 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1411 (compile_cplus_convert_struct_or_union_methods)
1412 (compile_cplus_instance::convert_qualified_base):
1413 * go-exp.y (parse_string_or_char): Add cast to int.
1414 * unittests/enum-flags-selftests.c: New file.
1415 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1416 type to btrace_thread_flags from btrace_thread_flag.
1417 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1418 local's type to btrace_thread_flags from btrace_thread_flag. Add
1419 cast in DEBUG call.
1420
69896a2c
PA
14212020-09-14 Pedro Alves <pedro@palves.net>
1422
1423 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1424 * gdbtypes.c (address_space_name_to_int): Rename to ...
1425 (address_space_name_to_type_instance_flags): ... this.
1426 (address_space_int_to_name): Rename to ...
1427 (address_space_type_instance_flags_to_name): ... this.
1428 * gdbtypes.h (address_space_name_to_int): Rename to ...
1429 (address_space_name_to_type_instance_flags): ... this.
1430 (address_space_int_to_name): Rename to ...
1431 (address_space_type_instance_flags_to_name): ... this.
1432 * type-stack.c (type_stack::insert): Adjust to rename.
1433 * type-stack.h (type_stack::insert): Likewise.
1434
314ad88d
PA
14352020-09-14 Pedro Alves <pedro@palves.net>
1436 Andrew Burgess <andrew.burgess@embecosm.com>
1437
1438 * avr-tdep.c (avr_address_class_type_flags): Return
1439 type_instance_flags.
1440 (avr_address_class_type_flags_to_name): Take a
1441 type_instance_flags.
1442 (avr_address_class_name_to_type_flags): Return bool and take a
1443 type_instance_flags.
1444 * d-lang.c (build_d_types): Use type::set_instance_flags.
1445 * ft32-tdep.c (ft32_address_class_type_flags): Return
1446 type_instance_flags.
1447 (ft32_address_class_type_flags_to_name): Take a
1448 type_instance_flags.
1449 (ft32_address_class_name_to_type_flags): Return bool and take a
1450 type_instance_flags.
1451 (ft32_gdbarch_init): Use type::set_instance_flags.
1452 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1453 * gdbarch.h, gdbarch.c: Regenerate.
1454 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1455 (address_class_name_to_type_flags): Use type_instance_flags and
1456 bool.
1457 * gdbtypes.c (address_space_name_to_int)
1458 (address_space_int_to_name, make_qualified_type): Use
1459 type_instance_flags.
1460 (make_qualified_type): Use type_instance_flags and
1461 type::set_instance_flags.
1462 (make_type_with_address_space, make_cv_type, make_vector_type)
1463 (check_typedef): Use type_instance_flags.
1464 (recursive_dump_type): Cast type_instance_flags to unsigned for
1465 printing.
1466 (copy_type_recursive): Use type::set_instance_flags.
1467 (gdbtypes_post_init): Use type::set_instance_flags.
1468 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1469 <m_instance_flags>: ... this.
1470 <instance_flags, set_instance_flags>: New methods.
1471 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1472 (SET_TYPE_INSTANCE_FLAGS): New.
1473 (address_space_name_to_int, address_space_int_to_name)
1474 (make_type_with_address_space): Pass flags using
1475 type_instance_flags instead of int.
1476 * stabsread.c (cleanup_undefined_types_noname): Use
1477 type::set_instance_flags.
1478 * s390-tdep.c (s390_address_class_type_flags): Return
1479 type_instance_flags.
1480 (s390_address_class_type_flags_to_name): Take a
1481 type_instance_flags.
1482 (s390_address_class_name_to_type_flags): Return bool and take a
1483 type_instance_flags.
1484 * type-stack.c (type_stack::follow_types): Use
1485 type_instance_flags.
1486 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1487
27087b7f
TT
14882020-09-14 Tom Tromey <tromey@adacore.com>
1489
1490 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1491 * x86-tdep.c (x86_is_thunk_register_name)
1492 (x86_in_indirect_branch_thunk): Update.
1493 * sparc64-tdep.c (sparc64_fpu_register_names)
1494 (sparc64_cp0_register_names, sparc64_register_names)
1495 (sparc64_pseudo_register_names): Now const.
1496 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1497 cp0_registers_num>: Now const.
1498 * sparc-tdep.c (sparc_core_register_names)
1499 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1500 (sparc32_pseudo_register_names): Now const.
1501 (validate_tdesc_registers): Update.
1502 * rust-lang.c (rust_extensions): Now const.
1503 * p-lang.c (p_extensions): Now const.
1504 * objc-lang.c (objc_extensions): Now const.
1505 * nto-tdep.c (nto_thread_state_str): Now const.
1506 * moxie-tdep.c (moxie_register_names): Now const.
1507 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1508 Now const.
1509 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1510 (mips_linux_reg_names): Now const.
1511 (mips_gdbarch_init): Update.
1512 * microblaze-tdep.c (microblaze_register_names): Now const.
1513 * m68k-tdep.c (m68k_register_names): Now const.
1514 * m32r-tdep.c (m32r_register_names): Now const.
1515 * ia64-tdep.c (ia64_register_names): Now const.
1516 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1517 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1518 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1519 ymm_avx512_register_names, pkeys_register_names>: Now const.
1520 * i386-tdep.c (i386_register_names, i386_zmm_names)
1521 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1522 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1523 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1524 * f-lang.c (f_extensions): Now const.
1525 * d-lang.c (d_extensions): Now const.
1526 * csky-tdep.c (csky_register_names): Now const.
1527 * charset.c (default_charset_names, charset_enum): Now const.
1528 (_initialize_charset): Update.
1529 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1530 const.
1531 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1532 (bsd_uthread_solib_loaded): Update.
1533 (bsd_uthread_state): Now const.
1534 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1535 (amd64_ymm_avx512_names, amd64_ymmh_names)
1536 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1537 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1538 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1539 (amd64_dword_names): Now const.
1540 * agent.c (can_use_agent_enum): Now const.
1541 * ada-tasks.c (task_states, long_task_states): Now const.
1542 * ada-lang.c (known_runtime_file_name_patterns)
1543 (known_auxiliary_function_name_patterns, attribute_names)
1544 (standard_exc, ada_extensions): Now const.
1545
89806626
SM
15462020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1547
1548 * bcache.h (struct bcache) <bcache>: Remove constructor.
1549 <m_hash_function, m_compare_function>: Remove.
1550 <~bcache>: Make virtual.
1551 <compare>: Remove static method, introduce virtual method.
1552 <default_hash>: Remove.
1553 <hash>: New virtual method.
1554 * bcache.c (bcache::expand_hash_table): Update.
1555 (bcache::insert): Update.
1556 (bcache::hash): New.
1557 (bcache::compare): Update comment and parameter names.
1558 * gdbtypes.c (types_deeply_equal): Update.
1559 * psymtab.h (struct psymbol_bcache): New struct.
1560 (class psymtab_storage) <psymtab_storage>: Make default.
1561 <psymbol_cache>: Change type to psymbol_bcache.
1562 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1563 (psymbol_hash): Change to...
1564 (psymbol_bcache::hash): ... this.
1565 (psymbol_compare): Change to...
1566 (psymbol_bcache::compare): ... this.
1567
677c92fe
SM
15682020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1569
1570 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1571 checking for initial lwp.
1572
3eba3a01
TT
15732020-09-14 Tom Tromey <tromey@adacore.com>
1574
1575 * m68k-tdep.c (m68k_extract_return_value): Use
1576 pointer_result_regnum.
1577 (m68k_store_return_value): Likewise.
1578 (m68k_reg_struct_return_p): Handle vectors and arrays.
1579 (m68k_return_value): Handle arrays.
1580 (m68k_svr4_return_value): Fix single-element aggregate handling.
1581 Handle long double. Adjust for embedded ABI.
1582 (m68k_svr4_init_abi): Set pointer_result_regnum.
1583 (m68k_embedded_init_abi): New function.
1584 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1585 (m68k_osabi_sniffer): New function.
1586 (_initialize_m68k_tdep): Register osabi sniffer.
1587 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1588 member.
1589
33f4dd48
SM
15902020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1591
1592 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1593 with gdb::unique_xmalloc_ptr<char>.
1594
8400a90d
SM
15952020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1596
1597 * xml-support.h (xml_fetch_another): Change type to be a
1598 function_view.
1599 (xml_process_xincludes): Remove baton parameter.
1600 (xml_fetch_content_from_file): Change baton parameter to
1601 dirname.
1602 * xml-support.c (struct xinclude_parsing_data)
1603 <xinclude_parsing_data>: Remove baton parameter.
1604 <fetcher_baton>: Remove.
1605 (xinclude_start_include): Adjust.
1606 (xml_process_xincludes): Adjust.
1607 (xml_fetch_content_from_file): Replace baton parameter with
1608 dirname.
1609 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1610 (xml_init_syscalls_info): Use a lambda.
1611 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1612 (file_read_description_xml): Use a lambda.
1613 (fetch_available_features_from_target): Change baton parameter
1614 to target_ops.
1615 (target_read_description_xml): Use a lambda.
1616 (target_fetch_description_xml): Use a lambda.
1617 (string_read_description_xml): Update.
1618
04f5bab2
SM
16192020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1620
1621 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1622 uses with type::endianity_is_not_default.
1623
db558e34
SM
16242020-09-14 Simon Marchi <simon.marchi@efficios.com>
1625
1626 * gdbtypes.h (struct type) <endianity_is_not_default,
1627 set_endianity_is_not_default>: New methods.
1628 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1629 type::endianity_is_not_default, change all write call sites to
1630 use type::set_endianity_is_not_default.
1631
22c4c60c
SM
16322020-09-14 Simon Marchi <simon.marchi@efficios.com>
1633
1634 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1635 uses with type::is_fixed_instance.
1636
9cdd0d12
SM
16372020-09-14 Simon Marchi <simon.marchi@efficios.com>
1638
1639 * gdbtypes.h (struct type) <is_fixed_instance,
1640 set_is_fixed_instance>: New methods.
1641 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1642 write call sites to use type::set_is_fixed_instance.
1643
0becda7a
SM
16442020-09-14 Simon Marchi <simon.marchi@efficios.com>
1645
1646 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1647 uses with type::is_gnu_ifunc.
1648
03cc7249
SM
16492020-09-14 Simon Marchi <simon.marchi@efficios.com>
1650
1651 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1652 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1653 use type::set_is_gnu_ifunc.
1654
3f46044c
SM
16552020-09-14 Simon Marchi <simon.marchi@efficios.com>
1656
1657 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1658 uses with type::stub_is_supported.
1659
9baccff6
SM
16602020-09-14 Simon Marchi <simon.marchi@efficios.com>
1661
1662 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1663 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1664 use type::set_stub_is_supported.
1665
bd63c870
SM
16662020-09-14 Simon Marchi <simon.marchi@efficios.com>
1667
1668 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1669 uses with type::is_vector.
1670
2062087b
SM
16712020-09-14 Simon Marchi <simon.marchi@efficios.com>
1672
1673 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1674 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1675 use type::set_is_vector.
1676
a409645d
SM
16772020-09-14 Simon Marchi <simon.marchi@efficios.com>
1678
1679 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1680 uses with type::has_varargs.
1681
1d6286ed
SM
16822020-09-14 Simon Marchi <simon.marchi@efficios.com>
1683
1684 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1685 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1686 use type::set_has_varargs.
1687
7f9f399b
SM
16882020-09-14 Simon Marchi <simon.marchi@efficios.com>
1689
1690 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1691 uses with type::is_prototyped.
1692
27e69b7a
SM
16932020-09-14 Simon Marchi <simon.marchi@efficios.com>
1694
1695 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1696 New methods.
1697 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1698 call sites to use type::set_is_prototyped.
1699
d2183968
SM
17002020-09-14 Simon Marchi <simon.marchi@efficios.com>
1701
1702 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1703 uses with type::target_is_stub.
1704
8f53807e
SM
17052020-09-14 Simon Marchi <simon.marchi@efficios.com>
1706
1707 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1708 New methods.
1709 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1710 sites to use type::set_target_is_stub.
1711
e46d3488
SM
17122020-09-14 Simon Marchi <simon.marchi@efficios.com>
1713
1714 * gdbtypes.h (TYPE_STUB): Remove, replace all
1715 uses with type::is_stub.
1716
b4b73759
SM
17172020-09-14 Simon Marchi <simon.marchi@efficios.com>
1718
1719 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1720 (TYPE_STUB): Use type::is_stub, change all write call sites to
1721 use type::set_is_stub.
1722
20ce4123
SM
17232020-09-14 Simon Marchi <simon.marchi@efficios.com>
1724
1725 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1726 type::has_no_signedness.
1727
15152a54
SM
17282020-09-14 Simon Marchi <simon.marchi@efficios.com>
1729
1730 * gdbtypes.h (struct type) <has_no_signedness,
1731 set_has_no_signedness>: New methods.
1732 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1733 call sites to use type::set_has_no_signedness.
1734
c6d940a9
SM
17352020-09-14 Simon Marchi <simon.marchi@efficios.com>
1736
1737 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1738 type::is_unsigned.
1739
653223d3
SM
17402020-09-14 Simon Marchi <simon.marchi@efficios.com>
1741
1742 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1743 methods.
1744 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1745 sites to use type::set_is_unsigned.
1746
55ea94da 17472020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 1748 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 1749
e851246a
SM
1750 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1751 pointer and stack frame offset when unwinding.
55ea94da 1752
6791b117
PA
17532020-09-13 Pedro Alves <pedro@palves.net>
1754
1755 * NEWS: Document "-break-insert --qualified".
1756 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1757
77f2120b
PA
17582020-09-13 Pedro Alves <pedro@palves.net>
1759
1760 * linespec.c (classify_mtype, compare_msyms): Delete.
1761 (search_minsyms_for_name): Remove classification logic. Instead
1762 filter out trampoline symbols if we also found an external
1763 function of the same name.
1764
ed6a896c
JB
17652020-09-13 Joel Brobecker <brobecker@adacore.com>
1766
1767 * NEWS: Create a new section for the next release branch.
1768 Rename the section of the current branch, now that it has
1769 been cut.
1770
32aea73e
JB
17712020-09-13 Joel Brobecker <brobecker@adacore.com>
1772
1773 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1774 * version.in: Bump version to 11.0.50.DATE-git.
1775
8087c3fa
JB
17762020-09-12 Joel Brobecker <brobecker@adacore.com>
1777
1778 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1779
2a67f09d
FW
17802020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1781 Felix Willgerodt <Felix.Willgerodt@intel.com>
1782
1783 * gdbarch.sh: Added bfloat16 type.
1784 * gdbarch.c: Regenerated.
1785 * gdbarch.h: Regenerated.
1786 * gdbtypes.c (floatformats_bfloat16): New struct.
1787 (gdbtypes_post_init): Add builtin_bfloat16.
1788 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1789 (floatformats_bfloat16): New struct.
1790 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1791 (i386_ymm_type): Add field "v16_bfloat16"
1792 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1793 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1794 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1795 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1796 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1797 * features/i386/64bit-avx512.c: Regenerated.
1798 * features/i386/64bit-sse.xml: Add bfloat16 type.
1799 * features/i386/64bit-sse.c: Regenerated.
1800
1347d111
FW
18012020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1802
1803 * i386-tdep.c (i386_zmm_type): Fix field names.
1804 (i386_ymm_type): Fix field names.
1805
7a4e8e7d
TBA
18062020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1807
1808 * breakpoint.c: Fix typo in the help message of the
1809 "set breakpoint condition-evaluation" command.
1810
cf4ac4be
KR
18112020-09-10 Kamil Rytarowski <n54@gmx.com>
1812
1813 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1814 * (nbsd_nat_target::pid_to_exec_file)
1815 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1816 (nbsd_nat_target::post_startup_inferior)
1817 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1818 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1819 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1820 * (nbsd_thread_lister): Remove.
1821
f404573e
KR
18222020-09-10 Kamil Rytarowski <n54@gmx.com>
1823
1824 * fork-inferior.c (startup_inferior): Avoid double free.
1825
1ccb2c17
KR
18262020-09-10 Kamil Rytarowski <n54@gmx.com>
1827
1828 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1829 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1830
feedfcc7
KR
18312020-09-10 Kamil Rytarowski <n54@gmx.com>
1832
1833 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1834 * netbsd-nat.c: Include <sys/ptrace.h>.
1835 * (netbsd_nat::enable_proc_events): Add.
1836
c489f8c6
KR
18372020-09-10 Kamil Rytarowski <n54@gmx.com>
1838
1839 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1840 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1841 (netbsd_nat::for_each_thread): Add.
1842 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1843 "gdbsupport/common-debug.h".
1844 * (netbsd_nat::netbsd_thread_lister)
1845 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1846 (netbsd_nat::for_each_thread): Add.
1847
330662f6
KR
18482020-09-10 Kamil Rytarowski <n54@gmx.com>
1849
1850 * netbsd-nat.h: Include <unistd.h>.
1851 * (netbsd_nat::pid_to_exec_file): Add.
1852 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1853 * (netbsd_nat::pid_to_exec_file) Add.
1854
70b67307
KR
18552020-09-10 Kamil Rytarowski <n54@gmx.com>
1856
1857 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
1858
99cf6da6
KR
18592020-09-10 Kamil Rytarowski <n54@gmx.com>
1860
1861 * netbsd-nat.h: New file.
1862 * netbsd-nat.c: Likewise.
1863
1b788fb6
TT
18642020-09-09 Tom Tromey <tromey@adacore.com>
1865
1866 * ada-lang.c (remove_extra_symbols): Do not increment when
1867 removing an element
1868
03b0a45f
TT
18692020-09-08 Tom Tromey <tromey@adacore.com>
1870
1871 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
1872
3cae4447
TT
18732020-09-08 Tom Tromey <tromey@adacore.com>
1874
1875 PR win32/25302:
1876 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
1877 (gdb_bfd_init_data): New function.
1878 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
1879
7f08fd51
TBA
18802020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1881
1882 * infrun.c (fetch_inferior_event): Use
1883 `switch_to_target_no_thread` to switch the target.
1884
3e6ff933
TT
18852020-09-06 Tom Tromey <tom@tromey.com>
1886
1887 * symfile.h (dwarf2_free_objfile): Don't declare.
1888
e56798df
AKS
18892020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1890
1891 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
1892 to match 16 byte real/complex type generated by Flang compiler.
1893
8f5c6526
TV
18942020-09-03 Tom de Vries <tdevries@suse.de>
1895
1896 PR breakpoint/26546
1897 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
1898 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
1899
c5065df0
SM
19002020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
1901
1902 * maint.c (index_digits): New function.
1903 (struct maint_print_section_data): Remove.
1904 (print_bfd_section_info): Remove print_data parameter, add arg
1905 and index_digits.
1906 (print_objfile_section_info): Likewise.
1907 (print_bfd_section_info_maybe_relocated): Likewise (plus
1908 objfile).
1909 (maintenance_info_sections): Adjust calls.
1910
02c6f3f1
TT
19112020-09-02 Tom Tromey <tromey@adacore.com>
1912
1913 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1914 for null pointers.
1915 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1916
ef5e5b0b
SM
19172020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1918
1919 * bcache.h (struct bcache) <insert>: Change type of `added` to
1920 pointer to bool.
1921 * bcache.c (bcache::insert): Likewise.
1922 * gdbtypes.c (check_types_worklist): Adjust.
1923 * psymtab.c (add_psymbol_to_bcache): Adjust.
1924
973695d6
KB
19252020-08-31 Kevin Buettner <kevinb@redhat.com>
1926
1927 * corelow.c (unordered_set): Include.
1928 (class core_target): Add field 'm_core_unavailable_mappings'.
1929 (core_target::build_file_mappings): Print only one warning
1930 per inaccessible file. Add unavailable/broken mappings
1931 to m_core_unavailable_mappings.
1932 (core_target::xfer_partial): Call...
1933 (core_target::xfer_memory_via_mappings): New method.
1934
264fc0e2
SM
19352020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1936
1937 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1938 type to bool.
1939
2de01bdb
SM
19402020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1941
1942 * dwarf2/read.c (struct field_info): Fix indentation.
1943
f3bd50f1
SM
19442020-08-31 Simon Marchi <simon.marchi@efficios.com>
1945
1946 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1947 ordering in comment.
1948 * frame.c (frame_id_eq): Fix indentation.
1949
22b9b4b0
SL
19502020-08-31 Scott Linder <scott@scottlinder.com>
1951 Simon Marchi <simon.marchi@efficios.com>
1952
1953 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1954 inline frame ids in outer frame.
1955
84154d16
SM
19562020-08-31 Simon Marchi <simon.marchi@efficios.com>
1957
1958 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1959 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1960 (outer_frame_id): Use FID_STACK_OUTER instead of
1961 FID_STACK_INVALID.
1962 (frame_id_p): Don't check for outer_frame_id.
1963
8efaf6b3
SM
19642020-08-31 Simon Marchi <simon.marchi@efficios.com>
1965
1966 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1967 regnum/frame in value. Call allocate_value_lazy.
1968 * frame.c (frame_unwind_register_value): Use
1969 val_print_not_saved.
1970
fe1fe7ea
SM
19712020-08-31 Simon Marchi <simon.marchi@efficios.com>
1972
1973 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1974
f7c7700d
PA
19752020-08-29 Pedro Alves <pedro@palves.net>
1976
1977 * progspace.c (print_program_space): Use all_inferiors. Switch to
1978 the inferior before calling target_pid_to_str.
1979
e0814aae
TT
19802020-08-28 Tom Tromey <tom@tromey.com>
1981
1982 * xcoffread.c (xcoff_end_psymtab): Update comment.
1983 * dbxread.c (dbx_end_psymtab): Update comment.
1984
626d2320
TV
19852020-08-28 Tom de Vries <tdevries@suse.de>
1986
1987 PR breakpoint/26544
1988 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1989 event_location.
1990 (create_breakpoint): Same.
1991 (base_breakpoint_decode_location): Same.
1992 (bkpt_create_sals_from_location): Same.
1993 (bkpt_decode_location): Same.
1994 (bkpt_probe_create_sals_from_location): Same.
1995 (bkpt_probe_decode_location): Same.
1996 (tracepoint_create_sals_from_location): Same.
1997 (tracepoint_decode_location): Same.
1998 (tracepoint_probe_decode_location): Same.
1999 (strace_marker_create_sals_from_location): Same.
2000 (strace_marker_decode_location): Same.
2001 (create_sals_from_location_default): Same.
2002 (decode_location_default): Same.
2003 * breakpoint.h (struct breakpoint_ops): Same.
2004 (create_breakpoint): Same.
2005 * linespec.h (decode_line_full): Same.
2006 * linespec.c (decode_line_full): Same. Throw error if
2007 result.size () == 0.
2008
df631783
PA
20092020-08-27 Pedro Alves <pedro@palves.net>
2010
2011 PR gdb/26524
2012 * breakpoint.c (until_break_fsm) <location_breakpoint,
2013 caller_breakpoint>: Delete fields.
2014 <breakpoints>: New field.
2015 <until_break_fsm>: Adjust to save a breakpoint vector instead of
2016 two individual breakpoints.
2017 (until_break_fsm::should_stop): Loop over breakpoints in the
2018 breakpoint vector.
2019 (until_break_fsm::clean_up): Adjust to clear the breakpoints
2020 vector.
2021 (until_break_command): Handle location expanding into multiple
2022 sals.
2023
b2b38aa4
PA
20242020-08-27 Pedro Alves <pedro@palves.net>
2025
2026 PR gdb/26523
2027 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
2028 bp_until breakpoints user-specified locations. Update intro
2029 comment.
2030
b886559f
SM
20312020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
2032
2033 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
2034 gdb_bfd_sections): New.
2035 * maint.c (print_bfd_section_info): Change param type to
2036 maint_print_section_data.
2037 (print_objfile_section_info): Likewise.
2038 (print_bfd_section_info_maybe_relocated): Likewise.
2039 (maintenance_info_sections): Use gdb_bfd_sections.
2040
4c6e63bf
SV
20412020-08-25 Shahab Vahedi <shahab@synopsys.com>
2042
2043 * MAINTAINERS: Add ARC target and maintainer.
2044
8d7f0635
AK
20452020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
2046
2047 * configure.tgt: ARC support for GNU/Linux.
2048 * Makefile.in (ALL_TARGET_OBJS): Likewise.
2049 * arc-linux-tdep.c: New file.
2050 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
2051 * arc-tdep.c (arc_write_pc): Use it.
2052
fdd8731b
SV
20532020-08-25 Shahab Vahedi <shahab@synopsys.com>
2054
2055 * arc-tdep.c (arc_check_for_hardware_loop): New.
2056 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
2057
22459524
SV
20582020-08-25 Shahab Vahedi <shahab@synopsys.com>
2059
2060 * arc-tdep.h: Include "gdbarch.h".
2061
995d3a19
SV
20622020-08-25 Shahab Vahedi <shahab@synopsys.com>
2063
2064 * arch/arc.h
2065 (arc_gdbarch_features): New class to stir the selection of target XML.
2066 (arc_create_target_description): Use FEATURES to choose XML target.
2067 (arc_lookup_target_description): Use arc_create_target_description
2068 to create _new_ target descriptions or return the already created
2069 ones if the FEATURES is the same.
2070 * arch/arc.c: Implementation of prototypes described above.
2071 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
2072 (arc_gdbarch_features_init): Initialize the FEATURES struct.
2073 * arc-tdep.c (*_feature_name): Make feature names consistent.
2074 (arc_register_feature): A new struct to hold information about
2075 registers of a particular target/feature.
2076 (arc_check_tdesc_feature): Check if XML provides registers in
2077 compliance with ARC_REGISTER_FEATURE structs.
2078 (arc_update_acc_reg_names): Add aliases for r58 and r59.
2079 (determine_*_reg_feature_set): Which feature name to look for.
2080 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
2081 (mach_type_to_arc_isa): Convert from a set of binutils machine types
2082 to expected ISA enums to be used in arc_gdbarch_features structs.
2083 * features/Makefile (FEATURE_XMLFILES): Add new files.
2084 * gdb/features/arc/v1-aux.c: New file.
2085 * gdb/features/arc/v1-aux.xml: Likewise.
2086 * gdb/features/arc/v1-core.c: Likewise.
2087 * gdb/features/arc/v1-core.xml: Likewise.
2088 * gdb/features/arc/v2-aux.c: Likewise.
2089 * gdb/features/arc/v2-aux.xml: Likewise.
2090 * gdb/features/arc/v2-core.c: Likewise.
2091 * gdb/features/arc/v2-core.xml: Likewise.
2092 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
2093
3945d2d7
GM
20942020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
2095 Andrew Burgess <andrew.burgess@embecosm.com>
2096
2097 PR m2/26372
fc5d6901 2098 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
2099 an assert. Remove single element array indexing pattern as the
2100 MULTI_SUBSCRIPT support will handle this case too.
2101
2677f2d3
SM
21022020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
2103
2104 * value.h (valprint_check_validity): Move declaration from
2105 here...
2106 * valprint.h (valprint_check_validity): ... to here.
2107
c426fddb
SM
21082020-08-24 Simon Marchi <simon.marchi@efficios.com>
2109
2110 * debug.h: New file.
2111 * debug.c (debug_prefixed_vprintf): New function.
2112 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
2113 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
2114
1eb8556f
SM
21152020-08-24 Simon Marchi <simon.marchi@efficios.com>
2116
2117 * infrun.h (infrun_debug_printf_1): New function declaration.
2118 (infrun_debug_printf): New macro.
2119 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
2120 throughout.
2121 (infrun_debug_printf): New function.
2122 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
2123 (handle_jit_event): Likewise.
2124
b8fff44e
MW
21252020-08-21 Mark Wielaard <mark@klomp.org>
2126
2127 * ada-lex.l: Extend register warnings diagnostics comment for g++.
2128
d19c3068
SM
21292020-08-22 Simon Marchi <simon.marchi@efficios.com>
2130
2131 * frame.c (enum class frame_id_status): New.
2132 (struct frame_info) <this_id::p>: Change type to frame_id_status.
2133 (fprintf_frame): Update.
2134 (compute_frame_id): Set frame id status to "computing" on entry.
2135 Set it back to "not_computed" on failure and to "computed" on
2136 success.
2137 (get_frame_id): Assert the frame id is not being computed.
2138 (create_sentinel_frame): Use frame_id_status::COMPUTED.
2139 (create_new_frame): Likewise.
2140 (frame_cleanup_after_sniffer): Update assert.
2141
b70e516e
SM
21422020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2143
2144 * regcache.c (pid_ptid_regcache_map): New type.
2145 (target_ptid_regcache_map): Remove.
2146 (target_pid_ptid_regcache_map): New type.
2147 (regcaches): Change type to target_pid_ptid_regcache_map.
2148 (get_thread_arch_aspace_regcache): Update.
2149 (regcache_thread_ptid_changed): Update, handle pid-like ptid
2150 case.
2151 (regcaches_size): Update.
2152 (regcache_count): Update.
2153 (registers_changed_ptid_target_pid_test): New.
2154 (_initialize_regcache): Register new test.
2155
cdd9148a
SM
21562020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2157
2158 * regcache.c (regcache_count): New.
2159 (struct regcache_test_data): New.
2160 (regcache_test_data_up): New.
2161 (populate_regcaches_for_test): New.
2162 (regcaches_test): Remove.
2163 (get_thread_arch_aspace_regcache_test): New.
2164 (registers_changed_ptid_all_test): New.
2165 (registers_changed_ptid_target_test): New.
2166 (registers_changed_ptid_target_ptid_test): New.
2167 (regcache_thread_ptid_changed): Remove regcache_count lambda.
2168 (_initialize_regcache): Register new tests.
2169
dd125343
SM
21702020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2171
2172 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
2173 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
2174 gdbarch and aspace parameter. Use current inferior's aspace.
2175 Validate regcache's arch value.
2176 (regcaches_test): Update.
2177
3ee93972
SM
21782020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2179
2180 * regcache.c (regcaches_test): Call registers_changed.
2181
33bf4c5c
TBA
21822020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2183
2184 * infrun.c (process_event_stop_test): Fix typo "breapoint".
2185
c2fd7fae
AKS
21862020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2187
2188 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2189 to find the end of prologue for flang compiled binaries.
2190 * arm-tdep.c (arm_skip_prologue): Likewise.
2191 * i386-tdep.c (i386_skip_prologue): Likewise.
2192 * producer.c (producer_is_llvm): New function.
2193 (producer_parsing_tests): Added new tests for clang/flang.
2194 * producer.h (producer_is_llvm): New declaration.
2195
9327494e
SM
21962020-08-18 Simon Marchi <simon.marchi@efficios.com>
2197
2198 * linux-nat.c (linux_nat_debug_printf): New function.
2199 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2200
d138725a
AM
22012020-08-18 Aaron Merey <amerey@redhat.com>
2202
2203 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2204 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2205 (CLIBS): Add DEBUGINFOD_LIBS.
2206
f9b11e6b
ST
22072020-08-17 Sergei Trofimovich <siarheit@google.com>
2208
2209 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2210 'gdbarch_num_regs'.
2211
3ae7ab99
TT
22122020-08-17 Tom Tromey <tromey@adacore.com>
2213
2214 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2215 ada_get_decoded_value returns NULL.
2216
b017825f
TT
22172020-08-17 Tom Tromey <tromey@adacore.com>
2218
2219 * python/py-inferior.c (infpy_search_memory): Use
2220 gdb_py_object_from_ulongest.
2221 * python/py-infevents.c (create_inferior_call_event_object)
2222 (create_memory_changed_event_object): Use
2223 gdb_py_object_from_ulongest.
2224 * python/py-linetable.c (ltpy_entry_get_pc): Use
2225 gdb_py_object_from_ulongest.
2226
7635cf79
SM
22272020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2228
2229 * loc.c (class symbol_needs_eval_context): Fix indentation.
2230
f54be24b
SM
22312020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2232
2233 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2234 bool.
2235
53d5a2a5
TV
22362020-08-17 Tom de Vries <tdevries@suse.de>
2237
2238 PR gdb/26393
2239 * gdbtypes.c (dump_dynamic_prop): New function.
2240 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2241
547ce8f0
TV
22422020-08-15 Tom de Vries <tdevries@suse.de>
2243
2244 PR backtrace/26390
2245 * stack.c (print_frame_args): Temporarily set the selected
2246 frame to FRAME while printing the frame's arguments.
2247
6ea815e7
PFC
22482020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2249
2250 PR breakpoints/26385
2251 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2252 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2253
6e562fa3
PFC
22542020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2255
2256 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2257 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2258 and >= to check return value instead of == -1 and != -1.
2259
d369b608
SM
22602020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2261
2262 * utils.h (class gdb_argv) <as_array_view>: New method.
2263 * utils.c (gdb_argv_as_array_view_test): New.
2264 (_initialize_utils): Register selftest.
2265 * maint.c (maintenance_selftest): Use the new method.
2266
b31488a3
KR
22672020-08-13 Kamil Rytarowski <n54@gmx.com>
2268
2269 * target.h (supports_dumpcore, dumpcore): New
2270 function declarations.
2271 * target.c (supports_dumpcore, dumpcore): New
2272 functions.
2273 * target-delegates.c: Rebuild.
2274 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2275 and target_dumpcore ().
2276
002a3166
AM
22772020-08-13 Aaron Merey <amerey@redhat.com>
2278
2279 * debuginfod-support.c: Replace global variables with user_data.
2280
ece5bc8a
SM
22812020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2282
2283 * maint.c (maintenance_selftest): Split args and pass array_view
2284 to run_tests.
2285
6d8a0a5e
LM
22862020-08-12 Luis Machado <luis.machado@linaro.org>
2287
2288 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2289 type's length.
2290 Use %s and pulongest to print the length.
2291
7cf663a9
PA
22922020-08-12 Pedro Alves <palves@redhat.com>
2293
2294 * NEWS: Move "Multi-target debugging support" item to the
2295 "Changes since GDB 9" section.
2296
27c7b875
PA
22972020-08-12 Pedro Alves <palves@redhat.com>
2298
2299 PR gdb/26336
2300 * progspace.c (program_space::remove_objfile): Invalidate the
2301 frame cache.
2302
1796a2a1
TV
23032020-08-11 Tom de Vries <tdevries@suse.de>
2304
2305 * MAINTAINERS: Mark ms1 as deleted.
2306
f8e3fe0d
LM
23072020-08-10 Luis Machado <luis.machado@linaro.org>
2308
2309 PR gdb/26310
2310
2311 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2312 act accordingly.
2313 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2314 movz/str/stur/stp skipping behavior.
2315
cc308722
LM
23162020-08-10 Luis Machado <luis.machado@linaro.org>
2317
2318 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2319 struct user_sve_header instead of struct sve_context.
2320
041d9819
SM
23212020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2322
2323 * read.h (dwarf2_fetch_die_loc_sect_off,
2324 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2325 `void *` parameter with function_view.
2326 * read.c (dwarf2_fetch_die_loc_sect_off,
2327 dwarf2_fetch_die_loc_cu_off): Likewise.
2328 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2329 (per_cu_dwarf_call): Adjust.
2330 (get_frame_address_in_block_wrapper): Remove.
2331 (indirect_synthetic_pointer): Adjust.
2332 (get_ax_pc): Remove.
2333 (dwarf2_compile_expr_to_ax): Adjust.
2334
38f8aa06
TV
23352020-08-08 Tom de Vries <tdevries@suse.de>
2336
2337 PR build/26344
2338 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2339 constructor.
2340 * regcache.c (get_thread_arch_aspace_regcache): Same.
2341
a52b3ae2
TT
23422020-08-07 Tom Tromey <tromey@adacore.com>
2343
2344 * ravenscar-thread.c
2345 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2346 New method.
2347 (ravenscar_thread_target::wait): Check
2348 runtime_initialized.
2349 (ravenscar_thread_target::prepare_to_store)
2350 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2351 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2352 (ravenscar_thread_target::stopped_by_watchpoint)
2353 (ravenscar_thread_target::stopped_data_address)
2354 (ravenscar_thread_target::core_of_thread): Use
2355 scoped_restore_current_thread and
2356 set_base_thread_from_ravenscar_task.
2357
0e29517d
TT
23582020-08-07 Tom Tromey <tromey@adacore.com>
2359
2360 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2361
592f9bd7
TT
23622020-08-07 Tom Tromey <tromey@adacore.com>
2363
2364 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2365 update_inferior_ptid before update_thread_list.
2366 (temporarily_change_regcache_ptid): New class.
2367 (ravenscar_thread_target::fetch_registers)
2368 (ravenscar_thread_target::store_registers)
2369 (ravenscar_thread_target::prepare_to_store): Use base thread when
2370 forwarding operation.
2371
39e2018a
TT
23722020-08-07 Tom Tromey <tromey@adacore.com>
2373
2374 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2375 "is_pid" case.
2376
2080266b
TT
23772020-08-07 Tom Tromey <tromey@adacore.com>
2378
2379 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2380 New methods.
2381 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2382 first.
2383 (ravenscar_thread_target::add_thread): Rename from
2384 ravenscar_add_thread.
2385 (ravenscar_thread_target::update_thread_list): Use a lambda.
2386 (ravenscar_thread_target::xfer_partial): New method.
2387
78c02f21
TT
23882020-08-07 Tom Tromey <tromey@adacore.com>
2389
2390 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2391 gdb::function_view.
2392 (iterate_over_live_ada_tasks): Change type of argument.
2393 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2394 of argument.
2395
d5d833af
TT
23962020-08-07 Tom Tromey <tromey@adacore.com>
2397
2398 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2399 Remove.
2400 (ravenscar_thread_target::extra_thread_info): Remove.
2401 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2402 defer to target beneath for non-Ravenscar threads.
2403
a8ac85bb
TT
24042020-08-07 Tom Tromey <tromey@adacore.com>
2405
2406 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2407 get_base_thread_from_ravenscar_task>: Now methods.
2408 <m_cpu_map>: New member.
2409 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2410 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2411 (ravenscar_thread_target::task_is_currently_active): Update.
2412 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2413 Now a method.
2414 (ravenscar_thread_target::add_active_thread): Put initial thread
2415 into the m_cpu_map.
2416
550ab58d
TT
24172020-08-07 Tom Tromey <tromey@adacore.com>
2418
2419 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2420 event_ptid.
2421
e9546579
TT
24222020-08-07 Tom Tromey <tromey@adacore.com>
2423
2424 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2425 runtime_initialized.
2426
3d4470e5
TT
24272020-08-07 Tom Tromey <tromey@adacore.com>
2428
2429 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2430 add_active_thread.
2431 (ravenscar_thread_target::add_active_thread): Now public.
2432 (ravenscar_inferior_created): Call add_active_thread after pushing
2433 the target.
2434
888bdb2b
SM
24352020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2436
2437 * regcache.c (ptid_regcache_map): New type.
2438 (target_ptid_regcache_map): New type.
2439 (regcaches): Change type to target_ptid_regcache_map.
2440 (get_thread_arch_aspace_regcache): Update to regcaches' new
2441 type.
2442 (regcache_thread_ptid_changed): Likewise.
2443 (registers_changed_ptid): Likewise.
2444 (regcaches_size): Likewise.
2445 (regcaches_test): Update.
2446 (regcache_thread_ptid_changed): Update.
2447 * regcache.h (regcache_up): New type.
2448 * gdbsupport/ptid.h (hash_ptid): New struct.
2449
b161a60d
SM
24502020-08-07 Simon Marchi <simon.marchi@efficios.com>
2451
2452 * observable.h (thread_ptid_changed): Add parameter
2453 `process_stratum_target *`.
2454 * infrun.c (infrun_thread_ptid_changed): Add parameter
2455 `process_stratum_target *` and use it.
2456 (selftests): New namespace.
2457 (infrun_thread_ptid_changed): New function.
2458 (_initialize_infrun): Register selftest.
2459 * regcache.c (regcache_thread_ptid_changed): Add parameter
2460 `process_stratum_target *` and use it.
2461 (regcache_thread_ptid_changed): New function.
2462 (_initialize_regcache): Register selftest.
2463 * thread.c (thread_change_ptid): Pass target to
2464 thread_ptid_changed observable.
2465
d2854d8d
CT
24662020-08-06 Caroline Tice <cmtice@google.com>
2467
fe4c3d43
SM
2468 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2469 (struct dwp_sections): Update field comments. Add loclists and
2470 rnglists fields.
2471 (struct virtual_v2_dwo_sections): Rename struct to
2472 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2473 size & offset fields for loclists and rnglists.
2474 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2475 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2476 skipping dummy type units.
2477 (create_dwp_hash_table): Update the large comment above the function to
2478 discuss Version 5 DWP files as well, with references. Update all the
2479 version checks in the function to check for version 5 as well. Add new
2480 section at the end to create dwp hash table for version 5.
2481 (create_dwp_v2_section): Rename function to
2482 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2483 Add V5 to error message text.
2484 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2485 into calls to create_dwp_v2_or_v5_section.
2486 (create_dwo_unit_in_dwp_v5): New function.
2487 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2488 check for version2; add else clause to handle version 5.
2489 (open_and_init_dwo_file): Add code to check dwarf version & only call
2490 create_debug_types_hash_table (with sections.types) if version is not 5;
2491 else call create_debug_type_hash_table, with sections.info.
2492 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2493 version 5.
2494 (dwarf2_locate_v5_dwp_sections): New function.
2495 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2496 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 2497
159ed7d9
SM
24982020-08-06 Simon Marchi <simon.marchi@efficios.com>
2499
2500 * regcache.h (class regcache): Remove friend
2501 registers_changed_ptid.
2502 <regcache_thread_ptid_changed>: Remove.
2503 <regcaches>: Remove.
2504 * regcache.c (regcache::regcaches): Rename to...
2505 (regcaches): ... this. Make static.
2506 (get_thread_arch_aspace_regcache): Update.
2507 (regcache::regcache_thread_ptid_changed): Rename to...
2508 (regcache_thread_ptid_changed): ... this. Update.
2509 (class regcache_access): Remove.
2510 (regcaches_test): Update.
2511 (_initialize_regcache): Update.
2512 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2513 <forward_list>.
2514
174981ae
SM
25152020-08-06 Simon Marchi <simon.marchi@efficios.com>
2516
2517 * regcache.h (class regcache) <current_regcache>: Rename to...
2518 <regcaches>: ... this. Move doc here.
2519 * regcache.c (regcache::current_regcache) Rename to...
2520 (regcache::regcaches): ... this. Move doc to header.
2521 (get_thread_arch_aspace_regcache): Update.
2522 (regcache::regcache_thread_ptid_changed): Update.
2523 (registers_changed_ptid): Update.
2524 (class regcache_access) <current_regcache_size>: Rename to...
2525 <regcaches_size>: ... this.
2526 (current_regcache_test): Rename to...
2527 (regcaches_test): ... this.
2528 (_initialize_regcache): Update.
2529
ed908db6
VC
25302020-08-06 Victor Collod <vcollod@nvidia.com>
2531
2532 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2533
b5582ab7
KB
25342020-08-05 Kevin Buettner <kevinb@redhat.com>
2535
2536 * corelow.c (core_target::build_file_mappings): Don't output
2537 null pathname in warning.
2538
ea946b86
SM
25392020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2540
2541 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2542 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2543 gdb.dwarf2/dw2-single-line-discriminators.exp,
2544 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2545
57d02173
TT
25462020-08-05 Tom Tromey <tromey@adacore.com>
2547
2548 PR rust/26197:
2549 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2550 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2551 Fix off-by-one and type size errors in ordinary case.
2552
5555c86d
TV
25532020-08-05 Tom de Vries <tdevries@suse.de>
2554
2555 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2556 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2557
97916bfe
SM
25582020-08-04 Simon Marchi <simon.marchi@efficios.com>
2559
2560 * frame.h (frame_id_p): Return bool.
2561 (frame_id_artificial_p): Return bool.
2562 (frame_id_eq): Return bool.
2563 (has_stack_frames): Return bool.
2564 (get_selected_frame): Fix typo in comment.
2565 (get_frame_pc_if_available): Return bool.
2566 (get_frame_address_in_block_if_available): Return bool.
2567 (get_frame_func_if_available): Return bool.
2568 (read_frame_register_unsigned): Return bool.
2569 (get_frame_register_bytes): Return bool.
2570 (safe_frame_unwind_memory): Return bool.
2571 (deprecated_frame_register_read): Return bool.
2572 (frame_unwinder_is): Return bool.
2573 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2574 bool.
2575 <this_id::p>: Likewise.
2576 <prev_p>: Likewise.
2577 (frame_stash_add): Return bool.
2578 (get_frame_id): Use bool.
2579 (frame_id_build_special) Use bool.
2580 (frame_id_build_unavailable_stack): Use bool.
2581 (frame_id_build): Use bool.
2582 (frame_id_p): Return bool, use true/false instead of 1/0.
2583 (frame_id_artificial_p): Likewise.
2584 (frame_id_eq): Likewise.
2585 (frame_id_inner): Likewise.
2586 (get_frame_func_if_available): Likewise.
2587 (read_frame_register_unsigned): Likewise.
2588 (deprecated_frame_register_read): Likewise.
2589 (get_frame_register_bytes): Likewise.
2590 (has_stack_frames): Likewise.
2591 (inside_main_func): Likewise.
2592 (inside_entry_func): Likewise.
2593 (get_frame_pc_if_available): Likewise.
2594 (get_frame_address_in_block_if_available): Likewise.
2595 (frame_unwinder_is): Likewise.
2596 (safe_frame_unwind_memory): Likewise.
2597 (frame_unwind_arch): Likewise.
2598
fedfee88
SM
25992020-08-04 Simon Marchi <simon.marchi@efficios.com>
2600
2601 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2602 type to cached_copy_status.
2603 (fprintf_frame): Adjust.
2604 (get_frame_func_if_available): Adjust.
2605 (frame_cleanup_after_sniffer): Adjust.
2606
6cfa9b59
MW
26072020-08-04 Mark Wielaard <mark@klomp.org>
2608
2609 * MAINTAINERS (Write After Approval): Update email address.
2610
66d6346b
SM
26112020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2612
2613 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2614 dynamic_prop::const_val.
2615
8a6d5e35
SM
26162020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2617
2618 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2619 dynamic_prop::kind.
2620
51d6067d
SM
26212020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2622
2623 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2624
b26e2ae7
JM
26252020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2626
2627 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2628
39791af2
JM
26292020-08-04 Weimin Pan <weimin.pan@oracle.com>
2630 Jose E. Marchesi <jose.marchesi@oracle.com>
2631
2632 * configure.tgt: Add entry for bpf-*-*.
2633 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2634 (ALLDEPFILES): Add bpf-tdep.c.
2635 * bpf-tdep.c: New file.
2636 * MAINTAINERS: Add bpf target and maintainer.
2637 * NEWS: Mention the support for the new target.
2638
521894aa
TV
26392020-08-04 Tom de Vries <tdevries@suse.de>
2640
2641 PR symtab/23270
2642 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2643 Error.
2644
5d6356e9
JB
26452020-08-03 John Baldwin <jhb@FreeBSD.org>
2646
2647 * syscalls/freebsd.xml: Regenerate.
2648
0cf82b81
JB
26492020-08-03 John Baldwin <jhb@FreeBSD.org>
2650
2651 * syscalls/update-freebsd.sh: Fix usage and year range.
2652
8f34b746
TV
26532020-08-03 Tom de Vries <tdevries@suse.de>
2654
2655 PR symtab/26333
2656 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2657 DW_LNE_lo_user/DW_LNE_hi_user range.
2658
5e500d33
SM
26592020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2660
2661 PR ada/26318
2662 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2663 kind.
2664
78319c15
TBA
26652020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2666
2667 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2668
4c55e970
TBA
26692020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2670
2671 * breakpoint.c (set_breakpoint_condition): Update the condition
2672 expressions after checking that the input condition string parses
2673 successfully and does not contain junk at the end.
2674
1e620590
TBA
26752020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2676
2677 * breakpoint.c (set_breakpoint_condition): Update the
2678 condition string after parsing the new condition successfully.
2679
c8693053
RO
26802020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2681
2682 * proc-api.c (_STRUCTURED_PROC): Don't define.
2683 * proc-events.c: Likewise.
2684 * proc-flags.c: Likewise.
2685 * proc-why.c: Likewise.
2686 * procfs.c: Likewise.
2687
2688 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2689 * configure, config.in: Regenerate.
2690
5a99adb8
TV
26912020-07-30 Tom de Vries <tdevries@suse.de>
2692
2693 PR build/26320
2694 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2695 m_red/m_green/m_blue in a union.
2696
8ba83e91
TV
26972020-07-29 Tom de Vries <tdevries@suse.de>
2698
2699 PR tdep/26280
2700 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2701
f75a0693
AB
27022020-07-28 Tom Tromey <tromey@adacore.com>
2703
2704 PR symtab/26270:
2705 * symtab.h (find_pc_partial_function_sym): Declare.
2706 * cli/cli-cmds.c (disassemble_command): Use
2707 find_pc_partial_function_sym. Check asm_demangle.
2708 * blockframe.c (cache_pc_function_sym): New global.
2709 (cache_pc_function_name): Remove.
2710 (clear_pc_function_cache): Update.
2711 (find_pc_partial_function_sym): New function, from
2712 find_pc_partial_function.
2713 (find_pc_partial_function): Rewrite using
2714 find_pc_partial_function_sym.
2715
16f3242c
TT
27162020-07-28 Tom Tromey <tromey@adacore.com>
2717
2718 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2719 help. Add usage.
2720
4888741a
TT
27212020-07-28 Tom Tromey <tromey@adacore.com>
2722
2723 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2724 <DW_OP_GNU_variable_value>: Cast to address type.
2725
4d46f402
KR
27262020-07-28 Kamil Rytarowski <n54@gmx.com>
2727
2728 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2729 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2730 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2731 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2732 (nbsd_get_siginfo_type): New.
2733 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2734 (_initialize_nbsd_tdep): New.
2735
d70f978b
L
27362020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2737
2738 PR binutils/26301
2739 * configure: Regenerated.
2740
377170fa
L
27412020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2742
2743 PR binutils/26301
2744 * configure: Regenerated.
2745
43d5901d
AB
27462020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2747
2748 * python/py-frame.c: Remove 'user-regs.h' include.
2749 (frapy_read_register): Rewrite to make use of
2750 gdbpy_parse_register_id.
2751 * python/py-registers.c (gdbpy_parse_register_id): New function,
2752 moved here from python/py-unwind.c. Updated the return type, and
2753 also accepts register descriptor objects.
2754 * python/py-unwind.c: Remove 'user-regs.h' include.
2755 (pyuw_parse_register_id): Moved to python/py-registers.c.
2756 (unwind_infopy_add_saved_register): Update to use
2757 gdbpy_parse_register_id.
2758 (pending_framepy_read_register): Likewise.
2759 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2760
14fa8fb3
AB
27612020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2762
2763 * python/py-registers.c: Add 'user-regs.h' include.
2764 (register_descriptor_iter_find): New function.
2765 (register_descriptor_iterator_object_methods): New static global
2766 methods array.
2767 (register_descriptor_iterator_object_type): Add pointer to methods
2768 array.
2769
ddce1758
JB
27702020-07-27 John Baldwin <jhb@FreeBSD.org>
2771
2772 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2773 for all architectures on FreeBSD 11.3 and later.
2774
a4089f52
TT
27752020-07-27 Tom Tromey <tromey@adacore.com>
2776
2777 * gcore.h (load_corefile): Don't declare.
2778
95420d30
TV
27792020-07-27 Tom de Vries <tdevries@suse.de>
2780
2781 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2782 * config.in: Regenerate.
2783 * configure: Regenerate.
2784
05a6b8c2
EZ
27852020-07-26 Eli Zaretskii <eliz@gnu.org>
2786
2787 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2788 ws2tcpip.h. When checking whether socklen_t type is defined, use
2789 ws2tcpip.h if it is available and sys/socket.h isn't.
2790 * configure: Regenerate.
2791 * config.in: Regenerate.
2792
e79eb02f
AB
27932020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2794
2795 PR fortran/23051
2796 PR fortran/26139
2797 * valops.c (value_ind): Pass address to
2798 readjust_indirect_value_type.
2799 * value.c (readjust_indirect_value_type): Make parameter
2800 non-const, and add extra address parameter. Resolve original type
2801 before using it.
2802 * value.h (readjust_indirect_value_type): Update function
2803 signature and comment.
2804
876518dd
TV
28052020-07-25 Tom de Vries <tdevries@suse.de>
2806
2807 PR symtab/26243
2808 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2809 entries.
2810
f6720b1c
AM
28112020-07-24 Aaron Merey <amerey@redhat.com>
2812
2813 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2814 * configure: Rebuild.
2815
513487e1
KB
28162020-07-23 Kevin Buettner <kevinb@redhat.com>
2817
2818 PR corefiles/26294
2819 * corelow.c (_initialize_corelow): Add period to help text
2820 for "maintenance print core-file-backed-mappings".
2821
e7bc9db8
PA
28222020-07-23 Pedro Alves <pedro@palves.net>
2823
2824 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2825 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2826 meanwhile.
2827 * frame.c (frame_cache_generation, get_frame_cache_generation):
2828 New.
2829 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2830 (get_prev_frame_if_no_cycle): On exception, don't touch
2831 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2832 * frame.h (get_frame_cache_generation): Declare.
2833
90fcc466
TV
28342020-07-23 Tom de Vries <tdevries@suse.de>
2835
2836 PR tui/26282
2837 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2838 New default constructor.
2839
78344df7
AB
28402020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2841
2842 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2843 exclude non-statement entries.
2844
b089853a
KB
28452020-07-22 Kevin Buettner <kevinb@redhat.com>
2846
2847 * NEWS (New commands): Mention new command
2848 "maintenance print core-file-backed-mappings".
2849
09c2f5d4
KB
28502020-07-22 Kevin Buettner <kevinb@redhat.com>
2851
2852 * corelow.c (gdbcmd.h): Include.
2853 (core_target::info_proc_mappings): New method.
2854 (get_current_core_target): New function.
2855 (maintenance_print_core_file_backed_mappings): New function.
2856 (_initialize_corelow): Add core-file-backed-mappings to
2857 "maint print" commands.
2858
9c5ec5c2 28592020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 2860
9c5ec5c2
KB
2861 * linux-tdep.c (dump_note_entry_p): New function.
2862 (linux_dump_mapping_p_ftype): New typedef.
2863 (linux_find_memory_regions_full): Add new parameter,
2864 should_dump_mapping_p.
2865 (linux_find_memory_regions): Adjust call to
2866 linux_find_memory_regions_full.
2867 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2868 call to linux_find_memory_regions_full.
2869
db082f59
KB
28702020-07-22 Kevin Buettner <kevinb@redhat.com>
2871
2872 * corelow.c (solist.h, unordered_map): Include.
2873 (class core_target): Add field m_core_file_mappings and
2874 method build_file_mappings.
2875 (core_target::core_target): Call build_file_mappings.
2876 (core_target::~core_target): Free memory associated with
2877 m_core_file_mappings.
2878 (core_target::build_file_mappings): New method.
2879 (core_target::xfer_partial): Use m_core_file_mappings
2880 for memory transfers.
2881 * linux-tdep.c (linux_read_core_file_mappings): New
2882 function.
2883 (linux_core_info_proc_mappings): Rewrite to use
2884 linux_read_core_file_mappings.
2885 (linux_init_abi): Register linux_read_core_file_mappings.
2886
7e183d27
KB
28872020-07-22 Kevin Buettner <kevinb@redhat.com>
2888
2889 * arch-utils.c (default_read_core_file_mappings): New function.
2890 * arch-utils.c (default_read_core_file_mappings): Declare.
2891 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
2892 * gdbarch.h, gdbarch.c: Regenerate.
2893
2735d421
KB
28942020-07-22 Kevin Buettner <kevinb@redhat.com>
2895
2896 PR corefiles/25631
2897 * corelow.c (core_target:xfer_partial): Revise
2898 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
2899 case after first checking the stratum beneath the core
2900 target.
2901 (has_all_memory): Return true.
2902 * target.c (raw_memory_xfer_partial): Revise comment
2903 regarding use of has_all_memory.
2904
e56cb451
KB
29052020-07-22 Kevin Buettner <kevinb@redhat.com>
2906
2907 * exec.h (section_table_xfer_memory): Revise declaration,
2908 replacing section name parameter with an optional callback
2909 predicate.
2910 * exec.c (section_table_xfer_memory): Likewise.
2911 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2912 of section_table_xfer_memory.
2913
32fa152e
TT
29142020-07-22 Tom Tromey <tromey@adacore.com>
2915
2916 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2917 lookup_symbol_search_name.
2918
a67a1c41
AB
29192020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2920
2921 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2922 redundant local variable.
2923 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2924 reference, not pointer, update code accordingly.
2925
a7b4ff4f
SM
29262020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2927 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2928
2929 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2930 * jit.c (jit_breakpoint_re_set_internal): Use the
2931 `skip_jit_symbol_lookup` field.
2932
2340e834
SM
29332020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2934 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2935
2936 * jit.c (jit_read_descriptor): Define the descriptor address once,
2937 use twice.
2938 (jit_breakpoint_deleted): Move the declaration of the loop variable
2939 `iter` into the loop header.
2940 (jit_breakpoint_re_set_internal): Move the declaration of the local
2941 variable `objf_data` to the first point of definition.
2942 (jit_event_handler): Move the declaration of local variables
2943 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2944 Rename `objf` to `jited`.
2945
c1072906
SM
29462020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2947
2948 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2949 Remove.
2950 * jit.c (get_jiter_objfile_data): Update.
2951
c8474dc3
TBA
29522020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2953 Simon Marchi <simon.marchi@polymtl.ca>
2954
2955 * jit.c (struct jit_program_space_data): Remove.
2956 (jit_program_space_key): Remove.
2957 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2958 stuff.
2959 (get_jit_program_space_data): Remove.
2960 (jit_breakpoint_deleted): Iterate on all of the program space's
2961 objfiles.
2962 (jit_inferior_init): Likewise.
2963 (jit_breakpoint_re_set_internal): Likewise. Also change return
2964 type to void.
2965 (jit_breakpoint_re_set): Pass current_program_space to
2966 jit_breakpoint_re_set_internal.
2967
77208eb7
SM
29682020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2969
2970 * jit.h (struct jiter_objfile_data) <cached_code_address,
2971 jit_breakpoint>: Move to here from ...
2972 * jit.c (jit_program_space_data): ... here.
2973 (jiter_objfile_data::~jiter_objfile_data): Update.
2974 (jit_breakpoint_deleted): Update.
2975 (jit_breakpoint_re_set_internal): Update.
2976
8c1c720f
SM
29772020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2978
2979 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2980 checks.
2981 (jit_read_descriptor): Remove NULL check.
2982 (jit_event_handler): Add an assertion.
2983
0e74a041
SM
29842020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2985
2986 * jit.h (struct jit_objfile_data): Split into...
2987 (struct jiter_objfile_data): ... this ...
2988 (struct jited_objfile_data): ... and this.
2989 * objfiles.h (struct objfile) <jit_data>: Remove.
2990 <jiter_data, jited_data>: New fields.
2991 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2992 (jiter_objfile_data::~jiter_objfile_data): ... this.
2993 (get_jit_objfile_data): Rename to ...
2994 (get_jiter_objfile_data): ... this.
2995 (add_objfile_entry): Update.
2996 (jit_read_descriptor): Use get_jiter_objfile_data.
2997 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2998 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2999 (jit_inferior_exit_hook): Use objfile's jited_data field.
3000
238b5c9f
SM
30012020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3002
3003 * jit.h: Forward-declare `struct minimal_symbol`.
3004 (struct jit_objfile_data): Migrate to here from jit.c; also add a
3005 constructor, destructor, and an objfile* field.
3006 * jit.c (jit_objfile_data): Remove.
3007 (struct jit_objfile_data): Migrate from here to jit.h.
3008 (jit_objfile_data::~jit_objfile_data): New destructor
3009 implementation with code moved from free_objfile_data.
3010 (free_objfile_data): Delete.
3011 (get_jit_objfile_data): Update to use the jit_data field of objfile.
3012 (jit_find_objf_with_entry_addr): Ditto.
3013 (jit_inferior_exit_hook): Ditto.
3014 (_initialize_jit): Remove the call to
3015 register_objfile_data_with_cleanup.
3016 * objfiles.h (struct objfile) <jit_data>: New field.
3017
fe053b9e
TBA
30182020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3019
3020 * jit.h: Forward-declare `struct objfile`.
3021 (jit_event_handler): Add a second parameter, the JITer objfile.
3022 * jit.c (jit_read_descriptor): Change the signature to take the
3023 JITer objfile as an argument instead of the jit_program_space_data.
3024 (jit_inferior_init): Update the call to jit_read_descriptor.
3025 (jit_event_handler): Use the new JITer objfile argument when calling
3026 jit_read_descriptor.
3027 * breakpoint.c (handle_jit_event): Update the call to
3028 jit_event_handler to pass the JITer objfile.
3029
4cec0c66
JB
30302020-07-21 John Baldwin <jhb@FreeBSD.org>
3031
3032 * gdbarch.c: Regenerate.
3033 * gdbarch.h: Regenerate.
3034 * gdbarch.sh (handle_segmentation_fault): Remove method.
3035 * infrun.c (handle_segmentation_fault): Remove.
3036 (print_signal_received_reason): Remove call to
3037 handle_segmentation_fault.
3038
0e42f66a
JB
30392020-07-21 John Baldwin <jhb@FreeBSD.org>
3040
3041 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3042 Rename to sparc64_linux_report_signal_info and add siggnal
3043 argument.
3044 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
3045 instead of sparc64_linux_handle_segmentation_fault.
3046
77bdfeb2
JB
30472020-07-21 John Baldwin <jhb@FreeBSD.org>
3048
3049 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
3050 i386_linux_report_signal_info instead of
3051 i386_linux_handle_segmentation_fault.
3052 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
3053 to i386_linux_report_signal_info and add siggnal argument.
3054 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
3055 of i386_linux_handle_segmentation_fault.
3056 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
3057 to i386_linux_report_signal_info and add siggnal argument.
3058
ad97bfc5
JB
30592020-07-21 John Baldwin <jhb@FreeBSD.org>
3060
3061 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
3062 hook if present.
3063
272bb05c
JB
30642020-07-21 John Baldwin <jhb@FreeBSD.org>
3065
3066 * gdbarch.c: Regenerate.
3067 * gdbarch.h: Regenerate.
3068 * gdbarch.sh (report_signal_info): New method.
3069 * infrun.c (print_signal_received_reason): Invoke gdbarch
3070 report_signal_info hook if present.
3071
baf8791e
AB
30722020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3073
3074 * python/py-registers.c : Add 'unordered_map' include.
3075 (gdbpy_new_reggroup): Renamed to...
3076 (gdbpy_get_reggroup): ...this. Update to only create register
3077 group descriptors when needed.
3078 (gdbpy_reggroup_iter_next): Update.
3079
f7306dac
AB
30802020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3081
3082 * python/py-registers.c (gdbpy_register_object_data): New static
3083 global.
3084 (gdbpy_register_object_data_init): New function.
3085 (gdbpy_new_register_descriptor): Renamed to...
3086 (gdbpy_get_register_descriptor): ...this, and update to reuse
3087 existing register descriptors where possible.
3088 (gdbpy_register_descriptor_iter_next): Update.
3089 (gdbpy_initialize_registers): Register new gdbarch data.
3090
05c309a8
SM
30912020-07-21 Simon Marchi <simon.marchi@efficios.com>
3092
3093 * linux-nat.c (stopped_pids): Make static.
3094
d1fd641e
SM
30952020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3096
3097 PR ada/26235
3098 * gdbtypes.c (ada_discrete_type_low_bound,
3099 ada_discrete_type_high_bound): Handle undefined bounds.
3100
1de14d77
KR
31012020-07-21 Kamil Rytarowski <n54@gmx.com>
3102
3103 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
3104 declaration.
3105 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
3106 function.
3107
ed810cc7
JB
31082020-07-20 John Baldwin <jhb@FreeBSD.org>
3109
3110 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
3111 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
3112 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
3113 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
3114 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
3115 method.
3116
ae5369e7
LC
31172020-07-20 Ludovic Courtès <ludo@gnu.org>
3118
3119 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
3120 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
3121 which are deprecated in Guile 3.0.
3122 * configure.ac (try_guile_versions): Add "guile-3.0".
3123 * configure (try_guile_versions): Regenerate.
3124 * NEWS: Update entry.
3125
68cf161c
LC
31262020-07-20 Ludovic Courtès <ludo@gnu.org>
3127 Doug Evans <dje@google.com>
3128
3129 PR gdb/21104
3130 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
3131 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
3132 USING_GUILE_BEFORE_2_2.
3133 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
3134 Change type to 'scm_t_port_type *'.
3135 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
3136 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
3137 parameter and honor it. Update callers.
3138 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
3139 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
3140 functions.
3141 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
3142 USING_GUILE_BEFORE_2_2.
3143 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
3144 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
3145 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
3146 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
3147 and 'SCM_PORT_TYPE'.
3148 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
3149 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
3150 (gdbscm_memory_port_read, gdbscm_memory_port_write)
3151 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
3152 [!USING_GUILE_BEFORE_2_2]: New functions.
3153 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
3154 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
3155 'gdbscm_memory_port_read'.
3156 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
3157 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
3158 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
3159 function.
3160 (ioscm_init_memory_port): Remove.
3161 (ioscm_init_memory_port_stream): New function
3162 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
3163 function.
3164 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3165 Return scm_from_uint (0).
3166 (gdbscm_set_memory_port_read_buffer_size_x)
3167 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3168 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3169 Return scm_from_uint (0).
3170 (gdbscm_set_memory_port_write_buffer_size_x)
3171 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3172 * configure.ac (try_guile_versions): Add "guile-2.2".
3173 * configure: Regenerate.
3174 * NEWS: Add entry.
3175
aee91db3
TT
31762020-07-18 Tom Tromey <tom@tromey.com>
3177
3178 * linux-nat.c (linux_multi_process): Remove.
3179 (linux_nat_target::supports_multi_process): Return true.
3180
0e267416
AB
31812020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3182
3183 * arch/riscv.c (riscv_tdesc_cache): Change map type.
3184 (riscv_lookup_target_description): Return pointer out of
3185 unique_ptr.
3186 * target-descriptions.c (allocate_target_description): Add
3187 comment.
3188 (target_desc_deleter::operator()): Likewise.
3189 * target-descriptions.h (struct target_desc_deleter): Moved to
3190 gdbsupport/tdesc.h.
3191 (target_desc_up): Likewise.
3192
f80c8ec4
TT
31932020-07-17 Tom Tromey <tromey@adacore.com>
3194
3195 * linux-nat.c (linux_nat_target::supports_non_stop)
3196 (linux_nat_target::always_non_stop_p): Use "true".
3197 (linux_nat_target::supports_disable_randomization): Use "true" and
3198 "false".
3199
d0ce17d8
CT
32002020-07-16 Caroline Tice <cmtice@google.com>
3201
3202 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3203 (RNGLIST_HEADER_SIZE64): New constant definition.
3204 (struct dwop_section_names): Add rnglists_dwo.
3205 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3206 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3207 (struct dwo_sections): Add rnglists field.
3208 (read_attribut_reprocess): Add tag parameter.
3209 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3210 (cu_debug_rnglists_section): New function (decl & definition).
3211 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3212 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3213 die whose range is being checked; get rnglist section from
3214 cu_debug_rnglists_section, to get from either objfile or dwo file as
3215 appropriate. Add cases for DW_RLE_base_addressx,
3216 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3217 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3218 test inside if-condition and updating complaint message.
3219 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3220 dwarf2_rnglists_process.
3221 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3222 dwarf2_ranges_process.
3223 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3224 need_ranges_base and update comment appropriately. Also pass die tag
3225 to dwarf2_ranges_read.
3226 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3227 need_ranges_base and update comment appropriately. Also pass die tag
3228 to dwarf2_ranges_process.
3229 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3230 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3231 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3232 need_ranges_base and update comment appropriately. Also pass die tag
3233 to read_attribute_reprocess and dwarf2_ranges_read.
3234 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3235 and update function comment appropriately.
3236 (read_loclist_index): Call read_loclists_rnglists_header instead of
3237 read_loclist_header.
3238 (read_rnglist_index): New function.
3239 (read_attribute_reprocess): Add tag parameter. Add code for
3240 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3241 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3242
3dcc261c
AB
32432020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3244
3245 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3246 being resolved.
3247
ccb9eba6
AB
32482020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3249
3250 * arch-utils.c (show_architecture): Update formatting of messages.
3251
cf88be68
SM
32522020-07-12 Simon Marchi <simon.marchi@efficios.com>
3253
3254 * gdbtypes.h (struct type) <bounds>: Handle array and string
3255 types.
3256 * ada-lang.c (assign_aggregate): Use type::bounds on
3257 array/string type.
3258 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3259 * c-varobj.c (c_number_of_children): Likewise.
3260 (c_describe_child): Likewise.
3261 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3262 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3263 (f_type_print_base): Likewise.
3264 * f-valprint.c (f77_array_offset_tbl): Likewise.
3265 (f77_get_upperbound): Likewise.
3266 (f77_print_array_1): Likewise.
3267 * guile/scm-type.c (gdbscm_type_range): Likewise.
3268 * m2-typeprint.c (m2_array): Likewise.
3269 (m2_is_long_set_of_type): Likewise.
3270 * m2-valprint.c (get_long_set_bounds): Likewise.
3271 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3272 * python/py-type.c (typy_range): Likewise.
3273 * rust-lang.c (rust_internal_print_type): Likewise.
3274 * type-stack.c (type_stack::follow_types): Likewise.
3275 * valarith.c (value_subscripted_rvalue): Likewise.
3276 * valops.c (value_cast): Likewise.
3277
509971ae
SM
32782020-07-12 Simon Marchi <simon.marchi@efficios.com>
3279
3280 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3281 callers to use the equivalent accessor methods.
3282
107406b7
SM
32832020-07-12 Simon Marchi <simon.marchi@efficios.com>
3284
3285 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3286 (struct type) <bit_stride>: New method.
3287 (TYPE_BIT_STRIDE): Remove.
3288 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3289
bb789949
SM
32902020-07-12 Simon Marchi <simon.marchi@efficios.com>
3291
3292 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3293 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3294 callers to use the equivalent accessor methods instead.
3295
39498edb
SM
32962020-07-12 Simon Marchi <simon.marchi@efficios.com>
3297
3298 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3299 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3300 callers to use the equivalent accessor methods instead.
3301
3b606f38
SM
33022020-07-12 Simon Marchi <simon.marchi@efficios.com>
3303
3304 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3305 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3306 to use dynamic_prop::kind.
3307
064d9cb9
SM
33082020-07-12 Simon Marchi <simon.marchi@efficios.com>
3309
3310 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3311 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3312 to get the bound property's kind and check against
3313 PROP_UNDEFINED.
3314
5537ddd0
SM
33152020-07-12 Simon Marchi <simon.marchi@efficios.com>
3316
3317 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3318 all callers to use type::range_bounds followed by
3319 dynamic_prop::{low,high}.
3320
8c2e4e06
SM
33212020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3322
3323 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3324 const_val, set_const_val, baton, set_locexpr, set_loclist,
3325 set_addr_offset, variant_parts, set_variant_parts,
3326 original_type, set_original_type>: New methods.
3327 <kind>: Rename to...
3328 <m_kind>: ... this. Update all users to use the new methods
3329 instead.
3330 <data>: Rename to...
3331 <m_data>: ... this. Update all users to use the new methods
3332 instead.
3333
7c6f2712
SM
33342020-07-12 Simon Marchi <simon.marchi@efficios.com>
3335
3336 * gdbtypes.c (get_discrete_bounds): Return failure if
3337 the range type's bounds are not both defined and constant
3338 values.
3339 (get_array_bounds): Update comment. Remove undefined bound check.
3340
599088e3
SM
33412020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3342
3343 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3344 the type::bounds method directly.
3345
c4dfcb36
SM
33462020-07-12 Simon Marchi <simon.marchi@efficios.com>
3347
3348 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3349 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3350 are used to set the range type's bounds to use set_bounds.
3351
0a278aa7
PW
33522020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3353
3354 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3355
cce20f10
PA
33562020-07-10 Pedro Alves <pedro@palves.net>
3357
3358 * gdbthread.h (inferior_ref): Define.
3359 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3360 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3361 * thread.c
3362 (scoped_restore_current_thread::restore):
3363 Adjust to gdb::ref_ptr.
3364 (scoped_restore_current_thread::~scoped_restore_current_thread):
3365 Remove manual decref handling.
3366 (scoped_restore_current_thread::scoped_restore_current_thread):
3367 Adjust to use
3368 inferior_ref::new_reference/thread_info_ref::new_reference.
3369 Incref the thread before calling get_frame_id instead of after.
3370 Let TARGET_CLOSE_ERROR propagate.
3371
6d7aa592
PA
33722020-07-10 Pedro Alves <pedro@palves.net>
3373
3374 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3375 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3376 NOT_AVAILABLE_ERROR.
3377 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3378 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3379
b3e3a4c1
SM
33802020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3381 Pedro Alves <pedro@palves.net>
3382
3383 PR gdb/26199
3384 * infrun.c (threads_are_resumed_pending_p): Delete.
3385 (do_target_wait): Remove threads_are_executing and
3386 threads_are_resumed_pending_p checks from the inferior_matches
3387 lambda. Update comments.
3388
d6cc5d98
PA
33892020-07-10 Pedro Alves <pedro@palves.net>
3390
3391 PR gdb/26199
3392 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3393 executing threads.
3394
7d3badc6
PA
33952020-07-10 Pedro Alves <pedro@palves.net>
3396
3397 PR gdb/26199
3398 * infrun.c (handle_no_resumed): Handle multiple targets.
3399
42bd97a6
PA
34002020-07-10 Pedro Alves <pedro@palves.net>
3401
3402 PR gdb/26199
3403 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3404 target_is_async_p.
3405
43667cc6
PA
34062020-07-10 Pedro Alves <pedro@palves.net>
3407
3408 PR gdb/26199
3409 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3410 threads, not all threads.
3411
96118d11
PA
34122020-07-10 Pedro Alves <pedro@palves.net>
3413
3414 PR gdb/26199
3415 * remote.c (remote_target::open_1): Pass remote target pointer as
3416 data to create_async_event_handler.
3417 (remote_async_inferior_event_handler): Mark async event handler
3418 before returning if the remote target still has either pending
3419 events or unacknowledged notifications.
3420
54904d81
JB
34212020-07-10 John Baldwin <jhb@FreeBSD.org>
3422
3423 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3424 declaration.
3425 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3426 function.
3427
f37e5866
JB
34282020-07-09 John Baldwin <jhb@FreeBSD.org>
3429
3430 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3431 inferior_ptid.
3432
fc238d4a
JB
34332020-07-09 John Baldwin <jhb@FreeBSD.org>
3434
3435 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3436 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3437 AT_FREEBSD_PS_STRINGS.
3438
6e2469ff
HD
34392020-07-08 Hannes Domani <ssbssa@yahoo.de>
3440
3441 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3442 of debugfile path on Windows.
3443
d1076c41
JB
34442020-07-08 John Baldwin <jhb@FreeBSD.org>
3445
3446 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3447 argument to 'data'.
3448
15f3b077
TT
34492020-07-08 Tom Tromey <tromey@adacore.com>
3450
3451 * ada-lang.c (ada_exception_message_1): Use read_memory.
3452
9fc501fd
AB
34532020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3454
3455 PR python/22748
3456 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3457 special handling for inline frames.
3458 * findvar.c (value_of_register_lazy): Skip inline frames when
3459 creating lazy register values.
3460 * frame.c (frame_id_computed_p): Delete definition.
3461 * frame.h (frame_id_computed_p): Delete declaration.
3462
64cb3757
AB
34632020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3464
3465 * NEWS: Mention additions to Python API.
3466 * python/py-arch.c (archpy_register_groups): New function.
3467 (arch_object_methods): Add 'register_groups' method.
3468 * python/py-registers.c (reggroup_iterator_object): New struct.
3469 (reggroup_object): New struct.
3470 (gdbpy_new_reggroup): New function.
3471 (gdbpy_reggroup_to_string): New function.
3472 (gdbpy_reggroup_name): New function.
3473 (gdbpy_reggroup_iter): New function.
3474 (gdbpy_reggroup_iter_next): New function.
3475 (gdbpy_new_reggroup_iterator): New function
3476 (gdbpy_initialize_registers): Register new types.
3477 (reggroup_iterator_object_type): Define new Python type.
3478 (gdbpy_reggroup_getset): New static global.
3479 (reggroup_object_type): Define new Python type.
3480 * python/python-internal.h
3481
0f767f94
AB
34822020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3483
3484 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3485 * python/py-arch.c (archpy_registers): New function.
3486 (arch_object_methods): Add 'registers' method.
3487 * python/py-registers.c: New file.
3488 * python/python-internal.h
3489 (gdbpy_new_register_descriptor_iterator): Declare.
3490 (gdbpy_initialize_registers): Declare.
3491 * python/python.c (do_start_initialization): Call
3492 gdbpy_initialize_registers.
3493 * NEWS: Mention additions to the Python API.
3494
87dbc774
AB
34952020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3496
3497 * NEWS: Mention new Python API method.
3498 * python/py-unwind.c (pending_framepy_architecture): New function.
3499 (pending_frame_object_methods): Add architecture method.
3500
3bc98c0c
AB
35012020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3502
3503 * gdbarch.c: Regenerate.
3504 * gdbarch.h: Regenerate.
3505 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3506 (gdbarch_data): Use internal_error for the case where
3507 deprecated_set_gdbarch_data was originally needed.
3508 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3509 and use passed in obstack.
3510 (libunwind_frame_set_descr): Should no longer get back NULL from
3511 gdbarch_data.
3512 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3513 type.
3514 * user-regs.c (user_regs_init): Update parameters, and use passed
3515 in obstack.
3516 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3517 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3518
d8cc8af6
TV
35192020-07-06 Tom de Vries <tdevries@suse.de>
3520
3521 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3522 End-Of-Sequence in lte_is_less_than.
3523 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3524 "gdb: Don't reorder line table entries too much when sorting".
3525
947f7597
TV
35262020-07-06 Tom de Vries <tdevries@suse.de>
3527
3528 PR tui/26205
3529 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3530
1e7c1b22
TV
35312020-07-05 Tom de Vries <tdevries@suse.de>
3532
3533 PR build/26187
3534 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3535 std::uncaught_exceptions instead of deprecated
3536 std::uncaught_exception.
3537
a36158ec
SM
35382020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3539
3540 * macroexp.h (macro_stringify): Return
3541 gdb::unique_xmalloc_ptr<char>.
3542 * macroexp.c (macro_stringify): Likewise.
3543 * macrotab.c (fixup_definition): Update.
3544
14d960c8
SM
35452020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3546
3547 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3548 (lex_one_token): Update.
3549 * macroexp.c (struct macro_buffer) <release>: Return
3550 gdb::unique_xmalloc_ptr<char>.
3551 (macro_stringify): Update.
3552 (macro_expand): Update.
3553 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3554 * macroexp.h (macro_expand_next): Likewise.
3555
211d5b1c
SM
35562020-07-02 Simon Marchi <simon.marchi@efficios.com>
3557
3558 * macroexp.h (macro_lookup_ftype): Remove.
3559 (macro_expand, macro_expand_once, macro_expand_next): Remove
3560 lookup function parameters, add scope parameter.
3561 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3562 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3563 * macroscope.h (standard_macro_lookup): Change parameter type
3564 to macro_scope.
3565 * macroscope.c (standard_macro_lookup): Likewise.
3566 * c-exp.y (lex_one_token): Update.
3567 * macrocmd.c (macro_expand_command): Likewise.
3568 (macro_expand_once_command): Likewise.
3569
b1a35af2
SM
35702020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3571
3572 * inf-loop.c (inferior_event_handler): Remove client_data param.
3573 * inf-loop.h (inferior_event_handler): Likewise.
3574 * infcmd.c (step_1): Adjust.
3575 * infrun.c (proceed): Adjust.
3576 (fetch_inferior_event): Remove client_data param.
3577 (infrun_async_inferior_event_handler): Adjust.
3578 * infrun.h (fetch_inferior_event): Remove `void *` param.
3579 * linux-nat.c (handle_target_event): Adjust.
3580 * record-btrace.c (record_btrace_handle_async_inferior_event):
3581 Adjust.
3582 * record-full.c (record_full_async_inferior_event_handler):
3583 Adjust.
3584 * remote.c (remote_async_inferior_event_handler): Adjust.
3585
1cdf9e33
TT
35862020-07-01 Tom Tromey <tom@tromey.com>
3587
3588 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3589 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3590
32c1e210
TT
35912020-07-01 Tom Tromey <tom@tromey.com>
3592
3593 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3594 tui_gen_win_info.
3595 (tui_win_info::make_window): Merge with
3596 tui_gen_win_info::make_window.
3597 (tui_win_info::make_visible): Move from tui_gen_win_info.
3598 * tui/tui-win.c (tui_win_info::max_width): Move from
3599 tui_gen_win_info.
3600 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3601 type.
3602 <window_factory>: Likewise.
3603 * tui/tui-layout.c (tui_win_info::resize): Move from
3604 tui_gen_win_info.
3605 (make_standard_window): Change return type.
3606 (get_locator_window, tui_get_window_by_name): Likewise.
3607 (tui_layout_window::apply): Remove a cast.
3608 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3609 (struct tui_win_info): Merge with tui_gen_win_info.
3610 (struct tui_gen_win_info): Remove.
3611
a30cb6da
TT
36122020-07-01 Tom Tromey <tom@tromey.com>
3613
3614 * tui/tui-stack.h (struct tui_locator_window): Derive from
3615 tui_win_info.
3616 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3617 <can_box>: New method.
3618
1eb2161f
TT
36192020-07-01 Tom Tromey <tom@tromey.com>
3620
3621 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3622
7134f2eb
TT
36232020-07-01 Tom Tromey <tom@tromey.com>
3624
3625 * tui/tui-regs.c (tui_data_window::display_registers_from)
3626 (tui_data_window::display_registers_from)
3627 (tui_data_window::first_data_item_displayed)
3628 (tui_data_window::delete_data_content_windows): Update.
3629 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3630 Remove.
3631 (tui_data_window::check_register_values): Update.
3632 (tui_data_item_window::rerender): Add parameters. Update.
3633 (tui_data_item_window::refresh_window): Remove.
3634 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3635 virtual.
3636 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3637 tui_gen_win_info.
3638 <refresh_window, max_height, min_height>: Remove.
3639 <rerender>: Add parameters.
3640 <x, y, visible>: New members.
3641 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3642 <m_item_width>: New member.
3643
22b7b041
TT
36442020-07-01 Tom Tromey <tom@tromey.com>
3645
3646 * tui/tui-regs.c (tui_data_window::show_register_group)
3647 (tui_data_window::check_register_values): Update.
3648 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3649 from item_no.
3650
c9753adb
TT
36512020-07-01 Tom Tromey <tom@tromey.com>
3652
3653 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3654 useless "if".
3655
9ab26b4a
TT
36562020-07-01 Tom Tromey <tom@tromey.com>
3657
3658 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3659 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3660
e555083f
TT
36612020-07-01 Tom Tromey <tom@tromey.com>
3662
3663 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3664 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3665 (struct tui_line_or_address): Move from tui-data.h.
3666 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3667 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3668 (tui_cmd_window, tui_source_window_base, tui_source_window)
3669 (tui_disasm_window): Don't declare.
3670 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3671 to tui-winsource.h.
3672 (SINGLE_KEY): Move to tui-stack.c.
3673
7a02bab7
TT
36742020-07-01 Tom Tromey <tom@tromey.com>
3675
3676 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3677 std::string.
3678 * tui/tui-regs.c (class tab_expansion_file): New.
3679 (tab_expansion_file::write): New method.
3680 (tui_register_format): Change return type. Use
3681 tab_expansion_file.
3682 (tui_get_register, tui_data_window::display_registers_from)
3683 (tui_data_item_window::rerender): Update.
3684 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3685 * tui/tui-io.c (tui_expand_tabs): Remove.
3686
ea68593b
TT
36872020-07-01 Tom Tromey <tom@tromey.com>
3688
3689 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3690
a8caed5d
FS
36912020-07-01 Fangrui Song <maskray@google.com>
3692
3693 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3694
9cdf9820
AKS
36952020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3696
3697 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3698 forms for DW_AT_associated and DW_AT_allocated attributes,
3699 which is already checked in function attr_to_dynamic_prop.
3700
a1520ad8
TT
37012020-06-30 Tom Tromey <tromey@adacore.com>
3702
3703 * dwarf2/read.c (quirk_rust_enum): Correctly call
3704 alloc_rust_variant for default-less enum.
3705
5ac58899
TT
37062020-06-30 Tom Tromey <tromey@adacore.com>
3707
3708 PR build/26183:
3709 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3710 gdb::to_string.
3711
19b187a9
SM
37122020-06-29 Simon Marchi <simon.marchi@efficios.com>
3713
3714 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3715 * gdbarch.h: Re-generate.
3716
cd4c4c07
TT
37172020-06-28 Tom Tromey <tom@tromey.com>
3718
3719 * command.h (cmd_types): Remove.
3720 (cmd_type): Don't declare.
3721 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3722 typedef.
3723 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3724 * cli/cli-decode.c (cmd_type): Remove.
3725
05779d57
PA
37262020-06-27 Pedro Alves <palves@redhat.com>
3727
3728 * fork-child.c (prefork_hook): Adjust.
3729 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3730 Delete.
3731 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3732 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3733 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3734 Remove declarations.
3735 (struct inferior) <set_tty, tty>: New methods.
3736 (struct inferior) <terminal>: Rename to ...
3737 (struct inferior) <m_terminal>: ... this and make private.
3738 * main.c (captured_main_1): Adjust.
3739 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3740 (mi_cmd_inferior_tty_show): Adjust.
3741 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3742 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3743
1776e3e5
NA
37442020-06-26 Nick Alcock <nick.alcock@oracle.com>
3745
3746 * configure.ac: Add --enable-libctf: handle --disable-static
3747 properly.
3748 * acinclude.m4: sinclude ../config/enable.m4.
3749 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3750 (LIBCTF): Substitute in.
3751 (CTF_DEPS): New, likewise.
3752 (CLIBS): libctf needs symbols from libbfd: move earlier.
3753 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3754 flags.
3755 * ctfread.c: Surround in ENABLE_LIBCTF.
3756 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3757 * configure: Regenerate.
3758 * config.in: Likewise.
3759
58373b80
SM
37602020-06-25 Simon Marchi <simon.marchi@efficios.com>
3761
3762 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3763
277474ee
SM
37642020-06-25 Simon Marchi <simon.marchi@efficios.com>
3765
3766 * inferior.h (struct inferior) <terminal>: Change type to
3767 gdb::unique_xmalloc_ptr<char>.
3768 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3769 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3770 field, adjust to unique pointer.
3771 (get_inferior_io_terminal): Adjust to unique pointer.
3772
6d74da72
AB
37732020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3774
3775 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3776 registers, not just the known core set of registers.
3777
2e52d038
AB
37782020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3779
3780 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3781 fflags, frm, and fcsr registers.
3782 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3783 restore groups.
3784 (riscv_tdesc_unknown_reg): New function.
3785 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3786 tdesc_use_registers.
3787 * riscv-tdep.h (struct gdbarch_tdep): Add
3788 unknown_csrs_first_regnum, unknown_csrs_count,
3789 duplicate_fflags_regnum, duplicate_frm_regnum, and
3790 duplicate_fcsr_regnum fields.
3791
be64fd07
AB
37922020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3793
3794 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3795 callback, use the callback (when not null) to help number unknown
3796 registers.
3797 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3798 (tdesc_use_registers): Add extra parameter to declaration.
3799
3b9fce96
AB
38002020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3801
3802 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3803 in the file.
3804 (class riscv_pending_register_alias): Likewise.
3805 (riscv_register_feature::register_info): Change 'required_p' field
3806 to 'required', and change its type. Add 'check' member function.
3807 (riscv_register_feature::register_info::check): Define new member
3808 function.
3809 (riscv_xreg_feature): Change initialisation of 'required' field.
3810 (riscv_freg_feature): Likewise.
3811 (riscv_virtual_feature): Likewise.
3812 (riscv_csr_feature): Likewise.
3813 (riscv_check_tdesc_feature): Take extra parameter, the csr
3814 tdesc_feature, rewrite the function to use the new
3815 riscv_register_feature::register_info::check function.
3816 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3817
865bad26
AB
38182020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3819
3820 * features/Makefile: Remove all references to the deleted files
3821 below.
3822 * features/riscv/32bit-csr.c: Deleted.
3823 * features/riscv/32bit-csr.xml: Deleted.
3824 * features/riscv/64bit-csr.c: Deleted.
3825 * features/riscv/64bit-csr.xml: Deleted.
3826 * features/riscv/rebuild-csr-xml.sh: Deleted.
3827
ed69cbc8
AB
38282020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3829
3830 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3831 whitespace error for declaration of names member variable.
3832 (struct riscv_register_feature): Add new prefer_first_name member
3833 variable, and fix whitespace error in declaration of registers.
3834 (riscv_xreg_feature): Initialize prefer_first_name field.
3835 (riscv_freg_feature): Likewise.
3836 (riscv_virtual_feature): Likewise.
3837 (riscv_csr_feature): Likewise.
3838 (riscv_register_name): Expand on comments. Remove register name
3839 modifications for CSR and virtual registers.
3840
4445e8f5
AB
38412020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3842
3843 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3844 errors.
3845
767a879e
AB
38462020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3847
3848 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3849 riscv-opc.h.
3850 (class riscv_pending_register_alias): New class.
3851 (riscv_check_tdesc_feature): Take vector of pending aliases and
3852 populate it as appropriate.
3853 (riscv_setup_register_aliases): Delete.
3854 (riscv_gdbarch_init): Create vector of pending aliases and pass it
3855 to riscv_check_tdesc_feature in all cases. Use the vector to
3856 create the register aliases.
3857
bb6e55f3
RO
38582020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3859
3860 * sol2-tdep.c (sol2_static_transform_name): Remove.
3861 (sol2_init_abi): Don't register it.
3862 * gdbarch.sh (static_transform_name): Remove.
3863 * gdbarch.c, gdbarch.h: Regenerate.
3864
3865 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3866 gdbarch_static_transform_name.
3867 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3868 * stabsread.c (define_symbol) <'X'>: Remove.
3869 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
3870 handling.
3871 <'V'>: Likewise.
3872 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
3873 <'S'>: Remove call to gdbarch_static_transform_name.
3874
c6d36836
RO
38752020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3876
3877 * procfs.c (procfs_pre_trace): New function.
3878 (procfs_target::create_inferior): Pass it to fork_inferior.
3879
a7e6196b
RO
38802020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3881
3882 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
3883 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
3884 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
3885 sol2-tdep.o, sparc-sol2-tdep.o.
3886 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
3887 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
3888 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
3889 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
3890
d412e696
RO
38912020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3892
3893 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
3894 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
3895 Call sol2_init_abi.
3896 Remove calls to set_gdbarch_skip_solib_resolver,
3897 set_gdbarch_core_pid_to_str.
3898 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
3899 (i386_sol2_static_transform_name): Remove.
3900 (i386_sol2_init_abi): Call sol2_init_abi.
3901 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3902 set_gdbarch_static_transform_name,
3903 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3904 Use sol2_sigtramp_p.
3905 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
3906 (sol2_sigtramp_p): New function.
3907 (sol2_static_transform_name): New function.
3908 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3909 (sol2_init_abi): New function.
3910 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3911 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3912 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3913 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3914 (sparc_sol2_static_transform_name): Remove.
3915 (sparc32_sol2_init_abi): Call sol2_init_abi.
3916 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3917 set_gdbarch_static_transform_name,
3918 set_gdbarch_skip_solib_resolver,
3919 set_gdbarch_core_pid_to_str.
3920 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3921 (sparc_sol2_static_transform_name): Remove
3922 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3923 call sol2_sigtramp_p.
3924 (sparc64_sol2_init_abi): Call sol2_init_abi.
3925 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3926 set_gdbarch_static_transform_name,
3927 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3928
a8654e7d
PW
39292020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3930
3931 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3932 * exec.c (validate_exec_file): If from_tty, set both
3933 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3934 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3935 and from_tty, unconditionally ask a confirmation.
3936
caa7fd04
AB
39372020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3938
3939 * target-descriptions.c (tdesc_architecture_name): Protect against
3940 NULL pointer dereference.
3941 (maint_print_xml_tdesc_cmd): New function.
3942 (_initialize_target_descriptions): Register new 'maint print
3943 xml-tdesc' command and give it the filename completer.
3944 * NEWS: Mention new 'maint print xml-tdesc' command.
3945
fbf42f4e
AB
39462020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3947
3948 * target-descriptions.c (class tdesc_compatible_info): New class.
3949 (struct target_desc): Change type of compatible vector.
3950 (tdesc_compatible_p): Update for change in type of
3951 target_desc::compatible.
3952 (tdesc_compatible_info_list): New function.
3953 (tdesc_compatible_info_arch_name): New function.
3954 (tdesc_add_compatible): Update for change in type of
3955 target_desc::compatible.
3956 (print_c_tdesc::visit_pre): Likewise.
3957
20821f4e
AB
39582020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3959
3960 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3961 whitespace to underscore.
3962 (maint_print_c_tdesc_cmd): Use fake filename for target
3963 descriptions that came from the target.
3964 (_initialize_target_descriptions): Add filename command completion
3965 for 'maint print c-tdesc'.
3966
1fb5ee62
SM
39672020-06-23 Simon Marchi <simon.marchi@efficios.com>
3968
3969 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3970 lines.
3971
fc3ecb3e
SM
39722020-06-23 Simon Marchi <simon.marchi@efficios.com>
3973
3974 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3975 lines.
3976 (dwarf2_find_location_expression): Likewise.
3977 (call_site_parameter_matches): Likewise.
3978 (dwarf2_compile_expr_to_ax): Likewise.
3979 (disassemble_dwarf_expression): Likewise.
3980 (loclist_describe_location): Likewise.
3981
236ef034
PA
39822020-06-23 Pedro Alves <palves@redhat.com>
3983
3984 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3985 progspace-and-thread.h. Include scoped-mock-context.h instead.
3986 (register_to_value_test): Use scoped_mock_context.
3987 * regcache.c: Include "scoped-mock-context.h".
3988 (cooked_read_test): Don't error out if a target is already pushed.
3989 Use scoped_mock_context. Adjust.
3990 * scoped-mock-context.h: New file.
3991
39e7ecca
AB
39922020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3993
3994 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3995 initializer.
3996 (ada_language::is_string_type_p): New member function.
3997 * c-lang.c (c_language_data): Delete la_is_string_type_p
3998 initializer.
3999 (cplus_language_data): Likewise.
4000 (asm_language_data): Likewise.
4001 (minimal_language_data): Likewise.
4002 * d-lang.c (d_language_data): Likewise.
4003 * f-lang.c (f_is_string_type_p): Delete function, implementation
4004 moved to f_language::is_string_type_p.
4005 (f_language_data): Delete la_is_string_type_p initializer.
4006 (f_language::is_string_type_p): New member function,
4007 implementation from f_is_string_type_p.
4008 * go-lang.c (go_is_string_type_p): Delete function, implementation
4009 moved to go_language::is_string_type_p.
4010 (go_language_data): Delete la_is_string_type_p initializer.
4011 (go_language::is_string_type_p): New member function,
4012 implementation from go_is_string_type_p.
4013 * language.c (language_defn::is_string_type_p): Define new member
4014 function.
4015 (default_is_string_type_p): Make static, add comment copied from
4016 header file.
4017 (unknown_language_data): Delete la_is_string_type_p initializer.
4018 (unknown_language::is_string_type_p): New member function.
4019 (auto_language_data): Delete la_is_string_type_p initializer.
4020 (auto_language::is_string_type_p): New member function.
4021 * language.h (language_data): Delete la_is_string_type_p field.
4022 (language_defn::is_string_type_p): Declare new function.
4023 (default_is_string_type_p): Delete desclaration, move comment to
4024 definition.
4025 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
4026 moved to m2_language::is_string_type_p.
4027 (m2_language_data): Delete la_is_string_type_p initializer.
4028 (m2_language::is_string_type_p): New member function,
4029 implementation from m2_is_string_type_p.
4030 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
4031 initializer.
4032 * opencl-lang.c (opencl_language_data): Likewise.
4033 * p-lang.c (pascal_is_string_type_p): Delete function,
4034 implementation moved to pascal_language::is_string_type_p.
4035 (pascal_language_data): Delete la_is_string_type_p initializer.
4036 (pascal_language::is_string_type_p): New member function,
4037 implementation from pascal_is_string_type_p.
4038 * rust-lang.c (rust_is_string_type_p): Delete function,
4039 implementation moved to rust_language::is_string_type_p.
4040 (rust_language_data): Delete la_is_string_type_p initializer.
4041 (rust_language::is_string_type_p): New member function,
4042 implementation from rust_is_string_type_p.
4043 * valprint.c (val_print_scalar_or_string_type_p): Update call to
4044 is_string_type_p.
4045
4ffc13fb
AB
40462020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4047
4048 * ada-lang.c (ada_language_data): Delete la_print_typedef
4049 initializer.
4050 (ada_language::print_typedef): New member function.
4051 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
4052 (cplus_language_data): Likewise.
4053 (asm_language_data): Likewise.
4054 (minimal_language_data): Likewise.
4055 * d-lang.c (d_language_data): Likewise.
4056 * f-lang.c (f_language_data): Likewise.
4057 (f_language::print_typedef): New member function.
4058 * go-lang.c (go_language_data): Delete la_print_typedef
4059 initializer.
4060 * language.c (language_defn::print_typedef): Define member
4061 function.
4062 (unknown_language_data): Delete la_print_typedef initializer.
4063 (unknown_language::print_typedef): New member function.
4064 (auto_language_data): Delete la_print_typedef initializer.
4065 (auto_language::print_typedef): New member function.
4066 * language.h (language_data): Delete la_print_typedef field.
4067 (language_defn::print_typedef): Declare new member function.
4068 (LA_PRINT_TYPEDEF): Update call to print_typedef.
4069 (default_print_typedef): Delete declaration.
4070 * m2-lang.c (m2_language_data): Delete la_print_typedef
4071 initializer.
4072 (m2_language::print_typedef): New member function.
4073 * objc-lang.c (objc_language_data): Delete la_print_typedef
4074 initializer.
4075 * opencl-lang.c (opencl_language_data): Likewise.
4076 * p-lang.c (pascal_language_data): Likewise.
4077 (pascal_language::print_typedef): New member function.
4078 * rust-lang.c (rust_print_typedef): Delete function,
4079 implementation moved to rust_language::print_typedef.
4080 (rust_language): Delete la_print_typedef initializer.
4081 (rust_language::print_typedef): New member function,
4082 implementation from rust_print_typedef.
4083 * typeprint.c (default_print_typedef): Delete.
4084
d711ee67
AB
40852020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4086
4087 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
4088 (ada_language::printstr): New member function.
4089 * c-lang.c (c_language_data): Delete la_printstr initializer.
4090 (cplus_language_data): Likewise.
4091 (asm_language_data): Likewise.
4092 (minimal_language_data): Likewise.
4093 * d-lang.c (d_language_data): Likewise.
4094 * f-lang.c (f_printstr): Rename to f_language::printstr.
4095 (f_language_data): Delete la_printstr initializer.
4096 (f_language::printstr): New member function, implementation from
4097 f_printstr.
4098 * go-lang.c (go_language_data): Delete la_printstr initializer.
4099 * language.c (language_defn::printstr): Define new member
4100 function.
4101 (unk_lang_printstr): Delete.
4102 (unknown_language_data): Delete la_printstr initializer.
4103 (unknown_language::printstr): New member function.
4104 (auto_language_data): Delete la_printstr initializer.
4105 (auto_language::printstr): New member function.
4106 * language.h (language_data): Delete la_printstr field.
4107 (language_defn::printstr): Declare new member function.
4108 (LA_PRINT_STRING): Update call to printstr.
4109 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
4110 (m2_language_data): Delete la_printstr initializer.
4111 (m2_language::printstr): New member function, implementation from
4112 m2_printstr.
4113 * objc-lang.c (objc_language_data): Delete la_printstr
4114 initializer.
4115 * opencl-lang.c (opencl_language_data): Likewise.
4116 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
4117 (pascal_language_data): Delete la_printstr initializer.
4118 (pascal_language::printstr): New member function, implementation
4119 from pascal_printstr.
4120 * p-lang.h (pascal_printstr): Delete declaration.
4121 * rust-lang.c (rust_printstr): Update header comment.
4122 (rust_language_data): Delete la_printstr initializer.
4123 (rust_language::printstr): New member function.
4124
52b50f2c
AB
41252020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4126
4127 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
4128 (ada_language::printchar): New member function.
4129 * c-lang.c (c_language_data): Delete la_printchar initializer.
4130 (cplus_language_data): Likewise.
4131 (asm_language_data): Likewise.
4132 (minimal_language_data): Likewise.
4133 * d-lang.c (d_language_data): Likewise.
4134 * f-lang.c (f_printchar): Rename to f_language::printchar.
4135 (f_language_data): Delete la_printchar initializer.
4136 (f_language::printchar): New member function, implementation from
4137 f_printchar.
4138 * go-lang.c (go_language_data): Delete la_printchar initializer.
4139 * language.c (unk_lang_printchar): Delete.
4140 (language_defn::printchar): Define new member function.
4141 (unknown_language_data): Delete la_printchar initializer.
4142 (unknown_language::printchar): New member function.
4143 (auto_language_data): Delete la_printchar initializer.
4144 (auto_language::printchar): New member function.
4145 * language.h (language_data): Delete la_printchar field.
4146 (language_defn::printchar): Declare new member function.
4147 (LA_PRINT_CHAR): Update call to printchar.
4148 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
4149 (m2_language::printchar): New member function.
4150 * objc-lang.c (objc_language_data): Delete la_printchar
4151 initializer.
4152 * opencl-lang.c (opencl_language_data): Likewise.
4153 * p-lang.c (pascal_language_data): Delete la_printchar
4154 initializer.
4155 (pascal_language::printchar): New member function.
4156 * rust-lang.c (rust_printchar): Rename to
4157 rust_language::printchar.
4158 (rust_language_data): Delete la_printchar initializer.
4159 (rust_language::printchar): New member function, implementation
4160 from rust_printchar.
4161
ec8cec5b
AB
41622020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4163
4164 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
4165 (ada_language_data): Delete la_emitchar initializer.
4166 (ada_language::emitchar): New member function, implementation from
4167 emit_char.
4168 * c-lang.c (c_language_data): Delete la_emitchar initializer.
4169 (cplus_language_data): Likewise.
4170 (asm_language_data): Likewise.
4171 (minimal_language_data): Likewise.
4172 * d-lang.c (d_language_data): Likewise.
4173 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
4174 (f_language_data): Delete la_emitchar initializer.
4175 (f_language::emitchar): New member function, implementation from
4176 f_emit_char.
4177 * go-lang.c (go_language_data): Delete la_emitchar initializer.
4178 * language.c (unk_lang_emit_char): Delete.
4179 (language_defn::emitchar): New member function definition.
4180 (unknown_language_data): Delete la_emitchar initializer.
4181 (unknown_language::emitchar): New member function.
4182 (auto_language_data): Delete la_emitchar initializer.
4183 (auto_language::emitchar): New member function.
4184 * language.h (language_data): Delete la_emitchar field.
4185 (language_defn::emitchar): New member field declaration.
4186 (LA_EMIT_CHAR): Update call to emitchar.
4187 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
4188 (m2_language_data): Delete la_emitchar initializer.
4189 (m2_language::emitchar): New member function, implementation from
4190 m2_emit_char.
4191 * objc-lang.c (objc_language_data): Delete la_emitchar
4192 initializer.
4193 * opencl-lang.c (opencl_language_data): Likewise.
4194 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4195 (pascal_language_data): Delete la_emitchar initializer.
4196 (pascal_language::emitchar): New member function, implementation
4197 from pascal_emit_char.
4198 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4199 (rust_language_data): Delete la_emitchar initializer.
4200 (rust_language::emitchar): New member function, implementation
4201 from rust_emitchar.
4202
1bf9c363
AB
42032020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4204
4205 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4206 (ada_language_data): Delete la_post_parser initializer.
4207 (ada_language::post_parser): New member function.
4208 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4209 (cplus_language_data): Likewise.
4210 (asm_language_data): Likewise.
4211 (minimal_language_data): Likewise.
4212 * d-lang.c (d_language_data): Likewise.
4213 * f-lang.c (f_language_data): Likewise.
4214 * go-lang.c (go_language_data): Likewise.
4215 * language.c (unknown_language_data): Likewise.
4216 (auto_language_data): Likewise.
4217 * language.h (language_data): Delete la_post_parser field.
4218 (language_defn::post_parser): New member function.
4219 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4220 * objc-lang.c (objc_language_data): Likewise.
4221 * opencl-lang.c (opencl_language_data): Likewise.
4222 * p-lang.c (pascal_language_data): Likewise.
4223 * parse.c (parse_exp_in_context): Update call to post_parser.
4224 (null_post_parser): Delete definition.
4225 * parser-defs.h (null_post_parser): Delete declaration.
4226 * rust-lang.c (rust_language_data): Delete la_post_parser
4227 initializer.
4228
87afa652
AB
42292020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4230
4231 * ada-lang.c (parse): Rename to ada_language::parser.
4232 (ada_language_data): Delete la_parser initializer.
4233 (ada_language::parser): New member function, implementation from
4234 parse.
4235 * c-lang.c (c_language_data): Delete la_parser initializer.
4236 (cplus_language_data): Likewise.
4237 (asm_language_data): Likewise.
4238 (minimal_language_data): Likewise.
4239 * d-lang.c (d_language_data): Likewise.
4240 (d_language::parser): New member function.
4241 * f-lang.c (f_language_data): Delete la_parser initializer.
4242 (f_language::parser): New member function.
4243 * go-lang.c (go_language_data): Delete la_parser initializer.
4244 (go_language::parser): New member function.
4245 * language.c (unk_lang_parser): Delete.
4246 (language_defn::parser): Define new member function.
4247 (unknown_language_data): Delete la_parser initializer.
4248 (unknown_language::parser): New member function.
4249 (auto_language_data): Delete la_parser initializer.
4250 (auto_language::parser): New member function.
4251 * language.h (language_data): Delete la_parser field.
4252 (language_defn::parser): Declare new member function.
4253 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4254 (m2_language::parser): New member function.
4255 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4256 * opencl-lang.c (opencl_language_data): Likewise.
4257 * p-lang.c (pascal_language_data): Likewise.
4258 (pascal_language::parser): New member function.
4259 * parse.c (parse_exp_in_context): Update call to parser.
4260 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4261 (rust_language::parser): New member function.
4262
37825800
AB
42632020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4264
4265 * top.c (print_gdb_configuration): Print --with-python-libdir
4266 configuration value.
4267
5b860c93
PW
42682020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4269
4270 * NEWS: Mention change to the alias command.
4271
cf00cd6f
PW
42722020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4273
4274 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4275 (alias_command_completer)
4276 (make_alias_options_def_group): New functions.
4277 (alias_opts, alias_option_defs): New struct and array.
4278 (alias_usage_error): Update usage.
4279 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4280 Use option framework.
4281 (_initialize_cli_cmds): Update alias command help.
4282 Update aliases command help.
4283 (show_user):
4284 Add NULL for new default_args lookup_cmd argument.
4285 (valid_command_p): Rename to validate_aliased_command.
4286 Add NULL for new default_args lookup_cmd argument. Verify that the
4287 aliased_command has no default args.
4288 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4289 (lookup_cmd_1, lookup_cmd): New argument default_args.
4290 (add_alias_cmd):
4291 Add NULL for new default_args lookup_cmd argument.
4292 (print_help_for_command): Show default args under the layout
4293 alias some_alias = some_aliased_cmd some_alias_default_arg.
4294 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4295 xfree default_args in destructor.
4296 * cli/cli-script.c (process_next_line, do_define_command):
4297 Add NULL for new default_args lookup_cmd argument.
4298 * command.h: Declare new default_args argument in lookup_cmd
4299 and lookup_cmd_1.
4300 * completer.c (complete_line_internal_1):
4301 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4302 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4303 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4304 Likewise.
4305 * infcmd.c (_initialize_infcmd): Likewise.
4306 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4307 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4308 * python/py-param.c (add_setshow_generic): Likewise.
4309 * remote.c (_initialize_remote): Likewise.
4310 * top.c (execute_command): Prepend default_args if command has some.
4311 (set_verbose):
4312 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4313 * tracepoint.c (validate_actionline, encode_actions_1):
4314 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4315
bd920864
TBA
43162020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4317
4318 * jit.c (jit_read_descriptor): Use bool as the return type.
4319 (jit_breakpoint_re_set_internal): Use bool as the return type.
4320 Invert the return value logic; return true if the jit breakpoint
4321 has been successfully initialized.
4322 (jit_inferior_init): Update the call to
4323 jit_breakpoint_re_set_internal.
4324
f8098322
PA
43252020-06-22 Pedro Alves <palves@redhat.com>
4326
4327 PR gdb/25939
4328 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4329 Use the current inferior instead. Don't return
4330 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4331 wait again.
4332 * sol-thread.c (sol_thread_target::wait): Don't reference
4333 inferior_ptid.
4334 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4335 (sol_update_thread_list_callback): Use the current inferior's pid
4336 instead of inferior_ptid.
4337
196535a6
RO
43382020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4339
4340 * procfs.c: Cleanup many comments.
4341
4342 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4343 (AFTER_WATCHFLAG): Replace by value.
4344
4345 (MAIN_PROC_NAME_FORMAT): Inline ...
4346 (create_procinfo): ... here.
4347
4348 (procfs_debug_inferior): Remove SYS_exec handling.
4349 (syscall_is_exec): Likewise.
4350 (procfs_set_exec_trap): Likewise.
4351
4352 (syscall_is_lwp_exit): Inline in callers.
4353 (syscall_is_exit): Likewise.
4354 (syscall_is_exec): Likewise.
4355 (syscall_is_lwp_create): Likewise.
4356
4357 (invalidate_cache): Remove #if 0 code.
4358
4359 (make_signal_thread_runnable): Remove.
4360 (procfs_target::resume): Remove #if 0 code.
4361
cf6f3e86
RO
43622020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4363
4364 PR gdb/25939
4365 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4366 call ...
4367 (procfs_target::create_inferior): ... here.
4368
48e9cc84
PW
43692020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4370
4371 * exec.c (validate_exec_file): Ensure the build-id is up to
4372 date by calling reopen_exec_file (that checks file timestamp
4373 to decide to re-read the file).
4374
3922b302
PA
43752020-06-18 Pedro Alves <palves@redhat.com>
4376
4377 PR gdb/25412
4378 * gdbthread.h (delete_thread, delete_thread_silent)
4379 (find_thread_ptid): Update comments.
4380 * thread.c (current_thread_): New global.
4381 (is_current_thread): Move higher, and reimplement.
4382 (inferior_thread): Reimplement.
4383 (set_thread_exited): Use bool. Add assertions.
4384 (add_thread_silent): Simplify thread-reuse handling by always
4385 calling delete_thread.
4386 (delete_thread): Remove intro comment.
4387 (find_thread_ptid): Skip exited threads.
4388 (switch_to_thread_no_regs): Write to current_thread_.
4389 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4390 INFERIOR_PTID. Clear current_thread_.
4391
6dbdab44
PA
43922020-06-18 Pedro Alves <palves@redhat.com>
4393
4394 * aix-thread.c (pd_update): Use switch_to_thread.
4395
2da4b788
PA
43962020-06-18 Pedro Alves <palves@redhat.com>
4397
4398 * ravenscar-thread.c (ravenscar_thread_target): Update.
4399 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4400 (ravenscar_thread_target::add_active_thread): ... this. Don't
4401 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4402 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4403
50838d1b
PA
44042020-06-18 Pedro Alves <palves@redhat.com>
4405
4406 * nat/windows-nat.c (current_windows_thread): Remove.
4407 * nat/windows-nat.h (current_windows_thread): Remove.
4408 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4409 Adjust.
4410 (display_selectors): Adjust to fetch the current
4411 windows_thread_info based on inferior_ptid.
4412 (fake_create_process): No longer write to current_windows_thread.
4413 (windows_nat_target::get_windows_debug_event):
4414 Don't set inferior_ptid or current_windows_thread.
4415 (windows_nat_target::wait): Adjust to not rely on
4416 current_windows_thread.
4417 (do_initial_windows_stuff): Now a method of windows_nat_target.
4418 Switch to the last_ptid thread.
4419 (windows_nat_target::attach): Adjust.
4420 (windows_nat_target::detach): Use switch_to_no_thread instead of
4421 writing to inferior_ptid directly.
4422 (windows_nat_target::create_inferior): Adjust.
4423
31ce04e9
PA
44242020-06-18 Pedro Alves <palves@redhat.com>
4425
4426 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4427
1ee1a363
PA
44282020-06-18 Pedro Alves <palves@redhat.com>
4429
4430 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4431 after creating it, instead of writing to inferior_ptid. Don't
4432 write to inferior_ptid.
4433
6d350754
PA
44342020-06-18 Pedro Alves <palves@redhat.com>
4435
4436 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4437
5d971d48
PA
44382020-06-18 Pedro Alves <palves@redhat.com>
4439
4440 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4441 it, instead of writing to inferior_ptid.
4442
86e57d1b
PA
44432020-06-18 Pedro Alves <palves@redhat.com>
4444
4445 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4446 to inferior_ptid.
4447
f2e1c129
PA
44482020-06-18 Pedro Alves <palves@redhat.com>
4449
4450 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4451 instead of writing to inferior_ptid directly.
4452
60db1b85
PA
44532020-06-18 Pedro Alves <palves@redhat.com>
4454
4455 * corelow.c (core_target::close): Use switch_to_no_thread instead
4456 of writing to inferior_ptid directly.
4457 (add_to_thread_list, core_target_open): Use switch_to_thread
4458 instead of writing to inferior_ptid directly.
4459
fe7d6a8d
PA
44602020-06-18 Pedro Alves <palves@redhat.com>
4461
4462 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4463 inferior_ptid.
4464 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4465 inferior_ptid.
4466 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4467 inferior_ptid directly.
4468 (darwin_nat_target::init_thread_list): Switch to thread, instead
4469 of writing to inferior_ptid.
4470 (darwin_nat_target::attach): Don't write to inferior_ptid.
4471 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4472
975f8708
PA
44732020-06-18 Pedro Alves <palves@redhat.com>
4474
4475 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4476 thread.
4477 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4478 Instead use switch_to_thread.
4479 (gnu_nat_target::detach): Use switch_to_no_thread
4480 instead of writing to inferior_ptid directly. Used passed-in
4481 inferior instead of looking up the inferior by pid.
4482
1a204730
PA
44832020-06-18 Pedro Alves <palves@redhat.com>
4484
4485 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4486 inferior_ptid.
4487
ebe84f23
PA
44882020-06-18 Pedro Alves <palves@redhat.com>
4489
4490 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4491 inferior_ptid.
4492 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4493 thread.
4494 (nto_procfs_target::detach): Avoid referencing
4495 inferior_ptid. Use switch_to_no_thread instead of writing to
4496 inferior_ptid directly.
4497 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4498 instead of writing to inferior_ptid directly.
4499 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4500 to thread.
4501
191f02e5
PA
45022020-06-18 Pedro Alves <palves@redhat.com>
4503
4504 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4505 after creating it, instead of writing to inferior_ptid.
4506 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4507 to inferior_ptid directly.
4508 (gdbsim_target::wait): Don't write to inferior_ptid.
4509
0ac55310
PA
45102020-06-18 Pedro Alves <palves@redhat.com>
4511
4512 * remote.c (remote_target::remote_notice_new_inferior): Use
4513 switch_to_thread instead of writing to inferior_ptid directly.
4514 (remote_target::add_current_inferior_and_thread): Use
4515 switch_to_no_thread instead of writing to inferior_ptid directly.
4516 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4517 and switch_to_thread instead of using set_current_inferior or
4518 writing to inferior_ptid directly.
4519
5233f39b
PA
45202020-06-18 Pedro Alves <palves@redhat.com>
4521
4522 * tracectf.c (ctf_target_open): Switch to added thread instead of
4523 writing to inferior_ptid directly.
4524 (ctf_target::close): Use switch_to_no_thread instead of writing to
4525 inferior_ptid directly.
4526
087e161b
PA
45272020-06-18 Pedro Alves <palves@redhat.com>
4528
4529 * tracefile-tfile.c (tfile_target_open): Don't write to
4530 inferior_ptid directly, instead switch to added thread.
4531 (tfile_target::close): Use switch_to_no_thread instead of writing
4532 to inferior_ptid directly.
4533
7fb43e53
PA
45342020-06-18 Pedro Alves <palves@redhat.com>
4535
4536 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4537 (procfs_target::detach): Use switch_to_no_thread
4538 instead of writing to inferior_ptid directly.
4539 (do_attach): Change return type to void. Switch to the added
4540 thread.
4541 (procfs_target::create_inferior): Switch to the added thread.
4542 (procfs_do_thread_registers): Don't write to inferior_ptid.
4543
18493a00
PA
45442020-06-18 Pedro Alves <palves@redhat.com>
4545
4546 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4547 of writing to inferior_ptid.
4548 (scoped_restore_exited_inferior): Delete.
4549 (handle_vfork_child_exec_or_exit): Simplify using
4550 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4551 instead of writing to inferior_ptid.
4552 (THREAD_STOPPED_BY): Delete.
4553 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4554 (thread_stopped_by_hw_breakpoint): Delete.
4555 (save_waitstatus): Use
4556 scoped_restore_current_thread+switch_to_thread, and call
4557 target_stopped_by_watchpoint instead of
4558 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4559 instead of thread_stopped_by_sw_breakpoint, and
4560 target_stopped_by_hw_breakpoint instead of
4561 thread_stopped_by_hw_breakpoint.
4562 (handle_inferior_event)
4563 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4564 inferior_ptid directly, nor
4565 set_current_inferior/set_current_program_space. Use
4566 switch_to_thread / switch_to_inferior_no_thread instead.
4567
a0776b13
PA
45682020-06-18 Pedro Alves <palves@redhat.com>
4569
4570 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4571 instead of writing to inferior_ptid.
4572
6155c136
PA
45732020-06-18 Pedro Alves <palves@redhat.com>
4574
4575 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4576 added thread.
4577 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4578 to the added thread.
4579 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4580 instead of writing to inferior_ptid.
4581
c5316fc6
PA
45822020-06-18 Pedro Alves <palves@redhat.com>
4583
4584 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4585 (register_to_value_test): Mock a program_space too. Heap-allocate
4586 the address space. Don't write to inferior_ptid. Use
4587 switch_to_thread instead.
4588
8df01799
PA
45892020-06-18 Pedro Alves <palves@redhat.com>
4590
4591 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4592 Delete.
4593 (find_signalled_thread()): New, factored out from
4594 linux_make_corefile_notes and adjusted to handle exited threads.
4595 (linux_make_corefile_notes): Adjust to use the new
4596 find_signalled_thread.
4597
41792d68
PA
45982020-06-18 Pedro Alves <palves@redhat.com>
4599
4600 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4601 of saving/restoring inferior_ptid.
4602
612f258a
TT
46032020-06-17 Tom Tromey <tom@tromey.com>
4604
4605 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4606 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4607 declare.
4608 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4609
efb763a5
SM
46102020-06-15 Simon Marchi <simon.marchi@efficios.com>
4611
4612 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4613 of partial symtabs.
4614
2951f6c0
SM
46152020-06-17 Simon Marchi <simon.marchi@efficios.com>
4616
4617 * regformats/reg-arm.dat: Remove.
4618 * regformats/reg-bfin.dat: Remove.
4619 * regformats/reg-cris.dat: Remove.
4620 * regformats/reg-crisv32.dat: Remove.
4621 * regformats/reg-m32r.dat: Remove.
4622 * regformats/reg-tilegx.dat: Remove.
4623 * regformats/reg-tilegx32.dat: Remove.
4624
7d458ea5
SM
46252020-06-17 Simon Marchi <simon.marchi@efficios.com>
4626
4627 * features/Makefile (WHICH): Remove arm files.
4628 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4629 * regformats/arm/arm-with-neon.dat: Remove.
4630 * regformats/arm/arm-with-vfpv2.dat: Remove.
4631 * regformats/arm/arm-with-vfpv3.dat: Remove.
4632
3af96c0d
SM
46332020-06-17 Simon Marchi <simon.marchi@efficios.com>
4634
4635 * features/Makefile (XMLTOC): Remove rx.xml.
4636
b25e22fd
PA
46372020-06-17 Pedro Alves <palves@redhat.com>
4638
4639 * gdbthread.h (thread_control_state) <trap_expected> Update
4640 comments.
4641
a78a19b1
AB
46422020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4643
4644 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4645 ada_language::lookup_symbol_nonlocal.
4646 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4647 (ada_language::lookup_symbol_nonlocal): New member function,
4648 implementation from ada_lookup_symbol_nonlocal.
4649 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4650 initializer.
4651 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4652 initializer.
4653 (cplus_language::lookup_symbol_nonlocal): New member function.
4654 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4655 (minimal_language_data) Likewise.
4656 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4657 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4658 initializer.
4659 (d_language::lookup_symbol_nonlocal): New member function.
4660 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4661 initializer.
4662 (f_language::lookup_symbol_nonlocal): New member function.
4663 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4664 initializer.
4665 * language.c (unknown_language_data): Likewise.
4666 (auto_language_data): Likewise.
4667 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4668 field.
4669 (language_defn::lookup_symbol_nonlocal): New member function.
4670 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4671 initializer.
4672 * objc-lang.c (objc_language_data): Likewise.
4673 * opencl-lang.c (opencl_language_data): Likewise.
4674 * p-lang.c (pascal_language_data): Likewise.
4675 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4676 rust_language::lookup_symbol_nonlocal.
4677 (rust_language_data): Delete la_lookup_symbol_nonlocal
4678 initializer.
4679 (rust_language::lookup_symbol_nonlocal): New member function,
4680 implementation from rust_lookup_symbol_nonlocal.
4681 * symtab.c (lookup_symbol_aux): Update call to
4682 lookup_symbol_nonlocal.
4683 (basic_lookup_symbol_nonlocal): Rename to...
4684 (language_defn::lookup_symbol_nonlocal): ...this, and update
4685 header comment. Remove language_defn parameter, and replace with
4686 uses of `this'.
4687 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4688
ebe2334e
AB
46892020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4690
4691 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4692 initializer.
4693 (ada_language::value_print_inner): New member function.
4694 * c-lang.c (c_language_data): Delete la_value_print_inner
4695 initializer.
4696 (cplus_language_data): Likewise.
4697 (asm_language_data): Likewise.
4698 (minimal_language_data): Likewise.
4699 * d-lang.c (d_language_data): Likewise.
4700 (d_language::value_print_inner): New member function.
4701 * f-lang.c (f_language_data): Delete la_value_print_inner
4702 initializer.
4703 (f_language::value_print_inner): New member function.
4704 * f-lang.h (f_value_print_innner): Rename to...
4705 (f_value_print_inner): ...this (note spelling of 'inner').
4706 * f-valprint.c (f_value_print_innner): Rename to...
4707 (f_value_print_inner): ...this (note spelling of 'inner').
4708 * go-lang.c (go_language_data): Delete la_value_print_inner
4709 initializer.
4710 (go_language::value_print_inner): New member function.
4711 * language.c (language_defn::value_print_inner): Define new member
4712 function.
4713 (unk_lang_value_print_inner): Delete.
4714 (unknown_language_data): Delete la_value_print_inner initializer.
4715 (unknown_language::value_print_inner): New member function.
4716 (auto_language_data): Delete la_value_print_inner initializer.
4717 (auto_language::value_print_inner): New member function.
4718 * language.h (language_data): Delete la_value_print_inner field.
4719 (language_defn::value_print_inner): Delcare new member function.
4720 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4721 initializer.
4722 (m2_language::value_print_inner): New member function.
4723 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4724 initializer.
4725 * opencl-lang.c (opencl_language_data): Likewise.
4726 * p-lang.c (pascal_language_data): Likewise.
4727 (pascal_language::value_print_inner): New member function.
4728 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4729 initializer.
4730 (rust_language::value_print_inner): New member function.
4731 * valprint.c (do_val_print): Update call to value_print_inner.
4732
a1d1fa3e
AB
47332020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4734
4735 * ada-lang.c (ada_language_data): Delete la_value_print
4736 initializer.
4737 (ada_language::value_print): New member function.
4738 * c-lang.c (c_language_data): Delete la_value_print initializer.
4739 (cplus_language_data): Likewise.
4740 (asm_language_data): Likewise.
4741 (minimal_language_data): Likewise.
4742 * d-lang.c (d_language_data): Likewise.
4743 * f-lang.c (f_language_data): Likewise.
4744 * go-lang.c (go_language_data): Likewise.
4745 * language.c (unk_lang_value_print): Delete.
4746 (language_defn::value_print): Define new member function.
4747 (unknown_language_data): Delete la_value_print initializer.
4748 (unknown_language::value_print): New member function.
4749 (auto_language_data): Delete la_value_print initializer.
4750 (auto_language::value_print): New member function.
4751 * language.h (language_data): Delete la_value_print field.
4752 (language_defn::value_print): Declare new member function.
4753 (LA_VALUE_PRINT): Update call to value_print.
4754 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4755 * objc-lang.c (objc_language_data): Likewise.
4756 * opencl-lang.c (opencl_language_data): Likewise.
4757 * p-lang.c (pascal_language_data): Likewise.
4758 (pascal_language::value_print): New member function.
4759 * rust-lang.c (rust_language_data): Delete la_value_print
4760 initializer.
4761
f16a9f57
AB
47622020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4763
4764 * ada-lang.c (ada_watch_location_expression): Rename to
4765 ada_language::watch_location_expression.
4766 (ada_language_data): Delete la_watch_location_expression
4767 initializer.
4768 (ada_language::watch_location_expression): New member function,
4769 implementation from ada_watch_location_expression.
4770 * breakpoint.c (watch_command_1): Update call to
4771 watch_location_expression.
4772 * c-lang.c (c_watch_location_expression): Rename to
4773 language_defn::watch_location_expression.
4774 (c_language_data): Delete la_watch_location_expression
4775 initializer.
4776 (cplus_language_data): Likewise.
4777 (asm_language_data): Likewise.
4778 (minimal_language_data): Likewise.
4779 * c-lang.h (c_watch_location_expression): Delete declaration.
4780 * d-lang.c (d_language_data): Delete la_watch_location_expression
4781 initializer.
4782 * f-lang.c (f_language_data): Likewise.
4783 * go-lang.c (go_language_data): Likewise.
4784 * language.c (language_defn::watch_location_expression): Member
4785 function implementation from c_watch_location_expression.
4786 (unknown_language_data): Delete la_watch_location_expression
4787 initializer.
4788 (auto_language_data): Likewise.
4789 * language.h (language_data): Delete la_watch_location_expression
4790 field.
4791 (language_defn::watch_location_expression): Declare new member
4792 function.
4793 * m2-lang.c (m2_language_data): Delete
4794 la_watch_location_expression initializer.
4795 * objc-lang.c (objc_language_data): Likewise.
4796 * opencl-lang.c (opencl_language_data): Likewise.
4797 * p-lang.c (pascal_language_data): Likewise.
4798 * rust-lang.c (rust_watch_location_expression): Rename to
4799 rust_language::watch_location_expression.
4800 (rust_language_data): Delete la_watch_location_expression
4801 initializer.
4802 (rust_language::watch_location_expression): New member function,
4803 implementation from rust_watch_location_expression.
4804
7e56227d
AB
48052020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4806
4807 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4808 ada_language::collect_symbol_completion_matches.
4809 (ada_language_data): Delete la_collect_symbol_completion_matches
4810 initializer.
4811 (ada_language::collect_symbol_completion_matches): New member
4812 function, implementation from
4813 ada_collect_symbol_completion_matches.
4814 * c-lang.c (c_language_data): Delete
4815 la_collect_symbol_completion_matches initializer.
4816 (cplus_language_data): Likewise.
4817 (asm_language_data): Likewise.
4818 (minimal_language_data): Likewise.
4819 * d-lang.c (d_language_data): Likewise.
4820 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4821 f_language::collect_symbol_completion_matches.
4822 (f_language_data): Delete la_collect_symbol_completion_matches
4823 initializer.
4824 (f_language::collect_symbol_completion_matches) New member
4825 function, implementation from f_collect_symbol_completion_matches.
4826 * go-lang.c (go_language_data): Delete
4827 la_collect_symbol_completion_matches initializer.
4828 * language.c (unknown_language_data): Likewise.
4829 (auto_language_data): Likewise.
4830 * language.h (language_data): Delete
4831 la_collect_symbol_completion_matches field.
4832 (language_defn::collect_symbol_completion_matches): New member
4833 function.
4834 * m2-lang.c (m2_language_data): Delete
4835 la_collect_symbol_completion_matches initializer.
4836 * objc-lang.c (objc_language_data): Likewise.
4837 * opencl-lang.c (opencl_language_data): Likewise.
4838 * p-lang.c (pascal_language_data): Likewise.
4839 * rust-lang.c (rust_language_data): Likewise.
4840 * symtab.c (default_collect_symbol_completion_matches): Delete.
4841 (collect_symbol_completion_matches): Update call to
4842 collect_symbol_completion_matches.
4843 (collect_symbol_completion_matches_type): Likewise.
4844 * symtab.h (default_collect_symbol_completion_matches): Delete
4845 declaration.
4846
53fc67f8
AB
48472020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4848
4849 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4850 (ada_language_data): Delete la_word_break_characters initializer.
4851 (ada_language::word_break_characters): New member function.
4852 * c-lang.c (c_language_data): Delete la_word_break_characters
4853 initializer.
4854 (cplus_language_data): Likewise.
4855 (asm_language_data): Likewise.
4856 (minimal_language_data): Likewise.
4857 * completer.c: Update global comment.
4858 (advance_to_expression_complete_word_point): Update call to
4859 word_break_characters.
4860 (complete_files_symbols): Likewise.
4861 (complete_line_internal_1): Likewise.
4862 (default_completer_handle_brkchars): Likewise.
4863 (skip_quoted_chars): Likewise.
4864 * d-lang.c (d_language_data): Delete la_word_break_characters
4865 initializer.
4866 * f-lang.c (f_word_break_characters): Delete.
4867 (f_language_data): Delete la_word_break_characters initializer.
4868 (f_language::word_break_characters): New member function.
4869 * go-lang.c (go_language_data): Delete la_word_break_characters
4870 initializer.
4871 * language.c (unknown_language_data): Likewise.
4872 (auto_language_data): Likewise.
4873 * language.h (default_word_break_characters): Move declaration to
4874 earlier in the file.
4875 (language_data): Delete la_word_break_characters field.
4876 (language_defn::word_break_characters): New member function.
4877 * m2-lang.c (m2_language_data): Delete la_word_break_characters
4878 initializer.
4879 * objc-lang.c (objc_language_data): Likewise.
4880 * opencl-lang.c (opencl_language_data): Likewise.
4881 * p-lang.c (pascal_language_data): Likewise.
4882 * rust-lang.c (rust_language_data): Likewise.
4883
c9debfb9
AB
48842020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4885
4886 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
4887 (ada_language_data): Delete la_get_symbol_name_matcher
4888 initializer.
4889 (language_defn::get_symbol_name_matcher_inner): New member
4890 function.
4891 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
4892 initializer.
4893 (cplus_language_data): Likewise.
4894 (cplus_language::get_symbol_name_matcher_inner): New member
4895 function.
4896 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
4897 (minimal_language_data): Likewise.
4898 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
4899 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
4900 initializer.
4901 * dictionary.c (iter_match_first_hashed): Update call to
4902 get_symbol_name_matcher.
4903 (iter_match_next_hashed): Likewise.
4904 (iter_match_next_linear): Likewise.
4905 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
4906 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
4907 initializer.
4908 (f_language::get_symbol_name_matcher_inner): New member function.
4909 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4910 initializer.
4911 * language.c (default_symbol_name_matcher): Update header comment,
4912 make static.
4913 (language_defn::get_symbol_name_matcher): New definition.
4914 (language_defn::get_symbol_name_matcher_inner): Likewise.
4915 (get_symbol_name_matcher): Delete.
4916 (unknown_language_data): Delete la_get_symbol_name_matcher
4917 initializer.
4918 (auto_language_data): Likewise.
4919 * language.h (language_data): Delete la_get_symbol_name_matcher
4920 field.
4921 (language_defn::get_symbol_name_matcher): New member function.
4922 (language_defn::get_symbol_name_matcher_inner): Likewise.
4923 (default_symbol_name_matcher): Delete declaration.
4924 * linespec.c (find_methods): Update call to
4925 get_symbol_name_matcher.
4926 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4927 initializer.
4928 * minsyms.c (lookup_minimal_symbol): Update call to
4929 get_symbol_name_matcher.
4930 (iterate_over_minimal_symbols): Likewise.
4931 * objc-lang.c (objc_language_data): Delete
4932 la_get_symbol_name_matcher initializer.
4933 * opencl-lang.c (opencl_language_data): Likewise.
4934 * p-lang.c (pascal_language_data): Likewise.
4935 * psymtab.c (psymbol_name_matches): Update call to
4936 get_symbol_name_matcher.
4937 * rust-lang.c (rust_language_data): Delete
4938 la_get_symbol_name_matcher initializer.
4939 * symtab.c (symbol_matches_search_name): Update call to
4940 get_symbol_name_matcher.
4941 (compare_symbol_name): Likewise.
4942
9a49ad8c
AB
49432020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4944
4945 * ada-lang.c (ada_language_data): Delete la_compute_program
4946 initializer.
4947 * c-lang.c (c_language_data): Likewise.
4948 (c_language::compute_program): New member function.
4949 (cplus_language_data): Delete la_compute_program initializer.
4950 (cplus_language::compute_program): New member function.
4951 (asm_language_data): Delete la_compute_program initializer.
4952 (minimal_language_data): Likewise.
4953 * c-lang.h (c_compute_program): Update comment.
4954 (cplus_compute_program): Likewise.
4955 * compile/compile-c-support.c (c_compute_program): Likewise.
4956 (cplus_compute_program): Likewise.
4957 * compile/compile.c (compile_to_object): Update call to
4958 la_compute_program.
4959 * d-lang.c (d_language_data): Delete la_compute_program
4960 initializer.
4961 * f-lang.c (f_language_data): Likewise.
4962 * go-lang.c (go_language_data): Likewise.
4963 * language.c (unknown_language_data): Likewise.
4964 (auto_language_data): Likewise.
4965 * language.h (language_data): Delete la_compute_program field.
4966 (language_defn::compute_program): New member function.
4967 * m2-lang.c (m2_language_data): Delete la_compute_program
4968 initializer.
4969 * objc-lang.c (objc_language_data): Likewise.
4970 * opencl-lang.c (opencl_language_data): Likewise.
4971 * p-lang.c (pascal_language_data): Likewise.
4972 * rust-lang.c (rust_language_data): Likewise.
4973
eff93b4d
AB
49742020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4975
4976 * ada-lang.c (ada_language_data) Delete
4977 la_class_name_from_physname initializer.
4978 * c-lang.c (c_language_data): Likewise.
4979 (cplus_language_data): Likewise.
4980 (cplus_language::class_name_from_physname): New member function.
4981 (asm_language_data): Delete la_class_name_from_physname
4982 initializer.
4983 (minimal_language_data): Likewise.
4984 * d-lang.c (d_language_data): Likewise.
4985 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4986 method on language_defn class.
4987 (guess_full_die_structure_name): Likewise.
4988 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4989 initializer.
4990 * go-lang.c (go_language_data): Likewise.
4991 * language.c (language_class_name_from_physname): Delete.
4992 (unk_lang_class_name): Delete.
4993 (unknown_language_data): Delete la_class_name_from_physname
4994 initializer.
4995 (auto_language_data): Likewise.
4996 * language.h (language_data): Delete la_class_name_from_physname
4997 field.
4998 (language_defn::class_name_from_physname): New function.
4999 (language_class_name_from_physname): Delete declaration.
5000 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
5001 initializer.
5002 * objc-lang.c (objc_language_data): Likewise.
5003 * opencl-lang.c (opencl_language_data): Likewise.
5004 * p-lang.c (pascal_language_data): Likewise.
5005 * rust-lang.c (rust_language_data): Likewise.
5006
de543742
TT
50072020-06-16 Tom Tromey <tom@tromey.com>
5008
5009 * tui/tui-data.h (STATUS_NAME): New macro.
5010 * tui/tui-layout.c (tui_remove_some_windows)
5011 (initialize_known_windows, tui_register_window)
5012 (tui_layout_split::remove_windows, initialize_layouts)
5013 (tui_new_layout_command): Don't use hard-coded window names.
5014
a350efd4
TT
50152020-06-16 Tom Tromey <tom@tromey.com>
5016
5017 PR tui/25348:
5018 * tui/tui.c (tui_ensure_readline_initialized): Rename from
5019 tui_initialize_readline. Only run once. Call rl_initialize.
5020 * tui/tui.h (tui_ensure_readline_initialized): Rename from
5021 tui_initialize_readline.
5022 * tui/tui-io.c (tui_setup_io): Call
5023 tui_ensure_readline_initialized.
5024 * tui/tui-interp.c (tui_interp::init): Update.
5025
39ec0490
TT
50262020-06-16 Tom Tromey <tom@tromey.com>
5027
5028 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
5029 Also preserve the status window.
5030
d2d1ea20
TT
50312020-06-16 Tom Tromey <tom@tromey.com>
5032
5033 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
5034 where m_window==nullptr.
5035
66920317
TT
50362020-06-15 Tom Tromey <tromey@adacore.com>
5037
5038 * windows-nat.c (windows_nat::handle_output_debug_string):
5039 Update.
5040 (windows_nat::handle_ms_vc_exception): Update.
5041 * target.h (target_read_string): Change API.
5042 * target.c (target_read_string): Change API.
5043 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
5044 Update.
5045 * solib-frv.c (frv_current_sos): Update.
5046 * solib-dsbt.c (dsbt_current_sos): Update.
5047 * solib-darwin.c (darwin_current_sos): Update.
5048 * linux-thread-db.c (inferior_has_bug): Update.
5049 * expprint.c (print_subexp_standard): Update.
5050 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
5051 (ada_exception_message_1): Update.
5052
a5d871dd
TT
50532020-06-15 Tom Tromey <tromey@adacore.com>
5054
5055 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
5056
670e35fa
TT
50572020-06-15 Tom Tromey <tromey@adacore.com>
5058
5059 * valprint.c (read_string): Update comment.
5060 * target.c (MIN): Remove.
5061 (target_read_string): Rewrite.
5062
f5272a3b
TT
50632020-06-15 Tom Tromey <tromey@adacore.com>
5064
5065 * corefile.c (read_memory_string): Remove.
5066 * ada-valprint.c (ada_value_print_ptr): Update.
5067 * ada-lang.h (ada_tag_name): Change return type.
5068 * ada-lang.c (type_from_tag): Update.
5069 (ada_tag_name_from_tsd): Change return type. Use
5070 target_read_string.
5071 (ada_tag_name): Likewise.
5072 * gdbcore.h (read_memory_string): Don't declare.
5073
2c074f49
HD
50742020-06-14 Hannes Domani <ssbssa@yahoo.de>
5075
5076 * symtab.c (rbreak_command): Ignore Windows drive colon.
5077
6a17d503
SM
50782020-06-12 Simon Marchi <simon.marchi@efficios.com>
5079
5080 * NEWS: Mention removed GDBserver host support.
5081
453c733f
NC
50822020-06-12 Nelson Chu <nelson.chu@sifive.com>
5083
5084 * features/riscv/rebuild-csr-xml.sh: Updated.
5085
2b4e6a3f
TT
50862020-06-11 Tom Tromey <tom@tromey.com>
5087
5088 PR gdb/18318:
5089 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
5090
4412332f
JG
50912020-06-09 Jonny Grant <jg@jguk.org>
50922020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
5093
5094 * main.c (captured_main_1): Don't print new line after help.
5095 (print_gdb_help): add mailing list and IRC channel information
5096 to --help. Add new lines between items in the footer. Remove
5097 quotes around bug url.
5098
2f33032a
KS
50992020-06-11 Keith Seitz <keiths@redhat.com>
5100
5101 PR gdb/21356
5102 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
5103 Resolve typedefs for type length calculations.
5104
7ab96794
TV
51052020-06-10 Tom de Vries <tdevries@suse.de>
5106
5107 PR ada/24713
5108 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
5109 (write_psymbols): Enable .gdb_index for ada.
5110 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
5111 ada.
5112
e5f3ece2
TV
51132020-06-10 Tom de Vries <tdevries@suse.de>
5114
5115 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
5116 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
5117 namei" instead of "const char *name" argument.
5118 (dw2_map_matching_symbols): Use "offset_type namei" variant of
5119 dw2_symtab_iter_init.
5120
940da03e
SM
51212020-06-08 Simon Marchi <simon.marchi@efficios.com>
5122
5123 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
5124 to use type::field and field::type instead.
5125
b6cdac4b
SM
51262020-06-08 Simon Marchi <simon.marchi@efficios.com>
5127
5128 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
5129 to use field::type instead.
5130
5d14b6e5
SM
51312020-06-08 Simon Marchi <simon.marchi@efficios.com>
5132
5133 * gdbtypes.h (struct field) <type, set_type>: New methods.
5134 Rename `type` field to...
5135 <m_type>: ... this. Change references throughout to use type or
5136 set_type methods.
5137 (FIELD_TYPE): Use field::type. Change call sites that modify
5138 the field's type to use field::set_type instead.
5139
3d967001
SM
51402020-06-08 Simon Marchi <simon.marchi@efficios.com>
5141
5142 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
5143 to use type::index_type instead.
5144
262abc0d
SM
51452020-06-08 Simon Marchi <simon.marchi@efficios.com>
5146
5147 * gdbtypes.h (struct type) <index_type, set_index_type>: New
5148 methods.
5149 (TYPE_INDEX_TYPE): Use type::index_type.
5150 * gdbtypes.c (create_array_type_with_stride): Likewise.
5151
82836c92
TT
51522020-06-07 Tom Tromey <tom@tromey.com>
5153
5154 * valprint.c (generic_val_print_float): Remove "embedded_offset"
5155 parameter.
5156 (generic_value_print): Update.
5157
940dace9
AB
51582020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5159
5160 Revert commit 982a38f60b0.
5161 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
5162
982a38f6
AB
51632020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5164
5165 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
5166 avoid use after free.
5167
82f06518
TV
51682020-06-05 Tom de Vries <tdevries@suse.de>
5169
5170 * NEWS: Fix typos.
5171
f8c41851
SM
51722020-06-04 Simon Marchi <simon.marchi@efficios.com>
5173
5174 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
5175 the per_bfd object.
5176 (dwarf2_read_debug_names): Likewise.
5177 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
5178 object when re-using a per_bfd object with an index.
5179
f9b5d5ea
TV
51802020-06-03 Tom de Vries <tdevries@suse.de>
5181
5182 PR symtab/26046
5183 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
5184 children for C++.
5185 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
5186 DW_TAG_subprogram.
5187
f6eee2d0
AB
51882020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5189
5190 * ada-lang.c (ada_language_data): Delete skip_trampoline
5191 initializer.
5192 * c-lang.c (c_language_data): Likewise.
5193 (cplus_language_data): Likewise.
5194 (cplus_language::skip_trampoline): New member function.
5195 (asm_language_data): Delete skip_trampoline initializer.
5196 (minimal_language_data): Likewise.
5197 * d-lang.c (d_language_data): Likewise.
5198 * f-lang.c (f_language_data): Likewise.
5199 * go-lang.c (go_language_data): Likewise.
5200 * language.c (unk_lang_trampoline): Delete function.
5201 (skip_language_trampoline): Update.
5202 (unknown_language_data): Delete skip_trampoline initializer.
5203 (auto_language_data): Likewise.
5204 * language.h (language_data): Delete skip_trampoline field.
5205 (language_defn::skip_trampoline): New function.
5206 * m2-lang.c (m2_language_data): Delete skip_trampoline
5207 initializer.
5208 * objc-lang.c (objc_skip_trampoline): Delete function, move
5209 implementation to objc_language::skip_trampoline.
5210 (objc_language_data): Delete skip_trampoline initializer.
5211 (objc_language::skip_trampoline): New member function with
5212 implementation from objc_skip_trampoline.
5213 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5214 initializer.
5215 * p-lang.c (pascal_language_data): Likewise.
5216 * rust-lang.c (rust_language_data): Likewise.
5217
0a50df5d
AB
52182020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5219
5220 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5221 (ada_language::demangle): New member function.
5222 * c-lang.c (c_language_data): Delete la_demangle initializer.
5223 (cplus_language_data): Delete la_demangle initializer.
5224 (cplus_language::demangle): New member function.
5225 (asm_language_data): Delete la_demangle initializer.
5226 (minimal_language_data): Delete la_demangle initializer.
5227 * d-lang.c (d_language_data): Delete la_demangle initializer.
5228 (d_language::demangle): New member function.
5229 * f-lang.c (f_language_data): Delete la_demangle initializer.
5230 (f_language::demangle): New member function.
5231 * go-lang.c (go_language_data): Delete la_demangle initializer.
5232 (go_language::demangle): New member function.
5233 * language.c (language_demangle): Update.
5234 (unk_lang_demangle): Delete.
5235 (unknown_language_data): Delete la_demangle initializer.
5236 (unknown_language::demangle): New member function.
5237 (auto_language_data): Delete la_demangle initializer.
5238 (auto_language::demangle): New member function.
5239 * language.h (language_data): Delete la_demangle field.
5240 (language_defn::demangle): New function.
5241 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5242 * objc-lang.c (objc_language_data): Delete la_demangle
5243 initializer.
5244 (objc_language::demangle): New member function.
5245 * opencl-lang.c (opencl_language_data): Delete la_demangle
5246 initializer.
5247 * p-lang.c (pascal_language_data): Likewise.
5248 * rust-lang.c (rust_language_data): Likewise.
5249 (rust_language::demangle): New member function.
5250
fbfb0a46
AB
52512020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5252
5253 * ada-lang.c (ada_language_data): Delete la_print_type
5254 initializer.
5255 (ada_language::print_type): New member function.
5256 * c-lang.c (c_language_data): Delete la_print_type initializer.
5257 (c_language::print_type): New member function.
5258 (cplus_language_data): Delete la_print_type initializer.
5259 (cplus_language::print_type): New member function.
5260 (asm_language_data): Delete la_print_type initializer.
5261 (asm_language::print_type): New member function.
5262 (minimal_language_data): Delete la_print_type initializer.
5263 (minimal_language::print_type): New member function.
5264 * d-lang.c (d_language_data): Delete la_print_type initializer.
5265 (d_language::print_type): New member function.
5266 * f-lang.c (f_language_data): Delete la_print_type initializer.
5267 (f_language::print_type): New member function.
5268 * go-lang.c (go_language_data): Delete la_print_type initializer.
5269 (go_language::print_type): New member function.
5270 * language.c (unk_lang_print_type): Delete.
5271 (unknown_language_data): Delete la_print_type initializer.
5272 (unknown_language::print_type): New member function.
5273 (auto_language_data): Delete la_print_type initializer.
5274 (auto_language::print_type): New member function.
5275 * language.h (language_data): Delete la_print_type field.
5276 (language_defn::print_type): New function.
5277 (LA_PRINT_TYPE): Update.
5278 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5279 (m2_language::print_type): New member function.
5280 * objc-lang.c (objc_language_data): Delete la_print_type
5281 initializer.
5282 (objc_language::print_type): New member function.
5283 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5284 to opencl_language::print_type.
5285 (opencl_language_data): Delete la_print_type initializer.
5286 (opencl_language::print_type): New member function, implementation
5287 from opencl_print_type.
5288 * p-lang.c (pascal_language_data): Delete la_print_type
5289 initializer.
5290 (pascal_language::print_type): New member function.
5291 * rust-lang.c (rust_print_type): Delete, implementation moved to
5292 rust_language::print_type.
5293 (rust_language_data): Delete la_print_type initializer.
5294 (rust_language::print_type): New member function, implementation
5295 from rust_print_type.
5296
6f827019
AB
52972020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5298
5299 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5300 implementation moves to...
5301 (ada_language::sniff_from_mangled_name): ...here. Update return
5302 type.
5303 (ada_language_data): Delete la_sniff_from_mangled_name
5304 initializer.
5305 * c-lang.c (c_language_data): Likewise.
5306 (cplus_language_data): Likewise.
5307 (cplus_language::sniff_from_mangled_name): New member function,
5308 implementation taken from gdb_sniff_from_mangled_name.
5309 (asm_language_data): Delete la_sniff_from_mangled_name
5310 initializer.
5311 (minimal_language_data): Likewise.
5312 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5313 implementation moves to cplus_language::sniff_from_mangled_name.
5314 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5315 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5316 moves to...
5317 (d_language::sniff_from_mangled_name): ...here.
5318 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5319 * f-lang.c (f_language_data): Likewise.
5320 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5321 moves to...
5322 (go_language::sniff_from_mangled_name): ...here.
5323 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5324 * language.c (language_sniff_from_mangled_name): Delete.
5325 (unknown_language_data): Delete la_sniff_from_mangled_name
5326 initializer.
5327 (auto_language_data): Likewise.
5328 * language.h (language_data): Delete la_sniff_from_mangled_name
5329 field.
5330 (language_defn::sniff_from_mangled_name): New function.
5331 (language_sniff_from_mangled_name): Delete declaration.
5332 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5333 field.
5334 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5335 implementation moves to...
5336 (objc_language::sniff_from_mangled_name): ...here.
5337 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5338 * opencl-lang.c (opencl_language_data): Likewise.
5339 * p-lang.c (pascal_language_data): Likewise.
5340 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5341 implementation moves to...
5342 (rust_language::sniff_from_mangled_name): ...here.
5343 (rust_language_data): Delete la_sniff_from_mangled_name
5344 initializer.
5345 * symtab.c (symbol_find_demangled_name): Call
5346 sniff_from_mangled_name member function.
5347
fb8006fd
AB
53482020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5349
5350 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5351 initializer.
5352 * c-lang.c (c_language_data): Likewise.
5353 (cplus_language_data): Likewise.
5354 (cplus_language::search_name_hash): New member function.
5355 (asm_language_data): Delete la_search_name_hash initializer.
5356 (minimal_language_data): Likewise.
5357 * d-lang.c (d_language_data): Likewise.
5358 * dictionary.c (default_search_name_hash): Rename to...
5359 (language_defn::search_name_hash): ...this.
5360 * f-lang.c (f_language_data): Likewise.
5361 (f_language::search_name_hash): New member function.
5362 * go-lang.c (go_language_data): Delete la_search_name_hash
5363 initializer.
5364 * language.c (unknown_language_data): Likewise.
5365 (auto_language_data): Likewise.
5366 * language.h (struct language_data): Delete la_search_name_hash
5367 field.
5368 (language_defn::search_name_hash): Declare new member function.
5369 (default_search_name_hash): Delete declaration.
5370 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5371 initializer.
5372 * objc-lang.c (objc_language_data): Likewise.
5373 * opencl-lang.c (opencl_language_data): Likewise.
5374 * p-lang.c (pascal_language_data): Likewise.
5375 * rust-lang.c (rust_language_data): Likewise.
5376 * symtab.c (search_name_hash): Update call.
5377
8e25bafe
AB
53782020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5379
5380 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5381 initializer.
5382 * c-lang.c (class compile_instance): Declare.
5383 (c_language_data): Delete la_get_compile_instance initializer.
5384 (c_language::get_compile_instance): New member function.
5385 (cplus_language_data): Delete la_get_compile_instance initializer.
5386 (cplus_language::get_compile_instance): New member function.
5387 (asm_language_data): Delete la_get_compile_instance initializer.
5388 (minimal_language_data): Likewise.
5389 * c-lang.h (c_get_compile_context): Update comment.
5390 (cplus_get_compile_context): Update comment.
5391 * compile/compile.c (compile_to_object): Update calls, don't rely
5392 on function pointer being NULL.
5393 * d-lang.c (d_language_data): Delete la_get_compile_instance
5394 initializer.
5395 * f-lang.c (f_language_data): Likewise.
5396 * go-lang.c (go_language_data): Likewise.
5397 * language.c (unknown_language_data): Likewise.
5398 (auto_language_data): Likewise.
5399 * language.h (language_data): Delete la_get_compile_instance field.
5400 (language_defn::get_compile_instance): New member function.
5401 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5402 initializer.
5403 * objc-lang.c (objc_language_data): Likewise.
5404 * opencl-lang.c (opencl_language_data): Likewise.
5405 * p-lang.c (pascal_language_data): Likewise.
5406 * rust-lang.c (rust_language_data): Likewise.
5407
4009ee92
AB
54082020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5409
5410 * ada-lang.c (ada_add_all_symbols): Update comment.
5411 (ada_iterate_over_symbols): Delete, move implementation to...
5412 (ada_language::iterate_over_symbols): ...here, a new member
5413 function, rewrite to use range based for loop.
5414 (ada_language_data): Delete la_iterate_over_symbols initializer.
5415 * c-lang.c (c_language_data): Likewise.
5416 (cplus_language_data): Likewise.
5417 (asm_language_data): Likewise.
5418 (minimal_language_data): Likewise.
5419 * d-lang.c (d_language_data): Likewise.
5420 * f-lang.c (f_language_data): Likewise.
5421 * go-lang.c (go_language_data): Likewise.
5422 * language.c (unknown_language_data): Likewise.
5423 (auto_language_data): Likewise.
5424 * language.h (language_data): Delete la_iterate_over_symbols field.
5425 (language_defn::iterate_over_symbols): New member function.
5426 (LA_ITERATE_OVER_SYMBOLS): Update.
5427 * linespec.c (iterate_over_all_matching_symtabs): Update.
5428 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5429 initializer.
5430 * objc-lang.c (objc_language_data): Likewise.
5431 * opencl-lang.c (opencl_language_data): Likewise.
5432 * p-lang.c (pascal_language_data): Likewise.
5433 * rust-lang.c (rust_language_data): Likewise.
5434
54f4ca46
AB
54352020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5436
5437 * ada-lang.c (ada_language_data): Delete
5438 la_lookup_transparent_type initializer.
5439 * c-lang.c (c_language_data): Likewise.
5440 (cplus_language_data): Likewise.
5441 (cplus_language::lookup_transparent_type): New member function.
5442 (asm_language_data): Delete la_lookup_transparent_type
5443 initializer.
5444 (minimal_language_data): Likewise.
5445 * d-lang.c (d_language_data): Likewise.
5446 * f-lang.c (f_language_data): Likewise.
5447 * go-lang.c (go_language_data): Likewise.
5448 * language.c (unknown_language_data): Likewise.
5449 (auto_language_data): Likewise.
5450 * language.h (struct language_data): Delete
5451 la_lookup_transparent_type field.
5452 (language_defn::lookup_transparent_type): New member function.
5453 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5454 initializer.
5455 * objc-lang.c (objc_language_data): Likewise.
5456 * opencl-lang.c (opencl_language_data): Likewise.
5457 * p-lang.c (pascal_language_data): Likewise.
5458 * rust-lang.c (rust_language_data): Likewise.
5459 * symtab.c (symbol_matches_domain): Update call.
5460
1fb314aa
AB
54612020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5462
5463 * ada-lang.c (ada_language_arch_info): Delete function, move
5464 implementation to...
5465 (ada_language::language_arch_info): ...here, a new member
5466 function.
5467 (ada_language_data): Delete la_language_arch_info.
5468 * c-lang.c (c_language_data): Likewise.
5469 (c_language::language_arch_info): New member function.
5470 (cplus_language_arch_info): Delete function, move
5471 implementation to...
5472 (cplus_language::language_arch_info): ...here, a new member
5473 function.
5474 (cplus_language_data): Delete la_language_arch_info.
5475 (asm_language_data): Likewise.
5476 (asm_language::language_arch_info): New member function.
5477 (minimal_language_data): Delete la_language_arch_info.
5478 (minimal_language::language_arch_info): New member function.
5479 * d-lang.c (d_language_arch_info): Delete function, move
5480 implementation to...
5481 (d_language::language_arch_info): ...here, a new member
5482 function.
5483 (d_language_data): Delete la_language_arch_info.
5484 * f-lang.c (f_language_arch_info): Delete function, move
5485 implementation to...
5486 (f_language::language_arch_info): ...here, a new member
5487 function.
5488 (f_language_data): Delete la_language_arch_info.
5489 * go-lang.c (go_language_arch_info): Delete function, move
5490 implementation to...
5491 (go_language::language_arch_info): ...here, a new member
5492 function.
5493 (go_language_data): Delete la_language_arch_info.
5494 * language.c (unknown_language_data): Likewise.
5495 (unknown_language::language_arch_info): New member function.
5496 (auto_language_data): Delete la_language_arch_info.
5497 (auto_language::language_arch_info): New member function.
5498 (language_gdbarch_post_init): Update call to
5499 la_language_arch_info.
5500 * language.h (language_data): Delete la_language_arch_info
5501 function pointer.
5502 (language_defn::language_arch_info): New function.
5503 * m2-lang.c (m2_language_arch_info): Delete function, move
5504 implementation to...
5505 (m2_language::language_arch_info): ...here, a new member
5506 function.
5507 (m2_language_data): Delete la_language_arch_info.
5508 * objc-lang.c (objc_language_arch_info): Delete function, move
5509 implementation to...
5510 (objc_language::language_arch_info): ...here, a new member
5511 function.
5512 (objc_language_data): Delete la_language_arch_info.
5513 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5514 implementation to...
5515 (opencl_language::language_arch_info): ...here, a new member
5516 function.
5517 (opencl_language_data): Delete la_language_arch_info.
5518 * p-lang.c (pascal_language_arch_info): Delete function, move
5519 implementation to...
5520 (pascal_language::language_arch_info): ...here, a new member
5521 function.
5522 (pascal_language_data): Delete la_language_arch_info.
5523 * rust-lang.c (rust_language_arch_info): Delete function, move
5524 implementation to...
5525 (rust_language::language_arch_info): ...here, a new member
5526 function.
5527 (rust_language_data): Delete la_language_arch_info.
5528
48448202
AB
55292020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5530
5531 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5532 initializer.
5533 * c-lang.c (c_language_data): Likewise.
5534 (cplus_language_data): Likewise.
5535 (cplus_language::pass_by_reference_info): New method.
5536 (asm_language_data): Delete la_pass_by_reference initializer.
5537 (minimal_language_data): Likewise.
5538 * cp-abi.c (cp_pass_by_reference): Remove use of
5539 default_pass_by_reference.
5540 * d-lang.c (d_language_data): Likewise.
5541 * f-lang.c (f_language_data): Likewise.
5542 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5543 default_pass_by_reference.
5544 * go-lang.c (go_language_data): Likewise.
5545 * language.c (language_pass_by_reference): Update.
5546 (default_pass_by_reference): Delete.
5547 (unknown_language_data): Delete la_pass_by_reference
5548 initializer.
5549 (auto_language_data): Likewise.
5550 * language.h (struct language_data): Delete la_pass_by_reference
5551 field.
5552 (language_defn::pass_by_reference_info): New member function.
5553 (default_pass_by_reference): Delete declaration.
5554 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5555 initializer.
5556 * objc-lang.c (objc_language_data): Likewise.
5557 * opencl-lang.c (opencl_language_data): Likewise.
5558 * p-lang.c (pascal_language_data): Likewise.
5559 * rust-lang.c (rust_language_data): Likewise.
5560
15e5fd35
AB
55612020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5562
5563 * ada-lang.c (ada_read_var_value): Delete function, move
5564 implementation to...
5565 (ada_language::read_var_value): ...here.
5566 (ada_language_data): Delete la_read_var_value initializer.
5567 * c-lang.c (c_language_data): Likewise.
5568 (cplus_language_data): Likewise.
5569 (minimal_language_data): Likewise.
5570 * d-lang.c (d_language_data): Likewise.
5571 * f-lang.c (f_language_data): Likewise.
5572 * findvar.c (default_read_var_value): Rename to...
5573 (language_defn::read_var_value): ...this.
5574 * findvar.c (read_var_value): Update header comment, and change to
5575 call member function instead of function pointer.
5576 * go-lang.c (go_language_data): Likewise.
5577 * language.c (unknown_language_data): Delete la_read_var_value
5578 initializer.
5579 (auto_language_data): Likewise.
5580 * language.h (struct language_data): Delete la_read_var_value
5581 field.
5582 (language_defn::read_var_value): New member function.
5583 (default_read_var_value): Delete declaration.
5584 * m2-lang.c (m2_language_data): Delete la_read_var_value
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 * value.h (default_read_var_value): Delete declaration.
5591
5bd40f2a
AB
55922020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5593
5594 * ada-lang.c (ada_print_array_index): Delete function, move
5595 implementation to...
5596 (ada_language::print_array_index): ...here.
5597 (ada_language_data): Delete la_print_array_index initializer.
5598 * c-lang.c (c_language_data): Likewise.
5599 (cplus_language_data): Likewise.
5600 (minimal_language_data): Likewise.
5601 * d-lang.c (d_language_data): Likewise.
5602 * f-lang.c (f_language_data): Likewise.
5603 * go-lang.c (go_language_data): Likewise.
5604 * language.c (default_print_array_index): Delete function, move
5605 implementation to...
5606 (language_defn::print_array_index): ...here.
5607 (unknown_language_data): Delete la_print_array_index initializer.
5608 (auto_language_data): Likewise.
5609 * language.h (struct language_data): Delete la_print_array_index
5610 field.
5611 (language_defn::print_array_index): New member function.
5612 (LA_PRINT_ARRAY_INDEX): Update.
5613 (default_print_array_index): Delete declaration.
5614 * m2-lang.c (m2_language_data): Delete la_print_array_index
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
0874fd07
AB
56212020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5622
5623 * gdb/ada-lang.c (ada_language_defn): Convert to...
5624 (ada_language_data): ...this.
5625 (class ada_language): New class.
5626 (ada_language_defn): New static global.
5627 * gdb/c-lang.c (c_language_defn): Convert to...
5628 (c_language_data): ...this.
5629 (class c_language): New class.
5630 (c_language_defn): New static global.
5631 (cplus_language_defn): Convert to...
5632 (cplus_language_data): ...this.
5633 (class cplus_language): New class.
5634 (cplus_language_defn): New static global.
5635 (asm_language_defn): Convert to...
5636 (asm_language_data): ...this.
5637 (class asm_language): New class.
5638 (asm_language_defn): New static global.
5639 (minimal_language_defn): Convert to...
5640 (minimal_language_data): ...this.
5641 (class minimal_language): New class.
5642 (minimal_language_defn): New static global.
5643 * gdb/d-lang.c (d_language_defn): Convert to...
5644 (d_language_data): ...this.
5645 (class d_language): New class.
5646 (d_language_defn): New static global.
5647 * gdb/f-lang.c (f_language_defn): Convert to...
5648 (f_language_data): ...this.
5649 (class f_language): New class.
5650 (f_language_defn): New static global.
5651 * gdb/go-lang.c (go_language_defn): Convert to...
5652 (go_language_data): ...this.
5653 (class go_language): New class.
5654 (go_language_defn): New static global.
5655 * gdb/language.c (unknown_language_defn): Remove declaration.
5656 (current_language): Initialize to nullptr, real initialization is
5657 moved to _initialize_language.
5658 (languages): Delete global.
5659 (language_defn::languages): Define.
5660 (set_language_command): Use language_defn::languages.
5661 (set_language): Likewise.
5662 (range_error): Likewise.
5663 (language_enum): Likewise.
5664 (language_def): Likewise.
5665 (add_set_language_command): Use language_def::languages for the
5666 language list, and language_def to lookup language pointers.
5667 (skip_language_trampoline): Use language_defn::languages.
5668 (unknown_language_defn): Convert to...
5669 (unknown_language_data): ...this.
5670 (class unknown_language): New class.
5671 (unknown_language_defn): New static global.
5672 (auto_language_defn): Convert to...
5673 (auto_language_data): ...this.
5674 (class auto_language): New class.
5675 (auto_language_defn): New static global.
5676 (language_gdbarch_post_init): Use language_defn::languages.
5677 (_initialize_language): Initialize current_language.
5678 * gdb/language.h (struct language_defn): Rename to...
5679 (struct language_data): ...this.
5680 (struct language_defn): New.
5681 (auto_language_defn): Delete.
5682 (unknown_language_defn): Delete.
5683 (minimal_language_defn): Delete.
5684 (ada_language_defn): Delete.
5685 (asm_language_defn): Delete.
5686 (c_language_defn): Delete.
5687 (cplus_language_defn): Delete.
5688 (d_language_defn): Delete.
5689 (f_language_defn): Delete.
5690 (go_language_defn): Delete.
5691 (m2_language_defn): Delete.
5692 (objc_language_defn): Delete.
5693 (opencl_language_defn): Delete.
5694 (pascal_language_defn): Delete.
5695 (rust_language_defn): Delete.
5696 * gdb/m2-lang.c (m2_language_defn): Convert to...
5697 (m2_language_data): ...this.
5698 (class m2_language): New class.
5699 (m2_language_defn): New static global.
5700 * gdb/objc-lang.c (objc_language_defn): Convert to...
5701 (objc_language_data): ...this.
5702 (class objc_language): New class.
5703 (objc_language_defn): New static global.
5704 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5705 (opencl_language_data): ...this.
5706 (class opencl_language): New class.
5707 (opencl_language_defn): New static global.
5708 * gdb/p-lang.c (pascal_language_defn): Convert to...
5709 (pascal_language_data): ...this.
5710 (class pascal_language): New class.
5711 (pascal_language_defn): New static global.
5712 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5713 language pointer, update comment format.
5714 * gdb/rust-lang.c (rust_language_defn): Convert to...
5715 (rust_language_data): ...this.
5716 (class rust_language): New class.
5717 (rust_language_defn): New static global.
5718
1313c56e
AB
57192020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5720
5721 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5722 member variable.
5723 <m_stmt_at_address>: New member variable.
5724 (lnp_state_machine::record_line): Don't record some lines, update
5725 tracking of is_stmt at the same address.
5726 (lnp_state_machine::lnp_state_machine): Initialise new member
5727 variables.
5728
b7ed9f3d
ST
57292020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5730
5731 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5732 "-include gnu-nat-mig.h".
5733 * gnu-nat-mig.h: New file.
5734 * gnu-nat.c: Include "gnu-nat-mig.h".
5735 (exc_server, msg_reply_server, notify_server,
5736 process_reply_server): Remove declarations.
5737
14a8ad62
ST
57382020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5739
5740 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5741 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5742 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5743 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5744 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5745 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5746 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5747 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5748 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5749 to gnu_nat_target class.
5750 * gnu-nat.c: Likewise.
5751 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5752 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5753 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5754 object.
5755 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5756 instead of `gnu_target'.
5757
0af5e106
ST
57582020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5759
5760 * i386-gnu-tdep.c: Include "gdbcore.h"
5761 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5762 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5763 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5764 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5765 i386_gnu_sigcontext_addr): New functions
5766 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5767 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5768 tdep.
5769
078f2fc9
ST
57702020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5771
5772 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5773 before fork_inferior call. Avoid calling it if target_is_pushed returns
5774 true.
5775
53dff92c
ST
57762020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5777
5778 * gnu-nat.h (gnu_target): New variable declaration.
5779 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5780 gnu_target.
5781 * gnu-nat.c (gnu_target): New variable.
5782 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5783 add_thread_silent, and add_thread calls.
5784 (gnu_nat_target::create_inferior): Pass gnu_target to
5785 add_thread_silent, thread_change_ptid call.
5786 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5787 call.
5788
5a8b8627
ST
57892020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5790
5791 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5792 (gnu_nat_target::find_memory_regions): Remove unused
5793 `old_address' variable.
5794
366f550a
ST
57952020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5796
5797 * gnu-nat.c: Include "gdbarch.h".
5798
f14871bf
ST
57992020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5800
5801 * reply_mig_hack.awk (Error return): Cast function through
5802 void *, to bypass compiler function call check.
5803
c6887cfb
ST
58042020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5805
5806 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5807 $(srcdir)/reply_mig_hack.awk.
5808
6930bffe
ST
58092020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5810
5811 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5812
112c22ed
JG
58132020-05-30 Jonny Grant <jg@jguk.org>
5814
5815 * configure.ac (ACX_BUGURL): change bug URL to https.
5816
f68f85b5
PA
58172020-05-30 Pedro Alves <palves@redhat.com>
5818
5819 * cp-support.c (replace_typedefs_template): New.
5820 (replace_typedefs_qualified_name): Handle
5821 DEMANGLE_COMPONENT_TEMPLATE.
5822
976ca316
SM
58232020-05-29 Simon Marchi <simon.marchi@efficios.com>
5824
5825 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5826 dwarf2/index-cache.h, dwarf2/index-write.c,
5827 dwarf2/index-write.h, dwarf2/line-header.c,
5828 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5829 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5830 variables and fields from `dwarf2_per_objfile` to just
5831 `per_objfile` throughout.
5832
989ade05
SM
58332020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5834
5835 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5836 <push_dwarf_reg_entry_value>: Add comment.
5837
c47bae85
KB
58382020-05-28 Kevin Buettner <kevinb@redhat.com>
5839 Keith Seitz <keiths@redhat.com>
5840
5841 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5842 instead of PyEval_ReleaseLock.
5843 (class gdbpy_gil): Move to earlier in file.
5844 (finalize_python): Set gdb_python_initialized.
5845 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5846 when not initialized.
5847
44486dcf
SM
58482020-05-28 Simon Marchi <simon.marchi@efficios.com>
5849
5850 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5851 <push_dwarf_reg_entry_value>: Remove assert. Override
5852 per_objfile with caller_per_objfile.
5853
f030440d
TV
58542020-05-28 Tom de Vries <tdevries@suse.de>
5855
5856 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
5857 PR gold/15646 workaround to symbol kind "type".
5858
f0fbb768
TT
58592020-05-27 Tom Tromey <tromey@adacore.com>
5860
5861 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
5862
af0b2a3e
TT
58632020-05-27 Tom Tromey <tromey@adacore.com>
5864
5865 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5866 Use htab_find_with_hash.
5867 <add_abbrev>: Remove "abbrev_number" parameter.
5868 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
5869 "abbrev_number" parameter. Use htab_find_slot_with_hash.
5870 (hash_abbrev): Add comment.
5871 (abbrev_table::lookup_abbrev): Move to header file.
5872 (abbrev_table::read): Update.
5873
7d00ffec
TT
58742020-05-27 Tom Tromey <tromey@adacore.com>
5875
5876 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
5877 method.
5878 <canonical_name>: New member.
5879 <raw_name>: Rename from "name".
5880 (partial_die_info): Initialize canonical_name.
5881 (scan_partial_symbols): Check raw_name.
5882 (partial_die_parent_scope, partial_die_full_name)
5883 (add_partial_symbol, add_partial_subprogram)
5884 (add_partial_enumeration, load_partial_dies): Use "name" method.
5885 (partial_die_info::name): New method.
5886 (partial_die_info::read, guess_partial_die_structure_name)
5887 (partial_die_info::fixup): Update.
5888
697bba18
TT
58892020-05-27 Tom Tromey <tromey@adacore.com>
5890
5891 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
5892 <get_ref_die_offset>: Inline.
5893 <get_ref_die_offset_complaint>: New method.
5894 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
5895 (attribute::get_ref_die_offset_complaint): Rename from
5896 get_ref_die_offset. Just issue complaint.
5897
c17ace43
HD
58982020-05-27 Hannes Domani <ssbssa@yahoo.de>
5899
5900 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
5901
96445f0b
HD
59022020-05-27 Hannes Domani <ssbssa@yahoo.de>
5903
5904 * exec.c (exec_file_attach): Use errno value of first openp failure.
5905
ac637ec3
HD
59062020-05-27 Hannes Domani <ssbssa@yahoo.de>
5907
5908 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5909 Don't close thread handle.
5910
17ee85fc
TT
59112020-05-27 Tom Tromey <tom@tromey.com>
5912 Simon Marchi <simon.marchi@efficios.com>
5913
5914 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5915 shared_ptr.
5916 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5917 member.
5918 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5919 dwarf2_per_bfd_objfile_data_key>: New globals.
5920 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5921 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5922 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5923 shared.
5924 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5925 short-circuit when sharing.
5926 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5927 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5928
39b16f87
SM
59292020-05-27 Simon Marchi <simon.marchi@efficios.com>
5930
5931 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5932 to...
5933 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5934 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5935
fcf23d5b
SM
59362020-05-27 Simon Marchi <simon.marchi@efficios.com>
5937
5938 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5939 build_name_components, find_name_components_bounds>:
5940 Add per_objfile parameter.
5941 (struct mapped_index) <symbol_name_at>: Likewise.
5942 (struct mapped_debug_names): Remove constructor.
5943 <dwarf2_per_objfile>: Remove field.
5944 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5945 (mapped_index_base::find_name_components_bounds,
5946 mapped_index_base::build_name_components,
5947 dw2_expand_symtabs_matching_symbol): Likewise.
5948 (class mock_mapped_index) <symbol_name_at>: Likewise.
5949 (check_match): Likewise.
5950 (check_find_bounds_finds): Likewise.
5951 (test_mapped_index_find_name_component_bounds): Update.
5952 (CHECK_MATCH): Update.
5953 (dw2_expand_symtabs_matching): Update.
5954 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5955 per_objfile parameter.
5956 <find_vec_in_debug_names>: Likewise.
5957 <m_per_objfile>: New field.
5958 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5959 parameter.
5960 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5961 (dw2_debug_names_iterator::next): Update.
5962 (dw2_debug_names_lookup_symbol): Update.
5963 (dw2_debug_names_expand_symtabs_for_function): Update.
5964 (dw2_debug_names_map_matching_symbols): Update.
5965 (dw2_debug_names_expand_symtabs_matching): Update.
5966 (dwarf2_read_debug_names): Update.
5967
7188ed02
SM
59682020-05-27 Simon Marchi <simon.marchi@efficios.com>
5969
5970 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5971 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5972 move to dwarf2_per_objfile.
5973 <read_in_chain>: Remove.
5974 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5975 remove_all_cus, age_comp_units>: New methods.
5976 <m_dwarf2_cus>: New member.
5977 (struct dwarf2_per_cu_data) <cu>: Remove.
5978 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5979 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5980 moved to methods of dwarf2_per_objfile.
5981 (dwarf2_clear_marks): Remove.
5982 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5983 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5984 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5985 (dwarf2_per_objfile::remove_all_cus): New.
5986 (class free_cached_comp_units) <~free_cached_comp_units>:
5987 Update.
5988 (load_cu): Update.
5989 (dw2_do_instantiate_symtab): Adjust.
5990 (fill_in_sig_entry_from_dwo_entry): Adjust.
5991 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5992 (cutu_reader::cutu_reader): Likewise.
5993 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5994 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5995 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5996 and dwarf2_per_objfile::age_comp_units.
5997 (load_partial_comp_unit): Update.
5998 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5999 (process_queue): Likewise.
6000 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
6001 backlink.
6002 (dwarf2_read_addr_index): Likewise.
6003 (follow_die_offset): Likewise.
6004 (dwarf2_fetch_die_loc_sect_off): Likewise.
6005 (dwarf2_fetch_constant_bytes): Likewise.
6006 (dwarf2_fetch_die_type_sect_off): Likewise.
6007 (follow_die_sig_1): Likewise.
6008 (load_full_type_unit): Likewise.
6009 (read_signatured_type): Likewise.
6010 (dwarf2_cu::dwarf2_cu): Don't set cu field.
6011 (dwarf2_cu::~dwarf2_cu): Remove.
6012 (dwarf2_per_objfile::get_cu): New.
6013 (dwarf2_per_objfile::set_cu): New.
6014 (age_cached_comp_units): Rename to...
6015 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
6016 to std::unordered_map.
6017 (free_one_cached_comp_unit): Rename to...
6018 (dwarf2_per_objfile::remove_cu): ... this. Adjust
6019 to std::unordered_map.
6020 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
6021 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
6022 a dwarf2_per_objfile in data.
6023 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
6024 (dwarf2_clear_marks): Remove.
6025
2e671100
SM
60262020-05-27 Simon Marchi <simon.marchi@efficios.com>
6027
6028 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
6029 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
6030 (init_tu_and_read_dwo_dies): Likewise.
6031 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
6032 (cutu_reader::cutu_reader): Likewise.
6033 (load_partial_comp_unit): Likewise.
6034 (process_psymtab_comp_unit): Update.
6035 (build_type_psymtabs_1): Update.
6036 (process_skeletonless_type_unit): Update.
6037 (load_full_comp_unit): Update.
6038 (find_partial_die): Update.
6039 (dwarf2_read_addr_index): Update.
6040 (read_signatured_type): Update.
6041
2e6a9f79
SM
60422020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6043
6044 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
6045 m_header_read_in>: New fields.
6046 <get_header>: New method.
6047 * dwarf2/read.c (per_cu_header_read_in): Remove.
6048 (dwarf2_per_cu_data::get_header): New.
6049 (dwarf2_per_cu_data::addr_size): Update.
6050 (dwarf2_per_cu_data::offset_size): Update.
6051 (dwarf2_per_cu_data::ref_addr_size): Update.
6052
1b555f17
SM
60532020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6054
6055 * dwarf2/read.c (load_cu): Return dwarf2_cu.
6056 (dw2_do_instantiate_symtab): Update.
6057 (queue_and_load_all_dwo_tus): Change parameter from
6058 dwarf2_per_cu_data to dwarf2_cu.
6059 (dwarf2_fetch_die_loc_sect_off): Update.
6060 (dwarf2_fetch_constant_bytes): Update.
6061 (dwarf2_fetch_die_type_sect_off): Update.
6062
8fc0b21d
SM
60632020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6064
6065 * dwarf2/read.c (process_full_comp_unit,
6066 process_full_type_unit): Remove per_cu, per_objfile paramters.
6067 Add dwarf2_cu parameter.
6068 (process_queue): Update.
6069
168c9250
SM
60702020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6071
6072 * dwarf2/read.c (create_cu_from_index_list): Replace
6073 dwarf2_per_objfile parameter with dwarf2_per_bfd.
6074 (create_cus_from_index_list): Likewise.
6075 (create_cus_from_index): Likewise.
6076 (create_signatured_type_table_from_index): Likewise.
6077 (create_cus_from_debug_names_list): Likewise.
6078 (create_cus_from_debug_names): Likewise.
6079 (dwarf2_read_gdb_index): Update.
6080 (dwarf2_read_debug_names): Update.
6081
e286671b
TT
60822020-05-27 Tom Tromey <tom@tromey.com>
6083 Simon Marchi <simon.marchi@efficios.com>
6084
6085 * dwarf2/read.h (struct dwarf2_per_objfile)
6086 <get_type_for_signatured_type, set_type_for_signatured_type>:
6087 New methods.
6088 <m_type_map>: New member.
6089 (struct signatured_type) <type>: Remove.
6090 * dwarf2/read.c
6091 (dwarf2_per_objfile::get_type_for_signatured_type,
6092 dwarf2_per_objfile::set_type_for_signatured_type): New.
6093 (get_signatured_type): Use new methods.
6094
8adb8487
TT
60952020-05-27 Tom Tromey <tom@tromey.com>
6096 Simon Marchi <simon.marchi@efficios.com>
6097
6098 * dwarf2/read.h (struct type_unit_group_unshareable): New.
6099 (struct dwarf2_per_objfile) <type_units>: New member.
6100 <get_type_unit_group_unshareable>: New method.
6101 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
6102 num_symtabs, symtabs>: Remove; move to
6103 type_unit_group_unshareable.
6104 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
6105 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
6106 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
6107
127bbf4b
SM
61082020-05-27 Simon Marchi <simon.marchi@efficios.com>
6109
6110 * dwarf2/read.h (struct dwarf2_per_cu_data):
6111 <dwarf2_per_objfile>: Remove.
6112 * dwarf2/read.c (create_cu_from_index_list): Don't assign
6113 dwarf2_per_objfile.
6114 (create_signatured_type_table_from_index): Likewise.
6115 (create_signatured_type_table_from_debug_names): Likewise.
6116 (create_debug_type_hash_table): Likewise.
6117 (fill_in_sig_entry_from_dwo_entry): Likewise.
6118 (create_type_unit_group): Likewise.
6119 (read_comp_units_from_section): Likewise.
6120 (create_cus_hash_table): Likewise.
6121
f6e649dd
SM
61222020-05-27 Simon Marchi <simon.marchi@efficios.com>
6123
6124 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
6125 dwarf2_per_cu_data::dwarf2_per_objfile.
6126 (compute_compunit_symtab_includes): Likewise.
6127 (dwarf2_cu::start_symtab): Likewise.
6128
aa66c379
SM
61292020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6130
6131 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
6132 parameter.
6133 * dwarf2/read.c (get_die_type_at_offset): Likewise.
6134 (read_namespace_alias): Update.
6135 (lookup_die_type): Update.
6136 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
6137 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
6138 Update.
6139 (disassemble_dwarf_expression): Update.
6140
120ce1b5
SM
61412020-05-27 Simon Marchi <simon.marchi@efficios.com>
6142
6143 * dwarf2/read.h (struct dwarf2_queue_item): Add
6144 dwarf2_per_objfile parameter, assign new parameter.
6145 <per_objfile>: New field.
6146 * dwarf2/read.c (free_one_cached_comp_unit): Add
6147 dwarf2_per_objfile parameter.
6148 (queue_comp_unit): Likewise.
6149 (dw2_do_instantiate_symtab): Update.
6150 (process_psymtab_comp_unit): Update.
6151 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
6152 (process_imported_unit_die): Update.
6153 (queue_and_load_dwo_tu): Update.
6154 (follow_die_offset): Update.
6155 (follow_die_sig_1): Update.
6156
9f47c707
SM
61572020-05-27 Simon Marchi <simon.marchi@efficios.com>
6158
6159 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
6160 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
6161 (read_call_site_scope): Assign per_objfile.
6162 (dwarf2_per_cu_data::objfile): Remove.
6163 * gdbtypes.h (struct call_site) <per_objfile>: New member.
6164 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
6165 dwarf2_per_objfile parameter.
6166 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
6167 dwarf2_per_objfile parameter.
6168 (dwarf_expr_reg_to_entry_parameter): Add output
6169 dwarf2_per_objfile parameter.
6170 (locexpr_get_frame_base): Update.
6171 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
6172 <push_dwarf_reg_entry_value>: Update.
6173 <call_site_to_target_addr>: Update.
6174 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
6175 parameter.
6176 (value_of_dwarf_reg_entry): Update.
6177 (rw_pieced_value): Update.
6178 (indirect_synthetic_pointer): Update.
6179 (dwarf2_evaluate_property): Update.
6180 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
6181 parameter.
6182 (locexpr_read_variable): Update.
6183 (locexpr_get_symbol_read_needs): Update.
6184 (loclist_read_variable): Update.
6185
14095eb3
SM
61862020-05-27 Simon Marchi <simon.marchi@efficios.com>
6187
6188 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6189 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6190 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6191 parameter.
6192 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6193 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6194 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6195 parameter.
6196 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6197 sect_variable_value): Add dwarf2_per_objfile parameter.
6198 (class dwarf_evaluate_loc_desc) <dwarf_call,
6199 dwarf_variable_value>: Update.
6200 (fetch_const_value_from_synthetic_pointer): Add
6201 dwarf2_per_objfile parameter.
6202 (fetch_const_value_from_synthetic_pointer): Update.
6203 (coerced_pieced_ref): Update.
6204 (class symbol_needs_eval_context) <dwarf_call,
6205 dwarf_variable_value>: Update.
6206 (dwarf2_compile_expr_to_ax): Update.
6207
3c3cd3d4
SM
62082020-05-27 Simon Marchi <simon.marchi@efficios.com>
6209
6210 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6211 parameter.
6212 (dwarf2_evaluate_loc_desc_full): Update.
6213
82ca3f51
SM
62142020-05-27 Simon Marchi <simon.marchi@efficios.com>
6215
6216 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6217 parameter.
6218 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6219 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6220 dwarf2_per_objfile parameter.
6221 (decode_debug_loc_dwo_addresses): Likewise.
6222 (dwarf2_find_location_expression): Update.
6223 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6224 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6225 parameter.
6226 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6227 parameter.
6228 (locexpr_describe_location_1): Likewise.
6229 (locexpr_describe_location): Update.
6230
4b167ea1
SM
62312020-05-27 Simon Marchi <simon.marchi@efficios.com>
6232
6233 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6234 Remove.
6235 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6236 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6237 (dwarf2_compile_property_to_c): Update.
6238 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6239 use text offset from objfile.
6240 (locexpr_tracepoint_var_ref): Update.
6241 (locexpr_generate_c_location): Update.
6242 (loclist_describe_location): Update.
6243 (loclist_tracepoint_var_ref): Update.
6244 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6245 dwarf2_per_objfile parameter.
6246 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6247 use text offset from objfile.
6248 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6249
89b07335
SM
62502020-05-27 Simon Marchi <simon.marchi@efficios.com>
6251
6252 * dwarf2/expr.h (struct dwarf_expr_context)
6253 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6254 <offset>: Remove.
6255 <per_objfile>: New member.
6256 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6257 dwarf2_per_objfile parameter. Don't set offset, set
6258 per_objfile.
6259 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6260 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6261 a dwarf2_per_objfile object instead of an offset.
6262 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6263 constructor.
6264 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6265 to dwarf2_expr_executor constructor. Don't set offset.
6266 (dwarf2_fetch_cfa_info): Update.
6267 (struct dwarf2_frame_cache) <text_offset>: Remove.
6268 <per_objfile>: New field.
6269 (dwarf2_frame_cache): Update.
6270 (dwarf2_frame_prev_register): Update.
6271 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6272 <dwarf_evaluate_loc_desc>: Add constructor.
6273 (dwarf2_evaluate_loc_desc_full): Update.
6274 (dwarf2_locexpr_baton_eval): Update.
6275 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6276 Add constructor.
6277 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6278
293e7e51
SM
62792020-05-27 Simon Marchi <simon.marchi@efficios.com>
6280
6281 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6282 addr_sized_int_type>: Move to dwarf2_cu.
6283 <int_type>: Move to dwarf2_per_objfile.
6284 (struct dwarf2_per_objfile) <int_type>: Move here.
6285 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6286 addr_sized_int_type>: Move here.
6287 (read_func_scope): Update.
6288 (read_array_type): Update.
6289 (read_tag_string_type): Update.
6290 (attr_to_dynamic_prop): Update.
6291 (dwarf2_per_cu_data::int_type): Rename to...
6292 (dwarf2_per_objfile::int_type): ... this.
6293 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6294 (dwarf2_cu::addr_sized_int_type): ... this.
6295 (read_subrange_type): Update.
6296 (dwarf2_per_cu_data::addr_type): Rename to...
6297 (dwarf2_cu::addr_type): ... this.
6298 (set_die_type): Update.
6299
64874a40
SM
63002020-05-27 Simon Marchi <simon.marchi@efficios.com>
6301
6302 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6303 data through per_cu->cu.
6304
4ab09049
SM
63052020-05-27 Simon Marchi <simon.marchi@efficios.com>
6306
6307 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6308 dwarf2_per_cu_data parameter fo dwarf2_cu.
6309 (lookup_dwo_type_unit): Likewise.
6310 (read_cutu_die_from_dwo): Likewise.
6311 (lookup_dwo_unit): Likewise.
6312 (open_and_init_dwo_file): Likewise.
6313 (lookup_dwo_cutu): Likewise.
6314 (lookup_dwo_comp_unit): Likewise.
6315 (lookup_dwo_type_unit): Likewise.
6316 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6317 (cutu_reader::cutu_reader): Update.
6318
47b14e86
SM
63192020-05-27 Simon Marchi <simon.marchi@efficios.com>
6320
6321 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6322 parameter.
6323 (process_full_type_unit): Likewise.
6324 (process_queue): Update.
6325
43182c09
SM
63262020-05-27 Simon Marchi <simon.marchi@efficios.com>
6327
6328 * dwarf2/read.c (recursively_compute_inclusions): Add
6329 dwarf2_per_objfile parameter.
6330 (compute_compunit_symtab_includes): Likewise.
6331 (process_cu_includes): Update.
6332
7aa104c4
SM
63332020-05-27 Simon Marchi <simon.marchi@efficios.com>
6334
6335 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6336 parameter.
6337 (create_type_unit_group): Update.
6338 (process_psymtab_comp_unit_reader): Update.
6339 (build_type_psymtabs_reader): Update.
6340
e3beb21d
SM
63412020-05-27 Simon Marchi <simon.marchi@efficios.com>
6342
6343 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6344 object through m_this_cu->cu.
6345
d460f660
SM
63462020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6347
6348 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6349 the info parameter.
6350 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6351
ab432490
SM
63522020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6353
6354 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6355 per_objfile parameter.
6356 (load_full_type_unit): Add per_objfile parameter.
6357 (read_signatured_type): Likewise.
6358 (load_full_comp_unit): Likewise.
6359 (load_cu): Likewise.
6360 (dw2_do_instantiate_symtab): Likewise.
6361 (dw2_get_file_names): Likewise.
6362 (dw2_map_symtabs_matching_filename): Update.
6363 (dw_expand_symtabs_matching_file_matcher): Update.
6364 (dw2_map_symbol_filenames): Update.
6365 (process_psymtab_comp_unit): Add per_objfile parameter.
6366 (build_type_psymtabs_1): Update.
6367 (process_skeletonless_type_unit): Update.
6368 (dwarf2_build_psymtabs_hard): Update.
6369 (load_partial_comp_unit): Add per_objfile parameter.
6370 (scan_partial_symbols): Update.
6371 (load_full_comp_unit): Add per_objfile parameter.
6372 (process_imported_unit_die): Update.
6373 (create_cus_hash_table): Update.
6374 (find_partial_die): Update.
6375 (dwarf2_read_addr_index): Update.
6376 (follow_die_offset): Update.
6377 (dwarf2_fetch_die_loc_sect_off): Update.
6378 (dwarf2_fetch_constant_bytes): Update.
6379 (dwarf2_fetch_die_type_sect_off): Update.
6380 (follow_die_sig_1): Update.
6381 (load_full_type_unit): Add per_objfile parameter.
6382 (read_signatured_type): Likewise.
6383
313bad1b
SM
63842020-05-27 Simon Marchi <simon.marchi@efficios.com>
6385
6386 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6387 of objfile_name.
6388
c3699833
SM
63892020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6390
6391 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6392 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6393 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6394 field.
6395 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6396 (create_cus_from_index): Update.
6397 (dwarf2_read_gdb_index): Update.
6398 (create_cus_from_debug_names): Update.
6399 (dwarf2_read_debug_names): Update.
6400 (get_abbrev_section_for_cu): Update.
6401 (create_all_comp_units): Update.
6402 (read_attribute_value): Update.
6403 (get_debug_line_section): Update.
6404 * dwarf2/index-cache.c (index_cache::store): Update.
6405 * dwarf2/index-write.c (save_gdb_index_command): Update.
6406 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6407
1859c670
SM
64082020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6409
6410 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6411 member.
6412 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6413 dwarf2_per_cu_data::per_bfd.
6414 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6415 (create_type_unit_group): Likewise.
6416 (queue_comp_unit): Remove reference to
6417 per_cu->dwarf2_per_objfile.
6418 (maybe_queue_comp_unit): Likewise.
6419 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6420 (create_cus_hash_table): Assign new field.
6421
5e22e966
SM
64222020-05-27 Simon Marchi <simon.marchi@efficios.com>
6423
6424 * dwarf2/read.c: Replace
6425 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6426 dwarf2_cu->per_objfile throughout.
6427
97a1449a
SM
64282020-05-27 Simon Marchi <simon.marchi@efficios.com>
6429
6430 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6431 parameter, don't use per_cu->dwarf2_per_objfile.
6432 (dw2_instantiate_symtab): Likewise.
6433 (dw2_find_last_source_symtab): Update.
6434 (dw2_map_expand_apply): Update.
6435 (dw2_lookup_symbol): Update.
6436 (dw2_expand_symtabs_for_function): Update.
6437 (dw2_expand_all_symtabs): Update.
6438 (dw2_expand_symtabs_with_fullname): Update.
6439 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6440 don't use per_cu->dwarf2_per_objfile.
6441 (dw2_expand_marked_cus): Update.
6442 (dw2_find_pc_sect_compunit_symtab): Update.
6443 (dw2_debug_names_lookup_symbol): Update.
6444 (dw2_debug_names_expand_symtabs_for_function): Update.
6445 (dw2_debug_names_map_matching_symbols): Update.
6446 (dwarf2_psymtab::expand_psymtab): Update.
6447
9e021579
SM
64482020-05-27 Simon Marchi <simon.marchi@efficios.com>
6449
6450 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6451 <per_objfile>: New member.
6452 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6453 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6454 call to dwarf2_cu.
6455 (cutu_reader::cutu_reader): Update.
6456 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6457
ae090bdb
SM
64582020-05-27 Simon Marchi <simon.marchi@efficios.com>
6459
6460 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6461 struct dwarf2_per_objfile.
6462 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6463 dwarf2_per_bfd.
6464 * dwarf2/read.c (set_die_type): Update.
6465 (get_die_type_at_offset): Update.
6466
af758d11
SM
64672020-05-27 Tom Tromey <tom@tromey.com>
6468 Simon Marchi <simon.marchi@efficios.com>
6469
6470 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6471 method.
6472 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6473 get_symtab, set_symtab>: New methods.
6474 <m_symtabs>: New field.
6475 (struct dwarf2_psymtab): Derive from partial_symtab.
6476 <readin_p, get_compunit_symtab>: Declare methods.
6477 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6478 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6479 New methods.
6480 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6481 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6482 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6483 (dw2_symtab_iter_next, dw2_print_stats)
6484 (dw2_expand_symtabs_with_fullname)
6485 (dw2_expand_symtabs_matching_one)
6486 (dw_expand_symtabs_matching_file_matcher)
6487 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6488 (dw2_debug_names_iterator::next)
6489 (dw2_debug_names_map_matching_symbols)
6490 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6491 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6492 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6493 New methods.
6494 (get_compunit_symtab, process_full_comp_unit)
6495 (process_full_type_unit): Update.
6496 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6497
5989a64e
SM
64982020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6499
6500 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6501 then introduce a new dwarf2_per_objfile type.
6502 <read_line_string>: Move to the new dwarf2_per_objfile type.
6503 <objfile>: Likewise.
6504 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6505 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6506 dwarf2_per_objfile->per_bfd.
6507 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6508 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6509 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6510 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6511 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6512 (dwarf2_per_objfile::locate_sections): Rename to...
6513 (dwarf2_per_bfd::locate_sections): ... this.
6514 (dwarf2_per_objfile::get_cutu): Rename to...
6515 (dwarf2_per_bfd::get_cutu): ... this.
6516 (dwarf2_per_objfile::get_cu): Rename to...
6517 (dwarf2_per_bfd::get_cu): ... this.
6518 (dwarf2_per_objfile::get_tu): Rename to...
6519 (dwarf2_per_bfd::get_tu): ... this.
6520 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6521 (dwarf2_per_bfd::allocate_per_cu): ... this.
6522 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6523 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6524 (get_gdb_index_contents_ftype): Change parameter from
6525 dwarf2_per_objfile to dwarf2_per_bfd.
6526 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6527 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6528
a50264ba
TT
65292020-05-27 Tom Tromey <tom@tromey.com>
6530 Simon Marchi <simon.marchi@efficios.com>
6531
6532 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6533 (allocate_piece_closure): Set "per_objfile" member.
6534 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6535 (locexpr_describe_location, loclist_describe_location): Use new
6536 member.
6537 * dwarf2/read.c (read_call_site_scope)
6538 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6539 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6540 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6541 handle_data_member_location): Set per_objfile member.
6542 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6543 member.
6544 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6545
d3473f0c
TT
65462020-05-27 Tom Tromey <tom@tromey.com>
6547
6548 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6549 allocate_signatured_type>: Declare new methods.
6550 <m_num_psymtabs>: New member.
6551 (struct dwarf2_per_cu_data) <index>: New member.
6552 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6553 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6554 (create_cu_from_index_list): Use allocate_per_cu.
6555 (create_signatured_type_table_from_index)
6556 (create_signatured_type_table_from_debug_names)
6557 (create_debug_type_hash_table, add_type_unit)
6558 (read_comp_units_from_section): Use allocate_signatured_type.
6559
5717c425
TT
65602020-05-27 Tom Tromey <tom@tromey.com>
6561
6562 * psymtab.c (partial_map_expand_apply)
6563 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6564 (psym_lookup_global_symbol_language)
6565 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6566 (psym_print_stats, psym_expand_symtabs_for_function)
6567 (psym_map_symbol_filenames, psym_map_matching_symbols)
6568 (psym_expand_symtabs_matching)
6569 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6570 (maintenance_check_psymtabs): Update.
6571 * psympriv.h (struct partial_symtab) <readin_p,
6572 get_compunit_symtab>: Add objfile parameter.
6573 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6574 Likewise.
6575 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6576 get_compunit_symtab>: Likewise.
6577 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6578
45940949
TT
65792020-05-27 Tom Tromey <tom@tromey.com>
6580
6581 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6582 member.
6583 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6584 (create_cu_from_index_list)
6585 (create_signatured_type_table_from_index)
6586 (create_signatured_type_table_from_debug_names)
6587 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6588 (dwarf2_create_include_psymtab)
6589 (create_debug_type_hash_table, add_type_unit)
6590 (create_type_unit_group, read_comp_units_from_section)
6591 (dwarf2_compute_name, create_cus_hash_table)
6592 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6593 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6594 obstack.
6595 (dw2_get_real_path): Likewise. Change argument to
6596 dwarf2_per_objfile.
6597
f8c6d152
LM
65982020-05-27 Luis Machado <luis.machado@linaro.org>
6599
6600 PR tdep/26000
6601 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6602 for ldrd (immediate).
6603
e98d2e6d
PW
66042020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6605
6606 * command.h: Add comment giving the name of class_tui.
6607 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6608 create the fake command for the help for class_tui.
6609
53a47a3e
TT
66102020-05-26 Tom Tromey <tromey@adacore.com>
6611
6612 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6613 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6614 (val_atr): New function.
6615 (value_val_atr): Use it.
6616 * ada-valprint.c (print_optional_low_bound): Change low bound
6617 handling for enums.
6618 (val_print_packed_array_elements): Don't call discrete_position.
6619 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6620 discrete_position for enum types.
6621 * language.c (default_print_array_index): Change type.
6622 * language.h (struct language_defn) <la_print_array_index>: Add
6623 index_type parameter, change type of index_value.
6624 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6625 (default_print_array_index): Update.
6626 * valprint.c (maybe_print_array_index): Don't call
6627 value_from_longest. Update.
6628 (value_print_array_elements): Don't call discrete_position.
6629
0bc2354b
TT
66302020-05-26 Tom Tromey <tromey@adacore.com>
6631
6632 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6633 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6634
1218a4bf
CDA
66352020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6636
6637 PR gdb/13519
6638 * avr-tdep.c (avr_integer_to_address): Return data or code
6639 address accordingly to the second 'type' argument of the
6640 function.
6641
92651b1d
MW
66422020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6643
6644 * infcmd.c, inferior.h: (construct_inferior_arguments):
6645 Moved function from here to gdbsupport/common-inferior.{h,cc}
6646
0a4f5f8c
TT
66472020-05-23 Tom Tromey <tom@tromey.com>
6648
6649 Revert commit eca1f90c:
6650 * NEWS: Remove entry for completion styling.
6651 * completer.c (_rl_completion_prefix_display_length): Move
6652 declaration later.
6653 (gdb_fnprint): Revert.
6654 (gdb_display_match_list_1): Likewise.
6655 * cli/cli-style.c (completion_prefix_style)
6656 (completion_difference_style, completion_suffix_style): Remove.
6657 (_initialize_cli_style): Revert.
6658 * cli/cli-style.h (completion_prefix_style)
6659 (completion_difference_style, completion_suffix_style): Don't
6660 declare.
6661
e08bd6c5
PA
66622020-05-24 Pedro Alves <palves@redhat.com>
6663
6664 * symtab.c (completion_list_add_name): Return boolean indication
6665 of whether the symbol matched.
6666 (completion_list_add_symbol): Don't try to remove C++ aliases if
6667 the symbol didn't match in the first place.
6668 * symtab.h (completion_list_add_name): Return bool.
6669
ceacbf6e
SM
66702020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6671
6672 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6673 type::field.
6674
26f16254
JB
66752020-05-23 Joel Brobecker <brobecker@adacore.com>
6676
6677 GDB 9.2 released.
6678
eca1f90c
TT
66792020-05-23 Tom Tromey <tom@tromey.com>
6680
6681 * NEWS: Add entry for completion styling.
6682 * completer.c (_rl_completion_prefix_display_length): Move
6683 declaration earlier.
6684 (gdb_fnprint): Use completion_style.
6685 (gdb_display_match_list_1): Likewise.
6686 * cli/cli-style.c (completion_prefix_style)
6687 (completion_difference_style, completion_suffix_style): New
6688 globals.
6689 (_initialize_cli_style): Register new globals.
6690 * cli/cli-style.h (completion_prefix_style)
6691 (completion_difference_style, completion_suffix_style): Declare.
6692
51e2cfa2
PA
66932020-05-23 Pedro Alves <palves@redhat.com>
6694
6695 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6696 (parse_escape): Use ISDIGIT instead of isdigit.
6697 (puts_debug): Use gdb_isprint instead of isprint.
6698 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6699 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6700 ISSPACE instead of isspace.
6701 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6702 instead of isspace.
6703 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6704 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6705 instead of isxdigit and ISDIGIT instead of isdigit.
6706
80fc5e77
SM
67072020-05-22 Simon Marchi <simon.marchi@efficios.com>
6708
6709 * gdbtypes.h (struct type) <field>: New method.
6710 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6711 or type::field.
6712
3cabb6b0
SM
67132020-05-22 Simon Marchi <simon.marchi@efficios.com>
6714
6715 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6716 (TYPE_FIELDS): Use type::fields. Change all call sites that
6717 modify the propery to use type::set_fields instead.
6718
1f704f76
SM
67192020-05-22 Simon Marchi <simon.marchi@efficios.com>
6720
6721 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6722 type::num_fields instead.
6723
5e33d5f4
SM
67242020-05-22 Simon Marchi <simon.marchi@efficios.com>
6725
6726 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6727 methods.
6728 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6729 that modify the number of fields to use type::set_num_fields
6730 instead.
6731
9392ebb3
TT
67322020-05-22 Tom Tromey <tromey@adacore.com>
6733
6734 * compile/compile-object-load.h (munmap_list_free): Don't
6735 declare.
6736
7c13f4e8
AB
67372020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6738
6739 * annotate.c (annotate_source_line): Update return type, add call
6740 to update current symtab and line.
6741 * annotate.h (annotate_source_line): Update return type, and
6742 extend header comment.
6743 * source.c (info_line_command): Check annotation_level before
6744 calling annotate_source_line.
6745 * stack.c (print_frame_info): If calling annotate_source_line
6746 returns true, then don't print any other source line information.
6747
aa370940
SM
67482020-05-21 Simon Marchi <simon.marchi@efficios.com>
6749
6750 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6751
84d53fa9
SM
67522020-05-21 Simon Marchi <simon.marchi@efficios.com>
6753
6754 * coffread.c (patch_type): Remove NULL check before xfree.
6755 * corefile.c (set_gnutarget): Likewise.
6756 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6757 * exec.c (build_section_table): Likewise.
6758 * remote.c (remote_target::pass_signals): Likewise.
6759 * utils.c (n_spaces): Likewise.
6760 * cli/cli-script.c (document_command): Likewise.
6761 * i386-windows-tdep.c (core_process_module_section): Likewise.
6762 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6763
9d428aae
SM
67642020-05-20 Simon Marchi <simon.marchi@efficios.com>
6765
6766 * symfile.c (reread_symbols): Clear objfile's section_offsets
6767 vector and section indices, re-compute them by calling
6768 sym_offsets.
6769
250106a7
TT
67702020-05-20 Tom Tromey <tromey@adacore.com>
6771
6772 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 6773 (desc_one_bound, desc_index_type): Compute field name.
250106a7 6774
9a0bacfb
TV
67752020-05-20 Tom de Vries <tdevries@suse.de>
6776
6777 PR symtab/25833
6778 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6779
7b958a48
AM
67802020-05-20 Alan Modra <amodra@gmail.com>
6781
6782 PR 25993
6783 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6784 bfd_set_filename.
6785 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6786 passed to bfd_set_filename.
6787 * symfile-mem.c (add_vsyscall_page): Likewise for string
6788 passed to symbol_file_add_from_memory.
6789 (symbol_file_add_from_memory): Make name param a const char* and
6790 don't strdup.
6791
c7e97679
AM
67922020-05-20 Alan Modra <amodra@gmail.com>
6793
6794 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6795 rather than accessing bfd->filename directly.
6796 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6797 and use bfd_section_name.
6798 * dwarf2/frame.c (decode_frame_entry): Likewise.
6799 * exec.c (exec_set_section_address): Likewise.
6800 * solib-aix.c (solib_aix_bfd_open): Likewise.
6801 * stap-probe.c (get_stap_base_address): Likewise.
6802 * symfile.c (reread_symbols): Likewise.
6803
563c591b
TT
68042020-05-19 Tom Tromey <tromey@adacore.com>
6805
6806 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6807
f408d82c
SM
68082020-05-19 Simon Marchi <simon.marchi@efficios.com>
6809
6810 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6811
98c59b52
PA
68122020-05-19 Pedro Alves <palves@redhat.com>
6813
6814 * NEWS (set exec-file-mismatch): Adjust entry.
6815 * exec.c: Include "build-id.h".
6816 (validate_exec_file): Try to match build IDs instead of filenames.
6817 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6818 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6819 and pass down 'warn_if_slow'.
6820 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6821 gdb_bfd_open_closure to pass it down.
6822 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6823
4111f652
PA
68242020-05-19 Pedro Alves <palves@redhat.com>
6825
6826 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6827 * target.c (target_fileio_open_1): Rename to target_fileio_open
6828 and make extern. Use bool.
6829 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6830 (target_fileio_read_alloc_1): Adjust.
6831 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6832 (target_fileio_open_warn_if_slow): Delete declaration.
6833
ad80db5b
PA
68342020-05-19 Pedro Alves <palves@redhat.com>
6835
6836 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6837 Adjust all callers.
6838
1d6ce4d3
YS
68392020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6840
6841 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6842 whether disp is negative.
6843
9005fbbb
SM
68442020-05-19 Simon Marchi <simon.marchi@efficios.com>
6845
6846 * symfile.h (struct symfile_segment_data)
6847 <~symfile_segment_data>: Remove.
6848 <segment_info>: Change to std::vector.
6849 * symfile.c (default_symfile_segments): Update.
6850 * elfread.c (elf_symfile_segments): Update.
6851
68b888ff
SM
68522020-05-19 Simon Marchi <simon.marchi@efficios.com>
6853
6854 * symfile.h (struct symfile_segment_data) <struct segment>: New.
6855 <segments>: New.
6856 <segment_bases, segment_sizes>: Remove.
6857 * symfile.c (default_symfile_segments): Update.
6858 * elfread.c (elf_symfile_segments): Update.
6859 * remote.c (remote_target::get_offsets): Update.
6860 * solib-target.c (solib_target_relocate_section_addresses):
6861 Update.
6862
62982abd
SM
68632020-05-19 Simon Marchi <simon.marchi@efficios.com>
6864
6865 * symfile.h (struct symfile_segment_data): Initialize fields.
6866 <~symfile_segment_data>: Add.
6867 (symfile_segment_data_up): New.
6868 (struct sym_fns) <sym_segments>: Return a
6869 symfile_segment_data_up.
6870 (default_symfile_segments): Return a symfile_segment_data_up.
6871 (free_symfile_segment_data): Remove.
6872 (get_symfile_segment_data): Return a symfile_segment_data_up.
6873 * symfile.c (default_symfile_segments): Likewise.
6874 (get_symfile_segment_data): Likewise.
6875 (free_symfile_segment_data): Remove.
6876 (symfile_find_segment_sections): Update.
6877 * elfread.c (elf_symfile_segments): Return a
6878 symfile_segment_data_up.
6879 * remote.c (remote_target::get_offsets): Update.
6880 * solib-target.c (solib_target_relocate_section_addresses):
6881 Update.
6882 * symfile-debug.c (debug_sym_segments): Return a
6883 symfile_segment_data_up.
6884
7f204339
RO
68852020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6886
e52a0f1b
RO
6887 PR build/25981
6888 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
6889 Hardcode register numbers.
6890
7f204339
RO
6891 PR build/25981
6892 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
6893 procfs_find_LDT_entry): Remove.
6894 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
6895 procfs_find_LDT_entry): Remove.
6896 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
6897 Remove.
6898
7f32a4d5
PA
68992020-05-17 Pedro Alves <palves@redhat.com>
6900 Andrew Burgess <andrew.burgess@embecosm.com>
6901 Keno Fischer <keno@juliacomputing.com>
6902
6903 PR gdb/25741
6904 * breakpoint.c (build_target_condition_list): Update comments.
6905 (build_target_command_list): Update comments and skip matching
6906 locations.
6907 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
6908 a separate function. Simplify "set breakpoint auto-hw off"
6909 handling.
6910 (insert_breakpoints): Update comment.
6911 (tracepoint_locations_match): New parameter. For breakpoints,
6912 compare location types too, if the caller wants to.
6913 (handle_automatic_hardware_breakpoints): New functions.
6914 (bp_location_is_less_than): Also sort by location type and
6915 hardware breakpoint length.
6916 (update_global_location_list): Handle "set breakpoint auto-hw on"
6917 here.
6918 (update_breakpoint_locations): Ask breakpoint_locations_match to
6919 ignore location types.
6920
7d93a1e0
SM
69212020-05-16 Simon Marchi <simon.marchi@efficios.com>
6922
6923 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6924 type::name instead.
6925
d0e39ea2
SM
69262020-05-16 Simon Marchi <simon.marchi@efficios.com>
6927
6928 * gdbtypes.h (struct type) <name, set_name>: New methods.
6929 (TYPE_CODE): Use type::name. Change all call sites used to set
6930 the name to use type::set_name instead.
6931
2dab0c7b
TT
69322020-05-16 Tom Tromey <tom@tromey.com>
6933
6934 * top.c (quit_force): Update.
6935 * infrun.c (handle_no_resumed): Update.
6936 * top.h (all_uis): New function.
6937 (ALL_UIS): Remove.
6938
59f7bd8d
SM
69392020-05-16 Simon Marchi <simon.marchi@efficios.com>
6940
6941 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6942
9bf058f0
PA
69432020-05-16 Pedro Alves <palves@redhat.com>
6944
6945 * ia64-linux-nat.c
6946 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6947 Declare method.
6948 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6949
8f86ae1a
SM
69502020-05-15 Simon Marchi <simon.marchi@efficios.com>
6951
6952 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6953 (sparc64_adi_info): Likewise.
6954
d6bc0792
TT
69552020-05-15 Tom Tromey <tom@tromey.com>
6956
6957 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6958 block_objfile.
6959 (lookup_objfile_from_block): Remove.
6960 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6961 (lookup_global_symbol): Use block_objfile.
6962 * symtab.h (lookup_objfile_from_block): Don't declare.
6963 * printcmd.c (clear_dangling_display_expressions): Use
6964 block_objfile.
6965 * parse.c (operator_check_standard): Use block_objfile.
6966
8c14c3a3
TT
69672020-05-15 Tom Tromey <tom@tromey.com>
6968
6969 * language.c (language_alloc_type_symbol): Set
6970 SYMBOL_SECTION.
6971 * symtab.c (initialize_objfile_symbol): Remove.
6972 (allocate_symbol): Remove.
6973 (allocate_template_symbol): Remove.
6974 * dwarf2/read.c (fixup_go_packaging): Use "new".
6975 (new_symbol): Use "new".
6976 (read_variable): Don't call initialize_objfile_symbol. Use
6977 "new".
6978 (read_func_scope): Use "new".
6979 * xcoffread.c (process_xcoff_symbol): Don't call
6980 initialize_objfile_symbol.
6981 (SYMBOL_DUP): Remove.
6982 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6983 "new".
6984 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6985 (allocate_template_symbol): Don't declare.
6986 (struct symbol): Add copy constructor. Change defaults.
6987 * jit.c (finalize_symtab): Use "new".
6988 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6989 Use "new".
6990 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6991 (common_block_end): Use "new".
6992 * mdebugread.c (parse_symbol): Use "new".
6993 (new_symbol): Likewise.
6994
5b4a1a8d
PW
69952020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6996
6997 * NEWS: Mention changes to help and apropos.
6998
57b4f16e
PW
69992020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7000
7001 * command.h (enum command_class): Improve comments, document
7002 that class_alias is for user-defined aliases, give the class
7003 name for each class, remove unused class_xdb.
7004 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
7005 * breakpoint.c (_initialize_breakpoint): Replace class_alias
7006 by a precise class.
7007 * infcmd.c (_initialize_infcmd): Likewise.
7008 * reverse.c (_initialize_reverse): Likewise.
7009 * stack.c (_initialize_stack): Likewise.
7010 * symfile.c (_initialize_symfile): Likewise.
7011 * tracepoint.c (_initialize_tracepoint): Likewise.
7012
7c05caf7
PW
70132020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7014
7015 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
7016 when their aliased command is traversed.
7017 (help_cmd): Add fput_command_names_styled call to
7018 output command name and aliases when command has an alias.
7019
3b3aaacb
PW
70202020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7021
7022 * cli/cli-decode.h (help_cmd_list): Remove declaration.
7023 * cli/cli-decode.c (help_cmd_list): Declare as static,
7024 remove prefix argument, use bool for recurse arg, rework to show the aliases of
7025 a command together with the command.
7026 (fput_command_name_styled, fput_command_names_styled): New functions.
7027 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
7028 fput_command_name_styled.
7029 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
7030 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
7031
7aa1b46f
PW
70322020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7033
7034 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
7035 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
7036 * command.h (cmd_show_list): Likewise.
7037 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
7038 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
7039
89bcba74
PW
70402020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7041
7042 * unittests/command-def-selftests.c (traverse_command_structure):
7043 Verify all commands of a list have the same prefix command and
7044 that only the top cmdlist commands have a null prefix.
7045
3f4d92eb
PW
70462020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7047
7048 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
7049 as prefix, not one of its aliases.
7050 (set_cmd_prefix): Remove.
7051 (do_add_cmd): Centralize the setting of the prefix of a command, when
7052 command is defined after its full chain of prefix commands.
7053 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
7054 (add_setshow_cmd_full): Likewise.
7055 (update_prefix_field_of_prefixed_commands): New function.
7056 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
7057 update_prefix_field_of_prefixed_commands.
7058 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
7059 addresses of remote_set_cmdlist and remote_show_cmdlist given
7060 as argument, not the address of an argument.
7061 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
7062 * gdb/remote.c (_initialize_remote): Likewise.
7063
0605465f
PW
70642020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7065
7066 * cli/cli-cmds.c (alias_command): Check for an existing alias
7067 using lookup_cmd_composition, as valid_command_p is too strict
7068 and forbids aliases that are the prefix of an existing alias
7069 or command.
7070 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
7071 command is properly recognised as a valid command.
7072
58e6ac70
PW
70732020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7074
7075 * unittests/help-doc-selftests.c: Rename to
7076 unittests/command-def-selftests.c
7077 * unittests/command-def-selftests.c (help_doc_tests): Update some
7078 comments.
7079 (command_structure_tests, traverse_command_structure): New namespace
7080 and function.
7081 (command_structure_invariants_tests): New function.
7082 (_initialize_command_def_selftests) Renamed from
7083 _initialize_help_doc_selftests, register command_structure_invariants
7084 selftest.
7085
a7b9ceb8
PW
70862020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7087
7088 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
7089 an alias of 'show'.
7090
b2188a06
JB
70912020-05-15 Joel Brobecker <brobecker@adacore.com>
7092
7093 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
7094 ada_is_fixed_point_type. Update all callers.
7095 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
7096 all callers.
7097 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
7098 Update all callers.
7099 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
7100 print_fixed_point_type. Update all callers.
7101 * ada-valprint.c (ada_value_print_num): Replace call to
7102 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
7103
a51951c2
KB
71042020-05-14 Kevin Buettner <kevinb@redhat.com>
7105
7106 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
7107 processors.
7108 (cpu_supports_bts): Add CV_AMD case.
7109
29d6859f
LM
71102020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
7111 Simon Marchi <simon.marchi@efficios.com>
7112
7113 * infrun.c (stop_all_threads): Collect multiple wait events at
7114 each pass.
7115
78134374
SM
71162020-05-14 Simon Marchi <simon.marchi@efficios.com>
7117
7118 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
7119 type::code instead.
7120
67607e24
SM
71212020-05-14 Simon Marchi <simon.marchi@efficios.com>
7122
7123 * gdbtypes.h (struct type) <code, set_code>: New methods.
7124 (TYPE_CODE): Use type::code. Change all call sites used to set
7125 the code to use type::set_code instead.
7126
a05575d3
TBA
71272020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7128 Tom de Vries <tdevries@suse.de>
7129 Pedro Alves <palves@redhat.com>
7130
7131 PR threads/25478
7132 * infrun.c (stop_all_threads): Do NOT ignore
7133 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
7134 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
7135 received.
7136 (handle_no_resumed): Remove code handling a live inferior with no
7137 threads.
7138 * remote.c (has_single_non_exited_thread): New.
7139 (remote_target::update_thread_list): Do not delete a thread if is
7140 the last thread of the process.
7141 * thread.c (thread_select): Call delete_exited_threads instead of
7142 prune_threads.
7143
6ad82919
TBA
71442020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7145
7146 * infrun.c (stop_all_threads): Enable/disable thread events of all
7147 targets. Move a debug message denoting the end of the function
7148 into the SCOPED_EXIT block.
7149
d890404b
TBA
71502020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7151
7152 * process-stratum-target.h: Include <set>.
7153 (all_non_exited_process_targets, switch_to_target_no_thread): New
7154 function declarations.
7155 * process-stratum-target.c (all_non_exited_process_targets)
7156 (switch_to_target_no_thread): New function implementations.
7157
293b3ebc
TBA
71582020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7159
7160 * infrun.c (handle_inferior_event): Extract out a piece of code
7161 into...
7162 (mark_non_executing_threads): ...this new function.
7163
7ca9b62a
TBA
71642020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7165
7166 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
7167 use.
7168
fc75c28b
TBA
71692020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7170
7171 * regcache.c (regcache_read_pc_protected): New function
7172 implementation that returns 0 if the PC cannot read via
7173 'regcache_read_pc'.
7174 * infrun.c (proceed): Call 'regcache_read_pc_protected'
7175 instead of 'regcache_read_pc'.
7176 (keep_going_pass_signal): Ditto.
7177
a89febbd
TT
71782020-05-13 Tom Tromey <tromey@adacore.com>
7179
7180 * ada-lang.c (align_value): Remove.
7181 (ada_template_to_fixed_record_type_1): Use align_up.
7182
f7e23710
TBA
71832020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7184
7185 * async-event.c: Update the copyright year.
7186 * async-event.h: Update the copyright year.
7187
02ff80c2
SM
71882020-05-12 Simon Marchi <simon.marchi@efficios.com>
7189
7190 * objfiles.h (is_addr_in_objfile,
7191 shared_objfile_contains_address_p): Return bool.
7192 * objfile.c (is_addr_in_objfile,
7193 shared_objfile_contains_address_p): Return bool.
7194
4fd6c7e8
TT
71952020-05-11 Tom Tromey <tromey@adacore.com>
7196
7197 * cli/cli-cmds.c (info_command): Restore.
7198 (_initialize_cli_cmds): Use add_prefix_command for "info".
7199 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7200
5eb68a39
TT
72012020-05-11 Tom Tromey <tromey@adacore.com>
7202
7203 * ada-lang.c (ada_value_primitive_field): Now public.
7204 * ada-lang.h (ada_value_primitive_field): Declare.
7205 * ada-valprint.c (print_field_values): Use
7206 ada_value_primitive_field for wrapper fields.
7207
7666722f
TV
72082020-05-11 Tom de Vries <tdevries@suse.de>
7209
7210 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7211 MODULE_DOMAIN.
7212
3ee6bb11
TV
72132020-05-11 Tom de Vries <tdevries@suse.de>
7214
7215 PR symtab/25941
7216 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7217 with length 0, if not gdb-produced.
7218 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7219
43434996
TV
72202020-05-09 Tom de Vries <tdevries@suse.de>
7221
7222 PR gdb/25955
7223 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7224 calculation.
7225
2f78cffc
TT
72262020-05-09 Tom Tromey <tom@tromey.com>
7227
7228 * top.c (server_command): Now bool.
7229 * top.h (server_command): Now bool.
7230
4f7bc5ed
TT
72312020-05-08 Tom Tromey <tromey@adacore.com>
7232
7233 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7234 already being processed.
7235
8be4b118
TT
72362020-05-08 Tom Tromey <tom@tromey.com>
7237
7238 * printcmd.c (struct display) <next>: Remove.
7239 <display>: New constructor.
7240 <exp_string>: Now a std::string.
7241 <enabled_p>: Now a bool.
7242 (display_number): Move definition earlier.
7243 (displays): Rename from display_chain. Now a std::vector.
7244 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7245 (display_command): Update.
7246 (do_one_display, disable_display)
7247 (enable_disable_display_command, do_enable_disable_display):
7248 Update.
7249 (free_display): Remove.
7250 (clear_displays): Rewrite.
7251 (delete_display): Update.
7252 (map_display_numbers): Use function_view. Remove "data"
7253 parameter. Update.
7254 (do_delete_display): Remove.
7255 (undisplay_command): Update.
7256 (do_one_display, do_displays, disable_display)
7257 (info_display_command): Update.
7258 (do_enable_disable_display): Remove.
7259 (enable_disable_display_command)
7260 (clear_dangling_display_expressions): Update.
7261
94c93c35
TT
72622020-05-08 Tom Tromey <tom@tromey.com>
7263
7264 * symtab.c (set_symbol_cache_size)
7265 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7266 (maintenance_print_symbol_cache_statistics): Update.
7267 * symmisc.c (print_symbol_bcache_statistics)
7268 (print_objfile_statistics, maintenance_print_objfiles)
7269 (maintenance_info_symtabs, maintenance_check_symtabs)
7270 (maintenance_expand_symtabs, maintenance_info_line_tables):
7271 Update.
7272 * symfile-debug.c (set_debug_symfile): Update.
7273 * source.c (forget_cached_source_info): Update.
7274 * python/python.c (gdbpy_progspaces): Update.
7275 * psymtab.c (maintenance_info_psymtabs): Update.
7276 * probe.c (parse_probes): Update.
7277 * linespec.c (iterate_over_all_matching_symtabs)
7278 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7279 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7280 * exec.c (exec_target::close): Update.
7281 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7282 * breakpoint.c (print_one_breakpoint_location)
7283 (create_longjmp_master_breakpoint)
7284 (create_std_terminate_master_breakpoint): Update.
7285 * progspace.c (program_spaces): Now a std::vector.
7286 (maybe_new_address_space): Update.
7287 (add_program_space): Remove.
7288 (program_space::program_space): Update.
7289 (remove_program_space): Update.
7290 (number_of_program_spaces): Remove.
7291 (print_program_space, update_address_spaces): Update.
7292 * progspace.h (program_spaces): Change type.
7293 (ALL_PSPACES): Remove.
7294 (number_of_program_spaces): Don't declare.
7295 (struct program_space) <next>: Remove.
7296
a1fd1ac9
TT
72972020-05-08 Tom Tromey <tom@tromey.com>
7298
7299 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7300 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7301 (enable_break): Update.
7302 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7303 (frv_fdpic_find_canonical_descriptor): Update.
7304 (frv_fetch_objfile_link_map): Update.
7305 * progspace.c (program_space::free_all_objfiles): Update.
7306 (program_space::solibs): New method.
7307 * progspace.h (struct program_space) <solibs>: New method.
7308 * solist.h (master_so_list): Don't declare.
7309 (ALL_SO_LIBS): Remove.
7310 * solib.h (so_list_head): Remove.
7311 (update_solib_list): Update comment.
7312 * solib.c (master_so_list): Remove.
7313 (solib_used, update_solib_list, solib_add)
7314 (info_sharedlibrary_command, clear_solib)
7315 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7316
38eae084
TT
73172020-05-08 Tom Tromey <tom@tromey.com>
7318
7319 * extension.c (extension_languages): Now a std::array.
7320 (ALL_EXTENSION_LANGUAGES): Remove.
7321 (get_ext_lang_defn, get_ext_lang_of_file)
7322 (eval_ext_lang_from_control_command): Update.
7323 (finish_ext_lang_initialization)
7324 (auto_load_ext_lang_scripts_for_objfile)
7325 (ext_lang_type_printers::ext_lang_type_printers)
7326 (apply_ext_lang_type_printers)
7327 (ext_lang_type_printers::~ext_lang_type_printers)
7328 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7329 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7330 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7331 (get_matching_xmethod_workers, ext_lang_colorize)
7332 (ext_lang_before_prompt): Update.
7333 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7334
596dc4ad
TT
73352020-05-08 Tom Tromey <tom@tromey.com>
7336
7337 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7338 overload.
7339 <swap_string, m_string>: Remove.
7340 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7341 Update.
7342 * stabsread.c (define_symbol, read_type): Update.
7343 * linespec.c (find_linespec_symbols): Update.
7344 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7345 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7346 * dbxread.c (read_dbx_symtab): Update.
7347 * cp-support.h (cp_canonicalize_string_full)
7348 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7349 Return unique_xmalloc_ptr.
7350 * cp-support.c (inspect_type): Update.
7351 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7352 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7353 Likewise.
7354 * c-typeprint.c (print_name_maybe_canonical): Update.
7355 * break-catch-throw.c (check_status_exception_catchpoint):
7356 Update.
7357
bf4cb9be
TV
73582020-05-08 Tom de Vries <tdevries@suse.de>
7359
7360 * infrun.c (follow_fork): Copy current_line and current_symtab to
7361 child thread.
7362
a1b68f28
SM
73632020-05-07 Simon Marchi <simon.marchi@efficios.com>
7364
7365 * async-event.c (struct async_signal_handler, struct
7366 async_event_handler): Reformat, remove typedef.
7367
98d48915
SM
73682020-05-07 Simon Marchi <simon.marchi@efficios.com>
7369
7370 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7371 access thistype->main_type->dyn_prop_list directly.
7372
7aa91313
SM
73732020-05-07 Simon Marchi <simon.marchi@efficios.com>
7374
7375 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7376 (remove_dyn_prop): Remove. Update all users to use
7377 type::remove_dyn_prop.
7378 * gdbtypes.c (remove_dyn_prop): Rename to...
7379 (type::remove_dyn_prop): ... this.
7380
5c54719c
SM
73812020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7382
7383 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7384 (add_dyn_prop): Remove. Update all users to use
7385 type::add_dyn_prop.
7386 * gdbtypes.c (add_dyn_prop): Rename to...
7387 (type::add_dyn_prop): ... this.
7388
24e99c6c
SM
73892020-05-07 Simon Marchi <simon.marchi@efficios.com>
7390
7391 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7392 (get_dyn_prop): Remove. Update all users to use
7393 type::dyn_prop.
7394 * gdbtypes.c (get_dyn_prop): Rename to...
7395 (type::dyn_prop): ... this.
7396
0d4bf016
SM
73972020-05-06 Simon Marchi <simon.marchi@efficios.com>
7398
7399 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7400
ac4a4f1c
SM
74012020-05-06 Simon Marchi <simon.marchi@efficios.com>
7402
7403 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7404 instruction, skip it if it's there.
7405
a3bbacc1
SM
74062020-05-05 Simon Marchi <simon.marchi@efficios.com>
7407
7408 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7409
c3236f84
SM
74102020-05-04 Simon Marchi <simon.marchi@efficios.com>
7411
7412 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7413 * gdbtypes.c (recursive_dump_type): Remove use of
7414 TYPE_INCOMPLETE.
7415
3b6acaee
TT
74162020-05-03 Tom Tromey <tom@tromey.com>
7417
7418 * breakpoint.c (catch_command, tcatch_command): Remove.
7419 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7420 add_show_prefix_cmd.
7421 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7422 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7423 Remove.
7424 (add_internal_problem_command): Use add_basic_prefix_cmd,
7425 add_show_prefix_cmd.
7426 * mips-tdep.c (set_mipsfpu_command): Remove.
7427 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7428 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7429 (_initialize_index_cache): Use add_basic_prefix_cmd.
7430 * memattr.c (dummy_cmd): Remove.
7431 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7432 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7433 (_initialize_tui_win): Use add_basic_prefix_cmd,
7434 add_show_prefix_cmd.
7435 * cli/cli-logging.c (set_logging_command): Remove.
7436 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7437 add_show_prefix_cmd.
7438 (show_logging_command): Remove.
7439 * target.c (target_command): Remove.
7440 (add_target): Use add_basic_prefix_cmd.
7441
a51119cd
HD
74422020-05-02 Hannes Domani <ssbssa@yahoo.de>
7443
7444 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7445
652fc23a 74462020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7447
652fc23a
PW
7448 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7449 info_command.
7450
117539e6
KR
74512020-04-30 Kamil Rytarowski <n54@gmx.com>
7452
7453 * nbsd-nat.c (nbsd_enable_proc_events)
7454 (nbsd_nat_target::post_startup_inferior): Add.
7455 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7456 (nbsd_nat_target::update_thread_list): Rewrite.
7457 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7458 "PTRACE_LWP_CREATE".
7459 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7460
102e38eb 74612020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7462
102e38eb
PW
7463 * stack.c (_initialize_stack): Remove duplicated creation
7464 of "frame" command and "f" alias.
7465
ee9d1e5f
HD
74662020-04-30 Hannes Domani <ssbssa@yahoo.de>
7467
7468 PR gdb/18706
7469 * gdbtypes.c (check_typedef): Calculate size of array of
7470 stubbed type.
7471
627c7fb8
HD
74722020-04-30 Hannes Domani <ssbssa@yahoo.de>
7473
7474 PR gdb/15559
7475 * i386-tdep.c (i386_push_dummy_call): Call
7476 i386_thiscall_push_dummy_call.
7477 (i386_thiscall_push_dummy_call): New function.
7478 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7479 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7480 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7481
ffc2844e
SM
74822020-04-29 Simon Marchi <simon.marchi@efficios.com>
7483
7484 * gdbarch.sh (do_read): Add shellcheck disable directive for
7485 warning SC2162.
7486
1207375d
SM
74872020-04-29 Simon Marchi <simon.marchi@efficios.com>
7488
7489 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7490 "referenced but not assigned" warning.
7491
9fdb2916
SM
74922020-04-29 Simon Marchi <simon.marchi@efficios.com>
7493
7494 * gdbarch.sh: Remove code that sets fallbackdefault.
7495
759cea5e
SM
74962020-04-29 Simon Marchi <simon.marchi@efficios.com>
7497
7498 * gdbarch.sh: Use shell operators && and || instead of
7499 -a and -o.
7500
cb02ab24
SM
75012020-04-29 Simon Marchi <simon.marchi@efficios.com>
7502
7503 * gdbarch.sh: Use $(...) instead of `...`.
7504
a6fc5ffc
SM
75052020-04-29 Simon Marchi <simon.marchi@efficios.com>
7506
7507 * gdbarch.sh: Use double quotes around variables.
7508
8d113d13
SM
75092020-04-29 Simon Marchi <simon.marchi@efficios.com>
7510
7511 * gdbarch.sh: Use %s with printf, instead of variables in the
7512 format string.
7513
ed6acedd
TT
75142020-04-29 Tom Tromey <tromey@adacore.com>
7515
7516 PR ada/25875:
7517 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7518 type fields here.
7519 (read_enumeration_type): Call
7520 update_enumeration_type_from_children later. Update comments.
7521 (process_enumeration_scope): Don't create type fields.
7522
b68b1b58
KR
75232020-04-29 Kamil Rytarowski <n54@gmx.com>
7524
7525 * nbsd-tdep.c: Include "xml-syscall.h".
7526 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7527
f94b2e03
KR
75282020-04-29 Kamil Rytarowski <n54@gmx.com>
7529
7530 * nbsd-nat.c: Include "sys/wait.h".
7531 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7532 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7533 (nbsd_nat_target::remove_exec_catchpoint)
7534 (nbsd_nat_target::set_syscall_catchpoint): Add.
7535 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7536 (nbsd_nat_target::insert_exec_catchpoint)
7537 (nbsd_nat_target::remove_exec_catchpoint)
7538 (nbsd_nat_target::set_syscall_catchpoint): Add.
7539 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7540 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7541 `nbsd_get_syscall_number'.
7542
fc49bc72
TT
75432020-04-29 Tom Tromey <tom@tromey.com>
7544
7545 * stack.c (print_block_frame_labels): Remove.
7546
d642b692
HD
75472020-04-29 Hannes Domani <ssbssa@yahoo.de>
7548
7549 PR gdb/17320
7550 * ada-valprint.c (val_print_packed_array_elements): Move array
7551 end bracket to new line.
7552 (ada_val_print_string): Remove extra spaces before first array
7553 element.
7554 * c-valprint.c (c_value_print_array): Likewise.
7555 * m2-valprint.c (m2_print_array_contents): Likewise.
7556 (m2_value_print_inner): Likewise.
7557 * p-valprint.c (pascal_value_print_inner): Likewise.
7558 * valprint.c (generic_val_print_array): Likewise.
7559 (value_print_array_elements): Move first array element and array
7560 end bracket to new line.
7561
ea90f227
TV
75622020-04-29 Tom de Vries <tdevries@suse.de>
7563
7564 PR symtab/25889
7565 * linespec.c (find_method): Fix ix calculation.
7566
4498ef4f
KR
75672020-04-28 Kamil Rytarowski <n54@gmx.com>
7568
7569 * syscalls/update-netbsd.sh: New file.
7570 * syscalls/netbsd.xml: Regenerate.
7571 * data-directory/Makefile.in: Register `netbsd.xml' in
7572 `SYSCALLS_FILES'.
7573
a55e30b5
SM
75742020-04-28 Simon Marchi <simon.marchi@efficios.com>
7575
7576 * syscalls/update-freebsd.sh: Add double quotes.
7577
2b2fbab8
TT
75782020-04-28 Tom Tromey <tom@tromey.com>
7579
7580 * NEWS: Update.
7581 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7582 (cmdpy_init): Allow class_tui.
7583
a65189c9
TV
75842020-04-28 Mark Williams <mark@myosotissp.com>
7585
7586 PR gdb/24480
7587 * dwarf2read.c: Add missing assingments to list_in_scope when
7588 start_symtab was already called.
7589
1b95cdb7
SM
75902020-04-28 Simon Marchi <simon.marchi@efficios.com>
7591
7592 PR gdb/25881
7593 * dwarf2/read.c (offset_map_type): Use
7594 gdb:hash_enum<sect_offset> as hash function.
7595
15cd93d0
TV
75962020-04-28 Tom de Vries <tdevries@suse.de>
7597
7598 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7599 with DW_AT_signature.
7600
1eb39914
SM
76012020-04-27 Simon Marchi <simon.marchi@efficios.com>
7602
7603 * configure.ac: Remove check for fs_base/gs_base in
7604 user_regs_struct.
7605 * configure: Re-generate.
7606 * config.in: Re-generate.
7607 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7608 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7609 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7610
991a3e2e
LM
76112020-04-27 Luis Machado <luis.machado@linaro.org>
7612
7613 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7614 problematic inline frame unwinding situation.
7615 * frame.c (frame_id_computed_p): New function.
7616 * frame.h (frame_id_computed_p): New prototype.
7617
361ba0e8
TT
76182020-04-26 Tom Tromey <tom@tromey.com>
7619
7620 * command.h (enum command_class) <class_pseudo>: Remove.
7621
bc3609fd
PW
76222020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7623
7624 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7625 and whitespace.
7626
b9771db7
KR
76272020-04-25 Kamil Rytarowski <n54@gmx.com>
7628
ec16513e
SM
7629 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7630 `PT_GET_PROCESS_STATE' block.
b9771db7 7631
7151c1af
TT
76322020-04-24 Tom Tromey <tom@tromey.com>
7633
7634 * symtab.h (symbol_get_demangled_name): Don't declare.
7635 * symtab.c (symbol_get_demangled_name): Remove.
7636 (general_symbol_info::natural_name)
7637 (general_symbol_info::demangled_name): Update.
7638
906bb4c5
TT
76392020-04-24 Tom Tromey <tom@tromey.com>
7640
7641 PR rust/25025:
7642 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7643
bcfe6157
TT
76442020-04-24 Tom Tromey <tom@tromey.com>
7645
7646 PR symtab/12707:
7647 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7648 exists.
7649 (new_symbol): Likewise.
7650 * compile/compile-object-load.c (get_out_value_type): Use
7651 symbol_matches_search_name.
7652
f049a313
TT
76532020-04-24 Tom Tromey <tom@tromey.com>
7654
7655 * dwarf2/read.c (add_partial_symbol): Do not call
7656 compute_and_set_names.
7657
76e288d1
TT
76582020-04-24 Tom Tromey <tom@tromey.com>
7659
7660 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7661 overload.
7662
2467f4f6
TT
76632020-04-24 Tom Tromey <tom@tromey.com>
7664
7665 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7666 (add_psymbol_to_list): New overload. Make old overload call new
7667 one.
7668 * psympriv.h (add_psymbol_to_list): New overload.
7669
e61108c9
TT
76702020-04-24 Tom Tromey <tom@tromey.com>
7671
7672 * dwarf2/read.c (partial_die_info::read) <case
7673 DW_AT_linkage_name>: Use value_as_string.
7674 (dwarf2_string_attr): Use value_as_string.
7675 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7676 method.
7677 * dwarf2/attribute.c (attribute::value_as_string): New method.
7678
8c87a452
TT
76792020-04-24 Tom Tromey <tom@tromey.com>
7680
7681 * symtab.c (general_symbol_info::natural_name)
7682 (general_symbol_info::demangled_name): Check for language_rust.
7683
787de330
TT
76842020-04-24 Tom Tromey <tom@tromey.com>
7685
7686 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7687 (dwarf2_physname): ... from here.
7688 (partial_die_info::read): Add Rust "{" hack.
7689
ff985671
TT
76902020-04-24 Tom Tromey <tom@tromey.com>
7691
7692 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7693 method.
7694 (symbol_set_demangled_name): Don't declare.
7695 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7696 symbol_set_demangled_name.
7697 (general_symbol_info::set_language)
7698 (general_symbol_info::compute_and_set_names): Update.
7699 * minsyms.c (minimal_symbol_reader::install): Update.
7700 * dwarf2/read.c (new_symbol): Update.
7701
1acda803
TT
77022020-04-24 Tom Tromey <tromey@adacore.com>
7703
7704 PR python/23662:
7705 * python/py-type.c (convert_field): Handle
7706 FIELD_LOC_KIND_DWARF_BLOCK.
7707 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7708 (typy_get_dynamic): Nw function.
7709 (type_object_getset): Add "dynamic".
7710 * NEWS: Add entry.
7711
d656f129
TT
77122020-04-24 Tom Tromey <tromey@adacore.com>
7713
7714 * ada-typeprint.c (print_choices, print_variant_part)
7715 (print_record_field_types_dynamic): New functions.
7716 (print_record_field_types): Use print_record_field_types_dynamic.
7717
7d79de9a
TT
77182020-04-24 Tom Tromey <tromey@adacore.com>
7719
7720 * dwarf2/read.c (handle_data_member_location): New overload.
7721 (dwarf2_add_field): Use it.
7722 (decode_locdesc): Add "computed" parameter. Update comment.
7723 * gdbtypes.c (is_dynamic_type_internal): Also look for
7724 FIELD_LOC_KIND_DWARF_BLOCK.
7725 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7726 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7727 virtual base classes.
7728 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7729 FIELD_LOC_KIND_DWARF_BLOCK.
7730
f8e89861
TT
77312020-04-24 Tom Tromey <tromey@adacore.com>
7732
7733 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7734 * gdbtypes.c (is_dynamic_type_internal): Check
7735 TYPE_HAS_DYNAMIC_LENGTH.
7736 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7737 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7738 New macros.
7739 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7740 constant.
7741
9c6a1327
TT
77422020-04-24 Tom Tromey <tromey@adacore.com>
7743
7744 * dwarf2/read.c (struct variant_field): Rewrite.
7745 (struct variant_part_builder): New.
7746 (struct nextfield): Remove "variant" field. Add "offset".
7747 (struct field_info): Add "current_variant_part" and
7748 "variant_parts".
7749 (alloc_discriminant_info): Remove.
7750 (alloc_rust_variant): New function.
7751 (quirk_rust_enum): Update.
7752 (dwarf2_add_field): Set "offset" member. Don't handle
7753 DW_TAG_variant_part.
7754 (offset_map_type): New typedef.
7755 (convert_variant_range, create_one_variant)
7756 (create_one_variant_part, create_variant_parts)
7757 (add_variant_property): New functions.
7758 (dwarf2_attach_fields_to_type): Call add_variant_property.
7759 (read_structure_type): Don't handle DW_TAG_variant_part.
7760 (handle_variant_part, handle_variant): New functions.
7761 (handle_struct_member_die): Use them.
7762 (process_structure_scope): Don't handle variant parts.
7763 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7764 (struct discriminant_info): Remove.
7765 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7766 (struct main_type) <flag_discriminated_union>: Remove.
7767 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7768 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7769 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7770 Update.
7771 * valops.c (value_union_variant): Remove.
7772 * value.h (value_union_variant): Don't declare.
7773
b249d2c2
TT
77742020-04-24 Tom Tromey <tromey@adacore.com>
7775
7776 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7777 (ada_value_primitive_packed_val): Update.
7778 * ada-valprint.c (ada_value_print_1): Update.
7779 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7780 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7781 just an address. Use evaluate_for_locexpr_baton.
7782 (dwarf2_evaluate_property): Update.
7783 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7784 array_view.
7785 * findvar.c (default_read_var_value): Update.
7786 * gdbtypes.c (compute_variant_fields_inner)
7787 (resolve_dynamic_type_internal): Update.
7788 (resolve_dynamic_type): Change type of valaddr parameter.
7789 * gdbtypes.h (resolve_dynamic_type): Update.
7790 * valarith.c (value_subscripted_rvalue): Update.
7791 * value.c (value_from_contents_and_address): Update.
7792
61122aa9
TT
77932020-04-24 Tom Tromey <tromey@adacore.com>
7794
7795 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7796 "push_initial_value" parameter.
7797 (dwarf2_evaluate_property): Likewise.
7798 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7799
ef83a141
TT
78002020-04-24 Tom Tromey <tromey@adacore.com>
7801
7802 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7803 (variant::matches, compute_variant_fields_recurse)
7804 (compute_variant_fields_inner, compute_variant_fields): New
7805 functions.
7806 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7807 Use resolved_type after type is made.
7808 (operator==): Add new cases.
7809 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7810 (struct discriminant_range, struct variant, struct variant_part):
7811 New.
7812 (union dynamic_prop_data) <variant_parts, original_type>: New
7813 members.
7814 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7815 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7816 constants.
7817 * value.c (unpack_bits_as_long): Now public.
7818 * value.h (unpack_bits_as_long): Declare.
7819
675127ec
TT
78202020-04-24 Tom Tromey <tromey@adacore.com>
7821
7822 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7823 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7824
9852ceef
HD
78252020-04-24 Hannes Domani <ssbssa@yahoo.de>
7826
7827 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7828
7632c6ce
KR
78292020-04-24 Kamil Rytarowski <n54@gmx.com>
7830
7831 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7832 (remove_fork_catchpoint, post_startup_inferior)
7833 (post_attach): Move...
7834 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7835 (remove_fork_catchpoint, post_startup_inferior)
7836 (post_attach): ...here.
7837 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7838 (remove_fork_catchpoint, post_startup_inferior)
7839 (post_attach): Move...
7840 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7841 (remove_fork_catchpoint, post_startup_inferior)
7842 (post_attach): ...here.
7843
7be2bb4f
TT
78442020-04-24 Tom Tromey <tromey@adacore.com>
7845
7846 * nat/windows-nat.h (struct windows_thread_info)
7847 <pc_adjusted>: New member.
7848 * windows-nat.c (windows_fetch_one_register): Check
7849 pc_adjusted.
7850 (windows_nat_target::get_windows_debug_event)
7851 (windows_nat_target::wait): Set pc_adjusted.
7852
f80cb3b4
TV
78532020-04-24 Tom de Vries <tdevries@suse.de>
7854
7855 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
7856 Run gdb-add-index inside temp dir.
7857
29514b87
TT
78582020-04-23 Tom Tromey <tromey@adacore.com>
7859
7860 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
7861 in loop.
7862
5939967b
LM
78632020-04-23 Luis Machado <luis.machado@linaro.org>
7864
7865 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7866 get_frame_register instead of gdbarch_unwind_pc.
7867
70bc38f5
TV
78682020-04-23 Tom de Vries <tdevries@suse.de>
7869
7870 * symtab.c (lookup_global_symbol): Prefer def over decl.
7871
de82891c
TV
78722020-04-23 Tom de Vries <tdevries@suse.de>
7873
7874 PR symtab/25807
7875 * block.c (best_symbol, better_symbol): Promote to external.
7876 * block.h (best_symbol, better_symbol): Declare.
7877 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
7878 decl.
7879
ecc6c606
TT
78802020-04-23 Tom Tromey <tromey@adacore.com>
7881
7882 PR ada/25837:
7883 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
7884 "const char *", not a "const std::string &".
7885 <name_and_matcher::operator==>: Update.
7886 * unittests/lookup_name_info-selftests.c: Change type of
7887 "result".
7888
740480b8
TT
78892020-04-23 Tom Tromey <tom@tromey.com>
7890
7891 * inferior.h (iterate_over_inferiors): Don't declare.
7892 * inferior.c (iterate_over_inferiors): Remove.
7893 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
7894 Remove.
7895 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
7896 use iterate_over_inferiors.
7897 (darwin_resume_inferior_it)
7898 (struct resume_inferior_threads_param)
7899 (darwin_resume_inferior_threads_it): Remove.
7900 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
7901
ae3ab1f0
TV
79022020-04-23 Tom de Vries <tdevries@suse.de>
7903
7904 * blockframe.c (find_pc_partial_function): Use
7905 find_pc_sect_compunit_symtab rather than
7906 objfile->sf->qf->find_pc_sect_compunit_symtab.
7907
317d2668
TV
79082020-04-22 Tom de Vries <tdevries@suse.de>
7909
7910 PR symtab/25764
7911 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7912 in psymtabs.
7913
eea9e357
TV
79142020-04-22 Tom de Vries <tdevries@suse.de>
7915
7916 PR symtab/25801
7917 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7918 symtabs.
7919
3d5afab3
TV
79202020-04-22 Tom de Vries <tdevries@suse.de>
7921
7922 PR symtab/25700
7923 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7924 CU if already created.
7925
d43b7a2d
TBA
79262020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7927
7928 * infrun.c (displaced_step_fixup): Switch to the event_thread
7929 before calling displaced_step_restore, not after.
7930
d89edf9b
MM
79312020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7932
7933 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7934 its inferior is not recorded by us.
7935 (record_btrace_target_open): Replace call to
7936 all_non_exited_threads () with call to current_inferior
7937 ()->non_exited_threads ().
7938 (record_btrace_target::stop_recording): Likewise.
7939 (record_btrace_target::close): Likewise.
7940 (record_btrace_target::wait): Likewise.
7941 (record_btrace_target::record_stop_replaying): Likewise.
7942
5897fd49
MM
79432020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7944
7945 * btrace.c (btrace_enable): Throw an error on double enables and
7946 when enabling recording fails.
7947 (btrace_disable): Throw an error if the thread is not recorded.
7948
1a476b6d
MM
79492020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7950
7951 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7952 request if we do not have a thread_info.
7953
4778a5f8
TV
79542020-04-21 Tom de Vries <tdevries@suse.de>
7955
7956 PR gdb/25471
7957 * thread.c
7958 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7959 exception in get_frame_id.
7960
0fa7617d
TT
79612020-04-20 Tom Tromey <tromey@adacore.com>
7962
7963 * python/python.c (struct gdbpy_event): Mark move constructor as
7964 noexcept.
7965 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7966 constructor as noexcept.
7967 * completer.h (struct completion_result): Mark move constructor as
7968 noexcept.
7969 * completer.c (completion_result::completion_result): Use
7970 initialization style. Don't call reset_match_list.
7971
ad23bda0
MS
79722020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7973
7974 * MAINTAINERS (Write After Approval): Add myself.
7975
45e1f031
TT
79762020-04-18 Tom Tromey <tom@tromey.com>
7977
7978 * windows-tdep.c (init_w32_command_list)
7979 (w32_prefix_command_valid): Restore.
7980 (_initialize_windows_tdep): Call init_w32_command_list.
7981
08feed99
TT
79822020-04-18 Tom Tromey <tom@tromey.com>
7983
7984 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7985 * value.c (value_fn_field): Update.
7986 * valops.c (find_function_in_inferior)
7987 (value_allocate_space_in_inferior): Update.
7988 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7989 Update.
7990 * tui/tui-source.c (tui_source_window::set_contents): Update.
7991 * symtab.c (lookup_global_or_static_symbol)
7992 (find_function_start_sal_1, skip_prologue_sal)
7993 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7994 * symmisc.c (dump_msymbols, dump_symtab_1)
7995 (maintenance_print_one_line_table): Update.
7996 * symfile.c (init_entry_point_info, section_is_mapped)
7997 (list_overlays_command, simple_read_overlay_table)
7998 (simple_overlay_update_1): Update.
7999 * stap-probe.c (handle_stap_probe): Update.
8000 * stabsread.c (dbx_init_float_type, define_symbol)
8001 (read_one_struct_field, read_enum_type, read_range_type): Update.
8002 * source.c (info_line_command): Update.
8003 * python/python.c (gdbpy_source_objfile_script)
8004 (gdbpy_execute_objfile_script): Update.
8005 * python/py-type.c (save_objfile_types): Update.
8006 * python/py-objfile.c (py_free_objfile): Update.
8007 * python/py-inferior.c (python_new_objfile): Update.
8008 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
8009 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
8010 (maintenance_check_psymtabs): Update.
8011 * printcmd.c (info_address_command): Update.
8012 * objfiles.h (struct objfile) <arch>: New method, from
8013 get_objfile_arch.
8014 (get_objfile_arch): Don't declare.
8015 * objfiles.c (get_objfile_arch): Remove.
8016 (filter_overlapping_sections): Update.
8017 * minsyms.c (msymbol_is_function): Update.
8018 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
8019 (output_nondebug_symbol): Update.
8020 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
8021 (mdebug_expand_psymtab): Update.
8022 * machoread.c (macho_add_oso_symfile): Update.
8023 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
8024 Update.
8025 * linux-fork.c (checkpoint_command): Update.
8026 * linespec.c (convert_linespec_to_sals): Update.
8027 * jit.c (finalize_symtab): Update.
8028 * infrun.c (insert_exception_resume_from_probe): Update.
8029 * ia64-tdep.c (ia64_find_unwind_table): Update.
8030 * hppa-tdep.c (internalize_unwinds): Update.
8031 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
8032 Update.
8033 * gcore.c (call_target_sbrk): Update.
8034 * elfread.c (record_minimal_symbol, elf_symtab_read)
8035 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
8036 (elf_gnu_ifunc_resolve_by_got): Update.
8037 * dwarf2/read.c (create_addrmap_from_index)
8038 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
8039 (read_debug_names_from_section)
8040 (process_psymtab_comp_unit_reader, add_partial_symbol)
8041 (add_partial_subprogram, process_full_comp_unit)
8042 (read_file_scope, read_func_scope, read_lexical_block_scope)
8043 (read_call_site_scope, dwarf2_ranges_read)
8044 (dwarf2_record_block_ranges, dwarf2_add_field)
8045 (mark_common_block_symbol_computed, read_tag_pointer_type)
8046 (read_tag_string_type, dwarf2_init_float_type)
8047 (dwarf2_init_complex_target_type, read_base_type)
8048 (partial_die_info::read, partial_die_info::read)
8049 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
8050 (dwarf2_fetch_die_loc_sect_off): Update.
8051 * dwarf2/loc.c (dwarf2_find_location_expression)
8052 (class dwarf_evaluate_loc_desc, rw_pieced_value)
8053 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
8054 (dwarf2_loc_desc_get_symbol_read_needs)
8055 (locexpr_describe_location_piece, locexpr_describe_location_1)
8056 (loclist_describe_location): Update.
8057 * dwarf2/index-write.c (write_debug_names): Update.
8058 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
8059 * dtrace-probe.c (dtrace_process_dof): Update.
8060 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
8061 (process_one_symbol): Update.
8062 * ctfread.c (ctf_init_float_type, read_base_type): Update.
8063 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
8064 (coff_read_enum_type): Update.
8065 * cli/cli-cmds.c (edit_command, list_command): Update.
8066 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
8067 * breakpoint.c (create_overlay_event_breakpoint)
8068 (create_longjmp_master_breakpoint)
8069 (create_std_terminate_master_breakpoint)
8070 (create_exception_master_breakpoint, get_sal_arch): Update.
8071 * block.c (block_gdbarch): Update.
8072 * annotate.c (annotate_source_line): Update.
8073
0743fc83
TT
80742020-04-17 Tom Tromey <tromey@adacore.com>
8075
8076 * auto-load.c (show_auto_load_cmd): Remove.
8077 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
8078 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
8079 (maintenance_print_arc_command): Remove.
8080 * tui/tui-win.c (tui_command): Remove.
8081 (tui_get_cmd_list): Use add_basic_prefix_cmd.
8082 * tui/tui-layout.c (tui_layout_command): Remove.
8083 (_initialize_tui_layout): Use add_basic_prefix_cmd.
8084 * python/python.c (user_set_python, user_show_python): Remove.
8085 (_initialize_python): Use add_basic_prefix_cmd,
8086 add_show_prefix_cmd.
8087 * guile/guile.c (set_guile_command, show_guile_command): Remove.
8088 (install_gdb_commands): Use add_basic_prefix_cmd,
8089 add_show_prefix_cmd.
8090 (info_guile_command): Remove.
8091 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
8092 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
8093 add_show_prefix_cmd.
8094 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
8095 Remove do_set and do_show parameters.
8096 * cli/cli-style.c (set_style, show_style): Remove.
8097 (_initialize_cli_style): Use add_basic_prefix_cmd,
8098 add_show_prefix_cmd.
8099 (cli_style_option::add_setshow_commands): Remove do_set and
8100 do_show parameters.
8101 (cli_style_option::add_setshow_commands): Use
8102 add_basic_prefix_cmd, add_show_prefix_cmd.
8103 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
8104 (set_style_name): Remove.
8105 * cli/cli-dump.c (dump_command, append_command): Remove.
8106 (srec_dump_command, ihex_dump_command, verilog_dump_command)
8107 (tekhex_dump_command, binary_dump_command)
8108 (binary_append_command): Remove.
8109 (_initialize_cli_dump): Use add_basic_prefix_cmd.
8110 * windows-tdep.c (w32_prefix_command_valid): Remove global.
8111 (init_w32_command_list): Remove; move into ...
8112 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
8113 * valprint.c (set_print, show_print, set_print_raw)
8114 (show_print_raw): Remove.
8115 (_initialize_valprint): Use add_basic_prefix_cmd,
8116 add_show_prefix_cmd.
8117 * typeprint.c (set_print_type, show_print_type): Remove.
8118 (_initialize_typeprint): Use add_basic_prefix_cmd,
8119 add_show_prefix_cmd.
8120 * record.c (set_record_command, show_record_command): Remove.
8121 (_initialize_record): Use add_basic_prefix_cmd,
8122 add_show_prefix_cmd.
8123 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
8124 add_show_prefix_cmd.
8125 (info_command, show_command, set_debug, show_debug): Remove.
8126 * top.h (set_history, show_history): Don't declare.
8127 * top.c (set_history, show_history): Remove.
8128 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
8129 (unset_tdesc_cmd): Remove.
8130 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
8131 add_show_prefix_cmd.
8132 * symtab.c (info_module_command): Remove.
8133 (_initialize_symtab): Use add_basic_prefix_cmd.
8134 * symfile.c (overlay_command): Remove.
8135 (_initialize_symfile): Use add_basic_prefix_cmd.
8136 * sparc64-tdep.c (info_adi_command): Remove.
8137 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
8138 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
8139 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
8140 add_show_prefix_cmd.
8141 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
8142 (_initialize_serial): Use add_basic_prefix_cmd,
8143 add_show_prefix_cmd.
8144 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
8145 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
8146 add_show_prefix_cmd.
8147 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
8148 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
8149 add_show_prefix_cmd.
8150 * riscv-tdep.c (show_riscv_command, set_riscv_command)
8151 (show_debug_riscv_command, set_debug_riscv_command): Remove.
8152 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
8153 add_show_prefix_cmd.
8154 * remote.c (remote_command, set_remote_cmd): Remove.
8155 (_initialize_remote): Use add_basic_prefix_cmd.
8156 * record-full.c (set_record_full_command)
8157 (show_record_full_command): Remove.
8158 (_initialize_record_full): Use add_basic_prefix_cmd,
8159 add_show_prefix_cmd.
8160 * record-btrace.c (cmd_set_record_btrace)
8161 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
8162 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
8163 (cmd_show_record_btrace_pt): Remove.
8164 (_initialize_record_btrace): Use add_basic_prefix_cmd,
8165 add_show_prefix_cmd.
8166 * ravenscar-thread.c (set_ravenscar_command)
8167 (show_ravenscar_command): Remove.
8168 (_initialize_ravenscar): Use add_basic_prefix_cmd,
8169 add_show_prefix_cmd.
8170 * mips-tdep.c (show_mips_command, set_mips_command)
8171 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
8172 add_show_prefix_cmd.
8173 * maint.c (maintenance_command, maintenance_info_command)
8174 (maintenance_check_command, maintenance_print_command)
8175 (maintenance_set_cmd, maintenance_show_cmd): Remove.
8176 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
8177 add_show_prefix_cmd.
8178 (show_per_command_cmd): Remove.
8179 * maint-test-settings.c (maintenance_set_test_settings_cmd):
8180 Remove.
8181 (maintenance_show_test_settings_cmd): Remove.
8182 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
8183 add_show_prefix_cmd.
8184 * maint-test-options.c (maintenance_test_options_command):
8185 Remove.
8186 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
8187 * macrocmd.c (macro_command): Remove
8188 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8189 * language.c (set_check, show_check): Remove.
8190 (_initialize_language): Use add_basic_prefix_cmd,
8191 add_show_prefix_cmd.
8192 * infcmd.c (unset_command): Remove.
8193 (_initialize_infcmd): Use add_basic_prefix_cmd.
8194 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8195 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8196 add_show_prefix_cmd.
8197 * go32-nat.c (go32_info_dos_command): Remove.
8198 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8199 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8200 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8201 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8202 (_initialize_frame): Use add_basic_prefix_cmd,
8203 add_show_prefix_cmd.
8204 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8205 (_initialize_dcache): Use add_basic_prefix_cmd,
8206 add_show_prefix_cmd.
8207 * cp-support.c (maint_cplus_command): Remove.
8208 (_initialize_cp_support): Use add_basic_prefix_cmd.
8209 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8210 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8211 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8212 add_basic_prefix_cmd, add_show_prefix_cmd.
8213 * breakpoint.c (save_command): Remove.
8214 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8215 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8216 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8217 add_show_prefix_cmd.
8218 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8219 (set_ada_command, show_ada_command): Remove.
8220 (_initialize_ada_language): Use add_basic_prefix_cmd,
8221 add_show_prefix_cmd.
8222 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8223
3557f442
KR
82242020-04-16 Kamil Rytarowski <n54@gmx.com>
8225
8226 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8227 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8228
16197208
SM
82292020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8230
8231 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8232 warning messages.
8233
00ac85d3
SM
82342020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8235
8236 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8237 import table is not at beginning of .idata section.
8238
381ce63f
PA
82392020-04-16 Pedro Alves <palves@redhat.com>
8240
8241 * inferior.c (delete_inferior): Use delete operator directly
8242 instead of delete_program_space.
8243 * progspace.c (add_program_space): New, factored out from
8244 program_space::program_space.
8245 (remove_program_space): New, factored out from
8246 delete_program_space.
8247 (program_space::program_space): Remove intro comment. Rewrite.
8248 (program_space::~program_space): Remove intro comment. Call
8249 remove_program_space.
8250 (delete_program_space): Delete.
8251 * progspace.h (program_space::program_space): Make explicit. Move
8252 intro comment here, adjusted.
8253 (program_space::~program_space): Move intro comment here,
8254 adjusted.
8255 (delete_program_space): Remove.
8256
a010605f
TT
82572020-04-16 Tom Tromey <tromey@adacore.com>
8258
8259 * windows-nat.c (windows_nat::handle_access_violation): New
8260 function.
8261 * nat/windows-nat.h (handle_access_violation): Declare.
8262 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8263 windows-nat.c. Call handle_access_violation.
8264
efba5c23
TV
82652020-04-16 Tom de Vries <tdevries@suse.de>
8266
8267 PR symtab/25791
8268 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8269 CUs without psymtab.
8270
97ed802d
KB
82712020-04-16 Kevin Buettner <kevinb@redhat.com>
8272
8273 * python/python.c (do_start_initialization): Don't call
8274 PyEval_InitThreads for Python 3.9 and beyond.
8275
c7d64809
KR
82762020-04-15 Kamil Rytarowski <n54@gmx.com>
8277
8278 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8279 thread functions.
8280 (obsd_nat_target::wait): Likewise.
8281
ce127a96
TT
82822020-04-15 Tom Tromey <tromey@adacore.com>
8283
8284 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8285 (DEBUG_EXCEPT): Use debug_printf.
8286
99f1bc6a
AB
82872020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8288
8289 * completer.c (class completion_tracker::completion_hash_entry)
8290 <hash_name>: New member function.
8291 (completion_tracker::discard_completions): New callback to hash a
8292 completion_hash_entry, pass this to htab_create_alloc.
8293
a0e9b532
JT
82942016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8295
8296 * windows-nat.c (windows_make_so): Warn rather than stopping with
8297 an error if realpath() fails.
8298
06ca5dd4
KR
82992020-04-14 Kamil Rytarowski <n54@gmx.com>
8300
8301 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8302 (nbsd_nat_target::info_proc): Add do_status.
8303
194d088f
TV
83042020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8305 Tom de Vries <tdevries@suse.de>
8306
8307 PR symtab/25718
8308 * psympriv.h (struct partial_symtab::read_symtab)
8309 (struct partial_symtab::expand_psymtab)
8310 (struct partial_symtab::read_dependencies): Update comments.
8311 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8312 read_symtab for includer.
8313 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8314 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8315 (struct dwarf2_include_psymtab::m_readin): Remove.
8316 (struct dwarf2_include_psymtab::includer): New member function.
8317 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8318
c1a66c06
TV
83192020-04-14 Tom de Vries <tdevries@suse.de>
8320
8321 PR symtab/25720
8322 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8323 with NULL symbol_matcher and lookup_name.
8324 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8325 and lookup_name.
8326 * dwarf2/read.c (dw2_expand_symtabs_matching)
8327 (dw2_debug_names_expand_symtabs_matching): Same.
8328 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8329 Make lookup_name a pointer. Update comment.
8330 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8331 lookup_name being a pointer.
8332 * symfile.c (expand_symtabs_matching): Same.
8333 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8334 * linespec.c (iterate_over_all_matching_symtabs): Same.
8335
400b5eca
TT
83362020-04-13 Tom Tromey <tom@tromey.com>
8337
8338 * run-on-main-thread.c: Update include.
8339 * unittests/main-thread-selftests.c: Update include.
8340 * tui/tui-win.c: Update include.
8341 * tui/tui-io.c: Update include.
8342 * tui/tui-interp.c: Update include.
8343 * tui/tui-hooks.c: Update include.
8344 * top.h: Update include.
8345 * top.c: Update include.
8346 * ser-base.c: Update include.
8347 * remote.c: Update include.
8348 * remote-notif.c: Update include.
8349 * remote-fileio.c: Update include.
8350 * record-full.c: Update include.
8351 * record-btrace.c: Update include.
8352 * python/python.c: Update include.
8353 * posix-hdep.c: Update include.
8354 * mingw-hdep.c: Update include.
8355 * mi/mi-main.c: Update include.
8356 * mi/mi-interp.c: Update include.
8357 * main.c: Update include.
8358 * linux-nat.c: Update include.
8359 * interps.c: Update include.
8360 * infrun.c: Update include.
8361 * inf-loop.c: Update include.
8362 * event-top.c: Update include.
8363 * event-loop.c: Move to ../gdbsupport/.
8364 * event-loop.h: Move to ../gdbsupport/.
8365 * async-event.h: Update include.
8366 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8367
93b54c8e
TT
83682020-04-13 Tom Tromey <tom@tromey.com>
8369
8370 * tui/tui-win.c: Include async-event.h.
8371 * remote.c: Include async-event.h.
8372 * remote-notif.c: Include async-event.h.
8373 * record-full.c: Include async-event.h.
8374 * record-btrace.c: Include async-event.h.
8375 * infrun.c: Include async-event.h.
8376 * event-top.c: Include async-event.h.
8377 * event-loop.h: Move some declarations to async-event.h.
8378 * event-loop.c: Don't include ser-event.h or top.h. Move some
8379 code to async-event.c.
8380 * async-event.h: New file.
8381 * async-event.c: New file.
8382 * Makefile.in (COMMON_SFILES): Add async-event.c.
8383 (HFILES_NO_SRCDIR): Add async-event.h.
8384
c1cd3163
TT
83852020-04-13 Tom Tromey <tom@tromey.com>
8386
8387 * utils.c (flush_streams): New function.
8388 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8389
29f2bf4f
TT
83902020-04-13 Tom Tromey <tom@tromey.com>
8391
8392 * event-loop.c (handle_file_event): Use warning, not
8393 printf_unfiltered.
8394
98029d02
TT
83952020-04-13 Tom Tromey <tom@tromey.com>
8396
8397 * event-loop.c: Include <chrono>.
8398
06cc9596
TT
83992020-04-13 Tom Tromey <tom@tromey.com>
8400
8401 * gdb_select.h: Move to ../gdbsupport/.
8402 * event-loop.c: Update include path.
8403 * top.c: Update include path.
8404 * ser-base.c: Update include path.
8405 * ui-file.c: Update include path.
8406 * ser-tcp.c: Update include path.
8407 * guile/scm-ports.c: Update include path.
8408 * posix-hdep.c: Update include path.
8409 * ser-unix.c: Update include path.
8410 * gdb_usleep.c: Update include path.
8411 * mingw-hdep.c: Update include path.
8412 * inflow.c: Update include path.
8413 * infrun.c: Update include path.
8414 * event-top.c: Update include path.
8415
8ae8e197
TT
84162020-04-13 Tom Tromey <tom@tromey.com>
8417
8418 * configure: Rebuild.
8419 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8420
58cf28e8
TT
84212020-04-13 Tom Tromey <tom@tromey.com>
8422
8423 * event-loop.h (start_event_loop): Don't declare.
8424 * event-loop.c (start_event_loop): Move...
8425 * main.c (start_event_loop): ...here. Now static.
8426
b7f999ae
SDJ
84272020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8428
8429 * MAINTAINERS: Update my email address.
8430
1085dfd4
KR
84312020-04-12 Kamil Rytarowski <n54@gmx.com>
8432
8433 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8434 IP_ALL.
8435
49d1d1f5
KR
84362020-04-12 Kamil Rytarowski <n54@gmx.com>
8437
8438 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 8439 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 8440
b4848d2a
KR
84412020-04-12 Kamil Rytarowski <n54@gmx.com>
8442
8443 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 8444 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 8445
51c133d5
KR
84462020-04-12 Kamil Rytarowski <n54@gmx.com>
8447
8448 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8449
54b8cbd0
KR
84502020-04-11 Kamil Rytarowski <n54@gmx.com>
8451
8452 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8453 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8454 (nbsd_nat_target::info_proc): New functions.
8455 * nbsd-nat.c (kinfo_get_vmmap): New function.
8456 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8457 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8458 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8459 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8460 functions.
8461 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8462 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8463 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8464 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8465 (KINFO_VME_FLAG_GROWS_DOWN): New.
8466
cf83625d
AS
84672020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8468
8469 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8470 bit shift.
8471
0c4311ab
TT
84722020-04-10 Tom Tromey <tromey@adacore.com>
8473
8474 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8475
3e65b3e9
TT
84762020-04-10 Tom Tromey <tromey@adacore.com>
8477
8478 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8479 separate debug files.
8480
13302e95
HD
84812020-04-10 Hannes Domani <ssbssa@yahoo.de>
8482
8483 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8484 Move to...
8485 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8486 ... here.
8487 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8488 Check for STATUS_WX86_BREAKPOINT.
8489 (windows_nat_target::wait): Same.
8490
bdfc1e8a
TV
84912020-04-10 Tom de Vries <tdevries@suse.de>
8492
8493 PR cli/25808
8494 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8495
f4460aec
SM
84962020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8497
8498 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8499 (Write After Approval): Remove Tom de Vries.
8500
a25198bb
BE
85012020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8502
8503 revert partially:
8504 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8505
aac66a4c
SM
8506 * buildsym.c (record_line): Fix undefined behavior and preserve
8507 lines at eof.
a25198bb 8508
206c98a6
KR
85092020-04-09 Kamil Rytarowski <n54@gmx.com>
8510
8511 * auxv.h (svr4_auxv_parse): New.
8512 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8513 and generic_auxv_parse.
8514 (svr4_auxv_parse): Add.
8515 * obsd-tdep.c: Include "auxv.h".
8516 (obsd_auxv_parse): Remove.
8517 (obsd_init_abi): Remove comment.
8518 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8519 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8520 * nbsd-tdep.c: Include "auxv.h".
8521 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8522
71fbdbaf
TT
85232020-04-08 Tom Tromey <tromey@adacore.com>
8524
8525 * nat/windows-nat.h (last_wait_event): Don't declare.
8526 (wait_for_debug_event): Update comment.
8527 * nat/windows-nat.c (last_wait_event): Now static.
8528
2c1d95e8
TT
85292020-04-08 Tom Tromey <tromey@adacore.com>
8530
8531 * windows-nat.c (wait_for_debug_event): Move to
8532 nat/windows-nat.c.
8533 * nat/windows-nat.h (wait_for_debug_event): Declare.
8534 * nat/windows-nat.c (wait_for_debug_event): Move from
8535 windows-nat.c. No longer static.
8536
d2977bc4
TT
85372020-04-08 Tom Tromey <tromey@adacore.com>
8538
8539 * windows-nat.c (get_windows_debug_event): Use
8540 fetch_pending_stop.
8541 * nat/windows-nat.h (fetch_pending_stop): Declare.
8542 * nat/windows-nat.c (fetch_pending_stop): New function.
8543
e758e19c
TT
85442020-04-08 Tom Tromey <tromey@adacore.com>
8545
8546 * windows-nat.c (windows_continue): Use matching_pending_stop and
8547 continue_last_debug_event.
8548 * nat/windows-nat.h (matching_pending_stop)
8549 (continue_last_debug_event): Declare.
8550 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8551 (matching_pending_stop, continue_last_debug_event): New
8552 functions.
8553
8d30e395
TT
85542020-04-08 Tom Tromey <tromey@adacore.com>
8555
8556 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8557 (handle_exception_result): Move to nat/windows-nat.h.
8558 (DEBUG_EXCEPTION_SIMPLE): Remove.
8559 (windows_nat::handle_ms_vc_exception): New function.
8560 (handle_exception): Move to nat/windows-nat.c.
8561 (get_windows_debug_event): Update.
8562 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8563 nat/windows-nat.c.
8564 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8565 (handle_exception_result): Move from windows-nat.c.
8566 (handle_exception): Declare.
8567 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8568 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8569 windows-nat.c.
8570
29de418d
TT
85712020-04-08 Tom Tromey <tromey@adacore.com>
8572
8573 * windows-nat.c (exception_count, event_count): Remove.
8574 (handle_exception, get_windows_debug_event)
8575 (do_initial_windows_stuff): Update.
8576
a816ba18
TT
85772020-04-08 Tom Tromey <tromey@adacore.com>
8578
8579 * windows-nat.c (windows_nat::handle_load_dll)
8580 (windows_nat::handle_unload_dll): Rename. No longer static.
8581 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8582 Declare.
8583
a00caa12
TT
85842020-04-08 Tom Tromey <tromey@adacore.com>
8585
8586 * complaints.h (stop_whining): Declare at top-level.
8587 (complaint): Don't declare stop_whining.
8588
d41b524f
TT
85892020-04-08 Tom Tromey <tromey@adacore.com>
8590
8591 * windows-nat.c (windows_nat::handle_output_debug_string):
8592 Rename. No longer static.
8593 * nat/windows-nat.h (handle_output_debug_string): Declare.
8594
3c76026d
TT
85952020-04-08 Tom Tromey <tromey@adacore.com>
8596
8597 * windows-nat.c (current_process_handle, current_process_id)
8598 (main_thread_id, last_sig, current_event, last_wait_event)
8599 (current_windows_thread, desired_stop_thread_id, pending_stops)
8600 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8601 (display_selectors, fake_create_process)
8602 (get_windows_debug_event): Update.
8603 * nat/windows-nat.h (current_process_handle, current_process_id)
8604 (main_thread_id, last_sig, current_event, last_wait_event)
8605 (current_windows_thread, desired_stop_thread_id, pending_stops)
8606 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8607 * nat/windows-nat.c (current_process_handle, current_process_id)
8608 (main_thread_id, last_sig, current_event, last_wait_event)
8609 (current_windows_thread, desired_stop_thread_id, pending_stops)
8610 (siginfo_er): New globals. Move from windows-nat.c.
8611
9d8679cc
TT
86122020-04-08 Tom Tromey <tromey@adacore.com>
8613
8614 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8615 (handle_load_dll): Update.
8616 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8617
28688adf
TT
86182020-04-08 Tom Tromey <tromey@adacore.com>
8619
8620 * windows-nat.c (enum thread_disposition_type): Move to
8621 nat/windows-nat.h.
8622 (windows_nat::thread_rec): Rename from thread_rec. No longer
8623 static.
8624 (windows_add_thread, windows_nat_target::fetch_registers)
8625 (windows_nat_target::store_registers, handle_exception)
8626 (windows_nat_target::resume, get_windows_debug_event)
8627 (windows_nat_target::get_tib_address)
8628 (windows_nat_target::thread_name)
8629 (windows_nat_target::thread_alive): Update.
8630 * nat/windows-nat.h (enum thread_disposition_type): Move from
8631 windows-nat.c.
8632 (thread_rec): Declare.
8633
4834dad0
TT
86342020-04-08 Tom Tromey <tromey@adacore.com>
8635
8636 * windows-nat.c: Add "using namespace".
8637 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8638 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8639
65bafd5b
TT
86402020-04-08 Tom Tromey <tromey@adacore.com>
8641
8642 * nat/windows-nat.h (struct windows_thread_info): Declare
8643 destructor.
8644 * nat/windows-nat.c (~windows_thread_info): New.
8645
0a4afda3
TT
86462020-04-08 Tom Tromey <tromey@adacore.com>
8647
8648 PR gdb/22992
8649 * windows-nat.c (current_event): Update comment.
8650 (last_wait_event, desired_stop_thread_id): New globals.
8651 (struct pending_stop): New.
8652 (pending_stops): New global.
8653 (windows_nat_target) <stopped_by_sw_breakpoint>
8654 <supports_stopped_by_sw_breakpoint>: New methods.
8655 (windows_fetch_one_register): Add assertions. Adjust PC.
8656 (windows_continue): Handle pending stops. Suspend other threads
8657 when stepping. Use last_wait_event
8658 (wait_for_debug_event): New function.
8659 (get_windows_debug_event): Use wait_for_debug_event. Handle
8660 pending stops. Queue spurious stops.
8661 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8662 (windows_nat_target::kill): Use wait_for_debug_event.
8663 * nat/windows-nat.h (struct windows_thread_info)
8664 <stopped_at_software_breakpoint>: New field.
8665 * nat/windows-nat.c (windows_thread_info::resume): Clear
8666 stopped_at_software_breakpoint.
8667
8e61ebec
TT
86682020-04-08 Tom Tromey <tromey@adacore.com>
8669
8670 * windows-nat.c (enum thread_disposition_type): New.
8671 (thread_rec): Replace "get_context" parameter with "disposition";
8672 change type.
8673 (windows_add_thread, windows_nat_target::fetch_registers)
8674 (windows_nat_target::store_registers, handle_exception)
8675 (windows_nat_target::resume, get_windows_debug_event)
8676 (windows_nat_target::get_tib_address)
8677 (windows_nat_target::thread_name)
8678 (windows_nat_target::thread_alive): Update.
8679
98a03287
TT
86802020-04-08 Tom Tromey <tromey@adacore.com>
8681
8682 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8683 (windows_continue): Use windows_continue::resume.
8684 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8685 resume>: Declare new methods.
8686 * nat/windows-nat.c: New file.
8687 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8688
7c7411bc
TT
86892020-04-08 Tom Tromey <tromey@adacore.com>
8690
8691 * windows-nat.c (windows_add_thread, windows_delete_thread)
8692 (windows_nat_target::fetch_registers)
8693 (windows_nat_target::store_registers, fake_create_process)
8694 (windows_nat_target::resume, windows_nat_target::resume)
8695 (get_windows_debug_event, windows_nat_target::wait)
8696 (windows_nat_target::pid_to_str)
8697 (windows_nat_target::get_tib_address)
8698 (windows_nat_target::get_ada_task_ptid)
8699 (windows_nat_target::thread_name)
8700 (windows_nat_target::thread_alive): Use lwp, not tid.
8701
2950fdf7
TT
87022020-04-08 Tom Tromey <tromey@adacore.com>
8703
8704 * windows-nat.c (handle_exception)
8705 (windows_nat_target::thread_name): Update.
8706 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8707 <name>: Now unique_xmalloc_ptr.
8708
62fe396b
TT
87092020-04-08 Tom Tromey <tromey@adacore.com>
8710
8711 * windows-nat.c (thread_rec)
8712 (windows_nat_target::fetch_registers): Update.
8713 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8714 Update comment.
8715 <debug_registers_changed, reload_context>: Now bool.
8716
e9534bd2
TT
87172020-04-08 Tom Tromey <tromey@adacore.com>
8718
8719 * windows-nat.c (windows_add_thread): Use new.
8720 (windows_init_thread_list, windows_delete_thread): Use delete.
8721 (get_windows_debug_event): Update.
8722 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8723 destructor, and initializers.
8724
ae1f8880
TT
87252020-04-08 Tom Tromey <tromey@adacore.com>
8726
8727 * windows-nat.c (struct windows_thread_info): Remove.
8728 * nat/windows-nat.h: New file.
8729
55a1e039
TT
87302020-04-08 Tom Tromey <tromey@adacore.com>
8731
8732 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8733 (thread_rec, windows_add_thread, windows_delete_thread)
8734 (windows_continue): Update.
8735
93366324
TT
87362020-04-08 Tom Tromey <tromey@adacore.com>
8737
8738 * windows-nat.c (struct windows_thread_info): Remove typedef.
8739 (thread_head): Remove.
8740 (thread_list): New global.
8741 (thread_rec, windows_add_thread, windows_init_thread_list)
8742 (windows_delete_thread, windows_continue): Update.
8743
0f2265e2
SM
87442020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8745
8746 * windows-tdep.h (windows_init_abi): Add comment.
8747 (cygwin_init_abi): New declaration.
8748 * windows-tdep.c: Split signal enumeration in two, one for
8749 Windows and one for Cygwin.
8750 (windows_gdb_signal_to_target): Only deal with signal of the
8751 Windows OS ABI.
8752 (cygwin_gdb_signal_to_target): New function.
8753 (windows_init_abi): Rename to windows_init_abi_common, don't set
8754 gdb_signal_to_target gdbarch method. Add new new function with
8755 this name.
8756 (cygwin_init_abi): New function.
8757 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8758 comment. Don't call windows_init_abi.
8759 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8760 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8761 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8762 i386_windows_init_abi_common, don't call windows_init_abi. Add
8763 a new function of this name.
8764 (i386_cygwin_init_abi): New function.
8765 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8766 OS ABI Cygwin.
8767
3810f182
SM
87682020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8769
8770 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8771 parameter.c.
8772 (dwarf2_read_gdb_index): Update.
8773
063f8e80
KR
87742020-04-07 Kamil Rytarowski <n54@gmx.com>
8775
8776 * nbsd-tdep.c: Include "objfiles.h".
8777 (nbsd_skip_solib_resolver): New.
8778 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8779
85a9510c 87802020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8781
8782 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8783 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8784 with DW_LLE_base_addressx are being emitted in DWARFv5.
8785 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8786 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8787 unsigned integer.
8788
9fc3eaae 87892020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8790
8791 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8792 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8793 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8794 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8795 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8796 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8797 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8798
8799
41144253 88002020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8801
8802 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8803 (read_loclist_index): New function definition.
8804 (lookup_loclist_base): New function definition.
8805 (read_loclist_header): New function definition.
8806 (dwarf2_cu): Add loclist_base and loclist_header field.
8807 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8808 (read_full_die_1): Read the value of DW_AT_loclists_base.
8809 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8810 (read_attribute_value): Handle DW_FORM_loclistx.
8811 (skip_one_die): Handle DW_FORM_loclistx.
8812 (loclist_header): New structure declaration.
8813 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8814
9f4e76a4
SM
88152020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8816
8817 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8818 constructor. Remove `addr` parameter from other constructor and
8819 add `per_cu` parameter.
8820 * dwarf2/read.c (create_partial_symtab): Update.
8821
25c11aca
TV
88222020-04-07 Tom de Vries <tdevries@suse.de>
8823
8824 PR symtab/25796
8825 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8826 (partial_die_info::fixup): Inherit has_const_value.
8827
5707e24b
TV
88282020-04-07 Tom de Vries <tdevries@suse.de>
8829
8830 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8831 symbols without address.
8832
05f00e22
KR
88332020-04-06 Kamil Rytarowski <n54@gmx.com>
8834
8835 * nbsd-nat.h (struct thread_info): Add forward declaration.
8836 (nbsd_nat_target::thread_alive): Add.
8837 (nbsd_nat_target::thread_name): Likewise.
8838 (nbsd_nat_target::update_thread_list): Likewise.
8839 (update_thread_list::post_attach): Likewise.
8840 (post_attach::pid_to_str): Likewise.
8841 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8842 (nbsd_thread_lister): Add.
8843 (nbsd_nat_target::thread_alive): Likewise.
8844 (nbsd_nat_target::thread_name): Likewise.
8845 (nbsd_add_threads): Likewise.
8846 (update_thread_list::post_attach): Likewise.
8847 (nbsd_nat_target::update_thread_list): Likewise.
8848 (post_attach::pid_to_str): Likewise.
8849
6ee448cc
TT
88502020-04-06 Tom Tromey <tromey@adacore.com>
8851
8852 * ada-valprint.c (print_variant_part): Extract the variant field.
8853 (print_field_values): Use the field as the outer value when
8854 recursing.
8855
dea34e8c
TT
88562020-04-06 Tom Tromey <tromey@adacore.com>
8857
8858 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
8859 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
8860 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
8861 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
8862 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
8863
93689ce9
TT
88642020-04-06 Tom Tromey <tromey@adacore.com>
8865
8866 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8867 TYPE_CODE_ERROR.
8868
79743962
KR
88692020-04-06 Kamil Rytarowski <n54@gmx.com>
8870
8871 * nbsd-tdep.c: Include "gdbarch.h".
8872 Define enum with NetBSD signal numbers.
8873 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
8874 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
8875 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
8876 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
8877 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
8878 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
8879 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
8880 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8881 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
8882 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8883 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8884 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
8885
9e7c9a03
HD
88862020-04-03 Hannes Domani <ssbssa@yahoo.de>
8887
8888 PR gdb/25325
8889 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
8890
d9e49b61
TT
88912020-04-03 Tom Tromey <tromey@adacore.com>
8892
8893 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
8894 Read constant block.
8895
e0fc5c3f
SM
88962020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8897
8898 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
8899 (gdb_bfd_get_full_section_contents): New declaration.
8900 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
8901 * windows-tdep.c (is_linked_with_cygwin_dll): Use
8902 gdb_bfd_get_full_section_contents.
8903
e2ff18a0
SM
89042020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8905
8906 * exec.c (build_section_table): Replace internal_error with
8907 gdb_assert.
8908 (section_table_xfer_memory_partial): Likewise.
8909 * mdebugread.c (parse_partial_symbols): Likewise.
8910 * psymtab.c (lookup_partial_symbol): Likewise.
8911 * utils.c (wrap_here): Likewise.
8912
0830d301
TT
89132020-04-02 Tom Tromey <tromey@adacore.com>
8914
8915 * f-lang.c (build_fortran_types): Use arch_type to initialize
8916 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8917
e7da7f8f
TT
89182020-04-02 Tom Tromey <tromey@adacore.com>
8919
8920 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8921 of attributes.
8922
c90d28ac
AB
89232020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8924 Bernd Edlinger <bernd.edlinger@hotmail.de>
8925 Tom Tromey <tromey@adacore.com>
8926
8927 * buildsym.c (buildsym_compunit::record_line): Remove
8928 deduplication code.
8929
1aa98955
TV
89302020-04-02 Tom de Vries <tdevries@suse.de>
8931
8932 PR ada/24671
8933 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8934
d3214198
TV
89352020-04-02 Tom de Vries <tdevries@suse.de>
8936
8937 * dwarf2/read.c (dwarf2_gdb_index_functions,
8938 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8939 NULL.
8940 * psymtab.c (psym_lookup_global_symbol_language): New function.
8941 (psym_functions): Init psym_lookup_global_symbol_language with
8942 psym_lookup_global_symbol_language.
8943 * symfile-debug.c (debug_sym_quick_functions): Init
8944 lookup_global_symbol_language with NULL.
8945 * symfile.c (set_initial_language): Remove fixme comment.
8946 * symfile.h (struct quick_symbol_functions): Add
8947 lookup_global_symbol_language.
8948 * symtab.c (find_quick_global_symbol_language): New function.
8949 (find_main_name): Use find_quick_global_symbol_language.
8950
2836752f
SM
89512020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8952
8953 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8954
64dc2d4b
BE
89552020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8956
8957 * buildsym.c (record_line): Fix undefined behavior and preserve
8958 lines at eof.
8959
bbe3dc41
BE
89602020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8961
8962 * buildsym.c (record_line): Fix the resizing condition.
8963
6b4a335b
TT
89642020-04-01 Tom Tromey <tom@tromey.com>
8965
8966 * value.h (value_literal_complex): Add comment.
8967 * valops.c (value_literal_complex): Refer to value.h.
8968
3638a098
TT
89692020-04-01 Tom Tromey <tom@tromey.com>
8970
8971 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8972 (scalar_type): New rule, from typebase.
8973 (typebase): Use scalar_type. Recognize complex types.
8974 (field_name): Handle FLOAT_KEYWORD.
8975 (ident_tokens): Add _Complex and __complex__.
8976
c34e8714
TT
89772020-04-01 Tom Tromey <tom@tromey.com>
8978
8979 PR exp/25299:
8980 * valarith.c (promotion_type, complex_binop): New functions.
8981 (scalar_binop): Handle complex numbers. Use promotion_type.
8982 (value_pos, value_neg, value_complement): Handle complex numbers.
8983
fa649bb7
TT
89842020-04-01 Tom Tromey <tom@tromey.com>
8985
8986 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8987 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8988 (parse_number): Handle complex numbers.
8989
981c08ce
TT
89902020-04-01 Tom Tromey <tom@tromey.com>
8991
8992 * c-valprint.c (c_decorations): Change complex suffix to "i".
8993
4c99290d
TT
89942020-04-01 Tom Tromey <tom@tromey.com>
8995
8996 * valprint.c (generic_value_print_complex): Use accessors.
8997 * value.h (value_real_part, value_imaginary_part): Declare.
8998 * valops.c (value_real_part, value_imaginary_part): New
8999 functions.
9000 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
9001
5b930b45
TT
90022020-04-01 Tom Tromey <tom@tromey.com>
9003
9004 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
9005 (read_range_type): Update.
9006 * mdebugread.c (basic_type): Update.
9007 * go-lang.c (build_go_types): Use init_complex_type.
9008 * gdbtypes.h (struct main_type) <complex_type>: New member.
9009 (init_complex_type): Update.
9010 (arch_complex_type): Don't declare.
9011 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
9012 Make name if none given. Use alloc_type_copy. Look for cached
9013 complex type.
9014 (arch_complex_type): Remove.
9015 (gdbtypes_post_init): Use init_complex_type.
9016 * f-lang.c (build_fortran_types): Use init_complex_type.
9017 * dwarf2/read.c (read_base_type): Update.
9018 * d-lang.c (build_d_types): Use init_complex_type.
9019 * ctfread.c (read_base_type): Update.
9020
53cccef1
TBA
90212020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9022
9023 * infrun.c (stop_all_threads): Update assertion, plus when
9024 stopping threads, take into account that we might be trying
9025 to stop an all-stop target.
9026 (stop_waiting): Call 'stop_all_threads' if there exists a
9027 non-stop target.
9028
a0714d30
TBA
90292020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9030
9031 * target.h (exists_non_stop_target): New function declaration.
9032 * target.c (exists_non_stop_target): New function.
9033
60e22c1e
HD
90342020-04-01 Hannes Domani <ssbssa@yahoo.de>
9035
9036 PR gdb/24789
9037 * eval.c (is_integral_or_integral_reference): New function.
9038 (evaluate_subexp_standard): Allow integer references in
9039 pointer arithmetic.
9040
e139a727
TBA
90412020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9042
9043 * remote.c (remote_target::remote_parse_stop_reply): Remove the
9044 check for no ptid in the stop reply when the target is non-stop.
9045
e0802d59
TT
90462020-04-01 Tom Tromey <tromey@adacore.com>
9047
9048 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
9049 "name" parameter to rvalue reference. Initialize m_name_holder.
9050 <lookup_name_info>: New overloads.
9051 <name>: Return gdb::string_view.
9052 <c_str>: New method.
9053 <make_ignore_params>: Update.
9054 <search_name_hash>: Update.
9055 <language_lookup_name>: Return const char *.
9056 <m_name>: Change type.
9057 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
9058 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
9059 (lookup_name_info::match_any): Update.
9060 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
9061 Update.
9062 * minsyms.c (linkage_name_str): Update.
9063 * language.c (default_symbol_name_matcher): Update.
9064 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
9065 Update.
9066 * ada-lang.c (ada_fold_name): Change parameter to string_view.
9067 (ada_lookup_name_info::ada_lookup_name_info): Update.
9068 (literal_symbol_name_matcher): Update.
9069
8c072cb6
TT
90702020-04-01 Tom Tromey <tromey@adacore.com>
9071
9072 * psymtab.c (psymtab_search_name): Remove function.
9073 (psym_lookup_symbol): Create search name and lookup name here.
9074 (lookup_partial_symbol): Remove "name" parameter; add
9075 lookup_name.
9076 (psym_expand_symtabs_for_function): Update.
9077
6f29a534
TT
90782020-03-31 Joel Jones <joelkevinjones@gmail.com>
9079
9080 PR tui/25597:
9081 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
9082
af62665e
TT
90832020-03-31 Tom Tromey <tromey@adacore.com>
9084
9085 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
9086 memcpy.
9087
d1a89da5
NC
90882020-03-30 Nelson Chu <nelson.chu@sifive.com>
9089
9090 * features/riscv/32bit-csr.xml: Regenerated.
9091 * features/riscv/64bit-csr.xml: Regenerated.
9092
d8af9068
TT
90932020-03-30 Tom Tromey <tromey@adacore.com>
9094
9095 * ada-valprint.c (print_variant_part): Update.
9096 * ada-lang.h (ada_which_variant_applies): Update.
9097 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
9098 outer_valaddr parameters; replace with "outer" value parameter.
9099 (to_fixed_variant_branch_type): Update.
9100
227c0bf4
PFC
91012020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9102
9103 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
9104 <list>. Remove inclusion of observable.h.
9105 (PPC_DEBUG_CURRENT_VERSION): Move up define.
9106 (struct arch_lwp_info): New struct.
9107 (class ppc_linux_dreg_interface): New class.
9108 (struct ppc_linux_process_info): New struct.
9109 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
9110 <low_new_clone, low_forget_process, low_prepare_to_resume>
9111 <copy_thread_dreg_state, mark_thread_stale>
9112 <mark_debug_registers_changed, register_hw_breakpoint>
9113 <clear_hw_breakpoint, register_wp, clear_wp>
9114 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
9115 <num_memory_accesses, get_trigger_type>
9116 <create_watchpoint_request, hwdebug_point_cmp>
9117 <init_arch_lwp_info, get_arch_lwp_info>
9118 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
9119 methods.
9120 <struct ptid_hash>: New inner struct.
9121 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
9122 members.
9123 (saved_dabr_value, hwdebug_info, max_slots_number)
9124 (struct hw_break_tuple, struct thread_points, ppc_threads)
9125 (have_ptrace_hwdebug_interface)
9126 (hwdebug_find_thread_points_by_tid)
9127 (hwdebug_insert_point, hwdebug_remove_point): Remove.
9128 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
9129 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
9130 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
9131 use m_dreg_interface.
9132 (hwdebug_point_cmp): Change to...
9133 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
9134 reference arguments instead of pointers.
9135 (ppc_linux_nat_target::ranged_break_num_registers): Use
9136 m_dreg_interface.
9137 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
9138 m_dreg_interface. Call register_hw_breakpoint.
9139 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
9140 m_dreg_interface. Call clear_hw_breakpoint.
9141 (get_trigger_type): Change to...
9142 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
9143 comment.
9144 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
9145 use m_dreg_interface. Call register_hw_breakpoint.
9146 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
9147 use m_dreg_interface. Call clear_hw_breakpoint.
9148 (can_use_watchpoint_cond_accel): Change to...
9149 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
9150 method. Update comment, use m_dreg_interface and
9151 m_process_info.
9152 (calculate_dvc): Change to...
9153 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
9154 m_dreg_interface.
9155 (num_memory_accesses): Change to...
9156 (ppc_linux_nat_target::num_memory_accesses): ...this method.
9157 (check_condition): Change to...
9158 (ppc_linux_nat_target::check_condition): ...this method.
9159 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
9160 comment, use m_dreg_interface.
9161 (create_watchpoint_request): Change to...
9162 (ppc_linux_nat_target::create_watchpoint_request): ...this
9163 method. Use m_dreg_interface.
9164 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
9165 m_dreg_interface. Call register_hw_breakpoint or register_wp.
9166 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
9167 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
9168 (ppc_linux_nat_target::low_forget_process)
9169 (ppc_linux_nat_target::low_new_fork)
9170 (ppc_linux_nat_target::low_new_clone)
9171 (ppc_linux_nat_target::low_delete_thread)
9172 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
9173 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
9174 only call mark_thread_stale.
9175 (ppc_linux_thread_exit): Remove.
9176 (ppc_linux_nat_target::stopped_data_address): Change to...
9177 (ppc_linux_nat_target::low_stopped_data_address): This. Add
9178 comment, use m_dreg_interface and m_thread_hw_breakpoints.
9179 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
9180 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
9181 comment. Call low_stopped_data_address.
9182 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
9183 m_dreg_interface.
9184 (ppc_linux_nat_target::masked_watch_num_registers): Use
9185 m_dreg_interface.
9186 (ppc_linux_nat_target::copy_thread_dreg_state)
9187 (ppc_linux_nat_target::mark_thread_stale)
9188 (ppc_linux_nat_target::mark_debug_registers_changed)
9189 (ppc_linux_nat_target::register_hw_breakpoint)
9190 (ppc_linux_nat_target::clear_hw_breakpoint)
9191 (ppc_linux_nat_target::register_wp)
9192 (ppc_linux_nat_target::clear_wp)
9193 (ppc_linux_nat_target::init_arch_lwp_info)
9194 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9195 (_initialize_ppc_linux_nat): Remove observer callback.
9196
4db10d8f
PFC
91972020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9198
9199 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9200 (ppc_linux_nat_target::auxv_parse)
9201 (ppc_linux_nat_target::read_description)
9202 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9203 Move up.
9204
1310c1b0
PFC
92052020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9206
9207 * linux-nat.h (low_new_clone): New method.
9208 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9209
69b037c3
SM
92102020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9211
9212 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9213 (dbx_expand_psymtab): ... this.
9214 (start_psymtab): Update.
9215 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9216 (mdebug_expand_psymtab): ... this.
9217 (parse_partial_symbols): Update.
9218 (new_psymtab): Update.
9219 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9220 (xcoff_expand_psymtab): ... this.
9221 (xcoff_start_psymtab): Update.
9222
48993951
SM
92232020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9224
9225 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9226 <expand_dependencies>: ... this.
9227 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9228 (partial_symtab::expand_dependencies): ... this.
9229 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9230 Update.
9231 (dwarf2_psymtab::expand_psymtab): Update.
9232 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9233 * mdebugread.c (psymtab_to_symtab_1): Update.
9234 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9235
3ad83046
SM
92362020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9237
9238 * psympriv.h (discard_psymtab): Remove.
9239 * dbxread.c (dbx_end_psymtab): Update.
9240 * xcoffread.c (xcoff_end_psymtab): Update.
9241
4d1b9ab6
TT
92422020-03-28 Tom Tromey <tom@tromey.com>
9243
9244 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9245 comment.
9246
f1749218
TT
92472020-03-28 Tom Tromey <tom@tromey.com>
9248
9249 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9250
ebea7626
HD
92512020-03-27 Hannes Domani <ssbssa@yahoo.de>
9252
9253 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9254
a879b4d5
JB
92552020-03-26 John Baldwin <jhb@FreeBSD.org>
9256
9257 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9258
0826b30a
TT
92592020-03-26 Tom Tromey <tom@tromey.com>
9260
9261 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9262 (mark_common_block_symbol_computed, read_tag_string_type)
9263 (attr_to_dynamic_prop, read_subrange_type): Update.
9264 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9265 to be methods on struct attribute.
9266 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9267 (read_call_site_scope, partial_die_info::read)
9268 (partial_die_info::read, lookup_die_type, follow_die_ref):
9269 Update.
9270 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9271 from dwarf2_get_ref_die_offset.
9272 (attribute::constant_value): New method, from
9273 dwarf2_get_attr_constant_value.
9274 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9275 Declare method.
9276 <constant_value>: New method.
9277
2b2558bf
TT
92782020-03-26 Tom Tromey <tom@tromey.com>
9279
9280 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9281 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9282 (dwarf_type_encoding_name): Move to stringify.c.
9283 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9284 * dwarf2/stringify.c: New file.
9285 * dwarf2/stringify.h: New file.
9286
eeb64781
TT
92872020-03-26 Tom Tromey <tom@tromey.com>
9288
9289 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9290 Rewrite.
9291
a39fdb41
TT
92922020-03-26 Tom Tromey <tom@tromey.com>
9293
9294 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9295 methods.
9296 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9297 (lookup_ranges_base): Likewise.
9298 (read_cutu_die_from_dwo, read_full_die_1): Update.
9299
436c571c
TT
93002020-03-26 Tom Tromey <tom@tromey.com>
9301
9302 * dwarf2/read.c (read_import_statement, read_file_scope)
9303 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9304 (read_lexical_block_scope, read_call_site_scope)
9305 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9306 (handle_struct_member_die, process_structure_scope)
9307 (update_enumeration_type_from_children)
9308 (process_enumeration_scope, read_array_type, read_common_block)
9309 (read_namespace, read_module, read_subroutine_type): Update.
9310 (sibling_die): Remove.
9311
052c8bb8
TT
93122020-03-26 Tom Tromey <tom@tromey.com>
9313
9314 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9315 (build_type_psymtabs_reader, read_structure_type)
9316 (read_enumeration_type, read_full_die_1): Update.
9317 (dwarf2_attr_no_follow): Move to die.h.
9318 * dwarf2/die.h (struct die_info) <attr>: New method.
9319
2b24b6e4
TT
93202020-03-26 Tom Tromey <tom@tromey.com>
9321
9322 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9323 <base_address>: Now an optional.
9324 (dwarf2_find_base_address, dwarf2_rnglists_process)
9325 (dwarf2_ranges_process, fill_in_loclist_baton)
9326 (dwarf2_symbol_mark_computed): Update.
9327
c2d50fd0
TT
93282020-03-26 Tom Tromey <tom@tromey.com>
9329
9330 * dwarf2/read.c (struct die_info): Move to die.h.
9331 * dwarf2/die.h: New file.
9332
0df7ad3a
TT
93332020-03-26 Tom Tromey <tom@tromey.com>
9334
9335 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9336 * dwarf2/read.c
9337 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9338 Move to line-header.c.
9339 (read_checked_initial_length_and_offset, read_formatted_entries):
9340 Likewise.
9341 (dwarf_decode_line_header): Split into two.
9342 * dwarf2/line-header.c
9343 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9344 Move from read.c.
9345 (read_checked_initial_length_and_offset, read_formatted_entries):
9346 Likewise.
9347 (dwarf_decode_line_header): New function, split from read.c.
9348
86c0bb4c
TT
93492020-03-26 Tom Tromey <tom@tromey.com>
9350
9351 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9352 Declare method.
9353 * dwarf2/read.c (read_attribute_value): Update.
9354 (dwarf2_per_objfile::read_line_string): Rename from
9355 read_indirect_line_string.
9356 (read_formatted_entries): Update.
9357
2ef46c2f
TT
93582020-03-26 Tom Tromey <tom@tromey.com>
9359
9360 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9361 variable.
9362
4f9c1eda
TT
93632020-03-26 Tom Tromey <tom@tromey.com>
9364
9365 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9366 const.
9367 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9368 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9369 parameter const.
9370
5a0e026f
TT
93712020-03-26 Tom Tromey <tom@tromey.com>
9372
9373 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9374 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9375 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9376 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9377
8844c11b
TT
93782020-03-26 Tom Tromey <tom@tromey.com>
9379
9380 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9381 file_names_size, file_full_name, file_file_name>: Use const.
9382 <file_name_at, file_names>: Add const overload.
9383 * dwarf2/line-header.c (line_header::file_file_name)
9384 (line_header::file_full_name): Update.
9385
c90ec28a
TT
93862020-03-26 Tom Tromey <tom@tromey.com>
9387
9388 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9389 (macro_start_file, consume_improper_spaces)
9390 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9391 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9392 (dwarf_decode_macros): Move to macro.c.
9393 * dwarf2/macro.c: New file.
9394 * dwarf2/macro.h: New file.
9395 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9396
4f44ae6c
TT
93972020-03-26 Tom Tromey <tom@tromey.com>
9398
9399 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9400 method.
9401 * dwarf2/section.c: New method. From
9402 read_indirect_string_at_offset_from.
9403 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9404 (read_indirect_string_at_offset_from): Move to section.c.
9405 (read_indirect_string_at_offset): Rewrite.
9406 (read_indirect_line_string_at_offset): Remove.
9407 (read_indirect_string, read_indirect_line_string)
9408 (dwarf_decode_macro_bytes): Update.
9409
a0194fa8
TT
94102020-03-26 Tom Tromey <tom@tromey.com>
9411
9412 * dwarf2/section.h (struct dwarf2_section_info)
9413 <overload_complaint>: Declare.
9414 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9415 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9416 Rename from dwarf2_section_buffer_overflow_complaint.
9417 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9418 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9419
3d27bbdb
TT
94202020-03-26 Tom Tromey <tom@tromey.com>
9421
9422 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9423 Declare.
9424 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9425 Move from read.c.
9426 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9427 to section.c.
9428
9eac9650
TT
94292020-03-26 Tom Tromey <tom@tromey.com>
9430
9431 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9432
bf80d710
TT
94332020-03-26 Tom Tromey <tom@tromey.com>
9434
9435 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9436 "builder".
9437 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9438 parameter.
9439 (dwarf_decode_macros): Update.
9440
0314b390
TT
94412020-03-26 Tom Tromey <tom@tromey.com>
9442
9443 * dwarf2/read.c (read_attribute_value): Update.
9444 (read_indirect_string_from_dwz): Move to dwz.c; change into
9445 method.
9446 (dwarf_decode_macro_bytes): Update.
9447 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9448 * dwarf2/dwz.c: New file.
9449 * Makefile.in (COMMON_SFILES): Add dwz.c.
9450
9fda78b6
TT
94512020-03-26 Tom Tromey <tom@tromey.com>
9452
9453 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9454 * dwarf2/read.c: Add include.
9455 * dwarf2/index-write.c: Add include.
9456 * dwarf2/index-cache.c: Add include.
9457 * dwarf2/dwz.h: New file.
9458
33aa3c10
TT
94592020-03-25 Tom Tromey <tom@tromey.com>
9460
9461 * compile/compile-object-load.c (get_out_value_type): Mention
9462 correct symbol name in error message.
9463
d503b685
HD
94642020-03-25 Hannes Domani <ssbssa@yahoo.de>
9465
9466 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9467
7b1eff95
TV
94682020-03-25 Tom de Vries <tdevries@suse.de>
9469
9470 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9471 * symmisc.c (dump_symtab_1): Print user and includes fields.
9472 (maintenance_info_symtabs): Same.
9473
dd895392
AB
94742020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9475
9476 PR gdb/25534
9477 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9478 (riscv_regcache_cooked_write): New function.
9479 (riscv_push_dummy_call): Use new function.
9480 (riscv_return_value): Likewise.
9481
5ab2fbf1
SM
94822020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9483
9484 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9485 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9486 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9487 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9488 * infrun.c (follow_fork): Likewise.
9489 (follow_fork_inferior): Likewise.
9490 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9491 * linux-nat.h (class linux_nat_target): Likewise.
9492 * remote.c (class remote_target) <follow_fork>: Likewise.
9493 (remote_target::follow_fork): Likewise.
9494 * target-delegates.c: Re-generate.
9495 * target.c (default_follow_fork): Likewise.
9496 (target_follow_fork): Likewise.
9497 * target.h (struct target_ops) <follow_fork>: Likewise.
9498 (target_follow_fork): Likewise.
9499
a64fafb5
TV
95002020-03-24 Tom de Vries <tdevries@suse.de>
9501
9502 * psymtab.c (maintenance_info_psymtabs): Print user field.
9503
fe26d3a3
TT
95042020-03-20 Tom Tromey <tromey@adacore.com>
9505
9506 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9507 const.
9508 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9509 const.
9510
c884cc46
SM
95112020-03-20 Simon Marchi <simon.marchi@efficios.com>
9512
9513 * ptrace.m4: Don't check for ptrace declaration.
9514 * config.in: Re-generate.
9515 * configure: Re-generate.
9516 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9517 not defined.
9518
1ff700c2
KR
95192020-03-20 Kamil Rytarowski <n54@gmx.com>
9520
9521 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9522 `PTRACE_TYPE_RET'.
9523 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9524 * sparc-nat.c (gdb_ptrace): Likewise.
9525 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9526
f7d4f0b1
TT
95272020-03-20 Tom Tromey <tromey@adacore.com>
9528
9529 * c-exp.y (lex_one_token): Fix assert.
9530
f67210ff
TT
95312020-03-20 Tom Tromey <tromey@adacore.com>
9532
9533 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9534 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9535 strncpy call.
9536
1773be9e
TT
95372020-03-20 Tom Tromey <tromey@adacore.com>
9538
9539 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9540
70304be9
TT
95412020-03-20 Tom Tromey <tromey@adacore.com>
9542
9543 * ada-valprint.c (print_variant_part): Remove parameters; switch
9544 to value-based API.
9545 (print_field_values): Likewise.
9546 (ada_val_print_struct_union): Likewise.
9547 (ada_value_print_1): Update.
9548
9faa006d
KR
95492020-03-20 Kamil Rytarowski <n54@gmx.com>
9550
9551 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9552 nbsd_nat_target instead of inf_ptrace_target.
9553 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9554 nbsd_nat_target.
9555
4a90f062
KR
95562020-03-20 Kamil Rytarowski <n54@gmx.com>
9557
9558 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9559 it to the ptrace call.
9560 * (store_registers): Likewise.
9561
95622020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
9563
9564 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9565 it to the ptrace call.
9566 * (store_registers): Likewise.
9567
2d07da27
LM
95682020-03-19 Luis Machado <luis.machado@linaro.org>
9569
9570 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9571 valid, fetch vg value from ptrace.
9572
f09db380
KR
95732020-03-19 Kamil Rytarowski <n54@gmx.com>
9574 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9575 * inf-ptrace.c: Likewise.
9576 * (gdb_ptrace): Add.
9577 * (inf_ptrace_target::resume): Update.
9578 * (inf_ptrace_target::xfer_partial): Likewise.
9579 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9580 * (inf_ptrace_peek_poke): Update.
9581
fcc7376e
KR
95822020-03-19 Kamil Rytarowski <n54@gmx.com>
9583
9584 * x86-bsd-nat.c (gdb_ptrace): New.
9585 * (x86bsd_dr_set): Add new argument `ptid'.
9586 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9587 x86bsd_dr_set_addr): Update.
9588
cada5fc9
AB
95892020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9590
9591 * remote.c (remote_target::process_stop_reply): Handle events for
9592 all threads differently.
9593
19a2740f
AB
95942020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9595
9596 * completer.c (completion_tracker::remove_completion): Define new
9597 function.
9598 * completer.h (completion_tracker::remove_completion): Declare new
9599 function.
9600 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9601 when adding a C++ function symbol.
9602
724fd9ba
AB
96032020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9604
9605 * completer.c (completion_tracker::completion_hash_entry): Define
9606 new class.
9607 (advance_to_filename_complete_word_point): Call
9608 recompute_lowest_common_denominator.
9609 (completion_tracker::completion_tracker): Call discard_completions
9610 to setup the hash table.
9611 (completion_tracker::discard_completions): Allow for being called
9612 from the constructor, pass new equal function, and element deleter
9613 when constructing the hash table. Initialise new class member
9614 variables.
9615 (completion_tracker::maybe_add_completion): Remove use of
9616 m_entries_vec, and store more information into m_entries_hash.
9617 (completion_tracker::recompute_lcd_visitor): New function, most
9618 content taken from...
9619 (completion_tracker::recompute_lowest_common_denominator):
9620 ...here, this now just visits each item in the hash calling the
9621 above visitor.
9622 (completion_tracker::build_completion_result): Remove use of
9623 m_entries_vec, call recompute_lowest_common_denominator.
9624 * completer.h (completion_tracker::have_completions): Remove use
9625 of m_entries_vec.
9626 (completion_tracker::completion_hash_entry): Declare new class.
9627 (completion_tracker::recompute_lowest_common_denominator): Change
9628 function signature.
9629 (completion_tracker::recompute_lcd_visitor): Declare new function.
9630 (completion_tracker::m_entries_vec): Delete.
9631 (completion_tracker::m_entries_hash): Initialize to NULL.
9632 (completion_tracker::m_lowest_common_denominator_valid): New
9633 member variable.
9634 (completion_tracker::m_lowest_common_denominator_max_length): New
9635 member variable.
9636
5a82b8a1
KR
96372020-03-17 Kamil Rytarowski <n54@gmx.com>
9638
9639 * regformats/regdef.h: Put reg in gdb namespace.
9640
fb516a69
KR
96412020-03-17 Kamil Rytarowski <n54@gmx.com>
9642
9643 * i386-bsd-nat.c (gdb_ptrace): New.
9644 * (i386bsd_fetch_inferior_registers,
9645 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9646 * (i386bsd_fetch_inferior_registers,
9647 i386bsd_store_inferior_registers) Use gdb_ptrace.
9648
1c0aa1fb
KR
96492020-03-17 Kamil Rytarowski <n54@gmx.com>
9650
9651 * amd64-bsd-nat.c (gdb_ptrace): New.
9652 * (amd64bsd_fetch_inferior_registers,
9653 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9654 * (amd64bsd_fetch_inferior_registers,
9655 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9656
5ccd2fb7
KR
96572020-03-17 Kamil Rytarowski <n54@gmx.com>
9658
9659 * user-regs.c (user_reg::read): Rename to...
9660 (user_reg::xread): ...this.
9661 * (append_user_reg): Rename argument `read' to `xread'.
9662 * (user_reg_add_builtin): Likewise.
9663 * (user_reg_add): Likewise.
9664 * (value_of_user_reg): Likewise.
9665
2108a63a
KR
96662020-03-17 Kamil Rytarowski <n54@gmx.com>
9667
9668 * sparc-nat.c (gdb_ptrace): New.
9669 * sparc-nat.c (sparc_fetch_inferior_registers)
9670 (sparc_store_inferior_registers) Remove obsolete comment.
9671 * sparc-nat.c (sparc_fetch_inferior_registers)
9672 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9673 * sparc-nat.c (sparc_fetch_inferior_registers)
9674 (sparc_store_inferior_registers) Use gdb_ptrace.
9675
a225c9a8
KR
96762020-03-17 Kamil Rytarowski <n54@gmx.com>
9677
9678 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9679 it to the ptrace call.
9680 * sh-nbsd-nat.c (store_registers): Likewise.
9681
98097623
KR
96822020-03-17 Kamil Rytarowski <n54@gmx.com>
9683
9684 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9685 nbsd_nat_target instead of inf_ptrace_target.
9686 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9687 nbsd_nat_target.
9688
9e38d619
KR
96892020-03-17 Kamil Rytarowski <n54@gmx.com>
9690
9691 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9692
a2ecbe9f
KR
96932020-03-17 Kamil Rytarowski <n54@gmx.com>
9694
9695 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9696 <sys/sysctl.h>.
9697 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9698
58990295
TV
96992020-03-17 Tom de Vries <tdevries@suse.de>
9700
9701 PR gdb/23710
9702 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9703 fields.
9704 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9705 fields.
9706 (process_imported_unit_die): Skip import of c++ CUs.
9707
771dd3a8
TT
97082020-03-16 Tom Tromey <tom@tromey.com>
9709
9710 * p-valprint.c (pascal_object_print_value): Initialize
9711 base_value.
9712
817a7585
AK
97132020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9714 Shahab Vahedi <shahab@synopsys.com>
9715
9716 * Makefile.in: Add arch/arc.o
9717 * configure.tgt: Likewise.
9718 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9719 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 9720 (arc_read_description): New function to cache target descriptions.
817a7585
AK
9721 * arc-tdep.h (arc_read_description): Add proto type.
9722 * arch/arc.c: New file.
9723 * arch/arc.h: Likewise.
9724 * features/Makefile: Replace old target descriptions with new.
9725 * features/arc-arcompact.c: Remove.
9726 * features/arc-arcompact.xml: Likewise.
9727 * features/arc-v2.c: Likewise
9728 * features/arc-v2.xml: Likewise
9729 * features/arc/aux-arcompact.xml: New file.
9730 * features/arc/aux-v2.xml: Likewise.
9731 * features/arc/core-arcompact.xml: Likewise.
9732 * features/arc/core-v2.xml: Likewise.
9733 * features/arc/aux-arcompact.c: Generate.
9734 * features/arc/aux-v2.c: Likewise.
9735 * features/arc/core-arcompact.c: Likewise.
9736 * features/arc/core-v2.c: Likewise.
9737 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9738
67430cd0
TT
97392020-03-16 Tom Tromey <tromey@adacore.com>
9740
9741 PR gdb/25663:
9742 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9743 putting value into bcache.
9744
30efb6c7
SM
97452020-03-16 Simon Marchi <simon.marchi@efficios.com>
9746
9747 PR gdb/21500
9748 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9749 to...
9750 (amd64_windows_init_abi_common): ... this. Don't set size of
9751 long type.
9752 (amd64_windows_init_abi): New function.
9753 (amd64_cygwin_init_abi): New function.
9754 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9755 the Cygwin OS ABI.
9756 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9757 comment.
9758
8db52437
SM
97592020-03-16 Simon Marchi <simon.marchi@efficios.com>
9760
9761 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9762 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9763 (pe_import_directory_entry): New struct type.
9764 (is_linked_with_cygwin_dll): New function.
9765 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9766 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9767 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9768
5982a56a
SM
97692020-03-16 Simon Marchi <simon.marchi@efficios.com>
9770
9771 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9772 i386_cygwin_core_osabi_sniffer.
9773
7a1998df
SM
97742020-03-16 Simon Marchi <simon.marchi@efficios.com>
9775
9776 * i386-cygwin-tdep.c: Rename to...
9777 * i386-windows-tdep.c: ... this.
9778 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9779 i386-windows-tdep.c.
9780 * configure.tgt: Likewise.
9781
053205cc
SM
97822020-03-16 Simon Marchi <simon.marchi@efficios.com>
9783
9784 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9785 * osabi.c (gdb_osabi_names): Add "Windows".
9786 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9787 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9788 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9789 i386_cygwin_osabi_sniffer.
9790 (_initialize_i386_cygwin_tdep): Register OS ABI
9791 GDB_OSABI_WINDOWS for i386.
9792 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9793 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9794 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9795 for x86-64.
9796 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9797 when the target matches '*-*-mingw*'.
9798
fe4b2ee6
SM
97992020-03-16 Simon Marchi <simon.marchi@efficios.com>
9800
9801 * defs.h (enum gdb_osabi): Move to...
9802 * osabi.h (enum gdb_osabi): ... here.
9803 * gdbarch.sh: Include osabi.h in gdbarch.h.
9804 * gdbarch.h: Re-generate.
9805
cb9b645d
SM
98062020-03-16 Simon Marchi <simon.marchi@efficios.com>
9807
9808 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9809 function.
9810 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9811
3293bbaf
TT
98122020-03-14 Tom Tromey <tom@tromey.com>
9813
9814 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9815 for C++.
9816 (c_type_print_modifier): Likewise. Add "language" parameter.
9817 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9818 (c_type_print_base_1): Update.
9819 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9820 constants.
9821 * type-stack.c (type_stack::insert): Handle tp_atomic and
9822 tp_restrict.
9823 (type_stack::follow_type_instance_flags): Likewise.
9824 (type_stack::follow_types): Likewise. Merge type-following code.
9825 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9826 (space_identifier, cv_with_space_id)
9827 (const_or_volatile_or_space_identifier_noopt)
9828 (const_or_volatile_or_space_identifier): Remove.
9829 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9830 rules.
9831 (ptr_operator, typebase): Update.
9832 (enum token_flag) <FLAG_C>: New constant.
9833 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9834 "_Atomic".
9835 (lex_one_token): Handle FLAG_C.
9836
154151a6
KR
98372020-03-14 Kamil Rytarowski <n54@gmx.com>
9838
9839 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9840 it to the ptrace call.
9841 * m68k-bsd-nat.c (store_registers): Likewise.
9842
bc107784
KR
98432020-03-14 Kamil Rytarowski <n54@gmx.com>
9844
9845 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9846 gdb_byte *.
9847 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9848 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9849 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9850
01a80117
KR
98512020-03-14 Kamil Rytarowski <n54@gmx.com>
9852
9853 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
9854 nbsd_nat_target instead of inf_ptrace_target.
9855 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9856 nbsd_nat_target.
9857
f90280ca
KR
98582020-03-14 Kamil Rytarowski <n54@gmx.com>
9859
9860 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
9861 register_t.
9862
6def66f1
KR
98632020-03-14 Kamil Rytarowski <n54@gmx.com>
9864
9865 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9866 it to the ptrace call.
9867 * alpha-bsd-nat.c (store_registers): Likewise.
9868
66eaca97
KR
98692020-03-14 Kamil Rytarowski <n54@gmx.com>
9870
9871 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
9872 includes.
9873 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
9874 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
9875 fill_fpregset): Likewise.
9876
4fed520b
KR
98772020-03-14 Kamil Rytarowski <n54@gmx.com>
9878
9879 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
9880 nbsd_nat_target instead of inf_ptrace_target.
9881 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9882 nbsd_nat_target.
9883
2190cf06
KR
98842020-03-14 Kamil Rytarowski <n54@gmx.com>
9885
9886 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
9887 register_t.
9888
75c56d3d
KR
98892020-03-14 Kamil Rytarowski <n54@gmx.com>
9890
9891 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
9892 it to the ptrace call.
9893 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
9894 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
9895 * arm-nbsd-nat.c (store_register): Likewise.
9896 * arm-nbsd-nat.c (store_regs): Likewise.
9897 * arm-nbsd-nat.c (store_fp_register): Likewise.
9898 * arm-nbsd-nat.c (store_fp_regs): Likewise.
9899
6018d381
KR
99002020-03-14 Kamil Rytarowski <n54@gmx.com>
9901
9902 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
9903 nbsd_nat_target instead of inf_ptrace_target.
9904 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9905 nbsd_nat_target.
9906
013f99f0
KR
99072020-03-14 Kamil Rytarowski <n54@gmx.com>
9908
9909 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9910 it to the ptrace call.
9911 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9912
12753073
KR
99132020-03-14 Kamil Rytarowski <n54@gmx.com>
9914
6227b330
KR
9915 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9916 it to the ptrace call.
9917 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9918
99192020-03-14 Kamil Rytarowski <n54@gmx.com>
9920
9921 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9922 gdb_byte *.
12753073
KR
9923 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9924
d5be5fa4
KR
99252020-03-14 Kamil Rytarowski <n54@gmx.com>
9926
9927 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9928 instead of inf_ptrace_target.
9929 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9930 nbsd_nat_target.
9931
8110f842
KR
99322020-03-14 Kamil Rytarowski <n54@gmx.com>
9933
9934 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9935 register_t.
9936
52feded7
KR
99372020-03-14 Kamil Rytarowski <n54@gmx.com>
9938
9939 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9940 register_t.
9941
25567eee
KR
99422020-03-14 Kamil Rytarowski <n54@gmx.com>
9943
9944 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9945 register_t.
9946
426a9c18
TT
99472020-03-13 Tom Tromey <tom@tromey.com>
9948
9949 * value.h (val_print): Don't declare.
9950 * valprint.h (val_print_array_elements)
9951 (val_print_scalar_formatted, generic_val_print): Don't declare.
9952 * valprint.c (generic_val_print_array): Take a struct value.
9953 (generic_val_print_ptr, generic_val_print_memberptr)
9954 (generic_val_print_bool, generic_val_print_int)
9955 (generic_val_print_char, generic_val_print_complex)
9956 (generic_val_print): Remove.
9957 (generic_value_print): Update.
9958 (do_val_print): Remove unused parameters. Don't call
9959 la_val_print.
9960 (val_print): Remove.
9961 (common_val_print): Update. Don't call value_check_printable.
9962 (val_print_scalar_formatted, val_print_array_elements): Remove.
9963 * rust-lang.c (rust_val_print): Remove.
9964 (rust_language_defn): Update.
9965 * p-valprint.c (pascal_val_print): Remove.
9966 (pascal_value_print_inner): Update.
9967 (pascal_object_print_val_fields, pascal_object_print_val):
9968 Remove.
9969 (pascal_object_print_static_field): Update.
9970 * p-lang.h (pascal_val_print): Don't declare.
9971 * p-lang.c (pascal_language_defn): Update.
9972 * opencl-lang.c (opencl_language_defn): Update.
9973 * objc-lang.c (objc_language_defn): Update.
9974 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9975 * m2-lang.h (m2_val_print): Don't declare.
9976 * m2-lang.c (m2_language_defn): Update.
9977 * language.h (struct language_defn) <la_val_print>: Remove.
9978 * language.c (unk_lang_value_print_inner): Rename. Change
9979 argument types.
9980 (unknown_language_defn, auto_language_defn): Update.
9981 * go-valprint.c (go_val_print): Remove.
9982 * go-lang.h (go_val_print): Don't declare.
9983 * go-lang.c (go_language_defn): Update.
9984 * f-valprint.c (f_val_print): Remove.
9985 * f-lang.h (f_value_print): Don't declare.
9986 * f-lang.c (f_language_defn): Update.
9987 * d-valprint.c (d_val_print): Remove.
9988 * d-lang.h (d_value_print): Don't declare.
9989 * d-lang.c (d_language_defn): Update.
9990 * cp-valprint.c (cp_print_value_fields)
9991 (cp_print_value_fields_rtti, cp_print_value): Remove.
9992 (cp_print_static_field): Update.
9993 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9994 (c_val_print_struct, c_val_print_union, c_val_print_int)
9995 (c_val_print_memberptr, c_val_print): Remove.
9996 * c-lang.h (c_val_print_array, cp_print_value_fields)
9997 (cp_print_value_fields_rtti): Don't declare.
9998 * c-lang.c (c_language_defn, cplus_language_defn)
9999 (asm_language_defn, minimal_language_defn): Update.
10000 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
10001 (ada_val_print_enum): Take a struct value.
10002 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
10003 (ada_val_print): Remove.
10004 (ada_value_print_1): Update.
10005 (printable_val_type): Remove.
10006 * ada-lang.h (ada_val_print): Don't declare.
10007 * ada-lang.c (ada_language_defn): Update.
10008
42331a1e
TT
100092020-03-13 Tom Tromey <tom@tromey.com>
10010
10011 * valprint.c (do_val_print): Update.
10012 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
10013 a struct value.
10014 (value_to_value_object_no_release): Declare.
10015 * python/py-value.c (value_to_value_object_no_release): New
10016 function.
10017 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
10018 struct value.
10019 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
10020 function.
10021 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
10022 a struct value.
10023 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
10024 Declare.
10025 (gdbscm_apply_val_pretty_printer): Take a struct value.
10026 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
10027 value.
10028 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
10029 value.
10030 * extension-priv.h (struct extension_language_ops)
10031 <apply_val_pretty_printer>: Take a struct value.
10032 * cp-valprint.c (cp_print_value): Create a struct value.
10033 (cp_print_value): Update.
10034
3a916a97
TT
100352020-03-13 Tom Tromey <tom@tromey.com>
10036
10037 * ada-valprint.c (print_field_values): Call common_val_print.
10038
b59eac37
TT
100392020-03-13 Tom Tromey <tom@tromey.com>
10040
10041 * ada-valprint.c (val_print_packed_array_elements): Remove
10042 bitoffset and val parameters. Call common_val_print.
10043 (ada_val_print_string): Remove offset, address, and original_value
10044 parameters.
10045 (ada_val_print_array): Update.
10046 (ada_value_print_array): New function.
10047 (ada_value_print_1): Call it.
10048
03371129
TT
100492020-03-13 Tom Tromey <tom@tromey.com>
10050
10051 * ada-valprint.c (ada_value_print): Use common_val_print.
10052
2e088f8b
TT
100532020-03-13 Tom Tromey <tom@tromey.com>
10054
10055 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
10056
39ef85a8
TT
100572020-03-13 Tom Tromey <tom@tromey.com>
10058
10059 * ada-valprint.c (ada_value_print_num): New function.
10060 (ada_value_print_1): Use it.
10061
b9fa6e07
TT
100622020-03-13 Tom Tromey <tom@tromey.com>
10063
10064 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
10065
416595d6
TT
100662020-03-13 Tom Tromey <tom@tromey.com>
10067
10068 * ada-valprint.c (ada_value_print_ptr): New function.
10069 (ada_value_print_1): Use it.
10070
5b5e15ec
TT
100712020-03-13 Tom Tromey <tom@tromey.com>
10072
10073 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
10074 call common_val_print.
10075 (ada_val_print_1): Update.
10076 (ada_value_print_1): New function.
10077 (ada_value_print_inner): Rewrite.
10078
fbf54e75
TT
100792020-03-13 Tom Tromey <tom@tromey.com>
10080
10081 * cp-valprint.c (cp_print_value_fields): Update.
10082 (cp_print_value): New function.
10083
64b653ca
TT
100842020-03-13 Tom Tromey <tom@tromey.com>
10085
10086 * m2-valprint.c (m2_value_print_inner): Use
10087 cp_print_value_fields.
10088 * cp-valprint.c (cp_print_value_fields): New function.
10089 * c-valprint.c (c_value_print_struct): New function.
10090 (c_value_print_inner): Use c_value_print_struct.
10091 * c-lang.h (cp_print_value_fields): Declare.
10092
6999f067
TT
100932020-03-13 Tom Tromey <tom@tromey.com>
10094
10095 * c-valprint.c (c_value_print_array): New function.
10096 (c_value_print_inner): Use it.
10097
ce80b8bd
TT
100982020-03-13 Tom Tromey <tom@tromey.com>
10099
10100 * c-valprint.c (c_value_print_memberptr): New function.
10101 (c_value_print_inner): Use it.
10102
2faac269
TT
101032020-03-13 Tom Tromey <tom@tromey.com>
10104
10105 * c-valprint.c (c_value_print_int): New function.
10106 (c_value_print_inner): Use it.
10107
da3e2c29
TT
101082020-03-13 Tom Tromey <tom@tromey.com>
10109
10110 * c-valprint.c (c_value_print_ptr): New function.
10111 (c_value_print_inner): Use it.
10112
50836231
TT
101132020-03-13 Tom Tromey <tom@tromey.com>
10114
10115 * c-valprint.c (c_value_print_inner): Rewrite.
10116
4f412b6e
TT
101172020-03-13 Tom Tromey <tom@tromey.com>
10118
10119 * valprint.c (generic_value_print_complex): New function.
10120 (generic_value_print): Use it.
10121
f5354008
TT
101222020-03-13 Tom Tromey <tom@tromey.com>
10123
10124 * valprint.c (generic_val_print_float): Don't call
10125 val_print_scalar_formatted.
10126 (generic_val_print, generic_value_print): Update.
10127
3eec3b05
TT
101282020-03-13 Tom Tromey <tom@tromey.com>
10129
10130 * valprint.c (generic_value_print_char): New function
10131 (generic_value_print): Use it.
10132
fdddfccb
TT
101332020-03-13 Tom Tromey <tom@tromey.com>
10134
10135 * valprint.c (generic_value_print_int): New function.
10136 (generic_value_print): Use it.
10137
6dde7521
TT
101382020-03-13 Tom Tromey <tom@tromey.com>
10139
10140 * valprint.c (generic_value_print_bool): New function.
10141 (generic_value_print): Use it.
10142
4112d2e6
TT
101432020-03-13 Tom Tromey <tom@tromey.com>
10144
10145 * valprint.c (generic_val_print_func): Simplify.
10146 (generic_val_print, generic_value_print): Update.
10147
65786af6
TT
101482020-03-13 Tom Tromey <tom@tromey.com>
10149
10150 * valprint.c (generic_val_print_flags): Remove.
10151 (generic_val_print, generic_value_print): Update.
10152 (val_print_type_code_flags): Add original_value parameter.
10153
40f3ce18
TT
101542020-03-13 Tom Tromey <tom@tromey.com>
10155
10156 * valprint.c (generic_val_print): Update.
10157 (generic_value_print): Update.
10158 * valprint.c (generic_val_print_enum): Don't call
10159 val_print_scalar_formatted.
10160
2a5b130b
TT
101612020-03-13 Tom Tromey <tom@tromey.com>
10162
10163 * valprint.c (generic_value_print): Call generic_value_print_ptr.
10164 * valprint.c (generic_value_print_ptr): New function.
10165
abc66ce9
TT
101662020-03-13 Tom Tromey <tom@tromey.com>
10167
10168 * valprint.c (generic_value_print): Rewrite.
10169
07a32858
TT
101702020-03-13 Tom Tromey <tom@tromey.com>
10171
10172 * p-valprint.c (pascal_object_print_value_fields)
10173 (pascal_object_print_value): New functions.
10174
64d64d3a
TT
101752020-03-13 Tom Tromey <tom@tromey.com>
10176
10177 * p-valprint.c (pascal_value_print_inner): Rewrite.
10178
6a95a1f5
TT
101792020-03-13 Tom Tromey <tom@tromey.com>
10180
10181 * f-valprint.c (f_value_print_innner): Rewrite.
10182
59fcdac6
TT
101832020-03-13 Tom Tromey <tom@tromey.com>
10184
10185 * m2-valprint.c (m2_print_unbounded_array): New overload.
10186 (m2_print_unbounded_array): Update.
10187 (m2_print_array_contents): Take a struct value.
10188 (m2_value_print_inner): Rewrite.
10189
d133c3e1
TT
101902020-03-13 Tom Tromey <tom@tromey.com>
10191
10192 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10193 (d_value_print_inner): New function.
10194 * d-lang.h (d_value_print_inner): Declare.
10195 * d-lang.c (d_language_defn): Use d_value_print_inner.
10196
23b0f06b
TT
101972020-03-13 Tom Tromey <tom@tromey.com>
10198
10199 * go-valprint.c (go_value_print_inner): New function.
10200 * go-lang.h (go_value_print_inner): Declare.
10201 * go-lang.c (go_language_defn): Use go_value_print_inner.
10202
5f56f7cb
TT
102032020-03-13 Tom Tromey <tom@tromey.com>
10204
10205 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10206 API.
10207 (rust_val_print): Rewrite.
10208 (rust_value_print_inner): New function, from rust_val_print.
10209 (rust_language_defn): Use rust_value_print_inner.
10210
26792ee0
TT
102112020-03-13 Tom Tromey <tom@tromey.com>
10212
10213 * ada-valprint.c (ada_value_print_inner): New function.
10214 * ada-lang.h (ada_value_print_inner): Declare.
10215 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10216
24051bbe
TT
102172020-03-13 Tom Tromey <tom@tromey.com>
10218
10219 * f-valprint.c (f_value_print_innner): New function.
10220 * f-lang.h (f_value_print_innner): Declare.
10221 * f-lang.c (f_language_defn): Use f_value_print_innner.
10222
c0941be6
TT
102232020-03-13 Tom Tromey <tom@tromey.com>
10224
10225 * p-valprint.c (pascal_value_print_inner): New function.
10226 * p-lang.h (pascal_value_print_inner): Declare.
10227 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10228
62c4663d
TT
102292020-03-13 Tom Tromey <tom@tromey.com>
10230
10231 * m2-valprint.c (m2_value_print_inner): New function.
10232 * m2-lang.h (m2_value_print_inner): Declare.
10233 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10234
62182190
TT
102352020-03-13 Tom Tromey <tom@tromey.com>
10236
10237 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10238 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10239 * c-valprint.c (c_value_print_inner): New function.
10240 * c-lang.h (c_value_print_inner): Declare.
10241 * c-lang.c (c_language_defn, cplus_language_defn)
10242 (asm_language_defn, minimal_language_defn): Use
10243 c_value_print_inner.
10244
1e592a8a
TT
102452020-03-13 Tom Tromey <tom@tromey.com>
10246
10247 * p-valprint.c (pascal_object_print_value_fields): Now static.
10248 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10249
7fe471e9
TT
102502020-03-13 Tom Tromey <tom@tromey.com>
10251
10252 * c-valprint.c (c_val_print_array): Simplify.
10253
d121c6ce
TT
102542020-03-13 Tom Tromey <tom@tromey.com>
10255
10256 * valprint.c (value_print_array_elements): New function.
10257 * valprint.h (value_print_array_elements): Declare.
10258
4dba70ee
TT
102592020-03-13 Tom Tromey <tom@tromey.com>
10260
10261 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10262 * mips-tdep.c (mips_print_register): Use
10263 value_print_scalar_formatted.
10264
4f9ae810
TT
102652020-03-13 Tom Tromey <tom@tromey.com>
10266
10267 * valprint.h (value_print_scalar_formatted): Declare.
10268 * valprint.c (value_print_scalar_formatted): New function.
10269
156bfec9
TT
102702020-03-13 Tom Tromey <tom@tromey.com>
10271
10272 * valprint.h (generic_value_print): Declare.
10273 * valprint.c (generic_value_print): New function.
10274
2b4e573d
TT
102752020-03-13 Tom Tromey <tom@tromey.com>
10276
10277 * valprint.c (do_val_print): Call la_value_print_inner, if
10278 available.
10279 * rust-lang.c (rust_language_defn): Update.
10280 * p-lang.c (pascal_language_defn): Update.
10281 * opencl-lang.c (opencl_language_defn): Update.
10282 * objc-lang.c (objc_language_defn): Update.
10283 * m2-lang.c (m2_language_defn): Update.
10284 * language.h (struct language_defn) <la_value_print_inner>: New
10285 member.
10286 * language.c (unknown_language_defn, auto_language_defn): Update.
10287 * go-lang.c (go_language_defn): Update.
10288 * f-lang.c (f_language_defn): Update.
10289 * d-lang.c (d_language_defn): Update.
10290 * c-lang.c (c_language_defn, cplus_language_defn)
10291 (asm_language_defn, minimal_language_defn): Update.
10292 * ada-lang.c (ada_language_defn): Update.
10293
a1f6a07c
TT
102942020-03-13 Tom Tromey <tom@tromey.com>
10295
10296 * c-valprint.c (c_value_print): Use common_val_print.
10297
410cf315
TT
102982020-03-13 Tom Tromey <tom@tromey.com>
10299
10300 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10301
72a45c93
TT
103022020-03-13 Tom Tromey <tom@tromey.com>
10303
10304 * f-valprint.c (f77_print_array_1, f_val_print): Use
10305 common_val_print.
10306
040f66bd
TT
103072020-03-13 Tom Tromey <tom@tromey.com>
10308
10309 * riscv-tdep.c (riscv_print_one_register_info): Use
10310 common_val_print.
10311
a6e05a6c
TT
103122020-03-13 Tom Tromey <tom@tromey.com>
10313
10314 * mi/mi-main.c (output_register): Use common_val_print.
10315
3444c526
TT
103162020-03-13 Tom Tromey <tom@tromey.com>
10317
10318 * infcmd.c (default_print_one_register_info): Use
10319 common_val_print.
10320
c2a44efe
TT
103212020-03-13 Tom Tromey <tom@tromey.com>
10322
10323 * valprint.h (common_val_print_checked): Declare.
10324 * valprint.c (common_val_print_checked): New function.
10325 * stack.c (print_frame_arg): Use common_val_print_checked.
10326
b0c26e99
TT
103272020-03-13 Tom Tromey <tom@tromey.com>
10328
10329 * valprint.c (do_val_print): New function, from val_print.
10330 (val_print): Use do_val_print.
10331 (common_val_print): Use do_val_print.
10332
ce3acbe9
TT
103332020-03-13 Tom Tromey <tom@tromey.com>
10334
10335 * valprint.c (value_print): Use scoped_value_mark.
10336
96c7f873
TV
103372020-03-13 Tom de Vries <tdevries@suse.de>
10338
10339 PR symtab/25646
10340 * psymtab.c (partial_symtab::partial_symtab): Don't set
10341 globals_offset and statics_offset. Push element onto
10342 current_global_psymbols and current_static_psymbols stacks.
10343 (concat): New function.
10344 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10345 element from current_global_psymbols and current_static_psymbols
10346 stacks. Concat popped elements to global_psymbols and
10347 static_symbols.
10348 (add_psymbol_to_list): Use current_global_psymbols and
10349 current_static_psymbols stacks.
10350 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10351 current_static_psymbols fields.
10352
6ba0a321
CB
103532020-03-12 Christian Biesinger <cbiesinger@google.com>
10354
10355 * corelow.c (sniff_core_bfd): Remove.
10356 (class core_target) <m_core_vec>: Remove.
10357 (core_target::core_target): Update.
10358 (core_file_fns): Remove.
10359 (deprecated_add_core_fns): Remove.
10360 (default_core_sniffer): Remove.
10361 (sniff_core_bfd): Remove.
10362 (default_check_format): Remove.
10363 (gdb_check_format): Remove.
10364 (core_target_open): Update.
10365 (core_target::get_core_register_section): Update.
10366 (get_core_registers_cb): Update.
10367 (core_target::fetch_registers): Update.
10368 * gdbcore.h (struct core_fns): Remove.
10369 (deprecated_add_core_fns): Remove.
10370 (default_core_sniffer): Remove.
10371 (default_check_format): Remove.
10372
227031b2
TT
103732020-03-12 Tom Tromey <tom@tromey.com>
10374
10375 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10376 CORE_ADDR.
10377 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10378
53807e9f
TT
103792020-03-12 Tom Tromey <tom@tromey.com>
10380
10381 * remote.c (remote_target::download_tracepoint)
10382 (remote_target::enable_tracepoint)
10383 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10384 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10385 sprintf_vma.
10386
64f25102
TT
103872020-03-12 Tom Tromey <tom@tromey.com>
10388
10389 * symfile-mem.c: Update CORE_ADDR size assert.
10390
272cd5a3
SM
103912020-03-12 Simon Marchi <simon.marchi@efficios.com>
10392
10393 * selftest.m4: Move to gdbsupport/.
10394 * acinclude.m4: Update path to selftest.m4.
10395
74cd3f9d
SM
103962020-03-12 Simon Marchi <simon.marchi@efficios.com>
10397
10398 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10399 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10400 gdbarch-selfselftests.c and selftest-arch.c.
10401 (SUBDIR_UNITTESTS_OBS): Rename to...
10402 (SELFTESTS_OBS): ... this.
10403 (COMMON_SFILES): Remove disasm-selftests.c and
10404 gdbarch-selftests.c.
10405 * configure.ac: Don't add selftest-arch.{c,o} to
10406 CONFIG_{SRCS,OBS}.
10407 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10408 preprocessor conditions.
10409
db6878ac
SM
104102020-03-12 Simon Marchi <simon.marchi@efficios.com>
10411
10412 * configure.ac: Don't source bfd/development.sh.
10413 * selftest.m4: Modify comment.
10414 * configure: Re-generate.
10415
4d696a5c
SM
104162020-03-12 Simon Marchi <simon.marchi@efficios.com>
10417
10418 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10419 not "true" or "false".
10420 * configure: Re-generate.
10421
8dd8e1c7
CB
104222020-03-12 Christian Biesinger <cbiesinger@google.com>
10423
10424 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10425 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10426 renamed to arm_nbsd_supply_gregset.
10427 (fetch_register): Update to call arm_nbsd_supply_gregset.
10428 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10429 (arm_netbsd_nat_target::fetch_registers): Update.
10430 (fetch_elfcore_registers): Removed.
10431 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10432 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10433 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10434 not require NetBSD system headers.
10435 (arm_nbsd_regset): New struct.
10436 (arm_nbsd_iterate_over_regset_sections): New function.
10437 (arm_netbsd_init_abi_common): Updated to call
10438 set_gdbarch_iterate_over_regset_sections.
10439 * arm-nbsd-tdep.h: New file.
10440
dd69bf7a
KB
104412020-03-11 Kevin Buettner <kevinb@redhat.com>
10442
10443 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10444 recursion.
10445
a0761e34
SM
104462020-03-11 Simon Marchi <simon.marchi@efficios.com>
10447
10448 * configure: Re-generate.
10449
e7a82140
TT
104502020-03-11 Tom Tromey <tromey@adacore.com>
10451
10452 * ada-typeprint.c (print_choices): Fix comment.
10453
dcc050c8
AB
104542020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10455
10456 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10457 previous item in the list, when the list has no items.
10458
1c33af77
TV
104592020-03-11 Tom de Vries <tdevries@suse.de>
10460
10461 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10462 PROP_LOCLIST handling code.
10463
8c95582d
AB
104642020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10465
10466 * buildsym-legacy.c (record_line): Pass extra parameter to
10467 record_line.
10468 * buildsym.c (buildsym_compunit::record_line): Take an extra
10469 parameter, reduce duplication in the line table, and record the
10470 is_stmt flag in the line table.
10471 * buildsym.h (buildsym_compunit::record_line): Add extra
10472 parameter.
10473 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10474 non-statement lines.
10475 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10476 this to the symtab builder.
10477 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10478 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10479 through to dwarf_record_line_1.
10480 * infrun.c (process_event_stop_test): When stepping, don't stop at
10481 a non-statement instruction, and only refresh the step info when
10482 we land in the middle of a line's range. Also add an extra
10483 comment.
10484 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10485 field.
10486 * record-btrace.c (btrace_find_line_range): Only record lines
10487 marked as is-statement.
10488 * stack.c (frame_show_address): Show the frame address if we are
10489 in a non-statement sal.
10490 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10491 (maintenance_print_one_line_table): Print a header for the is_stmt
10492 column, and include is_stmt information in the output.
10493 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10494 preference to non-statements.
10495 (find_pcs_for_symtab_line): Prefer is-statement entries.
10496 (find_line_common): Likewise.
10497 * symtab.h (struct linetable_entry): Add is_stmt field.
10498 (struct symtab_and_line): Likewise.
10499 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10500 arranging the line table.
10501
e4003a34
TV
105022020-03-07 Tom de Vries <tdevries@suse.de>
10503
10504 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10505 DIE.
10506
e8932576
TT
105072020-03-07 Tom Tromey <tom@tromey.com>
10508
10509 * valops.c (value_literal_complex): Remove obsolete comment.
10510 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10511 comment.
10512
29734269
SM
105132020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10514
10515 * infrun.h: Forward-declare thread_info.
10516 (set_step_info): Add thread_info parameter, add doc.
10517 * infrun.c (set_step_info): Add thread_info parameter, move doc
10518 to header.
10519 * infrun.c (process_event_stop_test): Pass thread to
10520 set_step_info call.
10521 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10522 set_step_info.
10523 (prepare_one_step): Add thread_info parameter, pass it to
10524 set_step_frame and prepare_one_step (recursive) call.
10525 (step_1): Pass thread to prepare_one_step call.
10526 (step_command_fsm::should_stop): Pass thread to
10527 prepare_one_step.
10528 (until_next_fsm): Pass thread to set_step_frame call.
10529 (finish_command): Pass thread to set_step_info call.
10530
b7d64b29
HD
105312020-03-06 Hannes Domani <ssbssa@yahoo.de>
10532
10533 * windows-tdep.c (windows_solib_create_inferior_hook):
10534 Check if inferior is running.
10535
09f2921c
TV
105362020-03-06 Tom de Vries <tdevries@suse.de>
10537
10538 * NEWS: Fix "the the".
10539 * ctfread.c: Same.
10540
fd760e79
TV
105412020-03-06 Tom de Vries <tdevries@suse.de>
10542
10543 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10544
20ea4a60
AB
105452020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10546
10547 * .dir-locals.el: Add a comment referencing the other copies of
10548 this file.
10549
0afbabf0
JB
105502020-03-05 John Baldwin <jhb@FreeBSD.org>
10551
10552 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10553 psargs.
10554
842806cb
TBA
105552020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10556
10557 * .gitattributes: New file.
10558
be1e3d3e
TT
105592020-03-04 Tom Tromey <tom@tromey.com>
10560
10561 * symmisc.c (print_symbol_bcache_statistics)
10562 (print_objfile_statistics): Update.
10563 * symfile.c (allocate_symtab): Use intern.
10564 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10565 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10566 macro_cache>: Remove.
10567 <string_cache>: New member.
10568 (struct objfile) <intern>: New methods.
10569 * elfread.c (elf_symtab_read): Use intern.
10570 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10571 (dwarf2_compute_name, dwarf2_physname)
10572 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10573 names.
10574 (guess_partial_die_structure_name): Update.
10575 (partial_die_info::fixup): Intern name.
10576 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10577 name.
10578 (dwarf2_name): Intern name. Update.
10579 * buildsym.c (buildsym_compunit::get_macro_table): Use
10580 string_cache.
10581
4e7625fd
TT
105822020-03-04 Tom Tromey <tom@tromey.com>
10583
10584 * jit.c (bfd_open_from_target_memory): Make "target" const.
10585 * corefile.c (gnutarget): Now const.
10586 * gdbcore.h (gnutarget): Now const.
10587
46f9f931
HD
105882020-03-04 Hannes Domani <ssbssa@yahoo.de>
10589
10590 * NEWS: Mention support for WOW64 processes.
10591 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10592 (amd64_windows_segment_register_p): Remove static.
10593 (_initialize_amd64_windows_nat): Update.
10594 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10595 * i386-windows-nat.c (context_offset): Update.
10596 (i386_mappings): Rename and remove static.
10597 (i386_windows_segment_register_p): Remove static.
10598 (_initialize_i386_windows_nat): Update.
10599 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10600 (STATUS_WX86_SINGLE_STEP): New macro.
10601 (EnumProcessModulesEx): New macro.
10602 (Wow64SuspendThread): New macro.
10603 (Wow64GetThreadContext): New macro.
10604 (Wow64SetThreadContext): New macro.
10605 (Wow64GetThreadSelectorEntry): New macro.
10606 (windows_set_context_register_offsets): Add static.
10607 (windows_set_segment_register_p): Likewise.
10608 (windows_add_thread): Adapt for WOW64 processes.
10609 (windows_fetch_one_register): Likewise.
10610 (windows_nat_target::fetch_registers): Likewise.
10611 (windows_store_one_register): Likewise.
10612 (display_selector): Likewise.
10613 (display_selectors): Likewise.
10614 (handle_exception): Likewise.
10615 (windows_continue): Likewise.
10616 (windows_nat_target::resume): Likewise.
10617 (windows_add_all_dlls): Likewise.
10618 (do_initial_windows_stuff): Likewise.
10619 (windows_nat_target::attach): Likewise.
10620 (windows_get_exec_module_filename): Likewise.
10621 (windows_nat_target::create_inferior): Likewise.
10622 (windows_xfer_siginfo): Likewise.
10623 (_initialize_loadable): Initialize Wow64SuspendThread,
10624 Wow64GetThreadContext, Wow64SetThreadContext,
10625 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10626 * windows-nat.h (windows_set_context_register_offsets):
10627 Remove declaration.
10628 (windows_set_segment_register_p): Likewise.
10629 (i386_windows_segment_register_p): Add declaration.
10630 (amd64_windows_segment_register_p): Likewise.
10631
440cf44e
LM
106322020-03-04 Luis Machado <luis.machado@linaro.org>
10633
10634 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10635 in "info registers" for AArch64/ARM.
10636
10637 The change caused "info registers" to not print GPR's.
10638
10639 gdb/ChangeLog:
10640
10641 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10642
10643 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10644 when reg->group is empty and reggroup is not.
10645
1009d92f
TT
106462020-03-03 Tom Tromey <tromey@adacore.com>
10647
10648 * dwarf2/frame.c (struct dwarf2_frame_cache)
10649 <checked_tailcall_bottom, entry_cfa_sp_offset,
10650 entry_cfa_sp_offset_p>: Remove members.
10651 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10652 (dwarf2_frame_prev_register): Don't call
10653 dwarf2_tailcall_sniffer_first.
10654 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10655 * frame-unwind.c (add_unwinder): New fuction.
10656 (frame_unwind_init): Use it. Add tailcall unwinder.
10657
5e5d66b6
AB
106582020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10659 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10660
10661 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10662 value should be printed as true.
10663
584cf46d
HD
106642020-03-03 Hannes Domani <ssbssa@yahoo.de>
10665
10666 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10667 (windows_init_abi): Set and use windows_so_ops.
10668
7b973adc
SDJ
106692020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10670
10671 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10672 when verifying if dealing with a convenience variable.
10673
bb7b70ab
LM
106742020-03-03 Luis Machado <luis.machado@linaro.org>
10675
10676 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10677
9822cb57
SM
106782020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10679
10680 * infrun.c (gdbarch_supports_displaced_stepping): New.
10681 (use_displaced_stepping): Break up conditions in smaller pieces.
10682 Use gdbarch_supports_displaced_stepping.
10683 (displaced_step_prepare_throw): Use
10684 gdbarch_supports_displaced_stepping.
10685
63e163f2
AB
106862020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10687
10688 * NEWS: Mention new behaviour of the history filename.
10689 * top.c (write_history_p): Add comment.
10690 (show_write_history_p): Add header comment, give a different
10691 message when history writing is on, but the history filename is
10692 empty.
10693 (history_filename): Add comment.
10694 (history_filename_empty): New function.
10695 (show_history_filename): Add header comment, give a different
10696 message when the filename is empty.
10697 (init_history): Compare history_filename against nullptr, and only
10698 read history if the filename is not empty.
10699 (set_history_filename): Add header comment, and only make
10700 non-empty filenames absolute.
10701 (init_main): Make the filename argument to 'set history filename'
10702 optional.
10703
81b86b97
CB
107042020-03-02 Christian Biesinger <cbiesinger@google.com>
10705
10706 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10707 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10708 (fetch_fp_register): Update.
10709 (fetch_fp_regs): Update.
10710 (store_fp_register): Update.
10711 (store_fp_regs): Update.
10712 (arm_netbsd_nat_target::read_description): New function.
10713 (fetch_elfcore_registers): Update.
10714
24ed6739
AB
107152020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10716
10717 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10718 general_thread if the stop reply is missing a thread-id.
10719 (remote_target::process_stop_reply): Use the first non-exited
10720 thread if the target didn't pass a thread-id.
10721 * infrun.c (do_target_wait): Move call to
10722 switch_to_inferior_no_thread to ....
10723 (do_target_wait_1): ... here.
10724
a84bb2a0
JT
107252020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10726
10727 * debuginfod-support.c: Include defs.h first.
10728
658dadf0
TV
107292020-02-28 Tom de Vries <tdevries@suse.de>
10730
10731 * symfile.c (set_initial_language): Use default language for lookup.
10732
4ebe4877
SM
107332020-02-28 Simon Marchi <simon.marchi@efficios.com>
10734
10735 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10736 reader variable, pass `this` to read_cutu_die_from_dwo.
10737
e5da1139
AM
107382020-02-27 Aaron Merey <amerey@redhat.com>
10739
10740 * source.c (open_source_file): Check for nullptr when computing
10741 srcpath.
10742
317f7127
TT
107432020-02-27 Tom Tromey <tromey@adacore.com>
10744
10745 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10746 member.
10747 (dwarf2_add_field): Don't update nfields.
10748 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10749
3104d9ee
AB
107502020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10751
10752 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10753 abs.
10754
b83470bf
TT
107552020-02-26 Tom Tromey <tom@tromey.com>
10756
10757 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10758 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10759 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10760 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10761 per_cu_data.
10762
edfe0a0c
TT
107632020-02-26 Tom Tromey <tom@tromey.com>
10764
10765 * dwarf2/index-write.c (psym_index_map): Change type.
10766 (add_address_entry_worker, write_one_signatured_type)
10767 (recursively_count_psymbols, recursively_write_psymbols)
10768 (class debug_names, psyms_seen_size, write_gdbindex)
10769 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10770
0d79cdc4
AM
107712020-02-26 Aaron Merey <amerey@redhat.com>
10772
10773 * Makefile.in: Handle optional debuginfod support.
10774 * NEWS: Update.
10775 * README: Add --with-debuginfod summary.
10776 * config.in: Regenerate.
10777 * configure: Regenerate.
10778 * configure.ac: Handle optional debuginfod support.
10779 * debuginfod-support.c: debuginfod helper functions.
10780 * debuginfod-support.h: Ditto.
10781 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10782 summary.
10783 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10784 when a dwz file cannot be found.
10785 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10786 debuginfo file cannot be found.
10787 * source.c (open_source_file): Query debuginfod servers when a
10788 source file cannot be found.
10789 * top.c (print_gdb_configuration): Include
10790 --{with,without}-debuginfod in the output.
10791
b65ce565
JG
107922020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10793
10794 * thread.c (thr_try_catch_cmd): Print thread name.
10795
d4c9a4f8
SM
107962020-02-26 Simon Marchi <simon.marchi@efficios.com>
10797
10798 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10799 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10800 dwarf2_fetch_die_type_sect_off): Move to...
10801 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10802 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10803 dwarf2_fetch_die_type_sect_off): ... here.
10804 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10805 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10806 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10807
0dce4280
TV
108082020-02-26 Tom de Vries <tdevries@suse.de>
10809
10810 PR gdb/25603
10811 * symfile.c (set_initial_language): Exit-early if
10812 language_mode == language_mode_manual.
10813
450a1bfc
SM
108142020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10815
10816 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10817 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10818 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10819
9e80cfa1
AB
108202020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10821
10822 * gdbtypes.c (create_array_type_with_stride): Handle negative
10823 array strides.
10824 * valarith.c (value_subscripted_rvalue): Likewise.
10825
09624f1f
LM
108262020-02-25 Luis Machado <luis.machado@linaro.org>
10827
10828 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10829
8cb5117c
SM
108302020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10831
10832 * loc.h (dwarf2_get_die_type): Move to...
10833 * read.h (dwarf2_get_die_type): ... here.
10834 * read.c (dwarf2_get_die_type): Move doc to header.
10835
c325c44e
JB
108362020-02-25 Joel Brobecker <brobecker@adacore.com>
10837
10838 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10839 'gnulib/Makefile.in' to the list.
10840
4ac93832
TT
108412020-02-24 Tom Tromey <tom@tromey.com>
10842
10843 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10844 Remove.
10845 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10846 XOBNEWVEC.
10847
197400e8
TT
108482020-02-24 Tom Tromey <tom@tromey.com>
10849
10850 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10851 New method.
10852 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10853 (dw2_do_instantiate_symtab, dw2_get_file_names)
10854 (build_type_psymtab_dependencies, load_full_type_unit): Update.
10855
76935768
TT
108562020-02-24 Tom Tromey <tom@tromey.com>
10857
10858 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
10859 make_scoped_restore.
10860 (dwarf2_psymtab::read_symtab): Don't clear
10861 reading_partial_symbols.
10862
a88ef40d
TV
108632020-02-24 Tom de Vries <tdevries@suse.de>
10864
10865 PR gdb/25592
10866 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10867
c9af6521
TV
108682020-02-24 Tom de Vries <tdevries@suse.de>
10869
10870 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
10871 commands layout next/prev/regs.
10872
5707a07a
TT
108732020-02-22 Tom Tromey <tom@tromey.com>
10874
10875 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
10876 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
10877
3b0fb49e
TT
108782020-02-22 Tom Tromey <tom@tromey.com>
10879
10880 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
10881
283be8bf
TT
108822020-02-22 Tom Tromey <tom@tromey.com>
10883
10884 * tui/tui-win.c (_initialize_tui_win): Add usage text.
10885 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
10886 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
10887 * tui/tui.c (_initialize_tui): Add usage text.
10888
ca793b96
TT
108892020-02-22 Tom Tromey <tom@tromey.com>
10890
10891 * tui/tui-win.c (tui_set_focus_command)
10892 (tui_set_win_height_command): Use error_no_arg.
10893 (_initialize_tui_win): Update help text.
10894 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
10895
432b5c40
TT
108962020-02-22 Tom Tromey <tom@tromey.com>
10897
10898 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
10899 * tui/tui-disasm.h (struct tui_disasm_window)
10900 <display_start_addr>: Declare.
10901 * tui/tui-source.h (struct tui_source_window)
10902 <display_start_addr>: Declare.
10903 * tui/tui-winsource.h (struct tui_source_window_base)
10904 <show_source_line, display_start_addr>: New methods.
10905 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
10906 Rename and move to protected section.
10907 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
10908 (tui_source_window_base::do_erase_source_content): Update.
10909 (tui_source_window_base::show_source_line): Now a method.
10910 (tui_source_window_base::show_source_content)
10911 (tui_source_window_base::tui_source_window_base)
10912 (tui_source_window_base::rerender)
10913 (tui_source_window_base::refill)
10914 (tui_source_window_base::do_scroll_horizontal)
10915 (tui_source_window_base::set_is_exec_point_at)
10916 (tui_source_window_base::update_breakpoint_info)
10917 (tui_source_window_base::update_exec_info): Update.
10918 * tui/tui-source.c (tui_source_window::set_contents)
10919 (tui_source_window::showing_source_p)
10920 (tui_source_window::do_scroll_vertical)
10921 (tui_source_window::location_matches_p)
10922 (tui_source_window::line_is_displayed): Update.
10923 (tui_source_window::display_start_addr): New method.
10924 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10925 (tui_disasm_window::do_scroll_vertical)
10926 (tui_disasm_window::location_matches_p): Update.
10927 (tui_disasm_window::display_start_addr): New method.
10928
01b1af32
TT
109292020-02-22 Tom Tromey <tom@tromey.com>
10930
10931 * NEWS: Add entry for gdb.register_window_type.
10932 * tui/tui-layout.h (window_factory): New typedef.
10933 (tui_register_window): Declare.
10934 * tui/tui-layout.c (saved_tui_windows): New global.
10935 (tui_apply_current_layout): Use it.
10936 (tui_register_window): New function.
10937 * python/python.c (do_start_initialization): Call
10938 gdbpy_initialize_tui.
10939 (python_GdbMethods): Add "register_window_type" function.
10940 * python/python-internal.h (gdbpy_register_tui_window)
10941 (gdbpy_initialize_tui): Declare.
10942 * python/py-tui.c: New file.
10943 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10944
fc96d20b
TT
109452020-02-22 Tom Tromey <tom@tromey.com>
10946
10947 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10948
935c78c0
TT
109492020-02-22 Tom Tromey <tom@tromey.com>
10950
10951 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10952 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10953 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10954 (tui_set_win_focus_to): Move from tui-win.c.
10955
0240c8f1
TT
109562020-02-22 Tom Tromey <tom@tromey.com>
10957
10958 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10959 functions.
10960 (known_window_types): New global.
10961 (tui_get_window_by_name): Reimplement.
10962 (initialize_known_windows): New function.
10963 (validate_window_name): Rewrite.
10964 (_initialize_tui_layout): Call initialize_known_windows.
10965
fdb01f0c
TT
109662020-02-22 Tom Tromey <tom@tromey.com>
10967
10968 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10969 Remove constants.
10970 * tui/tui-winsource.h (struct tui_source_window_base)
10971 <tui_source_window_base>: Remove parameter.
10972 * tui/tui-winsource.c
10973 (tui_source_window_base::tui_source_window_base): Remove
10974 parameter.
10975 (tui_source_window_base::refill): Update.
10976 * tui/tui-stack.h (struct tui_locator_window)
10977 <tui_locator_window>: Update.
10978 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10979 Default the constructor.
10980 * tui/tui-regs.h (struct tui_data_item_window)
10981 <tui_data_item_window>: Default the constructor.
10982 (struct tui_data_window) <tui_data_window>: Likewise.
10983 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10984 Default the constructor.
10985 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10986 Default the constructor.
10987 <type>: Remove.
10988 (struct tui_win_info) <tui_win_info>: Default the constructor.
10989 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10990 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10991 Default the constructor.
10992
865a5aec
TT
109932020-02-22 Tom Tromey <tom@tromey.com>
10994
10995 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10996 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10997 * tui/tui-win.c (tui_resize_all): Don't call
10998 tui_delete_invisible_windows.
10999 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
11000 done.
11001 (tui_set_layout): Update.
11002 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
11003 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
11004 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
11005
e098d18c
TT
110062020-02-22 Tom Tromey <tom@tromey.com>
11007
11008 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
11009 correctly.
11010
eb9c8874
TT
110112020-02-22 Tom Tromey <tom@tromey.com>
11012
11013 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
11014
7eed1a8e
TT
110152020-02-22 Tom Tromey <tom@tromey.com>
11016
11017 * tui/tui-winsource.h (struct tui_source_window_iterator)
11018 <inner_iterator>: New etytypedef.
11019 <tui_source_window_iterator>: Take "end" parameter.
11020 <tui_source_window_iterator>: Take iterator.
11021 <operator*, advance>: Update.
11022 <m_iter>: Change type.
11023 <m_end>: New field.
11024 (struct tui_source_windows) <begin, end>: Update.
11025 * tui/tui-layout.c (tui_windows): New global.
11026 (tui_apply_current_layout): Clear tui_windows.
11027 (tui_layout_window::apply): Update tui_windows.
11028 * tui/tui-data.h (tui_windows): Declare.
11029 (all_tui_windows): Now inline function.
11030 (class tui_window_iterator, struct all_tui_windows): Remove.
11031
7c043ba6
TT
110322020-02-22 Tom Tromey <tom@tromey.com>
11033
11034 PR tui/17850:
11035 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
11036 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
11037 "height" argument.
11038 (class tui_layout_window) <get_sizes>: Likewise.
11039 (class tui_layout_split) <tui_layout_split>: Add "vertical"
11040 argument.
11041 <get_sizes>: Add "height" argument.
11042 <m_vertical>: New field.
11043 * tui/tui-layout.c (tui_layout_split::clone): Update.
11044 (tui_layout_split::get_sizes): Add "height" argument.
11045 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
11046 (tui_new_layout_command): Parse "-horizontal".
11047 (_initialize_tui_layout): Update help string.
11048 (tui_layout_split::specification): Add "-horizontal" when needed.
11049 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
11050 argument.
11051 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
11052 New methods.
11053
6bc56648
TT
110542020-02-22 Tom Tromey <tom@tromey.com>
11055
11056 * tui/tui-layout.h (enum tui_adjust_result): New.
11057 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
11058 (class tui_layout_window) <adjust_size>: Return
11059 tui_adjust_result. Rewrite.
11060 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
11061 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
11062
c22fef7e
TT
110632020-02-22 Tom Tromey <tom@tromey.com>
11064
11065 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
11066 parameter and return types.
11067 (class tui_layout_base) <specification>: Add "depth".
11068 (class tui_layout_window) <specification>: Add "depth".
11069 (class tui_layout_split) <specification>: Add "depth".
11070 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
11071 and return types.
11072 (tui_new_layout_command): Parse sub-layouts.
11073 (_initialize_tui_layout): Update help string.
11074 (tui_layout_window::specification): Add "depth".
11075 (add_layout_command): Update.
11076
ee325b61
TT
110772020-02-22 Tom Tromey <tom@tromey.com>
11078
11079 * NEWS: Add "tui new-layout" item.
11080 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
11081 Add new-layout command to help text.
11082 (validate_window_name): New function.
11083 (tui_new_layout_command): New function.
11084 (_initialize_tui_layout): Register "new-layout".
11085 (tui_layout_window::specification): New method.
11086 (tui_layout_window::specification): New method.
11087 * tui/tui-layout.h (class tui_layout_base) <specification>: New
11088 method.
11089 (class tui_layout_window) <specification>: New method.
11090 (class tui_layout_split) <specification>: New method.
11091
416eb92d
TT
110922020-02-22 Tom Tromey <tom@tromey.com>
11093
11094 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
11095 * tui/tui-win.c (window_name_completer): Update comment.
11096 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
11097 Declare method.
11098 (class tui_layout_window) <replace_window>: Likewise.
11099 (class tui_layout_split) <replace_window>: Likewise.
11100 (tui_set_layout): Don't declare.
11101 (tui_set_initial_layout): Declare function.
11102 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
11103 (asm_regs_layout): New globals.
11104 (tui_current_layout, show_layout): Remove.
11105 (tui_set_layout, tui_add_win_to_layout): Rewrite.
11106 (find_layout, tui_apply_layout): New function.
11107 (layout_completer): Remove.
11108 (tui_next_layout): Reimplement.
11109 (tui_next_layout_command): New function.
11110 (tui_set_initial_layout, tui_prev_layout_command): New functions.
11111 (tui_regs_layout): Reimplement.
11112 (tui_regs_layout_command): New function.
11113 (extract_display_start_addr): Rewrite.
11114 (next_layout, prev_layout): Remove.
11115 (tui_layout_window::replace_window): New method.
11116 (tui_layout_split::replace_window): New method.
11117 (destroy_layout): New function.
11118 (layout_list): New global.
11119 (add_layout_command): New function.
11120 (initialize_layouts): Update.
11121 (tui_layout_command): New function.
11122 (_initialize_tui_layout): Install "layout" commands.
11123 * tui/tui-data.h (enum tui_layout_type): Remove.
11124 (tui_current_layout): Don't declare.
11125
0dbc2fc7
TT
111262020-02-22 Tom Tromey <tom@tromey.com>
11127
11128 * tui/tui-regs.c (tui_reg_layout): Remove.
11129 (tui_reg_command): Use tui_regs_layout.
11130 * tui/tui-layout.h (tui_reg_command): Declare.
11131 * tui/tui-layout.c (tui_reg_command): New function.
11132
5afe342e
TT
111332020-02-22 Tom Tromey <tom@tromey.com>
11134
11135 * tui/tui.c (tui_rl_delete_other_windows): Call
11136 tui_remove_some_windows.
11137 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
11138 Declare method.
11139 (class tui_layout_window) <remove_windows>: New method.
11140 (class tui_layout_split) <remove_windows>: Declare.
11141 (tui_remove_some_windows): Declare.
11142 * tui/tui-layout.c (tui_remove_some_windows): New function.
11143 (tui_layout_split::remove_windows): New method.
11144
427326a8
TT
111452020-02-22 Tom Tromey <tom@tromey.com>
11146
11147 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
11148 * tui/tui-layout.h (tui_next_layout): Declare.
11149 * tui/tui-layout.c (tui_next_layout): New function.
11150
3fe12b6d
TT
111512020-02-22 Tom Tromey <tom@tromey.com>
11152
11153 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
11154 correct coordinates.
11155
59b8b5d2
TT
111562020-02-22 Tom Tromey <tom@tromey.com>
11157
11158 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
11159 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
11160 DATA_WIN case.
11161
2a3d458b
TT
111622020-02-22 Tom Tromey <tom@tromey.com>
11163
11164 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
11165 TUI_DISASM_WIN, not tui_win_list.
11166
3f0cbb04
TT
111672020-02-22 Tom Tromey <tom@tromey.com>
11168
11169 * valprint.c (generic_val_print_enum_1)
11170 (val_print_type_code_flags): Style member names.
11171 * rust-lang.c (val_print_struct, rust_print_enum)
11172 (rust_print_struct_def, rust_internal_print_type): Style member
11173 names.
11174 * p-valprint.c (pascal_object_print_value_fields): Style member
11175 names. Only call fprintf_symbol_filtered for static members.
11176 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
11177 * f-valprint.c (f_val_print): Style member names.
11178 * f-typeprint.c (f_type_print_base): Style member names.
11179 * cp-valprint.c (cp_print_value_fields): Style member names. Only
11180 call fprintf_symbol_filtered for static members.
11181 (cp_print_class_member): Style member names.
11182 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
11183 member names.
11184 * ada-valprint.c (ada_print_scalar): Style enum names.
11185 (ada_val_print_enum): Likewise.
11186 * ada-typeprint.c (print_enum_type): Style enum names.
11187
d4d947ae
TT
111882020-02-21 Tom Tromey <tom@tromey.com>
11189
11190 * psympriv.h (struct partial_symtab): Update comment.
11191
e94e944b
TT
111922020-02-21 Tom Tromey <tromey@adacore.com>
11193
11194 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11195 type is CORE_ADDR.
11196
1eb73179
TV
111972020-02-21 Tom de Vries <tdevries@suse.de>
11198
11199 PR gdb/25534
11200 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11201 if dependencies[i]->user != NULL.
11202
4f180d53
AT
112032020-02-21 Ali Tamur <tamur@google.com>
11204
11205 * dwarf2/read.c (dwarf2_name): Add null check.
11206
22b6cd70
TT
112072020-02-20 Tom Tromey <tom@tromey.com>
11208
11209 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11210 ">=", in binary search.
11211 (dwarf2_find_containing_comp_unit): New overload.
11212 (run_test): New self-test.
11213 (_initialize_dwarf2_read): Register new test.
11214
bd0cf5a6
NC
112152020-02-20 Nelson Chu <nelson.chu@sifive.com>
11216
11217 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11218 * riscv-tdep.h: Likewise.
11219 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11220 rv32-only CSR.
11221 * features/riscv/64bit-csr.xml: Regenerated.
11222
3f702acd
SDJ
112232020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11224 Tom Tromey <tom@tromey.com>
11225
11226 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11227 of 'fputc_unfiltered'.
11228 (putchar_unfiltered): Call 'fputc_unfiltered'.
11229 (fputc_unfiltered): Call 'fputs_unfiltered'.
11230
d13c7322
AB
112312020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11232
11233 * config.in: Regenerate.
11234 * configure: Regenerate.
11235 * configure.ac: Add --with-python-libdir option.
11236 * main.c: Use WITH_PYTHON_LIBDIR.
11237
869d8950
TT
112382020-02-19 Tom Tromey <tom@tromey.com>
11239
11240 * symtab.c (general_symbol_info::compute_and_set_names): Use
11241 obstack_strndup. Simplify call to symbol_set_demangled_name.
11242
298e9637
SM
112432020-02-19 Simon Marchi <simon.marchi@efficios.com>
11244
11245 * dwarf2/read.c (allocate_signatured_type_table,
11246 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11247 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11248 Remove objfile parameter, update all callers.
11249
08410482
DE
112502020-02-19 Doug Evans <dje@google.com>
11251
11252 PR rust/25535
11253 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11254 rust_enum_variant calculation.
11255
dfdeeca1
TT
112562020-02-19 Tom Tromey <tromey@adacore.com>
11257
11258 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11259
2ef5453b
TT
112602020-02-19 Tom Tromey <tromey@adacore.com>
11261
11262 * ada-lang.c (cache_symbol): Use obstack_strdup.
11263
9f1528a1
AB
112642020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11265
11266 * configure: Regenerate.
11267
d3c22fa8
TT
112682020-02-19 Tom Tromey <tromey@adacore.com>
11269
11270 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11271 NULL check.
11272
bf84f706
MR
112732020-02-19 Maciej W. Rozycki <macro@wdc.com>
11274
11275 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11276
d1c9b20f
AB
112772020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11278
11279 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11280 if GDBSERVER is not defined.
11281 (riscv_tdesc_cache): Likewise, also store const target_desc.
11282 (STATIC_IN_GDB): Define.
11283 (riscv_create_target_description): Update declaration with
11284 STATIC_IN_GDB.
11285 (riscv_lookup_target_description): New function, only define if
11286 GDBSERVER is not defined.
11287 * arch/riscv.h (riscv_create_target_description): Declare only
11288 when GDBSERVER is defined.
11289 (riscv_lookup_target_description): New declaration when GDBSERVER
11290 is not defined.
11291 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11292 (riscv_linux_read_features): ...this, and return
11293 riscv_gdbarch_features instead of target_desc.
11294 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11295 (riscv_linux_read_description): Rename to...
11296 (riscv_linux_read_features): ...this.
11297 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11298 Update to use riscv_gdbarch_features and
11299 riscv_lookup_target_description.
11300 * riscv-tdep.c (riscv_find_default_target_description): Use
11301 riscv_lookup_target_description instead of
11302 riscv_create_target_description.
11303
373d7ac0
SM
113042020-02-18 Simon Marchi <simon.marchi@efficios.com>
11305
11306 * valprint.c (generic_val_print_enum_1): When printing a flag
11307 enum with value 0 and there is no enumerator with value 0, print
11308 just "0" instead of "(unknown: 0x0)".
11309
b29a2df0
SM
113102020-02-18 Simon Marchi <simon.marchi@efficios.com>
11311
11312 * valprint.c (generic_val_print_enum_1): Print unknown part of
11313 flag enum in hex.
11314
6740f0cc
SM
113152020-02-18 Simon Marchi <simon.marchi@efficios.com>
11316
11317 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11318 flag enums to contain duplicate enumerators.
11319 * valprint.c (generic_val_print_enum_1): Update comment.
11320
edd45eb0
SM
113212020-02-18 Simon Marchi <simon.marchi@efficios.com>
11322
11323 * dwarf2/read.c: Include "count-one-bits.h".
11324 (update_enumeration_type_from_children): If an enumerator has
11325 multiple bits set, don't treat the enumeration as a "flag enum".
11326 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11327 of flag enums have 0 or 1 bit set.
11328
6d0cf446
BE
113292020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11330
11331 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11332 conversion.
11333 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11334 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11335 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11336 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11337 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11338
7001c1b7
SM
113392020-02-18 Simon Marchi <simon.marchi@efficios.com>
11340
11341 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11342
fdb61c6c
SM
113432020-02-14 Simon Marchi <simon.marchi@efficios.com>
11344
11345 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11346 displaced_step_closure_up.
11347 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11348 (struct displaced_step_closure_up):
11349 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11350 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11351 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11352 Likewise.
11353 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11354 * gdbarch.c, gdbarch.h: Re-generate.
11355 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11356 displaced_step_closure_up.
11357 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11358 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11359 * infrun.h (displaced_step_closure_up): New type alias.
11360 (struct displaced_step_inferior_state) <step_closure>: Change
11361 type to displaced_step_closure_up.
11362 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11363 displaced_step_closure_up.
11364 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11365
a4a38eb4
TT
113662020-02-14 Tom Tromey <tom@tromey.com>
11367
11368 * minidebug.c (gnu_debug_key): New global.
11369 (find_separate_debug_file_in_section): Use it.
11370
e8217e61
SM
113712020-02-14 Simon Marchi <simon.marchi@efficios.com>
11372
11373 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11374 std::unique_ptr.
11375 * gdbarch.c: Re-generate.
11376 * gdbarch.h: Re-generate.
11377 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11378 change.
11379 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11380 type to std::unique_ptr.
11381 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11382 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11383 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11384 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11385 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11386 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11387 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11388 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11389 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11390
d8d83535
SM
113912020-02-14 Simon Marchi <simon.marchi@efficios.com>
11392
11393 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11394 std::unique_ptr.
11395 (displaced_step_clear): Rename to...
11396 (displaced_step_reset): ... this. Just call displaced->reset ().
11397 (displaced_step_clear_cleanup): Rename to...
11398 (displaced_step_reset_cleanup): ... this.
11399 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11400 (displaced_step_fixup): Likewise.
11401 (resume_1): Likewise.
11402 (handle_inferior_event): Restore child's memory before calling
11403 displaced_step_fixup on the parent.
11404 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11405 to std::unique_ptr.
11406 <step_closure>: Change type to std::unique_ptr.
11407
5f661e03
SM
114082020-02-14 Simon Marchi <simon.marchi@efficios.com>
11409
11410 * arm-tdep.c: Include count-one-bits.h.
11411 (cleanup_block_store_pc): Use count_one_bits.
11412 (cleanup_block_load_pc): Use count_one_bits.
11413 (arm_copy_block_xfer): Use count_one_bits.
11414 (thumb2_copy_block_xfer): Use count_one_bits.
11415 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11416 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11417 (thumb_get_next_pcs_raw): Use count_one_bits.
11418 (arm_get_next_pcs_raw): Use count_one_bits_l.
11419 * arch/arm.c (bitcount): Remove.
11420 * arch/arm.h (bitcount): Remove.
11421
8084e579
TT
114222020-02-14 Tom Tromey <tromey@adacore.com>
11423
11424 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11425 Update.
11426 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11427 * dwarf2/loc.c (call_site_find_chain_1): Return
11428 unique_xmalloc_ptr.
11429 (call_site_find_chain): Likewise.
11430
258bf0ee
RB
114312020-02-14 Richard Biener <rguenther@suse.de>
11432
11433 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11434 on expression with division operators.
11435
f98a8458
AKS
114362020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11437
11438 * MAINTAINERS (Write After Approval): Adding myself.
11439
d1437c0e
TT
114402020-02-12 Tom Tromey <tom@tromey.com>
11441
11442 * event-loop.c (event_data, gdb_event, event_handler_func):
11443 Remove.
11444
3d4560f7
TT
114452020-02-12 Tom Tromey <tom@tromey.com>
11446
11447 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11448 (dwarf2_frame_objfile_data): Add comment.
11449 (find_comp_unit, set_comp_unit): New functions.
11450 (dwarf2_frame_find_fde): Use find_comp_unit.
11451 (dwarf2_build_frame_info): Use set_comp_unit.
11452
21982304
TT
114532020-02-12 Tom Tromey <tom@tromey.com>
11454
11455 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11456 (comp_unit): Don't initialize objfile.
11457 (execute_cfa_program): Add text_offset parameter.
11458 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11459 (dwarf2_frame_cache): Update.
11460 (dwarf2_build_frame_info): Don't set "objfile" member.
11461
4debb237
TT
114622020-02-12 Tom Tromey <tom@tromey.com>
11463
11464 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11465 (decode_frame_entry): Likewise.
11466 (dwarf2_build_frame_info): Update.
11467
0d404d44
TT
114682020-02-12 Tom Tromey <tom@tromey.com>
11469
11470 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11471 (decode_frame_entry_1): Use the comp_unit obstack.
11472
a7a3ae5c
TT
114732020-02-12 Tom Tromey <tom@tromey.com>
11474
11475 * dwarf2/frame.c (struct comp_unit): Add initializers and
11476 constructor.
11477 (dwarf2_frame_objfile_data): Store a comp_unit.
11478 (dwarf2_frame_find_fde): Update.
11479 (dwarf2_build_frame_info): Use "new".
11480
a9d65418
TT
114812020-02-12 Tom Tromey <tom@tromey.com>
11482
11483 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11484 (dwarf2_fde_table): Typedef for std::vector.
11485 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11486 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11487 (decode_frame_entry): Update.
11488 (dwarf2_build_frame_info): Use "new".
11489
7559c217
CB
114902020-02-12 Christian Biesinger <cbiesinger@google.com>
11491
11492 * arm-tdep.c (arm_gdbarch_init): Update.
11493 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11494 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11495 have_neon, is_m>: Change to bool.
11496
aeefc73c
CB
114972020-02-12 Christian Biesinger <cbiesinger@google.com>
11498
11499 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11500
d27b8e5f
TT
115012020-02-12 Tom Tromey <tom@tromey.com>
11502
11503 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11504
cd5900f3
HD
115052020-02-12 Hannes Domani <ssbssa@yahoo.de>
11506
11507 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11508 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11509
f056b22b
TT
115102020-02-11 Tom Tromey <tom@tromey.com>
11511
11512 * psymtab.h: Update comment.
11513
f92ff6b5
TT
115142020-02-11 Tom Tromey <tom@tromey.com>
11515
11516 * gdb_obstack.h (struct auto_obstack): Use
11517 DISABLE_COPY_AND_ASSIGN.
11518
3fd6912b
TT
115192020-02-11 Tom Tromey <tom@tromey.com>
11520
11521 * dwarf2/frame.h (struct objfile): Don't forward declare.
11522
69ed9b74
CB
115232020-02-11 Christian Biesinger <cbiesinger@google.com>
11524
11525 * cris-tdep.c (cris_supply_gregset): Change signature to match
11526 what struct regset expects.
11527 (cris_regset): New struct.
11528 (fetch_core_registers): Remove.
11529 (cris_iterate_over_regset_sections): New function.
11530 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11531 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11532
bda874f6
CB
115332020-02-11 Christian Biesinger <cbiesinger@google.com>
11534
11535 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11536 registers.
11537
754e1564
CB
115382020-02-11 Christian Biesinger <cbiesinger@google.com>
11539
11540 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11541
8ddd8e0e
SM
115422020-02-11 Simon Marchi <simon.marchi@efficios.com>
11543
11544 * configure: Re-generate.
11545
898e7f60
SM
115462020-02-11 Simon Marchi <simon.marchi@efficios.com>
11547
11548 * configure: Re-generate.
11549
58df732b
SM
115502020-02-11 Simon Marchi <simon.marchi@efficios.com>
11551
11552 * acinclude: Update warning.m4 path.
11553 * warning.m4: Move to gdbsupport.
11554
da5bd37e
TT
115552020-02-11 Tom Tromey <tromey@adacore.com>
11556
11557 * remote.c (remote_console_output): Update.
11558 * printcmd.c (printf_command): Update.
11559 * event-loop.c (gdb_wait_for_event): Update.
11560 * linux-nat.c (sigchld_handler): Update.
11561 * remote-sim.c (gdb_os_write_stdout): Update.
11562 (gdb_os_flush_stdout): Update.
11563 (gdb_os_flush_stderr): Update.
11564 (gdb_os_write_stderr): Update.
11565 * exceptions.c (print_exception): Update.
11566 * remote-fileio.c (remote_fileio_func_read): Update.
11567 (remote_fileio_func_write): Update.
11568 * tui/tui.c (tui_enable): Update.
11569 * tui/tui-interp.c (tui_interp::init): Update.
11570 * utils.c (init_page_info): Update.
11571 (putchar_unfiltered, fputc_unfiltered): Update.
11572 (gdb_flush): Update.
11573 (emit_style_escape): Update.
11574 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11575 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11576 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11577 (stderr_file::write): Update.
11578 (stderr_file::puts): Update.
11579 * ui-file.h (ui_file_isatty, ui_file_write)
11580 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11581 (ui_file_puts): Don't declare.
11582
85f0dd3c
TV
115832020-02-10 Tom de Vries <tdevries@suse.de>
11584
11585 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11586 sentinel to char *.
11587
2e927613
TV
115882020-02-09 Tom de Vries <tdevries@suse.de>
11589
11590 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11591 filename if it matches "<artificial>".
11592
6bafc845
HD
115932020-02-09 Hannes Domani <ssbssa@yahoo.de>
11594
11595 * windows-tdep.c (struct enum_value_name): New struct.
11596 (create_enum): New function.
11597 (windows_get_siginfo_type): Create and use enum types.
11598
7928d571
HD
115992020-02-09 Hannes Domani <ssbssa@yahoo.de>
11600
11601 * NEWS: Mention $_siginfo support for Windows.
11602 * windows-nat.c (handle_exception): Set siginfo_er.
11603 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11604 (windows_xfer_siginfo): New function.
11605 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11606 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11607 (init_windows_gdbarch_data): New function.
11608 (get_windows_gdbarch_data): New function.
11609 (windows_get_siginfo_type): New function.
11610 (windows_init_abi): Register windows_get_siginfo_type.
11611 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11612
6751ebae
TT
116132020-02-08 Tom Tromey <tom@tromey.com>
11614
11615 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11616 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11617 <keep>: Declare method.
11618 <m_keep>: Remove member.
11619 <~cutu_reader>: Remove.
11620 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11621 (cutu_reader::cutu_reader): Update.
11622 (cutu_reader::keep): Rename from ~cutu_reader.
11623 (process_psymtab_comp_unit, build_type_psymtabs_1)
11624 (process_skeletonless_type_unit, load_partial_comp_unit)
11625 (load_full_comp_unit, dwarf2_read_addr_index)
11626 (read_signatured_type): Update.
11627
135f5437
TT
116282020-02-08 Tom Tromey <tom@tromey.com>
11629
11630 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11631 "want_partial_unit" parameter.
11632 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11633 Inline check for DW_TAG_partial_unit.
11634 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11635
9f66ff1c
TT
116362020-02-08 Tom Tromey <tom@tromey.com>
11637
11638 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11639 read.c.
11640 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11641 read.c.
11642
c8a7a66f
TT
116432020-02-08 Tom Tromey <tom@tromey.com>
11644
11645 * dwarf2/read.c (read_address): Move to comp-unit.c.
11646 (dwarf2_rnglists_process, dwarf2_ranges_process)
11647 (read_attribute_value, dwarf_decode_lines_1)
11648 (var_decode_location, decode_locdesc): Update.
11649 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11650 read.c. Remove "cu" parameter.
11651 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11652 method.
11653
8266302d
TT
116542020-02-08 Tom Tromey <tom@tromey.com>
11655
11656 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11657 (read_indirect_line_string): Update.
11658 * dwarf2/comp-unit.c (read_offset): Remove.
11659 (read_comp_unit_head): Update.
11660 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11661 method.
11662 (read_offset): Don't declare.
11663
4057dfde
TT
116642020-02-08 Tom Tromey <tom@tromey.com>
11665
11666 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11667 * dwarf2/read.c (struct comp_unit_head): Move to
11668 dwarf2/comp-unit.h.
11669 (enum class rcuh_kind): Move to comp-unit.h.
11670 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11671 (read_comp_unit_head, error_check_comp_unit_head)
11672 (read_and_check_comp_unit_head): Move to comp-unit.c.
11673 (read_offset, dwarf_unit_type_name): Likewise.
11674 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11675 (cutu_reader::cutu_reader, read_call_site_scope)
11676 (find_partial_die, follow_die_offset): Update.
11677 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11678
24aa364d
TT
116792020-02-08 Tom Tromey <tom@tromey.com>
11680
11681 * dwarf2/read.c (read_offset_1): Move to leb.c.
11682 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11683 (dwarf_decode_macro_bytes): Update.
11684 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11685 * dwarf2/leb.h (read_offset): Declare.
11686
2c7d5afc
TT
116872020-02-08 Tom Tromey <tom@tromey.com>
11688
11689 * dwarf2/read.c (dwarf2_section_size): Remove.
11690 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11691 Update.
11692 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11693
4075cb26
TT
116942020-02-08 Tom Tromey <tom@tromey.com>
11695
11696 * dwarf2/read.c (read_initial_length): Move to leb.c.
11697 * dwarf2/leb.h (read_initial_length): Declare.
11698 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11699 handle_nonstd parameter.
11700 * dwarf2/frame.c (read_initial_length): Remove.
11701 (decode_frame_entry_1): Update.
11702
09ba997f
TT
117032020-02-08 Tom Tromey <tom@tromey.com>
11704
11705 * dwarf2/loc.c (dwarf2_find_location_expression)
11706 (dwarf_evaluate_loc_desc::get_tls_address)
11707 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11708 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11709 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11710 (dwarf2_compile_property_to_c)
11711 (dwarf2_loc_desc_get_symbol_read_needs)
11712 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11713 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11714 (loclist_describe_location, loclist_tracepoint_var_ref)
11715 (loclist_generate_c_location): Update.
11716 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11717 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11718 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11719 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11720 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11721 (dwarf2_per_cu_data::addr_size)
11722 (dwarf2_per_cu_data::ref_addr_size)
11723 (dwarf2_per_cu_data::text_offset)
11724 (dwarf2_per_cu_data::addr_type): Now methods.
11725 (per_cu_header_read_in): Make per_cu "const".
11726 (dwarf2_version): Remove.
11727 (dwarf2_per_cu_data::int_type): Now a method.
11728 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11729 (set_die_type, read_array_type, read_subrange_index_type)
11730 (read_tag_string_type, read_subrange_type): Update.
11731 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11732 offset_size, ref_addr_size, text_offset, addr_type, version,
11733 objfile, int_type, addr_sized_int_type>: Declare methods.
11734
96c738c0
TT
117352020-02-08 Tom Tromey <tom@tromey.com>
11736
11737 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11738 Move earlier.
11739
8fdd972c
TT
117402020-02-08 Tom Tromey <tom@tromey.com>
11741
11742 * dwarf2/read.h (dwarf_line_debug): Declare.
11743 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11744 * dwarf2/read.c: Move line_header code to new files.
11745 (dwarf_line_debug): No longer static.
11746 * dwarf2/line-header.c: New file.
11747 * dwarf2/line-header.h: New file.
11748
03075812
TT
117492020-02-08 Tom Tromey <tom@tromey.com>
11750
11751 * dwarf2/read.c (struct line_header) <file_full_name,
11752 file_file_name>: Return unique_xmalloc_ptr.
11753 (line_header::file_file_name): Update.
11754 (line_header::file_full_name): Update.
11755 (dw2_get_file_names_reader): Update.
11756 (macro_start_file): Update.
11757
bb822404
TT
117582020-02-08 Tom Tromey <tom@tromey.com>
11759
11760 * dwarf2/read.c (struct line_header) <file_full_name,
11761 file_file_name>: Declare methods.
11762 (dw2_get_file_names_reader): Update.
11763 (file_file_name): Now a method.
11764 (file_full_name): Likewise.
11765 (macro_start_file): Update.
11766
009b64fc
TT
117672020-02-08 Tom Tromey <tom@tromey.com>
11768
11769 * dwarf2/read.c (dwarf_always_disassemble)
11770 (show_dwarf_always_disassemble): Move to loc.c.
11771 (_initialize_dwarf2_read): Move "always-disassemble" registration
11772 to loc.c.
11773 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11774 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11775 static.
11776 (show_dwarf_always_disassemble): Move from read.c.
11777 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11778
5895093f
TT
117792020-02-08 Tom Tromey <tom@tromey.com>
11780
11781 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11782 (create_quick_file_names_table): Return htab_up.
11783 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11784 Update.
11785 * dwarf2/read.h (struct dwarf2_per_objfile)
11786 <quick_file_names_table>: Now htab_up.
11787
b3b32279
TT
117882020-02-08 Tom Tromey <tom@tromey.com>
11789
11790 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11791
1d33d811
TT
117922020-02-08 Tom Tromey <tom@tromey.com>
11793
11794 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11795 Rewrite.
11796 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11797 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11798 (abbrev_table::abbrev_table): No longer inline.
11799 (ABBREV_HASH_SIZE): Remove.
11800 (abbrev_table::m_abbrevs): Now an htab_up.
11801
86de1d91
TT
118022020-02-08 Tom Tromey <tom@tromey.com>
11803
11804 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11805 (cutu_reader): Update.
11806 (build_type_psymtabs_1): Update.
11807 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11808 (abbrev_table::alloc_abbrev): Update.
11809 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11810 (abbrev_table::read): New static method, renamed from
11811 abbrev_table_read_table.
11812 (abbrev_table::alloc_abbrev)
11813 (abbrev_table::add_abbrev): Now private.
11814 (abbrev_table::abbrev_table): Now private.
11815 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11816
0335378b
TT
118172020-02-08 Tom Tromey <tom@tromey.com>
11818
11819 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11820 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11821 htab_up.
11822
48b490f2
TT
118232020-02-08 Tom Tromey <tom@tromey.com>
11824
11825 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11826 htab_up.
11827 (lookup_dwo_unit_in_dwp): Update.
11828 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11829 on obstack.
11830
bc68fb19
TT
118312020-02-08 Tom Tromey <tom@tromey.com>
11832
11833 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11834 obstack.
11835
d15acc42
TT
118362020-02-08 Tom Tromey <tom@tromey.com>
11837
11838 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11839 line_header_hash.
11840 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11841 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11842 Change type to htab_up.
11843
eaa5fa8b
TT
118442020-02-08 Tom Tromey <tom@tromey.com>
11845
11846 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11847 htab_up. Don't allocate on obstack.
11848 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11849 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11850 Change type to htab_up.
11851
b0b6a987
TT
118522020-02-08 Tom Tromey <tom@tromey.com>
11853
11854 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
11855 Change type to htab_up.
11856 * dwarf2/read.c (create_signatured_type_table_from_index)
11857 (create_signatured_type_table_from_debug_names)
11858 (create_all_type_units, add_type_unit)
11859 (lookup_dwo_signatured_type, lookup_signatured_type)
11860 (process_skeletonless_type_unit): Update.
11861 (create_debug_type_hash_table, create_debug_types_hash_table):
11862 Change type of types_htab.
11863 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11864 htab_up. Don't allocate on obstack.
11865 (create_cus_hash_table): Change type of cus_htab parameter.
11866 (struct dwo_file) <cus, tus>: Now htab_up.
11867 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11868 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
11869 (queue_and_load_all_dwo_tus): Update.
11870 * dwarf2/index-write.c (write_gdbindex): Update.
11871 (write_debug_names): Update.
11872
39856def
TT
118732020-02-08 Tom Tromey <tom@tromey.com>
11874
11875 * dwarf2/read.h (struct dwarf2_queue_item): Move from
11876 dwarf2/read.c. Remove "next" member. Add constructor ntad
11877 destructor.
11878 (struct dwarf2_per_objfile) <queue>: New member.
11879 * dwarf2/read.c (struct dwarf2_queue_item): Move to
11880 dwarf2/read.h.
11881 (dwarf2_queue, dwarf2_queue_tail): Remove.
11882 (class dwarf2_queue_guard): Add parameter to constructor. Use
11883 DISABLE_COPY_AND_ASSIGN.
11884 <m_per_objfile>: New member.
11885 <~dwarf2_queue_guard>: Rewrite.
11886 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
11887 Update.
11888 (~dwarf2_queue_item): New.
11889
3e225074
TT
118902020-02-08 Tom Tromey <tom@tromey.com>
11891
11892 * dwarf2/read.c (struct die_info) <has_children>: New member.
11893 (dw2_get_file_names_reader): Remove has_children.
11894 (dw2_get_file_names): Update.
11895 (read_cutu_die_from_dwo): Remove has_children.
11896 (cutu_reader::init_tu_and_read_dwo_dies)
11897 (cutu_reader::cutu_reader): Update.
11898 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
11899 Remove has_children.
11900 (build_type_psymtabs_1, process_skeletonless_type_unit)
11901 (load_partial_comp_unit, load_full_comp_unit): Update.
11902 (create_dwo_cu_reader): Remove has_children.
11903 (create_cus_hash_table, read_die_and_children): Update.
11904 (read_full_die_1,read_full_die): Remove has_children.
11905 (read_signatured_type): Update.
11906 (class cutu_reader) <has_children>: Remove.
11907
82ca8957
TT
119082020-02-08 Tom Tromey <tom@tromey.com>
11909
11910 * dwarf2/expr.c: Rename from dwarf2expr.c.
11911 * dwarf2/expr.h: Rename from dwarf2expr.h.
11912 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11913 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11914 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11915 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11916 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11917 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11918 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11919 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11920 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11921 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11922 * dwarf2/loc.c: Rename from dwarf2loc.c.
11923 * dwarf2/loc.h: Rename from dwarf2loc.h.
11924 * dwarf2/read.c: Rename from dwarf2read.c.
11925 * dwarf2/read.h: Rename from dwarf2read.h.
11926 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11927 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11928 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11929 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11930 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11931 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11932 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11933 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11934 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11935 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11936 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11937 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11938 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11939 Update.
11940 * Makefile.in (COMMON_SFILES): Update.
11941 (HFILES_NO_SRCDIR): Update.
11942
9e35d499
TT
119432020-02-08 Tom Tromey <tom@tromey.com>
11944
11945 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11946 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11947
1eba2311
TT
119482020-02-08 Tom Tromey <tom@tromey.com>
11949
11950 * dwarf2read.h (struct die_info): Don't declare.
11951
e41c2da2
TT
119522020-02-08 Tom Tromey <tom@tromey.com>
11953
11954 * dwarf2read.h (die_info_ptr): Remove typedef.
11955
4fc6c0d5
TT
119562020-02-08 Tom Tromey <tom@tromey.com>
11957
11958 * dwarf2read.c (read_call_site_scope)
11959 (handle_data_member_location, dwarf2_add_member_fn)
11960 (mark_common_block_symbol_computed, read_common_block)
11961 (attr_to_dynamic_prop, partial_die_info::read)
11962 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11963 (dwarf2_symbol_mark_computed, set_die_type): Update.
11964 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11965 method.
11966 (attr_form_is_block): Don't declare.
11967 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11968
cd6c91b4
TT
119692020-02-08 Tom Tromey <tom@tromey.com>
11970
11971 * dwarf2read.c (dwarf2_find_base_address, )
11972 (read_call_site_scope, rust_containing_type)
11973 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11974 (handle_data_member_location, dwarf2_add_member_fn)
11975 (get_alignment, read_structure_type, process_structure_scope)
11976 (mark_common_block_symbol_computed, read_common_block)
11977 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11978 (partial_die_info::read, read_attribute_value, new_symbol)
11979 (lookup_die_type, dwarf2_get_ref_die_offset)
11980 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11981 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11982 (dwarf2_symbol_mark_computed): Update.
11983 * dwarf2/attribute.h (struct attribute) <value_as_address,
11984 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11985 methods.
11986 (value_as_address, attr_form_is_section_offset)
11987 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11988 * dwarf2/attribute.c (attribute::value_as_address)
11989 (attribute::form_is_section_offset, attribute::form_is_constant)
11990 (attribute::form_is_ref): Now methods.
11991
162dce55
TT
119922020-02-08 Tom Tromey <tom@tromey.com>
11993
11994 * dwarf2read.c (struct attribute, DW_STRING)
11995 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11996 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11997 (attr_form_is_block, attr_form_is_section_offset)
11998 (attr_form_is_constant, attr_form_is_ref): Move.
11999 * dwarf2/attribute.h: New file.
12000 * dwarf2/attribute.c: New file, from dwarf2read.c.
12001 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
12002
3054dd54
TT
120032020-02-08 Tom Tromey <tom@tromey.com>
12004
12005 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
12006 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
12007 Move.
12008 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
12009 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
12010 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
12011 abbrev.c.
12012 * dwarf2/abbrev.h: New file.
12013 * dwarf2/abbrev.c: New file, from dwarf2read.c.
12014 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
12015
96b79293
TT
120162020-02-08 Tom Tromey <tom@tromey.com>
12017
12018 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
12019 (dwarf2_section_size, dwarf2_get_section_info)
12020 (create_signatured_type_table_from_debug_names)
12021 (create_addrmap_from_aranges, read_debug_names_from_section)
12022 (get_gdb_index_contents_from_section, read_comp_unit_head)
12023 (error_check_comp_unit_head, read_abbrev_offset)
12024 (create_debug_type_hash_table, init_cu_die_reader)
12025 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
12026 (read_comp_units_from_section, create_cus_hash_table)
12027 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
12028 (create_dwp_v2_section, dwarf2_rnglists_process)
12029 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
12030 (abbrev_table_read_table, read_indirect_string_at_offset_from)
12031 (read_indirect_string_from_dwz, read_addr_index_1)
12032 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
12033 (dwarf_decode_macro_bytes, dwarf_decode_macros)
12034 (fill_in_loclist_baton): Update.
12035 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
12036 get_containing_section, get_bfd_owner, get_bfd_section,
12037 get_file_name, get_id, get_flags, empty, read>: Declare methods.
12038 (dwarf2_read_section, get_section_name, get_section_file_name)
12039 (get_containing_section, get_section_bfd_owner)
12040 (get_section_bfd_section, get_section_name, get_section_file_name)
12041 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
12042 declare.
12043 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
12044 (dwarf2_section_info::get_bfd_owner)
12045 (dwarf2_section_info::get_bfd_section)
12046 (dwarf2_section_info::get_name)
12047 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
12048 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
12049 (dwarf2_section_info::read): Now methods.
12050 * dwarf-index-write.c (class debug_names): Update.
12051
2c86cff9
TT
120522020-02-08 Tom Tromey <tom@tromey.com>
12053
12054 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
12055 Move to dwarf2/section.h.
12056 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
12057 (get_section_bfd_section, get_section_name)
12058 (get_section_file_name, get_section_id, get_section_flags)
12059 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
12060 dwarf2/section.c.
12061 * dwarf2/section.h: New file.
12062 * dwarf2/section.c: New file, from dwarf2read.c.
12063 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
12064
f4382c45
TT
120652020-02-08 Tom Tromey <tom@tromey.com>
12066
12067 * dwarf2read.h (read_unsigned_leb128): Don't declare.
12068 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
12069 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
12070 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
12071 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
12072 * dwarf2/leb.h: New file, from dwarf2read.c.
12073 * dwarf2/leb.c: New file, from dwarf2read.c.
12074 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
12075 Remove.
12076 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
12077 (COMMON_SFILES): Add dwarf2/leb.c.
12078
01840b7a
JB
120792020-02-08 Joel Brobecker <brobecker@adacore.com>
12080
12081 GDB 9.1 released.
12082
dfcb27e4
IB
120832020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12084
12085 PR gdb/25190:
aac66a4c
SM
12086 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
12087 * gdb/remote.c (remote_console_output): Update.
12088 * gdb/ui-file.c (fputs_unfiltered): Rename to...
12089 (ui_file_puts): ...this.
12090 * gdb/ui-file.h (ui_file_puts): Add declaration.
12091 * gdb/utils.c (emit_style_escape): Update.
12092 (flush_wrap_buffer): Update.
12093 (fputs_maybe_filtered): Update.
12094 (fputs_unfiltered): Add function.
dfcb27e4 12095
faa17681
IB
120962020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12097
aac66a4c
SM
12098 * gdb/event-loop.c (gdb_wait_for_event): Update.
12099 * gdb/printcmd.c (printf_command): Update.
12100 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
12101 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
12102 (gdb_os_flush_stderr): Update.
12103 * gdb/remote.c (remote_console_output): Update.
12104 * gdb/ui-file.c (gdb_flush): Rename to...
12105 (ui_file_flush): ...this.
12106 (stderr_file::write): Update.
12107 (stderr_file::puts): Update.
12108 * gdb/ui-file.h (gdb_flush): Rename to...
12109 (ui_file_flush): ...this.
12110 * gdb/utils.c (gdb_flush): Add function.
12111 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 12112
5abbbe1d
TT
121132020-02-07 Tom Tromey <tromey@adacore.com>
12114
12115 PR breakpoints/24915:
12116 * source.c (find_and_open_source): Do not check basenames_may_differ.
12117
919adfe8
TT
121182020-02-07 Tom Tromey <tom@tromey.com>
12119
12120 * README: Update gdbserver documentation.
12121 * gdbserver: Move to top level.
12122 * configure.tgt (build_gdbserver): Remove.
12123 * configure.ac: Remove --enable-gdbserver.
12124 * configure: Rebuild.
12125 * Makefile.in (distclean): Don't mention gdbserver.
12126
1d5d29e7
SV
121272020-02-06 Shahab Vahedi <shahab@synopsys.com>
12128
12129 * source-cache.c (source_cache::ensure): Surround
12130 get_plain_source_lines with a try/catch.
12131 (source_cache::get_line_charpos): Get rid of try/catch
12132 and only check for the return value of "ensure".
12133 * tui/tui-source.c (tui_source_window::set_contents):
12134 Simplify "nlines" calculation.
12135
6eb1129c
SV
121362020-02-06 Shahab Vahedi <shahab@synopsys.com>
12137
12138 * MAINTAINERS (Write After Approval): Add myself.
12139
c6a42d11
CB
121402020-02-05 Christian Biesinger <cbiesinger@google.com>
12141
12142 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
12143 function call.
12144
c8ecdda6
CB
121452020-02-05 Christian Biesinger <cbiesinger@google.com>
12146
12147 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
12148
f6480e70
MR
121492020-02-05 Maciej W. Rozycki <macro@wdc.com>
12150
12151 * nat/riscv-linux-tdesc.h: New file.
12152 * nat/riscv-linux-tdesc.c: New file, taking code from...
12153 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12154 ... here.
12155 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
12156 NATDEPFILES.
12157
dcc9fbc6
AB
121582020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
12159
12160 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
12161 we don't set the fake simulator ptid to the null_ptid.
12162
719546c4
SM
121632020-02-03 Simon Marchi <simon.marchi@efficios.com>
12164
12165 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
12166 * gdbthread.h (class thread_info) <resumed>: Likewise.
12167 * infrun.c (resume_1): Likewise.
12168 (proceed): Likewise.
12169 (infrun_thread_stop_requested): Likewise.
12170 (stop_all_threads): Likewise.
12171 (handle_inferior_event): Likewise.
12172 (restart_threads): Likewise.
12173 (finish_step_over): Likewise.
12174 (keep_going_stepped_thread): Likewise.
12175 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
12176 (linux_handle_extended_wait): Likewise.
12177 * record-btrace.c (get_thread_current_frame_id): Likewise.
12178 * record-full.c (record_full_wait_1): Likewise.
12179 * remote.c (remote_target::process_initial_stop_replies): Likewise.
12180 * target.c (target_resume): Likewise.
12181 * thread.c (set_running_thread): Likewise.
12182
e409c542
AKS
121832020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12184
12185 * f-valprint.c (f77_print_array_1): Changed datatype of index
12186 variable to LONGEST from int to enable it to contain bound
12187 values correctly.
12188
ee98c0da
MR
121892020-02-03 Maciej W. Rozycki <macro@wdc.com>
12190
12191 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12192 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12193 offsets according to FLEN determined.
12194 (riscv_linux_nat_target::read_description): Determine FLEN
12195 dynamically.
12196 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12197 according to FLEN determined.
12198 (riscv_linux_nat_target::store_registers): Likewise.
12199
aa66aac4
SV
122002020-02-01 Shahab Vahedi <shahab@synopsys.com>
12201
12202 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12203 when reg->group is empty and reggroup is not.
12204
fd9faca8
TT
122052020-01-31 Tom Tromey <tromey@adacore.com>
12206
12207 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12208 Call beneath target's mourn_inferior after unpushing.
12209
42330a68
AB
122102020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12211
12212 PR tui/9765
12213 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12214 have enough lines to fill the screen, still return the lowest
12215 address we found.
12216
7a27a45b
AB
122172020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12218
12219 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12220 '-', '<', and '>' commands.
12221
c47f70e2
PA
122222020-01-29 Pedro Alves <palves@redhat.com>
12223 Sergio Durigan Junior <sergiodj@redhat.com>
12224
12225 * infcmd.c (construct_inferior_arguments): Assert that
12226 'argc' is greater than 0.
12227
5133a315
LM
122282020-01-29 Luis Machado <luis.machado@linaro.org>
12229
12230 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12231 (BRK_INSN_MASK): Define to 0xd4200000.
12232 (aarch64_program_breakpoint_here_p): New function.
12233 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12234 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12235 breakpoint.c.
12236 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12237 breakpoint.h
12238 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12239 call gdbarch_program_breakpoint_here_p.
12240 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12241 default_program_breakpoint_here_p, changed return type to bool and
12242 simplified.
12243 * breakpoint.h (program_breakpoint_here): Moved prototype to
12244 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12245 return type to bool.
12246 * gdbarch.c: Regenerate.
12247 * gdbarch.h: Regenerate.
12248 * gdbarch.sh (program_breakpoint_here_p): New method.
12249 * infrun.c (handle_signal_stop): Call
12250 gdbarch_program_breakpoint_here_p.
12251
168f8c6b
TT
122522020-01-26 Tom Tromey <tom@tromey.com>
12253
12254 * ctfread.c (struct ctf_fp_info): Reindent.
12255 (_initialize_ctfread): Remove.
12256
128a391f
TT
122572020-01-26 Tom Tromey <tom@tromey.com>
12258
12259 * psymtab.c (partial_map_expand_apply)
12260 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12261 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12262 (psym_print_stats, psym_expand_symtabs_for_function)
12263 (psym_map_symbol_filenames, psym_map_matching_symbols)
12264 (psym_expand_symtabs_matching)
12265 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12266 (maintenance_check_psymtabs): Use new methods.
12267 * psympriv.h (struct partial_symtab) <readin_p,
12268 get_compunit_symtab>: New methods.
12269 <readin, compunit_symtab>: Remove members.
12270 (struct standard_psymtab): New.
12271 (struct legacy_psymtab): Derive from standard_psymtab.
12272 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12273 standard_psymtab.
12274 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12275
0494dbec
TT
122762020-01-26 Tom Tromey <tom@tromey.com>
12277
12278 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12279 read_dependencies. Add assert.
12280 * psymtab.c (partial_symtab::read_dependencies): New method.
12281 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12282 method.
12283 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12284 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12285 read_dependencies.
12286 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12287 Add assert.
12288
8566b89b
TT
122892020-01-26 Tom Tromey <tom@tromey.com>
12290
12291 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12292 Call expand_psymtab.
12293 (xcoff_read_symtab): Call expand_psymtab.
12294 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12295 legacy_expand_psymtab.
12296 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12297 method.
12298 (struct legacy_psymtab) <expand_psymtab>: Implement.
12299 <legacy_expand_psymtab>: New member.
12300 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12301 (parse_partial_symbols): Set legacy_expand_psymtab.
12302 (psymtab_to_symtab_1): Change argument order. Call
12303 expand_psymtab.
12304 (new_psymtab): Set legacy_expand_psymtab.
12305 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12306 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12307 expand_psymtab.
12308 (dwarf2_psymtab::expand_psymtab): Rename from
12309 psymtab_to_symtab_1. Call expand_psymtab.
12310 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12311 (dbx_end_psymtab): Likewise.
12312 (dbx_psymtab_to_symtab_1): Change argument order. Call
12313 expand_psymtab.
12314 (dbx_read_symtab): Call expand_psymtab.
12315 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12316 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12317 (ctf_psymtab::read_symtab): Call expand_psymtab.
12318
077cbab2
TT
123192020-01-26 Tom Tromey <tom@tromey.com>
12320
12321 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12322 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12323 messages.
12324 * mdebugread.c (mdebug_read_symtab): Remove prints.
12325 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12326 assert.
12327 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12328
891813be
TT
123292020-01-26 Tom Tromey <tom@tromey.com>
12330
12331 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12332 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12333 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12334 legacy_symtab.
12335 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12336 * psymtab.c (psymtab_to_symtab): Call method.
12337 (dump_psymtab): Update.
12338 * psympriv.h (struct partial_symtab): Add virtual destructor.
12339 <read_symtab>: New method.
12340 (struct legacy_symtab): New.
12341 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12342 (struct pst_map) <pst>: Now a legacy_psymtab.
12343 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12344 (new_psymtab): Use legacy_psymtab.
12345 * dwarf2read.h (struct dwarf2_psymtab): New.
12346 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12347 * dwarf2read.c (dwarf2_create_include_psymtab)
12348 (dwarf2_build_include_psymtabs, create_type_unit_group)
12349 (create_partial_symtab, process_psymtab_comp_unit_reader)
12350 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12351 (set_partial_user): Use dwarf2_psymtab.
12352 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12353 (psymtab_to_symtab_1, process_full_comp_unit)
12354 (process_full_type_unit, dwarf2_ranges_read)
12355 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12356 (dwarf_decode_lines): Use dwarf2_psymtab.
12357 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12358 (add_address_entry_worker, write_one_signatured_type)
12359 (recursively_count_psymbols, recursively_write_psymbols)
12360 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12361 (write_debug_names): Likewise.
12362 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12363 <pst>: Now a legacy_psymtab.
12364 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12365 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12366 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12367 * ctfread.c (struct ctf_psymtab): New.
12368 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12369 ctf_psymtab.
12370 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12371 (create_partial_symtab): Return a ctf_psymtab.
12372 (scan_partial_symbols): Update.
12373
c3693a1d
TT
123742020-01-26 Tom Tromey <tom@tromey.com>
12375
12376 * xcoffread.c (xcoff_start_psymtab): Use new.
12377 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12378 renamed from start_psymtab_common.
12379 * psympriv.h (struct partial_symtab): Add new constructor.
12380 (start_psymtab_common): Don't declare.
12381 * mdebugread.c (parse_partial_symbols): Use new.
12382 * dwarf2read.c (create_partial_symtab): Use new.
12383 * dbxread.c (start_psymtab): Use new.
12384 * ctfread.c (create_partial_symtab): Use new.
12385
32caafd0
TT
123862020-01-26 Tom Tromey <tom@tromey.com>
12387
12388 * xcoffread.c (xcoff_end_psymtab): Use new.
12389 * psymtab.c (start_psymtab_common): Use new.
12390 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12391 Update.
12392 * psympriv.h (struct partial_symtab): Add parameters to
12393 constructor. Don't inline.
12394 (allocate_psymtab): Don't declare.
12395 * mdebugread.c (new_psymtab): Use new.
12396 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12397 * dbxread.c (dbx_end_psymtab): Use new.
12398
abaa2f23
TT
123992020-01-26 Tom Tromey <tom@tromey.com>
12400
12401 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12402 allocate_psymtab. Update documentation.
12403 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12404 allocate_psymtab. Do not use new.
12405 (allocate_psymtab): Use new. Update.
12406
6d94535f
TT
124072020-01-26 Tom Tromey <tom@tromey.com>
12408
12409 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12410 * psymtab.c (psym_print_stats): Update.
12411 * psympriv.h (struct partial_symtab) <readin,
12412 psymtabs_addrmap_supported, anonymous>: Now bool.
12413 * mdebugread.c (psymtab_to_symtab_1): Update.
12414 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12415 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12416 (process_full_comp_unit, process_full_type_unit): Update.
12417 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12418 * ctfread.c (psymtab_to_symtab): Update.
12419
6f17252b
TT
124202020-01-26 Tom Tromey <tom@tromey.com>
12421
12422 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12423 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12424 * psymtab.c (psymtab_storage): Delete psymtabs.
12425 (psymtab_storage::allocate_psymtab): Use new.
12426 (psymtab_storage::discard_psymtab): Use delete.
12427 * psympriv.h (struct partial_symtab): Add constructor and
12428 initializers.
12429
f6f1cebc
TT
124302020-01-26 Tom Tromey <tom@tromey.com>
12431
12432 * machoread.c: Do not include psympriv.h.
12433
e47e48f6
PW
124342020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12435
12436 * NEWS: Mention the new option and the set/show commands.
12437
a2fedca9
PW
124382020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12439
12440 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12441 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12442 (validate_exec_file): New variables, enums, functions.
12443 (exec_file_locate_attach, print_section_info): Style the filenames.
12444 (_initialize_exec): Install show_exec_file_mismatch_command and
12445 set_exec_file_mismatch_command.
12446 * gdbcore.h (validate_exec_file): Declare.
12447 * infcmd.c (attach_command): Call validate_exec_file.
12448 * remote.c ( remote_target::remote_add_inferior): Likewise.
12449
7ffa82e1
AB
124502020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12451
12452 * frame.c (find_frame_sal): Move call to get_next_frame into more
12453 inner scope.
12454 * inline-frame.c (inilne_state) <inline_state>: Update argument
12455 types.
12456 (inilne_state) <skipped_symbol>: Rename to...
12457 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12458 (skip_inline_frames): Build vector of skipped symbols and use this
12459 to reate the inline_state.
12460 (inline_skipped_symbol): Add a comment and some assertions, fetch
12461 skipped symbol from the list.
12462
3d92a3e3
AB
124632020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12464
12465 * buildsym.c (lte_is_less_than): Delete.
12466 (buildsym_compunit::end_symtab_with_blockvector): Create local
12467 lambda function to sort line table entries, and use
12468 std::stable_sort instead of std::sort.
12469 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12470 markers when looking for a previous line.
12471
94a72be7
AB
124722020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12473
12474 * dwarf2read.c (lnp_state_machine::record_line): Include
12475 end_sequence parameter in debug print out. Record the line if we
12476 are at an end_sequence marker even if it's not the start of a
12477 statement.
12478 * symmisc.c (maintenance_print_one_line_table): Print end of
12479 sequence markers with 'END' not '0'.
12480
53af73bf
PA
124812020-01-24 Pedro Alves <palves@redhat.com>
12482
12483 PR gdb/25410
12484 * thread.c (scoped_restore_current_thread::restore): Use
12485 switch_to_inferior_no_thread.
12486 * exec.c: Include "progspace-and-thread.h".
12487 (add_target_sections, remove_target_sections):
12488 scoped_restore_current_pspace_and_thread instead of
12489 scoped_restore_current_thread.
12490 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12491 and aspace to the inferior before calling clone_program_space.
12492 Remove stale comment.
12493
3050c6f4
CB
124942020-01-24 Christian Biesinger <cbiesinger@google.com>
12495
12496 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12497 (arm_netbsd_nat_target::fetch_registers): ...this.
12498 (arm_nbsd_nat_target::store_registers): Rename to...
12499 (arm_netbsd_nat_target::store_registers): ...this.
12500
73685c7e
CB
125012020-01-24 Christian Biesinger <cbiesinger@google.com>
12502
12503 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12504 register_t.
12505
89203d40
CB
125062020-01-24 Christian Biesinger <cbiesinger@google.com>
12507
12508 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12509 Update comment.
12510 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12511 Likewise.
12512 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12513 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12514 the correct replacement (iterate_over_regset_sections).
12515 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12516 Update comment.
12517
1ba1ac88
AB
125182020-01-24 Graham Markall <graham.markall@embecosm.com>
12519
12520 PR gdb/23718
12521 * gdb/python/python.c (execute_gdb_command): Call
12522 async_enable_stdin in catch block.
12523
f3364a6d
AB
125242020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12525
12526 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12527 SWITCH_THRU_ALL_UIS.
12528
733d0a67
AB
125292020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12530
12531 PR tui/9765
12532 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12533 comment, add extra parameter, and update to store previous symbol
12534 when appropriate.
12535 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12536 add extra parameter.
12537 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12538 remove unneeded parameter, add try/catch around gdb_print_insn,
12539 rewrite to add items to asm_lines vector.
12540 (tui_find_backward_disassembly_start_address): New function.
12541 (tui_find_disassembly_address): Updated throughout.
12542 (tui_disasm_window::set_contents): Update for changes to
12543 tui_disassemble.
12544 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12545 number of lines to scroll.
12546
b3b3bada
SM
125472020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12548
12549 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12550 (SECT_OFF_DATA): Likewise.
12551 (SECT_OFF_RODATA): Likewise.
12552 (SECT_OFF_TEXT): Likewise.
12553 (SECT_OFF_BSS): Likewise.
12554 (struct objfile) <text_section_offset, data_section_offset>: New
12555 methods.
12556 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12557 objfile::text_section_offset.
12558 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12559 * coffread.c (coff_symtab_read): Likewise.
12560 (enter_linenos): Likewise.
12561 (process_coff_symbol): Likewise.
12562 * ctfread.c (get_objfile_text_range): Likewise.
12563 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12564 Use objfile::data_section_offset.
12565 * dwarf2-frame.c (execute_cfa_program): Use
12566 objfile::text_section_offset.
12567 (dwarf2_frame_find_fde): Likewise.
12568 * dwarf2read.c (create_addrmap_from_index): Likewise.
12569 (create_addrmap_from_aranges): Likewise.
12570 (dw2_find_pc_sect_compunit_symtab): Likewise.
12571 (process_psymtab_comp_unit_reader): Likewise.
12572 (add_partial_symbol): Likewise.
12573 (add_partial_subprogram): Likewise.
12574 (process_full_comp_unit): Likewise.
12575 (read_file_scope): Likewise.
12576 (read_func_scope): Likewise.
12577 (read_lexical_block_scope): Likewise.
12578 (read_call_site_scope): Likewise.
12579 (dwarf2_rnglists_process): Likewise.
12580 (dwarf2_ranges_process): Likewise.
12581 (dwarf2_ranges_read): Likewise.
12582 (dwarf_decode_lines_1): Likewise.
12583 (new_symbol): Likewise.
12584 (dwarf2_fetch_die_loc_sect_off): Likewise.
12585 (dwarf2_per_cu_text_offset): Likewise.
12586 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12587 * hppa-tdep.c (read_unwind_info): Likewise.
12588 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12589 * psympriv.h (struct partial_symtab): Likewise.
12590 * psymtab.c (find_pc_sect_psymtab): Likewise.
12591 * solib-svr4.c (enable_break): Likewise.
12592 * stap-probe.c (relocate_address): Use
12593 objfile::data_section_offset.
12594 * xcoffread.c (enter_line_range): Use
12595 objfile::text_section_offset.
12596 (read_xcoff_symtab): Likewise.
12597
ab53f382
SM
125982020-01-23 Simon Marchi <simon.marchi@efficios.com>
12599
12600 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12601 declaration to narrower scopes.
12602
e7eee665
SM
126032020-01-23 Simon Marchi <simon.marchi@efficios.com>
12604
12605 * darwin-nat.h (struct darwin_exception_msg, enum
12606 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12607 Move up.
12608 (class darwin_nat_target) <wait_1, check_new_threads,
12609 decode_exception_message, decode_message, stop_inferior,
12610 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12611 * darwin-nat.c (darwin_check_new_threads): Rename to...
12612 (darwin_nat_target::check_new_threads): ... this.
12613 (darwin_suspend_inferior_it): Remove.
12614 (darwin_decode_exception_message): Rename to...
12615 (darwin_nat_target::decode_exception_message): ... this.
12616 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12617 (darwin_decode_message): Rename to...
12618 (darwin_nat_target::decode_message): ... this.
12619 (cancel_breakpoint): Rename to...
12620 (darwin_nat_target::cancel_breakpoint): ... this.
12621 (darwin_wait): Rename to...
12622 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12623 instead of iterate_over_inferiors.
12624 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12625 (darwin_stop_inferior): Rename to...
12626 (darwin_nat_target::stop_inferior): ... this.
12627 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12628 (darwin_init_thread_list): Rename to...
12629 (darwin_nat_target::init_thread_list): ... this.
12630 (darwin_ptrace_him): Rename to...
12631 (darwin_nat_target::ptrace_him): ... this.
12632 (darwin_nat_target::create_inferior): Pass lambda function to
12633 fork_inferior.
12634 (darwin_nat_target::detach): Call stop_inferior instead of
12635 darwin_stop_inferior.
12636 * fork-inferior.h (fork_inferior): Change init_trace_fun
12637 parameter to gdb::function_view.
12638 * fork-inferior.c (fork_inferior): Likewise.
12639
c162ed3e
HD
126402020-01-23 Hannes Domani <ssbssa@yahoo.de>
12641
12642 * i386-cygwin-tdep.c (core_process_module_section): Update.
12643 * windows-nat.c (struct lm_info_windows): Add text_offset.
12644 (windows_xfer_shared_libraries): Update.
12645 * windows-tdep.c (windows_xfer_shared_library):
12646 Add text_offset_cached argument.
12647 * windows-tdep.h (windows_xfer_shared_library): Update.
12648
a1237872
SM
126492020-01-21 Simon Marchi <simon.marchi@efficios.com>
12650
12651 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12652
b3ee6dd9
SM
126532020-01-21 Simon Marchi <simon.marchi@efficios.com>
12654
12655 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12656 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12657 replace with range-based for.
12658 (gdbsim_interrupt_inferior): Remove.
12659 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12660 with a range-based for. Inline code from
12661 gdbsim_interrupt_inferior.
12662
f9fac3c8
SM
126632020-01-21 Simon Marchi <simon.marchi@efficios.com>
12664
12665 * infrun.c (proceed): Fix indentation.
12666
f6474de9
TT
126672020-01-21 Tom Tromey <tromey@adacore.com>
12668
12669 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12670 * python/python.c (python_extension_ops): Update.
12671 (gdbpy_colorize): New function.
12672 * python/lib/gdb/__init__.py (colorize): New function.
12673 * extension.h (ext_lang_colorize): Declare.
12674 * extension.c (ext_lang_colorize): New function.
12675 * extension-priv.h (struct extension_language_ops) <colorize>: New
12676 member.
12677 * cli/cli-style.c (_initialize_cli_style): Update help text.
12678
f0c702d4
LM
126792020-01-21 Luis Machado <luis.machado@linaro.org>
12680
12681 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12682 <cond>: Change type to bool.
12683 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12684 (aarch64_displaced_step_cb): Likewise.
12685 (aarch64_displaced_step_tb): Likewise.
12686
1ab139e5
LM
126872020-01-21 Luis Machado <luis.machado@linaro.org>
12688
12689 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12690 output.
12691
0c271889
LM
126922020-01-21 Luis Machado <luis.machado@linaro.org>
12693
12694 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12695 <pc_adjust>: Adjust the documentation.
12696 (aarch64_displaced_step_fixup): Check if PC really moved before
12697 adjusting it.
12698
4d89c1c7
TT
126992020-01-19 Tom Tromey <tom@tromey.com>
12700
12701 * disasm.c (~gdb_disassembler): New destructor.
12702 (gdb_buffered_insn_length): Call disassemble_free_target.
12703 * disasm.h (class gdb_disassembler): Declare destructor. Use
12704 DISABLE_COPY_AND_ASSIGN.
12705
c0ab21c2
TT
127062020-01-19 Tom Tromey <tom@tromey.com>
12707
12708 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12709 (die_reader_func_ftype): Remove.
12710 (cutu_reader): New class.
12711 (dw2_get_file_names_reader): Remove "data" parameter.
12712 (dw2_get_file_names): Use cutu_reader.
12713 (create_debug_type_hash_table): Update.
12714 (read_cutu_die_from_dwo): Update comment.
12715 (lookup_dwo_unit): Add dwo_name parameter.
12716 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12717 die_reader_func_ftype and data parameters.
12718 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12719 Remove die_reader_func_ftype and data parameters.
12720 (~cutu_reader): New; from init_cutu_and_read_dies.
12721 (cutu_reader::cutu_reader): Rename from
12722 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12723 and data parameters.
12724 (init_cutu_and_read_dies_simple): Remove.
12725 (struct process_psymtab_comp_unit_data): Remove.
12726 (process_psymtab_comp_unit_reader): Remove data parameter; add
12727 want_partial_unit and pretend_language parameters.
12728 (process_psymtab_comp_unit): Use cutu_reader.
12729 (build_type_psymtabs_reader): Remove data parameter.
12730 (build_type_psymtabs_1): Use cutu_reader.
12731 (process_skeletonless_type_unit): Likewise.
12732 (load_partial_comp_unit_reader): Remove.
12733 (load_partial_comp_unit): Use cutu_reader.
12734 (load_full_comp_unit_reader): Remove.
12735 (load_full_comp_unit): Use cutu_reader.
12736 (struct create_dwo_cu_data): Remove.
12737 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12738 dwo_unit parameters.
12739 (create_cus_hash_table): Use cutu_reader.
12740 (struct dwarf2_read_addr_index_data): Remove.
12741 (dwarf2_read_addr_index_reader): Remove.
12742 (dwarf2_read_addr_index): Use cutu_reader.
12743 (read_signatured_type_reader): Remove.
12744 (read_signatured_type): Use cutu_reader.
12745
45bbae5c
TT
127462020-01-19 Tom Tromey <tom@tromey.com>
12747
12748 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12749 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12750 (tui_wrefresh): Declare.
12751 * tui/tui-wingeneral.c (suppress_output): New global.
12752 (tui_suppress_output, ~tui_suppress_output): New constructor and
12753 destructor.
12754 (tui_wrefresh): New function.
12755 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12756 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12757 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12758 method.
12759 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12760 tui_wrefresh.
12761 (tui_data_window::no_refresh): New method.
12762 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12763 (tui_reg_command): Use tui_suppress_output
12764 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12765 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12766 method.
12767 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12768
4f13c1c0
TT
127692020-01-19 Tom Tromey <tom@tromey.com>
12770
12771 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12772 Handle case where symtab is null.
12773
fa47e446
SM
127742020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12775
12776 * linux-fork.c (one_fork_p): Simplify.
12777
26f42329
SM
127782020-01-17 Simon Marchi <simon.marchi@efficios.com>
12779
12780 * top.c (struct qt_args): Remove.
12781 (kill_or_detach): Change return type to void, replace `void *`
12782 parameter with a proper one.
12783 (print_inferior_quit_action): Likewise.
12784 (quit_confirm): Use range-based for loop to iterate over inferiors.
12785 (quit_force): Likewise.
12786
a9ac81b1
SM
127872020-01-17 Simon Marchi <simon.marchi@efficios.com>
12788
12789 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12790 `void *` parameter with proper parameters.
12791 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12792 (print_one_inferior): Change return type to void, replace `void *`
12793 parameter with proper parameters.
12794 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12795 inferiors.
12796 (get_other_inferior): Remove.
12797 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12798 inferiors.
12799
788eca49
SM
128002020-01-17 Simon Marchi <simon.marchi@efficios.com>
12801
12802 * mi/mi-interp.c (report_initial_inferior): Remove.
12803 (mi_interp::init): Use range-based for to iterate over inferiors.
12804
d9bc85b6
SM
128052020-01-17 Simon Marchi <simon.marchi@efficios.com>
12806
12807 * python/py-inferior.c (build_inferior_list): Remove.
12808 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12809
40c94099
CB
128102020-01-16 Christian Biesinger <cbiesinger@google.com>
12811
12812 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12813 (btrace_stitch_trace): Likewise.
12814 * charset.c (intermediate_encoding): Likewise (vaild).
12815 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12816 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12817 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12818
e0cdfe3c
HD
128192020-01-16 Hannes Domani <ssbssa@yahoo.de>
12820
12821 * windows-tdep.c (windows_get_tlb_type):
12822 Add rtl_user_process_parameters type.
12823
790f1718 128242020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 12825 Norbert Lange <nolange79@gmail.com>
790f1718
PA
12826
12827 PR build/24805
12828 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12829 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12830 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12831 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12832 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12833 (ps_plog): Redeclare exported functions with default visibility.
12834
3112ed97
NA
128352020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12836
12837 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12838 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12839
8dc3273e
SM
128402020-01-15 Simon Marchi <simon.marchi@efficios.com>
12841
12842 * infcmd.c (post_create_inferior): Use get_thread_regcache
12843 instead of get_current_regcache.
12844
ff47f4f0
TT
128452020-01-14 Tom Tromey <tom@tromey.com>
12846
12847 PR symtab/12535:
12848 * python/python.c (gdbpy_decode_line): Treat empty string the same
12849 as no argument.
12850
975f45b7
TT
128512020-01-14 Tom Tromey <tom@tromey.com>
12852
12853 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
12854
25e57356
TT
128552020-01-14 Tom Tromey <tom@tromey.com>
12856
12857 * nat/linux-btrace.c: Don't include <config.h>.
12858 * nat/linux-ptrace.c: Don't include <config.h>.
12859 * nat/x86-linux-dregs.c: Don't include <config.h>.
12860
05ea2a05
TT
128612020-01-14 Tom Tromey <tom@tromey.com>
12862
12863 * configure: Rebuild.
12864 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12865
01027315
TT
128662020-01-14 Tom Tromey <tom@tromey.com>
12867
12868 * nat/x86-linux-dregs.c: Include configh.h.
12869 * nat/linux-ptrace.c: Include configh.h.
12870 * nat/linux-btrace.c: Include configh.h.
12871 * defs.h: Include config.h, bfd.h.
12872 * configure.ac: Don't source common.host.
12873 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
12874 * configure: Rebuild.
12875 * acinclude.m4: Update path.
12876 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
12877 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
12878 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
12879 (CLIBS): Add LIBSUPPORT.
12880 (CDEPS): Likewise.
12881 (COMMON_SFILES): Remove gdbsupport files.
12882 (HFILES_NO_SRCDIR): Likewise.
12883 (stamp-version): Update path to create-version.sh.
12884 (ALLDEPFILES): Remove gdbsupport files.
12885
b2ceabe8
TT
128862020-01-14 Tom Tromey <tom@tromey.com>
12887
12888 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
12889 USE_WIN32API when needed.
12890 * configure.ac (USE_WIN32API): Don't define.
12891 (WIN32LIBS): Use WIN32APILIBS.
12892 * configure: Rebuild.
12893
25c51f71
TT
128942020-01-14 Tom Tromey <tom@tromey.com>
12895
12896 * configure: Rebuild.
12897 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
12898
717c684d
BE
128992020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12900
12901 * skip.c (skip_function_command): Make skip w/o arguments use the
12902 name of the inlined function if pc is inside any inlined function.
12903
7da6a5b9
LM
129042020-01-14 Luis Machado <luis.machado@linaro.org>
12905
12906 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
12907 * infrun.c (resume_1): Likewise.
12908 (handle_inferior_event): Remove stale comment.
12909 * linux-nat.c (linux_nat_target::resume): Update comments.
12910 (save_stop_reason): Likewise.
12911 (linux_nat_filter_event): Likewise.
12912 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12913
44e4c775
AB
129142020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12915
12916 * elfread.c (record_minimal_symbol): Set section index to 0 for
12917 non-allocatable sections.
12918
18a8505e
AT
12919
129202020-01-13 Ali Tamur <tamur@google.com>
12921
12922 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12923 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12924 to gdb::optional. Update comments.
12925 (dwo_file): Update comments.
12926 (read_attribute): Update API to take an additional out parameter,
12927 need_reprocess. This is used to mark attributes that need other
12928 attributes (e.g. str_offsets_base) for correct computation which may not
12929 have been read yet.
12930 (read_attribute_reprocess): New function declaration.
12931 (read_addr_index): Likewise.
12932 (read_dwo_str_index): Likewise.
12933 (read_stub_str_index): Likewise.
12934 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12935 (lookup_addr_base): New function definition.
12936 (lookup_ranges_base): Likewise.
12937 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12938 lookup_ranges_base.
12939 (init_cutu_and_read_dies): Update comments.
12940 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12941 unit. This is used to inherit parent's str_offsets_base and addr_base.
12942 Update comments.
12943 (init_cutu_and_read_dies_simple): Reflect API changes.
12944 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12945 (create_cus_hash_table): Change API to take parent compile unit.
12946 Reflect API changes.
12947 (open_and_init_dwo_file): Reflect API changes.
12948 (dwarf2_get_pc_bounds): Update comments.
12949 (dwarf2_record_block_ranges): Likewise.
12950 (read_full_die_1): Change implementation to reprocess attributes that
12951 need str_offsets_base and addr_base.
12952 (partial_die_info::read): Likewise.
12953 (read_attribute_reprocess): New function definition.
12954 (read_attribute_value): Change API to take an additional out parameter,
12955 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12956 when a non-dwo compile unit has index based attributes.
12957 (read_attribute): Reflect API changes.
12958 (read_addr_index_1): Reflect API changes. Update comments.
12959 (dwarf2_read_addr_index_data): Reflect API changes.
12960 (dwarf2_read_addr_index): Likewise.
12961 (read_str_index): Change API and implementation. This becomes a helper
12962 to be used by the new string index related methods. Update error
12963 message and comments.
12964 (read_dwo_str_index): New function definition.
12965 (read_stub_str_index): Likewise.
12966 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12967 * symfile.h (dwarf2_debug_sections): Likewise.
12968 * xcoffread.c (dwarf2_debug_sections): Likewise.
12969
0cac9354
SM
129702020-01-13 Simon Marchi <simon.marchi@efficios.com>
12971
12972 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12973 core_reg_sect type to gdb_byte *.
12974 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12975 * cris-tdep.c (fetch_core_registers): Likewise.
12976 * corelow.c (core_target::get_core_register_section): Change
12977 type of `contents` to gdb::byte_vector.
12978
9a6d629c
AB
129792020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12980
12981 * tui/tui-wingeneral.c (box_win): Position the title in the center
12982 of the border.
12983
d8b2f9e3
SM
129842020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12985
12986 * corelow.c (core_target::get_core_register_section): Use
12987 std::vector instead of alloca.
12988
bb564c58
SM
129892020-01-13 Simon Marchi <simon.marchi@efficios.com>
12990
12991 * warning.m4: Add -Wmissing-declarations to build_warnings.
12992 * configure: Re-generate.
12993
6b366111
SM
129942020-01-13 Simon Marchi <simon.marchi@efficios.com>
12995
12996 * python/python.c (init__gdb_module): Add declaration.
12997
6c265988
SM
129982020-01-13 Simon Marchi <simon.marchi@efficios.com>
12999
13000 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
13001 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
13002 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
13003 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
13004 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
13005 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
13006 * ada-exp.y (_initialize_ada_exp): Add declaration.
13007 * ada-lang.c (_initialize_ada_language): Add declaration.
13008 * ada-tasks.c (_initialize_tasks): Add declaration.
13009 * agent.c (_initialize_agent): Add declaration.
13010 * aix-thread.c (_initialize_aix_thread): Add declaration.
13011 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
13012 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
13013 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
13014 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
13015 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
13016 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
13017 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
13018 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
13019 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
13020 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
13021 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
13022 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
13023 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
13024 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
13025 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
13026 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
13027 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
13028 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
13029 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
13030 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
13031 * annotate.c (_initialize_annotate): Add declaration.
13032 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
13033 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
13034 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
13035 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
13036 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
13037 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
13038 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
13039 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
13040 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
13041 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
13042 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
13043 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
13044 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
13045 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
13046 * auto-load.c (_initialize_auto_load): Add declaration.
13047 * auxv.c (_initialize_auxv): Add declaration.
13048 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
13049 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
13050 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
13051 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
13052 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
13053 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
13054 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
13055 * breakpoint.c (_initialize_breakpoint): Add declaration.
13056 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
13057 * btrace.c (_initialize_btrace): Add declaration.
13058 * charset.c (_initialize_charset): Add declaration.
13059 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
13060 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
13061 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
13062 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
13063 * cli/cli-script.c (_initialize_cli_script): Add declaration.
13064 * cli/cli-style.c (_initialize_cli_style): Add declaration.
13065 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
13066 * coffread.c (_initialize_coffread): Add declaration.
13067 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
13068 * compile/compile.c (_initialize_compile): Add declaration.
13069 * complaints.c (_initialize_complaints): Add declaration.
13070 * completer.c (_initialize_completer): Add declaration.
13071 * copying.c (_initialize_copying): Add declaration.
13072 * corefile.c (_initialize_core): Add declaration.
13073 * corelow.c (_initialize_corelow): Add declaration.
13074 * cp-abi.c (_initialize_cp_abi): Add declaration.
13075 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
13076 * cp-support.c (_initialize_cp_support): Add declaration.
13077 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
13078 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
13079 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
13080 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
13081 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
13082 * ctfread.c (_initialize_ctfread): Add declaration.
13083 * d-lang.c (_initialize_d_language): Add declaration.
13084 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
13085 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
13086 * dbxread.c (_initialize_dbxread): Add declaration.
13087 * dcache.c (_initialize_dcache): Add declaration.
13088 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
13089 * disasm.c (_initialize_disasm): Add declaration.
13090 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
13091 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
13092 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
13093 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
13094 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
13095 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
13096 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
13097 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
13098 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
13099 * elfread.c (_initialize_elfread): Add declaration.
13100 * exec.c (_initialize_exec): Add declaration.
13101 * extension.c (_initialize_extension): Add declaration.
13102 * f-lang.c (_initialize_f_language): Add declaration.
13103 * f-valprint.c (_initialize_f_valprint): Add declaration.
13104 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
13105 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
13106 * filesystem.c (_initialize_filesystem): Add declaration.
13107 * findcmd.c (_initialize_mem_search): Add declaration.
13108 * findvar.c (_initialize_findvar): Add declaration.
13109 * fork-child.c (_initialize_fork_child): Add declaration.
13110 * frame-base.c (_initialize_frame_base): Add declaration.
13111 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
13112 * frame.c (_initialize_frame): Add declaration.
13113 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
13114 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
13115 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
13116 * gcore.c (_initialize_gcore): Add declaration.
13117 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
13118 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
13119 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
13120 * gdbarch.c (_initialize_gdbarch): Add declaration.
13121 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
13122 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
13123 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
13124 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
13125 * go-lang.c (_initialize_go_language): Add declaration.
13126 * go32-nat.c (_initialize_go32_nat): Add declaration.
13127 * guile/guile.c (_initialize_guile): Add declaration.
13128 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
13129 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
13130 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
13131 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
13132 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
13133 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
13134 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
13135 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
13136 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
13137 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
13138 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
13139 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
13140 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
13141 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
13142 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
13143 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
13144 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
13145 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
13146 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
13147 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
13148 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
13149 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
13150 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
13151 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
13152 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
13153 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
13154 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
13155 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
13156 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
13157 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
13158 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
13159 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
13160 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
13161 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
13162 * infcall.c (_initialize_infcall): Add declaration.
13163 * infcmd.c (_initialize_infcmd): Add declaration.
13164 * inflow.c (_initialize_inflow): Add declaration.
13165 * infrun.c (_initialize_infrun): Add declaration.
13166 * interps.c (_initialize_interpreter): Add declaration.
13167 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
13168 * jit.c (_initialize_jit): Add declaration.
13169 * language.c (_initialize_language): Add declaration.
13170 * linux-fork.c (_initialize_linux_fork): Add declaration.
13171 * linux-nat.c (_initialize_linux_nat): Add declaration.
13172 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
13173 * linux-thread-db.c (_initialize_thread_db): Add declaration.
13174 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
13175 * m2-lang.c (_initialize_m2_language): Add declaration.
13176 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
13177 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
13178 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
13179 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
13180 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
13181 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
13182 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
13183 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
13184 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
13185 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
13186 * machoread.c (_initialize_machoread): Add declaration.
13187 * macrocmd.c (_initialize_macrocmd): Add declaration.
13188 * macroscope.c (_initialize_macroscope): Add declaration.
13189 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13190 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13191 * maint.c (_initialize_maint_cmds): Add declaration.
13192 * mdebugread.c (_initialize_mdebugread): Add declaration.
13193 * memattr.c (_initialize_mem): Add declaration.
13194 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13195 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13196 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13197 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13198 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13199 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13200 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13201 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13202 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13203 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13204 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13205 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13206 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13207 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13208 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13209 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13210 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13211 * mipsread.c (_initialize_mipsread): Add declaration.
13212 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13213 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13214 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13215 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13216 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13217 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13218 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13219 * nto-procfs.c (_initialize_procfs): Add declaration.
13220 * objc-lang.c (_initialize_objc_language): Add declaration.
13221 * observable.c (_initialize_observer): Add declaration.
13222 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13223 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13224 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13225 * osabi.c (_initialize_gdb_osabi): Add declaration.
13226 * osdata.c (_initialize_osdata): Add declaration.
13227 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13228 * parse.c (_initialize_parse): Add declaration.
13229 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13230 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13231 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13232 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13233 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13234 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13235 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13236 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13237 * printcmd.c (_initialize_printcmd): Add declaration.
13238 * probe.c (_initialize_probe): Add declaration.
13239 * proc-api.c (_initialize_proc_api): Add declaration.
13240 * proc-events.c (_initialize_proc_events): Add declaration.
13241 * proc-service.c (_initialize_proc_service): Add declaration.
13242 * procfs.c (_initialize_procfs): Add declaration.
13243 * producer.c (_initialize_producer): Add declaration.
13244 * psymtab.c (_initialize_psymtab): Add declaration.
13245 * python/python.c (_initialize_python): Add declaration.
13246 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13247 * record-btrace.c (_initialize_record_btrace): Add declaration.
13248 * record-full.c (_initialize_record_full): Add declaration.
13249 * record.c (_initialize_record): Add declaration.
13250 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13251 * regcache.c (_initialize_regcache): Add declaration.
13252 * reggroups.c (_initialize_reggroup): Add declaration.
13253 * remote-notif.c (_initialize_notif): Add declaration.
13254 * remote-sim.c (_initialize_remote_sim): Add declaration.
13255 * remote.c (_initialize_remote): Add declaration.
13256 * reverse.c (_initialize_reverse): Add declaration.
13257 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13258 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13259 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13260 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13261 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13262 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13263 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13264 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13265 Add declaration.
13266 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13267 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13268 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13269 * rust-exp.y (_initialize_rust_exp): Add declaration.
13270 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13271 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13272 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13273 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13274 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13275 * score-tdep.c (_initialize_score_tdep): Add declaration.
13276 * ser-go32.c (_initialize_ser_dos): Add declaration.
13277 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13278 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13279 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13280 * ser-uds.c (_initialize_ser_socket): Add declaration.
13281 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13282 * serial.c (_initialize_serial): Add declaration.
13283 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13284 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13285 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13286 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13287 * skip.c (_initialize_step_skip): Add declaration.
13288 * sol-thread.c (_initialize_sol_thread): Add declaration.
13289 * solib-aix.c (_initialize_solib_aix): Add declaration.
13290 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13291 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13292 * solib-frv.c (_initialize_frv_solib): Add declaration.
13293 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13294 * solib-target.c (_initialize_solib_target): Add declaration.
13295 * solib.c (_initialize_solib): Add declaration.
13296 * source-cache.c (_initialize_source_cache): Add declaration.
13297 * source.c (_initialize_source): Add declaration.
13298 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13299 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13300 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13301 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13302 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13303 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13304 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13305 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13306 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13307 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13308 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13309 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13310 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13311 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13312 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13313 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13314 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13315 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13316 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13317 * stabsread.c (_initialize_stabsread): Add declaration.
13318 * stack.c (_initialize_stack): Add declaration.
13319 * stap-probe.c (_initialize_stap_probe): Add declaration.
13320 * std-regs.c (_initialize_frame_reg): Add declaration.
13321 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13322 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13323 * symfile.c (_initialize_symfile): Add declaration.
13324 * symmisc.c (_initialize_symmisc): Add declaration.
13325 * symtab.c (_initialize_symtab): Add declaration.
13326 * target.c (_initialize_target): Add declaration.
13327 * target-connection.c (_initialize_target_connection): Add
13328 declaration.
13329 * target-dcache.c (_initialize_target_dcache): Add declaration.
13330 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13331 * thread.c (_initialize_thread): Add declaration.
13332 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13333 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13334 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13335 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13336 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13337 * tracectf.c (_initialize_ctf): Add declaration.
13338 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13339 * tracefile.c (_initialize_tracefile): Add declaration.
13340 * tracepoint.c (_initialize_tracepoint): Add declaration.
13341 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13342 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13343 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13344 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13345 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13346 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13347 * tui/tui.c (_initialize_tui): Add declaration.
13348 * typeprint.c (_initialize_typeprint): Add declaration.
13349 * ui-style.c (_initialize_ui_style): Add declaration.
13350 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13351 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13352 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13353 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13354 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13355 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13356 * unittests/filtered_iterator-selftests.c
13357 (_initialize_filtered_iterator_selftests): Add declaration.
13358 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13359 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13360 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13361 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13362 * unittests/main-thread-selftests.c
13363 (_initialize_main_thread_selftests): Add declaration.
13364 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13365 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13366 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13367 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13368 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13369 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13370 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13371 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13372 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13373 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13374 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13375 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13376 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13377 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13378 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13379 declaration.
13380 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13381 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13382 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13383 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13384 * user-regs.c (_initialize_user_regs): Add declaration.
13385 * utils.c (_initialize_utils): Add declaration.
13386 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13387 * valops.c (_initialize_valops): Add declaration.
13388 * valprint.c (_initialize_valprint): Add declaration.
13389 * value.c (_initialize_values): Add declaration.
13390 * varobj.c (_initialize_varobj): Add declaration.
13391 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13392 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13393 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13394 * windows-nat.c (_initialize_windows_nat): Add declaration.
13395 (_initialize_check_for_gdb_ini): Add declaration.
13396 (_initialize_loadable): Add declaration.
13397 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13398 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13399 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13400 * xcoffread.c (_initialize_xcoffread): Add declaration.
13401 * xml-support.c (_initialize_xml_support): Add declaration.
13402 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13403 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13404 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13405 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13406
e2de1eec
SM
134072020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13408
13409 * regformats/regdat.sh: Generate declaration for init function.
13410
e0037b4c
SM
134112020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13412
13413 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13414 up.
13415 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13416 close_one_inferior>: New methods.
13417 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13418 pass down target to find_inferior_pid.
13419 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13420 Pass down target to find_inferior_ptid.
13421 (gdbsim_target::create_inferior): Pass down target to
13422 add_thread_silent.
13423 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13424 target down to find_inferior_ptid and switch_to_thread.
13425 (gdbsim_target::close): Update to call close_one_inferior.
13426 (struct resume_data): Remove.
13427 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13428 directly, rather than through a void pointer.
13429 (gdbsim_target::resume): Update to call resume_one_inferior.
13430
58920b5b
SM
134312020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13432
13433 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13434
4ec89149
PA
134352020-01-12 Pedro Alves <palves@redhat.com>
13436
13437 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13438 directly for the current inferior instead of
13439 discard_all_inferiors.
13440 (discard_all_inferiors): Delete.
13441
7c392d1d
TT
134422020-01-11 Tom Tromey <tom@tromey.com>
13443
13444 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13445 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13446 deprecated_safe_get_selected_frame.
13447
d9ebdab7
TBA
134482020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13449
13450 * inferior.c (print_inferior): Switch inferior before printing it.
13451
f3c469b9
PA
134522020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13453 Pedro Alves <palves@redhat.com>
13454
13455 * progspace-and-thread.c (switch_to_program_space_and_thread):
13456 Assert there's an inferior for PSPACE. Use
13457 switch_to_inferior_no_thread to switch the inferior too.
13458 * progspace.c (program_space::~program_space): Call
13459 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13460 (program_space::free_all_objfiles): Don't call clear_symtab_users
13461 here.
13462 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13463
65c574f6
PA
134642020-01-10 Pedro Alves <palves@redhat.com>
13465
13466 * NEWS: Mention multi-target debugging, "info connections", and
13467 "add-inferior -no-connection".
13468
2f4fcf00
PA
134692020-01-10 Pedro Alves <palves@redhat.com>
13470
13471 * infrun.c: Include "target-connection.h".
13472 (check_multi_target_resumption): New.
13473 (proceed): Call it.
13474 * target-connection.c (make_target_connection_string): Make
13475 extern.
13476 * target-connection.h (make_target_connection_string): Declare.
13477
121b3efd
PA
134782020-01-10 Pedro Alves <palves@redhat.com>
13479
13480 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13481 * inferior.c (uiout_field_connection): New function.
13482 (print_inferior): Add new "connection-id" column.
13483 (add_inferior_command): Show connection number/string of added
13484 inferior.
13485 * process-stratum-target.h
13486 (process_stratum_target::connection_string): New virtual method.
13487 (process_stratum_target::connection_number): New field.
13488 * remote.c (remote_target::connection_string): New override.
13489 * target-connection.c: New file.
13490 * target-connection.h: New file.
13491 * target.c (decref_target): Remove process_stratum targets from
13492 the connection list.
13493 (target_stack::push): Add process_stratum targets to the
13494 connection list.
13495
4f837581
PA
134962020-01-10 Pedro Alves <palves@redhat.com>
13497
13498 Revert:
13499 2016-04-12 Pedro Alves <palves@redhat.com>
13500 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13501 Remove references to name.
13502 * serial.h (struct serial) <name>: Delete.
13503
f4ec508e
PA
135042020-01-10 Pedro Alves <palves@redhat.com>
13505
13506 * gdbarch-selftests.c (register_to_value_test): Remove "target
13507 already pushed" check.
13508
5b6d1e4f
PA
135092020-01-10 Pedro Alves <palves@redhat.com>
13510 John Baldwin <jhb@FreeBSD.org>
13511
13512 * aarch64-linux-nat.c
13513 (aarch64_linux_nat_target::thread_architecture): Adjust.
13514 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13515 (task_command_1): Likewise.
13516 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13517 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13518 (aix_thread_target::store_registers)
13519 (aix_thread_target::thread_alive): Adjust.
13520 * amd64-fbsd-tdep.c: Include "inferior.h".
13521 (amd64fbsd_get_thread_local_address): Pass down target.
13522 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13523 thread's gdbarch instead of target_gdbarch.
13524 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13525 get_last_target_status.
13526 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13527 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13528 inferiors.
13529 (update_inserted_breakpoint_locations): Skip if inferiors with no
13530 execution.
13531 (update_global_location_list): When handling moribund locations,
13532 find representative inferior for location's pspace, and use thread
13533 count of its process_stratum target.
13534 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13535 * bsd-uthread.c (bsd_uthread_target::wait): Use
13536 as_process_stratum_target and adjust thread_change_ptid and
13537 add_thread calls.
13538 (bsd_uthread_target::update_thread_list): Use
13539 as_process_stratum_target and adjust find_thread_ptid,
13540 thread_change_ptid and add_thread calls.
13541 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13542 find_thread_ptid call.
13543 * corelow.c (add_to_thread_list): Adjust add_thread call.
13544 (core_target_open): Adjust add_thread_silent and thread_count
13545 calls.
13546 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13547 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13548 * event-top.c (async_disconnect): Pop targets from all inferiors.
13549 * exec.c (add_target_sections): Push exec target on all inferiors
13550 sharing the program space.
13551 (remove_target_sections): Remove the exec target from all
13552 inferiors sharing the program space.
13553 (exec_on_vfork): New.
13554 * exec.h (exec_on_vfork): Declare.
13555 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13556 Pass it down.
13557 (fbsd_nat_target::update_thread_list): Adjust.
13558 (fbsd_nat_target::resume): Adjust.
13559 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13560 down.
13561 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13562 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13563 get_thread_arch_regcache call.
13564 * fork-child.c (gdb_startup_inferior): Pass target down to
13565 startup_inferior and set_executing.
13566 * gdbthread.h (struct process_stratum_target): Forward declare.
13567 (add_thread, add_thread_silent, add_thread_with_info)
13568 (in_thread_list): Add process_stratum_target parameter.
13569 (find_thread_ptid(inferior*, ptid_t)): New overload.
13570 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13571 parameter.
13572 (all_threads()): Delete overload.
13573 (all_threads, all_non_exited_threads): Add process_stratum_target
13574 parameter.
13575 (all_threads_safe): Use brace initialization.
13576 (thread_count): Add process_stratum_target parameter.
13577 (set_resumed, set_running, set_stop_requested, set_executing)
13578 (threads_are_executing, finish_thread_state): Add
13579 process_stratum_target parameter.
13580 (switch_to_thread): Use is_current_thread.
13581 * i386-fbsd-tdep.c: Include "inferior.h".
13582 (i386fbsd_get_thread_local_address): Pass down target.
13583 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13584 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13585 have_inferiors check.
13586 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13587 (inf_ptrace_target::attach): Adjust.
13588 * infcall.c (run_inferior_call): Adjust.
13589 * infcmd.c (run_command_1): Pass target to
13590 scoped_finish_thread_state.
13591 (proceed_thread_callback): Skip inferiors with no execution.
13592 (continue_command): Rename 'all_threads' local to avoid hiding
13593 'all_threads' function. Adjust get_last_target_status call.
13594 (prepare_one_step): Adjust set_running call.
13595 (signal_command): Use user_visible_resume_target. Compare thread
13596 pointers instead of inferior_ptid.
13597 (info_program_command): Adjust to pass down target.
13598 (attach_command): Mark target's 'thread_executing' flag.
13599 (stop_current_target_threads_ns): New, factored out from ...
13600 (interrupt_target_1): ... this. Switch inferior before making
13601 target calls.
13602 * inferior-iter.h
13603 (struct all_inferiors_iterator, struct all_inferiors_range)
13604 (struct all_inferiors_safe_range)
13605 (struct all_non_exited_inferiors_range): Filter on
13606 process_stratum_target too. Remove explicit.
13607 * inferior.c (inferior::inferior): Push dummy target on target
13608 stack.
13609 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13610 Add process_stratum_target parameter, and pass it down.
13611 (have_live_inferiors): Adjust.
13612 (switch_to_inferior_and_push_target): New.
13613 (add_inferior_command, clone_inferior_command): Handle
13614 "-no-connection" parameter. Use
13615 switch_to_inferior_and_push_target.
13616 (_initialize_inferior): Mention "-no-connection" option in
13617 the help of "add-inferior" and "clone-inferior" commands.
13618 * inferior.h: Include "process-stratum-target.h".
13619 (interrupt_target_1): Use bool.
13620 (struct inferior) <push_target, unpush_target, target_is_pushed,
13621 find_target_beneath, top_target, process_target, target_at,
13622 m_stack>: New.
13623 (discard_all_inferiors): Delete.
13624 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13625 (all_inferiors, all_non_exited_inferiors): Add
13626 process_stratum_target parameter.
13627 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13628 (target_last_proc_target): New global.
13629 (follow_fork_inferior): Push target on new inferior. Pass target
13630 to add_thread_silent. Call exec_on_vfork. Handle target's
13631 reference count.
13632 (follow_fork): Adjust get_last_target_status call. Also consider
13633 target.
13634 (follow_exec): Push target on new inferior.
13635 (struct execution_control_state) <target>: New field.
13636 (user_visible_resume_target): New.
13637 (do_target_resume): Call target_async.
13638 (resume_1): Set target's threads_executing flag. Consider resume
13639 target.
13640 (commit_resume_all_targets): New.
13641 (proceed): Also consider resume target. Skip threads of inferiors
13642 with no execution. Commit resumtion in all targets.
13643 (start_remote): Pass current inferior to wait_for_inferior.
13644 (infrun_thread_stop_requested): Consider target as well. Pass
13645 thread_info pointer to clear_inline_frame_state instead of ptid.
13646 (infrun_thread_thread_exit): Consider target as well.
13647 (random_pending_event_thread): New inferior parameter. Use it.
13648 (do_target_wait): Rename to ...
13649 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13650 down.
13651 (threads_are_resumed_pending_p, do_target_wait): New.
13652 (prepare_for_detach): Adjust calls.
13653 (wait_for_inferior): New inferior parameter. Handle it. Use
13654 do_target_wait_1 instead of do_target_wait.
13655 (fetch_inferior_event): Adjust. Switch to representative
13656 inferior. Pass target down.
13657 (set_last_target_status): Add process_stratum_target parameter.
13658 Save target in global.
13659 (get_last_target_status): Add process_stratum_target parameter and
13660 handle it.
13661 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13662 (context_switch): Check inferior_ptid == null_ptid before calling
13663 inferior_thread().
13664 (get_inferior_stop_soon): Pass down target.
13665 (wait_one): Rename to ...
13666 (poll_one_curr_target): ... this.
13667 (struct wait_one_event): New.
13668 (wait_one): New.
13669 (stop_all_threads): Adjust.
13670 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13671 event's target.
13672 (switch_back_to_stepped_thread): Also consider target.
13673 (print_stop_event): Update.
13674 (normal_stop): Update. Also consider the resume target.
13675 * infrun.h (wait_for_inferior): Remove declaration.
13676 (user_visible_resume_target): New declaration.
13677 (get_last_target_status, set_last_target_status): New
13678 process_stratum_target parameter.
13679 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13680 process_stratum_target parameter, and use it.
13681 (clear_inline_frame_state (thread_info*)): New.
13682 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13683 process_stratum_target parameter.
13684 (clear_inline_frame_state (thread_info*)): Declare.
13685 * linux-fork.c (delete_checkpoint_command): Pass target down to
13686 find_thread_ptid.
13687 (checkpoint_command): Adjust.
13688 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13689 instead of just tweaking inferior_ptid.
13690 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13691 (exit_lwp): Pass target down to find_thread_ptid.
13692 (attach_proc_task_lwp_callback): Pass target down to
13693 add_thread/set_running/set_executing.
13694 (linux_nat_target::attach): Pass target down to
13695 thread_change_ptid.
13696 (get_detach_signal): Pass target down to find_thread_ptid.
13697 Consider last target status's target.
13698 (linux_resume_one_lwp_throw, resume_lwp)
13699 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13700 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13701 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13702 (linux_nat_target::async_wait_fd): New.
13703 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13704 target down.
13705 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13706 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13707 * linux-thread-db.c (struct thread_db_info::process_target): New
13708 field.
13709 (add_thread_db_info): Save target.
13710 (get_thread_db_info): New process_stratum_target parameter. Also
13711 match target.
13712 (delete_thread_db_info): New process_stratum_target parameter.
13713 Also match target.
13714 (thread_from_lwp): Adjust to pass down target.
13715 (thread_db_notice_clone): Pass down target.
13716 (check_thread_db_callback): Pass down target.
13717 (try_thread_db_load_1): Always push the thread_db target.
13718 (try_thread_db_load, record_thread): Pass target down.
13719 (thread_db_target::detach): Pass target down. Always unpush the
13720 thread_db target.
13721 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13722 target down. Always unpush the thread_db target.
13723 (find_new_threads_callback, thread_db_find_new_threads_2)
13724 (thread_db_target::update_thread_list): Pass target down.
13725 (thread_db_target::pid_to_str): Pass current inferior down.
13726 (thread_db_target::get_thread_local_address): Pass target down.
13727 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13728 target down.
13729 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13730 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13731 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13732 (procfs_init_inferior): Rename to ...
13733 (procfs_target::procfs_init_inferior): ... this and adjust.
13734 (procfs_target::create_inferior, procfs_notice_thread)
13735 (procfs_do_thread_registers): Adjust.
13736 * ppc-fbsd-tdep.c: Include "inferior.h".
13737 (ppcfbsd_get_thread_local_address): Pass down target.
13738 * proc-service.c (ps_xfer_memory): Switch current inferior and
13739 program space as well.
13740 (get_ps_regcache): Pass target down.
13741 * process-stratum-target.c
13742 (process_stratum_target::thread_address_space)
13743 (process_stratum_target::thread_architecture): Pass target down.
13744 * process-stratum-target.h
13745 (process_stratum_target::threads_executing): New field.
13746 (as_process_stratum_target): New.
13747 * ravenscar-thread.c
13748 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13749 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13750 down.
13751 * record-btrace.c (record_btrace_target::info_record): Adjust.
13752 (record_btrace_target::record_method)
13753 (record_btrace_target::record_is_replaying)
13754 (record_btrace_target::fetch_registers)
13755 (get_thread_current_frame_id, record_btrace_target::resume)
13756 (record_btrace_target::wait, record_btrace_target::stop): Pass
13757 target down.
13758 * record-full.c (record_full_wait_1): Switch to event thread.
13759 Pass target down.
13760 * regcache.c (regcache::regcache)
13761 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13762 process_stratum_target parameter and handle it.
13763 (current_thread_target): New global.
13764 (get_thread_regcache): Add process_stratum_target parameter and
13765 handle it. Switch inferior before calling target method.
13766 (get_thread_regcache): Pass target down.
13767 (get_thread_regcache_for_ptid): Pass target down.
13768 (registers_changed_ptid): Add process_stratum_target parameter and
13769 handle it.
13770 (registers_changed_thread, registers_changed): Pass target down.
13771 (test_get_thread_arch_aspace_regcache): New.
13772 (current_regcache_test): Define a couple local test_target_ops
13773 instances and use them for testing.
13774 (readwrite_regcache): Pass process_stratum_target parameter.
13775 (cooked_read_test, cooked_write_test): Pass mock_target down.
13776 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13777 (get_thread_arch_aspace_regcache): Add process_stratum_target
13778 parameter.
13779 (regcache::target): New method.
13780 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13781 (regcache::registers_changed_ptid): Add process_stratum_target
13782 parameter.
13783 (regcache::m_target): New field.
13784 (registers_changed_ptid): Add process_stratum_target parameter.
13785 * remote.c (remote_state::supports_vCont_probed): New field.
13786 (remote_target::async_wait_fd): New method.
13787 (remote_unpush_and_throw): Add remote_target parameter.
13788 (get_current_remote_target): Adjust.
13789 (remote_target::remote_add_inferior): Push target.
13790 (remote_target::remote_add_thread)
13791 (remote_target::remote_notice_new_inferior)
13792 (get_remote_thread_info): Pass target down.
13793 (remote_target::update_thread_list): Skip threads of inferiors
13794 bound to other targets. (remote_target::close): Don't discard
13795 inferiors. (remote_target::add_current_inferior_and_thread)
13796 (remote_target::process_initial_stop_replies)
13797 (remote_target::start_remote)
13798 (remote_target::remote_serial_quit_handler): Pass down target.
13799 (remote_target::remote_unpush_target): New remote_target
13800 parameter. Unpush the target from all inferiors.
13801 (remote_target::remote_unpush_and_throw): New remote_target
13802 parameter. Pass it down.
13803 (remote_target::open_1): Check whether the current inferior has
13804 execution instead of checking whether any inferior is live. Pass
13805 target down.
13806 (remote_target::remote_detach_1): Pass down target. Use
13807 remote_unpush_target.
13808 (extended_remote_target::attach): Pass down target.
13809 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13810 (remote_target::append_resumption): Pass down target.
13811 (remote_target::append_pending_thread_resumptions)
13812 (remote_target::remote_resume_with_hc, remote_target::resume)
13813 (remote_target::commit_resume): Pass down target.
13814 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13815 (remote_target::interrupt_query)
13816 (remote_target::remove_new_fork_children)
13817 (remote_target::check_pending_events_prevent_wildcard_vcont)
13818 (remote_target::remote_parse_stop_reply)
13819 (remote_target::process_stop_reply): Pass down target.
13820 (first_remote_resumed_thread): New remote_target parameter. Pass
13821 it down.
13822 (remote_target::wait_as): Pass down target.
13823 (unpush_and_perror): New remote_target parameter. Pass it down.
13824 (remote_target::readchar, remote_target::remote_serial_write)
13825 (remote_target::getpkt_or_notif_sane_1)
13826 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13827 down target.
13828 (remote_target::mourn_inferior): Pass down target. Use
13829 remote_unpush_target.
13830 (remote_target::core_of_thread)
13831 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13832 (remote_target::pid_to_exec_file)
13833 (remote_target::thread_handle_to_thread_info): Pass down target.
13834 (remote_target::async_wait_fd): New.
13835 * riscv-fbsd-tdep.c: Include "inferior.h".
13836 (riscv_fbsd_get_thread_local_address): Pass down target.
13837 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13838 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13839 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13840 Adjust.
13841 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13842 * solib-svr4.c (enable_break): Pass down target.
13843 * spu-multiarch.c (parse_spufs_run): Pass down target.
13844 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13845 * target-delegates.c: Regenerate.
13846 * target.c (g_target_stack): Delete.
13847 (current_top_target): Return the current inferior's top target.
13848 (target_has_execution_1): Refer to the passed-in inferior's top
13849 target.
13850 (target_supports_terminal_ours): Check whether the initial
13851 inferior was already created.
13852 (decref_target): New.
13853 (target_stack::push): Incref/decref the target.
13854 (push_target, push_target, unpush_target): Adjust.
13855 (target_stack::unpush): Defref target.
13856 (target_is_pushed): Return bool. Adjust to refer to the current
13857 inferior's target stack.
13858 (dispose_inferior): Delete, and inline parts ...
13859 (target_preopen): ... here. Only dispose of the current inferior.
13860 (target_detach): Hold strong target reference while detaching.
13861 Pass target down.
13862 (target_thread_name): Add assertion.
13863 (target_resume): Pass down target.
13864 (target_ops::beneath, find_target_at): Adjust to refer to the
13865 current inferior's target stack.
13866 (get_dummy_target): New.
13867 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13868 has a thread running.
13869 (initialize_targets): Rename to ...
13870 (_initialize_target): ... this.
13871 * target.h: Include "gdbsupport/refcounted-object.h".
13872 (struct target_ops): Inherit refcounted_object.
13873 (target_ops::shortname, target_ops::longname): Make const.
13874 (target_ops::async_wait_fd): New method.
13875 (decref_target): Declare.
13876 (struct target_ops_ref_policy): New.
13877 (target_ops_ref): New typedef.
13878 (get_dummy_target): Declare function.
13879 (target_is_pushed): Return bool.
13880 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
13881 (all_matching_threads_iterator::all_matching_threads_iterator):
13882 Handle filter target.
13883 * thread-iter.h (struct all_matching_threads_iterator, struct
13884 all_matching_threads_range, class all_non_exited_threads_range):
13885 Filter by target too. Remove explicit.
13886 * thread.c (threads_executing): Delete.
13887 (inferior_thread): Pass down current inferior.
13888 (clear_thread_inferior_resources): Pass down thread pointer
13889 instead of ptid_t.
13890 (add_thread_silent, add_thread_with_info, add_thread): Add
13891 process_stratum_target parameter. Use it for thread and inferior
13892 searches.
13893 (is_current_thread): New.
13894 (thread_info::deletable): Use it.
13895 (find_thread_ptid, thread_count, in_thread_list)
13896 (thread_change_ptid, set_resumed, set_running): New
13897 process_stratum_target parameter. Pass it down.
13898 (set_executing): New process_stratum_target parameter. Pass it
13899 down. Adjust reference to 'threads_executing'.
13900 (threads_are_executing): New process_stratum_target parameter.
13901 Adjust reference to 'threads_executing'.
13902 (set_stop_requested, finish_thread_state): New
13903 process_stratum_target parameter. Pass it down.
13904 (switch_to_thread): Also match inferior.
13905 (switch_to_thread): New process_stratum_target parameter. Pass it
13906 down.
13907 (update_threads_executing): Reimplement.
13908 * top.c (quit_force): Pop targets from all inferior.
13909 (gdb_init): Don't call initialize_targets.
13910 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13911 Declare.
13912 (windows_add_thread, windows_delete_thread): Adjust.
13913 (get_windows_debug_event): Rename to ...
13914 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13915 * tracefile-tfile.c (tfile_target_open): Pass down target.
13916 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13917 Forward declare.
13918 (switch_to_thread): Add process_stratum_target parameter.
13919 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13920 parameter. Use it.
13921 (mi_on_resume): Pass target down.
13922 * nat/fork-inferior.c (startup_inferior): Add
13923 process_stratum_target parameter. Pass it down.
13924 * nat/fork-inferior.h (startup_inferior): Add
13925 process_stratum_target parameter.
13926 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13927
75c6c844
PA
139282020-01-10 Pedro Alves <palves@redhat.com>
13929
13930 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13931 directly. Instead find the first thread in the thread list and
13932 use switch_to_thread.
13933
78f2c40a
PA
139342020-01-10 Pedro Alves <palves@redhat.com>
13935
13936 * remote.c (remote_target::remote_add_inferior): Don't bind a
13937 process to the current inferior if the current inferior is already
13938 bound to a process.
13939
e7af6c70
TBA
139402020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13941 Pedro Alves <palves@redhat.com>
13942
13943 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13944 If no process is specified, return null_ptid instead of
13945 inferior_ptid.
13946 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13947 TARGET_WAITKIND_SIGNALLED with no pid.
13948
31ba933e
PA
139492020-01-10 Pedro Alves <palves@redhat.com>
13950
13951 * remote.c (first_remote_resumed_thread): New.
13952 (remote_target::wait_as): Use it as default event_ptid instead of
13953 inferior_ptid.
13954
735fc2ca
PA
139552020-01-10 Pedro Alves <palves@redhat.com>
13956
13957 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13958
c17e02e1
PA
139592020-01-10 Pedro Alves <palves@redhat.com>
13960
13961 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13962 not -1.
13963
ab1ddbcf
PA
139642020-01-10 Pedro Alves <palves@redhat.com>
13965
13966 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13967 ptid to get_last_target_status.
13968 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13969 ptid to get_last_target_status.
13970 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13971 get_last_target_status.
13972 (info_program_command): Don't pass a target_waitstatus to
13973 get_last_target_status.
13974 * infrun.c (init_wait_for_inferior): Use
13975 nullify_last_target_wait_ptid.
13976 (get_last_target_status): Handle nullptr arguments.
13977 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13978 (print_stop_event): Don't pass a ptid to get_last_target_status.
13979 (normal_stop): Don't pass a ptid to get_last_target_status.
13980 * infrun.h (get_last_target_status, set_last_target_status): Move
13981 comments here and update.
13982 (nullify_last_target_wait_ptid): Declare.
13983 * linux-fork.c (fork_load_infrun_state): Remove local extern
13984 declaration of nullify_last_target_wait_ptid.
13985 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13986 to get_last_target_status.
13987
f3f8ece4
PA
139882020-01-10 Pedro Alves <palves@redhat.com>
13989
13990 * gdbthread.h (scoped_restore_current_thread)
13991 <dont_restore, restore, m_dont_restore>: Declare.
13992 * thread.c (thread_alive): Add assertion. Return bool.
13993 (switch_to_thread_if_alive): New.
13994 (prune_threads): Switch inferior/thread.
13995 (print_thread_info_1): Switch thread before calling target methods.
13996 (scoped_restore_current_thread::restore): New, factored out from
13997 ...
13998 (scoped_restore_current_thread::~scoped_restore_current_thread):
13999 ... this.
14000 (scoped_restore_current_thread::scoped_restore_current_thread):
14001 Add assertion.
14002 (thread_apply_all_command, thread_select): Use
14003 switch_to_thread_if_alive.
14004 * infrun.c (proceed, restart_threads, handle_signal_stop)
14005 (switch_back_to_stepped_thread): Switch current thread before
14006 calling target methods.
14007
db2d40f7
PA
140082020-01-10 Pedro Alves <palves@redhat.com>
14009
14010 * inferior.c (switch_to_inferior_no_thread): New function,
14011 factored out from ...
14012 (inferior_command): ... here.
14013 * inferior.h (switch_to_inferior_no_thread): Declare.
14014 * mi/mi-main.c (run_one_inferior): Use
14015 switch_to_inferior_no_thread.
14016
bd420a2d
PA
140172020-01-10 Pedro Alves <palves@redhat.com>
14018
14019 * infcmd.c (kill_command): Remove dead code.
14020
ddf5db90
PA
140212020-01-10 Pedro Alves <palves@redhat.com>
14022
14023 * remote.c (remote_target::mourn_inferior): No longer check
14024 whether the target is running.
14025
5018ce90
PA
140262020-01-10 Pedro Alves <palves@redhat.com>
14027
14028 * corelow.c (core_target::has_execution): Change parameter type to
14029 inferior pointer.
14030 * inferior.c (number_of_live_inferiors): Use
14031 inferior::has_execution instead of target_has_execution_1.
14032 * inferior.h (inferior::has_execution): New.
14033 * linux-thread-db.c (thread_db_target::update_thread_list): Use
14034 inferior::has_execution instead of target_has_execution_1.
14035 * process-stratum-target.c
14036 (process_stratum_target::has_execution): Change parameter type to
14037 inferior pointer. Check the inferior's PID instead of
14038 inferior_ptid.
14039 * process-stratum-target.h
14040 (process_stratum_target::has_execution): Change parameter type to
14041 inferior pointer.
14042 * record-full.c (record_full_core_target::has_execution): Change
14043 parameter type to inferior pointer.
14044 * target.c (target_has_execution_1): Change parameter type to
14045 inferior pointer.
14046 (target_has_execution_current): Adjust.
14047 * target.h (target_ops::has_execution): Change parameter type to
14048 inferior pointer.
14049 (target_has_execution_1): Change parameter type to inferior
14050 pointer. Change return type to bool.
14051 * tracefile.h (tracefile_target::has_execution): Change parameter
14052 type to inferior pointer.
14053
74375d18
PA
140542020-01-10 Pedro Alves <palves@redhat.com>
14055
14056 * exceptions.c (print_flush): Remove current_top_target() check.
14057
acdf84a6
PA
140582020-01-10 Pedro Alves <palves@redhat.com>
14059
14060 * remote.c (show_remote_exec_file): Show the current inferior's
14061 exec-file instead of the command variable's value.
14062
ec506636
PA
140632020-01-10 Pedro Alves <palves@redhat.com>
14064
14065 * record-full.c (record_full_resume_ptid): New global.
14066 (record_full_target::resume): Set it.
14067 (record_full_wait_1): Use record_full_resume_ptid instead of
14068 inferior_ptid.
14069
873657b9
PA
140702020-01-10 Pedro Alves <palves@redhat.com>
14071
14072 * gdbthread.h (scoped_restore_current_thread)
14073 <dont_restore, restore, m_dont_restore>: Declare.
14074 * thread.c (thread_alive): Add assertion. Return bool.
14075 (switch_to_thread_if_alive): New.
14076 (prune_threads): Switch inferior/thread.
14077 (print_thread_info_1): Switch thread before calling target methods.
14078 (scoped_restore_current_thread::restore): New, factored out from
14079 ...
14080 (scoped_restore_current_thread::~scoped_restore_current_thread):
14081 ... this.
14082 (scoped_restore_current_thread::scoped_restore_current_thread):
14083 Add assertion.
14084 (thread_apply_all_command, thread_select): Use
14085 switch_to_thread_if_alive.
14086
7f0ae84c
GB
140872020-01-10 George Barrett <bob@bob131.so>
14088
14089 * stap-probe.c (stap_modify_semaphore): Don't check for null
14090 semaphores.
14091 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
14092 for null semaphores.
14093
f5a7c406
AB
140942020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14095
14096 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
14097 all source windows, and maintain horizontal scroll status while
14098 doing so.
14099
9ae6bf64
TT
141002020-01-09 Tom Tromey <tom@tromey.com>
14101
14102 PR tui/18932:
14103 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
14104 update_source_window, not print_source_lines.
14105
b2efe70c
AB
141062020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14107
14108 * tui/tui.c (tui_enable): Register tui hooks after calling
14109 tui_display_main.
14110
5f23a082
CB
141112020-01-09 Christian Biesinger <cbiesinger@google.com>
14112
14113 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
14114
3061113b
SM
141152020-01-08 Simon Marchi <simon.marchi@efficios.com>
14116
14117 * thread.c (print_thread_info_1): Fix indentation.
14118
57d75002
CB
141192020-01-09 Christian Biesinger <cbiesinger@google.com>
14120
14121 * symtab.c (general_symbol_info::compute_and_set_names): Move the
14122 unique_xmalloc_ptr outside the if to always free the demangled name.
14123
6a053cb1
TT
141242020-01-08 Tom Tromey <tromey@adacore.com>
14125
14126 * xcoffread.c (enter_line_range, read_xcoff_symtab)
14127 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
14128 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
14129 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
14130 Remove.
14131 (section_offsets): New typedef.
14132 * symtab.c (fixup_section, get_msymbol_address): Update.
14133 * symmisc.c (dump_msymbols): Update.
14134 * symfile.h (relative_addr_info_to_section_offsets)
14135 (symfile_map_offsets_to_segments): Update.
14136 * symfile.c (build_section_addr_info_from_objfile)
14137 (init_objfile_sect_indices): Update.
14138 (struct place_section_arg): Change type of "offsets".
14139 (place_section): Update.
14140 (relative_addr_info_to_section_offsets): Change type of
14141 "section_offsets". Remove "num_sections" parameter.
14142 (default_symfile_offsets, syms_from_objfile_1)
14143 (set_objfile_default_section_offset): Update.
14144 (reread_symbols): No need to preserve section offsets by hand.
14145 (symfile_map_offsets_to_segments): Change type of "offsets".
14146 * stap-probe.c (relocate_address): Update.
14147 * stabsread.h (process_one_symbol): Update.
14148 * solib-target.c (struct lm_info_target) <offsets>: Change type.
14149 (solib_target_relocate_section_addresses): Update.
14150 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
14151 Update.
14152 * solib-frv.c (frv_relocate_main_executable): Update.
14153 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
14154 * solib-aix.c (solib_aix_get_section_offsets): Change return
14155 type.
14156 (solib_aix_solib_create_inferior_hook): Update.
14157 * remote.c (remote_target::get_offsets): Update.
14158 * psymtab.c (find_pc_sect_psymtab): Update.
14159 * psympriv.h (struct partial_symbol) <address, text_low,
14160 text_high>: Update.
14161 * objfiles.h (obj_section_offset): Update.
14162 (struct objfile) <section_offsets>: Change type.
14163 <num_sections>: Remove.
14164 (objfile_relocate): Update.
14165 * objfiles.c (entry_point_address_query): Update
14166 (relocate_one_symbol): Change type of "section_offsets".
14167 (objfile_relocate1, objfile_relocate1): Change type of
14168 "new_offsets".
14169 (objfile_rebase1): Update.
14170 * mipsread.c (mipscoff_symfile_read): Update.
14171 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
14172 parameter.
14173 * mdebugread.c (parse_symbol): Change type of "section_offsets".
14174 (parse_external, psymtab_to_symtab_1): Update.
14175 * machoread.c (macho_symfile_offsets): Update.
14176 * ia64-tdep.c (ia64_find_unwind_table): Update.
14177 * hppa-tdep.c (read_unwind_info): Update.
14178 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
14179 * dwarf2read.c (create_addrmap_from_index)
14180 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14181 (process_psymtab_comp_unit_reader, add_partial_symbol)
14182 (add_partial_subprogram, process_full_comp_unit)
14183 (read_file_scope, read_func_scope, read_lexical_block_scope)
14184 (read_call_site_scope, dwarf2_rnglists_process)
14185 (dwarf2_ranges_process, dwarf2_ranges_read)
14186 (dwarf_decode_lines_1, var_decode_location, new_symbol)
14187 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
14188 Update.
14189 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14190 Update.
14191 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14192 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14193 (process_one_symbol): Change type of "section_offsets".
14194 * ctfread.c (get_objfile_text_range): Update.
14195 * coffread.c (coff_symtab_read, enter_linenos)
14196 (process_coff_symbol): Update.
14197 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14198 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14199
456e800a
TT
142002020-01-08 Tom Tromey <tromey@adacore.com>
14201
14202 * dwarf2read.c (parse_macro_definition): Use std::string.
14203 (parse_macro_definition): Likewise.
14204
6dfa2fc2
TT
142052020-01-08 Tom Tromey <tromey@adacore.com>
14206
14207 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14208 (ATTR_ALLOC_CHUNK): Remove.
14209
421d1616
TT
142102020-01-08 Tom Tromey <tromey@adacore.com>
14211
14212 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14213
43816ebc
TT
142142020-01-08 Tom Tromey <tromey@adacore.com>
14215
14216 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14217 (dwarf2_compute_name, open_dwo_file): Likewise.
14218 (process_enumeration_scope): Use std::vector.
14219 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14220 (partial_die_info::fixup, dwarf2_start_subfile)
14221 (guess_full_die_structure_name, dwarf2_name): Likewise.
14222 (determine_prefix): Update.
14223 (guess_full_die_structure_name): Make return type const.
14224 (partial_die_full_name): Return unique_xmalloc_ptr.
14225 (DW_FIELD_ALLOC_CHUNK): Remove.
14226
4212d509
TT
142272020-01-07 Tom Tromey <tromey@adacore.com>
14228
14229 PR build/24937:
14230 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14231
06a6207a
JT
142322020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14233
14234 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14235
153d79c4
AB
142362020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14237
14238 * stack.c (print_frame_info): Move disassemble_next_line code
14239 inside source_print block.
14240
66182876
EZ
142412020-01-06 Eli Zaretskii <eliz@gnu.org>
14242
14243 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14244 gdb/signals.h, as we are now using native signal symbols.
14245
cbfa8581
SV
142462020-01-06 Shahab Vahedi <shahab@synopsys.com>
14247
14248 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14249 overflow by an early check of content vs threshold.
aac66a4c 14250 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
14251 Likewise.
14252
3f602821
EZ
142532020-01-06 Eli Zaretskii <eliz@gnu.org>
14254
14255 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14256
a08c904d
JT
142572020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14258
14259 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14260 export table if no section contains it's RVA.
14261
89a65580
EZ
142622020-01-06 Eli Zaretskii <eliz@gnu.org>
14263
14264 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14265
8b7fcda2
HD
142662020-01-06 Hannes Domani <ssbssa@yahoo.de>
14267
14268 * source.c (print_source_lines_base): Set last_line_listed.
14269
a61b4f69
SV
142702020-01-06 Shahab Vahedi <shahab@synopsys.com>
14271
14272 * tui/tui-disasm.c: Remove trailing spaces.
14273
559e7e50
EZ
142742020-01-06 Eli Zaretskii <eliz@gnu.org>
14275 Pedro Alves <palves@redhat.com>
14276
14277 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14278 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14279 (windows_gdb_signal_to_target): New function, uses the above
14280 enumeration to convert GDB internal signal codes to equivalent
14281 Windows codes.
14282 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14283 * windows-nat.c: Include "gdb_wait.h".
14284 (get_windows_debug_event): Extract the fatal exception from the
14285 exit status and convert to the equivalent Posix signal number.
14286 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14287 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14288 * gdbsupport/gdb_wait.c: New file, implements
14289 windows_status_to_termsig.
14290 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14291 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14292
f2302a34
AB
142932020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14294
14295 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14296 show_layout.
14297
6a5206eb
LM
142982020-01-05 Luis Machado <luis.machado@linaro.org>
14299
14300 * aarch64-linux-nat.c
14301 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14302 and bfd_mach_aarch64.
14303
6ec1d75e
PW
143042020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14305
14306 * ui-file.c (stdio_file::can_emit_style_escape)
14307 (tee_file::can_emit_style_escape): Ensure style is used also on
14308 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14309 to gdb_stdout.
14310 * main.c (set_gdb_data_directory): Use file style to output the
14311 warning that the given pathname is not a directory.
14312 * top.c (show_history_filename, gdb_safe_append_history)
14313 (show_gdb_datadir): Use file style.
14314
44f81a76
HD
143152020-01-03 Hannes Domani <ssbssa@yahoo.de>
14316
14317 * solib-target.c (struct lm_info_target):
14318 Change offsets to be a unique_xmalloc_ptr.
14319 (solib_target_relocate_section_addresses): Update.
14320
25057eb0
HD
143212020-01-03 Hannes Domani <ssbssa@yahoo.de>
14322
14323 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14324
6e2118f5
BE
143252020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14326
14327 * MAINTAINERS (Write After Approval): Add myself.
14328
8133c7dc
LM
143292020-01-02 Luis Machado <luis.machado@linaro.org>
14330
14331 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14332 Cell BE architecture.
14333 * target.h (struct target_ops) <thread_architecture>: Likewise.
14334
48189bec
HD
143352020-01-01 Hannes Domani <ssbssa@yahoo.de>
14336
14337 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14338
ead1063b
HD
143392020-01-01 Hannes Domani <ssbssa@yahoo.de>
14340
14341 * MAINTAINERS (Write After Approval): Add myself.
14342
e5d78223
JB
143432020-01-01 Joel Brobecker <brobecker@adacore.com>
14344
14345 * gdbarch.sh: Update copyright year range of generated files.
14346
b811d2c2
JB
143472020-01-01 Joel Brobecker <brobecker@adacore.com>
14348
14349 Update copyright year range in all GDB files.
14350
5f4def5c
JB
143512020-01-01 Joel Brobecker <brobecker@adacore.com>
14352
14353 * copyright.py: Convert to Python 3.
14354
51fd4002
JB
143552020-01-01 Joel Brobecker <brobecker@adacore.com>
14356
14357 * copyright.py: Adapt after move of gnulib directory from gdb
14358 directory to toplevel directory.
14359
5fb651f2
JB
143602020-01-01 Joel Brobecker <brobecker@adacore.com>
14361
14362 * copyright.py (main): Exit if run from the wrong directory.
14363
5dd8bf88
JB
143642020-01-01 Joel Brobecker <brobecker@adacore.com>
14365
14366 * top.c (print_gdb_version): Change copyright year to 2020.
14367
9f71dacb 143682020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 14369
9f71dacb 14370 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 14371
9f71dacb 14372For older changes see ChangeLog-2019.
c906108c
SS
14373\f
14374Local Variables:
14375mode: change-log
14376left-margin: 8
14377fill-column: 74
14378version-control: never
57da7796 14379coding: utf-8
c906108c 14380End: