Remove test duplicate from gdb.tui
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
8f9929bb
GR
12020-09-26 Gareth Rees <grees@undo.io> (tiny change)
2
3 PR python/26586
4 * cli/cli-script.c (execute_control_commands): don't set
5 instream to nullptr here as this breaks the from_tty argument
6 to gdb.execute in Python.
7 (execute_user_command): set instream to nullptr here instead.
8
956bdb59
SM
92020-09-25 Simon Marchi <simon.marchi@efficios.com>
10
11 * infrun.h (infrun_debug_printf): Fix formatting.
12 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
13
3b93626b
SJ
142020-09-25 Saagar Jha <saagar@saagarjha.com>
15
16 * compile/compile-object-load.h (struct munmap_list): Add
17 explicitly-defined move constructor.
18
b551a89f
TT
192020-09-24 Tom Tromey <tromey@adacore.com>
20
21 PR tui/26638:
22 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
23 method.
24 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
25 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
26 (tui_prev_win): Rewrite.
27
99bb393f
HD
282020-09-23 Hannes Domani <ssbssa@yahoo.de>
29
30 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
31 in WOW64 processes as SIGINT.
32 * nat/windows-nat.h: Make wow64_process a shared variable.
33 * windows-nat.c: Remove static wow64_process variable.
34
20a5fcbd
TT
352020-09-23 Tom Tromey <tom@tromey.com>
36
37 PR symtab/25470:
38 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
39 offset and bit size.
40 * printcmd.c (print_scalar_formatted): Handle zero-length
41 integer.
42 (print_scalar_formatted): Use bit_size_differs_p.
43 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
44 constant.
45 (union type_specific): <int_stuff>: New member.
46 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
47 methods.
48 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
49 TYPE_SPECIFIC_FIELD.
50 (recursive_dump_type, copy_type_recursive): Update.
51 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
52 DW_AT_data_bit_offset.
53
bac51ab7
TT
542020-09-23 Tom Tromey <tom@tromey.com>
55
56 * utils.h (class gdb_argv): Add move operators.
57 <append>: New methods.
58 * compile/compile.c (build_argc_argv): Remove.
59 (compile_args_argc): Remove.
60 (compile_args_argv): Change type.
61 (set_compile_args): Simplify.
62 (append_args): Remove.
63 (filter_args): Remove argcp parameter.
64 (get_args): Return gdb_argv. Simplify.
65 (compile_to_object): Update.
66
92677124
TT
672020-09-23 Tom Tromey <tom@tromey.com>
68
69 * compile/compile-object-run.c (do_module_cleanup)
70 <~do_module_cleanup> :Remove.
71 (do_module_cleanup): Update.
72 * compile/compile-object-load.h (struct munmap_list): Add move
73 assignment operator.
74 <source_file>: Now a std::string.
75 <munmap_list>: Rename. No longer a pointer.
76 * compile/compile-object-load.c (struct setup_sections_data): Add
77 constructor.
78 <setup_one_section>: Declare.
79 <munmap_list>: Move earlier.
80 <m_bfd>: New member.
81 <m_last_size, m_last_section_first, m_last_prot,
82 m_last_max_alignment>: Rename, add initializers where needed.
83 (setup_sections_data::setup_one_section): Rename from
84 setup_sections. Update.
85 (compile_object_load): Update. Don't use bfd_map_over_sections.
86
e616f60a
TT
872020-09-23 Tom Tromey <tom@tromey.com>
88
89 * compile/compile-object-run.c (struct do_module_cleanup): Add
90 parameters to constructor. Update destructor.
91 <source_file, scope, scope_data, out_value_type, out_value_addr,
92 munmap_list_head, objfile_name_string>: Remove.
93 <module>: New member.
94 (do_module_cleanup): Update.
95 (compile_object_run): Update.
96
e947a848
TT
972020-09-23 Tom Tromey <tom@tromey.com>
98
99 * compile/compile.c (eval_compile_command): Update.
100 * compile/compile-object-run.h (compile_object_run): Take a
101 compile_module_up.
102 * compile/compile-object-run.c (compile_object_run): Take a
103 compile_module_up.
104 * compile/compile-object-load.h (struct compile_module): Add
105 constructor, destructor.
106 (compile_module_up): New typedef.
107 (compile_object_load): Return compile_object_up.
108 * compile/compile-object-load.c (compile_object_load): Return
109 compile_module_up.
110
0dbf6ee6
TT
1112020-09-23 Tom Tromey <tom@tromey.com>
112
113 * compile/compile-object-run.c (struct do_module_cleanup): Add
114 constructor, destructor.
115 <objfile_name_string>: Don't use struct hack.
116 (do_module_cleanup): Use delete.
117 (compile_object_run): Use new.
118
ebe824f5
TT
1192020-09-23 Tom Tromey <tom@tromey.com>
120
121 * compile/compile-cplus-types.c
122 (compile_cplus_convert_struct_or_union): Use std::vector.
123 (compile_cplus_convert_func): Likewise.
124 * compile/compile-c-types.c (convert_func): Use std::vector.
125
5dd918d9
TT
1262020-09-21 Tom Tromey <tromey@adacore.com>
127
128 * sparc-tdep.c (sparc32_skip_prologue): Use
129 skip_prologue_using_sal.
130
5486c517
TT
1312020-09-19 Tom Tromey <tom@tromey.com>
132
133 * symfile.c (add_section_size_callback): Remove.
134 (load_one_section): Rename from load_section_callback. Change
135 parameters.
136 (generic_load): Use foreach.
137
8a6bb1d1
TT
1382020-09-19 Tom Tromey <tom@tromey.com>
139
140 * exec.c (add_to_section_table): Remove.
141 (build_section_table): Use foreach.
142
08f93a1a
TT
1432020-09-19 Tom Tromey <tom@tromey.com>
144
145 * elfread.c (elf_locate_sections): Change parameters.
146 (elf_symfile_read): Use foreach.
147
03cd72b8
TT
1482020-09-19 Tom Tromey <tom@tromey.com>
149
150 * cli/cli-dump.c (struct callback_data): Remove.
151 (restore_one_section): Rename from restore_section_callback.
152 Change parameters.
153 (restore_binary_file): Change parameters.
154 (restore_command): Use foreach.
155
f4f2b85f
TT
1562020-09-19 Tom Tromey <tom@tromey.com>
157
158 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
159 (gcore_copy_callback): Likewise.
160 (gcore_memory_sections): Use foreach.
161
b35c1d1c
TT
1622020-09-19 Tom Tromey <tom@tromey.com>
163
164 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
165 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
166 parameters.
167 (generic_elf_osabi_sniffer): Use foreach.
168 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
169 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
170
5bb6e9dd
TT
1712020-09-19 Tom Tromey <tom@tromey.com>
172
173 * dwarf2/read.c (locate_dwz_sections): Change parameters.
174 (dwarf2_get_dwz_file): Use foreach.
175 (dwarf2_locate_dwo_sections): Change parameters.
176 (open_and_init_dwo_file): Use foreach.
177 (dwarf2_locate_common_dwp_sections): Change parameters.
178 (open_and_init_dwp_file): Use foreach.
179
ad7277da
TT
1802020-09-19 Tom Tromey <tom@tromey.com>
181
182 * symfile.h: (find_lowest_section): Don't declare.
183 * symfile.c (find_lowest_section): Now static. Change
184 parameters.
185 (struct place_section_arg): Remove.
186 (place_section): Change parameters.
187 (addr_info_make_relative): Use foreach.
188 (symfile_dummy_outputs): Remove.
189 (default_symfile_relocate): Use foreach.
190
cb814f2e
TT
1912020-09-19 Tom Tromey <tom@tromey.com>
192
193 * objfiles.c (add_to_objfile_sections): Rename from
194 add_to_objfile_sections_full.
195 (add_to_objfile_sections): Remove.
196 (build_objfile_section_table): Use foreach.
197
3cabfd26
TT
1982020-09-19 Tom Tromey <tom@tromey.com>
199
200 * stap-probe.c (get_stap_base_address_1): Remove.
201 (get_stap_base_address): Use foreach.
202
1ce51eb5
TT
2032020-09-19 Tom Tromey <tom@tromey.com>
204
205 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
206 parameters.
207 (gdb_bfd_close_or_warn): Use foreach.
208
a190fabb
TT
2092020-09-19 Tom Tromey <tom@tromey.com>
210
211 * corelow.c (add_to_thread_list): Change parameters.
212 (core_target_open): Use foreach.
213
cafb0d81
TT
2142020-09-19 Tom Tromey <tom@tromey.com>
215
216 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
217 existing function.
218
c8d5abea
AB
2192020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
220
221 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
222 for arrays.
223
6d816919
AB
2242020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
225
226 * eval.c: Remove 'f-lang.h' include.
227 (value_f90_subarray): Moved to f-lang.c.
228 (eval_call): Renamed to...
229 (evaluate_subexp_do_call): ...this, is no longer static, header
230 comment moved into header file.
231 (evaluate_funcall): Update call to eval_call.
232 (skip_undetermined_arglist): Moved to f-lang.c.
233 (fortran_value_subarray): Likewise.
234 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
235 moved to evaluate_subexp_f.
236 (calc_f77_array_dims): Moved to f-lang.c
237 * expprint.c (print_subexp_funcall): New function.
238 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
239 moved to print_subexp_f, OP_FUNCALL uses new function.
240 (dump_subexp_body_funcall): New function.
241 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
242 moved to dump_subexp_f, OP_FUNCALL uses new function.
243 * expression.h (evaluate_subexp_do_call): Declare.
244 * f-lang.c (value_f90_subarray): Moved from eval.c.
245 (skip_undetermined_arglist): Likewise.
246 (calc_f77_array_dims): Likewise.
247 (fortran_value_subarray): Likewise.
248 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
249 (operator_length_f): Likewise.
250 (print_subexp_f): Likewise.
251 (dump_subexp_body_f): Likewise.
252 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
253 declaration of this operation to here.
254 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
255 support moved to operator_length_f.
256 * parser-defs.h (dump_subexp_body_funcall): Declare.
257 (print_subexp_funcall): Declare.
258 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
259 fortran-operator.def.
260
8c37706a
AB
2612020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
262
263 * eval.c (fortran_value_subarray): New function, content is taken
264 from...
265 (evaluate_subexp_standard): ...here, in two places. Now arrays
266 and strings both call the new function.
267 (calc_f77_array_dims): Add header comment, handle strings.
268
14f9473c
VC
2692020-09-18 Victor Collod <vcollod@nvidia.com>
270
271 PR gdb/26635
272 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
273 (i386_analyze_prologue): Call i386_skip_endbr.
274
b60cea74
TT
2752020-09-18 Tom Tromey <tromey@adacore.com>
276
277 * windows-nat.c (struct windows_nat_target) <wait>: Update.
278 (windows_nat_target::wait): Update.
279 * target/wait.h (enum target_wait_flag): New. Use
280 DEF_ENUM_FLAGS_TYPE.
281 * target/target.h (target_wait): Change type of options.
282 * target.h (target_options_to_string, default_target_wait):
283 Update.
284 (struct target_ops) <wait>: Change type of options.
285 * target.c (target_wait, default_target_wait, do_option): Change
286 type of "options".
287 (target_options_to_string): Likewise.
288 * target-delegates.c: Rebuild.
289 * target-debug.h (target_debug_print_target_wait_flags): Rename
290 from target_debug_print_options.
291 * sol-thread.c (class sol_thread_target) <wait>: Update.
292 (sol_thread_target::wait): Update.
293 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
294 (rs6000_nat_target::wait): Update.
295 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
296 Update.
297 (remote_target::wait_ns, remote_target::wait_as): Change type of
298 "options".
299 (remote_target::wait): Update.
300 * remote-sim.c (struct gdbsim_target) <wait>: Update.
301 (gdbsim_target::wait): Update.
302 * record-full.c (class record_full_base_target) <wait>: Update.
303 (record_full_wait_1): Change type of "options".
304 (record_full_base_target::wait): Update.
305 * record-btrace.c (class record_btrace_target) <wait>: Update.
306 (record_btrace_target::wait): Update.
307 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
308 Update.
309 (ravenscar_thread_target::wait): Update.
310 * procfs.c (class procfs_target) <wait>: Update.
311 (procfs_target::wait): Update.
312 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
313 * obsd-nat.c (obsd_nat_target::wait): Update.
314 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
315 (nto_procfs_target::wait): Update.
316 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
317 * nbsd-nat.c (nbsd_wait): Change type of "options".
318 (nbsd_nat_target::wait): Update.
319 * linux-thread-db.c (class thread_db_target) <wait>: Update.
320 (thread_db_target::wait): Update.
321 * linux-nat.h (class linux_nat_target) <wait>: Update.
322 * linux-nat.c (linux_nat_target::wait): Update.
323 (linux_nat_wait_1): Update.
324 * infrun.c (do_target_wait_1, do_target_wait): Change type of
325 "options".
326 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
327 * inf-ptrace.c (inf_ptrace_target::wait): Update.
328 * go32-nat.c (struct go32_nat_target) <wait>: Update.
329 (go32_nat_target::wait): Update.
330 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
331 * gnu-nat.c (gnu_nat_target::wait): Update.
332 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
333 * fbsd-nat.c (fbsd_nat_target::wait): Update.
334 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
335 * darwin-nat.c (darwin_nat_target::wait): Update.
336 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
337 (bsd_uthread_target::wait): Update.
338 * aix-thread.c (class aix_thread_target) <wait>: Update.
339 (aix_thread_target::wait): Update.
340
0295dde6
AB
3412020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
342
343 * compile/compile-object-run.c (create_copied_type_recursive): New
344 function.
345 (compile_object_run): Use new function.
346
d3483b43
JT
3472020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
348
349 * NEWS: Mention x86_64 Cygwin core file support.
350
e7d612ad
JT
3512020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
352
353 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
354 (core_process_module_section): Handle NOTE_INFO_MODULE64.
355
aff9d387
JT
3562020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
357
62a5151b
JT
358 * windows-tdep.h: Add prototypes.
359 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
360 (i386_windows_core_pid_to_str): Move and rename ...
361 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
362 (windows_core_pid_to_str): ... and here.
363 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
364
3652020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
366 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
367 (amd64_windows_init_abi_common): ... and register.
368
7d155da3
JT
3692020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
370
371 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
372 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
373
e8ef12b9
PA
3742020-09-18 Pedro Alves <pedro@palves.net>
375
376 PR gdb/26631
377 * thread.c (thread_find_command): Switch inferior before calling
378 target methods.
379
c1e1314d
TT
3802020-09-17 Tom Tromey <tromey@adacore.com>
381
382 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
383 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
384 (tdesc_arch_data_up): New typedef.
385 (tdesc_use_registers, tdesc_data_alloc): Update.
386 (tdesc_data_cleanup): Don't declare.
387 * target-descriptions.c (tdesc_data_alloc): Return a
388 tdesc_arch_data_up.
389 (tdesc_arch_data_deleter::operator()): Rename from
390 tdesc_data_cleanup. Change argument type.
391 (tdesc_use_registers): Change early_data to an rvalue reference.
392 (tdesc_use_registers): Don't use delete.
393 * sparc-tdep.c (sparc32_gdbarch_init): Update.
394 * s390-tdep.c (s390_gdbarch_init): Update.
395 * rx-tdep.c (rx_gdbarch_init): Update.
396 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
397 * riscv-tdep.c (riscv_gdbarch_init): Update.
398 * or1k-tdep.c (or1k_gdbarch_init): Update.
399 * nios2-tdep.c (nios2_gdbarch_init): Update.
400 * nds32-tdep.c (nds32_gdbarch_init): Update.
401 * mips-tdep.c (mips_gdbarch_init): Update.
402 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
403 * m68k-tdep.c (m68k_gdbarch_init): Update.
404 * i386-tdep.c (i386_gdbarch_init): Update.
405 * arm-tdep.c (arm_gdbarch_init): Update.
406 * arc-tdep.c (arc_tdesc_init): Update.
407 (arc_gdbarch_init): Update.
408 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
409
0363df3d
HD
4102020-09-17 Hannes Domani <ssbssa@yahoo.de>
411
412 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
413 for WOW64 processes.
414
280a9412
TT
4152020-09-17 Tom Tromey <tom@tromey.com>
416
417 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
418
6108fd18
TT
4192020-09-17 Tom Tromey <tom@tromey.com>
420
421 * value.c (preserve_values): Update.
422 * python/py-type.c (save_objfile_types): Update.
423 * guile/scm-type.c (save_objfile_types): Update.
424 * gdbtypes.h (create_copied_types_hash): Return htab_up.
425 * gdbtypes.c (create_copied_types_hash): Return htab_up.
426 * compile/compile-object-run.c (compile_object_run): Update.
427
fa9b1164
TT
4282020-09-17 Tom Tromey <tom@tromey.com>
429
430 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
431 Remove.
432 <m_table>: Now htab_up.
433 * typeprint.c (typedef_hash_table::recursively_update)
434 (typedef_hash_table::add_template_parameters)
435 (typedef_hash_table::typedef_hash_table): Update.
436 (typedef_hash_table::~typedef_hash_table): Remove.
437 (typedef_hash_table::typedef_hash_table)
438 (typedef_hash_table::find_global_typedef)
439 (typedef_hash_table::find_typedef): Update.
440
eb53f105
TT
4412020-09-17 Tom Tromey <tom@tromey.com>
442
443 * target-descriptions.c (tdesc_use_registers): Use htab_up.
444
7a8a5d47
TT
4452020-09-17 Tom Tromey <tom@tromey.com>
446
447 * linespec.c (class decode_compound_collector)
448 <~decode_compound_collector>: Remove.
449 <m_unique_syms>: Now htab_up.
450 (decode_compound_collector::operator ()): Update.
451 (class symtab_collector) <~symtab_collector>: Remove.
452 <m_symtab_table>: Now htab_up.
453 (symtab_collector::operator ()): Update.
454
99032cfc
TT
4552020-09-17 Tom Tromey <tom@tromey.com>
456
457 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
458 (filename_seen_cache::clear): Update.
459 (~filename_seen_cache): Remove.
460 (filename_seen_cache::seen): Update.
461 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
462 htab_up.
463 <~filename_seen_cache>: Remove.
464 <traverse>: Update.
465
32580f6d
TT
4662020-09-17 Tom Tromey <tom@tromey.com>
467
468 * completer.c (completion_tracker::discard_completions)
469 (completion_tracker::~completion_tracker)
470 (completion_tracker::maybe_add_completion)
471 (completion_tracker::remove_completion)
472 (completion_tracker::recompute_lowest_common_denominator)
473 (completion_tracker::build_completion_result): Update.
474 * completer.h (class completion_tracker) <have_completions>:
475 Update.
476 <m_entries_hash>: Now htab_up.
477
c1fb9836
TT
4782020-09-17 Tom Tromey <tom@tromey.com>
479
480 * breakpoint.c (ambiguous_names_p): Use htab_up.
481
88f07206
TT
4822020-09-17 Tom Tromey <tom@tromey.com>
483
484 * auto-load.c (struct auto_load_pspace_info)
485 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
486 <loaded_script_files, loaded_script_texts>: Change type to
487 htab_up.
488 (~auto_load_pspace_info) Remove.
489 (init_loaded_scripts_info, maybe_add_script_file)
490 (maybe_add_script_text, auto_load_info_scripts): Update.
491
9519b2ee
TT
4922020-09-17 Tom Tromey <tromey@adacore.com>
493
494 * c-exp.y (name_obstack): Now static.
495
d2cd4113
CC
4962020-09-17 Chungyi Chi <demonic@csie.io>
497
498 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
499
b650a282
SM
5002020-09-16 Simon Marchi <simon.marchi@efficios.com>
501
502 * breakpoint.h (init_catchpoint): Change int parameter to bool.
503 (add_solib_catchpoint): Likewise.
504 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
505 to bool.
506 (add_solib_catchpoint): Change int parameter/variable to bool.
507 (catch_load_or_unload): Likewise.
508 (init_catchpoint): Likewise.
509 (create_fork_vfork_event_catchpoint): Likewise.
510 (catch_fork_command_1): Likewise.
511 (catch_exec_command_1): Likewise.
512
4d0bcfcf
SM
5132020-09-16 Simon Marchi <simon.marchi@efficios.com>
514
515 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
516 Change instance_flags to m_instance_flags.
517
fe830662
TT
5182020-09-16 Tom Tromey <tromey@adacore.com>
519
520 PR gdb/26598:
521 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
522
fe5ddfc3
JB
5232020-09-16 John Baldwin <jhb@FreeBSD.org>
524
525 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
526 PL_FLAG_EXEC.
527 (fbsd_nat_target::insert_exec_catchpoint)
528 (fbsd_nat_target::remove_exec_catchpoint): Always define.
529 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
530 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
531
e911c666
JB
5322020-09-16 John Baldwin <jhb@FreeBSD.org>
533
534 * configure.ac: Remove check for kinfo_getvmmap().
535 * configure, config.in: Regenerate.
536 * fbsd-nat.c (fbsd_read_mapping): Remove
537 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
538 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
539 kinfo_get_vmmap() are always present.
540
1f17d372
JB
5412020-09-16 John Baldwin <jhb@FreeBSD.org>
542
543 * fbsd-nat.c: Always include support for
544 TARGET_OBJECT_SIGNAL_INFO.
545
bcb1da7f
JB
5462020-09-16 John Baldwin <jhb@FreeBSD.org>
547
548 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
549 sysctl and remove procfs fallback.
550
5515f729
JB
5512020-09-16 John Baldwin <jhb@FreeBSD.org>
552
553 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
554 * fbsd-nat.h: Likewise.
555
da1df1db
TBA
5562020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
557
558 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
559 argument.
560
0e25e767
AB
5612020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
562
563 * ada-lang.c (ada_language_data): Delete.
564 (ada_language): Remove references to ada_language_data.
565 * c-lang.c (c_language_data): Delete.
566 (c_language): Remove references to c_language_data.
567 (cplus_language_data): Delete.
568 (cplus_language): Remove references to cplus_language_data.
569 (asm_language_data): Delete.
570 (asm_language): Remove references to asm_language_data.
571 (minimal_language_data): Delete.
572 (minimal_language): Remove references to minimal_language_data.
573 * d-lang.c (d_language_data): Delete.
574 (d_language): Remove references to d_language_data.
575 * f-lang.c (f_language_data): Delete.
576 (f_language): Remove references to f_language_data.
577 * go-lang.c (go_language_data): Delete.
578 (go_language): Remove references to go_language_data.
579 * language.c (unknown_language_data): Delete.
580 (unknown_language): Remove references to unknown_language_data.
581 (auto_language_data): Delete.
582 (auto_language): Remove references to auto_language_data.
583 * language.h (language_data): Delete struct.
584 (language_defn): No longer inherit from language_data.
585 * m2-lang.c (m2_language_data): Delete.
586 (m2_language): Remove references to m2_language_data.
587 * objc-lang.c (objc_language_data): Delete.
588 (objc_language): Remove references to objc_language_data.
589 * opencl-lang.c (opencl_language_data): Delete.
590 (opencl_language): Remove references to opencl_language_data.
591 * p-lang.c (pascal_language_data): Delete.
592 (pascal_language): Remove references to pascal_language_data.
593 * rust-lang.c (rust_language_data): Delete.
594 (rust_language): Remove references to rust_language_data.
595
b7c6e27d
AB
5962020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
597
598 * ada-lang.c (ada_language_data): Remove la_op_print_tab
599 initializer.
600 (ada_language::opcode_print_table): New member function.
601 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
602 (c_language::opcode_print_table): New member function.
603 (cplus_language_data): Remove la_op_print_tab initializer.
604 (cplus_language::opcode_print_table): New member function.
605 (asm_language_data): Remove la_op_print_tab initializer.
606 (asm_language::opcode_print_table): New member function.
607 (minimal_language_data): Remove la_op_print_tab initializer.
608 (minimal_language::opcode_print_table): New member function.
609 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
610 (d_language::opcode_print_table): New member function.
611 * expprint.c (print_subexp_standard): Update call to
612 opcode_print_table.
613 (op_string): Likewise.
614 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
615 (f_language::opcode_print_table): New member function.
616 * go-lang.c (go_language_data): Remove la_op_print_tab
617 initializer.
618 (go_language::opcode_print_table): New member function.
619 * language.c (unknown_language_data): Remove la_op_print_tab
620 initializer.
621 (unknown_language::opcode_print_table): New member function.
622 (auto_language_data): Remove la_op_print_tab initializer.
623 (auto_language::opcode_print_table): New member function.
624 * language.h (language_data): Remove la_op_print_tab field.
625 (language_defn::opcode_print_table): Declare new member function.
626 * m2-lang.c (m2_language_data): Remove la_op_print_tab
627 initializer.
628 (m2_language::opcode_print_table): New member function.
629 * objc-lang.c (objc_language_data): Remove la_op_print_tab
630 initializer.
631 (objc_language::opcode_print_table): New member function.
632 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
633 initializer.
634 (opencl_language::opcode_print_table): New member function.
635 * p-lang.c (pascal_language_data): Remove la_op_print_tab
636 initializer.
637 (pascal_language::opcode_print_table): New member function.
638 * rust-lang.c (rust_language_data): Remove la_op_print_tab
639 initializer.
640 (rust_language::opcode_print_table): New member function.
641
5aba6ebe
AB
6422020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
643
644 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
645 (ada_language::expression_ops): New member function.
646 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
647 (c_language::expression_ops): New member function.
648 (cplus_language_data): Remove la_exp_desc initializer.
649 (cplus_language::expression_ops): New member function.
650 (asm_language_data): Remove la_exp_desc initializer.
651 (asm_language::expression_ops): New member function.
652 (minimal_language_data): Remove la_exp_desc initializer.
653 (minimal_language::expression_ops): New member function.
654 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
655 (d_language::expression_ops): New member function.
656 * eval.c (evaluate_subexp): Update call to expression_ops.
657 * expprint.c (print_subexp): Likewise.
658 (op_name): Likewise.
659 (dump_subexp_body): Likewise.
660 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
661 (f_language::expression_ops): New member function.
662 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
663 (go_language::expression_ops): New member function.
664 * language.c (language_defn::expression_ops): New function.
665 (unknown_language_data): Remove la_exp_desc initializer.
666 (auto_language_data): Likewise.
667 * language.h (language_data): Remove la_exp_desc field.
668 (language_defn::expression_ops): Declare new member function.
669 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
670 (m2_language::expression_ops): New member function.
671 * objc-lang.c (objc_language_data): Remove la_exp_desc
672 initializer.
673 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
674 initializer.
675 (opencl_language::expression_ops): New member function.
676 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
677 * parse.c (operator_length): Update call to expression_ops.
678 (exp_iterate): Likewise.
679 * rust-lang.c (rust_language_data): Remove la_exp_desc
680 initializer.
681 (ruse_language::expression_ops): New member function.
682
b63a3f3f
AB
6832020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
684
685 * ada-lang.c (ada_language_data): Remove la_varobj_ops
686 initializer.
687 (ada_language::varobj_ops): New member function.
688 * c-lang.c (c_language_data): Remove la_varobj_ops
689 initializer.
690 (cplus_language_data): Likewise.
691 (cplus_language::varobj_ops): New member function.
692 (asm_language_data): Remove la_varobj_ops initializer.
693 (minimal_language_data): Likewise.
694 * d-lang.c (d_language_data): Likewise.
695 * f-lang.c (f_language_data): Likewise.
696 * go-lang.c (go_language_data): Likewise.
697 * language.c (language_defn::varobj_ops): New function.
698 (unknown_language_data): Remove la_varobj_ops
699 initializer.
700 (auto_language_data): Likewise.
701 * language.h (language_data): Remove la_varobj_ops field.
702 (language_defn::varobj_ops): Declare new member function.
703 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
704 * objc-lang.c (objc_language_data): Likewise.
705 * opencl-lang.c (opencl_language_data): Likewise.
706 * p-lang.c (pascal_language_data): Likewise.
707 * rust-lang.c (rust_language_data): Likewise.
708 * varobj.c (varobj_create): Update call to varobj_ops.
709 * varobj.h (default_varobj_ops): Delete define.
710
1ac14a04
AB
7112020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
712
713 * ada-lang.c (ada_language_data): Remove la_macro_expansion
714 initializer.
715 * c-lang.c (c_language_data): Likewise.
716 (c_language::macro_expansion): New member function.
717 (cplus_language_data): Likewise.
718 (cplus_language::macro_expansion): New member function.
719 (asm_language_data): Likewise.
720 (asm_language::macro_expansion): New member function.
721 (minimal_language_data): Likewise.
722 (minimal_language::macro_expansion): New member function.
723 * d-lang.c (d_language_data): Remove la_macro_expansion
724 initializer.
725 * f-lang.c (f_language_data): Likewise.
726 * go-lang.c (go_language_data): Likewise.
727 * language.c (unknown_language_data): Likewise.
728 (auto_language_data): Likewise.
729 * language.h (language_data): Remove la_macro_expansion field.
730 (language_defn::macro_expansion): New member function.
731 * m2-lang.c (m2_language_data): Remove la_macro_expansion
732 initializer.
733 * objc-lang.c (objc_language_data): Likewise.
734 (objc_language::macro_expansion): New member function.
735 * opencl-lang.c (opencl_language_data): Likewise.
736 (opencl_language::macro_expansion): New member function.
737 * p-lang.c (pascal_language_data): Remove la_macro_expansion
738 initializer.
739 * rust-lang.c (rust_language_data): Likewise.
740 * symtab.c (default_collect_symbol_completion_matches_break_on):
741 Update call to macro_expansion.
742
3a3440fb
AB
7432020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
744
745 * ada-lang.c (ada_language_data): Remove la_array_ordering
746 initializer.
747 * c-lang.c (c_language_data): Likewise.
748 (cplus_language_data): Likewise.
749 (asm_language_data): Likewise.
750 (minimal_language_data): Likewise.
751 * d-lang.c (d_language_data): Likewise.
752 * dwarf2/read.c (read_array_order): Update for call to
753 array_ordering.
754 * f-lang.c (f_language_data): Remove la_array_ordering
755 initializer.
756 (f_language::array_ordering): New member function.
757 * go-lang.c (go_language_data): Remove la_array_ordering
758 initializer.
759 * language.c (unknown_language_data): Likewise.
760 (auto_language_data): Likewise.
761 * language.h (language_data): Delete la_array_ordering field.
762 (language_defn::array_ordering): New member function.
763 * m2-lang.c (m2_language_data): Remove la_array_ordering
764 initializer.
765 * objc-lang.c (objc_language_data): Likewise.
766 * opencl-lang.c (opencl_language_data): Likewise.
767 * p-lang.c (pascal_language_data): Likewise.
768 * rust-lang.c (rust_language_data): Likewise.
769
0d201fa4
AB
7702020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
771
772 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
773 initializer.
774 * c-lang.c (c_language_data): Likewise.
775 (cplus_language_data): Likewise.
776 (asm_language_data): Likewise.
777 (minimal_language_data): Likewise.
778 * d-lang.c (d_language_data): Likewise.
779 * f-lang.c (f_language_data): Likewise.
780 (f_language::case_sensitivity): New member function.
781 * go-lang.c (go_language_data): Remove la_case_sensitivity
782 initializer.
783 * language.c (enum case_mode): Moved here from language.h.
784 (case_mode): Make static.
785 (show_case_command): Update for case_sensitivity being a method.
786 (set_case_command): Likewise.
787 (set_range_case): Likewise.
788 (unknown_language_data): Remove la_case_sensitivity initializer.
789 (auto_language_data): Likewise.
790 * language.h (case_mode): Delete, move enum declaration to
791 language.c.
792 (language_data): Delete la_case_sensitivity field.
793 (language_defn::case_sensitivity): New member function.
794 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
795 initializer.
796 * objc-lang.c (objc_language_data): Likewise.
797 * opencl-lang.c (opencl_language_data): Likewise.
798 * p-lang.c (pascal_language_data): Likewise.
799 * rust-lang.c (rust_language_data): Likewise.
800
efdf6a73
AB
8012020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
802
803 * ada-lang.c (ada_language_data): Remove la_range_check
804 initializer.
805 * c-lang.c (c_language_data): Likewise.
806 (cplus_language_data): Likewise.
807 (asm_language_data): Likewise.
808 (minimal_language_data): Likewise.
809 * d-lang.c (d_language_data): Likewise.
810 * f-lang.c (f_language_data): Likewise.
811 (f_language::range_checking_on_by_default): New member function.
812 * go-lang.c (go_language_data): Remove la_range_check initializer.
813 * language.c (enum range_mode): Moved here from language.h.
814 (range_mode): Made static.
815 (show_range_command): Update to use
816 range_checking_on_by_default.
817 (set_range_command): Likewise.
818 (set_range_case): Likewise.
819 (unknown_language_data): Remove la_range_check initializer.
820 (auto_language_data): Likewise.
821 * language.h (range_mode): Delete. Enum definition moved to
822 language.c.
823 (language_data): Remove la_range_check field.
824 (language_defn::range_checking_on_by_default): New member
825 function.
826 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
827 (m2_language::range_checking_on_by_default): New member function.
828 * objc-lang.c (objc_language_data): Remove la_range_check
829 initializer.
830 * opencl-lang.c (opencl_language_data): Likewise.
831 * p-lang.c (pascal_language_data): Likewise.
832 (pascal_language::range_checking_on_by_default): New member
833 function.
834 * rust-lang.c (rust_language_data): Remove la_range_check
835 initializer.
836 (rust_language::range_checking_on_by_default): New member
837 function.
838
bf92aec5
AB
8392020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
840
841 * dwarf2/read.c (dwarf2_physname): Remove special case for
842 language_go.
843 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
844 member function.
845
d3355e4d
AB
8462020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
847
848 * ada-lang.c (ada_language_data): Remove
849 la_store_sym_names_in_linkage_form_p initializer.
850 (ada_language::store_sym_names_in_linkage_form_p): New member
851 function.
852 * c-lang.c (c_language_data): Remove
853 la_store_sym_names_in_linkage_form_p initializer.
854 (c_language::store_sym_names_in_linkage_form_p): New member
855 function.
856 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
857 initializer.
858 (asm_language_data): Likewise.
859 (asm_language::store_sym_names_in_linkage_form_p): New member
860 function.
861 (minimal_language_data): Remove
862 la_store_sym_names_in_linkage_form_p initializer.
863 (minimal_language::store_sym_names_in_linkage_form_p): New member
864 function.
865 * d-lang.c (d_language_data): Remove
866 la_store_sym_names_in_linkage_form_p initializer.
867 * dwarf2/read.c (dwarf2_physname): Update call to
868 store_sym_names_in_linkage_form_p.
869 * f-lang.c (f_language_data): Remove
870 la_store_sym_names_in_linkage_form_p initializer.
871 * go-lang.c (go_language_data): Remove
872 la_store_sym_names_in_linkage_form_p initializer.
873 * language.c (unknown_language_data): Remove
874 la_store_sym_names_in_linkage_form_p initializer.
875 (unknown_language::store_sym_names_in_linkage_form_p): New member
876 function.
877 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
878 initializer.
879 (auto_language::store_sym_names_in_linkage_form_p): New member
880 function.
881 * language.h (language_data): Remove
882 la_store_sym_names_in_linkage_form_p member variable.
883 (language_defn::store_sym_names_in_linkage_form_p): New member
884 function.
885 * m2-lang.c (m2_language_data): Remove
886 la_store_sym_names_in_linkage_form_p initializer.
887 * objc-lang.c (objc_language_data): Likewise.
888 * opencl-lang.c (opencl_language_data): Likewise.
889 * p-lang.c (pascal_language_data): Likewise.
890 * rust-lang.c (rust_language_data): Likewise.
891
22c12a6c
AB
8922020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
893
894 * ada-lang.c (ada_language_data): Remove string_lower_bound
895 initializer.
896 * c-lang.c (c_language_data): Likewise.
897 (cplus_language_data): Likewise.
898 (asm_language_data): Likewise.
899 (minimal_language_data): Likewise.
900 * d-lang.c (d_language_data): Likewise.
901 * f-lang.c (f_language_data): Likewise.
902 * go-lang.c (go_language_data): Likewise.
903 * language.c (unknown_language_data): Likewise.
904 (auto_language_data): Likewise.
905 * language.h (language_data): Remove string_lower_bound field.
906 (language_defn::string_lower_bound): New member function.
907 * m2-lang.c (m2_language_data): Remove string_lower_bound
908 initializer.
909 (m2_language::string_lower_bound): New member function.
910 * objc-lang.c (objc_language_data): Remove string_lower_bound
911 initializer.
912 * opencl-lang.c (opencl_language_data): Likewise.
913 * p-lang.c (pascal_language_data): Likewise.
914 * rust-lang.c (rust_language_data): Likewise.
915 * valops.c (value_cstring): Update call to string_lower_bound.
916 (value_string): Likewise.
917 * value.c (allocate_repeated_value): Likewise.
918
1c236ddd
AB
9192020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
920
921 * valops.c (value_repeat): Fix incorrect argument name in comment.
922
67bd3fd5
AB
9232020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
924
925 * ada-lang.c (ada_language_data): Remove c_style_arrays
926 initializer.
927 (ada_language::c_style_arrays_p): New member fuction.
928 * c-lang.c (c_language_data): Remove c_style_arrays
929 initializer.
930 (cplus_language_data): Likewise.
931 (asm_language_data): Likewise.
932 (minimal_language_data): Likewise.
933 * d-lang.c (d_language_data): Likewise.
934 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
935 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
936 (f_language::c_style_arrays_p): New member function.
937 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
938 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
939 * language.c (unknown_language_data): Remove c_style_arrays
940 initializer.
941 (auto_language_data): Likewise.
942 * language.h (language_data): Remove c_style_arrays field.
943 (language_defn::c_style_arrays_p): New member function.
944 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
945 (m2_language::c_style_arrays_p): New member function.
946 * objc-lang.c (objc_language_data): Remove c_style_arrays
947 initializer.
948 * opencl-lang.c (opencl_language_data): Likewise.
949 * p-lang.c (pascal_language_data): Likewise.
950 * rust-lang.c (rust_language_data): Likewise.
951 * valarith.c (value_subscript): Update call to c_style_arrays_p,
952 and update local variable to a bool.
953 * valops.c (value_cast): Update call to c_style_arrays_p.
954 (value_array): Likewise.
955 * value.c (coerce_array): Likewise.
956
85967615
AB
9572020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
958
959 * ada-lang.c (ada_language_data): Remove la_language 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 la_language field.
970 (language_defn::language_defn): Initialise la_language field.
971 (language_defn::la_language): New member variable.
972 * m2-lang.c (m2_language_data): Remove la_language field.
973 * objc-lang.c (objc_language_data): Likewise.
974 * opencl-lang.c (opencl_language_data): Likewise.
975 * p-lang.c (pascal_language_data): Likewise.
976 * rust-lang.c (rust_language_data): Likewise.
977
e171d6f1
AB
9782020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
979
980 * ada-lang.c (ada_extensions): Delete, moved into
981 ada_language::filename_extensions.
982 (ada_language_data): Remove la_filename_extensions initializer.
983 (ada_language::filename_extensions): New member function.
984 * c-lang.c (c_extensions): Delete, moved into
985 c_language::filename_extensions.
986 (c_language_data): Remove la_filename_extensions initializer.
987 (c_language::filename_extensions): New member function.
988 (cplus_extensions): Delete, moved into
989 cplus_language::filename_extensions.
990 (cplus_language_data): Remove la_filename_extensions initializer.
991 (cplus_language::filename_extensions): New member function.
992 (asm_extensions): Delete, moved into
993 asm_language::filename_extensions.
994 (asm_language_data): Remove la_filename_extensions initializer.
995 (asm_language::filename_extensions): New member function.
996 (minimal_language_data): Remove la_filename_extensions
997 initializer.
998 * d-lang.c (d_extensions): Delete, moved into
999 d_language::filename_extensions.
1000 (d_language_data): Remove la_filename_extensions initializer.
1001 (d_language::filename_extensions): New member function.
1002 * f-lang.c (f_extensions): Delete, moved into
1003 f_language::filename_extensions.
1004 (f_language_data): Remove la_filename_extensions initializer.
1005 (f_language::filename_extensions): New member function.
1006 * go-lang.c (go_language_data): Remove la_filename_extensions
1007 initializer.
1008 * language.c (add_set_language_command): Update now that
1009 filename_extensions returns a vector.
1010 (unknown_language_data): Remove la_filename_extensions
1011 initializer.
1012 (auto_language_data): Likewise.
1013 * language.h (language_data): Remove la_filename_extensions field.
1014 (language_defn::filename_extensions): New member function.
1015 * m2-lang.c (m2_language_data): Remove la_filename_extensions
1016 initializer.
1017 * objc-lang.c (objc_extensions): Delete, moved into
1018 objc_language::filename_extensions.
1019 (objc_language_data): Remove la_filename_extensions initializer.
1020 (objc_language::filename_extensions): New member function.
1021 * opencl-lang.c (opencl_language_data): Remove
1022 la_filename_extensions initializer.
1023 * p-lang.c (pascal_extensions): Delete, moved into
1024 pascal_language::filename_extensions.
1025 (pascal_language_data): Remove la_filename_extensions initializer.
1026 (pascal_language::filename_extensions): New member function.
1027 * rust-lang.c (rust_extensions): Delete, moved into
1028 rust_language::filename_extensions.
1029 (rust_language_data): Remove la_filename_extensions initializer.
1030 (rust_language::filename_extensions): New member function.
1031 * symfile.c (add_filename_language): Add new assert.
1032
6f7664a9
AB
10332020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1034
1035 * ada-lang.c (ada_language_data): Remove la_name and
1036 la_natural_name initializers.
1037 (ada_language::name): New member function.
1038 (ada_language::natural_name): New member function.
1039 * c-lang.c (c_language_data): Remove la_name and
1040 la_natural_name initializers.
1041 (c_language::name): New member function.
1042 (c_language::natural_name): New member function.
1043 (cplus_language_data): Remove la_name and
1044 la_natural_name initializers.
1045 (cplus_language::name): New member function.
1046 (cplus_language::natural_name): New member function.
1047 (asm_language_data): Remove la_name and
1048 la_natural_name initializers.
1049 (asm_language::name): New member function.
1050 (asm_language::natural_name): New member function.
1051 (minimal_language_data): Remove la_name and
1052 la_natural_name initializers.
1053 (minimal_language::name): New member function.
1054 (minimal_language::natural_name): New member function.
1055 * compile/compile.c (compile_to_object): Update call to
1056 lanugage_defn::name.
1057 * d-lang.c (d_language_data): Remove la_name and
1058 la_natural_name initializers.
1059 (d_language::name): New member function.
1060 (d_language::natural_name): New member function.
1061 * expprint.c (print_subexp_standard): Update call to
1062 language_defn::name.
1063 (dump_raw_expression): Likewise
1064 (dump_prefix_expression): Likewise.
1065 * f-lang.c (f_language_data): Remove la_name and
1066 la_natural_name initializers.
1067 (f_language::name): New member function.
1068 (f_language::natural_name): New member function.
1069 * go-lang.c (go_language_data): Remove la_name and
1070 la_natural_name initializers.
1071 (go_language::name): New member function.
1072 (go_language::natural_name): New member function.
1073 * language.c (show_language_command): Update call to
1074 language_defn::name.
1075 (set_language_command): Likewise.
1076 (language_enum): Likewise.
1077 (language_str): Likewise.
1078 (add_set_language_command): Likewise, use
1079 language_defn::natural_name in the doc string.
1080 (unknown_language_data): Remove la_name and
1081 la_natural_name initializers.
1082 (unknown_language::name): New member function.
1083 (unknown_language::natural_name): New member function.
1084 (auto_language_data): Remove la_name and
1085 la_natural_name initializers.
1086 (auto_language::name): New member function.
1087 (auto_language::natural_name): New member function.
1088 (language_lookup_primitive_type_as_symbol): Update call to
1089 language_defn::name.
1090 * language.h (language_data): Remove la_name and la_natural_name
1091 member variables.
1092 (language_defn::name): New member function.
1093 (language_defn::natural_name): New member function.
1094 * m2-lang.c (m2_language_data): Remove la_name and
1095 la_natural_name initializers.
1096 (m2_language::name): New member function.
1097 (m2_language::natural_name): New member function.
1098 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
1099 language_defn::natural_name.
1100 * objc-lang.c (objc_language_data): Remove la_name and
1101 la_natural_name initializers.
1102 (objc_language::name): New member function.
1103 (objc_language::natural_name): New member function.
1104 * opencl-lang.c (opencl_language_data): Remove la_name and
1105 la_natural_name initializers.
1106 (opencl_language::name): New member function.
1107 (opencl_language::natural_name): New member function.
1108 * p-lang.c (pascal_language_data): Remove la_name and
1109 la_natural_name initializers.
1110 (pascal_language::name): New member function.
1111 (pascal_language::natural_name): New member function.
1112 * rust-lang.c (rust_language_data): Remove la_name and
1113 la_natural_name initializers.
1114 (rust_language::name): New member function.
1115 (rust_language::natural_name): New member function.
1116 * symtab.c (lookup_language_this): Update call to
1117 language_defn::name.
1118
5bae7c4e
AB
11192020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1120
1121 * ada-lang.c (ada_language_data): Remove la_name_of_this
1122 initializer.
1123 * ax-gdb.c (gen_expr): Update call to name_of_this.
1124 * c-exp.y (classify_name): Likewise.
1125 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1126 (cplus_language_data): Likewise.
1127 (cplus_language::name_of_this): New member function.
1128 (asm_language_data): Remove la_name_of_this initializer.
1129 (minimal_language_data): Likewise.
1130 * d-lang.c (d_language_data): Likewise.
1131 (d_language::name_of_this): New member function.
1132 * expprint.c (print_subexp_standard): Update call to name_of_this.
1133 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1134 * go-lang.c (go_language_data): Likewise.
1135 * language.c (unknown_language_data): Likewise.
1136 (unknown_language::name_of_this): New member function.
1137 (auto_language_data): Remove la_name_of_this initializer.
1138 (auto_language::name_of_this): New member function.
1139 * language.h (language_data): Delete la_name_of_this member
1140 variable.
1141 (language_defn::name_of_this): New member function.
1142 * m2-lang.c (m2_language_data): Remove la_name_of_this
1143 initializer.
1144 * objc-lang.c (objc_language_data): Likewise.
1145 (objc_language::name_of_this): New member function.
1146 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1147 initializer.
1148 * p-lang.c (pascal_language_data): Likewise.
1149 (pascal_language::name_of_this): New member function.
1150 * rust-lang.c (rust_language_data): Remove la_name_of_this
1151 initializer.
1152 * symtab.c (lookup_language_this): Update call to name_of_this.
1153 (lookup_symbol_aux): Likewise.
1154 * valops.c (value_of_this): Likewise.
1155
22e3f3ed
AB
11562020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1157
1158 * ada-lang.c (ada_language_data): Remove
1159 la_struct_too_deep_ellipsis initializer.
1160 (ada_language::struct_too_deep_ellipsis): New member function.
1161 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1162 initializer.
1163 (cplus_language_data): Likewise.
1164 (asm_language_data): Likewise.
1165 (minimal_language_data): Likewise.
1166 * cp-valprint.c (cp_print_value): Update call to
1167 struct_too_deep_ellipsis.
1168 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1169 initializer.
1170 * f-lang.c (f_language_data): Likewise.
1171 (f_language::struct_too_deep_ellipsis): New member function.
1172 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1173 initializer.
1174 * language.c (unknown_language_data): Likewise.
1175 (auto_language_data): Likewise.
1176 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1177 member variable.
1178 (language_defn::struct_too_deep_ellipsis): New member function.
1179 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1180 initializer.Q
1181 * objc-lang.c (objc_language_data): Likewise.
1182 * opencl-lang.c (opencl_language_data): Likewise.
1183 * p-lang.c (pascal_language_data): Likewise.
1184 * rust-lang.c (rust_language_data): Likewise.
1185 * valprint.c (val_print_check_max_depth): Update call to
1186 struct_too_deep_ellipsis.
1187
ed29e1c7
FW
11882020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1189
1190 * MAINTAINERS (Write After Approval): Add myself.
1191
12d8f940
TT
11922020-09-15 Tom Tromey <tom@tromey.com>
1193
1194 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1195 Remove.
1196
6b5a7bc7
TT
11972020-09-15 Tom Tromey <tom@tromey.com>
1198
1199 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1200 and TYPE_CODE_METHODPTR cases.
1201 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1202 (c_value_print_inner): Update.
1203 * valprint.c (generic_value_print_memberptr): New function, from
1204 c_value_print_memberptr.
1205 (generic_value_print): Use it. Call cplus_print_method_ptr.
1206
47f0e2ff
TT
12072020-09-15 Tom Tromey <tromey@adacore.com>
1208
1209 * python/python-internal.h (PyInt_FromLong): Remove define.
1210 * python/py-value.c (convert_value_from_python): Use
1211 gdb_py_object_from_longest.
1212 * python/py-type.c (typy_get_code): Use
1213 gdb_py_object_from_longest.
1214 * python/py-symtab.c (salpy_get_line): Use
1215 gdb_py_object_from_longest.
1216 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1217 gdb_py_object_from_longest.
1218 * python/py-record.c (recpy_gap_reason_code): Use
1219 gdb_py_object_from_longest.
1220 * python/py-record-btrace.c (recpy_bt_insn_size)
1221 (recpy_bt_func_level, btpy_list_count): Use
1222 gdb_py_object_from_longest.
1223 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1224 gdb_py_object_from_longest. Fix error handling.
1225 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1226 gdb_py_object_from_longest.
1227 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1228 gdb_py_object_from_longest.
1229 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1230 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1231 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1232
512116ce
TT
12332020-09-15 Tom Tromey <tromey@adacore.com>
1234
1235 * python/python.c (gdbpy_parameter_value): Use
1236 gdb_py_object_from_ulongest.
1237
4ab1029c
TT
12382020-09-15 Tom Tromey <tromey@adacore.com>
1239
1240 * python/py-infevents.c (create_register_changed_event_object):
1241 Use gdb_py_object_from_longest.
1242 * python/py-exitedevent.c (create_exited_event_object): Use
1243 gdb_py_object_from_longest.
1244
062534d4
TT
12452020-09-15 Tom Tromey <tromey@adacore.com>
1246
1247 * python/python.c (gdbpy_parameter_value): Use
1248 gdb_py_object_from_longest.
1249 * python/py-type.c (convert_field, typy_range): Use
1250 gdb_py_object_from_longest.
1251 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1252 gdb_py_object_from_longest.
1253 * python/py-lazy-string.c (stpy_get_length): Use
1254 gdb_py_object_from_longest.
1255 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1256 gdb_py_object_from_longest.
1257 * python/py-infevents.c (create_memory_changed_event_object): Use
1258 gdb_py_object_from_longest.
1259 * python/py-inferior.c (infpy_get_num): Use
1260 gdb_py_object_from_longest.
1261 (infpy_get_pid): Likewise.
1262
d1cab987
TT
12632020-09-15 Tom Tromey <tromey@adacore.com>
1264
1265 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1266 defines.
1267 * python/py-value.c (valpy_long): Use
1268 gdb_py_object_from_ulongest.
1269 * python/py-symtab.c (salpy_get_pc): Use
1270 gdb_py_object_from_ulongest.
1271 (salpy_get_last): Likewise.
1272 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1273 gdb_py_object_from_ulongest.
1274 * python/py-lazy-string.c (stpy_get_address): Use
1275 gdb_py_object_from_ulongest.
1276 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1277 * python/py-arch.c (archpy_disassemble): Use
1278 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1279 error handling.
1280
4bde49dc
TT
12812020-09-15 Tom Tromey <tromey@adacore.com>
1282
1283 * python/python-internal.h (gdb_py_long_from_longest): Remove
1284 defines.
1285 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1286 * python/py-type.c (convert_field, typy_get_sizeof): Use
1287 gdb_py_object_from_longest.
1288 * python/py-record-btrace.c (btpy_list_index): Use
1289 gdb_py_object_from_longest.
1290
37431074
TT
12912020-09-15 Tom Tromey <tromey@adacore.com>
1292
1293 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1294 * python/py-record.c (recpy_element_number): Use
1295 gdb_py_object_from_longest.
1296 (recpy_gap_number): Likewise.
1297
cbe25684
TT
12982020-09-15 Tom Tromey <tromey@adacore.com>
1299
1300 * top.c (ui::ui): Update.
1301 (highest_ui_num): Remove.
1302 * top.h (struct ui) <num>: Remove.
1303
db92ac45
TT
13042020-09-15 Tom Tromey <tromey@adacore.com>
1305
1306 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1307 * ui-style.c (ansi_regex_text): Now array.
1308 * rust-exp.y (number_regex_text): Now array.
1309 * linespec.c (linespec_quote_characters): Now array.
1310 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1311 Now arrays.
1312
d2b31b67
SM
13132020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1314
1315 * debuginfod-support.c (debuginfod_client_deleter): New.
1316 (debuginfod_client_up): New.
1317 (debuginfod_init): Return debuginfod_client_up.
1318 (debuginfod_source_query): Adjust.
1319 (debuginfod_debuginfo_query): Adjust.
1320
3246bd8e
SM
13212020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1322
1323 * debuginfod-support.c (debuginfod_source_query): Use
1324 make_unique_xstrdup.
1325
10242f36
SM
13262020-09-14 Simon Marchi <simon.marchi@efficios.com>
1327
1328 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1329 with `type::instance_flags`.
1330
e1044e6a
MM
13312020-09-14 Michael Mullin <masmullin@gmail.com>
1332
1333 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1334 Remove baton parameter.
1335
04902b09
PA
13362020-09-14 Pedro Alves <pedro@palves.net>
1337
1338 * Makefile.in (SELFTESTS_SRCS): Add
1339 unittests/enum-flags-selftests.c.
1340 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1341 btrace_function_flags instead of enum btrace_function_flag.
1342 * compile/compile-c-types.c (convert_qualified): Use
1343 enum_flags::raw.
1344 * compile/compile-cplus-symbols.c (convert_one_symbol)
1345 (convert_symbol_bmsym):
1346 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1347 (compile_cplus_convert_struct_or_union_methods)
1348 (compile_cplus_instance::convert_qualified_base):
1349 * go-exp.y (parse_string_or_char): Add cast to int.
1350 * unittests/enum-flags-selftests.c: New file.
1351 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1352 type to btrace_thread_flags from btrace_thread_flag.
1353 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1354 local's type to btrace_thread_flags from btrace_thread_flag. Add
1355 cast in DEBUG call.
1356
69896a2c
PA
13572020-09-14 Pedro Alves <pedro@palves.net>
1358
1359 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1360 * gdbtypes.c (address_space_name_to_int): Rename to ...
1361 (address_space_name_to_type_instance_flags): ... this.
1362 (address_space_int_to_name): Rename to ...
1363 (address_space_type_instance_flags_to_name): ... this.
1364 * gdbtypes.h (address_space_name_to_int): Rename to ...
1365 (address_space_name_to_type_instance_flags): ... this.
1366 (address_space_int_to_name): Rename to ...
1367 (address_space_type_instance_flags_to_name): ... this.
1368 * type-stack.c (type_stack::insert): Adjust to rename.
1369 * type-stack.h (type_stack::insert): Likewise.
1370
314ad88d
PA
13712020-09-14 Pedro Alves <pedro@palves.net>
1372 Andrew Burgess <andrew.burgess@embecosm.com>
1373
1374 * avr-tdep.c (avr_address_class_type_flags): Return
1375 type_instance_flags.
1376 (avr_address_class_type_flags_to_name): Take a
1377 type_instance_flags.
1378 (avr_address_class_name_to_type_flags): Return bool and take a
1379 type_instance_flags.
1380 * d-lang.c (build_d_types): Use type::set_instance_flags.
1381 * ft32-tdep.c (ft32_address_class_type_flags): Return
1382 type_instance_flags.
1383 (ft32_address_class_type_flags_to_name): Take a
1384 type_instance_flags.
1385 (ft32_address_class_name_to_type_flags): Return bool and take a
1386 type_instance_flags.
1387 (ft32_gdbarch_init): Use type::set_instance_flags.
1388 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1389 * gdbarch.h, gdbarch.c: Regenerate.
1390 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1391 (address_class_name_to_type_flags): Use type_instance_flags and
1392 bool.
1393 * gdbtypes.c (address_space_name_to_int)
1394 (address_space_int_to_name, make_qualified_type): Use
1395 type_instance_flags.
1396 (make_qualified_type): Use type_instance_flags and
1397 type::set_instance_flags.
1398 (make_type_with_address_space, make_cv_type, make_vector_type)
1399 (check_typedef): Use type_instance_flags.
1400 (recursive_dump_type): Cast type_instance_flags to unsigned for
1401 printing.
1402 (copy_type_recursive): Use type::set_instance_flags.
1403 (gdbtypes_post_init): Use type::set_instance_flags.
1404 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1405 <m_instance_flags>: ... this.
1406 <instance_flags, set_instance_flags>: New methods.
1407 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1408 (SET_TYPE_INSTANCE_FLAGS): New.
1409 (address_space_name_to_int, address_space_int_to_name)
1410 (make_type_with_address_space): Pass flags using
1411 type_instance_flags instead of int.
1412 * stabsread.c (cleanup_undefined_types_noname): Use
1413 type::set_instance_flags.
1414 * s390-tdep.c (s390_address_class_type_flags): Return
1415 type_instance_flags.
1416 (s390_address_class_type_flags_to_name): Take a
1417 type_instance_flags.
1418 (s390_address_class_name_to_type_flags): Return bool and take a
1419 type_instance_flags.
1420 * type-stack.c (type_stack::follow_types): Use
1421 type_instance_flags.
1422 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1423
27087b7f
TT
14242020-09-14 Tom Tromey <tromey@adacore.com>
1425
1426 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1427 * x86-tdep.c (x86_is_thunk_register_name)
1428 (x86_in_indirect_branch_thunk): Update.
1429 * sparc64-tdep.c (sparc64_fpu_register_names)
1430 (sparc64_cp0_register_names, sparc64_register_names)
1431 (sparc64_pseudo_register_names): Now const.
1432 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1433 cp0_registers_num>: Now const.
1434 * sparc-tdep.c (sparc_core_register_names)
1435 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1436 (sparc32_pseudo_register_names): Now const.
1437 (validate_tdesc_registers): Update.
1438 * rust-lang.c (rust_extensions): Now const.
1439 * p-lang.c (p_extensions): Now const.
1440 * objc-lang.c (objc_extensions): Now const.
1441 * nto-tdep.c (nto_thread_state_str): Now const.
1442 * moxie-tdep.c (moxie_register_names): Now const.
1443 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1444 Now const.
1445 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1446 (mips_linux_reg_names): Now const.
1447 (mips_gdbarch_init): Update.
1448 * microblaze-tdep.c (microblaze_register_names): Now const.
1449 * m68k-tdep.c (m68k_register_names): Now const.
1450 * m32r-tdep.c (m32r_register_names): Now const.
1451 * ia64-tdep.c (ia64_register_names): Now const.
1452 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1453 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1454 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1455 ymm_avx512_register_names, pkeys_register_names>: Now const.
1456 * i386-tdep.c (i386_register_names, i386_zmm_names)
1457 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1458 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1459 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1460 * f-lang.c (f_extensions): Now const.
1461 * d-lang.c (d_extensions): Now const.
1462 * csky-tdep.c (csky_register_names): Now const.
1463 * charset.c (default_charset_names, charset_enum): Now const.
1464 (_initialize_charset): Update.
1465 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1466 const.
1467 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1468 (bsd_uthread_solib_loaded): Update.
1469 (bsd_uthread_state): Now const.
1470 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1471 (amd64_ymm_avx512_names, amd64_ymmh_names)
1472 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1473 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1474 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1475 (amd64_dword_names): Now const.
1476 * agent.c (can_use_agent_enum): Now const.
1477 * ada-tasks.c (task_states, long_task_states): Now const.
1478 * ada-lang.c (known_runtime_file_name_patterns)
1479 (known_auxiliary_function_name_patterns, attribute_names)
1480 (standard_exc, ada_extensions): Now const.
1481
89806626
SM
14822020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1483
1484 * bcache.h (struct bcache) <bcache>: Remove constructor.
1485 <m_hash_function, m_compare_function>: Remove.
1486 <~bcache>: Make virtual.
1487 <compare>: Remove static method, introduce virtual method.
1488 <default_hash>: Remove.
1489 <hash>: New virtual method.
1490 * bcache.c (bcache::expand_hash_table): Update.
1491 (bcache::insert): Update.
1492 (bcache::hash): New.
1493 (bcache::compare): Update comment and parameter names.
1494 * gdbtypes.c (types_deeply_equal): Update.
1495 * psymtab.h (struct psymbol_bcache): New struct.
1496 (class psymtab_storage) <psymtab_storage>: Make default.
1497 <psymbol_cache>: Change type to psymbol_bcache.
1498 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1499 (psymbol_hash): Change to...
1500 (psymbol_bcache::hash): ... this.
1501 (psymbol_compare): Change to...
1502 (psymbol_bcache::compare): ... this.
1503
677c92fe
SM
15042020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1505
1506 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1507 checking for initial lwp.
1508
3eba3a01
TT
15092020-09-14 Tom Tromey <tromey@adacore.com>
1510
1511 * m68k-tdep.c (m68k_extract_return_value): Use
1512 pointer_result_regnum.
1513 (m68k_store_return_value): Likewise.
1514 (m68k_reg_struct_return_p): Handle vectors and arrays.
1515 (m68k_return_value): Handle arrays.
1516 (m68k_svr4_return_value): Fix single-element aggregate handling.
1517 Handle long double. Adjust for embedded ABI.
1518 (m68k_svr4_init_abi): Set pointer_result_regnum.
1519 (m68k_embedded_init_abi): New function.
1520 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1521 (m68k_osabi_sniffer): New function.
1522 (_initialize_m68k_tdep): Register osabi sniffer.
1523 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1524 member.
1525
33f4dd48
SM
15262020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1527
1528 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1529 with gdb::unique_xmalloc_ptr<char>.
1530
8400a90d
SM
15312020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1532
1533 * xml-support.h (xml_fetch_another): Change type to be a
1534 function_view.
1535 (xml_process_xincludes): Remove baton parameter.
1536 (xml_fetch_content_from_file): Change baton parameter to
1537 dirname.
1538 * xml-support.c (struct xinclude_parsing_data)
1539 <xinclude_parsing_data>: Remove baton parameter.
1540 <fetcher_baton>: Remove.
1541 (xinclude_start_include): Adjust.
1542 (xml_process_xincludes): Adjust.
1543 (xml_fetch_content_from_file): Replace baton parameter with
1544 dirname.
1545 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1546 (xml_init_syscalls_info): Use a lambda.
1547 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1548 (file_read_description_xml): Use a lambda.
1549 (fetch_available_features_from_target): Change baton parameter
1550 to target_ops.
1551 (target_read_description_xml): Use a lambda.
1552 (target_fetch_description_xml): Use a lambda.
1553 (string_read_description_xml): Update.
1554
04f5bab2
SM
15552020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1556
1557 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1558 uses with type::endianity_is_not_default.
1559
db558e34
SM
15602020-09-14 Simon Marchi <simon.marchi@efficios.com>
1561
1562 * gdbtypes.h (struct type) <endianity_is_not_default,
1563 set_endianity_is_not_default>: New methods.
1564 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1565 type::endianity_is_not_default, change all write call sites to
1566 use type::set_endianity_is_not_default.
1567
22c4c60c
SM
15682020-09-14 Simon Marchi <simon.marchi@efficios.com>
1569
1570 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1571 uses with type::is_fixed_instance.
1572
9cdd0d12
SM
15732020-09-14 Simon Marchi <simon.marchi@efficios.com>
1574
1575 * gdbtypes.h (struct type) <is_fixed_instance,
1576 set_is_fixed_instance>: New methods.
1577 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1578 write call sites to use type::set_is_fixed_instance.
1579
0becda7a
SM
15802020-09-14 Simon Marchi <simon.marchi@efficios.com>
1581
1582 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1583 uses with type::is_gnu_ifunc.
1584
03cc7249
SM
15852020-09-14 Simon Marchi <simon.marchi@efficios.com>
1586
1587 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1588 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1589 use type::set_is_gnu_ifunc.
1590
3f46044c
SM
15912020-09-14 Simon Marchi <simon.marchi@efficios.com>
1592
1593 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1594 uses with type::stub_is_supported.
1595
9baccff6
SM
15962020-09-14 Simon Marchi <simon.marchi@efficios.com>
1597
1598 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1599 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1600 use type::set_stub_is_supported.
1601
bd63c870
SM
16022020-09-14 Simon Marchi <simon.marchi@efficios.com>
1603
1604 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1605 uses with type::is_vector.
1606
2062087b
SM
16072020-09-14 Simon Marchi <simon.marchi@efficios.com>
1608
1609 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1610 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1611 use type::set_is_vector.
1612
a409645d
SM
16132020-09-14 Simon Marchi <simon.marchi@efficios.com>
1614
1615 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1616 uses with type::has_varargs.
1617
1d6286ed
SM
16182020-09-14 Simon Marchi <simon.marchi@efficios.com>
1619
1620 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1621 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1622 use type::set_has_varargs.
1623
7f9f399b
SM
16242020-09-14 Simon Marchi <simon.marchi@efficios.com>
1625
1626 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1627 uses with type::is_prototyped.
1628
27e69b7a
SM
16292020-09-14 Simon Marchi <simon.marchi@efficios.com>
1630
1631 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1632 New methods.
1633 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1634 call sites to use type::set_is_prototyped.
1635
d2183968
SM
16362020-09-14 Simon Marchi <simon.marchi@efficios.com>
1637
1638 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1639 uses with type::target_is_stub.
1640
8f53807e
SM
16412020-09-14 Simon Marchi <simon.marchi@efficios.com>
1642
1643 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1644 New methods.
1645 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1646 sites to use type::set_target_is_stub.
1647
e46d3488
SM
16482020-09-14 Simon Marchi <simon.marchi@efficios.com>
1649
1650 * gdbtypes.h (TYPE_STUB): Remove, replace all
1651 uses with type::is_stub.
1652
b4b73759
SM
16532020-09-14 Simon Marchi <simon.marchi@efficios.com>
1654
1655 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1656 (TYPE_STUB): Use type::is_stub, change all write call sites to
1657 use type::set_is_stub.
1658
20ce4123
SM
16592020-09-14 Simon Marchi <simon.marchi@efficios.com>
1660
1661 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1662 type::has_no_signedness.
1663
15152a54
SM
16642020-09-14 Simon Marchi <simon.marchi@efficios.com>
1665
1666 * gdbtypes.h (struct type) <has_no_signedness,
1667 set_has_no_signedness>: New methods.
1668 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1669 call sites to use type::set_has_no_signedness.
1670
c6d940a9
SM
16712020-09-14 Simon Marchi <simon.marchi@efficios.com>
1672
1673 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1674 type::is_unsigned.
1675
653223d3
SM
16762020-09-14 Simon Marchi <simon.marchi@efficios.com>
1677
1678 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1679 methods.
1680 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1681 sites to use type::set_is_unsigned.
1682
55ea94da 16832020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 1684 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 1685
e851246a
SM
1686 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1687 pointer and stack frame offset when unwinding.
55ea94da 1688
6791b117
PA
16892020-09-13 Pedro Alves <pedro@palves.net>
1690
1691 * NEWS: Document "-break-insert --qualified".
1692 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1693
77f2120b
PA
16942020-09-13 Pedro Alves <pedro@palves.net>
1695
1696 * linespec.c (classify_mtype, compare_msyms): Delete.
1697 (search_minsyms_for_name): Remove classification logic. Instead
1698 filter out trampoline symbols if we also found an external
1699 function of the same name.
1700
ed6a896c
JB
17012020-09-13 Joel Brobecker <brobecker@adacore.com>
1702
1703 * NEWS: Create a new section for the next release branch.
1704 Rename the section of the current branch, now that it has
1705 been cut.
1706
32aea73e
JB
17072020-09-13 Joel Brobecker <brobecker@adacore.com>
1708
1709 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1710 * version.in: Bump version to 11.0.50.DATE-git.
1711
8087c3fa
JB
17122020-09-12 Joel Brobecker <brobecker@adacore.com>
1713
1714 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1715
2a67f09d
FW
17162020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1717 Felix Willgerodt <Felix.Willgerodt@intel.com>
1718
1719 * gdbarch.sh: Added bfloat16 type.
1720 * gdbarch.c: Regenerated.
1721 * gdbarch.h: Regenerated.
1722 * gdbtypes.c (floatformats_bfloat16): New struct.
1723 (gdbtypes_post_init): Add builtin_bfloat16.
1724 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1725 (floatformats_bfloat16): New struct.
1726 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1727 (i386_ymm_type): Add field "v16_bfloat16"
1728 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1729 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1730 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1731 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1732 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1733 * features/i386/64bit-avx512.c: Regenerated.
1734 * features/i386/64bit-sse.xml: Add bfloat16 type.
1735 * features/i386/64bit-sse.c: Regenerated.
1736
1347d111
FW
17372020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1738
1739 * i386-tdep.c (i386_zmm_type): Fix field names.
1740 (i386_ymm_type): Fix field names.
1741
7a4e8e7d
TBA
17422020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1743
1744 * breakpoint.c: Fix typo in the help message of the
1745 "set breakpoint condition-evaluation" command.
1746
cf4ac4be
KR
17472020-09-10 Kamil Rytarowski <n54@gmx.com>
1748
1749 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1750 * (nbsd_nat_target::pid_to_exec_file)
1751 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1752 (nbsd_nat_target::post_startup_inferior)
1753 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1754 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1755 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1756 * (nbsd_thread_lister): Remove.
1757
f404573e
KR
17582020-09-10 Kamil Rytarowski <n54@gmx.com>
1759
1760 * fork-inferior.c (startup_inferior): Avoid double free.
1761
1ccb2c17
KR
17622020-09-10 Kamil Rytarowski <n54@gmx.com>
1763
1764 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1765 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1766
feedfcc7
KR
17672020-09-10 Kamil Rytarowski <n54@gmx.com>
1768
1769 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1770 * netbsd-nat.c: Include <sys/ptrace.h>.
1771 * (netbsd_nat::enable_proc_events): Add.
1772
c489f8c6
KR
17732020-09-10 Kamil Rytarowski <n54@gmx.com>
1774
1775 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1776 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1777 (netbsd_nat::for_each_thread): Add.
1778 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1779 "gdbsupport/common-debug.h".
1780 * (netbsd_nat::netbsd_thread_lister)
1781 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1782 (netbsd_nat::for_each_thread): Add.
1783
330662f6
KR
17842020-09-10 Kamil Rytarowski <n54@gmx.com>
1785
1786 * netbsd-nat.h: Include <unistd.h>.
1787 * (netbsd_nat::pid_to_exec_file): Add.
1788 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1789 * (netbsd_nat::pid_to_exec_file) Add.
1790
70b67307
KR
17912020-09-10 Kamil Rytarowski <n54@gmx.com>
1792
1793 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
1794
99cf6da6
KR
17952020-09-10 Kamil Rytarowski <n54@gmx.com>
1796
1797 * netbsd-nat.h: New file.
1798 * netbsd-nat.c: Likewise.
1799
1b788fb6
TT
18002020-09-09 Tom Tromey <tromey@adacore.com>
1801
1802 * ada-lang.c (remove_extra_symbols): Do not increment when
1803 removing an element
1804
03b0a45f
TT
18052020-09-08 Tom Tromey <tromey@adacore.com>
1806
1807 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
1808
3cae4447
TT
18092020-09-08 Tom Tromey <tromey@adacore.com>
1810
1811 PR win32/25302:
1812 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
1813 (gdb_bfd_init_data): New function.
1814 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
1815
7f08fd51
TBA
18162020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1817
1818 * infrun.c (fetch_inferior_event): Use
1819 `switch_to_target_no_thread` to switch the target.
1820
3e6ff933
TT
18212020-09-06 Tom Tromey <tom@tromey.com>
1822
1823 * symfile.h (dwarf2_free_objfile): Don't declare.
1824
e56798df
AKS
18252020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1826
1827 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
1828 to match 16 byte real/complex type generated by Flang compiler.
1829
8f5c6526
TV
18302020-09-03 Tom de Vries <tdevries@suse.de>
1831
1832 PR breakpoint/26546
1833 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
1834 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
1835
c5065df0
SM
18362020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
1837
1838 * maint.c (index_digits): New function.
1839 (struct maint_print_section_data): Remove.
1840 (print_bfd_section_info): Remove print_data parameter, add arg
1841 and index_digits.
1842 (print_objfile_section_info): Likewise.
1843 (print_bfd_section_info_maybe_relocated): Likewise (plus
1844 objfile).
1845 (maintenance_info_sections): Adjust calls.
1846
02c6f3f1
TT
18472020-09-02 Tom Tromey <tromey@adacore.com>
1848
1849 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1850 for null pointers.
1851 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1852
ef5e5b0b
SM
18532020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1854
1855 * bcache.h (struct bcache) <insert>: Change type of `added` to
1856 pointer to bool.
1857 * bcache.c (bcache::insert): Likewise.
1858 * gdbtypes.c (check_types_worklist): Adjust.
1859 * psymtab.c (add_psymbol_to_bcache): Adjust.
1860
973695d6
KB
18612020-08-31 Kevin Buettner <kevinb@redhat.com>
1862
1863 * corelow.c (unordered_set): Include.
1864 (class core_target): Add field 'm_core_unavailable_mappings'.
1865 (core_target::build_file_mappings): Print only one warning
1866 per inaccessible file. Add unavailable/broken mappings
1867 to m_core_unavailable_mappings.
1868 (core_target::xfer_partial): Call...
1869 (core_target::xfer_memory_via_mappings): New method.
1870
264fc0e2
SM
18712020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1872
1873 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1874 type to bool.
1875
2de01bdb
SM
18762020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1877
1878 * dwarf2/read.c (struct field_info): Fix indentation.
1879
f3bd50f1
SM
18802020-08-31 Simon Marchi <simon.marchi@efficios.com>
1881
1882 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1883 ordering in comment.
1884 * frame.c (frame_id_eq): Fix indentation.
1885
22b9b4b0
SL
18862020-08-31 Scott Linder <scott@scottlinder.com>
1887 Simon Marchi <simon.marchi@efficios.com>
1888
1889 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1890 inline frame ids in outer frame.
1891
84154d16
SM
18922020-08-31 Simon Marchi <simon.marchi@efficios.com>
1893
1894 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1895 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1896 (outer_frame_id): Use FID_STACK_OUTER instead of
1897 FID_STACK_INVALID.
1898 (frame_id_p): Don't check for outer_frame_id.
1899
8efaf6b3
SM
19002020-08-31 Simon Marchi <simon.marchi@efficios.com>
1901
1902 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1903 regnum/frame in value. Call allocate_value_lazy.
1904 * frame.c (frame_unwind_register_value): Use
1905 val_print_not_saved.
1906
fe1fe7ea
SM
19072020-08-31 Simon Marchi <simon.marchi@efficios.com>
1908
1909 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1910
f7c7700d
PA
19112020-08-29 Pedro Alves <pedro@palves.net>
1912
1913 * progspace.c (print_program_space): Use all_inferiors. Switch to
1914 the inferior before calling target_pid_to_str.
1915
e0814aae
TT
19162020-08-28 Tom Tromey <tom@tromey.com>
1917
1918 * xcoffread.c (xcoff_end_psymtab): Update comment.
1919 * dbxread.c (dbx_end_psymtab): Update comment.
1920
626d2320
TV
19212020-08-28 Tom de Vries <tdevries@suse.de>
1922
1923 PR breakpoint/26544
1924 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1925 event_location.
1926 (create_breakpoint): Same.
1927 (base_breakpoint_decode_location): Same.
1928 (bkpt_create_sals_from_location): Same.
1929 (bkpt_decode_location): Same.
1930 (bkpt_probe_create_sals_from_location): Same.
1931 (bkpt_probe_decode_location): Same.
1932 (tracepoint_create_sals_from_location): Same.
1933 (tracepoint_decode_location): Same.
1934 (tracepoint_probe_decode_location): Same.
1935 (strace_marker_create_sals_from_location): Same.
1936 (strace_marker_decode_location): Same.
1937 (create_sals_from_location_default): Same.
1938 (decode_location_default): Same.
1939 * breakpoint.h (struct breakpoint_ops): Same.
1940 (create_breakpoint): Same.
1941 * linespec.h (decode_line_full): Same.
1942 * linespec.c (decode_line_full): Same. Throw error if
1943 result.size () == 0.
1944
df631783
PA
19452020-08-27 Pedro Alves <pedro@palves.net>
1946
1947 PR gdb/26524
1948 * breakpoint.c (until_break_fsm) <location_breakpoint,
1949 caller_breakpoint>: Delete fields.
1950 <breakpoints>: New field.
1951 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1952 two individual breakpoints.
1953 (until_break_fsm::should_stop): Loop over breakpoints in the
1954 breakpoint vector.
1955 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1956 vector.
1957 (until_break_command): Handle location expanding into multiple
1958 sals.
1959
b2b38aa4
PA
19602020-08-27 Pedro Alves <pedro@palves.net>
1961
1962 PR gdb/26523
1963 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1964 bp_until breakpoints user-specified locations. Update intro
1965 comment.
1966
b886559f
SM
19672020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1968
1969 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1970 gdb_bfd_sections): New.
1971 * maint.c (print_bfd_section_info): Change param type to
1972 maint_print_section_data.
1973 (print_objfile_section_info): Likewise.
1974 (print_bfd_section_info_maybe_relocated): Likewise.
1975 (maintenance_info_sections): Use gdb_bfd_sections.
1976
4c6e63bf
SV
19772020-08-25 Shahab Vahedi <shahab@synopsys.com>
1978
1979 * MAINTAINERS: Add ARC target and maintainer.
1980
8d7f0635
AK
19812020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1982
1983 * configure.tgt: ARC support for GNU/Linux.
1984 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1985 * arc-linux-tdep.c: New file.
1986 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1987 * arc-tdep.c (arc_write_pc): Use it.
1988
fdd8731b
SV
19892020-08-25 Shahab Vahedi <shahab@synopsys.com>
1990
1991 * arc-tdep.c (arc_check_for_hardware_loop): New.
1992 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1993
22459524
SV
19942020-08-25 Shahab Vahedi <shahab@synopsys.com>
1995
1996 * arc-tdep.h: Include "gdbarch.h".
1997
995d3a19
SV
19982020-08-25 Shahab Vahedi <shahab@synopsys.com>
1999
2000 * arch/arc.h
2001 (arc_gdbarch_features): New class to stir the selection of target XML.
2002 (arc_create_target_description): Use FEATURES to choose XML target.
2003 (arc_lookup_target_description): Use arc_create_target_description
2004 to create _new_ target descriptions or return the already created
2005 ones if the FEATURES is the same.
2006 * arch/arc.c: Implementation of prototypes described above.
2007 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
2008 (arc_gdbarch_features_init): Initialize the FEATURES struct.
2009 * arc-tdep.c (*_feature_name): Make feature names consistent.
2010 (arc_register_feature): A new struct to hold information about
2011 registers of a particular target/feature.
2012 (arc_check_tdesc_feature): Check if XML provides registers in
2013 compliance with ARC_REGISTER_FEATURE structs.
2014 (arc_update_acc_reg_names): Add aliases for r58 and r59.
2015 (determine_*_reg_feature_set): Which feature name to look for.
2016 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
2017 (mach_type_to_arc_isa): Convert from a set of binutils machine types
2018 to expected ISA enums to be used in arc_gdbarch_features structs.
2019 * features/Makefile (FEATURE_XMLFILES): Add new files.
2020 * gdb/features/arc/v1-aux.c: New file.
2021 * gdb/features/arc/v1-aux.xml: Likewise.
2022 * gdb/features/arc/v1-core.c: Likewise.
2023 * gdb/features/arc/v1-core.xml: Likewise.
2024 * gdb/features/arc/v2-aux.c: Likewise.
2025 * gdb/features/arc/v2-aux.xml: Likewise.
2026 * gdb/features/arc/v2-core.c: Likewise.
2027 * gdb/features/arc/v2-core.xml: Likewise.
2028 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
2029
3945d2d7
GM
20302020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
2031 Andrew Burgess <andrew.burgess@embecosm.com>
2032
2033 PR m2/26372
fc5d6901 2034 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
2035 an assert. Remove single element array indexing pattern as the
2036 MULTI_SUBSCRIPT support will handle this case too.
2037
2677f2d3
SM
20382020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
2039
2040 * value.h (valprint_check_validity): Move declaration from
2041 here...
2042 * valprint.h (valprint_check_validity): ... to here.
2043
c426fddb
SM
20442020-08-24 Simon Marchi <simon.marchi@efficios.com>
2045
2046 * debug.h: New file.
2047 * debug.c (debug_prefixed_vprintf): New function.
2048 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
2049 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
2050
1eb8556f
SM
20512020-08-24 Simon Marchi <simon.marchi@efficios.com>
2052
2053 * infrun.h (infrun_debug_printf_1): New function declaration.
2054 (infrun_debug_printf): New macro.
2055 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
2056 throughout.
2057 (infrun_debug_printf): New function.
2058 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
2059 (handle_jit_event): Likewise.
2060
b8fff44e
MW
20612020-08-21 Mark Wielaard <mark@klomp.org>
2062
2063 * ada-lex.l: Extend register warnings diagnostics comment for g++.
2064
d19c3068
SM
20652020-08-22 Simon Marchi <simon.marchi@efficios.com>
2066
2067 * frame.c (enum class frame_id_status): New.
2068 (struct frame_info) <this_id::p>: Change type to frame_id_status.
2069 (fprintf_frame): Update.
2070 (compute_frame_id): Set frame id status to "computing" on entry.
2071 Set it back to "not_computed" on failure and to "computed" on
2072 success.
2073 (get_frame_id): Assert the frame id is not being computed.
2074 (create_sentinel_frame): Use frame_id_status::COMPUTED.
2075 (create_new_frame): Likewise.
2076 (frame_cleanup_after_sniffer): Update assert.
2077
b70e516e
SM
20782020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2079
2080 * regcache.c (pid_ptid_regcache_map): New type.
2081 (target_ptid_regcache_map): Remove.
2082 (target_pid_ptid_regcache_map): New type.
2083 (regcaches): Change type to target_pid_ptid_regcache_map.
2084 (get_thread_arch_aspace_regcache): Update.
2085 (regcache_thread_ptid_changed): Update, handle pid-like ptid
2086 case.
2087 (regcaches_size): Update.
2088 (regcache_count): Update.
2089 (registers_changed_ptid_target_pid_test): New.
2090 (_initialize_regcache): Register new test.
2091
cdd9148a
SM
20922020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2093
2094 * regcache.c (regcache_count): New.
2095 (struct regcache_test_data): New.
2096 (regcache_test_data_up): New.
2097 (populate_regcaches_for_test): New.
2098 (regcaches_test): Remove.
2099 (get_thread_arch_aspace_regcache_test): New.
2100 (registers_changed_ptid_all_test): New.
2101 (registers_changed_ptid_target_test): New.
2102 (registers_changed_ptid_target_ptid_test): New.
2103 (regcache_thread_ptid_changed): Remove regcache_count lambda.
2104 (_initialize_regcache): Register new tests.
2105
dd125343
SM
21062020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2107
2108 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
2109 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
2110 gdbarch and aspace parameter. Use current inferior's aspace.
2111 Validate regcache's arch value.
2112 (regcaches_test): Update.
2113
3ee93972
SM
21142020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2115
2116 * regcache.c (regcaches_test): Call registers_changed.
2117
33bf4c5c
TBA
21182020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2119
2120 * infrun.c (process_event_stop_test): Fix typo "breapoint".
2121
c2fd7fae
AKS
21222020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2123
2124 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2125 to find the end of prologue for flang compiled binaries.
2126 * arm-tdep.c (arm_skip_prologue): Likewise.
2127 * i386-tdep.c (i386_skip_prologue): Likewise.
2128 * producer.c (producer_is_llvm): New function.
2129 (producer_parsing_tests): Added new tests for clang/flang.
2130 * producer.h (producer_is_llvm): New declaration.
2131
9327494e
SM
21322020-08-18 Simon Marchi <simon.marchi@efficios.com>
2133
2134 * linux-nat.c (linux_nat_debug_printf): New function.
2135 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2136
d138725a
AM
21372020-08-18 Aaron Merey <amerey@redhat.com>
2138
2139 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2140 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2141 (CLIBS): Add DEBUGINFOD_LIBS.
2142
f9b11e6b
ST
21432020-08-17 Sergei Trofimovich <siarheit@google.com>
2144
2145 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2146 'gdbarch_num_regs'.
2147
3ae7ab99
TT
21482020-08-17 Tom Tromey <tromey@adacore.com>
2149
2150 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2151 ada_get_decoded_value returns NULL.
2152
b017825f
TT
21532020-08-17 Tom Tromey <tromey@adacore.com>
2154
2155 * python/py-inferior.c (infpy_search_memory): Use
2156 gdb_py_object_from_ulongest.
2157 * python/py-infevents.c (create_inferior_call_event_object)
2158 (create_memory_changed_event_object): Use
2159 gdb_py_object_from_ulongest.
2160 * python/py-linetable.c (ltpy_entry_get_pc): Use
2161 gdb_py_object_from_ulongest.
2162
7635cf79
SM
21632020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2164
2165 * loc.c (class symbol_needs_eval_context): Fix indentation.
2166
f54be24b
SM
21672020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2168
2169 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2170 bool.
2171
53d5a2a5
TV
21722020-08-17 Tom de Vries <tdevries@suse.de>
2173
2174 PR gdb/26393
2175 * gdbtypes.c (dump_dynamic_prop): New function.
2176 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2177
547ce8f0
TV
21782020-08-15 Tom de Vries <tdevries@suse.de>
2179
2180 PR backtrace/26390
2181 * stack.c (print_frame_args): Temporarily set the selected
2182 frame to FRAME while printing the frame's arguments.
2183
6ea815e7
PFC
21842020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2185
2186 PR breakpoints/26385
2187 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2188 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2189
6e562fa3
PFC
21902020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2191
2192 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2193 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2194 and >= to check return value instead of == -1 and != -1.
2195
d369b608
SM
21962020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2197
2198 * utils.h (class gdb_argv) <as_array_view>: New method.
2199 * utils.c (gdb_argv_as_array_view_test): New.
2200 (_initialize_utils): Register selftest.
2201 * maint.c (maintenance_selftest): Use the new method.
2202
b31488a3
KR
22032020-08-13 Kamil Rytarowski <n54@gmx.com>
2204
2205 * target.h (supports_dumpcore, dumpcore): New
2206 function declarations.
2207 * target.c (supports_dumpcore, dumpcore): New
2208 functions.
2209 * target-delegates.c: Rebuild.
2210 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2211 and target_dumpcore ().
2212
002a3166
AM
22132020-08-13 Aaron Merey <amerey@redhat.com>
2214
2215 * debuginfod-support.c: Replace global variables with user_data.
2216
ece5bc8a
SM
22172020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2218
2219 * maint.c (maintenance_selftest): Split args and pass array_view
2220 to run_tests.
2221
6d8a0a5e
LM
22222020-08-12 Luis Machado <luis.machado@linaro.org>
2223
2224 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2225 type's length.
2226 Use %s and pulongest to print the length.
2227
7cf663a9
PA
22282020-08-12 Pedro Alves <palves@redhat.com>
2229
2230 * NEWS: Move "Multi-target debugging support" item to the
2231 "Changes since GDB 9" section.
2232
27c7b875
PA
22332020-08-12 Pedro Alves <palves@redhat.com>
2234
2235 PR gdb/26336
2236 * progspace.c (program_space::remove_objfile): Invalidate the
2237 frame cache.
2238
1796a2a1
TV
22392020-08-11 Tom de Vries <tdevries@suse.de>
2240
2241 * MAINTAINERS: Mark ms1 as deleted.
2242
f8e3fe0d
LM
22432020-08-10 Luis Machado <luis.machado@linaro.org>
2244
2245 PR gdb/26310
2246
2247 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2248 act accordingly.
2249 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2250 movz/str/stur/stp skipping behavior.
2251
cc308722
LM
22522020-08-10 Luis Machado <luis.machado@linaro.org>
2253
2254 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2255 struct user_sve_header instead of struct sve_context.
2256
041d9819
SM
22572020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2258
2259 * read.h (dwarf2_fetch_die_loc_sect_off,
2260 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2261 `void *` parameter with function_view.
2262 * read.c (dwarf2_fetch_die_loc_sect_off,
2263 dwarf2_fetch_die_loc_cu_off): Likewise.
2264 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2265 (per_cu_dwarf_call): Adjust.
2266 (get_frame_address_in_block_wrapper): Remove.
2267 (indirect_synthetic_pointer): Adjust.
2268 (get_ax_pc): Remove.
2269 (dwarf2_compile_expr_to_ax): Adjust.
2270
38f8aa06
TV
22712020-08-08 Tom de Vries <tdevries@suse.de>
2272
2273 PR build/26344
2274 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2275 constructor.
2276 * regcache.c (get_thread_arch_aspace_regcache): Same.
2277
a52b3ae2
TT
22782020-08-07 Tom Tromey <tromey@adacore.com>
2279
2280 * ravenscar-thread.c
2281 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2282 New method.
2283 (ravenscar_thread_target::wait): Check
2284 runtime_initialized.
2285 (ravenscar_thread_target::prepare_to_store)
2286 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2287 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2288 (ravenscar_thread_target::stopped_by_watchpoint)
2289 (ravenscar_thread_target::stopped_data_address)
2290 (ravenscar_thread_target::core_of_thread): Use
2291 scoped_restore_current_thread and
2292 set_base_thread_from_ravenscar_task.
2293
0e29517d
TT
22942020-08-07 Tom Tromey <tromey@adacore.com>
2295
2296 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2297
592f9bd7
TT
22982020-08-07 Tom Tromey <tromey@adacore.com>
2299
2300 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2301 update_inferior_ptid before update_thread_list.
2302 (temporarily_change_regcache_ptid): New class.
2303 (ravenscar_thread_target::fetch_registers)
2304 (ravenscar_thread_target::store_registers)
2305 (ravenscar_thread_target::prepare_to_store): Use base thread when
2306 forwarding operation.
2307
39e2018a
TT
23082020-08-07 Tom Tromey <tromey@adacore.com>
2309
2310 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2311 "is_pid" case.
2312
2080266b
TT
23132020-08-07 Tom Tromey <tromey@adacore.com>
2314
2315 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2316 New methods.
2317 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2318 first.
2319 (ravenscar_thread_target::add_thread): Rename from
2320 ravenscar_add_thread.
2321 (ravenscar_thread_target::update_thread_list): Use a lambda.
2322 (ravenscar_thread_target::xfer_partial): New method.
2323
78c02f21
TT
23242020-08-07 Tom Tromey <tromey@adacore.com>
2325
2326 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2327 gdb::function_view.
2328 (iterate_over_live_ada_tasks): Change type of argument.
2329 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2330 of argument.
2331
d5d833af
TT
23322020-08-07 Tom Tromey <tromey@adacore.com>
2333
2334 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2335 Remove.
2336 (ravenscar_thread_target::extra_thread_info): Remove.
2337 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2338 defer to target beneath for non-Ravenscar threads.
2339
a8ac85bb
TT
23402020-08-07 Tom Tromey <tromey@adacore.com>
2341
2342 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2343 get_base_thread_from_ravenscar_task>: Now methods.
2344 <m_cpu_map>: New member.
2345 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2346 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2347 (ravenscar_thread_target::task_is_currently_active): Update.
2348 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2349 Now a method.
2350 (ravenscar_thread_target::add_active_thread): Put initial thread
2351 into the m_cpu_map.
2352
550ab58d
TT
23532020-08-07 Tom Tromey <tromey@adacore.com>
2354
2355 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2356 event_ptid.
2357
e9546579
TT
23582020-08-07 Tom Tromey <tromey@adacore.com>
2359
2360 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2361 runtime_initialized.
2362
3d4470e5
TT
23632020-08-07 Tom Tromey <tromey@adacore.com>
2364
2365 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2366 add_active_thread.
2367 (ravenscar_thread_target::add_active_thread): Now public.
2368 (ravenscar_inferior_created): Call add_active_thread after pushing
2369 the target.
2370
888bdb2b
SM
23712020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2372
2373 * regcache.c (ptid_regcache_map): New type.
2374 (target_ptid_regcache_map): New type.
2375 (regcaches): Change type to target_ptid_regcache_map.
2376 (get_thread_arch_aspace_regcache): Update to regcaches' new
2377 type.
2378 (regcache_thread_ptid_changed): Likewise.
2379 (registers_changed_ptid): Likewise.
2380 (regcaches_size): Likewise.
2381 (regcaches_test): Update.
2382 (regcache_thread_ptid_changed): Update.
2383 * regcache.h (regcache_up): New type.
2384 * gdbsupport/ptid.h (hash_ptid): New struct.
2385
b161a60d
SM
23862020-08-07 Simon Marchi <simon.marchi@efficios.com>
2387
2388 * observable.h (thread_ptid_changed): Add parameter
2389 `process_stratum_target *`.
2390 * infrun.c (infrun_thread_ptid_changed): Add parameter
2391 `process_stratum_target *` and use it.
2392 (selftests): New namespace.
2393 (infrun_thread_ptid_changed): New function.
2394 (_initialize_infrun): Register selftest.
2395 * regcache.c (regcache_thread_ptid_changed): Add parameter
2396 `process_stratum_target *` and use it.
2397 (regcache_thread_ptid_changed): New function.
2398 (_initialize_regcache): Register selftest.
2399 * thread.c (thread_change_ptid): Pass target to
2400 thread_ptid_changed observable.
2401
d2854d8d
CT
24022020-08-06 Caroline Tice <cmtice@google.com>
2403
fe4c3d43
SM
2404 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2405 (struct dwp_sections): Update field comments. Add loclists and
2406 rnglists fields.
2407 (struct virtual_v2_dwo_sections): Rename struct to
2408 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2409 size & offset fields for loclists and rnglists.
2410 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2411 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2412 skipping dummy type units.
2413 (create_dwp_hash_table): Update the large comment above the function to
2414 discuss Version 5 DWP files as well, with references. Update all the
2415 version checks in the function to check for version 5 as well. Add new
2416 section at the end to create dwp hash table for version 5.
2417 (create_dwp_v2_section): Rename function to
2418 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2419 Add V5 to error message text.
2420 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2421 into calls to create_dwp_v2_or_v5_section.
2422 (create_dwo_unit_in_dwp_v5): New function.
2423 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2424 check for version2; add else clause to handle version 5.
2425 (open_and_init_dwo_file): Add code to check dwarf version & only call
2426 create_debug_types_hash_table (with sections.types) if version is not 5;
2427 else call create_debug_type_hash_table, with sections.info.
2428 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2429 version 5.
2430 (dwarf2_locate_v5_dwp_sections): New function.
2431 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2432 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 2433
159ed7d9
SM
24342020-08-06 Simon Marchi <simon.marchi@efficios.com>
2435
2436 * regcache.h (class regcache): Remove friend
2437 registers_changed_ptid.
2438 <regcache_thread_ptid_changed>: Remove.
2439 <regcaches>: Remove.
2440 * regcache.c (regcache::regcaches): Rename to...
2441 (regcaches): ... this. Make static.
2442 (get_thread_arch_aspace_regcache): Update.
2443 (regcache::regcache_thread_ptid_changed): Rename to...
2444 (regcache_thread_ptid_changed): ... this. Update.
2445 (class regcache_access): Remove.
2446 (regcaches_test): Update.
2447 (_initialize_regcache): Update.
2448 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2449 <forward_list>.
2450
174981ae
SM
24512020-08-06 Simon Marchi <simon.marchi@efficios.com>
2452
2453 * regcache.h (class regcache) <current_regcache>: Rename to...
2454 <regcaches>: ... this. Move doc here.
2455 * regcache.c (regcache::current_regcache) Rename to...
2456 (regcache::regcaches): ... this. Move doc to header.
2457 (get_thread_arch_aspace_regcache): Update.
2458 (regcache::regcache_thread_ptid_changed): Update.
2459 (registers_changed_ptid): Update.
2460 (class regcache_access) <current_regcache_size>: Rename to...
2461 <regcaches_size>: ... this.
2462 (current_regcache_test): Rename to...
2463 (regcaches_test): ... this.
2464 (_initialize_regcache): Update.
2465
ed908db6
VC
24662020-08-06 Victor Collod <vcollod@nvidia.com>
2467
2468 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2469
b5582ab7
KB
24702020-08-05 Kevin Buettner <kevinb@redhat.com>
2471
2472 * corelow.c (core_target::build_file_mappings): Don't output
2473 null pathname in warning.
2474
ea946b86
SM
24752020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2476
2477 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2478 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2479 gdb.dwarf2/dw2-single-line-discriminators.exp,
2480 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2481
57d02173
TT
24822020-08-05 Tom Tromey <tromey@adacore.com>
2483
2484 PR rust/26197:
2485 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2486 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2487 Fix off-by-one and type size errors in ordinary case.
2488
5555c86d
TV
24892020-08-05 Tom de Vries <tdevries@suse.de>
2490
2491 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2492 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2493
97916bfe
SM
24942020-08-04 Simon Marchi <simon.marchi@efficios.com>
2495
2496 * frame.h (frame_id_p): Return bool.
2497 (frame_id_artificial_p): Return bool.
2498 (frame_id_eq): Return bool.
2499 (has_stack_frames): Return bool.
2500 (get_selected_frame): Fix typo in comment.
2501 (get_frame_pc_if_available): Return bool.
2502 (get_frame_address_in_block_if_available): Return bool.
2503 (get_frame_func_if_available): Return bool.
2504 (read_frame_register_unsigned): Return bool.
2505 (get_frame_register_bytes): Return bool.
2506 (safe_frame_unwind_memory): Return bool.
2507 (deprecated_frame_register_read): Return bool.
2508 (frame_unwinder_is): Return bool.
2509 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2510 bool.
2511 <this_id::p>: Likewise.
2512 <prev_p>: Likewise.
2513 (frame_stash_add): Return bool.
2514 (get_frame_id): Use bool.
2515 (frame_id_build_special) Use bool.
2516 (frame_id_build_unavailable_stack): Use bool.
2517 (frame_id_build): Use bool.
2518 (frame_id_p): Return bool, use true/false instead of 1/0.
2519 (frame_id_artificial_p): Likewise.
2520 (frame_id_eq): Likewise.
2521 (frame_id_inner): Likewise.
2522 (get_frame_func_if_available): Likewise.
2523 (read_frame_register_unsigned): Likewise.
2524 (deprecated_frame_register_read): Likewise.
2525 (get_frame_register_bytes): Likewise.
2526 (has_stack_frames): Likewise.
2527 (inside_main_func): Likewise.
2528 (inside_entry_func): Likewise.
2529 (get_frame_pc_if_available): Likewise.
2530 (get_frame_address_in_block_if_available): Likewise.
2531 (frame_unwinder_is): Likewise.
2532 (safe_frame_unwind_memory): Likewise.
2533 (frame_unwind_arch): Likewise.
2534
fedfee88
SM
25352020-08-04 Simon Marchi <simon.marchi@efficios.com>
2536
2537 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2538 type to cached_copy_status.
2539 (fprintf_frame): Adjust.
2540 (get_frame_func_if_available): Adjust.
2541 (frame_cleanup_after_sniffer): Adjust.
2542
6cfa9b59
MW
25432020-08-04 Mark Wielaard <mark@klomp.org>
2544
2545 * MAINTAINERS (Write After Approval): Update email address.
2546
66d6346b
SM
25472020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2548
2549 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2550 dynamic_prop::const_val.
2551
8a6d5e35
SM
25522020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2553
2554 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2555 dynamic_prop::kind.
2556
51d6067d
SM
25572020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2558
2559 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2560
b26e2ae7
JM
25612020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2562
2563 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2564
39791af2
JM
25652020-08-04 Weimin Pan <weimin.pan@oracle.com>
2566 Jose E. Marchesi <jose.marchesi@oracle.com>
2567
2568 * configure.tgt: Add entry for bpf-*-*.
2569 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2570 (ALLDEPFILES): Add bpf-tdep.c.
2571 * bpf-tdep.c: New file.
2572 * MAINTAINERS: Add bpf target and maintainer.
2573 * NEWS: Mention the support for the new target.
2574
521894aa
TV
25752020-08-04 Tom de Vries <tdevries@suse.de>
2576
2577 PR symtab/23270
2578 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2579 Error.
2580
5d6356e9
JB
25812020-08-03 John Baldwin <jhb@FreeBSD.org>
2582
2583 * syscalls/freebsd.xml: Regenerate.
2584
0cf82b81
JB
25852020-08-03 John Baldwin <jhb@FreeBSD.org>
2586
2587 * syscalls/update-freebsd.sh: Fix usage and year range.
2588
8f34b746
TV
25892020-08-03 Tom de Vries <tdevries@suse.de>
2590
2591 PR symtab/26333
2592 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2593 DW_LNE_lo_user/DW_LNE_hi_user range.
2594
5e500d33
SM
25952020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2596
2597 PR ada/26318
2598 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2599 kind.
2600
78319c15
TBA
26012020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2602
2603 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2604
4c55e970
TBA
26052020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2606
2607 * breakpoint.c (set_breakpoint_condition): Update the condition
2608 expressions after checking that the input condition string parses
2609 successfully and does not contain junk at the end.
2610
1e620590
TBA
26112020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2612
2613 * breakpoint.c (set_breakpoint_condition): Update the
2614 condition string after parsing the new condition successfully.
2615
c8693053
RO
26162020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2617
2618 * proc-api.c (_STRUCTURED_PROC): Don't define.
2619 * proc-events.c: Likewise.
2620 * proc-flags.c: Likewise.
2621 * proc-why.c: Likewise.
2622 * procfs.c: Likewise.
2623
2624 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2625 * configure, config.in: Regenerate.
2626
5a99adb8
TV
26272020-07-30 Tom de Vries <tdevries@suse.de>
2628
2629 PR build/26320
2630 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2631 m_red/m_green/m_blue in a union.
2632
8ba83e91
TV
26332020-07-29 Tom de Vries <tdevries@suse.de>
2634
2635 PR tdep/26280
2636 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2637
f75a0693
AB
26382020-07-28 Tom Tromey <tromey@adacore.com>
2639
2640 PR symtab/26270:
2641 * symtab.h (find_pc_partial_function_sym): Declare.
2642 * cli/cli-cmds.c (disassemble_command): Use
2643 find_pc_partial_function_sym. Check asm_demangle.
2644 * blockframe.c (cache_pc_function_sym): New global.
2645 (cache_pc_function_name): Remove.
2646 (clear_pc_function_cache): Update.
2647 (find_pc_partial_function_sym): New function, from
2648 find_pc_partial_function.
2649 (find_pc_partial_function): Rewrite using
2650 find_pc_partial_function_sym.
2651
16f3242c
TT
26522020-07-28 Tom Tromey <tromey@adacore.com>
2653
2654 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2655 help. Add usage.
2656
4888741a
TT
26572020-07-28 Tom Tromey <tromey@adacore.com>
2658
2659 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2660 <DW_OP_GNU_variable_value>: Cast to address type.
2661
4d46f402
KR
26622020-07-28 Kamil Rytarowski <n54@gmx.com>
2663
2664 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2665 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2666 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2667 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2668 (nbsd_get_siginfo_type): New.
2669 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2670 (_initialize_nbsd_tdep): New.
2671
d70f978b
L
26722020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2673
2674 PR binutils/26301
2675 * configure: Regenerated.
2676
377170fa
L
26772020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2678
2679 PR binutils/26301
2680 * configure: Regenerated.
2681
43d5901d
AB
26822020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2683
2684 * python/py-frame.c: Remove 'user-regs.h' include.
2685 (frapy_read_register): Rewrite to make use of
2686 gdbpy_parse_register_id.
2687 * python/py-registers.c (gdbpy_parse_register_id): New function,
2688 moved here from python/py-unwind.c. Updated the return type, and
2689 also accepts register descriptor objects.
2690 * python/py-unwind.c: Remove 'user-regs.h' include.
2691 (pyuw_parse_register_id): Moved to python/py-registers.c.
2692 (unwind_infopy_add_saved_register): Update to use
2693 gdbpy_parse_register_id.
2694 (pending_framepy_read_register): Likewise.
2695 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2696
14fa8fb3
AB
26972020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2698
2699 * python/py-registers.c: Add 'user-regs.h' include.
2700 (register_descriptor_iter_find): New function.
2701 (register_descriptor_iterator_object_methods): New static global
2702 methods array.
2703 (register_descriptor_iterator_object_type): Add pointer to methods
2704 array.
2705
ddce1758
JB
27062020-07-27 John Baldwin <jhb@FreeBSD.org>
2707
2708 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2709 for all architectures on FreeBSD 11.3 and later.
2710
a4089f52
TT
27112020-07-27 Tom Tromey <tromey@adacore.com>
2712
2713 * gcore.h (load_corefile): Don't declare.
2714
95420d30
TV
27152020-07-27 Tom de Vries <tdevries@suse.de>
2716
2717 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2718 * config.in: Regenerate.
2719 * configure: Regenerate.
2720
05a6b8c2
EZ
27212020-07-26 Eli Zaretskii <eliz@gnu.org>
2722
2723 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2724 ws2tcpip.h. When checking whether socklen_t type is defined, use
2725 ws2tcpip.h if it is available and sys/socket.h isn't.
2726 * configure: Regenerate.
2727 * config.in: Regenerate.
2728
e79eb02f
AB
27292020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2730
2731 PR fortran/23051
2732 PR fortran/26139
2733 * valops.c (value_ind): Pass address to
2734 readjust_indirect_value_type.
2735 * value.c (readjust_indirect_value_type): Make parameter
2736 non-const, and add extra address parameter. Resolve original type
2737 before using it.
2738 * value.h (readjust_indirect_value_type): Update function
2739 signature and comment.
2740
876518dd
TV
27412020-07-25 Tom de Vries <tdevries@suse.de>
2742
2743 PR symtab/26243
2744 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2745 entries.
2746
f6720b1c
AM
27472020-07-24 Aaron Merey <amerey@redhat.com>
2748
2749 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2750 * configure: Rebuild.
2751
513487e1
KB
27522020-07-23 Kevin Buettner <kevinb@redhat.com>
2753
2754 PR corefiles/26294
2755 * corelow.c (_initialize_corelow): Add period to help text
2756 for "maintenance print core-file-backed-mappings".
2757
e7bc9db8
PA
27582020-07-23 Pedro Alves <pedro@palves.net>
2759
2760 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2761 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2762 meanwhile.
2763 * frame.c (frame_cache_generation, get_frame_cache_generation):
2764 New.
2765 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2766 (get_prev_frame_if_no_cycle): On exception, don't touch
2767 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2768 * frame.h (get_frame_cache_generation): Declare.
2769
90fcc466
TV
27702020-07-23 Tom de Vries <tdevries@suse.de>
2771
2772 PR tui/26282
2773 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2774 New default constructor.
2775
78344df7
AB
27762020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2777
2778 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2779 exclude non-statement entries.
2780
b089853a
KB
27812020-07-22 Kevin Buettner <kevinb@redhat.com>
2782
2783 * NEWS (New commands): Mention new command
2784 "maintenance print core-file-backed-mappings".
2785
09c2f5d4
KB
27862020-07-22 Kevin Buettner <kevinb@redhat.com>
2787
2788 * corelow.c (gdbcmd.h): Include.
2789 (core_target::info_proc_mappings): New method.
2790 (get_current_core_target): New function.
2791 (maintenance_print_core_file_backed_mappings): New function.
2792 (_initialize_corelow): Add core-file-backed-mappings to
2793 "maint print" commands.
2794
9c5ec5c2 27952020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 2796
9c5ec5c2
KB
2797 * linux-tdep.c (dump_note_entry_p): New function.
2798 (linux_dump_mapping_p_ftype): New typedef.
2799 (linux_find_memory_regions_full): Add new parameter,
2800 should_dump_mapping_p.
2801 (linux_find_memory_regions): Adjust call to
2802 linux_find_memory_regions_full.
2803 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2804 call to linux_find_memory_regions_full.
2805
db082f59
KB
28062020-07-22 Kevin Buettner <kevinb@redhat.com>
2807
2808 * corelow.c (solist.h, unordered_map): Include.
2809 (class core_target): Add field m_core_file_mappings and
2810 method build_file_mappings.
2811 (core_target::core_target): Call build_file_mappings.
2812 (core_target::~core_target): Free memory associated with
2813 m_core_file_mappings.
2814 (core_target::build_file_mappings): New method.
2815 (core_target::xfer_partial): Use m_core_file_mappings
2816 for memory transfers.
2817 * linux-tdep.c (linux_read_core_file_mappings): New
2818 function.
2819 (linux_core_info_proc_mappings): Rewrite to use
2820 linux_read_core_file_mappings.
2821 (linux_init_abi): Register linux_read_core_file_mappings.
2822
7e183d27
KB
28232020-07-22 Kevin Buettner <kevinb@redhat.com>
2824
2825 * arch-utils.c (default_read_core_file_mappings): New function.
2826 * arch-utils.c (default_read_core_file_mappings): Declare.
2827 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
2828 * gdbarch.h, gdbarch.c: Regenerate.
2829
2735d421
KB
28302020-07-22 Kevin Buettner <kevinb@redhat.com>
2831
2832 PR corefiles/25631
2833 * corelow.c (core_target:xfer_partial): Revise
2834 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
2835 case after first checking the stratum beneath the core
2836 target.
2837 (has_all_memory): Return true.
2838 * target.c (raw_memory_xfer_partial): Revise comment
2839 regarding use of has_all_memory.
2840
e56cb451
KB
28412020-07-22 Kevin Buettner <kevinb@redhat.com>
2842
2843 * exec.h (section_table_xfer_memory): Revise declaration,
2844 replacing section name parameter with an optional callback
2845 predicate.
2846 * exec.c (section_table_xfer_memory): Likewise.
2847 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2848 of section_table_xfer_memory.
2849
32fa152e
TT
28502020-07-22 Tom Tromey <tromey@adacore.com>
2851
2852 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2853 lookup_symbol_search_name.
2854
a67a1c41
AB
28552020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2856
2857 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2858 redundant local variable.
2859 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2860 reference, not pointer, update code accordingly.
2861
a7b4ff4f
SM
28622020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2863 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2864
2865 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2866 * jit.c (jit_breakpoint_re_set_internal): Use the
2867 `skip_jit_symbol_lookup` field.
2868
2340e834
SM
28692020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2870 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2871
2872 * jit.c (jit_read_descriptor): Define the descriptor address once,
2873 use twice.
2874 (jit_breakpoint_deleted): Move the declaration of the loop variable
2875 `iter` into the loop header.
2876 (jit_breakpoint_re_set_internal): Move the declaration of the local
2877 variable `objf_data` to the first point of definition.
2878 (jit_event_handler): Move the declaration of local variables
2879 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2880 Rename `objf` to `jited`.
2881
c1072906
SM
28822020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2883
2884 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2885 Remove.
2886 * jit.c (get_jiter_objfile_data): Update.
2887
c8474dc3
TBA
28882020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2889 Simon Marchi <simon.marchi@polymtl.ca>
2890
2891 * jit.c (struct jit_program_space_data): Remove.
2892 (jit_program_space_key): Remove.
2893 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2894 stuff.
2895 (get_jit_program_space_data): Remove.
2896 (jit_breakpoint_deleted): Iterate on all of the program space's
2897 objfiles.
2898 (jit_inferior_init): Likewise.
2899 (jit_breakpoint_re_set_internal): Likewise. Also change return
2900 type to void.
2901 (jit_breakpoint_re_set): Pass current_program_space to
2902 jit_breakpoint_re_set_internal.
2903
77208eb7
SM
29042020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2905
2906 * jit.h (struct jiter_objfile_data) <cached_code_address,
2907 jit_breakpoint>: Move to here from ...
2908 * jit.c (jit_program_space_data): ... here.
2909 (jiter_objfile_data::~jiter_objfile_data): Update.
2910 (jit_breakpoint_deleted): Update.
2911 (jit_breakpoint_re_set_internal): Update.
2912
8c1c720f
SM
29132020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2914
2915 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2916 checks.
2917 (jit_read_descriptor): Remove NULL check.
2918 (jit_event_handler): Add an assertion.
2919
0e74a041
SM
29202020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2921
2922 * jit.h (struct jit_objfile_data): Split into...
2923 (struct jiter_objfile_data): ... this ...
2924 (struct jited_objfile_data): ... and this.
2925 * objfiles.h (struct objfile) <jit_data>: Remove.
2926 <jiter_data, jited_data>: New fields.
2927 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2928 (jiter_objfile_data::~jiter_objfile_data): ... this.
2929 (get_jit_objfile_data): Rename to ...
2930 (get_jiter_objfile_data): ... this.
2931 (add_objfile_entry): Update.
2932 (jit_read_descriptor): Use get_jiter_objfile_data.
2933 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2934 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2935 (jit_inferior_exit_hook): Use objfile's jited_data field.
2936
238b5c9f
SM
29372020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2938
2939 * jit.h: Forward-declare `struct minimal_symbol`.
2940 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2941 constructor, destructor, and an objfile* field.
2942 * jit.c (jit_objfile_data): Remove.
2943 (struct jit_objfile_data): Migrate from here to jit.h.
2944 (jit_objfile_data::~jit_objfile_data): New destructor
2945 implementation with code moved from free_objfile_data.
2946 (free_objfile_data): Delete.
2947 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2948 (jit_find_objf_with_entry_addr): Ditto.
2949 (jit_inferior_exit_hook): Ditto.
2950 (_initialize_jit): Remove the call to
2951 register_objfile_data_with_cleanup.
2952 * objfiles.h (struct objfile) <jit_data>: New field.
2953
fe053b9e
TBA
29542020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2955
2956 * jit.h: Forward-declare `struct objfile`.
2957 (jit_event_handler): Add a second parameter, the JITer objfile.
2958 * jit.c (jit_read_descriptor): Change the signature to take the
2959 JITer objfile as an argument instead of the jit_program_space_data.
2960 (jit_inferior_init): Update the call to jit_read_descriptor.
2961 (jit_event_handler): Use the new JITer objfile argument when calling
2962 jit_read_descriptor.
2963 * breakpoint.c (handle_jit_event): Update the call to
2964 jit_event_handler to pass the JITer objfile.
2965
4cec0c66
JB
29662020-07-21 John Baldwin <jhb@FreeBSD.org>
2967
2968 * gdbarch.c: Regenerate.
2969 * gdbarch.h: Regenerate.
2970 * gdbarch.sh (handle_segmentation_fault): Remove method.
2971 * infrun.c (handle_segmentation_fault): Remove.
2972 (print_signal_received_reason): Remove call to
2973 handle_segmentation_fault.
2974
0e42f66a
JB
29752020-07-21 John Baldwin <jhb@FreeBSD.org>
2976
2977 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2978 Rename to sparc64_linux_report_signal_info and add siggnal
2979 argument.
2980 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2981 instead of sparc64_linux_handle_segmentation_fault.
2982
77bdfeb2
JB
29832020-07-21 John Baldwin <jhb@FreeBSD.org>
2984
2985 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2986 i386_linux_report_signal_info instead of
2987 i386_linux_handle_segmentation_fault.
2988 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2989 to i386_linux_report_signal_info and add siggnal argument.
2990 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2991 of i386_linux_handle_segmentation_fault.
2992 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2993 to i386_linux_report_signal_info and add siggnal argument.
2994
ad97bfc5
JB
29952020-07-21 John Baldwin <jhb@FreeBSD.org>
2996
2997 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
2998 hook if present.
2999
272bb05c
JB
30002020-07-21 John Baldwin <jhb@FreeBSD.org>
3001
3002 * gdbarch.c: Regenerate.
3003 * gdbarch.h: Regenerate.
3004 * gdbarch.sh (report_signal_info): New method.
3005 * infrun.c (print_signal_received_reason): Invoke gdbarch
3006 report_signal_info hook if present.
3007
baf8791e
AB
30082020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3009
3010 * python/py-registers.c : Add 'unordered_map' include.
3011 (gdbpy_new_reggroup): Renamed to...
3012 (gdbpy_get_reggroup): ...this. Update to only create register
3013 group descriptors when needed.
3014 (gdbpy_reggroup_iter_next): Update.
3015
f7306dac
AB
30162020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3017
3018 * python/py-registers.c (gdbpy_register_object_data): New static
3019 global.
3020 (gdbpy_register_object_data_init): New function.
3021 (gdbpy_new_register_descriptor): Renamed to...
3022 (gdbpy_get_register_descriptor): ...this, and update to reuse
3023 existing register descriptors where possible.
3024 (gdbpy_register_descriptor_iter_next): Update.
3025 (gdbpy_initialize_registers): Register new gdbarch data.
3026
05c309a8
SM
30272020-07-21 Simon Marchi <simon.marchi@efficios.com>
3028
3029 * linux-nat.c (stopped_pids): Make static.
3030
d1fd641e
SM
30312020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3032
3033 PR ada/26235
3034 * gdbtypes.c (ada_discrete_type_low_bound,
3035 ada_discrete_type_high_bound): Handle undefined bounds.
3036
1de14d77
KR
30372020-07-21 Kamil Rytarowski <n54@gmx.com>
3038
3039 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
3040 declaration.
3041 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
3042 function.
3043
ed810cc7
JB
30442020-07-20 John Baldwin <jhb@FreeBSD.org>
3045
3046 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
3047 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
3048 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
3049 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
3050 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
3051 method.
3052
ae5369e7
LC
30532020-07-20 Ludovic Courtès <ludo@gnu.org>
3054
3055 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
3056 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
3057 which are deprecated in Guile 3.0.
3058 * configure.ac (try_guile_versions): Add "guile-3.0".
3059 * configure (try_guile_versions): Regenerate.
3060 * NEWS: Update entry.
3061
68cf161c
LC
30622020-07-20 Ludovic Courtès <ludo@gnu.org>
3063 Doug Evans <dje@google.com>
3064
3065 PR gdb/21104
3066 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
3067 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
3068 USING_GUILE_BEFORE_2_2.
3069 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
3070 Change type to 'scm_t_port_type *'.
3071 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
3072 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
3073 parameter and honor it. Update callers.
3074 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
3075 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
3076 functions.
3077 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
3078 USING_GUILE_BEFORE_2_2.
3079 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
3080 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
3081 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
3082 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
3083 and 'SCM_PORT_TYPE'.
3084 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
3085 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
3086 (gdbscm_memory_port_read, gdbscm_memory_port_write)
3087 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
3088 [!USING_GUILE_BEFORE_2_2]: New functions.
3089 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
3090 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
3091 'gdbscm_memory_port_read'.
3092 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
3093 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
3094 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
3095 function.
3096 (ioscm_init_memory_port): Remove.
3097 (ioscm_init_memory_port_stream): New function
3098 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
3099 function.
3100 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3101 Return scm_from_uint (0).
3102 (gdbscm_set_memory_port_read_buffer_size_x)
3103 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3104 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3105 Return scm_from_uint (0).
3106 (gdbscm_set_memory_port_write_buffer_size_x)
3107 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3108 * configure.ac (try_guile_versions): Add "guile-2.2".
3109 * configure: Regenerate.
3110 * NEWS: Add entry.
3111
aee91db3
TT
31122020-07-18 Tom Tromey <tom@tromey.com>
3113
3114 * linux-nat.c (linux_multi_process): Remove.
3115 (linux_nat_target::supports_multi_process): Return true.
3116
0e267416
AB
31172020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3118
3119 * arch/riscv.c (riscv_tdesc_cache): Change map type.
3120 (riscv_lookup_target_description): Return pointer out of
3121 unique_ptr.
3122 * target-descriptions.c (allocate_target_description): Add
3123 comment.
3124 (target_desc_deleter::operator()): Likewise.
3125 * target-descriptions.h (struct target_desc_deleter): Moved to
3126 gdbsupport/tdesc.h.
3127 (target_desc_up): Likewise.
3128
f80c8ec4
TT
31292020-07-17 Tom Tromey <tromey@adacore.com>
3130
3131 * linux-nat.c (linux_nat_target::supports_non_stop)
3132 (linux_nat_target::always_non_stop_p): Use "true".
3133 (linux_nat_target::supports_disable_randomization): Use "true" and
3134 "false".
3135
d0ce17d8
CT
31362020-07-16 Caroline Tice <cmtice@google.com>
3137
3138 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3139 (RNGLIST_HEADER_SIZE64): New constant definition.
3140 (struct dwop_section_names): Add rnglists_dwo.
3141 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3142 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3143 (struct dwo_sections): Add rnglists field.
3144 (read_attribut_reprocess): Add tag parameter.
3145 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3146 (cu_debug_rnglists_section): New function (decl & definition).
3147 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3148 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3149 die whose range is being checked; get rnglist section from
3150 cu_debug_rnglists_section, to get from either objfile or dwo file as
3151 appropriate. Add cases for DW_RLE_base_addressx,
3152 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3153 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3154 test inside if-condition and updating complaint message.
3155 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3156 dwarf2_rnglists_process.
3157 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3158 dwarf2_ranges_process.
3159 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3160 need_ranges_base and update comment appropriately. Also pass die tag
3161 to dwarf2_ranges_read.
3162 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3163 need_ranges_base and update comment appropriately. Also pass die tag
3164 to dwarf2_ranges_process.
3165 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3166 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3167 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3168 need_ranges_base and update comment appropriately. Also pass die tag
3169 to read_attribute_reprocess and dwarf2_ranges_read.
3170 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3171 and update function comment appropriately.
3172 (read_loclist_index): Call read_loclists_rnglists_header instead of
3173 read_loclist_header.
3174 (read_rnglist_index): New function.
3175 (read_attribute_reprocess): Add tag parameter. Add code for
3176 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3177 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3178
3dcc261c
AB
31792020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3180
3181 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3182 being resolved.
3183
ccb9eba6
AB
31842020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3185
3186 * arch-utils.c (show_architecture): Update formatting of messages.
3187
cf88be68
SM
31882020-07-12 Simon Marchi <simon.marchi@efficios.com>
3189
3190 * gdbtypes.h (struct type) <bounds>: Handle array and string
3191 types.
3192 * ada-lang.c (assign_aggregate): Use type::bounds on
3193 array/string type.
3194 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3195 * c-varobj.c (c_number_of_children): Likewise.
3196 (c_describe_child): Likewise.
3197 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3198 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3199 (f_type_print_base): Likewise.
3200 * f-valprint.c (f77_array_offset_tbl): Likewise.
3201 (f77_get_upperbound): Likewise.
3202 (f77_print_array_1): Likewise.
3203 * guile/scm-type.c (gdbscm_type_range): Likewise.
3204 * m2-typeprint.c (m2_array): Likewise.
3205 (m2_is_long_set_of_type): Likewise.
3206 * m2-valprint.c (get_long_set_bounds): Likewise.
3207 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3208 * python/py-type.c (typy_range): Likewise.
3209 * rust-lang.c (rust_internal_print_type): Likewise.
3210 * type-stack.c (type_stack::follow_types): Likewise.
3211 * valarith.c (value_subscripted_rvalue): Likewise.
3212 * valops.c (value_cast): Likewise.
3213
509971ae
SM
32142020-07-12 Simon Marchi <simon.marchi@efficios.com>
3215
3216 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3217 callers to use the equivalent accessor methods.
3218
107406b7
SM
32192020-07-12 Simon Marchi <simon.marchi@efficios.com>
3220
3221 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3222 (struct type) <bit_stride>: New method.
3223 (TYPE_BIT_STRIDE): Remove.
3224 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3225
bb789949
SM
32262020-07-12 Simon Marchi <simon.marchi@efficios.com>
3227
3228 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3229 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3230 callers to use the equivalent accessor methods instead.
3231
39498edb
SM
32322020-07-12 Simon Marchi <simon.marchi@efficios.com>
3233
3234 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3235 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3236 callers to use the equivalent accessor methods instead.
3237
3b606f38
SM
32382020-07-12 Simon Marchi <simon.marchi@efficios.com>
3239
3240 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3241 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3242 to use dynamic_prop::kind.
3243
064d9cb9
SM
32442020-07-12 Simon Marchi <simon.marchi@efficios.com>
3245
3246 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3247 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3248 to get the bound property's kind and check against
3249 PROP_UNDEFINED.
3250
5537ddd0
SM
32512020-07-12 Simon Marchi <simon.marchi@efficios.com>
3252
3253 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3254 all callers to use type::range_bounds followed by
3255 dynamic_prop::{low,high}.
3256
8c2e4e06
SM
32572020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3258
3259 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3260 const_val, set_const_val, baton, set_locexpr, set_loclist,
3261 set_addr_offset, variant_parts, set_variant_parts,
3262 original_type, set_original_type>: New methods.
3263 <kind>: Rename to...
3264 <m_kind>: ... this. Update all users to use the new methods
3265 instead.
3266 <data>: Rename to...
3267 <m_data>: ... this. Update all users to use the new methods
3268 instead.
3269
7c6f2712
SM
32702020-07-12 Simon Marchi <simon.marchi@efficios.com>
3271
3272 * gdbtypes.c (get_discrete_bounds): Return failure if
3273 the range type's bounds are not both defined and constant
3274 values.
3275 (get_array_bounds): Update comment. Remove undefined bound check.
3276
599088e3
SM
32772020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3278
3279 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3280 the type::bounds method directly.
3281
c4dfcb36
SM
32822020-07-12 Simon Marchi <simon.marchi@efficios.com>
3283
3284 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3285 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3286 are used to set the range type's bounds to use set_bounds.
3287
0a278aa7
PW
32882020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3289
3290 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3291
cce20f10
PA
32922020-07-10 Pedro Alves <pedro@palves.net>
3293
3294 * gdbthread.h (inferior_ref): Define.
3295 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3296 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3297 * thread.c
3298 (scoped_restore_current_thread::restore):
3299 Adjust to gdb::ref_ptr.
3300 (scoped_restore_current_thread::~scoped_restore_current_thread):
3301 Remove manual decref handling.
3302 (scoped_restore_current_thread::scoped_restore_current_thread):
3303 Adjust to use
3304 inferior_ref::new_reference/thread_info_ref::new_reference.
3305 Incref the thread before calling get_frame_id instead of after.
3306 Let TARGET_CLOSE_ERROR propagate.
3307
6d7aa592
PA
33082020-07-10 Pedro Alves <pedro@palves.net>
3309
3310 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3311 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3312 NOT_AVAILABLE_ERROR.
3313 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3314 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3315
b3e3a4c1
SM
33162020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3317 Pedro Alves <pedro@palves.net>
3318
3319 PR gdb/26199
3320 * infrun.c (threads_are_resumed_pending_p): Delete.
3321 (do_target_wait): Remove threads_are_executing and
3322 threads_are_resumed_pending_p checks from the inferior_matches
3323 lambda. Update comments.
3324
d6cc5d98
PA
33252020-07-10 Pedro Alves <pedro@palves.net>
3326
3327 PR gdb/26199
3328 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3329 executing threads.
3330
7d3badc6
PA
33312020-07-10 Pedro Alves <pedro@palves.net>
3332
3333 PR gdb/26199
3334 * infrun.c (handle_no_resumed): Handle multiple targets.
3335
42bd97a6
PA
33362020-07-10 Pedro Alves <pedro@palves.net>
3337
3338 PR gdb/26199
3339 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3340 target_is_async_p.
3341
43667cc6
PA
33422020-07-10 Pedro Alves <pedro@palves.net>
3343
3344 PR gdb/26199
3345 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3346 threads, not all threads.
3347
96118d11
PA
33482020-07-10 Pedro Alves <pedro@palves.net>
3349
3350 PR gdb/26199
3351 * remote.c (remote_target::open_1): Pass remote target pointer as
3352 data to create_async_event_handler.
3353 (remote_async_inferior_event_handler): Mark async event handler
3354 before returning if the remote target still has either pending
3355 events or unacknowledged notifications.
3356
54904d81
JB
33572020-07-10 John Baldwin <jhb@FreeBSD.org>
3358
3359 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3360 declaration.
3361 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3362 function.
3363
f37e5866
JB
33642020-07-09 John Baldwin <jhb@FreeBSD.org>
3365
3366 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3367 inferior_ptid.
3368
fc238d4a
JB
33692020-07-09 John Baldwin <jhb@FreeBSD.org>
3370
3371 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3372 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3373 AT_FREEBSD_PS_STRINGS.
3374
6e2469ff
HD
33752020-07-08 Hannes Domani <ssbssa@yahoo.de>
3376
3377 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3378 of debugfile path on Windows.
3379
d1076c41
JB
33802020-07-08 John Baldwin <jhb@FreeBSD.org>
3381
3382 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3383 argument to 'data'.
3384
15f3b077
TT
33852020-07-08 Tom Tromey <tromey@adacore.com>
3386
3387 * ada-lang.c (ada_exception_message_1): Use read_memory.
3388
9fc501fd
AB
33892020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3390
3391 PR python/22748
3392 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3393 special handling for inline frames.
3394 * findvar.c (value_of_register_lazy): Skip inline frames when
3395 creating lazy register values.
3396 * frame.c (frame_id_computed_p): Delete definition.
3397 * frame.h (frame_id_computed_p): Delete declaration.
3398
64cb3757
AB
33992020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3400
3401 * NEWS: Mention additions to Python API.
3402 * python/py-arch.c (archpy_register_groups): New function.
3403 (arch_object_methods): Add 'register_groups' method.
3404 * python/py-registers.c (reggroup_iterator_object): New struct.
3405 (reggroup_object): New struct.
3406 (gdbpy_new_reggroup): New function.
3407 (gdbpy_reggroup_to_string): New function.
3408 (gdbpy_reggroup_name): New function.
3409 (gdbpy_reggroup_iter): New function.
3410 (gdbpy_reggroup_iter_next): New function.
3411 (gdbpy_new_reggroup_iterator): New function
3412 (gdbpy_initialize_registers): Register new types.
3413 (reggroup_iterator_object_type): Define new Python type.
3414 (gdbpy_reggroup_getset): New static global.
3415 (reggroup_object_type): Define new Python type.
3416 * python/python-internal.h
3417
0f767f94
AB
34182020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3419
3420 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3421 * python/py-arch.c (archpy_registers): New function.
3422 (arch_object_methods): Add 'registers' method.
3423 * python/py-registers.c: New file.
3424 * python/python-internal.h
3425 (gdbpy_new_register_descriptor_iterator): Declare.
3426 (gdbpy_initialize_registers): Declare.
3427 * python/python.c (do_start_initialization): Call
3428 gdbpy_initialize_registers.
3429 * NEWS: Mention additions to the Python API.
3430
87dbc774
AB
34312020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3432
3433 * NEWS: Mention new Python API method.
3434 * python/py-unwind.c (pending_framepy_architecture): New function.
3435 (pending_frame_object_methods): Add architecture method.
3436
3bc98c0c
AB
34372020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3438
3439 * gdbarch.c: Regenerate.
3440 * gdbarch.h: Regenerate.
3441 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3442 (gdbarch_data): Use internal_error for the case where
3443 deprecated_set_gdbarch_data was originally needed.
3444 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3445 and use passed in obstack.
3446 (libunwind_frame_set_descr): Should no longer get back NULL from
3447 gdbarch_data.
3448 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3449 type.
3450 * user-regs.c (user_regs_init): Update parameters, and use passed
3451 in obstack.
3452 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3453 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3454
d8cc8af6
TV
34552020-07-06 Tom de Vries <tdevries@suse.de>
3456
3457 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3458 End-Of-Sequence in lte_is_less_than.
3459 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3460 "gdb: Don't reorder line table entries too much when sorting".
3461
947f7597
TV
34622020-07-06 Tom de Vries <tdevries@suse.de>
3463
3464 PR tui/26205
3465 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3466
1e7c1b22
TV
34672020-07-05 Tom de Vries <tdevries@suse.de>
3468
3469 PR build/26187
3470 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3471 std::uncaught_exceptions instead of deprecated
3472 std::uncaught_exception.
3473
a36158ec
SM
34742020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3475
3476 * macroexp.h (macro_stringify): Return
3477 gdb::unique_xmalloc_ptr<char>.
3478 * macroexp.c (macro_stringify): Likewise.
3479 * macrotab.c (fixup_definition): Update.
3480
14d960c8
SM
34812020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3482
3483 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3484 (lex_one_token): Update.
3485 * macroexp.c (struct macro_buffer) <release>: Return
3486 gdb::unique_xmalloc_ptr<char>.
3487 (macro_stringify): Update.
3488 (macro_expand): Update.
3489 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3490 * macroexp.h (macro_expand_next): Likewise.
3491
211d5b1c
SM
34922020-07-02 Simon Marchi <simon.marchi@efficios.com>
3493
3494 * macroexp.h (macro_lookup_ftype): Remove.
3495 (macro_expand, macro_expand_once, macro_expand_next): Remove
3496 lookup function parameters, add scope parameter.
3497 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3498 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3499 * macroscope.h (standard_macro_lookup): Change parameter type
3500 to macro_scope.
3501 * macroscope.c (standard_macro_lookup): Likewise.
3502 * c-exp.y (lex_one_token): Update.
3503 * macrocmd.c (macro_expand_command): Likewise.
3504 (macro_expand_once_command): Likewise.
3505
b1a35af2
SM
35062020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3507
3508 * inf-loop.c (inferior_event_handler): Remove client_data param.
3509 * inf-loop.h (inferior_event_handler): Likewise.
3510 * infcmd.c (step_1): Adjust.
3511 * infrun.c (proceed): Adjust.
3512 (fetch_inferior_event): Remove client_data param.
3513 (infrun_async_inferior_event_handler): Adjust.
3514 * infrun.h (fetch_inferior_event): Remove `void *` param.
3515 * linux-nat.c (handle_target_event): Adjust.
3516 * record-btrace.c (record_btrace_handle_async_inferior_event):
3517 Adjust.
3518 * record-full.c (record_full_async_inferior_event_handler):
3519 Adjust.
3520 * remote.c (remote_async_inferior_event_handler): Adjust.
3521
1cdf9e33
TT
35222020-07-01 Tom Tromey <tom@tromey.com>
3523
3524 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3525 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3526
32c1e210
TT
35272020-07-01 Tom Tromey <tom@tromey.com>
3528
3529 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3530 tui_gen_win_info.
3531 (tui_win_info::make_window): Merge with
3532 tui_gen_win_info::make_window.
3533 (tui_win_info::make_visible): Move from tui_gen_win_info.
3534 * tui/tui-win.c (tui_win_info::max_width): Move from
3535 tui_gen_win_info.
3536 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3537 type.
3538 <window_factory>: Likewise.
3539 * tui/tui-layout.c (tui_win_info::resize): Move from
3540 tui_gen_win_info.
3541 (make_standard_window): Change return type.
3542 (get_locator_window, tui_get_window_by_name): Likewise.
3543 (tui_layout_window::apply): Remove a cast.
3544 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3545 (struct tui_win_info): Merge with tui_gen_win_info.
3546 (struct tui_gen_win_info): Remove.
3547
a30cb6da
TT
35482020-07-01 Tom Tromey <tom@tromey.com>
3549
3550 * tui/tui-stack.h (struct tui_locator_window): Derive from
3551 tui_win_info.
3552 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3553 <can_box>: New method.
3554
1eb2161f
TT
35552020-07-01 Tom Tromey <tom@tromey.com>
3556
3557 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3558
7134f2eb
TT
35592020-07-01 Tom Tromey <tom@tromey.com>
3560
3561 * tui/tui-regs.c (tui_data_window::display_registers_from)
3562 (tui_data_window::display_registers_from)
3563 (tui_data_window::first_data_item_displayed)
3564 (tui_data_window::delete_data_content_windows): Update.
3565 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3566 Remove.
3567 (tui_data_window::check_register_values): Update.
3568 (tui_data_item_window::rerender): Add parameters. Update.
3569 (tui_data_item_window::refresh_window): Remove.
3570 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3571 virtual.
3572 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3573 tui_gen_win_info.
3574 <refresh_window, max_height, min_height>: Remove.
3575 <rerender>: Add parameters.
3576 <x, y, visible>: New members.
3577 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3578 <m_item_width>: New member.
3579
22b7b041
TT
35802020-07-01 Tom Tromey <tom@tromey.com>
3581
3582 * tui/tui-regs.c (tui_data_window::show_register_group)
3583 (tui_data_window::check_register_values): Update.
3584 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3585 from item_no.
3586
c9753adb
TT
35872020-07-01 Tom Tromey <tom@tromey.com>
3588
3589 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3590 useless "if".
3591
9ab26b4a
TT
35922020-07-01 Tom Tromey <tom@tromey.com>
3593
3594 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3595 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3596
e555083f
TT
35972020-07-01 Tom Tromey <tom@tromey.com>
3598
3599 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3600 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3601 (struct tui_line_or_address): Move from tui-data.h.
3602 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3603 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3604 (tui_cmd_window, tui_source_window_base, tui_source_window)
3605 (tui_disasm_window): Don't declare.
3606 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3607 to tui-winsource.h.
3608 (SINGLE_KEY): Move to tui-stack.c.
3609
7a02bab7
TT
36102020-07-01 Tom Tromey <tom@tromey.com>
3611
3612 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3613 std::string.
3614 * tui/tui-regs.c (class tab_expansion_file): New.
3615 (tab_expansion_file::write): New method.
3616 (tui_register_format): Change return type. Use
3617 tab_expansion_file.
3618 (tui_get_register, tui_data_window::display_registers_from)
3619 (tui_data_item_window::rerender): Update.
3620 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3621 * tui/tui-io.c (tui_expand_tabs): Remove.
3622
ea68593b
TT
36232020-07-01 Tom Tromey <tom@tromey.com>
3624
3625 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3626
a8caed5d
FS
36272020-07-01 Fangrui Song <maskray@google.com>
3628
3629 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3630
9cdf9820
AKS
36312020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3632
3633 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3634 forms for DW_AT_associated and DW_AT_allocated attributes,
3635 which is already checked in function attr_to_dynamic_prop.
3636
a1520ad8
TT
36372020-06-30 Tom Tromey <tromey@adacore.com>
3638
3639 * dwarf2/read.c (quirk_rust_enum): Correctly call
3640 alloc_rust_variant for default-less enum.
3641
5ac58899
TT
36422020-06-30 Tom Tromey <tromey@adacore.com>
3643
3644 PR build/26183:
3645 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3646 gdb::to_string.
3647
19b187a9
SM
36482020-06-29 Simon Marchi <simon.marchi@efficios.com>
3649
3650 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3651 * gdbarch.h: Re-generate.
3652
cd4c4c07
TT
36532020-06-28 Tom Tromey <tom@tromey.com>
3654
3655 * command.h (cmd_types): Remove.
3656 (cmd_type): Don't declare.
3657 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3658 typedef.
3659 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3660 * cli/cli-decode.c (cmd_type): Remove.
3661
05779d57
PA
36622020-06-27 Pedro Alves <palves@redhat.com>
3663
3664 * fork-child.c (prefork_hook): Adjust.
3665 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3666 Delete.
3667 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3668 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3669 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3670 Remove declarations.
3671 (struct inferior) <set_tty, tty>: New methods.
3672 (struct inferior) <terminal>: Rename to ...
3673 (struct inferior) <m_terminal>: ... this and make private.
3674 * main.c (captured_main_1): Adjust.
3675 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3676 (mi_cmd_inferior_tty_show): Adjust.
3677 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3678 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3679
1776e3e5
NA
36802020-06-26 Nick Alcock <nick.alcock@oracle.com>
3681
3682 * configure.ac: Add --enable-libctf: handle --disable-static
3683 properly.
3684 * acinclude.m4: sinclude ../config/enable.m4.
3685 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3686 (LIBCTF): Substitute in.
3687 (CTF_DEPS): New, likewise.
3688 (CLIBS): libctf needs symbols from libbfd: move earlier.
3689 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3690 flags.
3691 * ctfread.c: Surround in ENABLE_LIBCTF.
3692 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3693 * configure: Regenerate.
3694 * config.in: Likewise.
3695
58373b80
SM
36962020-06-25 Simon Marchi <simon.marchi@efficios.com>
3697
3698 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3699
277474ee
SM
37002020-06-25 Simon Marchi <simon.marchi@efficios.com>
3701
3702 * inferior.h (struct inferior) <terminal>: Change type to
3703 gdb::unique_xmalloc_ptr<char>.
3704 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3705 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3706 field, adjust to unique pointer.
3707 (get_inferior_io_terminal): Adjust to unique pointer.
3708
6d74da72
AB
37092020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3710
3711 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3712 registers, not just the known core set of registers.
3713
2e52d038
AB
37142020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3715
3716 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3717 fflags, frm, and fcsr registers.
3718 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3719 restore groups.
3720 (riscv_tdesc_unknown_reg): New function.
3721 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3722 tdesc_use_registers.
3723 * riscv-tdep.h (struct gdbarch_tdep): Add
3724 unknown_csrs_first_regnum, unknown_csrs_count,
3725 duplicate_fflags_regnum, duplicate_frm_regnum, and
3726 duplicate_fcsr_regnum fields.
3727
be64fd07
AB
37282020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3729
3730 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3731 callback, use the callback (when not null) to help number unknown
3732 registers.
3733 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3734 (tdesc_use_registers): Add extra parameter to declaration.
3735
3b9fce96
AB
37362020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3737
3738 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3739 in the file.
3740 (class riscv_pending_register_alias): Likewise.
3741 (riscv_register_feature::register_info): Change 'required_p' field
3742 to 'required', and change its type. Add 'check' member function.
3743 (riscv_register_feature::register_info::check): Define new member
3744 function.
3745 (riscv_xreg_feature): Change initialisation of 'required' field.
3746 (riscv_freg_feature): Likewise.
3747 (riscv_virtual_feature): Likewise.
3748 (riscv_csr_feature): Likewise.
3749 (riscv_check_tdesc_feature): Take extra parameter, the csr
3750 tdesc_feature, rewrite the function to use the new
3751 riscv_register_feature::register_info::check function.
3752 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3753
865bad26
AB
37542020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3755
3756 * features/Makefile: Remove all references to the deleted files
3757 below.
3758 * features/riscv/32bit-csr.c: Deleted.
3759 * features/riscv/32bit-csr.xml: Deleted.
3760 * features/riscv/64bit-csr.c: Deleted.
3761 * features/riscv/64bit-csr.xml: Deleted.
3762 * features/riscv/rebuild-csr-xml.sh: Deleted.
3763
ed69cbc8
AB
37642020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3765
3766 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3767 whitespace error for declaration of names member variable.
3768 (struct riscv_register_feature): Add new prefer_first_name member
3769 variable, and fix whitespace error in declaration of registers.
3770 (riscv_xreg_feature): Initialize prefer_first_name field.
3771 (riscv_freg_feature): Likewise.
3772 (riscv_virtual_feature): Likewise.
3773 (riscv_csr_feature): Likewise.
3774 (riscv_register_name): Expand on comments. Remove register name
3775 modifications for CSR and virtual registers.
3776
4445e8f5
AB
37772020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3778
3779 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3780 errors.
3781
767a879e
AB
37822020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3783
3784 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3785 riscv-opc.h.
3786 (class riscv_pending_register_alias): New class.
3787 (riscv_check_tdesc_feature): Take vector of pending aliases and
3788 populate it as appropriate.
3789 (riscv_setup_register_aliases): Delete.
3790 (riscv_gdbarch_init): Create vector of pending aliases and pass it
3791 to riscv_check_tdesc_feature in all cases. Use the vector to
3792 create the register aliases.
3793
bb6e55f3
RO
37942020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3795
3796 * sol2-tdep.c (sol2_static_transform_name): Remove.
3797 (sol2_init_abi): Don't register it.
3798 * gdbarch.sh (static_transform_name): Remove.
3799 * gdbarch.c, gdbarch.h: Regenerate.
3800
3801 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3802 gdbarch_static_transform_name.
3803 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3804 * stabsread.c (define_symbol) <'X'>: Remove.
3805 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
3806 handling.
3807 <'V'>: Likewise.
3808 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
3809 <'S'>: Remove call to gdbarch_static_transform_name.
3810
c6d36836
RO
38112020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3812
3813 * procfs.c (procfs_pre_trace): New function.
3814 (procfs_target::create_inferior): Pass it to fork_inferior.
3815
a7e6196b
RO
38162020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3817
3818 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
3819 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
3820 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
3821 sol2-tdep.o, sparc-sol2-tdep.o.
3822 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
3823 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
3824 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
3825 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
3826
d412e696
RO
38272020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3828
3829 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
3830 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
3831 Call sol2_init_abi.
3832 Remove calls to set_gdbarch_skip_solib_resolver,
3833 set_gdbarch_core_pid_to_str.
3834 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
3835 (i386_sol2_static_transform_name): Remove.
3836 (i386_sol2_init_abi): Call sol2_init_abi.
3837 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3838 set_gdbarch_static_transform_name,
3839 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3840 Use sol2_sigtramp_p.
3841 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
3842 (sol2_sigtramp_p): New function.
3843 (sol2_static_transform_name): New function.
3844 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3845 (sol2_init_abi): New function.
3846 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3847 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3848 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3849 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3850 (sparc_sol2_static_transform_name): Remove.
3851 (sparc32_sol2_init_abi): Call sol2_init_abi.
3852 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3853 set_gdbarch_static_transform_name,
3854 set_gdbarch_skip_solib_resolver,
3855 set_gdbarch_core_pid_to_str.
3856 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3857 (sparc_sol2_static_transform_name): Remove
3858 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3859 call sol2_sigtramp_p.
3860 (sparc64_sol2_init_abi): Call sol2_init_abi.
3861 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3862 set_gdbarch_static_transform_name,
3863 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3864
a8654e7d
PW
38652020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3866
3867 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3868 * exec.c (validate_exec_file): If from_tty, set both
3869 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3870 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3871 and from_tty, unconditionally ask a confirmation.
3872
caa7fd04
AB
38732020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3874
3875 * target-descriptions.c (tdesc_architecture_name): Protect against
3876 NULL pointer dereference.
3877 (maint_print_xml_tdesc_cmd): New function.
3878 (_initialize_target_descriptions): Register new 'maint print
3879 xml-tdesc' command and give it the filename completer.
3880 * NEWS: Mention new 'maint print xml-tdesc' command.
3881
fbf42f4e
AB
38822020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3883
3884 * target-descriptions.c (class tdesc_compatible_info): New class.
3885 (struct target_desc): Change type of compatible vector.
3886 (tdesc_compatible_p): Update for change in type of
3887 target_desc::compatible.
3888 (tdesc_compatible_info_list): New function.
3889 (tdesc_compatible_info_arch_name): New function.
3890 (tdesc_add_compatible): Update for change in type of
3891 target_desc::compatible.
3892 (print_c_tdesc::visit_pre): Likewise.
3893
20821f4e
AB
38942020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3895
3896 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3897 whitespace to underscore.
3898 (maint_print_c_tdesc_cmd): Use fake filename for target
3899 descriptions that came from the target.
3900 (_initialize_target_descriptions): Add filename command completion
3901 for 'maint print c-tdesc'.
3902
1fb5ee62
SM
39032020-06-23 Simon Marchi <simon.marchi@efficios.com>
3904
3905 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3906 lines.
3907
fc3ecb3e
SM
39082020-06-23 Simon Marchi <simon.marchi@efficios.com>
3909
3910 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3911 lines.
3912 (dwarf2_find_location_expression): Likewise.
3913 (call_site_parameter_matches): Likewise.
3914 (dwarf2_compile_expr_to_ax): Likewise.
3915 (disassemble_dwarf_expression): Likewise.
3916 (loclist_describe_location): Likewise.
3917
236ef034
PA
39182020-06-23 Pedro Alves <palves@redhat.com>
3919
3920 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3921 progspace-and-thread.h. Include scoped-mock-context.h instead.
3922 (register_to_value_test): Use scoped_mock_context.
3923 * regcache.c: Include "scoped-mock-context.h".
3924 (cooked_read_test): Don't error out if a target is already pushed.
3925 Use scoped_mock_context. Adjust.
3926 * scoped-mock-context.h: New file.
3927
39e7ecca
AB
39282020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3929
3930 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3931 initializer.
3932 (ada_language::is_string_type_p): New member function.
3933 * c-lang.c (c_language_data): Delete la_is_string_type_p
3934 initializer.
3935 (cplus_language_data): Likewise.
3936 (asm_language_data): Likewise.
3937 (minimal_language_data): Likewise.
3938 * d-lang.c (d_language_data): Likewise.
3939 * f-lang.c (f_is_string_type_p): Delete function, implementation
3940 moved to f_language::is_string_type_p.
3941 (f_language_data): Delete la_is_string_type_p initializer.
3942 (f_language::is_string_type_p): New member function,
3943 implementation from f_is_string_type_p.
3944 * go-lang.c (go_is_string_type_p): Delete function, implementation
3945 moved to go_language::is_string_type_p.
3946 (go_language_data): Delete la_is_string_type_p initializer.
3947 (go_language::is_string_type_p): New member function,
3948 implementation from go_is_string_type_p.
3949 * language.c (language_defn::is_string_type_p): Define new member
3950 function.
3951 (default_is_string_type_p): Make static, add comment copied from
3952 header file.
3953 (unknown_language_data): Delete la_is_string_type_p initializer.
3954 (unknown_language::is_string_type_p): New member function.
3955 (auto_language_data): Delete la_is_string_type_p initializer.
3956 (auto_language::is_string_type_p): New member function.
3957 * language.h (language_data): Delete la_is_string_type_p field.
3958 (language_defn::is_string_type_p): Declare new function.
3959 (default_is_string_type_p): Delete desclaration, move comment to
3960 definition.
3961 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3962 moved to m2_language::is_string_type_p.
3963 (m2_language_data): Delete la_is_string_type_p initializer.
3964 (m2_language::is_string_type_p): New member function,
3965 implementation from m2_is_string_type_p.
3966 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3967 initializer.
3968 * opencl-lang.c (opencl_language_data): Likewise.
3969 * p-lang.c (pascal_is_string_type_p): Delete function,
3970 implementation moved to pascal_language::is_string_type_p.
3971 (pascal_language_data): Delete la_is_string_type_p initializer.
3972 (pascal_language::is_string_type_p): New member function,
3973 implementation from pascal_is_string_type_p.
3974 * rust-lang.c (rust_is_string_type_p): Delete function,
3975 implementation moved to rust_language::is_string_type_p.
3976 (rust_language_data): Delete la_is_string_type_p initializer.
3977 (rust_language::is_string_type_p): New member function,
3978 implementation from rust_is_string_type_p.
3979 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3980 is_string_type_p.
3981
4ffc13fb
AB
39822020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3983
3984 * ada-lang.c (ada_language_data): Delete la_print_typedef
3985 initializer.
3986 (ada_language::print_typedef): New member function.
3987 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3988 (cplus_language_data): Likewise.
3989 (asm_language_data): Likewise.
3990 (minimal_language_data): Likewise.
3991 * d-lang.c (d_language_data): Likewise.
3992 * f-lang.c (f_language_data): Likewise.
3993 (f_language::print_typedef): New member function.
3994 * go-lang.c (go_language_data): Delete la_print_typedef
3995 initializer.
3996 * language.c (language_defn::print_typedef): Define member
3997 function.
3998 (unknown_language_data): Delete la_print_typedef initializer.
3999 (unknown_language::print_typedef): New member function.
4000 (auto_language_data): Delete la_print_typedef initializer.
4001 (auto_language::print_typedef): New member function.
4002 * language.h (language_data): Delete la_print_typedef field.
4003 (language_defn::print_typedef): Declare new member function.
4004 (LA_PRINT_TYPEDEF): Update call to print_typedef.
4005 (default_print_typedef): Delete declaration.
4006 * m2-lang.c (m2_language_data): Delete la_print_typedef
4007 initializer.
4008 (m2_language::print_typedef): New member function.
4009 * objc-lang.c (objc_language_data): Delete la_print_typedef
4010 initializer.
4011 * opencl-lang.c (opencl_language_data): Likewise.
4012 * p-lang.c (pascal_language_data): Likewise.
4013 (pascal_language::print_typedef): New member function.
4014 * rust-lang.c (rust_print_typedef): Delete function,
4015 implementation moved to rust_language::print_typedef.
4016 (rust_language): Delete la_print_typedef initializer.
4017 (rust_language::print_typedef): New member function,
4018 implementation from rust_print_typedef.
4019 * typeprint.c (default_print_typedef): Delete.
4020
d711ee67
AB
40212020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4022
4023 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
4024 (ada_language::printstr): New member function.
4025 * c-lang.c (c_language_data): Delete la_printstr initializer.
4026 (cplus_language_data): Likewise.
4027 (asm_language_data): Likewise.
4028 (minimal_language_data): Likewise.
4029 * d-lang.c (d_language_data): Likewise.
4030 * f-lang.c (f_printstr): Rename to f_language::printstr.
4031 (f_language_data): Delete la_printstr initializer.
4032 (f_language::printstr): New member function, implementation from
4033 f_printstr.
4034 * go-lang.c (go_language_data): Delete la_printstr initializer.
4035 * language.c (language_defn::printstr): Define new member
4036 function.
4037 (unk_lang_printstr): Delete.
4038 (unknown_language_data): Delete la_printstr initializer.
4039 (unknown_language::printstr): New member function.
4040 (auto_language_data): Delete la_printstr initializer.
4041 (auto_language::printstr): New member function.
4042 * language.h (language_data): Delete la_printstr field.
4043 (language_defn::printstr): Declare new member function.
4044 (LA_PRINT_STRING): Update call to printstr.
4045 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
4046 (m2_language_data): Delete la_printstr initializer.
4047 (m2_language::printstr): New member function, implementation from
4048 m2_printstr.
4049 * objc-lang.c (objc_language_data): Delete la_printstr
4050 initializer.
4051 * opencl-lang.c (opencl_language_data): Likewise.
4052 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
4053 (pascal_language_data): Delete la_printstr initializer.
4054 (pascal_language::printstr): New member function, implementation
4055 from pascal_printstr.
4056 * p-lang.h (pascal_printstr): Delete declaration.
4057 * rust-lang.c (rust_printstr): Update header comment.
4058 (rust_language_data): Delete la_printstr initializer.
4059 (rust_language::printstr): New member function.
4060
52b50f2c
AB
40612020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4062
4063 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
4064 (ada_language::printchar): New member function.
4065 * c-lang.c (c_language_data): Delete la_printchar initializer.
4066 (cplus_language_data): Likewise.
4067 (asm_language_data): Likewise.
4068 (minimal_language_data): Likewise.
4069 * d-lang.c (d_language_data): Likewise.
4070 * f-lang.c (f_printchar): Rename to f_language::printchar.
4071 (f_language_data): Delete la_printchar initializer.
4072 (f_language::printchar): New member function, implementation from
4073 f_printchar.
4074 * go-lang.c (go_language_data): Delete la_printchar initializer.
4075 * language.c (unk_lang_printchar): Delete.
4076 (language_defn::printchar): Define new member function.
4077 (unknown_language_data): Delete la_printchar initializer.
4078 (unknown_language::printchar): New member function.
4079 (auto_language_data): Delete la_printchar initializer.
4080 (auto_language::printchar): New member function.
4081 * language.h (language_data): Delete la_printchar field.
4082 (language_defn::printchar): Declare new member function.
4083 (LA_PRINT_CHAR): Update call to printchar.
4084 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
4085 (m2_language::printchar): New member function.
4086 * objc-lang.c (objc_language_data): Delete la_printchar
4087 initializer.
4088 * opencl-lang.c (opencl_language_data): Likewise.
4089 * p-lang.c (pascal_language_data): Delete la_printchar
4090 initializer.
4091 (pascal_language::printchar): New member function.
4092 * rust-lang.c (rust_printchar): Rename to
4093 rust_language::printchar.
4094 (rust_language_data): Delete la_printchar initializer.
4095 (rust_language::printchar): New member function, implementation
4096 from rust_printchar.
4097
ec8cec5b
AB
40982020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4099
4100 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
4101 (ada_language_data): Delete la_emitchar initializer.
4102 (ada_language::emitchar): New member function, implementation from
4103 emit_char.
4104 * c-lang.c (c_language_data): Delete la_emitchar initializer.
4105 (cplus_language_data): Likewise.
4106 (asm_language_data): Likewise.
4107 (minimal_language_data): Likewise.
4108 * d-lang.c (d_language_data): Likewise.
4109 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
4110 (f_language_data): Delete la_emitchar initializer.
4111 (f_language::emitchar): New member function, implementation from
4112 f_emit_char.
4113 * go-lang.c (go_language_data): Delete la_emitchar initializer.
4114 * language.c (unk_lang_emit_char): Delete.
4115 (language_defn::emitchar): New member function definition.
4116 (unknown_language_data): Delete la_emitchar initializer.
4117 (unknown_language::emitchar): New member function.
4118 (auto_language_data): Delete la_emitchar initializer.
4119 (auto_language::emitchar): New member function.
4120 * language.h (language_data): Delete la_emitchar field.
4121 (language_defn::emitchar): New member field declaration.
4122 (LA_EMIT_CHAR): Update call to emitchar.
4123 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
4124 (m2_language_data): Delete la_emitchar initializer.
4125 (m2_language::emitchar): New member function, implementation from
4126 m2_emit_char.
4127 * objc-lang.c (objc_language_data): Delete la_emitchar
4128 initializer.
4129 * opencl-lang.c (opencl_language_data): Likewise.
4130 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4131 (pascal_language_data): Delete la_emitchar initializer.
4132 (pascal_language::emitchar): New member function, implementation
4133 from pascal_emit_char.
4134 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4135 (rust_language_data): Delete la_emitchar initializer.
4136 (rust_language::emitchar): New member function, implementation
4137 from rust_emitchar.
4138
1bf9c363
AB
41392020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4140
4141 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4142 (ada_language_data): Delete la_post_parser initializer.
4143 (ada_language::post_parser): New member function.
4144 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4145 (cplus_language_data): Likewise.
4146 (asm_language_data): Likewise.
4147 (minimal_language_data): Likewise.
4148 * d-lang.c (d_language_data): Likewise.
4149 * f-lang.c (f_language_data): Likewise.
4150 * go-lang.c (go_language_data): Likewise.
4151 * language.c (unknown_language_data): Likewise.
4152 (auto_language_data): Likewise.
4153 * language.h (language_data): Delete la_post_parser field.
4154 (language_defn::post_parser): New member function.
4155 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4156 * objc-lang.c (objc_language_data): Likewise.
4157 * opencl-lang.c (opencl_language_data): Likewise.
4158 * p-lang.c (pascal_language_data): Likewise.
4159 * parse.c (parse_exp_in_context): Update call to post_parser.
4160 (null_post_parser): Delete definition.
4161 * parser-defs.h (null_post_parser): Delete declaration.
4162 * rust-lang.c (rust_language_data): Delete la_post_parser
4163 initializer.
4164
87afa652
AB
41652020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4166
4167 * ada-lang.c (parse): Rename to ada_language::parser.
4168 (ada_language_data): Delete la_parser initializer.
4169 (ada_language::parser): New member function, implementation from
4170 parse.
4171 * c-lang.c (c_language_data): Delete la_parser initializer.
4172 (cplus_language_data): Likewise.
4173 (asm_language_data): Likewise.
4174 (minimal_language_data): Likewise.
4175 * d-lang.c (d_language_data): Likewise.
4176 (d_language::parser): New member function.
4177 * f-lang.c (f_language_data): Delete la_parser initializer.
4178 (f_language::parser): New member function.
4179 * go-lang.c (go_language_data): Delete la_parser initializer.
4180 (go_language::parser): New member function.
4181 * language.c (unk_lang_parser): Delete.
4182 (language_defn::parser): Define new member function.
4183 (unknown_language_data): Delete la_parser initializer.
4184 (unknown_language::parser): New member function.
4185 (auto_language_data): Delete la_parser initializer.
4186 (auto_language::parser): New member function.
4187 * language.h (language_data): Delete la_parser field.
4188 (language_defn::parser): Declare new member function.
4189 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4190 (m2_language::parser): New member function.
4191 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4192 * opencl-lang.c (opencl_language_data): Likewise.
4193 * p-lang.c (pascal_language_data): Likewise.
4194 (pascal_language::parser): New member function.
4195 * parse.c (parse_exp_in_context): Update call to parser.
4196 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4197 (rust_language::parser): New member function.
4198
37825800
AB
41992020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4200
4201 * top.c (print_gdb_configuration): Print --with-python-libdir
4202 configuration value.
4203
5b860c93
PW
42042020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4205
4206 * NEWS: Mention change to the alias command.
4207
cf00cd6f
PW
42082020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4209
4210 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4211 (alias_command_completer)
4212 (make_alias_options_def_group): New functions.
4213 (alias_opts, alias_option_defs): New struct and array.
4214 (alias_usage_error): Update usage.
4215 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4216 Use option framework.
4217 (_initialize_cli_cmds): Update alias command help.
4218 Update aliases command help.
4219 (show_user):
4220 Add NULL for new default_args lookup_cmd argument.
4221 (valid_command_p): Rename to validate_aliased_command.
4222 Add NULL for new default_args lookup_cmd argument. Verify that the
4223 aliased_command has no default args.
4224 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4225 (lookup_cmd_1, lookup_cmd): New argument default_args.
4226 (add_alias_cmd):
4227 Add NULL for new default_args lookup_cmd argument.
4228 (print_help_for_command): Show default args under the layout
4229 alias some_alias = some_aliased_cmd some_alias_default_arg.
4230 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4231 xfree default_args in destructor.
4232 * cli/cli-script.c (process_next_line, do_define_command):
4233 Add NULL for new default_args lookup_cmd argument.
4234 * command.h: Declare new default_args argument in lookup_cmd
4235 and lookup_cmd_1.
4236 * completer.c (complete_line_internal_1):
4237 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4238 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4239 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4240 Likewise.
4241 * infcmd.c (_initialize_infcmd): Likewise.
4242 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4243 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4244 * python/py-param.c (add_setshow_generic): Likewise.
4245 * remote.c (_initialize_remote): Likewise.
4246 * top.c (execute_command): Prepend default_args if command has some.
4247 (set_verbose):
4248 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4249 * tracepoint.c (validate_actionline, encode_actions_1):
4250 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4251
bd920864
TBA
42522020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4253
4254 * jit.c (jit_read_descriptor): Use bool as the return type.
4255 (jit_breakpoint_re_set_internal): Use bool as the return type.
4256 Invert the return value logic; return true if the jit breakpoint
4257 has been successfully initialized.
4258 (jit_inferior_init): Update the call to
4259 jit_breakpoint_re_set_internal.
4260
f8098322
PA
42612020-06-22 Pedro Alves <palves@redhat.com>
4262
4263 PR gdb/25939
4264 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4265 Use the current inferior instead. Don't return
4266 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4267 wait again.
4268 * sol-thread.c (sol_thread_target::wait): Don't reference
4269 inferior_ptid.
4270 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4271 (sol_update_thread_list_callback): Use the current inferior's pid
4272 instead of inferior_ptid.
4273
196535a6
RO
42742020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4275
4276 * procfs.c: Cleanup many comments.
4277
4278 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4279 (AFTER_WATCHFLAG): Replace by value.
4280
4281 (MAIN_PROC_NAME_FORMAT): Inline ...
4282 (create_procinfo): ... here.
4283
4284 (procfs_debug_inferior): Remove SYS_exec handling.
4285 (syscall_is_exec): Likewise.
4286 (procfs_set_exec_trap): Likewise.
4287
4288 (syscall_is_lwp_exit): Inline in callers.
4289 (syscall_is_exit): Likewise.
4290 (syscall_is_exec): Likewise.
4291 (syscall_is_lwp_create): Likewise.
4292
4293 (invalidate_cache): Remove #if 0 code.
4294
4295 (make_signal_thread_runnable): Remove.
4296 (procfs_target::resume): Remove #if 0 code.
4297
cf6f3e86
RO
42982020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4299
4300 PR gdb/25939
4301 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4302 call ...
4303 (procfs_target::create_inferior): ... here.
4304
48e9cc84
PW
43052020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4306
4307 * exec.c (validate_exec_file): Ensure the build-id is up to
4308 date by calling reopen_exec_file (that checks file timestamp
4309 to decide to re-read the file).
4310
3922b302
PA
43112020-06-18 Pedro Alves <palves@redhat.com>
4312
4313 PR gdb/25412
4314 * gdbthread.h (delete_thread, delete_thread_silent)
4315 (find_thread_ptid): Update comments.
4316 * thread.c (current_thread_): New global.
4317 (is_current_thread): Move higher, and reimplement.
4318 (inferior_thread): Reimplement.
4319 (set_thread_exited): Use bool. Add assertions.
4320 (add_thread_silent): Simplify thread-reuse handling by always
4321 calling delete_thread.
4322 (delete_thread): Remove intro comment.
4323 (find_thread_ptid): Skip exited threads.
4324 (switch_to_thread_no_regs): Write to current_thread_.
4325 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4326 INFERIOR_PTID. Clear current_thread_.
4327
6dbdab44
PA
43282020-06-18 Pedro Alves <palves@redhat.com>
4329
4330 * aix-thread.c (pd_update): Use switch_to_thread.
4331
2da4b788
PA
43322020-06-18 Pedro Alves <palves@redhat.com>
4333
4334 * ravenscar-thread.c (ravenscar_thread_target): Update.
4335 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4336 (ravenscar_thread_target::add_active_thread): ... this. Don't
4337 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4338 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4339
50838d1b
PA
43402020-06-18 Pedro Alves <palves@redhat.com>
4341
4342 * nat/windows-nat.c (current_windows_thread): Remove.
4343 * nat/windows-nat.h (current_windows_thread): Remove.
4344 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4345 Adjust.
4346 (display_selectors): Adjust to fetch the current
4347 windows_thread_info based on inferior_ptid.
4348 (fake_create_process): No longer write to current_windows_thread.
4349 (windows_nat_target::get_windows_debug_event):
4350 Don't set inferior_ptid or current_windows_thread.
4351 (windows_nat_target::wait): Adjust to not rely on
4352 current_windows_thread.
4353 (do_initial_windows_stuff): Now a method of windows_nat_target.
4354 Switch to the last_ptid thread.
4355 (windows_nat_target::attach): Adjust.
4356 (windows_nat_target::detach): Use switch_to_no_thread instead of
4357 writing to inferior_ptid directly.
4358 (windows_nat_target::create_inferior): Adjust.
4359
31ce04e9
PA
43602020-06-18 Pedro Alves <palves@redhat.com>
4361
4362 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4363
1ee1a363
PA
43642020-06-18 Pedro Alves <palves@redhat.com>
4365
4366 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4367 after creating it, instead of writing to inferior_ptid. Don't
4368 write to inferior_ptid.
4369
6d350754
PA
43702020-06-18 Pedro Alves <palves@redhat.com>
4371
4372 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4373
5d971d48
PA
43742020-06-18 Pedro Alves <palves@redhat.com>
4375
4376 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4377 it, instead of writing to inferior_ptid.
4378
86e57d1b
PA
43792020-06-18 Pedro Alves <palves@redhat.com>
4380
4381 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4382 to inferior_ptid.
4383
f2e1c129
PA
43842020-06-18 Pedro Alves <palves@redhat.com>
4385
4386 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4387 instead of writing to inferior_ptid directly.
4388
60db1b85
PA
43892020-06-18 Pedro Alves <palves@redhat.com>
4390
4391 * corelow.c (core_target::close): Use switch_to_no_thread instead
4392 of writing to inferior_ptid directly.
4393 (add_to_thread_list, core_target_open): Use switch_to_thread
4394 instead of writing to inferior_ptid directly.
4395
fe7d6a8d
PA
43962020-06-18 Pedro Alves <palves@redhat.com>
4397
4398 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4399 inferior_ptid.
4400 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4401 inferior_ptid.
4402 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4403 inferior_ptid directly.
4404 (darwin_nat_target::init_thread_list): Switch to thread, instead
4405 of writing to inferior_ptid.
4406 (darwin_nat_target::attach): Don't write to inferior_ptid.
4407 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4408
975f8708
PA
44092020-06-18 Pedro Alves <palves@redhat.com>
4410
4411 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4412 thread.
4413 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4414 Instead use switch_to_thread.
4415 (gnu_nat_target::detach): Use switch_to_no_thread
4416 instead of writing to inferior_ptid directly. Used passed-in
4417 inferior instead of looking up the inferior by pid.
4418
1a204730
PA
44192020-06-18 Pedro Alves <palves@redhat.com>
4420
4421 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4422 inferior_ptid.
4423
ebe84f23
PA
44242020-06-18 Pedro Alves <palves@redhat.com>
4425
4426 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4427 inferior_ptid.
4428 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4429 thread.
4430 (nto_procfs_target::detach): Avoid referencing
4431 inferior_ptid. Use switch_to_no_thread instead of writing to
4432 inferior_ptid directly.
4433 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4434 instead of writing to inferior_ptid directly.
4435 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4436 to thread.
4437
191f02e5
PA
44382020-06-18 Pedro Alves <palves@redhat.com>
4439
4440 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4441 after creating it, instead of writing to inferior_ptid.
4442 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4443 to inferior_ptid directly.
4444 (gdbsim_target::wait): Don't write to inferior_ptid.
4445
0ac55310
PA
44462020-06-18 Pedro Alves <palves@redhat.com>
4447
4448 * remote.c (remote_target::remote_notice_new_inferior): Use
4449 switch_to_thread instead of writing to inferior_ptid directly.
4450 (remote_target::add_current_inferior_and_thread): Use
4451 switch_to_no_thread instead of writing to inferior_ptid directly.
4452 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4453 and switch_to_thread instead of using set_current_inferior or
4454 writing to inferior_ptid directly.
4455
5233f39b
PA
44562020-06-18 Pedro Alves <palves@redhat.com>
4457
4458 * tracectf.c (ctf_target_open): Switch to added thread instead of
4459 writing to inferior_ptid directly.
4460 (ctf_target::close): Use switch_to_no_thread instead of writing to
4461 inferior_ptid directly.
4462
087e161b
PA
44632020-06-18 Pedro Alves <palves@redhat.com>
4464
4465 * tracefile-tfile.c (tfile_target_open): Don't write to
4466 inferior_ptid directly, instead switch to added thread.
4467 (tfile_target::close): Use switch_to_no_thread instead of writing
4468 to inferior_ptid directly.
4469
7fb43e53
PA
44702020-06-18 Pedro Alves <palves@redhat.com>
4471
4472 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4473 (procfs_target::detach): Use switch_to_no_thread
4474 instead of writing to inferior_ptid directly.
4475 (do_attach): Change return type to void. Switch to the added
4476 thread.
4477 (procfs_target::create_inferior): Switch to the added thread.
4478 (procfs_do_thread_registers): Don't write to inferior_ptid.
4479
18493a00
PA
44802020-06-18 Pedro Alves <palves@redhat.com>
4481
4482 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4483 of writing to inferior_ptid.
4484 (scoped_restore_exited_inferior): Delete.
4485 (handle_vfork_child_exec_or_exit): Simplify using
4486 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4487 instead of writing to inferior_ptid.
4488 (THREAD_STOPPED_BY): Delete.
4489 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4490 (thread_stopped_by_hw_breakpoint): Delete.
4491 (save_waitstatus): Use
4492 scoped_restore_current_thread+switch_to_thread, and call
4493 target_stopped_by_watchpoint instead of
4494 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4495 instead of thread_stopped_by_sw_breakpoint, and
4496 target_stopped_by_hw_breakpoint instead of
4497 thread_stopped_by_hw_breakpoint.
4498 (handle_inferior_event)
4499 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4500 inferior_ptid directly, nor
4501 set_current_inferior/set_current_program_space. Use
4502 switch_to_thread / switch_to_inferior_no_thread instead.
4503
a0776b13
PA
45042020-06-18 Pedro Alves <palves@redhat.com>
4505
4506 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4507 instead of writing to inferior_ptid.
4508
6155c136
PA
45092020-06-18 Pedro Alves <palves@redhat.com>
4510
4511 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4512 added thread.
4513 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4514 to the added thread.
4515 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4516 instead of writing to inferior_ptid.
4517
c5316fc6
PA
45182020-06-18 Pedro Alves <palves@redhat.com>
4519
4520 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4521 (register_to_value_test): Mock a program_space too. Heap-allocate
4522 the address space. Don't write to inferior_ptid. Use
4523 switch_to_thread instead.
4524
8df01799
PA
45252020-06-18 Pedro Alves <palves@redhat.com>
4526
4527 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4528 Delete.
4529 (find_signalled_thread()): New, factored out from
4530 linux_make_corefile_notes and adjusted to handle exited threads.
4531 (linux_make_corefile_notes): Adjust to use the new
4532 find_signalled_thread.
4533
41792d68
PA
45342020-06-18 Pedro Alves <palves@redhat.com>
4535
4536 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4537 of saving/restoring inferior_ptid.
4538
612f258a
TT
45392020-06-17 Tom Tromey <tom@tromey.com>
4540
4541 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4542 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4543 declare.
4544 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4545
efb763a5
SM
45462020-06-15 Simon Marchi <simon.marchi@efficios.com>
4547
4548 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4549 of partial symtabs.
4550
2951f6c0
SM
45512020-06-17 Simon Marchi <simon.marchi@efficios.com>
4552
4553 * regformats/reg-arm.dat: Remove.
4554 * regformats/reg-bfin.dat: Remove.
4555 * regformats/reg-cris.dat: Remove.
4556 * regformats/reg-crisv32.dat: Remove.
4557 * regformats/reg-m32r.dat: Remove.
4558 * regformats/reg-tilegx.dat: Remove.
4559 * regformats/reg-tilegx32.dat: Remove.
4560
7d458ea5
SM
45612020-06-17 Simon Marchi <simon.marchi@efficios.com>
4562
4563 * features/Makefile (WHICH): Remove arm files.
4564 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4565 * regformats/arm/arm-with-neon.dat: Remove.
4566 * regformats/arm/arm-with-vfpv2.dat: Remove.
4567 * regformats/arm/arm-with-vfpv3.dat: Remove.
4568
3af96c0d
SM
45692020-06-17 Simon Marchi <simon.marchi@efficios.com>
4570
4571 * features/Makefile (XMLTOC): Remove rx.xml.
4572
b25e22fd
PA
45732020-06-17 Pedro Alves <palves@redhat.com>
4574
4575 * gdbthread.h (thread_control_state) <trap_expected> Update
4576 comments.
4577
a78a19b1
AB
45782020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4579
4580 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4581 ada_language::lookup_symbol_nonlocal.
4582 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4583 (ada_language::lookup_symbol_nonlocal): New member function,
4584 implementation from ada_lookup_symbol_nonlocal.
4585 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4586 initializer.
4587 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4588 initializer.
4589 (cplus_language::lookup_symbol_nonlocal): New member function.
4590 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4591 (minimal_language_data) Likewise.
4592 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4593 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4594 initializer.
4595 (d_language::lookup_symbol_nonlocal): New member function.
4596 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4597 initializer.
4598 (f_language::lookup_symbol_nonlocal): New member function.
4599 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4600 initializer.
4601 * language.c (unknown_language_data): Likewise.
4602 (auto_language_data): Likewise.
4603 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4604 field.
4605 (language_defn::lookup_symbol_nonlocal): New member function.
4606 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4607 initializer.
4608 * objc-lang.c (objc_language_data): Likewise.
4609 * opencl-lang.c (opencl_language_data): Likewise.
4610 * p-lang.c (pascal_language_data): Likewise.
4611 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4612 rust_language::lookup_symbol_nonlocal.
4613 (rust_language_data): Delete la_lookup_symbol_nonlocal
4614 initializer.
4615 (rust_language::lookup_symbol_nonlocal): New member function,
4616 implementation from rust_lookup_symbol_nonlocal.
4617 * symtab.c (lookup_symbol_aux): Update call to
4618 lookup_symbol_nonlocal.
4619 (basic_lookup_symbol_nonlocal): Rename to...
4620 (language_defn::lookup_symbol_nonlocal): ...this, and update
4621 header comment. Remove language_defn parameter, and replace with
4622 uses of `this'.
4623 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4624
ebe2334e
AB
46252020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4626
4627 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4628 initializer.
4629 (ada_language::value_print_inner): New member function.
4630 * c-lang.c (c_language_data): Delete la_value_print_inner
4631 initializer.
4632 (cplus_language_data): Likewise.
4633 (asm_language_data): Likewise.
4634 (minimal_language_data): Likewise.
4635 * d-lang.c (d_language_data): Likewise.
4636 (d_language::value_print_inner): New member function.
4637 * f-lang.c (f_language_data): Delete la_value_print_inner
4638 initializer.
4639 (f_language::value_print_inner): New member function.
4640 * f-lang.h (f_value_print_innner): Rename to...
4641 (f_value_print_inner): ...this (note spelling of 'inner').
4642 * f-valprint.c (f_value_print_innner): Rename to...
4643 (f_value_print_inner): ...this (note spelling of 'inner').
4644 * go-lang.c (go_language_data): Delete la_value_print_inner
4645 initializer.
4646 (go_language::value_print_inner): New member function.
4647 * language.c (language_defn::value_print_inner): Define new member
4648 function.
4649 (unk_lang_value_print_inner): Delete.
4650 (unknown_language_data): Delete la_value_print_inner initializer.
4651 (unknown_language::value_print_inner): New member function.
4652 (auto_language_data): Delete la_value_print_inner initializer.
4653 (auto_language::value_print_inner): New member function.
4654 * language.h (language_data): Delete la_value_print_inner field.
4655 (language_defn::value_print_inner): Delcare new member function.
4656 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4657 initializer.
4658 (m2_language::value_print_inner): New member function.
4659 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4660 initializer.
4661 * opencl-lang.c (opencl_language_data): Likewise.
4662 * p-lang.c (pascal_language_data): Likewise.
4663 (pascal_language::value_print_inner): New member function.
4664 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4665 initializer.
4666 (rust_language::value_print_inner): New member function.
4667 * valprint.c (do_val_print): Update call to value_print_inner.
4668
a1d1fa3e
AB
46692020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4670
4671 * ada-lang.c (ada_language_data): Delete la_value_print
4672 initializer.
4673 (ada_language::value_print): New member function.
4674 * c-lang.c (c_language_data): Delete la_value_print initializer.
4675 (cplus_language_data): Likewise.
4676 (asm_language_data): Likewise.
4677 (minimal_language_data): Likewise.
4678 * d-lang.c (d_language_data): Likewise.
4679 * f-lang.c (f_language_data): Likewise.
4680 * go-lang.c (go_language_data): Likewise.
4681 * language.c (unk_lang_value_print): Delete.
4682 (language_defn::value_print): Define new member function.
4683 (unknown_language_data): Delete la_value_print initializer.
4684 (unknown_language::value_print): New member function.
4685 (auto_language_data): Delete la_value_print initializer.
4686 (auto_language::value_print): New member function.
4687 * language.h (language_data): Delete la_value_print field.
4688 (language_defn::value_print): Declare new member function.
4689 (LA_VALUE_PRINT): Update call to value_print.
4690 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4691 * objc-lang.c (objc_language_data): Likewise.
4692 * opencl-lang.c (opencl_language_data): Likewise.
4693 * p-lang.c (pascal_language_data): Likewise.
4694 (pascal_language::value_print): New member function.
4695 * rust-lang.c (rust_language_data): Delete la_value_print
4696 initializer.
4697
f16a9f57
AB
46982020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4699
4700 * ada-lang.c (ada_watch_location_expression): Rename to
4701 ada_language::watch_location_expression.
4702 (ada_language_data): Delete la_watch_location_expression
4703 initializer.
4704 (ada_language::watch_location_expression): New member function,
4705 implementation from ada_watch_location_expression.
4706 * breakpoint.c (watch_command_1): Update call to
4707 watch_location_expression.
4708 * c-lang.c (c_watch_location_expression): Rename to
4709 language_defn::watch_location_expression.
4710 (c_language_data): Delete la_watch_location_expression
4711 initializer.
4712 (cplus_language_data): Likewise.
4713 (asm_language_data): Likewise.
4714 (minimal_language_data): Likewise.
4715 * c-lang.h (c_watch_location_expression): Delete declaration.
4716 * d-lang.c (d_language_data): Delete la_watch_location_expression
4717 initializer.
4718 * f-lang.c (f_language_data): Likewise.
4719 * go-lang.c (go_language_data): Likewise.
4720 * language.c (language_defn::watch_location_expression): Member
4721 function implementation from c_watch_location_expression.
4722 (unknown_language_data): Delete la_watch_location_expression
4723 initializer.
4724 (auto_language_data): Likewise.
4725 * language.h (language_data): Delete la_watch_location_expression
4726 field.
4727 (language_defn::watch_location_expression): Declare new member
4728 function.
4729 * m2-lang.c (m2_language_data): Delete
4730 la_watch_location_expression initializer.
4731 * objc-lang.c (objc_language_data): Likewise.
4732 * opencl-lang.c (opencl_language_data): Likewise.
4733 * p-lang.c (pascal_language_data): Likewise.
4734 * rust-lang.c (rust_watch_location_expression): Rename to
4735 rust_language::watch_location_expression.
4736 (rust_language_data): Delete la_watch_location_expression
4737 initializer.
4738 (rust_language::watch_location_expression): New member function,
4739 implementation from rust_watch_location_expression.
4740
7e56227d
AB
47412020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4742
4743 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4744 ada_language::collect_symbol_completion_matches.
4745 (ada_language_data): Delete la_collect_symbol_completion_matches
4746 initializer.
4747 (ada_language::collect_symbol_completion_matches): New member
4748 function, implementation from
4749 ada_collect_symbol_completion_matches.
4750 * c-lang.c (c_language_data): Delete
4751 la_collect_symbol_completion_matches initializer.
4752 (cplus_language_data): Likewise.
4753 (asm_language_data): Likewise.
4754 (minimal_language_data): Likewise.
4755 * d-lang.c (d_language_data): Likewise.
4756 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4757 f_language::collect_symbol_completion_matches.
4758 (f_language_data): Delete la_collect_symbol_completion_matches
4759 initializer.
4760 (f_language::collect_symbol_completion_matches) New member
4761 function, implementation from f_collect_symbol_completion_matches.
4762 * go-lang.c (go_language_data): Delete
4763 la_collect_symbol_completion_matches initializer.
4764 * language.c (unknown_language_data): Likewise.
4765 (auto_language_data): Likewise.
4766 * language.h (language_data): Delete
4767 la_collect_symbol_completion_matches field.
4768 (language_defn::collect_symbol_completion_matches): New member
4769 function.
4770 * m2-lang.c (m2_language_data): Delete
4771 la_collect_symbol_completion_matches initializer.
4772 * objc-lang.c (objc_language_data): Likewise.
4773 * opencl-lang.c (opencl_language_data): Likewise.
4774 * p-lang.c (pascal_language_data): Likewise.
4775 * rust-lang.c (rust_language_data): Likewise.
4776 * symtab.c (default_collect_symbol_completion_matches): Delete.
4777 (collect_symbol_completion_matches): Update call to
4778 collect_symbol_completion_matches.
4779 (collect_symbol_completion_matches_type): Likewise.
4780 * symtab.h (default_collect_symbol_completion_matches): Delete
4781 declaration.
4782
53fc67f8
AB
47832020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4784
4785 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4786 (ada_language_data): Delete la_word_break_characters initializer.
4787 (ada_language::word_break_characters): New member function.
4788 * c-lang.c (c_language_data): Delete la_word_break_characters
4789 initializer.
4790 (cplus_language_data): Likewise.
4791 (asm_language_data): Likewise.
4792 (minimal_language_data): Likewise.
4793 * completer.c: Update global comment.
4794 (advance_to_expression_complete_word_point): Update call to
4795 word_break_characters.
4796 (complete_files_symbols): Likewise.
4797 (complete_line_internal_1): Likewise.
4798 (default_completer_handle_brkchars): Likewise.
4799 (skip_quoted_chars): Likewise.
4800 * d-lang.c (d_language_data): Delete la_word_break_characters
4801 initializer.
4802 * f-lang.c (f_word_break_characters): Delete.
4803 (f_language_data): Delete la_word_break_characters initializer.
4804 (f_language::word_break_characters): New member function.
4805 * go-lang.c (go_language_data): Delete la_word_break_characters
4806 initializer.
4807 * language.c (unknown_language_data): Likewise.
4808 (auto_language_data): Likewise.
4809 * language.h (default_word_break_characters): Move declaration to
4810 earlier in the file.
4811 (language_data): Delete la_word_break_characters field.
4812 (language_defn::word_break_characters): New member function.
4813 * m2-lang.c (m2_language_data): Delete la_word_break_characters
4814 initializer.
4815 * objc-lang.c (objc_language_data): Likewise.
4816 * opencl-lang.c (opencl_language_data): Likewise.
4817 * p-lang.c (pascal_language_data): Likewise.
4818 * rust-lang.c (rust_language_data): Likewise.
4819
c9debfb9
AB
48202020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4821
4822 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
4823 (ada_language_data): Delete la_get_symbol_name_matcher
4824 initializer.
4825 (language_defn::get_symbol_name_matcher_inner): New member
4826 function.
4827 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
4828 initializer.
4829 (cplus_language_data): Likewise.
4830 (cplus_language::get_symbol_name_matcher_inner): New member
4831 function.
4832 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
4833 (minimal_language_data): Likewise.
4834 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
4835 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
4836 initializer.
4837 * dictionary.c (iter_match_first_hashed): Update call to
4838 get_symbol_name_matcher.
4839 (iter_match_next_hashed): Likewise.
4840 (iter_match_next_linear): Likewise.
4841 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
4842 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
4843 initializer.
4844 (f_language::get_symbol_name_matcher_inner): New member function.
4845 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4846 initializer.
4847 * language.c (default_symbol_name_matcher): Update header comment,
4848 make static.
4849 (language_defn::get_symbol_name_matcher): New definition.
4850 (language_defn::get_symbol_name_matcher_inner): Likewise.
4851 (get_symbol_name_matcher): Delete.
4852 (unknown_language_data): Delete la_get_symbol_name_matcher
4853 initializer.
4854 (auto_language_data): Likewise.
4855 * language.h (language_data): Delete la_get_symbol_name_matcher
4856 field.
4857 (language_defn::get_symbol_name_matcher): New member function.
4858 (language_defn::get_symbol_name_matcher_inner): Likewise.
4859 (default_symbol_name_matcher): Delete declaration.
4860 * linespec.c (find_methods): Update call to
4861 get_symbol_name_matcher.
4862 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4863 initializer.
4864 * minsyms.c (lookup_minimal_symbol): Update call to
4865 get_symbol_name_matcher.
4866 (iterate_over_minimal_symbols): Likewise.
4867 * objc-lang.c (objc_language_data): Delete
4868 la_get_symbol_name_matcher initializer.
4869 * opencl-lang.c (opencl_language_data): Likewise.
4870 * p-lang.c (pascal_language_data): Likewise.
4871 * psymtab.c (psymbol_name_matches): Update call to
4872 get_symbol_name_matcher.
4873 * rust-lang.c (rust_language_data): Delete
4874 la_get_symbol_name_matcher initializer.
4875 * symtab.c (symbol_matches_search_name): Update call to
4876 get_symbol_name_matcher.
4877 (compare_symbol_name): Likewise.
4878
9a49ad8c
AB
48792020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4880
4881 * ada-lang.c (ada_language_data): Delete la_compute_program
4882 initializer.
4883 * c-lang.c (c_language_data): Likewise.
4884 (c_language::compute_program): New member function.
4885 (cplus_language_data): Delete la_compute_program initializer.
4886 (cplus_language::compute_program): New member function.
4887 (asm_language_data): Delete la_compute_program initializer.
4888 (minimal_language_data): Likewise.
4889 * c-lang.h (c_compute_program): Update comment.
4890 (cplus_compute_program): Likewise.
4891 * compile/compile-c-support.c (c_compute_program): Likewise.
4892 (cplus_compute_program): Likewise.
4893 * compile/compile.c (compile_to_object): Update call to
4894 la_compute_program.
4895 * d-lang.c (d_language_data): Delete la_compute_program
4896 initializer.
4897 * f-lang.c (f_language_data): Likewise.
4898 * go-lang.c (go_language_data): Likewise.
4899 * language.c (unknown_language_data): Likewise.
4900 (auto_language_data): Likewise.
4901 * language.h (language_data): Delete la_compute_program field.
4902 (language_defn::compute_program): New member function.
4903 * m2-lang.c (m2_language_data): Delete la_compute_program
4904 initializer.
4905 * objc-lang.c (objc_language_data): Likewise.
4906 * opencl-lang.c (opencl_language_data): Likewise.
4907 * p-lang.c (pascal_language_data): Likewise.
4908 * rust-lang.c (rust_language_data): Likewise.
4909
eff93b4d
AB
49102020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4911
4912 * ada-lang.c (ada_language_data) Delete
4913 la_class_name_from_physname initializer.
4914 * c-lang.c (c_language_data): Likewise.
4915 (cplus_language_data): Likewise.
4916 (cplus_language::class_name_from_physname): New member function.
4917 (asm_language_data): Delete la_class_name_from_physname
4918 initializer.
4919 (minimal_language_data): Likewise.
4920 * d-lang.c (d_language_data): Likewise.
4921 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4922 method on language_defn class.
4923 (guess_full_die_structure_name): Likewise.
4924 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4925 initializer.
4926 * go-lang.c (go_language_data): Likewise.
4927 * language.c (language_class_name_from_physname): Delete.
4928 (unk_lang_class_name): Delete.
4929 (unknown_language_data): Delete la_class_name_from_physname
4930 initializer.
4931 (auto_language_data): Likewise.
4932 * language.h (language_data): Delete la_class_name_from_physname
4933 field.
4934 (language_defn::class_name_from_physname): New function.
4935 (language_class_name_from_physname): Delete declaration.
4936 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4937 initializer.
4938 * objc-lang.c (objc_language_data): Likewise.
4939 * opencl-lang.c (opencl_language_data): Likewise.
4940 * p-lang.c (pascal_language_data): Likewise.
4941 * rust-lang.c (rust_language_data): Likewise.
4942
de543742
TT
49432020-06-16 Tom Tromey <tom@tromey.com>
4944
4945 * tui/tui-data.h (STATUS_NAME): New macro.
4946 * tui/tui-layout.c (tui_remove_some_windows)
4947 (initialize_known_windows, tui_register_window)
4948 (tui_layout_split::remove_windows, initialize_layouts)
4949 (tui_new_layout_command): Don't use hard-coded window names.
4950
a350efd4
TT
49512020-06-16 Tom Tromey <tom@tromey.com>
4952
4953 PR tui/25348:
4954 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4955 tui_initialize_readline. Only run once. Call rl_initialize.
4956 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4957 tui_initialize_readline.
4958 * tui/tui-io.c (tui_setup_io): Call
4959 tui_ensure_readline_initialized.
4960 * tui/tui-interp.c (tui_interp::init): Update.
4961
39ec0490
TT
49622020-06-16 Tom Tromey <tom@tromey.com>
4963
4964 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4965 Also preserve the status window.
4966
d2d1ea20
TT
49672020-06-16 Tom Tromey <tom@tromey.com>
4968
4969 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4970 where m_window==nullptr.
4971
66920317
TT
49722020-06-15 Tom Tromey <tromey@adacore.com>
4973
4974 * windows-nat.c (windows_nat::handle_output_debug_string):
4975 Update.
4976 (windows_nat::handle_ms_vc_exception): Update.
4977 * target.h (target_read_string): Change API.
4978 * target.c (target_read_string): Change API.
4979 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4980 Update.
4981 * solib-frv.c (frv_current_sos): Update.
4982 * solib-dsbt.c (dsbt_current_sos): Update.
4983 * solib-darwin.c (darwin_current_sos): Update.
4984 * linux-thread-db.c (inferior_has_bug): Update.
4985 * expprint.c (print_subexp_standard): Update.
4986 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4987 (ada_exception_message_1): Update.
4988
a5d871dd
TT
49892020-06-15 Tom Tromey <tromey@adacore.com>
4990
4991 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4992
670e35fa
TT
49932020-06-15 Tom Tromey <tromey@adacore.com>
4994
4995 * valprint.c (read_string): Update comment.
4996 * target.c (MIN): Remove.
4997 (target_read_string): Rewrite.
4998
f5272a3b
TT
49992020-06-15 Tom Tromey <tromey@adacore.com>
5000
5001 * corefile.c (read_memory_string): Remove.
5002 * ada-valprint.c (ada_value_print_ptr): Update.
5003 * ada-lang.h (ada_tag_name): Change return type.
5004 * ada-lang.c (type_from_tag): Update.
5005 (ada_tag_name_from_tsd): Change return type. Use
5006 target_read_string.
5007 (ada_tag_name): Likewise.
5008 * gdbcore.h (read_memory_string): Don't declare.
5009
2c074f49
HD
50102020-06-14 Hannes Domani <ssbssa@yahoo.de>
5011
5012 * symtab.c (rbreak_command): Ignore Windows drive colon.
5013
6a17d503
SM
50142020-06-12 Simon Marchi <simon.marchi@efficios.com>
5015
5016 * NEWS: Mention removed GDBserver host support.
5017
453c733f
NC
50182020-06-12 Nelson Chu <nelson.chu@sifive.com>
5019
5020 * features/riscv/rebuild-csr-xml.sh: Updated.
5021
2b4e6a3f
TT
50222020-06-11 Tom Tromey <tom@tromey.com>
5023
5024 PR gdb/18318:
5025 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
5026
4412332f
JG
50272020-06-09 Jonny Grant <jg@jguk.org>
50282020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
5029
5030 * main.c (captured_main_1): Don't print new line after help.
5031 (print_gdb_help): add mailing list and IRC channel information
5032 to --help. Add new lines between items in the footer. Remove
5033 quotes around bug url.
5034
2f33032a
KS
50352020-06-11 Keith Seitz <keiths@redhat.com>
5036
5037 PR gdb/21356
5038 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
5039 Resolve typedefs for type length calculations.
5040
7ab96794
TV
50412020-06-10 Tom de Vries <tdevries@suse.de>
5042
5043 PR ada/24713
5044 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
5045 (write_psymbols): Enable .gdb_index for ada.
5046 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
5047 ada.
5048
e5f3ece2
TV
50492020-06-10 Tom de Vries <tdevries@suse.de>
5050
5051 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
5052 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
5053 namei" instead of "const char *name" argument.
5054 (dw2_map_matching_symbols): Use "offset_type namei" variant of
5055 dw2_symtab_iter_init.
5056
940da03e
SM
50572020-06-08 Simon Marchi <simon.marchi@efficios.com>
5058
5059 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
5060 to use type::field and field::type instead.
5061
b6cdac4b
SM
50622020-06-08 Simon Marchi <simon.marchi@efficios.com>
5063
5064 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
5065 to use field::type instead.
5066
5d14b6e5
SM
50672020-06-08 Simon Marchi <simon.marchi@efficios.com>
5068
5069 * gdbtypes.h (struct field) <type, set_type>: New methods.
5070 Rename `type` field to...
5071 <m_type>: ... this. Change references throughout to use type or
5072 set_type methods.
5073 (FIELD_TYPE): Use field::type. Change call sites that modify
5074 the field's type to use field::set_type instead.
5075
3d967001
SM
50762020-06-08 Simon Marchi <simon.marchi@efficios.com>
5077
5078 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
5079 to use type::index_type instead.
5080
262abc0d
SM
50812020-06-08 Simon Marchi <simon.marchi@efficios.com>
5082
5083 * gdbtypes.h (struct type) <index_type, set_index_type>: New
5084 methods.
5085 (TYPE_INDEX_TYPE): Use type::index_type.
5086 * gdbtypes.c (create_array_type_with_stride): Likewise.
5087
82836c92
TT
50882020-06-07 Tom Tromey <tom@tromey.com>
5089
5090 * valprint.c (generic_val_print_float): Remove "embedded_offset"
5091 parameter.
5092 (generic_value_print): Update.
5093
940dace9
AB
50942020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5095
5096 Revert commit 982a38f60b0.
5097 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
5098
982a38f6
AB
50992020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5100
5101 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
5102 avoid use after free.
5103
82f06518
TV
51042020-06-05 Tom de Vries <tdevries@suse.de>
5105
5106 * NEWS: Fix typos.
5107
f8c41851
SM
51082020-06-04 Simon Marchi <simon.marchi@efficios.com>
5109
5110 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
5111 the per_bfd object.
5112 (dwarf2_read_debug_names): Likewise.
5113 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
5114 object when re-using a per_bfd object with an index.
5115
f9b5d5ea
TV
51162020-06-03 Tom de Vries <tdevries@suse.de>
5117
5118 PR symtab/26046
5119 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
5120 children for C++.
5121 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
5122 DW_TAG_subprogram.
5123
f6eee2d0
AB
51242020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5125
5126 * ada-lang.c (ada_language_data): Delete skip_trampoline
5127 initializer.
5128 * c-lang.c (c_language_data): Likewise.
5129 (cplus_language_data): Likewise.
5130 (cplus_language::skip_trampoline): New member function.
5131 (asm_language_data): Delete skip_trampoline initializer.
5132 (minimal_language_data): Likewise.
5133 * d-lang.c (d_language_data): Likewise.
5134 * f-lang.c (f_language_data): Likewise.
5135 * go-lang.c (go_language_data): Likewise.
5136 * language.c (unk_lang_trampoline): Delete function.
5137 (skip_language_trampoline): Update.
5138 (unknown_language_data): Delete skip_trampoline initializer.
5139 (auto_language_data): Likewise.
5140 * language.h (language_data): Delete skip_trampoline field.
5141 (language_defn::skip_trampoline): New function.
5142 * m2-lang.c (m2_language_data): Delete skip_trampoline
5143 initializer.
5144 * objc-lang.c (objc_skip_trampoline): Delete function, move
5145 implementation to objc_language::skip_trampoline.
5146 (objc_language_data): Delete skip_trampoline initializer.
5147 (objc_language::skip_trampoline): New member function with
5148 implementation from objc_skip_trampoline.
5149 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5150 initializer.
5151 * p-lang.c (pascal_language_data): Likewise.
5152 * rust-lang.c (rust_language_data): Likewise.
5153
0a50df5d
AB
51542020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5155
5156 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5157 (ada_language::demangle): New member function.
5158 * c-lang.c (c_language_data): Delete la_demangle initializer.
5159 (cplus_language_data): Delete la_demangle initializer.
5160 (cplus_language::demangle): New member function.
5161 (asm_language_data): Delete la_demangle initializer.
5162 (minimal_language_data): Delete la_demangle initializer.
5163 * d-lang.c (d_language_data): Delete la_demangle initializer.
5164 (d_language::demangle): New member function.
5165 * f-lang.c (f_language_data): Delete la_demangle initializer.
5166 (f_language::demangle): New member function.
5167 * go-lang.c (go_language_data): Delete la_demangle initializer.
5168 (go_language::demangle): New member function.
5169 * language.c (language_demangle): Update.
5170 (unk_lang_demangle): Delete.
5171 (unknown_language_data): Delete la_demangle initializer.
5172 (unknown_language::demangle): New member function.
5173 (auto_language_data): Delete la_demangle initializer.
5174 (auto_language::demangle): New member function.
5175 * language.h (language_data): Delete la_demangle field.
5176 (language_defn::demangle): New function.
5177 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5178 * objc-lang.c (objc_language_data): Delete la_demangle
5179 initializer.
5180 (objc_language::demangle): New member function.
5181 * opencl-lang.c (opencl_language_data): Delete la_demangle
5182 initializer.
5183 * p-lang.c (pascal_language_data): Likewise.
5184 * rust-lang.c (rust_language_data): Likewise.
5185 (rust_language::demangle): New member function.
5186
fbfb0a46
AB
51872020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5188
5189 * ada-lang.c (ada_language_data): Delete la_print_type
5190 initializer.
5191 (ada_language::print_type): New member function.
5192 * c-lang.c (c_language_data): Delete la_print_type initializer.
5193 (c_language::print_type): New member function.
5194 (cplus_language_data): Delete la_print_type initializer.
5195 (cplus_language::print_type): New member function.
5196 (asm_language_data): Delete la_print_type initializer.
5197 (asm_language::print_type): New member function.
5198 (minimal_language_data): Delete la_print_type initializer.
5199 (minimal_language::print_type): New member function.
5200 * d-lang.c (d_language_data): Delete la_print_type initializer.
5201 (d_language::print_type): New member function.
5202 * f-lang.c (f_language_data): Delete la_print_type initializer.
5203 (f_language::print_type): New member function.
5204 * go-lang.c (go_language_data): Delete la_print_type initializer.
5205 (go_language::print_type): New member function.
5206 * language.c (unk_lang_print_type): Delete.
5207 (unknown_language_data): Delete la_print_type initializer.
5208 (unknown_language::print_type): New member function.
5209 (auto_language_data): Delete la_print_type initializer.
5210 (auto_language::print_type): New member function.
5211 * language.h (language_data): Delete la_print_type field.
5212 (language_defn::print_type): New function.
5213 (LA_PRINT_TYPE): Update.
5214 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5215 (m2_language::print_type): New member function.
5216 * objc-lang.c (objc_language_data): Delete la_print_type
5217 initializer.
5218 (objc_language::print_type): New member function.
5219 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5220 to opencl_language::print_type.
5221 (opencl_language_data): Delete la_print_type initializer.
5222 (opencl_language::print_type): New member function, implementation
5223 from opencl_print_type.
5224 * p-lang.c (pascal_language_data): Delete la_print_type
5225 initializer.
5226 (pascal_language::print_type): New member function.
5227 * rust-lang.c (rust_print_type): Delete, implementation moved to
5228 rust_language::print_type.
5229 (rust_language_data): Delete la_print_type initializer.
5230 (rust_language::print_type): New member function, implementation
5231 from rust_print_type.
5232
6f827019
AB
52332020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5234
5235 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5236 implementation moves to...
5237 (ada_language::sniff_from_mangled_name): ...here. Update return
5238 type.
5239 (ada_language_data): Delete la_sniff_from_mangled_name
5240 initializer.
5241 * c-lang.c (c_language_data): Likewise.
5242 (cplus_language_data): Likewise.
5243 (cplus_language::sniff_from_mangled_name): New member function,
5244 implementation taken from gdb_sniff_from_mangled_name.
5245 (asm_language_data): Delete la_sniff_from_mangled_name
5246 initializer.
5247 (minimal_language_data): Likewise.
5248 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5249 implementation moves to cplus_language::sniff_from_mangled_name.
5250 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5251 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5252 moves to...
5253 (d_language::sniff_from_mangled_name): ...here.
5254 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5255 * f-lang.c (f_language_data): Likewise.
5256 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5257 moves to...
5258 (go_language::sniff_from_mangled_name): ...here.
5259 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5260 * language.c (language_sniff_from_mangled_name): Delete.
5261 (unknown_language_data): Delete la_sniff_from_mangled_name
5262 initializer.
5263 (auto_language_data): Likewise.
5264 * language.h (language_data): Delete la_sniff_from_mangled_name
5265 field.
5266 (language_defn::sniff_from_mangled_name): New function.
5267 (language_sniff_from_mangled_name): Delete declaration.
5268 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5269 field.
5270 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5271 implementation moves to...
5272 (objc_language::sniff_from_mangled_name): ...here.
5273 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5274 * opencl-lang.c (opencl_language_data): Likewise.
5275 * p-lang.c (pascal_language_data): Likewise.
5276 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5277 implementation moves to...
5278 (rust_language::sniff_from_mangled_name): ...here.
5279 (rust_language_data): Delete la_sniff_from_mangled_name
5280 initializer.
5281 * symtab.c (symbol_find_demangled_name): Call
5282 sniff_from_mangled_name member function.
5283
fb8006fd
AB
52842020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5285
5286 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5287 initializer.
5288 * c-lang.c (c_language_data): Likewise.
5289 (cplus_language_data): Likewise.
5290 (cplus_language::search_name_hash): New member function.
5291 (asm_language_data): Delete la_search_name_hash initializer.
5292 (minimal_language_data): Likewise.
5293 * d-lang.c (d_language_data): Likewise.
5294 * dictionary.c (default_search_name_hash): Rename to...
5295 (language_defn::search_name_hash): ...this.
5296 * f-lang.c (f_language_data): Likewise.
5297 (f_language::search_name_hash): New member function.
5298 * go-lang.c (go_language_data): Delete la_search_name_hash
5299 initializer.
5300 * language.c (unknown_language_data): Likewise.
5301 (auto_language_data): Likewise.
5302 * language.h (struct language_data): Delete la_search_name_hash
5303 field.
5304 (language_defn::search_name_hash): Declare new member function.
5305 (default_search_name_hash): Delete declaration.
5306 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5307 initializer.
5308 * objc-lang.c (objc_language_data): Likewise.
5309 * opencl-lang.c (opencl_language_data): Likewise.
5310 * p-lang.c (pascal_language_data): Likewise.
5311 * rust-lang.c (rust_language_data): Likewise.
5312 * symtab.c (search_name_hash): Update call.
5313
8e25bafe
AB
53142020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5315
5316 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5317 initializer.
5318 * c-lang.c (class compile_instance): Declare.
5319 (c_language_data): Delete la_get_compile_instance initializer.
5320 (c_language::get_compile_instance): New member function.
5321 (cplus_language_data): Delete la_get_compile_instance initializer.
5322 (cplus_language::get_compile_instance): New member function.
5323 (asm_language_data): Delete la_get_compile_instance initializer.
5324 (minimal_language_data): Likewise.
5325 * c-lang.h (c_get_compile_context): Update comment.
5326 (cplus_get_compile_context): Update comment.
5327 * compile/compile.c (compile_to_object): Update calls, don't rely
5328 on function pointer being NULL.
5329 * d-lang.c (d_language_data): Delete la_get_compile_instance
5330 initializer.
5331 * f-lang.c (f_language_data): Likewise.
5332 * go-lang.c (go_language_data): Likewise.
5333 * language.c (unknown_language_data): Likewise.
5334 (auto_language_data): Likewise.
5335 * language.h (language_data): Delete la_get_compile_instance field.
5336 (language_defn::get_compile_instance): New member function.
5337 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5338 initializer.
5339 * objc-lang.c (objc_language_data): Likewise.
5340 * opencl-lang.c (opencl_language_data): Likewise.
5341 * p-lang.c (pascal_language_data): Likewise.
5342 * rust-lang.c (rust_language_data): Likewise.
5343
4009ee92
AB
53442020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5345
5346 * ada-lang.c (ada_add_all_symbols): Update comment.
5347 (ada_iterate_over_symbols): Delete, move implementation to...
5348 (ada_language::iterate_over_symbols): ...here, a new member
5349 function, rewrite to use range based for loop.
5350 (ada_language_data): Delete la_iterate_over_symbols initializer.
5351 * c-lang.c (c_language_data): Likewise.
5352 (cplus_language_data): Likewise.
5353 (asm_language_data): Likewise.
5354 (minimal_language_data): Likewise.
5355 * d-lang.c (d_language_data): Likewise.
5356 * f-lang.c (f_language_data): Likewise.
5357 * go-lang.c (go_language_data): Likewise.
5358 * language.c (unknown_language_data): Likewise.
5359 (auto_language_data): Likewise.
5360 * language.h (language_data): Delete la_iterate_over_symbols field.
5361 (language_defn::iterate_over_symbols): New member function.
5362 (LA_ITERATE_OVER_SYMBOLS): Update.
5363 * linespec.c (iterate_over_all_matching_symtabs): Update.
5364 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5365 initializer.
5366 * objc-lang.c (objc_language_data): Likewise.
5367 * opencl-lang.c (opencl_language_data): Likewise.
5368 * p-lang.c (pascal_language_data): Likewise.
5369 * rust-lang.c (rust_language_data): Likewise.
5370
54f4ca46
AB
53712020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5372
5373 * ada-lang.c (ada_language_data): Delete
5374 la_lookup_transparent_type initializer.
5375 * c-lang.c (c_language_data): Likewise.
5376 (cplus_language_data): Likewise.
5377 (cplus_language::lookup_transparent_type): New member function.
5378 (asm_language_data): Delete la_lookup_transparent_type
5379 initializer.
5380 (minimal_language_data): Likewise.
5381 * d-lang.c (d_language_data): Likewise.
5382 * f-lang.c (f_language_data): Likewise.
5383 * go-lang.c (go_language_data): Likewise.
5384 * language.c (unknown_language_data): Likewise.
5385 (auto_language_data): Likewise.
5386 * language.h (struct language_data): Delete
5387 la_lookup_transparent_type field.
5388 (language_defn::lookup_transparent_type): New member function.
5389 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5390 initializer.
5391 * objc-lang.c (objc_language_data): Likewise.
5392 * opencl-lang.c (opencl_language_data): Likewise.
5393 * p-lang.c (pascal_language_data): Likewise.
5394 * rust-lang.c (rust_language_data): Likewise.
5395 * symtab.c (symbol_matches_domain): Update call.
5396
1fb314aa
AB
53972020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5398
5399 * ada-lang.c (ada_language_arch_info): Delete function, move
5400 implementation to...
5401 (ada_language::language_arch_info): ...here, a new member
5402 function.
5403 (ada_language_data): Delete la_language_arch_info.
5404 * c-lang.c (c_language_data): Likewise.
5405 (c_language::language_arch_info): New member function.
5406 (cplus_language_arch_info): Delete function, move
5407 implementation to...
5408 (cplus_language::language_arch_info): ...here, a new member
5409 function.
5410 (cplus_language_data): Delete la_language_arch_info.
5411 (asm_language_data): Likewise.
5412 (asm_language::language_arch_info): New member function.
5413 (minimal_language_data): Delete la_language_arch_info.
5414 (minimal_language::language_arch_info): New member function.
5415 * d-lang.c (d_language_arch_info): Delete function, move
5416 implementation to...
5417 (d_language::language_arch_info): ...here, a new member
5418 function.
5419 (d_language_data): Delete la_language_arch_info.
5420 * f-lang.c (f_language_arch_info): Delete function, move
5421 implementation to...
5422 (f_language::language_arch_info): ...here, a new member
5423 function.
5424 (f_language_data): Delete la_language_arch_info.
5425 * go-lang.c (go_language_arch_info): Delete function, move
5426 implementation to...
5427 (go_language::language_arch_info): ...here, a new member
5428 function.
5429 (go_language_data): Delete la_language_arch_info.
5430 * language.c (unknown_language_data): Likewise.
5431 (unknown_language::language_arch_info): New member function.
5432 (auto_language_data): Delete la_language_arch_info.
5433 (auto_language::language_arch_info): New member function.
5434 (language_gdbarch_post_init): Update call to
5435 la_language_arch_info.
5436 * language.h (language_data): Delete la_language_arch_info
5437 function pointer.
5438 (language_defn::language_arch_info): New function.
5439 * m2-lang.c (m2_language_arch_info): Delete function, move
5440 implementation to...
5441 (m2_language::language_arch_info): ...here, a new member
5442 function.
5443 (m2_language_data): Delete la_language_arch_info.
5444 * objc-lang.c (objc_language_arch_info): Delete function, move
5445 implementation to...
5446 (objc_language::language_arch_info): ...here, a new member
5447 function.
5448 (objc_language_data): Delete la_language_arch_info.
5449 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5450 implementation to...
5451 (opencl_language::language_arch_info): ...here, a new member
5452 function.
5453 (opencl_language_data): Delete la_language_arch_info.
5454 * p-lang.c (pascal_language_arch_info): Delete function, move
5455 implementation to...
5456 (pascal_language::language_arch_info): ...here, a new member
5457 function.
5458 (pascal_language_data): Delete la_language_arch_info.
5459 * rust-lang.c (rust_language_arch_info): Delete function, move
5460 implementation to...
5461 (rust_language::language_arch_info): ...here, a new member
5462 function.
5463 (rust_language_data): Delete la_language_arch_info.
5464
48448202
AB
54652020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5466
5467 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5468 initializer.
5469 * c-lang.c (c_language_data): Likewise.
5470 (cplus_language_data): Likewise.
5471 (cplus_language::pass_by_reference_info): New method.
5472 (asm_language_data): Delete la_pass_by_reference initializer.
5473 (minimal_language_data): Likewise.
5474 * cp-abi.c (cp_pass_by_reference): Remove use of
5475 default_pass_by_reference.
5476 * d-lang.c (d_language_data): Likewise.
5477 * f-lang.c (f_language_data): Likewise.
5478 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5479 default_pass_by_reference.
5480 * go-lang.c (go_language_data): Likewise.
5481 * language.c (language_pass_by_reference): Update.
5482 (default_pass_by_reference): Delete.
5483 (unknown_language_data): Delete la_pass_by_reference
5484 initializer.
5485 (auto_language_data): Likewise.
5486 * language.h (struct language_data): Delete la_pass_by_reference
5487 field.
5488 (language_defn::pass_by_reference_info): New member function.
5489 (default_pass_by_reference): Delete declaration.
5490 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5491 initializer.
5492 * objc-lang.c (objc_language_data): Likewise.
5493 * opencl-lang.c (opencl_language_data): Likewise.
5494 * p-lang.c (pascal_language_data): Likewise.
5495 * rust-lang.c (rust_language_data): Likewise.
5496
15e5fd35
AB
54972020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5498
5499 * ada-lang.c (ada_read_var_value): Delete function, move
5500 implementation to...
5501 (ada_language::read_var_value): ...here.
5502 (ada_language_data): Delete la_read_var_value initializer.
5503 * c-lang.c (c_language_data): Likewise.
5504 (cplus_language_data): Likewise.
5505 (minimal_language_data): Likewise.
5506 * d-lang.c (d_language_data): Likewise.
5507 * f-lang.c (f_language_data): Likewise.
5508 * findvar.c (default_read_var_value): Rename to...
5509 (language_defn::read_var_value): ...this.
5510 * findvar.c (read_var_value): Update header comment, and change to
5511 call member function instead of function pointer.
5512 * go-lang.c (go_language_data): Likewise.
5513 * language.c (unknown_language_data): Delete la_read_var_value
5514 initializer.
5515 (auto_language_data): Likewise.
5516 * language.h (struct language_data): Delete la_read_var_value
5517 field.
5518 (language_defn::read_var_value): New member function.
5519 (default_read_var_value): Delete declaration.
5520 * m2-lang.c (m2_language_data): Delete la_read_var_value
5521 initializer.
5522 * objc-lang.c (objc_language_data): Likewise.
5523 * opencl-lang.c (opencl_language_data): Likewise.
5524 * p-lang.c (pascal_language_data): Likewise.
5525 * rust-lang.c (rust_language_data): Likewise.
5526 * value.h (default_read_var_value): Delete declaration.
5527
5bd40f2a
AB
55282020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5529
5530 * ada-lang.c (ada_print_array_index): Delete function, move
5531 implementation to...
5532 (ada_language::print_array_index): ...here.
5533 (ada_language_data): Delete la_print_array_index initializer.
5534 * c-lang.c (c_language_data): Likewise.
5535 (cplus_language_data): Likewise.
5536 (minimal_language_data): Likewise.
5537 * d-lang.c (d_language_data): Likewise.
5538 * f-lang.c (f_language_data): Likewise.
5539 * go-lang.c (go_language_data): Likewise.
5540 * language.c (default_print_array_index): Delete function, move
5541 implementation to...
5542 (language_defn::print_array_index): ...here.
5543 (unknown_language_data): Delete la_print_array_index initializer.
5544 (auto_language_data): Likewise.
5545 * language.h (struct language_data): Delete la_print_array_index
5546 field.
5547 (language_defn::print_array_index): New member function.
5548 (LA_PRINT_ARRAY_INDEX): Update.
5549 (default_print_array_index): Delete declaration.
5550 * m2-lang.c (m2_language_data): Delete la_print_array_index
5551 initializer.
5552 * objc-lang.c (objc_language_data): Likewise.
5553 * opencl-lang.c (opencl_language_data): Likewise.
5554 * p-lang.c (pascal_language_data): Likewise.
5555 * rust-lang.c (rust_language_data): Likewise.
5556
0874fd07
AB
55572020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5558
5559 * gdb/ada-lang.c (ada_language_defn): Convert to...
5560 (ada_language_data): ...this.
5561 (class ada_language): New class.
5562 (ada_language_defn): New static global.
5563 * gdb/c-lang.c (c_language_defn): Convert to...
5564 (c_language_data): ...this.
5565 (class c_language): New class.
5566 (c_language_defn): New static global.
5567 (cplus_language_defn): Convert to...
5568 (cplus_language_data): ...this.
5569 (class cplus_language): New class.
5570 (cplus_language_defn): New static global.
5571 (asm_language_defn): Convert to...
5572 (asm_language_data): ...this.
5573 (class asm_language): New class.
5574 (asm_language_defn): New static global.
5575 (minimal_language_defn): Convert to...
5576 (minimal_language_data): ...this.
5577 (class minimal_language): New class.
5578 (minimal_language_defn): New static global.
5579 * gdb/d-lang.c (d_language_defn): Convert to...
5580 (d_language_data): ...this.
5581 (class d_language): New class.
5582 (d_language_defn): New static global.
5583 * gdb/f-lang.c (f_language_defn): Convert to...
5584 (f_language_data): ...this.
5585 (class f_language): New class.
5586 (f_language_defn): New static global.
5587 * gdb/go-lang.c (go_language_defn): Convert to...
5588 (go_language_data): ...this.
5589 (class go_language): New class.
5590 (go_language_defn): New static global.
5591 * gdb/language.c (unknown_language_defn): Remove declaration.
5592 (current_language): Initialize to nullptr, real initialization is
5593 moved to _initialize_language.
5594 (languages): Delete global.
5595 (language_defn::languages): Define.
5596 (set_language_command): Use language_defn::languages.
5597 (set_language): Likewise.
5598 (range_error): Likewise.
5599 (language_enum): Likewise.
5600 (language_def): Likewise.
5601 (add_set_language_command): Use language_def::languages for the
5602 language list, and language_def to lookup language pointers.
5603 (skip_language_trampoline): Use language_defn::languages.
5604 (unknown_language_defn): Convert to...
5605 (unknown_language_data): ...this.
5606 (class unknown_language): New class.
5607 (unknown_language_defn): New static global.
5608 (auto_language_defn): Convert to...
5609 (auto_language_data): ...this.
5610 (class auto_language): New class.
5611 (auto_language_defn): New static global.
5612 (language_gdbarch_post_init): Use language_defn::languages.
5613 (_initialize_language): Initialize current_language.
5614 * gdb/language.h (struct language_defn): Rename to...
5615 (struct language_data): ...this.
5616 (struct language_defn): New.
5617 (auto_language_defn): Delete.
5618 (unknown_language_defn): Delete.
5619 (minimal_language_defn): Delete.
5620 (ada_language_defn): Delete.
5621 (asm_language_defn): Delete.
5622 (c_language_defn): Delete.
5623 (cplus_language_defn): Delete.
5624 (d_language_defn): Delete.
5625 (f_language_defn): Delete.
5626 (go_language_defn): Delete.
5627 (m2_language_defn): Delete.
5628 (objc_language_defn): Delete.
5629 (opencl_language_defn): Delete.
5630 (pascal_language_defn): Delete.
5631 (rust_language_defn): Delete.
5632 * gdb/m2-lang.c (m2_language_defn): Convert to...
5633 (m2_language_data): ...this.
5634 (class m2_language): New class.
5635 (m2_language_defn): New static global.
5636 * gdb/objc-lang.c (objc_language_defn): Convert to...
5637 (objc_language_data): ...this.
5638 (class objc_language): New class.
5639 (objc_language_defn): New static global.
5640 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5641 (opencl_language_data): ...this.
5642 (class opencl_language): New class.
5643 (opencl_language_defn): New static global.
5644 * gdb/p-lang.c (pascal_language_defn): Convert to...
5645 (pascal_language_data): ...this.
5646 (class pascal_language): New class.
5647 (pascal_language_defn): New static global.
5648 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5649 language pointer, update comment format.
5650 * gdb/rust-lang.c (rust_language_defn): Convert to...
5651 (rust_language_data): ...this.
5652 (class rust_language): New class.
5653 (rust_language_defn): New static global.
5654
1313c56e
AB
56552020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5656
5657 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5658 member variable.
5659 <m_stmt_at_address>: New member variable.
5660 (lnp_state_machine::record_line): Don't record some lines, update
5661 tracking of is_stmt at the same address.
5662 (lnp_state_machine::lnp_state_machine): Initialise new member
5663 variables.
5664
b7ed9f3d
ST
56652020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5666
5667 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5668 "-include gnu-nat-mig.h".
5669 * gnu-nat-mig.h: New file.
5670 * gnu-nat.c: Include "gnu-nat-mig.h".
5671 (exc_server, msg_reply_server, notify_server,
5672 process_reply_server): Remove declarations.
5673
14a8ad62
ST
56742020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5675
5676 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5677 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5678 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5679 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5680 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5681 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5682 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5683 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5684 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5685 to gnu_nat_target class.
5686 * gnu-nat.c: Likewise.
5687 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5688 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5689 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5690 object.
5691 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5692 instead of `gnu_target'.
5693
0af5e106
ST
56942020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5695
5696 * i386-gnu-tdep.c: Include "gdbcore.h"
5697 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5698 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5699 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5700 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5701 i386_gnu_sigcontext_addr): New functions
5702 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5703 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5704 tdep.
5705
078f2fc9
ST
57062020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5707
5708 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5709 before fork_inferior call. Avoid calling it if target_is_pushed returns
5710 true.
5711
53dff92c
ST
57122020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5713
5714 * gnu-nat.h (gnu_target): New variable declaration.
5715 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5716 gnu_target.
5717 * gnu-nat.c (gnu_target): New variable.
5718 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5719 add_thread_silent, and add_thread calls.
5720 (gnu_nat_target::create_inferior): Pass gnu_target to
5721 add_thread_silent, thread_change_ptid call.
5722 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5723 call.
5724
5a8b8627
ST
57252020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5726
5727 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5728 (gnu_nat_target::find_memory_regions): Remove unused
5729 `old_address' variable.
5730
366f550a
ST
57312020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5732
5733 * gnu-nat.c: Include "gdbarch.h".
5734
f14871bf
ST
57352020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5736
5737 * reply_mig_hack.awk (Error return): Cast function through
5738 void *, to bypass compiler function call check.
5739
c6887cfb
ST
57402020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5741
5742 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5743 $(srcdir)/reply_mig_hack.awk.
5744
6930bffe
ST
57452020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5746
5747 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5748
112c22ed
JG
57492020-05-30 Jonny Grant <jg@jguk.org>
5750
5751 * configure.ac (ACX_BUGURL): change bug URL to https.
5752
f68f85b5
PA
57532020-05-30 Pedro Alves <palves@redhat.com>
5754
5755 * cp-support.c (replace_typedefs_template): New.
5756 (replace_typedefs_qualified_name): Handle
5757 DEMANGLE_COMPONENT_TEMPLATE.
5758
976ca316
SM
57592020-05-29 Simon Marchi <simon.marchi@efficios.com>
5760
5761 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5762 dwarf2/index-cache.h, dwarf2/index-write.c,
5763 dwarf2/index-write.h, dwarf2/line-header.c,
5764 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5765 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5766 variables and fields from `dwarf2_per_objfile` to just
5767 `per_objfile` throughout.
5768
989ade05
SM
57692020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5770
5771 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5772 <push_dwarf_reg_entry_value>: Add comment.
5773
c47bae85
KB
57742020-05-28 Kevin Buettner <kevinb@redhat.com>
5775 Keith Seitz <keiths@redhat.com>
5776
5777 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5778 instead of PyEval_ReleaseLock.
5779 (class gdbpy_gil): Move to earlier in file.
5780 (finalize_python): Set gdb_python_initialized.
5781 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5782 when not initialized.
5783
44486dcf
SM
57842020-05-28 Simon Marchi <simon.marchi@efficios.com>
5785
5786 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5787 <push_dwarf_reg_entry_value>: Remove assert. Override
5788 per_objfile with caller_per_objfile.
5789
f030440d
TV
57902020-05-28 Tom de Vries <tdevries@suse.de>
5791
5792 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
5793 PR gold/15646 workaround to symbol kind "type".
5794
f0fbb768
TT
57952020-05-27 Tom Tromey <tromey@adacore.com>
5796
5797 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
5798
af0b2a3e
TT
57992020-05-27 Tom Tromey <tromey@adacore.com>
5800
5801 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5802 Use htab_find_with_hash.
5803 <add_abbrev>: Remove "abbrev_number" parameter.
5804 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
5805 "abbrev_number" parameter. Use htab_find_slot_with_hash.
5806 (hash_abbrev): Add comment.
5807 (abbrev_table::lookup_abbrev): Move to header file.
5808 (abbrev_table::read): Update.
5809
7d00ffec
TT
58102020-05-27 Tom Tromey <tromey@adacore.com>
5811
5812 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
5813 method.
5814 <canonical_name>: New member.
5815 <raw_name>: Rename from "name".
5816 (partial_die_info): Initialize canonical_name.
5817 (scan_partial_symbols): Check raw_name.
5818 (partial_die_parent_scope, partial_die_full_name)
5819 (add_partial_symbol, add_partial_subprogram)
5820 (add_partial_enumeration, load_partial_dies): Use "name" method.
5821 (partial_die_info::name): New method.
5822 (partial_die_info::read, guess_partial_die_structure_name)
5823 (partial_die_info::fixup): Update.
5824
697bba18
TT
58252020-05-27 Tom Tromey <tromey@adacore.com>
5826
5827 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
5828 <get_ref_die_offset>: Inline.
5829 <get_ref_die_offset_complaint>: New method.
5830 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
5831 (attribute::get_ref_die_offset_complaint): Rename from
5832 get_ref_die_offset. Just issue complaint.
5833
c17ace43
HD
58342020-05-27 Hannes Domani <ssbssa@yahoo.de>
5835
5836 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
5837
96445f0b
HD
58382020-05-27 Hannes Domani <ssbssa@yahoo.de>
5839
5840 * exec.c (exec_file_attach): Use errno value of first openp failure.
5841
ac637ec3
HD
58422020-05-27 Hannes Domani <ssbssa@yahoo.de>
5843
5844 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5845 Don't close thread handle.
5846
17ee85fc
TT
58472020-05-27 Tom Tromey <tom@tromey.com>
5848 Simon Marchi <simon.marchi@efficios.com>
5849
5850 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5851 shared_ptr.
5852 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5853 member.
5854 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5855 dwarf2_per_bfd_objfile_data_key>: New globals.
5856 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5857 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5858 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5859 shared.
5860 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5861 short-circuit when sharing.
5862 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5863 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5864
39b16f87
SM
58652020-05-27 Simon Marchi <simon.marchi@efficios.com>
5866
5867 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5868 to...
5869 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5870 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5871
fcf23d5b
SM
58722020-05-27 Simon Marchi <simon.marchi@efficios.com>
5873
5874 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5875 build_name_components, find_name_components_bounds>:
5876 Add per_objfile parameter.
5877 (struct mapped_index) <symbol_name_at>: Likewise.
5878 (struct mapped_debug_names): Remove constructor.
5879 <dwarf2_per_objfile>: Remove field.
5880 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5881 (mapped_index_base::find_name_components_bounds,
5882 mapped_index_base::build_name_components,
5883 dw2_expand_symtabs_matching_symbol): Likewise.
5884 (class mock_mapped_index) <symbol_name_at>: Likewise.
5885 (check_match): Likewise.
5886 (check_find_bounds_finds): Likewise.
5887 (test_mapped_index_find_name_component_bounds): Update.
5888 (CHECK_MATCH): Update.
5889 (dw2_expand_symtabs_matching): Update.
5890 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5891 per_objfile parameter.
5892 <find_vec_in_debug_names>: Likewise.
5893 <m_per_objfile>: New field.
5894 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5895 parameter.
5896 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5897 (dw2_debug_names_iterator::next): Update.
5898 (dw2_debug_names_lookup_symbol): Update.
5899 (dw2_debug_names_expand_symtabs_for_function): Update.
5900 (dw2_debug_names_map_matching_symbols): Update.
5901 (dw2_debug_names_expand_symtabs_matching): Update.
5902 (dwarf2_read_debug_names): Update.
5903
7188ed02
SM
59042020-05-27 Simon Marchi <simon.marchi@efficios.com>
5905
5906 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5907 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5908 move to dwarf2_per_objfile.
5909 <read_in_chain>: Remove.
5910 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5911 remove_all_cus, age_comp_units>: New methods.
5912 <m_dwarf2_cus>: New member.
5913 (struct dwarf2_per_cu_data) <cu>: Remove.
5914 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5915 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5916 moved to methods of dwarf2_per_objfile.
5917 (dwarf2_clear_marks): Remove.
5918 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5919 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5920 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5921 (dwarf2_per_objfile::remove_all_cus): New.
5922 (class free_cached_comp_units) <~free_cached_comp_units>:
5923 Update.
5924 (load_cu): Update.
5925 (dw2_do_instantiate_symtab): Adjust.
5926 (fill_in_sig_entry_from_dwo_entry): Adjust.
5927 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5928 (cutu_reader::cutu_reader): Likewise.
5929 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5930 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5931 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5932 and dwarf2_per_objfile::age_comp_units.
5933 (load_partial_comp_unit): Update.
5934 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5935 (process_queue): Likewise.
5936 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5937 backlink.
5938 (dwarf2_read_addr_index): Likewise.
5939 (follow_die_offset): Likewise.
5940 (dwarf2_fetch_die_loc_sect_off): Likewise.
5941 (dwarf2_fetch_constant_bytes): Likewise.
5942 (dwarf2_fetch_die_type_sect_off): Likewise.
5943 (follow_die_sig_1): Likewise.
5944 (load_full_type_unit): Likewise.
5945 (read_signatured_type): Likewise.
5946 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5947 (dwarf2_cu::~dwarf2_cu): Remove.
5948 (dwarf2_per_objfile::get_cu): New.
5949 (dwarf2_per_objfile::set_cu): New.
5950 (age_cached_comp_units): Rename to...
5951 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5952 to std::unordered_map.
5953 (free_one_cached_comp_unit): Rename to...
5954 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5955 to std::unordered_map.
5956 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5957 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5958 a dwarf2_per_objfile in data.
5959 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5960 (dwarf2_clear_marks): Remove.
5961
2e671100
SM
59622020-05-27 Simon Marchi <simon.marchi@efficios.com>
5963
5964 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5965 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5966 (init_tu_and_read_dwo_dies): Likewise.
5967 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5968 (cutu_reader::cutu_reader): Likewise.
5969 (load_partial_comp_unit): Likewise.
5970 (process_psymtab_comp_unit): Update.
5971 (build_type_psymtabs_1): Update.
5972 (process_skeletonless_type_unit): Update.
5973 (load_full_comp_unit): Update.
5974 (find_partial_die): Update.
5975 (dwarf2_read_addr_index): Update.
5976 (read_signatured_type): Update.
5977
2e6a9f79
SM
59782020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5979
5980 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5981 m_header_read_in>: New fields.
5982 <get_header>: New method.
5983 * dwarf2/read.c (per_cu_header_read_in): Remove.
5984 (dwarf2_per_cu_data::get_header): New.
5985 (dwarf2_per_cu_data::addr_size): Update.
5986 (dwarf2_per_cu_data::offset_size): Update.
5987 (dwarf2_per_cu_data::ref_addr_size): Update.
5988
1b555f17
SM
59892020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5990
5991 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5992 (dw2_do_instantiate_symtab): Update.
5993 (queue_and_load_all_dwo_tus): Change parameter from
5994 dwarf2_per_cu_data to dwarf2_cu.
5995 (dwarf2_fetch_die_loc_sect_off): Update.
5996 (dwarf2_fetch_constant_bytes): Update.
5997 (dwarf2_fetch_die_type_sect_off): Update.
5998
8fc0b21d
SM
59992020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6000
6001 * dwarf2/read.c (process_full_comp_unit,
6002 process_full_type_unit): Remove per_cu, per_objfile paramters.
6003 Add dwarf2_cu parameter.
6004 (process_queue): Update.
6005
168c9250
SM
60062020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6007
6008 * dwarf2/read.c (create_cu_from_index_list): Replace
6009 dwarf2_per_objfile parameter with dwarf2_per_bfd.
6010 (create_cus_from_index_list): Likewise.
6011 (create_cus_from_index): Likewise.
6012 (create_signatured_type_table_from_index): Likewise.
6013 (create_cus_from_debug_names_list): Likewise.
6014 (create_cus_from_debug_names): Likewise.
6015 (dwarf2_read_gdb_index): Update.
6016 (dwarf2_read_debug_names): Update.
6017
e286671b
TT
60182020-05-27 Tom Tromey <tom@tromey.com>
6019 Simon Marchi <simon.marchi@efficios.com>
6020
6021 * dwarf2/read.h (struct dwarf2_per_objfile)
6022 <get_type_for_signatured_type, set_type_for_signatured_type>:
6023 New methods.
6024 <m_type_map>: New member.
6025 (struct signatured_type) <type>: Remove.
6026 * dwarf2/read.c
6027 (dwarf2_per_objfile::get_type_for_signatured_type,
6028 dwarf2_per_objfile::set_type_for_signatured_type): New.
6029 (get_signatured_type): Use new methods.
6030
8adb8487
TT
60312020-05-27 Tom Tromey <tom@tromey.com>
6032 Simon Marchi <simon.marchi@efficios.com>
6033
6034 * dwarf2/read.h (struct type_unit_group_unshareable): New.
6035 (struct dwarf2_per_objfile) <type_units>: New member.
6036 <get_type_unit_group_unshareable>: New method.
6037 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
6038 num_symtabs, symtabs>: Remove; move to
6039 type_unit_group_unshareable.
6040 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
6041 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
6042 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
6043
127bbf4b
SM
60442020-05-27 Simon Marchi <simon.marchi@efficios.com>
6045
6046 * dwarf2/read.h (struct dwarf2_per_cu_data):
6047 <dwarf2_per_objfile>: Remove.
6048 * dwarf2/read.c (create_cu_from_index_list): Don't assign
6049 dwarf2_per_objfile.
6050 (create_signatured_type_table_from_index): Likewise.
6051 (create_signatured_type_table_from_debug_names): Likewise.
6052 (create_debug_type_hash_table): Likewise.
6053 (fill_in_sig_entry_from_dwo_entry): Likewise.
6054 (create_type_unit_group): Likewise.
6055 (read_comp_units_from_section): Likewise.
6056 (create_cus_hash_table): Likewise.
6057
f6e649dd
SM
60582020-05-27 Simon Marchi <simon.marchi@efficios.com>
6059
6060 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
6061 dwarf2_per_cu_data::dwarf2_per_objfile.
6062 (compute_compunit_symtab_includes): Likewise.
6063 (dwarf2_cu::start_symtab): Likewise.
6064
aa66c379
SM
60652020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6066
6067 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
6068 parameter.
6069 * dwarf2/read.c (get_die_type_at_offset): Likewise.
6070 (read_namespace_alias): Update.
6071 (lookup_die_type): Update.
6072 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
6073 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
6074 Update.
6075 (disassemble_dwarf_expression): Update.
6076
120ce1b5
SM
60772020-05-27 Simon Marchi <simon.marchi@efficios.com>
6078
6079 * dwarf2/read.h (struct dwarf2_queue_item): Add
6080 dwarf2_per_objfile parameter, assign new parameter.
6081 <per_objfile>: New field.
6082 * dwarf2/read.c (free_one_cached_comp_unit): Add
6083 dwarf2_per_objfile parameter.
6084 (queue_comp_unit): Likewise.
6085 (dw2_do_instantiate_symtab): Update.
6086 (process_psymtab_comp_unit): Update.
6087 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
6088 (process_imported_unit_die): Update.
6089 (queue_and_load_dwo_tu): Update.
6090 (follow_die_offset): Update.
6091 (follow_die_sig_1): Update.
6092
9f47c707
SM
60932020-05-27 Simon Marchi <simon.marchi@efficios.com>
6094
6095 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
6096 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
6097 (read_call_site_scope): Assign per_objfile.
6098 (dwarf2_per_cu_data::objfile): Remove.
6099 * gdbtypes.h (struct call_site) <per_objfile>: New member.
6100 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
6101 dwarf2_per_objfile parameter.
6102 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
6103 dwarf2_per_objfile parameter.
6104 (dwarf_expr_reg_to_entry_parameter): Add output
6105 dwarf2_per_objfile parameter.
6106 (locexpr_get_frame_base): Update.
6107 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
6108 <push_dwarf_reg_entry_value>: Update.
6109 <call_site_to_target_addr>: Update.
6110 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
6111 parameter.
6112 (value_of_dwarf_reg_entry): Update.
6113 (rw_pieced_value): Update.
6114 (indirect_synthetic_pointer): Update.
6115 (dwarf2_evaluate_property): Update.
6116 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
6117 parameter.
6118 (locexpr_read_variable): Update.
6119 (locexpr_get_symbol_read_needs): Update.
6120 (loclist_read_variable): Update.
6121
14095eb3
SM
61222020-05-27 Simon Marchi <simon.marchi@efficios.com>
6123
6124 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6125 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6126 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6127 parameter.
6128 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6129 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6130 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6131 parameter.
6132 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6133 sect_variable_value): Add dwarf2_per_objfile parameter.
6134 (class dwarf_evaluate_loc_desc) <dwarf_call,
6135 dwarf_variable_value>: Update.
6136 (fetch_const_value_from_synthetic_pointer): Add
6137 dwarf2_per_objfile parameter.
6138 (fetch_const_value_from_synthetic_pointer): Update.
6139 (coerced_pieced_ref): Update.
6140 (class symbol_needs_eval_context) <dwarf_call,
6141 dwarf_variable_value>: Update.
6142 (dwarf2_compile_expr_to_ax): Update.
6143
3c3cd3d4
SM
61442020-05-27 Simon Marchi <simon.marchi@efficios.com>
6145
6146 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6147 parameter.
6148 (dwarf2_evaluate_loc_desc_full): Update.
6149
82ca3f51
SM
61502020-05-27 Simon Marchi <simon.marchi@efficios.com>
6151
6152 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6153 parameter.
6154 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6155 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6156 dwarf2_per_objfile parameter.
6157 (decode_debug_loc_dwo_addresses): Likewise.
6158 (dwarf2_find_location_expression): Update.
6159 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6160 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6161 parameter.
6162 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6163 parameter.
6164 (locexpr_describe_location_1): Likewise.
6165 (locexpr_describe_location): Update.
6166
4b167ea1
SM
61672020-05-27 Simon Marchi <simon.marchi@efficios.com>
6168
6169 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6170 Remove.
6171 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6172 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6173 (dwarf2_compile_property_to_c): Update.
6174 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6175 use text offset from objfile.
6176 (locexpr_tracepoint_var_ref): Update.
6177 (locexpr_generate_c_location): Update.
6178 (loclist_describe_location): Update.
6179 (loclist_tracepoint_var_ref): Update.
6180 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6181 dwarf2_per_objfile parameter.
6182 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6183 use text offset from objfile.
6184 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6185
89b07335
SM
61862020-05-27 Simon Marchi <simon.marchi@efficios.com>
6187
6188 * dwarf2/expr.h (struct dwarf_expr_context)
6189 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6190 <offset>: Remove.
6191 <per_objfile>: New member.
6192 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6193 dwarf2_per_objfile parameter. Don't set offset, set
6194 per_objfile.
6195 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6196 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6197 a dwarf2_per_objfile object instead of an offset.
6198 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6199 constructor.
6200 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6201 to dwarf2_expr_executor constructor. Don't set offset.
6202 (dwarf2_fetch_cfa_info): Update.
6203 (struct dwarf2_frame_cache) <text_offset>: Remove.
6204 <per_objfile>: New field.
6205 (dwarf2_frame_cache): Update.
6206 (dwarf2_frame_prev_register): Update.
6207 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6208 <dwarf_evaluate_loc_desc>: Add constructor.
6209 (dwarf2_evaluate_loc_desc_full): Update.
6210 (dwarf2_locexpr_baton_eval): Update.
6211 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6212 Add constructor.
6213 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6214
293e7e51
SM
62152020-05-27 Simon Marchi <simon.marchi@efficios.com>
6216
6217 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6218 addr_sized_int_type>: Move to dwarf2_cu.
6219 <int_type>: Move to dwarf2_per_objfile.
6220 (struct dwarf2_per_objfile) <int_type>: Move here.
6221 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6222 addr_sized_int_type>: Move here.
6223 (read_func_scope): Update.
6224 (read_array_type): Update.
6225 (read_tag_string_type): Update.
6226 (attr_to_dynamic_prop): Update.
6227 (dwarf2_per_cu_data::int_type): Rename to...
6228 (dwarf2_per_objfile::int_type): ... this.
6229 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6230 (dwarf2_cu::addr_sized_int_type): ... this.
6231 (read_subrange_type): Update.
6232 (dwarf2_per_cu_data::addr_type): Rename to...
6233 (dwarf2_cu::addr_type): ... this.
6234 (set_die_type): Update.
6235
64874a40
SM
62362020-05-27 Simon Marchi <simon.marchi@efficios.com>
6237
6238 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6239 data through per_cu->cu.
6240
4ab09049
SM
62412020-05-27 Simon Marchi <simon.marchi@efficios.com>
6242
6243 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6244 dwarf2_per_cu_data parameter fo dwarf2_cu.
6245 (lookup_dwo_type_unit): Likewise.
6246 (read_cutu_die_from_dwo): Likewise.
6247 (lookup_dwo_unit): Likewise.
6248 (open_and_init_dwo_file): Likewise.
6249 (lookup_dwo_cutu): Likewise.
6250 (lookup_dwo_comp_unit): Likewise.
6251 (lookup_dwo_type_unit): Likewise.
6252 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6253 (cutu_reader::cutu_reader): Update.
6254
47b14e86
SM
62552020-05-27 Simon Marchi <simon.marchi@efficios.com>
6256
6257 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6258 parameter.
6259 (process_full_type_unit): Likewise.
6260 (process_queue): Update.
6261
43182c09
SM
62622020-05-27 Simon Marchi <simon.marchi@efficios.com>
6263
6264 * dwarf2/read.c (recursively_compute_inclusions): Add
6265 dwarf2_per_objfile parameter.
6266 (compute_compunit_symtab_includes): Likewise.
6267 (process_cu_includes): Update.
6268
7aa104c4
SM
62692020-05-27 Simon Marchi <simon.marchi@efficios.com>
6270
6271 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6272 parameter.
6273 (create_type_unit_group): Update.
6274 (process_psymtab_comp_unit_reader): Update.
6275 (build_type_psymtabs_reader): Update.
6276
e3beb21d
SM
62772020-05-27 Simon Marchi <simon.marchi@efficios.com>
6278
6279 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6280 object through m_this_cu->cu.
6281
d460f660
SM
62822020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6283
6284 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6285 the info parameter.
6286 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6287
ab432490
SM
62882020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6289
6290 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6291 per_objfile parameter.
6292 (load_full_type_unit): Add per_objfile parameter.
6293 (read_signatured_type): Likewise.
6294 (load_full_comp_unit): Likewise.
6295 (load_cu): Likewise.
6296 (dw2_do_instantiate_symtab): Likewise.
6297 (dw2_get_file_names): Likewise.
6298 (dw2_map_symtabs_matching_filename): Update.
6299 (dw_expand_symtabs_matching_file_matcher): Update.
6300 (dw2_map_symbol_filenames): Update.
6301 (process_psymtab_comp_unit): Add per_objfile parameter.
6302 (build_type_psymtabs_1): Update.
6303 (process_skeletonless_type_unit): Update.
6304 (dwarf2_build_psymtabs_hard): Update.
6305 (load_partial_comp_unit): Add per_objfile parameter.
6306 (scan_partial_symbols): Update.
6307 (load_full_comp_unit): Add per_objfile parameter.
6308 (process_imported_unit_die): Update.
6309 (create_cus_hash_table): Update.
6310 (find_partial_die): Update.
6311 (dwarf2_read_addr_index): Update.
6312 (follow_die_offset): Update.
6313 (dwarf2_fetch_die_loc_sect_off): Update.
6314 (dwarf2_fetch_constant_bytes): Update.
6315 (dwarf2_fetch_die_type_sect_off): Update.
6316 (follow_die_sig_1): Update.
6317 (load_full_type_unit): Add per_objfile parameter.
6318 (read_signatured_type): Likewise.
6319
313bad1b
SM
63202020-05-27 Simon Marchi <simon.marchi@efficios.com>
6321
6322 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6323 of objfile_name.
6324
c3699833
SM
63252020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6326
6327 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6328 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6329 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6330 field.
6331 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6332 (create_cus_from_index): Update.
6333 (dwarf2_read_gdb_index): Update.
6334 (create_cus_from_debug_names): Update.
6335 (dwarf2_read_debug_names): Update.
6336 (get_abbrev_section_for_cu): Update.
6337 (create_all_comp_units): Update.
6338 (read_attribute_value): Update.
6339 (get_debug_line_section): Update.
6340 * dwarf2/index-cache.c (index_cache::store): Update.
6341 * dwarf2/index-write.c (save_gdb_index_command): Update.
6342 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6343
1859c670
SM
63442020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6345
6346 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6347 member.
6348 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6349 dwarf2_per_cu_data::per_bfd.
6350 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6351 (create_type_unit_group): Likewise.
6352 (queue_comp_unit): Remove reference to
6353 per_cu->dwarf2_per_objfile.
6354 (maybe_queue_comp_unit): Likewise.
6355 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6356 (create_cus_hash_table): Assign new field.
6357
5e22e966
SM
63582020-05-27 Simon Marchi <simon.marchi@efficios.com>
6359
6360 * dwarf2/read.c: Replace
6361 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6362 dwarf2_cu->per_objfile throughout.
6363
97a1449a
SM
63642020-05-27 Simon Marchi <simon.marchi@efficios.com>
6365
6366 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6367 parameter, don't use per_cu->dwarf2_per_objfile.
6368 (dw2_instantiate_symtab): Likewise.
6369 (dw2_find_last_source_symtab): Update.
6370 (dw2_map_expand_apply): Update.
6371 (dw2_lookup_symbol): Update.
6372 (dw2_expand_symtabs_for_function): Update.
6373 (dw2_expand_all_symtabs): Update.
6374 (dw2_expand_symtabs_with_fullname): Update.
6375 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6376 don't use per_cu->dwarf2_per_objfile.
6377 (dw2_expand_marked_cus): Update.
6378 (dw2_find_pc_sect_compunit_symtab): Update.
6379 (dw2_debug_names_lookup_symbol): Update.
6380 (dw2_debug_names_expand_symtabs_for_function): Update.
6381 (dw2_debug_names_map_matching_symbols): Update.
6382 (dwarf2_psymtab::expand_psymtab): Update.
6383
9e021579
SM
63842020-05-27 Simon Marchi <simon.marchi@efficios.com>
6385
6386 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6387 <per_objfile>: New member.
6388 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6389 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6390 call to dwarf2_cu.
6391 (cutu_reader::cutu_reader): Update.
6392 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6393
ae090bdb
SM
63942020-05-27 Simon Marchi <simon.marchi@efficios.com>
6395
6396 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6397 struct dwarf2_per_objfile.
6398 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6399 dwarf2_per_bfd.
6400 * dwarf2/read.c (set_die_type): Update.
6401 (get_die_type_at_offset): Update.
6402
af758d11
SM
64032020-05-27 Tom Tromey <tom@tromey.com>
6404 Simon Marchi <simon.marchi@efficios.com>
6405
6406 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6407 method.
6408 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6409 get_symtab, set_symtab>: New methods.
6410 <m_symtabs>: New field.
6411 (struct dwarf2_psymtab): Derive from partial_symtab.
6412 <readin_p, get_compunit_symtab>: Declare methods.
6413 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6414 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6415 New methods.
6416 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6417 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6418 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6419 (dw2_symtab_iter_next, dw2_print_stats)
6420 (dw2_expand_symtabs_with_fullname)
6421 (dw2_expand_symtabs_matching_one)
6422 (dw_expand_symtabs_matching_file_matcher)
6423 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6424 (dw2_debug_names_iterator::next)
6425 (dw2_debug_names_map_matching_symbols)
6426 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6427 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6428 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6429 New methods.
6430 (get_compunit_symtab, process_full_comp_unit)
6431 (process_full_type_unit): Update.
6432 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6433
5989a64e
SM
64342020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6435
6436 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6437 then introduce a new dwarf2_per_objfile type.
6438 <read_line_string>: Move to the new dwarf2_per_objfile type.
6439 <objfile>: Likewise.
6440 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6441 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6442 dwarf2_per_objfile->per_bfd.
6443 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6444 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6445 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6446 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6447 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6448 (dwarf2_per_objfile::locate_sections): Rename to...
6449 (dwarf2_per_bfd::locate_sections): ... this.
6450 (dwarf2_per_objfile::get_cutu): Rename to...
6451 (dwarf2_per_bfd::get_cutu): ... this.
6452 (dwarf2_per_objfile::get_cu): Rename to...
6453 (dwarf2_per_bfd::get_cu): ... this.
6454 (dwarf2_per_objfile::get_tu): Rename to...
6455 (dwarf2_per_bfd::get_tu): ... this.
6456 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6457 (dwarf2_per_bfd::allocate_per_cu): ... this.
6458 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6459 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6460 (get_gdb_index_contents_ftype): Change parameter from
6461 dwarf2_per_objfile to dwarf2_per_bfd.
6462 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6463 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6464
a50264ba
TT
64652020-05-27 Tom Tromey <tom@tromey.com>
6466 Simon Marchi <simon.marchi@efficios.com>
6467
6468 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6469 (allocate_piece_closure): Set "per_objfile" member.
6470 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6471 (locexpr_describe_location, loclist_describe_location): Use new
6472 member.
6473 * dwarf2/read.c (read_call_site_scope)
6474 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6475 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6476 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6477 handle_data_member_location): Set per_objfile member.
6478 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6479 member.
6480 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6481
d3473f0c
TT
64822020-05-27 Tom Tromey <tom@tromey.com>
6483
6484 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6485 allocate_signatured_type>: Declare new methods.
6486 <m_num_psymtabs>: New member.
6487 (struct dwarf2_per_cu_data) <index>: New member.
6488 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6489 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6490 (create_cu_from_index_list): Use allocate_per_cu.
6491 (create_signatured_type_table_from_index)
6492 (create_signatured_type_table_from_debug_names)
6493 (create_debug_type_hash_table, add_type_unit)
6494 (read_comp_units_from_section): Use allocate_signatured_type.
6495
5717c425
TT
64962020-05-27 Tom Tromey <tom@tromey.com>
6497
6498 * psymtab.c (partial_map_expand_apply)
6499 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6500 (psym_lookup_global_symbol_language)
6501 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6502 (psym_print_stats, psym_expand_symtabs_for_function)
6503 (psym_map_symbol_filenames, psym_map_matching_symbols)
6504 (psym_expand_symtabs_matching)
6505 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6506 (maintenance_check_psymtabs): Update.
6507 * psympriv.h (struct partial_symtab) <readin_p,
6508 get_compunit_symtab>: Add objfile parameter.
6509 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6510 Likewise.
6511 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6512 get_compunit_symtab>: Likewise.
6513 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6514
45940949
TT
65152020-05-27 Tom Tromey <tom@tromey.com>
6516
6517 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6518 member.
6519 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6520 (create_cu_from_index_list)
6521 (create_signatured_type_table_from_index)
6522 (create_signatured_type_table_from_debug_names)
6523 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6524 (dwarf2_create_include_psymtab)
6525 (create_debug_type_hash_table, add_type_unit)
6526 (create_type_unit_group, read_comp_units_from_section)
6527 (dwarf2_compute_name, create_cus_hash_table)
6528 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6529 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6530 obstack.
6531 (dw2_get_real_path): Likewise. Change argument to
6532 dwarf2_per_objfile.
6533
f8c6d152
LM
65342020-05-27 Luis Machado <luis.machado@linaro.org>
6535
6536 PR tdep/26000
6537 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6538 for ldrd (immediate).
6539
e98d2e6d
PW
65402020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6541
6542 * command.h: Add comment giving the name of class_tui.
6543 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6544 create the fake command for the help for class_tui.
6545
53a47a3e
TT
65462020-05-26 Tom Tromey <tromey@adacore.com>
6547
6548 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6549 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6550 (val_atr): New function.
6551 (value_val_atr): Use it.
6552 * ada-valprint.c (print_optional_low_bound): Change low bound
6553 handling for enums.
6554 (val_print_packed_array_elements): Don't call discrete_position.
6555 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6556 discrete_position for enum types.
6557 * language.c (default_print_array_index): Change type.
6558 * language.h (struct language_defn) <la_print_array_index>: Add
6559 index_type parameter, change type of index_value.
6560 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6561 (default_print_array_index): Update.
6562 * valprint.c (maybe_print_array_index): Don't call
6563 value_from_longest. Update.
6564 (value_print_array_elements): Don't call discrete_position.
6565
0bc2354b
TT
65662020-05-26 Tom Tromey <tromey@adacore.com>
6567
6568 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6569 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6570
1218a4bf
CDA
65712020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6572
6573 PR gdb/13519
6574 * avr-tdep.c (avr_integer_to_address): Return data or code
6575 address accordingly to the second 'type' argument of the
6576 function.
6577
92651b1d
MW
65782020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6579
6580 * infcmd.c, inferior.h: (construct_inferior_arguments):
6581 Moved function from here to gdbsupport/common-inferior.{h,cc}
6582
0a4f5f8c
TT
65832020-05-23 Tom Tromey <tom@tromey.com>
6584
6585 Revert commit eca1f90c:
6586 * NEWS: Remove entry for completion styling.
6587 * completer.c (_rl_completion_prefix_display_length): Move
6588 declaration later.
6589 (gdb_fnprint): Revert.
6590 (gdb_display_match_list_1): Likewise.
6591 * cli/cli-style.c (completion_prefix_style)
6592 (completion_difference_style, completion_suffix_style): Remove.
6593 (_initialize_cli_style): Revert.
6594 * cli/cli-style.h (completion_prefix_style)
6595 (completion_difference_style, completion_suffix_style): Don't
6596 declare.
6597
e08bd6c5
PA
65982020-05-24 Pedro Alves <palves@redhat.com>
6599
6600 * symtab.c (completion_list_add_name): Return boolean indication
6601 of whether the symbol matched.
6602 (completion_list_add_symbol): Don't try to remove C++ aliases if
6603 the symbol didn't match in the first place.
6604 * symtab.h (completion_list_add_name): Return bool.
6605
ceacbf6e
SM
66062020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6607
6608 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6609 type::field.
6610
26f16254
JB
66112020-05-23 Joel Brobecker <brobecker@adacore.com>
6612
6613 GDB 9.2 released.
6614
eca1f90c
TT
66152020-05-23 Tom Tromey <tom@tromey.com>
6616
6617 * NEWS: Add entry for completion styling.
6618 * completer.c (_rl_completion_prefix_display_length): Move
6619 declaration earlier.
6620 (gdb_fnprint): Use completion_style.
6621 (gdb_display_match_list_1): Likewise.
6622 * cli/cli-style.c (completion_prefix_style)
6623 (completion_difference_style, completion_suffix_style): New
6624 globals.
6625 (_initialize_cli_style): Register new globals.
6626 * cli/cli-style.h (completion_prefix_style)
6627 (completion_difference_style, completion_suffix_style): Declare.
6628
51e2cfa2
PA
66292020-05-23 Pedro Alves <palves@redhat.com>
6630
6631 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6632 (parse_escape): Use ISDIGIT instead of isdigit.
6633 (puts_debug): Use gdb_isprint instead of isprint.
6634 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6635 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6636 ISSPACE instead of isspace.
6637 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6638 instead of isspace.
6639 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6640 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6641 instead of isxdigit and ISDIGIT instead of isdigit.
6642
80fc5e77
SM
66432020-05-22 Simon Marchi <simon.marchi@efficios.com>
6644
6645 * gdbtypes.h (struct type) <field>: New method.
6646 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6647 or type::field.
6648
3cabb6b0
SM
66492020-05-22 Simon Marchi <simon.marchi@efficios.com>
6650
6651 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6652 (TYPE_FIELDS): Use type::fields. Change all call sites that
6653 modify the propery to use type::set_fields instead.
6654
1f704f76
SM
66552020-05-22 Simon Marchi <simon.marchi@efficios.com>
6656
6657 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6658 type::num_fields instead.
6659
5e33d5f4
SM
66602020-05-22 Simon Marchi <simon.marchi@efficios.com>
6661
6662 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6663 methods.
6664 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6665 that modify the number of fields to use type::set_num_fields
6666 instead.
6667
9392ebb3
TT
66682020-05-22 Tom Tromey <tromey@adacore.com>
6669
6670 * compile/compile-object-load.h (munmap_list_free): Don't
6671 declare.
6672
7c13f4e8
AB
66732020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6674
6675 * annotate.c (annotate_source_line): Update return type, add call
6676 to update current symtab and line.
6677 * annotate.h (annotate_source_line): Update return type, and
6678 extend header comment.
6679 * source.c (info_line_command): Check annotation_level before
6680 calling annotate_source_line.
6681 * stack.c (print_frame_info): If calling annotate_source_line
6682 returns true, then don't print any other source line information.
6683
aa370940
SM
66842020-05-21 Simon Marchi <simon.marchi@efficios.com>
6685
6686 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6687
84d53fa9
SM
66882020-05-21 Simon Marchi <simon.marchi@efficios.com>
6689
6690 * coffread.c (patch_type): Remove NULL check before xfree.
6691 * corefile.c (set_gnutarget): Likewise.
6692 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6693 * exec.c (build_section_table): Likewise.
6694 * remote.c (remote_target::pass_signals): Likewise.
6695 * utils.c (n_spaces): Likewise.
6696 * cli/cli-script.c (document_command): Likewise.
6697 * i386-windows-tdep.c (core_process_module_section): Likewise.
6698 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6699
9d428aae
SM
67002020-05-20 Simon Marchi <simon.marchi@efficios.com>
6701
6702 * symfile.c (reread_symbols): Clear objfile's section_offsets
6703 vector and section indices, re-compute them by calling
6704 sym_offsets.
6705
250106a7
TT
67062020-05-20 Tom Tromey <tromey@adacore.com>
6707
6708 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 6709 (desc_one_bound, desc_index_type): Compute field name.
250106a7 6710
9a0bacfb
TV
67112020-05-20 Tom de Vries <tdevries@suse.de>
6712
6713 PR symtab/25833
6714 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6715
7b958a48
AM
67162020-05-20 Alan Modra <amodra@gmail.com>
6717
6718 PR 25993
6719 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6720 bfd_set_filename.
6721 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6722 passed to bfd_set_filename.
6723 * symfile-mem.c (add_vsyscall_page): Likewise for string
6724 passed to symbol_file_add_from_memory.
6725 (symbol_file_add_from_memory): Make name param a const char* and
6726 don't strdup.
6727
c7e97679
AM
67282020-05-20 Alan Modra <amodra@gmail.com>
6729
6730 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6731 rather than accessing bfd->filename directly.
6732 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6733 and use bfd_section_name.
6734 * dwarf2/frame.c (decode_frame_entry): Likewise.
6735 * exec.c (exec_set_section_address): Likewise.
6736 * solib-aix.c (solib_aix_bfd_open): Likewise.
6737 * stap-probe.c (get_stap_base_address): Likewise.
6738 * symfile.c (reread_symbols): Likewise.
6739
563c591b
TT
67402020-05-19 Tom Tromey <tromey@adacore.com>
6741
6742 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6743
f408d82c
SM
67442020-05-19 Simon Marchi <simon.marchi@efficios.com>
6745
6746 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6747
98c59b52
PA
67482020-05-19 Pedro Alves <palves@redhat.com>
6749
6750 * NEWS (set exec-file-mismatch): Adjust entry.
6751 * exec.c: Include "build-id.h".
6752 (validate_exec_file): Try to match build IDs instead of filenames.
6753 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6754 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6755 and pass down 'warn_if_slow'.
6756 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6757 gdb_bfd_open_closure to pass it down.
6758 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6759
4111f652
PA
67602020-05-19 Pedro Alves <palves@redhat.com>
6761
6762 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6763 * target.c (target_fileio_open_1): Rename to target_fileio_open
6764 and make extern. Use bool.
6765 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6766 (target_fileio_read_alloc_1): Adjust.
6767 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6768 (target_fileio_open_warn_if_slow): Delete declaration.
6769
ad80db5b
PA
67702020-05-19 Pedro Alves <palves@redhat.com>
6771
6772 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6773 Adjust all callers.
6774
1d6ce4d3
YS
67752020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6776
6777 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6778 whether disp is negative.
6779
9005fbbb
SM
67802020-05-19 Simon Marchi <simon.marchi@efficios.com>
6781
6782 * symfile.h (struct symfile_segment_data)
6783 <~symfile_segment_data>: Remove.
6784 <segment_info>: Change to std::vector.
6785 * symfile.c (default_symfile_segments): Update.
6786 * elfread.c (elf_symfile_segments): Update.
6787
68b888ff
SM
67882020-05-19 Simon Marchi <simon.marchi@efficios.com>
6789
6790 * symfile.h (struct symfile_segment_data) <struct segment>: New.
6791 <segments>: New.
6792 <segment_bases, segment_sizes>: Remove.
6793 * symfile.c (default_symfile_segments): Update.
6794 * elfread.c (elf_symfile_segments): Update.
6795 * remote.c (remote_target::get_offsets): Update.
6796 * solib-target.c (solib_target_relocate_section_addresses):
6797 Update.
6798
62982abd
SM
67992020-05-19 Simon Marchi <simon.marchi@efficios.com>
6800
6801 * symfile.h (struct symfile_segment_data): Initialize fields.
6802 <~symfile_segment_data>: Add.
6803 (symfile_segment_data_up): New.
6804 (struct sym_fns) <sym_segments>: Return a
6805 symfile_segment_data_up.
6806 (default_symfile_segments): Return a symfile_segment_data_up.
6807 (free_symfile_segment_data): Remove.
6808 (get_symfile_segment_data): Return a symfile_segment_data_up.
6809 * symfile.c (default_symfile_segments): Likewise.
6810 (get_symfile_segment_data): Likewise.
6811 (free_symfile_segment_data): Remove.
6812 (symfile_find_segment_sections): Update.
6813 * elfread.c (elf_symfile_segments): Return a
6814 symfile_segment_data_up.
6815 * remote.c (remote_target::get_offsets): Update.
6816 * solib-target.c (solib_target_relocate_section_addresses):
6817 Update.
6818 * symfile-debug.c (debug_sym_segments): Return a
6819 symfile_segment_data_up.
6820
7f204339
RO
68212020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6822
e52a0f1b
RO
6823 PR build/25981
6824 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
6825 Hardcode register numbers.
6826
7f204339
RO
6827 PR build/25981
6828 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
6829 procfs_find_LDT_entry): Remove.
6830 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
6831 procfs_find_LDT_entry): Remove.
6832 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
6833 Remove.
6834
7f32a4d5
PA
68352020-05-17 Pedro Alves <palves@redhat.com>
6836 Andrew Burgess <andrew.burgess@embecosm.com>
6837 Keno Fischer <keno@juliacomputing.com>
6838
6839 PR gdb/25741
6840 * breakpoint.c (build_target_condition_list): Update comments.
6841 (build_target_command_list): Update comments and skip matching
6842 locations.
6843 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
6844 a separate function. Simplify "set breakpoint auto-hw off"
6845 handling.
6846 (insert_breakpoints): Update comment.
6847 (tracepoint_locations_match): New parameter. For breakpoints,
6848 compare location types too, if the caller wants to.
6849 (handle_automatic_hardware_breakpoints): New functions.
6850 (bp_location_is_less_than): Also sort by location type and
6851 hardware breakpoint length.
6852 (update_global_location_list): Handle "set breakpoint auto-hw on"
6853 here.
6854 (update_breakpoint_locations): Ask breakpoint_locations_match to
6855 ignore location types.
6856
7d93a1e0
SM
68572020-05-16 Simon Marchi <simon.marchi@efficios.com>
6858
6859 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6860 type::name instead.
6861
d0e39ea2
SM
68622020-05-16 Simon Marchi <simon.marchi@efficios.com>
6863
6864 * gdbtypes.h (struct type) <name, set_name>: New methods.
6865 (TYPE_CODE): Use type::name. Change all call sites used to set
6866 the name to use type::set_name instead.
6867
2dab0c7b
TT
68682020-05-16 Tom Tromey <tom@tromey.com>
6869
6870 * top.c (quit_force): Update.
6871 * infrun.c (handle_no_resumed): Update.
6872 * top.h (all_uis): New function.
6873 (ALL_UIS): Remove.
6874
59f7bd8d
SM
68752020-05-16 Simon Marchi <simon.marchi@efficios.com>
6876
6877 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6878
9bf058f0
PA
68792020-05-16 Pedro Alves <palves@redhat.com>
6880
6881 * ia64-linux-nat.c
6882 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6883 Declare method.
6884 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6885
8f86ae1a
SM
68862020-05-15 Simon Marchi <simon.marchi@efficios.com>
6887
6888 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6889 (sparc64_adi_info): Likewise.
6890
d6bc0792
TT
68912020-05-15 Tom Tromey <tom@tromey.com>
6892
6893 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6894 block_objfile.
6895 (lookup_objfile_from_block): Remove.
6896 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6897 (lookup_global_symbol): Use block_objfile.
6898 * symtab.h (lookup_objfile_from_block): Don't declare.
6899 * printcmd.c (clear_dangling_display_expressions): Use
6900 block_objfile.
6901 * parse.c (operator_check_standard): Use block_objfile.
6902
8c14c3a3
TT
69032020-05-15 Tom Tromey <tom@tromey.com>
6904
6905 * language.c (language_alloc_type_symbol): Set
6906 SYMBOL_SECTION.
6907 * symtab.c (initialize_objfile_symbol): Remove.
6908 (allocate_symbol): Remove.
6909 (allocate_template_symbol): Remove.
6910 * dwarf2/read.c (fixup_go_packaging): Use "new".
6911 (new_symbol): Use "new".
6912 (read_variable): Don't call initialize_objfile_symbol. Use
6913 "new".
6914 (read_func_scope): Use "new".
6915 * xcoffread.c (process_xcoff_symbol): Don't call
6916 initialize_objfile_symbol.
6917 (SYMBOL_DUP): Remove.
6918 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6919 "new".
6920 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6921 (allocate_template_symbol): Don't declare.
6922 (struct symbol): Add copy constructor. Change defaults.
6923 * jit.c (finalize_symtab): Use "new".
6924 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6925 Use "new".
6926 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6927 (common_block_end): Use "new".
6928 * mdebugread.c (parse_symbol): Use "new".
6929 (new_symbol): Likewise.
6930
5b4a1a8d
PW
69312020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6932
6933 * NEWS: Mention changes to help and apropos.
6934
57b4f16e
PW
69352020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6936
6937 * command.h (enum command_class): Improve comments, document
6938 that class_alias is for user-defined aliases, give the class
6939 name for each class, remove unused class_xdb.
6940 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6941 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6942 by a precise class.
6943 * infcmd.c (_initialize_infcmd): Likewise.
6944 * reverse.c (_initialize_reverse): Likewise.
6945 * stack.c (_initialize_stack): Likewise.
6946 * symfile.c (_initialize_symfile): Likewise.
6947 * tracepoint.c (_initialize_tracepoint): Likewise.
6948
7c05caf7
PW
69492020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6950
6951 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6952 when their aliased command is traversed.
6953 (help_cmd): Add fput_command_names_styled call to
6954 output command name and aliases when command has an alias.
6955
3b3aaacb
PW
69562020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6957
6958 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6959 * cli/cli-decode.c (help_cmd_list): Declare as static,
6960 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6961 a command together with the command.
6962 (fput_command_name_styled, fput_command_names_styled): New functions.
6963 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6964 fput_command_name_styled.
6965 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6966 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6967
7aa1b46f
PW
69682020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6969
6970 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6971 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6972 * command.h (cmd_show_list): Likewise.
6973 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6974 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6975
89bcba74
PW
69762020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6977
6978 * unittests/command-def-selftests.c (traverse_command_structure):
6979 Verify all commands of a list have the same prefix command and
6980 that only the top cmdlist commands have a null prefix.
6981
3f4d92eb
PW
69822020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6983
6984 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6985 as prefix, not one of its aliases.
6986 (set_cmd_prefix): Remove.
6987 (do_add_cmd): Centralize the setting of the prefix of a command, when
6988 command is defined after its full chain of prefix commands.
6989 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6990 (add_setshow_cmd_full): Likewise.
6991 (update_prefix_field_of_prefixed_commands): New function.
6992 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6993 update_prefix_field_of_prefixed_commands.
6994 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6995 addresses of remote_set_cmdlist and remote_show_cmdlist given
6996 as argument, not the address of an argument.
6997 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6998 * gdb/remote.c (_initialize_remote): Likewise.
6999
0605465f
PW
70002020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7001
7002 * cli/cli-cmds.c (alias_command): Check for an existing alias
7003 using lookup_cmd_composition, as valid_command_p is too strict
7004 and forbids aliases that are the prefix of an existing alias
7005 or command.
7006 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
7007 command is properly recognised as a valid command.
7008
58e6ac70
PW
70092020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7010
7011 * unittests/help-doc-selftests.c: Rename to
7012 unittests/command-def-selftests.c
7013 * unittests/command-def-selftests.c (help_doc_tests): Update some
7014 comments.
7015 (command_structure_tests, traverse_command_structure): New namespace
7016 and function.
7017 (command_structure_invariants_tests): New function.
7018 (_initialize_command_def_selftests) Renamed from
7019 _initialize_help_doc_selftests, register command_structure_invariants
7020 selftest.
7021
a7b9ceb8
PW
70222020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7023
7024 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
7025 an alias of 'show'.
7026
b2188a06
JB
70272020-05-15 Joel Brobecker <brobecker@adacore.com>
7028
7029 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
7030 ada_is_fixed_point_type. Update all callers.
7031 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
7032 all callers.
7033 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
7034 Update all callers.
7035 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
7036 print_fixed_point_type. Update all callers.
7037 * ada-valprint.c (ada_value_print_num): Replace call to
7038 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
7039
a51951c2
KB
70402020-05-14 Kevin Buettner <kevinb@redhat.com>
7041
7042 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
7043 processors.
7044 (cpu_supports_bts): Add CV_AMD case.
7045
29d6859f
LM
70462020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
7047 Simon Marchi <simon.marchi@efficios.com>
7048
7049 * infrun.c (stop_all_threads): Collect multiple wait events at
7050 each pass.
7051
78134374
SM
70522020-05-14 Simon Marchi <simon.marchi@efficios.com>
7053
7054 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
7055 type::code instead.
7056
67607e24
SM
70572020-05-14 Simon Marchi <simon.marchi@efficios.com>
7058
7059 * gdbtypes.h (struct type) <code, set_code>: New methods.
7060 (TYPE_CODE): Use type::code. Change all call sites used to set
7061 the code to use type::set_code instead.
7062
a05575d3
TBA
70632020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7064 Tom de Vries <tdevries@suse.de>
7065 Pedro Alves <palves@redhat.com>
7066
7067 PR threads/25478
7068 * infrun.c (stop_all_threads): Do NOT ignore
7069 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
7070 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
7071 received.
7072 (handle_no_resumed): Remove code handling a live inferior with no
7073 threads.
7074 * remote.c (has_single_non_exited_thread): New.
7075 (remote_target::update_thread_list): Do not delete a thread if is
7076 the last thread of the process.
7077 * thread.c (thread_select): Call delete_exited_threads instead of
7078 prune_threads.
7079
6ad82919
TBA
70802020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7081
7082 * infrun.c (stop_all_threads): Enable/disable thread events of all
7083 targets. Move a debug message denoting the end of the function
7084 into the SCOPED_EXIT block.
7085
d890404b
TBA
70862020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7087
7088 * process-stratum-target.h: Include <set>.
7089 (all_non_exited_process_targets, switch_to_target_no_thread): New
7090 function declarations.
7091 * process-stratum-target.c (all_non_exited_process_targets)
7092 (switch_to_target_no_thread): New function implementations.
7093
293b3ebc
TBA
70942020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7095
7096 * infrun.c (handle_inferior_event): Extract out a piece of code
7097 into...
7098 (mark_non_executing_threads): ...this new function.
7099
7ca9b62a
TBA
71002020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7101
7102 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
7103 use.
7104
fc75c28b
TBA
71052020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7106
7107 * regcache.c (regcache_read_pc_protected): New function
7108 implementation that returns 0 if the PC cannot read via
7109 'regcache_read_pc'.
7110 * infrun.c (proceed): Call 'regcache_read_pc_protected'
7111 instead of 'regcache_read_pc'.
7112 (keep_going_pass_signal): Ditto.
7113
a89febbd
TT
71142020-05-13 Tom Tromey <tromey@adacore.com>
7115
7116 * ada-lang.c (align_value): Remove.
7117 (ada_template_to_fixed_record_type_1): Use align_up.
7118
f7e23710
TBA
71192020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7120
7121 * async-event.c: Update the copyright year.
7122 * async-event.h: Update the copyright year.
7123
02ff80c2
SM
71242020-05-12 Simon Marchi <simon.marchi@efficios.com>
7125
7126 * objfiles.h (is_addr_in_objfile,
7127 shared_objfile_contains_address_p): Return bool.
7128 * objfile.c (is_addr_in_objfile,
7129 shared_objfile_contains_address_p): Return bool.
7130
4fd6c7e8
TT
71312020-05-11 Tom Tromey <tromey@adacore.com>
7132
7133 * cli/cli-cmds.c (info_command): Restore.
7134 (_initialize_cli_cmds): Use add_prefix_command for "info".
7135 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7136
5eb68a39
TT
71372020-05-11 Tom Tromey <tromey@adacore.com>
7138
7139 * ada-lang.c (ada_value_primitive_field): Now public.
7140 * ada-lang.h (ada_value_primitive_field): Declare.
7141 * ada-valprint.c (print_field_values): Use
7142 ada_value_primitive_field for wrapper fields.
7143
7666722f
TV
71442020-05-11 Tom de Vries <tdevries@suse.de>
7145
7146 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7147 MODULE_DOMAIN.
7148
3ee6bb11
TV
71492020-05-11 Tom de Vries <tdevries@suse.de>
7150
7151 PR symtab/25941
7152 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7153 with length 0, if not gdb-produced.
7154 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7155
43434996
TV
71562020-05-09 Tom de Vries <tdevries@suse.de>
7157
7158 PR gdb/25955
7159 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7160 calculation.
7161
2f78cffc
TT
71622020-05-09 Tom Tromey <tom@tromey.com>
7163
7164 * top.c (server_command): Now bool.
7165 * top.h (server_command): Now bool.
7166
4f7bc5ed
TT
71672020-05-08 Tom Tromey <tromey@adacore.com>
7168
7169 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7170 already being processed.
7171
8be4b118
TT
71722020-05-08 Tom Tromey <tom@tromey.com>
7173
7174 * printcmd.c (struct display) <next>: Remove.
7175 <display>: New constructor.
7176 <exp_string>: Now a std::string.
7177 <enabled_p>: Now a bool.
7178 (display_number): Move definition earlier.
7179 (displays): Rename from display_chain. Now a std::vector.
7180 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7181 (display_command): Update.
7182 (do_one_display, disable_display)
7183 (enable_disable_display_command, do_enable_disable_display):
7184 Update.
7185 (free_display): Remove.
7186 (clear_displays): Rewrite.
7187 (delete_display): Update.
7188 (map_display_numbers): Use function_view. Remove "data"
7189 parameter. Update.
7190 (do_delete_display): Remove.
7191 (undisplay_command): Update.
7192 (do_one_display, do_displays, disable_display)
7193 (info_display_command): Update.
7194 (do_enable_disable_display): Remove.
7195 (enable_disable_display_command)
7196 (clear_dangling_display_expressions): Update.
7197
94c93c35
TT
71982020-05-08 Tom Tromey <tom@tromey.com>
7199
7200 * symtab.c (set_symbol_cache_size)
7201 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7202 (maintenance_print_symbol_cache_statistics): Update.
7203 * symmisc.c (print_symbol_bcache_statistics)
7204 (print_objfile_statistics, maintenance_print_objfiles)
7205 (maintenance_info_symtabs, maintenance_check_symtabs)
7206 (maintenance_expand_symtabs, maintenance_info_line_tables):
7207 Update.
7208 * symfile-debug.c (set_debug_symfile): Update.
7209 * source.c (forget_cached_source_info): Update.
7210 * python/python.c (gdbpy_progspaces): Update.
7211 * psymtab.c (maintenance_info_psymtabs): Update.
7212 * probe.c (parse_probes): Update.
7213 * linespec.c (iterate_over_all_matching_symtabs)
7214 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7215 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7216 * exec.c (exec_target::close): Update.
7217 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7218 * breakpoint.c (print_one_breakpoint_location)
7219 (create_longjmp_master_breakpoint)
7220 (create_std_terminate_master_breakpoint): Update.
7221 * progspace.c (program_spaces): Now a std::vector.
7222 (maybe_new_address_space): Update.
7223 (add_program_space): Remove.
7224 (program_space::program_space): Update.
7225 (remove_program_space): Update.
7226 (number_of_program_spaces): Remove.
7227 (print_program_space, update_address_spaces): Update.
7228 * progspace.h (program_spaces): Change type.
7229 (ALL_PSPACES): Remove.
7230 (number_of_program_spaces): Don't declare.
7231 (struct program_space) <next>: Remove.
7232
a1fd1ac9
TT
72332020-05-08 Tom Tromey <tom@tromey.com>
7234
7235 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7236 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7237 (enable_break): Update.
7238 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7239 (frv_fdpic_find_canonical_descriptor): Update.
7240 (frv_fetch_objfile_link_map): Update.
7241 * progspace.c (program_space::free_all_objfiles): Update.
7242 (program_space::solibs): New method.
7243 * progspace.h (struct program_space) <solibs>: New method.
7244 * solist.h (master_so_list): Don't declare.
7245 (ALL_SO_LIBS): Remove.
7246 * solib.h (so_list_head): Remove.
7247 (update_solib_list): Update comment.
7248 * solib.c (master_so_list): Remove.
7249 (solib_used, update_solib_list, solib_add)
7250 (info_sharedlibrary_command, clear_solib)
7251 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7252
38eae084
TT
72532020-05-08 Tom Tromey <tom@tromey.com>
7254
7255 * extension.c (extension_languages): Now a std::array.
7256 (ALL_EXTENSION_LANGUAGES): Remove.
7257 (get_ext_lang_defn, get_ext_lang_of_file)
7258 (eval_ext_lang_from_control_command): Update.
7259 (finish_ext_lang_initialization)
7260 (auto_load_ext_lang_scripts_for_objfile)
7261 (ext_lang_type_printers::ext_lang_type_printers)
7262 (apply_ext_lang_type_printers)
7263 (ext_lang_type_printers::~ext_lang_type_printers)
7264 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7265 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7266 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7267 (get_matching_xmethod_workers, ext_lang_colorize)
7268 (ext_lang_before_prompt): Update.
7269 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7270
596dc4ad
TT
72712020-05-08 Tom Tromey <tom@tromey.com>
7272
7273 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7274 overload.
7275 <swap_string, m_string>: Remove.
7276 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7277 Update.
7278 * stabsread.c (define_symbol, read_type): Update.
7279 * linespec.c (find_linespec_symbols): Update.
7280 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7281 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7282 * dbxread.c (read_dbx_symtab): Update.
7283 * cp-support.h (cp_canonicalize_string_full)
7284 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7285 Return unique_xmalloc_ptr.
7286 * cp-support.c (inspect_type): Update.
7287 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7288 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7289 Likewise.
7290 * c-typeprint.c (print_name_maybe_canonical): Update.
7291 * break-catch-throw.c (check_status_exception_catchpoint):
7292 Update.
7293
bf4cb9be
TV
72942020-05-08 Tom de Vries <tdevries@suse.de>
7295
7296 * infrun.c (follow_fork): Copy current_line and current_symtab to
7297 child thread.
7298
a1b68f28
SM
72992020-05-07 Simon Marchi <simon.marchi@efficios.com>
7300
7301 * async-event.c (struct async_signal_handler, struct
7302 async_event_handler): Reformat, remove typedef.
7303
98d48915
SM
73042020-05-07 Simon Marchi <simon.marchi@efficios.com>
7305
7306 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7307 access thistype->main_type->dyn_prop_list directly.
7308
7aa91313
SM
73092020-05-07 Simon Marchi <simon.marchi@efficios.com>
7310
7311 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7312 (remove_dyn_prop): Remove. Update all users to use
7313 type::remove_dyn_prop.
7314 * gdbtypes.c (remove_dyn_prop): Rename to...
7315 (type::remove_dyn_prop): ... this.
7316
5c54719c
SM
73172020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7318
7319 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7320 (add_dyn_prop): Remove. Update all users to use
7321 type::add_dyn_prop.
7322 * gdbtypes.c (add_dyn_prop): Rename to...
7323 (type::add_dyn_prop): ... this.
7324
24e99c6c
SM
73252020-05-07 Simon Marchi <simon.marchi@efficios.com>
7326
7327 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7328 (get_dyn_prop): Remove. Update all users to use
7329 type::dyn_prop.
7330 * gdbtypes.c (get_dyn_prop): Rename to...
7331 (type::dyn_prop): ... this.
7332
0d4bf016
SM
73332020-05-06 Simon Marchi <simon.marchi@efficios.com>
7334
7335 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7336
ac4a4f1c
SM
73372020-05-06 Simon Marchi <simon.marchi@efficios.com>
7338
7339 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7340 instruction, skip it if it's there.
7341
a3bbacc1
SM
73422020-05-05 Simon Marchi <simon.marchi@efficios.com>
7343
7344 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7345
c3236f84
SM
73462020-05-04 Simon Marchi <simon.marchi@efficios.com>
7347
7348 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7349 * gdbtypes.c (recursive_dump_type): Remove use of
7350 TYPE_INCOMPLETE.
7351
3b6acaee
TT
73522020-05-03 Tom Tromey <tom@tromey.com>
7353
7354 * breakpoint.c (catch_command, tcatch_command): Remove.
7355 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7356 add_show_prefix_cmd.
7357 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7358 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7359 Remove.
7360 (add_internal_problem_command): Use add_basic_prefix_cmd,
7361 add_show_prefix_cmd.
7362 * mips-tdep.c (set_mipsfpu_command): Remove.
7363 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7364 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7365 (_initialize_index_cache): Use add_basic_prefix_cmd.
7366 * memattr.c (dummy_cmd): Remove.
7367 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7368 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7369 (_initialize_tui_win): Use add_basic_prefix_cmd,
7370 add_show_prefix_cmd.
7371 * cli/cli-logging.c (set_logging_command): Remove.
7372 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7373 add_show_prefix_cmd.
7374 (show_logging_command): Remove.
7375 * target.c (target_command): Remove.
7376 (add_target): Use add_basic_prefix_cmd.
7377
a51119cd
HD
73782020-05-02 Hannes Domani <ssbssa@yahoo.de>
7379
7380 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7381
652fc23a 73822020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7383
652fc23a
PW
7384 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7385 info_command.
7386
117539e6
KR
73872020-04-30 Kamil Rytarowski <n54@gmx.com>
7388
7389 * nbsd-nat.c (nbsd_enable_proc_events)
7390 (nbsd_nat_target::post_startup_inferior): Add.
7391 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7392 (nbsd_nat_target::update_thread_list): Rewrite.
7393 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7394 "PTRACE_LWP_CREATE".
7395 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7396
102e38eb 73972020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7398
102e38eb
PW
7399 * stack.c (_initialize_stack): Remove duplicated creation
7400 of "frame" command and "f" alias.
7401
ee9d1e5f
HD
74022020-04-30 Hannes Domani <ssbssa@yahoo.de>
7403
7404 PR gdb/18706
7405 * gdbtypes.c (check_typedef): Calculate size of array of
7406 stubbed type.
7407
627c7fb8
HD
74082020-04-30 Hannes Domani <ssbssa@yahoo.de>
7409
7410 PR gdb/15559
7411 * i386-tdep.c (i386_push_dummy_call): Call
7412 i386_thiscall_push_dummy_call.
7413 (i386_thiscall_push_dummy_call): New function.
7414 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7415 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7416 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7417
ffc2844e
SM
74182020-04-29 Simon Marchi <simon.marchi@efficios.com>
7419
7420 * gdbarch.sh (do_read): Add shellcheck disable directive for
7421 warning SC2162.
7422
1207375d
SM
74232020-04-29 Simon Marchi <simon.marchi@efficios.com>
7424
7425 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7426 "referenced but not assigned" warning.
7427
9fdb2916
SM
74282020-04-29 Simon Marchi <simon.marchi@efficios.com>
7429
7430 * gdbarch.sh: Remove code that sets fallbackdefault.
7431
759cea5e
SM
74322020-04-29 Simon Marchi <simon.marchi@efficios.com>
7433
7434 * gdbarch.sh: Use shell operators && and || instead of
7435 -a and -o.
7436
cb02ab24
SM
74372020-04-29 Simon Marchi <simon.marchi@efficios.com>
7438
7439 * gdbarch.sh: Use $(...) instead of `...`.
7440
a6fc5ffc
SM
74412020-04-29 Simon Marchi <simon.marchi@efficios.com>
7442
7443 * gdbarch.sh: Use double quotes around variables.
7444
8d113d13
SM
74452020-04-29 Simon Marchi <simon.marchi@efficios.com>
7446
7447 * gdbarch.sh: Use %s with printf, instead of variables in the
7448 format string.
7449
ed6acedd
TT
74502020-04-29 Tom Tromey <tromey@adacore.com>
7451
7452 PR ada/25875:
7453 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7454 type fields here.
7455 (read_enumeration_type): Call
7456 update_enumeration_type_from_children later. Update comments.
7457 (process_enumeration_scope): Don't create type fields.
7458
b68b1b58
KR
74592020-04-29 Kamil Rytarowski <n54@gmx.com>
7460
7461 * nbsd-tdep.c: Include "xml-syscall.h".
7462 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7463
f94b2e03
KR
74642020-04-29 Kamil Rytarowski <n54@gmx.com>
7465
7466 * nbsd-nat.c: Include "sys/wait.h".
7467 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7468 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7469 (nbsd_nat_target::remove_exec_catchpoint)
7470 (nbsd_nat_target::set_syscall_catchpoint): Add.
7471 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7472 (nbsd_nat_target::insert_exec_catchpoint)
7473 (nbsd_nat_target::remove_exec_catchpoint)
7474 (nbsd_nat_target::set_syscall_catchpoint): Add.
7475 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7476 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7477 `nbsd_get_syscall_number'.
7478
fc49bc72
TT
74792020-04-29 Tom Tromey <tom@tromey.com>
7480
7481 * stack.c (print_block_frame_labels): Remove.
7482
d642b692
HD
74832020-04-29 Hannes Domani <ssbssa@yahoo.de>
7484
7485 PR gdb/17320
7486 * ada-valprint.c (val_print_packed_array_elements): Move array
7487 end bracket to new line.
7488 (ada_val_print_string): Remove extra spaces before first array
7489 element.
7490 * c-valprint.c (c_value_print_array): Likewise.
7491 * m2-valprint.c (m2_print_array_contents): Likewise.
7492 (m2_value_print_inner): Likewise.
7493 * p-valprint.c (pascal_value_print_inner): Likewise.
7494 * valprint.c (generic_val_print_array): Likewise.
7495 (value_print_array_elements): Move first array element and array
7496 end bracket to new line.
7497
ea90f227
TV
74982020-04-29 Tom de Vries <tdevries@suse.de>
7499
7500 PR symtab/25889
7501 * linespec.c (find_method): Fix ix calculation.
7502
4498ef4f
KR
75032020-04-28 Kamil Rytarowski <n54@gmx.com>
7504
7505 * syscalls/update-netbsd.sh: New file.
7506 * syscalls/netbsd.xml: Regenerate.
7507 * data-directory/Makefile.in: Register `netbsd.xml' in
7508 `SYSCALLS_FILES'.
7509
a55e30b5
SM
75102020-04-28 Simon Marchi <simon.marchi@efficios.com>
7511
7512 * syscalls/update-freebsd.sh: Add double quotes.
7513
2b2fbab8
TT
75142020-04-28 Tom Tromey <tom@tromey.com>
7515
7516 * NEWS: Update.
7517 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7518 (cmdpy_init): Allow class_tui.
7519
a65189c9
TV
75202020-04-28 Mark Williams <mark@myosotissp.com>
7521
7522 PR gdb/24480
7523 * dwarf2read.c: Add missing assingments to list_in_scope when
7524 start_symtab was already called.
7525
1b95cdb7
SM
75262020-04-28 Simon Marchi <simon.marchi@efficios.com>
7527
7528 PR gdb/25881
7529 * dwarf2/read.c (offset_map_type): Use
7530 gdb:hash_enum<sect_offset> as hash function.
7531
15cd93d0
TV
75322020-04-28 Tom de Vries <tdevries@suse.de>
7533
7534 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7535 with DW_AT_signature.
7536
1eb39914
SM
75372020-04-27 Simon Marchi <simon.marchi@efficios.com>
7538
7539 * configure.ac: Remove check for fs_base/gs_base in
7540 user_regs_struct.
7541 * configure: Re-generate.
7542 * config.in: Re-generate.
7543 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7544 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7545 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7546
991a3e2e
LM
75472020-04-27 Luis Machado <luis.machado@linaro.org>
7548
7549 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7550 problematic inline frame unwinding situation.
7551 * frame.c (frame_id_computed_p): New function.
7552 * frame.h (frame_id_computed_p): New prototype.
7553
361ba0e8
TT
75542020-04-26 Tom Tromey <tom@tromey.com>
7555
7556 * command.h (enum command_class) <class_pseudo>: Remove.
7557
bc3609fd
PW
75582020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7559
7560 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7561 and whitespace.
7562
b9771db7
KR
75632020-04-25 Kamil Rytarowski <n54@gmx.com>
7564
ec16513e
SM
7565 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7566 `PT_GET_PROCESS_STATE' block.
b9771db7 7567
7151c1af
TT
75682020-04-24 Tom Tromey <tom@tromey.com>
7569
7570 * symtab.h (symbol_get_demangled_name): Don't declare.
7571 * symtab.c (symbol_get_demangled_name): Remove.
7572 (general_symbol_info::natural_name)
7573 (general_symbol_info::demangled_name): Update.
7574
906bb4c5
TT
75752020-04-24 Tom Tromey <tom@tromey.com>
7576
7577 PR rust/25025:
7578 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7579
bcfe6157
TT
75802020-04-24 Tom Tromey <tom@tromey.com>
7581
7582 PR symtab/12707:
7583 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7584 exists.
7585 (new_symbol): Likewise.
7586 * compile/compile-object-load.c (get_out_value_type): Use
7587 symbol_matches_search_name.
7588
f049a313
TT
75892020-04-24 Tom Tromey <tom@tromey.com>
7590
7591 * dwarf2/read.c (add_partial_symbol): Do not call
7592 compute_and_set_names.
7593
76e288d1
TT
75942020-04-24 Tom Tromey <tom@tromey.com>
7595
7596 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7597 overload.
7598
2467f4f6
TT
75992020-04-24 Tom Tromey <tom@tromey.com>
7600
7601 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7602 (add_psymbol_to_list): New overload. Make old overload call new
7603 one.
7604 * psympriv.h (add_psymbol_to_list): New overload.
7605
e61108c9
TT
76062020-04-24 Tom Tromey <tom@tromey.com>
7607
7608 * dwarf2/read.c (partial_die_info::read) <case
7609 DW_AT_linkage_name>: Use value_as_string.
7610 (dwarf2_string_attr): Use value_as_string.
7611 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7612 method.
7613 * dwarf2/attribute.c (attribute::value_as_string): New method.
7614
8c87a452
TT
76152020-04-24 Tom Tromey <tom@tromey.com>
7616
7617 * symtab.c (general_symbol_info::natural_name)
7618 (general_symbol_info::demangled_name): Check for language_rust.
7619
787de330
TT
76202020-04-24 Tom Tromey <tom@tromey.com>
7621
7622 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7623 (dwarf2_physname): ... from here.
7624 (partial_die_info::read): Add Rust "{" hack.
7625
ff985671
TT
76262020-04-24 Tom Tromey <tom@tromey.com>
7627
7628 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7629 method.
7630 (symbol_set_demangled_name): Don't declare.
7631 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7632 symbol_set_demangled_name.
7633 (general_symbol_info::set_language)
7634 (general_symbol_info::compute_and_set_names): Update.
7635 * minsyms.c (minimal_symbol_reader::install): Update.
7636 * dwarf2/read.c (new_symbol): Update.
7637
1acda803
TT
76382020-04-24 Tom Tromey <tromey@adacore.com>
7639
7640 PR python/23662:
7641 * python/py-type.c (convert_field): Handle
7642 FIELD_LOC_KIND_DWARF_BLOCK.
7643 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7644 (typy_get_dynamic): Nw function.
7645 (type_object_getset): Add "dynamic".
7646 * NEWS: Add entry.
7647
d656f129
TT
76482020-04-24 Tom Tromey <tromey@adacore.com>
7649
7650 * ada-typeprint.c (print_choices, print_variant_part)
7651 (print_record_field_types_dynamic): New functions.
7652 (print_record_field_types): Use print_record_field_types_dynamic.
7653
7d79de9a
TT
76542020-04-24 Tom Tromey <tromey@adacore.com>
7655
7656 * dwarf2/read.c (handle_data_member_location): New overload.
7657 (dwarf2_add_field): Use it.
7658 (decode_locdesc): Add "computed" parameter. Update comment.
7659 * gdbtypes.c (is_dynamic_type_internal): Also look for
7660 FIELD_LOC_KIND_DWARF_BLOCK.
7661 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7662 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7663 virtual base classes.
7664 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7665 FIELD_LOC_KIND_DWARF_BLOCK.
7666
f8e89861
TT
76672020-04-24 Tom Tromey <tromey@adacore.com>
7668
7669 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7670 * gdbtypes.c (is_dynamic_type_internal): Check
7671 TYPE_HAS_DYNAMIC_LENGTH.
7672 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7673 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7674 New macros.
7675 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7676 constant.
7677
9c6a1327
TT
76782020-04-24 Tom Tromey <tromey@adacore.com>
7679
7680 * dwarf2/read.c (struct variant_field): Rewrite.
7681 (struct variant_part_builder): New.
7682 (struct nextfield): Remove "variant" field. Add "offset".
7683 (struct field_info): Add "current_variant_part" and
7684 "variant_parts".
7685 (alloc_discriminant_info): Remove.
7686 (alloc_rust_variant): New function.
7687 (quirk_rust_enum): Update.
7688 (dwarf2_add_field): Set "offset" member. Don't handle
7689 DW_TAG_variant_part.
7690 (offset_map_type): New typedef.
7691 (convert_variant_range, create_one_variant)
7692 (create_one_variant_part, create_variant_parts)
7693 (add_variant_property): New functions.
7694 (dwarf2_attach_fields_to_type): Call add_variant_property.
7695 (read_structure_type): Don't handle DW_TAG_variant_part.
7696 (handle_variant_part, handle_variant): New functions.
7697 (handle_struct_member_die): Use them.
7698 (process_structure_scope): Don't handle variant parts.
7699 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7700 (struct discriminant_info): Remove.
7701 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7702 (struct main_type) <flag_discriminated_union>: Remove.
7703 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7704 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7705 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7706 Update.
7707 * valops.c (value_union_variant): Remove.
7708 * value.h (value_union_variant): Don't declare.
7709
b249d2c2
TT
77102020-04-24 Tom Tromey <tromey@adacore.com>
7711
7712 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7713 (ada_value_primitive_packed_val): Update.
7714 * ada-valprint.c (ada_value_print_1): Update.
7715 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7716 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7717 just an address. Use evaluate_for_locexpr_baton.
7718 (dwarf2_evaluate_property): Update.
7719 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7720 array_view.
7721 * findvar.c (default_read_var_value): Update.
7722 * gdbtypes.c (compute_variant_fields_inner)
7723 (resolve_dynamic_type_internal): Update.
7724 (resolve_dynamic_type): Change type of valaddr parameter.
7725 * gdbtypes.h (resolve_dynamic_type): Update.
7726 * valarith.c (value_subscripted_rvalue): Update.
7727 * value.c (value_from_contents_and_address): Update.
7728
61122aa9
TT
77292020-04-24 Tom Tromey <tromey@adacore.com>
7730
7731 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7732 "push_initial_value" parameter.
7733 (dwarf2_evaluate_property): Likewise.
7734 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7735
ef83a141
TT
77362020-04-24 Tom Tromey <tromey@adacore.com>
7737
7738 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7739 (variant::matches, compute_variant_fields_recurse)
7740 (compute_variant_fields_inner, compute_variant_fields): New
7741 functions.
7742 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7743 Use resolved_type after type is made.
7744 (operator==): Add new cases.
7745 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7746 (struct discriminant_range, struct variant, struct variant_part):
7747 New.
7748 (union dynamic_prop_data) <variant_parts, original_type>: New
7749 members.
7750 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7751 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7752 constants.
7753 * value.c (unpack_bits_as_long): Now public.
7754 * value.h (unpack_bits_as_long): Declare.
7755
675127ec
TT
77562020-04-24 Tom Tromey <tromey@adacore.com>
7757
7758 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7759 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7760
9852ceef
HD
77612020-04-24 Hannes Domani <ssbssa@yahoo.de>
7762
7763 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7764
7632c6ce
KR
77652020-04-24 Kamil Rytarowski <n54@gmx.com>
7766
7767 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7768 (remove_fork_catchpoint, post_startup_inferior)
7769 (post_attach): Move...
7770 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7771 (remove_fork_catchpoint, post_startup_inferior)
7772 (post_attach): ...here.
7773 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7774 (remove_fork_catchpoint, post_startup_inferior)
7775 (post_attach): Move...
7776 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7777 (remove_fork_catchpoint, post_startup_inferior)
7778 (post_attach): ...here.
7779
7be2bb4f
TT
77802020-04-24 Tom Tromey <tromey@adacore.com>
7781
7782 * nat/windows-nat.h (struct windows_thread_info)
7783 <pc_adjusted>: New member.
7784 * windows-nat.c (windows_fetch_one_register): Check
7785 pc_adjusted.
7786 (windows_nat_target::get_windows_debug_event)
7787 (windows_nat_target::wait): Set pc_adjusted.
7788
f80cb3b4
TV
77892020-04-24 Tom de Vries <tdevries@suse.de>
7790
7791 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
7792 Run gdb-add-index inside temp dir.
7793
29514b87
TT
77942020-04-23 Tom Tromey <tromey@adacore.com>
7795
7796 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
7797 in loop.
7798
5939967b
LM
77992020-04-23 Luis Machado <luis.machado@linaro.org>
7800
7801 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7802 get_frame_register instead of gdbarch_unwind_pc.
7803
70bc38f5
TV
78042020-04-23 Tom de Vries <tdevries@suse.de>
7805
7806 * symtab.c (lookup_global_symbol): Prefer def over decl.
7807
de82891c
TV
78082020-04-23 Tom de Vries <tdevries@suse.de>
7809
7810 PR symtab/25807
7811 * block.c (best_symbol, better_symbol): Promote to external.
7812 * block.h (best_symbol, better_symbol): Declare.
7813 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
7814 decl.
7815
ecc6c606
TT
78162020-04-23 Tom Tromey <tromey@adacore.com>
7817
7818 PR ada/25837:
7819 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
7820 "const char *", not a "const std::string &".
7821 <name_and_matcher::operator==>: Update.
7822 * unittests/lookup_name_info-selftests.c: Change type of
7823 "result".
7824
740480b8
TT
78252020-04-23 Tom Tromey <tom@tromey.com>
7826
7827 * inferior.h (iterate_over_inferiors): Don't declare.
7828 * inferior.c (iterate_over_inferiors): Remove.
7829 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
7830 Remove.
7831 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
7832 use iterate_over_inferiors.
7833 (darwin_resume_inferior_it)
7834 (struct resume_inferior_threads_param)
7835 (darwin_resume_inferior_threads_it): Remove.
7836 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
7837
ae3ab1f0
TV
78382020-04-23 Tom de Vries <tdevries@suse.de>
7839
7840 * blockframe.c (find_pc_partial_function): Use
7841 find_pc_sect_compunit_symtab rather than
7842 objfile->sf->qf->find_pc_sect_compunit_symtab.
7843
317d2668
TV
78442020-04-22 Tom de Vries <tdevries@suse.de>
7845
7846 PR symtab/25764
7847 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7848 in psymtabs.
7849
eea9e357
TV
78502020-04-22 Tom de Vries <tdevries@suse.de>
7851
7852 PR symtab/25801
7853 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7854 symtabs.
7855
3d5afab3
TV
78562020-04-22 Tom de Vries <tdevries@suse.de>
7857
7858 PR symtab/25700
7859 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7860 CU if already created.
7861
d43b7a2d
TBA
78622020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7863
7864 * infrun.c (displaced_step_fixup): Switch to the event_thread
7865 before calling displaced_step_restore, not after.
7866
d89edf9b
MM
78672020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7868
7869 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7870 its inferior is not recorded by us.
7871 (record_btrace_target_open): Replace call to
7872 all_non_exited_threads () with call to current_inferior
7873 ()->non_exited_threads ().
7874 (record_btrace_target::stop_recording): Likewise.
7875 (record_btrace_target::close): Likewise.
7876 (record_btrace_target::wait): Likewise.
7877 (record_btrace_target::record_stop_replaying): Likewise.
7878
5897fd49
MM
78792020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7880
7881 * btrace.c (btrace_enable): Throw an error on double enables and
7882 when enabling recording fails.
7883 (btrace_disable): Throw an error if the thread is not recorded.
7884
1a476b6d
MM
78852020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7886
7887 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7888 request if we do not have a thread_info.
7889
4778a5f8
TV
78902020-04-21 Tom de Vries <tdevries@suse.de>
7891
7892 PR gdb/25471
7893 * thread.c
7894 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7895 exception in get_frame_id.
7896
0fa7617d
TT
78972020-04-20 Tom Tromey <tromey@adacore.com>
7898
7899 * python/python.c (struct gdbpy_event): Mark move constructor as
7900 noexcept.
7901 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7902 constructor as noexcept.
7903 * completer.h (struct completion_result): Mark move constructor as
7904 noexcept.
7905 * completer.c (completion_result::completion_result): Use
7906 initialization style. Don't call reset_match_list.
7907
ad23bda0
MS
79082020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7909
7910 * MAINTAINERS (Write After Approval): Add myself.
7911
45e1f031
TT
79122020-04-18 Tom Tromey <tom@tromey.com>
7913
7914 * windows-tdep.c (init_w32_command_list)
7915 (w32_prefix_command_valid): Restore.
7916 (_initialize_windows_tdep): Call init_w32_command_list.
7917
08feed99
TT
79182020-04-18 Tom Tromey <tom@tromey.com>
7919
7920 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7921 * value.c (value_fn_field): Update.
7922 * valops.c (find_function_in_inferior)
7923 (value_allocate_space_in_inferior): Update.
7924 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7925 Update.
7926 * tui/tui-source.c (tui_source_window::set_contents): Update.
7927 * symtab.c (lookup_global_or_static_symbol)
7928 (find_function_start_sal_1, skip_prologue_sal)
7929 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7930 * symmisc.c (dump_msymbols, dump_symtab_1)
7931 (maintenance_print_one_line_table): Update.
7932 * symfile.c (init_entry_point_info, section_is_mapped)
7933 (list_overlays_command, simple_read_overlay_table)
7934 (simple_overlay_update_1): Update.
7935 * stap-probe.c (handle_stap_probe): Update.
7936 * stabsread.c (dbx_init_float_type, define_symbol)
7937 (read_one_struct_field, read_enum_type, read_range_type): Update.
7938 * source.c (info_line_command): Update.
7939 * python/python.c (gdbpy_source_objfile_script)
7940 (gdbpy_execute_objfile_script): Update.
7941 * python/py-type.c (save_objfile_types): Update.
7942 * python/py-objfile.c (py_free_objfile): Update.
7943 * python/py-inferior.c (python_new_objfile): Update.
7944 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7945 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7946 (maintenance_check_psymtabs): Update.
7947 * printcmd.c (info_address_command): Update.
7948 * objfiles.h (struct objfile) <arch>: New method, from
7949 get_objfile_arch.
7950 (get_objfile_arch): Don't declare.
7951 * objfiles.c (get_objfile_arch): Remove.
7952 (filter_overlapping_sections): Update.
7953 * minsyms.c (msymbol_is_function): Update.
7954 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7955 (output_nondebug_symbol): Update.
7956 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7957 (mdebug_expand_psymtab): Update.
7958 * machoread.c (macho_add_oso_symfile): Update.
7959 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7960 Update.
7961 * linux-fork.c (checkpoint_command): Update.
7962 * linespec.c (convert_linespec_to_sals): Update.
7963 * jit.c (finalize_symtab): Update.
7964 * infrun.c (insert_exception_resume_from_probe): Update.
7965 * ia64-tdep.c (ia64_find_unwind_table): Update.
7966 * hppa-tdep.c (internalize_unwinds): Update.
7967 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7968 Update.
7969 * gcore.c (call_target_sbrk): Update.
7970 * elfread.c (record_minimal_symbol, elf_symtab_read)
7971 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7972 (elf_gnu_ifunc_resolve_by_got): Update.
7973 * dwarf2/read.c (create_addrmap_from_index)
7974 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7975 (read_debug_names_from_section)
7976 (process_psymtab_comp_unit_reader, add_partial_symbol)
7977 (add_partial_subprogram, process_full_comp_unit)
7978 (read_file_scope, read_func_scope, read_lexical_block_scope)
7979 (read_call_site_scope, dwarf2_ranges_read)
7980 (dwarf2_record_block_ranges, dwarf2_add_field)
7981 (mark_common_block_symbol_computed, read_tag_pointer_type)
7982 (read_tag_string_type, dwarf2_init_float_type)
7983 (dwarf2_init_complex_target_type, read_base_type)
7984 (partial_die_info::read, partial_die_info::read)
7985 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7986 (dwarf2_fetch_die_loc_sect_off): Update.
7987 * dwarf2/loc.c (dwarf2_find_location_expression)
7988 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7989 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7990 (dwarf2_loc_desc_get_symbol_read_needs)
7991 (locexpr_describe_location_piece, locexpr_describe_location_1)
7992 (loclist_describe_location): Update.
7993 * dwarf2/index-write.c (write_debug_names): Update.
7994 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7995 * dtrace-probe.c (dtrace_process_dof): Update.
7996 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7997 (process_one_symbol): Update.
7998 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7999 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
8000 (coff_read_enum_type): Update.
8001 * cli/cli-cmds.c (edit_command, list_command): Update.
8002 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
8003 * breakpoint.c (create_overlay_event_breakpoint)
8004 (create_longjmp_master_breakpoint)
8005 (create_std_terminate_master_breakpoint)
8006 (create_exception_master_breakpoint, get_sal_arch): Update.
8007 * block.c (block_gdbarch): Update.
8008 * annotate.c (annotate_source_line): Update.
8009
0743fc83
TT
80102020-04-17 Tom Tromey <tromey@adacore.com>
8011
8012 * auto-load.c (show_auto_load_cmd): Remove.
8013 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
8014 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
8015 (maintenance_print_arc_command): Remove.
8016 * tui/tui-win.c (tui_command): Remove.
8017 (tui_get_cmd_list): Use add_basic_prefix_cmd.
8018 * tui/tui-layout.c (tui_layout_command): Remove.
8019 (_initialize_tui_layout): Use add_basic_prefix_cmd.
8020 * python/python.c (user_set_python, user_show_python): Remove.
8021 (_initialize_python): Use add_basic_prefix_cmd,
8022 add_show_prefix_cmd.
8023 * guile/guile.c (set_guile_command, show_guile_command): Remove.
8024 (install_gdb_commands): Use add_basic_prefix_cmd,
8025 add_show_prefix_cmd.
8026 (info_guile_command): Remove.
8027 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
8028 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
8029 add_show_prefix_cmd.
8030 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
8031 Remove do_set and do_show parameters.
8032 * cli/cli-style.c (set_style, show_style): Remove.
8033 (_initialize_cli_style): Use add_basic_prefix_cmd,
8034 add_show_prefix_cmd.
8035 (cli_style_option::add_setshow_commands): Remove do_set and
8036 do_show parameters.
8037 (cli_style_option::add_setshow_commands): Use
8038 add_basic_prefix_cmd, add_show_prefix_cmd.
8039 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
8040 (set_style_name): Remove.
8041 * cli/cli-dump.c (dump_command, append_command): Remove.
8042 (srec_dump_command, ihex_dump_command, verilog_dump_command)
8043 (tekhex_dump_command, binary_dump_command)
8044 (binary_append_command): Remove.
8045 (_initialize_cli_dump): Use add_basic_prefix_cmd.
8046 * windows-tdep.c (w32_prefix_command_valid): Remove global.
8047 (init_w32_command_list): Remove; move into ...
8048 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
8049 * valprint.c (set_print, show_print, set_print_raw)
8050 (show_print_raw): Remove.
8051 (_initialize_valprint): Use add_basic_prefix_cmd,
8052 add_show_prefix_cmd.
8053 * typeprint.c (set_print_type, show_print_type): Remove.
8054 (_initialize_typeprint): Use add_basic_prefix_cmd,
8055 add_show_prefix_cmd.
8056 * record.c (set_record_command, show_record_command): Remove.
8057 (_initialize_record): Use add_basic_prefix_cmd,
8058 add_show_prefix_cmd.
8059 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
8060 add_show_prefix_cmd.
8061 (info_command, show_command, set_debug, show_debug): Remove.
8062 * top.h (set_history, show_history): Don't declare.
8063 * top.c (set_history, show_history): Remove.
8064 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
8065 (unset_tdesc_cmd): Remove.
8066 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
8067 add_show_prefix_cmd.
8068 * symtab.c (info_module_command): Remove.
8069 (_initialize_symtab): Use add_basic_prefix_cmd.
8070 * symfile.c (overlay_command): Remove.
8071 (_initialize_symfile): Use add_basic_prefix_cmd.
8072 * sparc64-tdep.c (info_adi_command): Remove.
8073 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
8074 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
8075 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
8076 add_show_prefix_cmd.
8077 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
8078 (_initialize_serial): Use add_basic_prefix_cmd,
8079 add_show_prefix_cmd.
8080 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
8081 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
8082 add_show_prefix_cmd.
8083 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
8084 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
8085 add_show_prefix_cmd.
8086 * riscv-tdep.c (show_riscv_command, set_riscv_command)
8087 (show_debug_riscv_command, set_debug_riscv_command): Remove.
8088 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
8089 add_show_prefix_cmd.
8090 * remote.c (remote_command, set_remote_cmd): Remove.
8091 (_initialize_remote): Use add_basic_prefix_cmd.
8092 * record-full.c (set_record_full_command)
8093 (show_record_full_command): Remove.
8094 (_initialize_record_full): Use add_basic_prefix_cmd,
8095 add_show_prefix_cmd.
8096 * record-btrace.c (cmd_set_record_btrace)
8097 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
8098 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
8099 (cmd_show_record_btrace_pt): Remove.
8100 (_initialize_record_btrace): Use add_basic_prefix_cmd,
8101 add_show_prefix_cmd.
8102 * ravenscar-thread.c (set_ravenscar_command)
8103 (show_ravenscar_command): Remove.
8104 (_initialize_ravenscar): Use add_basic_prefix_cmd,
8105 add_show_prefix_cmd.
8106 * mips-tdep.c (show_mips_command, set_mips_command)
8107 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
8108 add_show_prefix_cmd.
8109 * maint.c (maintenance_command, maintenance_info_command)
8110 (maintenance_check_command, maintenance_print_command)
8111 (maintenance_set_cmd, maintenance_show_cmd): Remove.
8112 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
8113 add_show_prefix_cmd.
8114 (show_per_command_cmd): Remove.
8115 * maint-test-settings.c (maintenance_set_test_settings_cmd):
8116 Remove.
8117 (maintenance_show_test_settings_cmd): Remove.
8118 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
8119 add_show_prefix_cmd.
8120 * maint-test-options.c (maintenance_test_options_command):
8121 Remove.
8122 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
8123 * macrocmd.c (macro_command): Remove
8124 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8125 * language.c (set_check, show_check): Remove.
8126 (_initialize_language): Use add_basic_prefix_cmd,
8127 add_show_prefix_cmd.
8128 * infcmd.c (unset_command): Remove.
8129 (_initialize_infcmd): Use add_basic_prefix_cmd.
8130 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8131 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8132 add_show_prefix_cmd.
8133 * go32-nat.c (go32_info_dos_command): Remove.
8134 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8135 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8136 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8137 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8138 (_initialize_frame): Use add_basic_prefix_cmd,
8139 add_show_prefix_cmd.
8140 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8141 (_initialize_dcache): Use add_basic_prefix_cmd,
8142 add_show_prefix_cmd.
8143 * cp-support.c (maint_cplus_command): Remove.
8144 (_initialize_cp_support): Use add_basic_prefix_cmd.
8145 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8146 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8147 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8148 add_basic_prefix_cmd, add_show_prefix_cmd.
8149 * breakpoint.c (save_command): Remove.
8150 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8151 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8152 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8153 add_show_prefix_cmd.
8154 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8155 (set_ada_command, show_ada_command): Remove.
8156 (_initialize_ada_language): Use add_basic_prefix_cmd,
8157 add_show_prefix_cmd.
8158 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8159
3557f442
KR
81602020-04-16 Kamil Rytarowski <n54@gmx.com>
8161
8162 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8163 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8164
16197208
SM
81652020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8166
8167 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8168 warning messages.
8169
00ac85d3
SM
81702020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8171
8172 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8173 import table is not at beginning of .idata section.
8174
381ce63f
PA
81752020-04-16 Pedro Alves <palves@redhat.com>
8176
8177 * inferior.c (delete_inferior): Use delete operator directly
8178 instead of delete_program_space.
8179 * progspace.c (add_program_space): New, factored out from
8180 program_space::program_space.
8181 (remove_program_space): New, factored out from
8182 delete_program_space.
8183 (program_space::program_space): Remove intro comment. Rewrite.
8184 (program_space::~program_space): Remove intro comment. Call
8185 remove_program_space.
8186 (delete_program_space): Delete.
8187 * progspace.h (program_space::program_space): Make explicit. Move
8188 intro comment here, adjusted.
8189 (program_space::~program_space): Move intro comment here,
8190 adjusted.
8191 (delete_program_space): Remove.
8192
a010605f
TT
81932020-04-16 Tom Tromey <tromey@adacore.com>
8194
8195 * windows-nat.c (windows_nat::handle_access_violation): New
8196 function.
8197 * nat/windows-nat.h (handle_access_violation): Declare.
8198 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8199 windows-nat.c. Call handle_access_violation.
8200
efba5c23
TV
82012020-04-16 Tom de Vries <tdevries@suse.de>
8202
8203 PR symtab/25791
8204 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8205 CUs without psymtab.
8206
97ed802d
KB
82072020-04-16 Kevin Buettner <kevinb@redhat.com>
8208
8209 * python/python.c (do_start_initialization): Don't call
8210 PyEval_InitThreads for Python 3.9 and beyond.
8211
c7d64809
KR
82122020-04-15 Kamil Rytarowski <n54@gmx.com>
8213
8214 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8215 thread functions.
8216 (obsd_nat_target::wait): Likewise.
8217
ce127a96
TT
82182020-04-15 Tom Tromey <tromey@adacore.com>
8219
8220 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8221 (DEBUG_EXCEPT): Use debug_printf.
8222
99f1bc6a
AB
82232020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8224
8225 * completer.c (class completion_tracker::completion_hash_entry)
8226 <hash_name>: New member function.
8227 (completion_tracker::discard_completions): New callback to hash a
8228 completion_hash_entry, pass this to htab_create_alloc.
8229
a0e9b532
JT
82302016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8231
8232 * windows-nat.c (windows_make_so): Warn rather than stopping with
8233 an error if realpath() fails.
8234
06ca5dd4
KR
82352020-04-14 Kamil Rytarowski <n54@gmx.com>
8236
8237 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8238 (nbsd_nat_target::info_proc): Add do_status.
8239
194d088f
TV
82402020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8241 Tom de Vries <tdevries@suse.de>
8242
8243 PR symtab/25718
8244 * psympriv.h (struct partial_symtab::read_symtab)
8245 (struct partial_symtab::expand_psymtab)
8246 (struct partial_symtab::read_dependencies): Update comments.
8247 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8248 read_symtab for includer.
8249 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8250 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8251 (struct dwarf2_include_psymtab::m_readin): Remove.
8252 (struct dwarf2_include_psymtab::includer): New member function.
8253 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8254
c1a66c06
TV
82552020-04-14 Tom de Vries <tdevries@suse.de>
8256
8257 PR symtab/25720
8258 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8259 with NULL symbol_matcher and lookup_name.
8260 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8261 and lookup_name.
8262 * dwarf2/read.c (dw2_expand_symtabs_matching)
8263 (dw2_debug_names_expand_symtabs_matching): Same.
8264 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8265 Make lookup_name a pointer. Update comment.
8266 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8267 lookup_name being a pointer.
8268 * symfile.c (expand_symtabs_matching): Same.
8269 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8270 * linespec.c (iterate_over_all_matching_symtabs): Same.
8271
400b5eca
TT
82722020-04-13 Tom Tromey <tom@tromey.com>
8273
8274 * run-on-main-thread.c: Update include.
8275 * unittests/main-thread-selftests.c: Update include.
8276 * tui/tui-win.c: Update include.
8277 * tui/tui-io.c: Update include.
8278 * tui/tui-interp.c: Update include.
8279 * tui/tui-hooks.c: Update include.
8280 * top.h: Update include.
8281 * top.c: Update include.
8282 * ser-base.c: Update include.
8283 * remote.c: Update include.
8284 * remote-notif.c: Update include.
8285 * remote-fileio.c: Update include.
8286 * record-full.c: Update include.
8287 * record-btrace.c: Update include.
8288 * python/python.c: Update include.
8289 * posix-hdep.c: Update include.
8290 * mingw-hdep.c: Update include.
8291 * mi/mi-main.c: Update include.
8292 * mi/mi-interp.c: Update include.
8293 * main.c: Update include.
8294 * linux-nat.c: Update include.
8295 * interps.c: Update include.
8296 * infrun.c: Update include.
8297 * inf-loop.c: Update include.
8298 * event-top.c: Update include.
8299 * event-loop.c: Move to ../gdbsupport/.
8300 * event-loop.h: Move to ../gdbsupport/.
8301 * async-event.h: Update include.
8302 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8303
93b54c8e
TT
83042020-04-13 Tom Tromey <tom@tromey.com>
8305
8306 * tui/tui-win.c: Include async-event.h.
8307 * remote.c: Include async-event.h.
8308 * remote-notif.c: Include async-event.h.
8309 * record-full.c: Include async-event.h.
8310 * record-btrace.c: Include async-event.h.
8311 * infrun.c: Include async-event.h.
8312 * event-top.c: Include async-event.h.
8313 * event-loop.h: Move some declarations to async-event.h.
8314 * event-loop.c: Don't include ser-event.h or top.h. Move some
8315 code to async-event.c.
8316 * async-event.h: New file.
8317 * async-event.c: New file.
8318 * Makefile.in (COMMON_SFILES): Add async-event.c.
8319 (HFILES_NO_SRCDIR): Add async-event.h.
8320
c1cd3163
TT
83212020-04-13 Tom Tromey <tom@tromey.com>
8322
8323 * utils.c (flush_streams): New function.
8324 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8325
29f2bf4f
TT
83262020-04-13 Tom Tromey <tom@tromey.com>
8327
8328 * event-loop.c (handle_file_event): Use warning, not
8329 printf_unfiltered.
8330
98029d02
TT
83312020-04-13 Tom Tromey <tom@tromey.com>
8332
8333 * event-loop.c: Include <chrono>.
8334
06cc9596
TT
83352020-04-13 Tom Tromey <tom@tromey.com>
8336
8337 * gdb_select.h: Move to ../gdbsupport/.
8338 * event-loop.c: Update include path.
8339 * top.c: Update include path.
8340 * ser-base.c: Update include path.
8341 * ui-file.c: Update include path.
8342 * ser-tcp.c: Update include path.
8343 * guile/scm-ports.c: Update include path.
8344 * posix-hdep.c: Update include path.
8345 * ser-unix.c: Update include path.
8346 * gdb_usleep.c: Update include path.
8347 * mingw-hdep.c: Update include path.
8348 * inflow.c: Update include path.
8349 * infrun.c: Update include path.
8350 * event-top.c: Update include path.
8351
8ae8e197
TT
83522020-04-13 Tom Tromey <tom@tromey.com>
8353
8354 * configure: Rebuild.
8355 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8356
58cf28e8
TT
83572020-04-13 Tom Tromey <tom@tromey.com>
8358
8359 * event-loop.h (start_event_loop): Don't declare.
8360 * event-loop.c (start_event_loop): Move...
8361 * main.c (start_event_loop): ...here. Now static.
8362
b7f999ae
SDJ
83632020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8364
8365 * MAINTAINERS: Update my email address.
8366
1085dfd4
KR
83672020-04-12 Kamil Rytarowski <n54@gmx.com>
8368
8369 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8370 IP_ALL.
8371
49d1d1f5
KR
83722020-04-12 Kamil Rytarowski <n54@gmx.com>
8373
8374 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 8375 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 8376
b4848d2a
KR
83772020-04-12 Kamil Rytarowski <n54@gmx.com>
8378
8379 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 8380 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 8381
51c133d5
KR
83822020-04-12 Kamil Rytarowski <n54@gmx.com>
8383
8384 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8385
54b8cbd0
KR
83862020-04-11 Kamil Rytarowski <n54@gmx.com>
8387
8388 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8389 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8390 (nbsd_nat_target::info_proc): New functions.
8391 * nbsd-nat.c (kinfo_get_vmmap): New function.
8392 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8393 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8394 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8395 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8396 functions.
8397 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8398 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8399 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8400 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8401 (KINFO_VME_FLAG_GROWS_DOWN): New.
8402
cf83625d
AS
84032020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8404
8405 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8406 bit shift.
8407
0c4311ab
TT
84082020-04-10 Tom Tromey <tromey@adacore.com>
8409
8410 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8411
3e65b3e9
TT
84122020-04-10 Tom Tromey <tromey@adacore.com>
8413
8414 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8415 separate debug files.
8416
13302e95
HD
84172020-04-10 Hannes Domani <ssbssa@yahoo.de>
8418
8419 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8420 Move to...
8421 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8422 ... here.
8423 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8424 Check for STATUS_WX86_BREAKPOINT.
8425 (windows_nat_target::wait): Same.
8426
bdfc1e8a
TV
84272020-04-10 Tom de Vries <tdevries@suse.de>
8428
8429 PR cli/25808
8430 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8431
f4460aec
SM
84322020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8433
8434 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8435 (Write After Approval): Remove Tom de Vries.
8436
a25198bb
BE
84372020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8438
8439 revert partially:
8440 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8441
aac66a4c
SM
8442 * buildsym.c (record_line): Fix undefined behavior and preserve
8443 lines at eof.
a25198bb 8444
206c98a6
KR
84452020-04-09 Kamil Rytarowski <n54@gmx.com>
8446
8447 * auxv.h (svr4_auxv_parse): New.
8448 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8449 and generic_auxv_parse.
8450 (svr4_auxv_parse): Add.
8451 * obsd-tdep.c: Include "auxv.h".
8452 (obsd_auxv_parse): Remove.
8453 (obsd_init_abi): Remove comment.
8454 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8455 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8456 * nbsd-tdep.c: Include "auxv.h".
8457 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8458
71fbdbaf
TT
84592020-04-08 Tom Tromey <tromey@adacore.com>
8460
8461 * nat/windows-nat.h (last_wait_event): Don't declare.
8462 (wait_for_debug_event): Update comment.
8463 * nat/windows-nat.c (last_wait_event): Now static.
8464
2c1d95e8
TT
84652020-04-08 Tom Tromey <tromey@adacore.com>
8466
8467 * windows-nat.c (wait_for_debug_event): Move to
8468 nat/windows-nat.c.
8469 * nat/windows-nat.h (wait_for_debug_event): Declare.
8470 * nat/windows-nat.c (wait_for_debug_event): Move from
8471 windows-nat.c. No longer static.
8472
d2977bc4
TT
84732020-04-08 Tom Tromey <tromey@adacore.com>
8474
8475 * windows-nat.c (get_windows_debug_event): Use
8476 fetch_pending_stop.
8477 * nat/windows-nat.h (fetch_pending_stop): Declare.
8478 * nat/windows-nat.c (fetch_pending_stop): New function.
8479
e758e19c
TT
84802020-04-08 Tom Tromey <tromey@adacore.com>
8481
8482 * windows-nat.c (windows_continue): Use matching_pending_stop and
8483 continue_last_debug_event.
8484 * nat/windows-nat.h (matching_pending_stop)
8485 (continue_last_debug_event): Declare.
8486 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8487 (matching_pending_stop, continue_last_debug_event): New
8488 functions.
8489
8d30e395
TT
84902020-04-08 Tom Tromey <tromey@adacore.com>
8491
8492 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8493 (handle_exception_result): Move to nat/windows-nat.h.
8494 (DEBUG_EXCEPTION_SIMPLE): Remove.
8495 (windows_nat::handle_ms_vc_exception): New function.
8496 (handle_exception): Move to nat/windows-nat.c.
8497 (get_windows_debug_event): Update.
8498 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8499 nat/windows-nat.c.
8500 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8501 (handle_exception_result): Move from windows-nat.c.
8502 (handle_exception): Declare.
8503 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8504 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8505 windows-nat.c.
8506
29de418d
TT
85072020-04-08 Tom Tromey <tromey@adacore.com>
8508
8509 * windows-nat.c (exception_count, event_count): Remove.
8510 (handle_exception, get_windows_debug_event)
8511 (do_initial_windows_stuff): Update.
8512
a816ba18
TT
85132020-04-08 Tom Tromey <tromey@adacore.com>
8514
8515 * windows-nat.c (windows_nat::handle_load_dll)
8516 (windows_nat::handle_unload_dll): Rename. No longer static.
8517 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8518 Declare.
8519
a00caa12
TT
85202020-04-08 Tom Tromey <tromey@adacore.com>
8521
8522 * complaints.h (stop_whining): Declare at top-level.
8523 (complaint): Don't declare stop_whining.
8524
d41b524f
TT
85252020-04-08 Tom Tromey <tromey@adacore.com>
8526
8527 * windows-nat.c (windows_nat::handle_output_debug_string):
8528 Rename. No longer static.
8529 * nat/windows-nat.h (handle_output_debug_string): Declare.
8530
3c76026d
TT
85312020-04-08 Tom Tromey <tromey@adacore.com>
8532
8533 * windows-nat.c (current_process_handle, current_process_id)
8534 (main_thread_id, last_sig, current_event, last_wait_event)
8535 (current_windows_thread, desired_stop_thread_id, pending_stops)
8536 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8537 (display_selectors, fake_create_process)
8538 (get_windows_debug_event): Update.
8539 * nat/windows-nat.h (current_process_handle, current_process_id)
8540 (main_thread_id, last_sig, current_event, last_wait_event)
8541 (current_windows_thread, desired_stop_thread_id, pending_stops)
8542 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8543 * nat/windows-nat.c (current_process_handle, current_process_id)
8544 (main_thread_id, last_sig, current_event, last_wait_event)
8545 (current_windows_thread, desired_stop_thread_id, pending_stops)
8546 (siginfo_er): New globals. Move from windows-nat.c.
8547
9d8679cc
TT
85482020-04-08 Tom Tromey <tromey@adacore.com>
8549
8550 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8551 (handle_load_dll): Update.
8552 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8553
28688adf
TT
85542020-04-08 Tom Tromey <tromey@adacore.com>
8555
8556 * windows-nat.c (enum thread_disposition_type): Move to
8557 nat/windows-nat.h.
8558 (windows_nat::thread_rec): Rename from thread_rec. No longer
8559 static.
8560 (windows_add_thread, windows_nat_target::fetch_registers)
8561 (windows_nat_target::store_registers, handle_exception)
8562 (windows_nat_target::resume, get_windows_debug_event)
8563 (windows_nat_target::get_tib_address)
8564 (windows_nat_target::thread_name)
8565 (windows_nat_target::thread_alive): Update.
8566 * nat/windows-nat.h (enum thread_disposition_type): Move from
8567 windows-nat.c.
8568 (thread_rec): Declare.
8569
4834dad0
TT
85702020-04-08 Tom Tromey <tromey@adacore.com>
8571
8572 * windows-nat.c: Add "using namespace".
8573 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8574 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8575
65bafd5b
TT
85762020-04-08 Tom Tromey <tromey@adacore.com>
8577
8578 * nat/windows-nat.h (struct windows_thread_info): Declare
8579 destructor.
8580 * nat/windows-nat.c (~windows_thread_info): New.
8581
0a4afda3
TT
85822020-04-08 Tom Tromey <tromey@adacore.com>
8583
8584 PR gdb/22992
8585 * windows-nat.c (current_event): Update comment.
8586 (last_wait_event, desired_stop_thread_id): New globals.
8587 (struct pending_stop): New.
8588 (pending_stops): New global.
8589 (windows_nat_target) <stopped_by_sw_breakpoint>
8590 <supports_stopped_by_sw_breakpoint>: New methods.
8591 (windows_fetch_one_register): Add assertions. Adjust PC.
8592 (windows_continue): Handle pending stops. Suspend other threads
8593 when stepping. Use last_wait_event
8594 (wait_for_debug_event): New function.
8595 (get_windows_debug_event): Use wait_for_debug_event. Handle
8596 pending stops. Queue spurious stops.
8597 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8598 (windows_nat_target::kill): Use wait_for_debug_event.
8599 * nat/windows-nat.h (struct windows_thread_info)
8600 <stopped_at_software_breakpoint>: New field.
8601 * nat/windows-nat.c (windows_thread_info::resume): Clear
8602 stopped_at_software_breakpoint.
8603
8e61ebec
TT
86042020-04-08 Tom Tromey <tromey@adacore.com>
8605
8606 * windows-nat.c (enum thread_disposition_type): New.
8607 (thread_rec): Replace "get_context" parameter with "disposition";
8608 change type.
8609 (windows_add_thread, windows_nat_target::fetch_registers)
8610 (windows_nat_target::store_registers, handle_exception)
8611 (windows_nat_target::resume, get_windows_debug_event)
8612 (windows_nat_target::get_tib_address)
8613 (windows_nat_target::thread_name)
8614 (windows_nat_target::thread_alive): Update.
8615
98a03287
TT
86162020-04-08 Tom Tromey <tromey@adacore.com>
8617
8618 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8619 (windows_continue): Use windows_continue::resume.
8620 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8621 resume>: Declare new methods.
8622 * nat/windows-nat.c: New file.
8623 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8624
7c7411bc
TT
86252020-04-08 Tom Tromey <tromey@adacore.com>
8626
8627 * windows-nat.c (windows_add_thread, windows_delete_thread)
8628 (windows_nat_target::fetch_registers)
8629 (windows_nat_target::store_registers, fake_create_process)
8630 (windows_nat_target::resume, windows_nat_target::resume)
8631 (get_windows_debug_event, windows_nat_target::wait)
8632 (windows_nat_target::pid_to_str)
8633 (windows_nat_target::get_tib_address)
8634 (windows_nat_target::get_ada_task_ptid)
8635 (windows_nat_target::thread_name)
8636 (windows_nat_target::thread_alive): Use lwp, not tid.
8637
2950fdf7
TT
86382020-04-08 Tom Tromey <tromey@adacore.com>
8639
8640 * windows-nat.c (handle_exception)
8641 (windows_nat_target::thread_name): Update.
8642 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8643 <name>: Now unique_xmalloc_ptr.
8644
62fe396b
TT
86452020-04-08 Tom Tromey <tromey@adacore.com>
8646
8647 * windows-nat.c (thread_rec)
8648 (windows_nat_target::fetch_registers): Update.
8649 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8650 Update comment.
8651 <debug_registers_changed, reload_context>: Now bool.
8652
e9534bd2
TT
86532020-04-08 Tom Tromey <tromey@adacore.com>
8654
8655 * windows-nat.c (windows_add_thread): Use new.
8656 (windows_init_thread_list, windows_delete_thread): Use delete.
8657 (get_windows_debug_event): Update.
8658 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8659 destructor, and initializers.
8660
ae1f8880
TT
86612020-04-08 Tom Tromey <tromey@adacore.com>
8662
8663 * windows-nat.c (struct windows_thread_info): Remove.
8664 * nat/windows-nat.h: New file.
8665
55a1e039
TT
86662020-04-08 Tom Tromey <tromey@adacore.com>
8667
8668 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8669 (thread_rec, windows_add_thread, windows_delete_thread)
8670 (windows_continue): Update.
8671
93366324
TT
86722020-04-08 Tom Tromey <tromey@adacore.com>
8673
8674 * windows-nat.c (struct windows_thread_info): Remove typedef.
8675 (thread_head): Remove.
8676 (thread_list): New global.
8677 (thread_rec, windows_add_thread, windows_init_thread_list)
8678 (windows_delete_thread, windows_continue): Update.
8679
0f2265e2
SM
86802020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8681
8682 * windows-tdep.h (windows_init_abi): Add comment.
8683 (cygwin_init_abi): New declaration.
8684 * windows-tdep.c: Split signal enumeration in two, one for
8685 Windows and one for Cygwin.
8686 (windows_gdb_signal_to_target): Only deal with signal of the
8687 Windows OS ABI.
8688 (cygwin_gdb_signal_to_target): New function.
8689 (windows_init_abi): Rename to windows_init_abi_common, don't set
8690 gdb_signal_to_target gdbarch method. Add new new function with
8691 this name.
8692 (cygwin_init_abi): New function.
8693 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8694 comment. Don't call windows_init_abi.
8695 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8696 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8697 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8698 i386_windows_init_abi_common, don't call windows_init_abi. Add
8699 a new function of this name.
8700 (i386_cygwin_init_abi): New function.
8701 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8702 OS ABI Cygwin.
8703
3810f182
SM
87042020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8705
8706 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8707 parameter.c.
8708 (dwarf2_read_gdb_index): Update.
8709
063f8e80
KR
87102020-04-07 Kamil Rytarowski <n54@gmx.com>
8711
8712 * nbsd-tdep.c: Include "objfiles.h".
8713 (nbsd_skip_solib_resolver): New.
8714 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8715
85a9510c 87162020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8717
8718 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8719 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8720 with DW_LLE_base_addressx are being emitted in DWARFv5.
8721 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8722 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8723 unsigned integer.
8724
9fc3eaae 87252020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8726
8727 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8728 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8729 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8730 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8731 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8732 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8733 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8734
8735
41144253 87362020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8737
8738 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8739 (read_loclist_index): New function definition.
8740 (lookup_loclist_base): New function definition.
8741 (read_loclist_header): New function definition.
8742 (dwarf2_cu): Add loclist_base and loclist_header field.
8743 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8744 (read_full_die_1): Read the value of DW_AT_loclists_base.
8745 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8746 (read_attribute_value): Handle DW_FORM_loclistx.
8747 (skip_one_die): Handle DW_FORM_loclistx.
8748 (loclist_header): New structure declaration.
8749 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8750
9f4e76a4
SM
87512020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8752
8753 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8754 constructor. Remove `addr` parameter from other constructor and
8755 add `per_cu` parameter.
8756 * dwarf2/read.c (create_partial_symtab): Update.
8757
25c11aca
TV
87582020-04-07 Tom de Vries <tdevries@suse.de>
8759
8760 PR symtab/25796
8761 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8762 (partial_die_info::fixup): Inherit has_const_value.
8763
5707e24b
TV
87642020-04-07 Tom de Vries <tdevries@suse.de>
8765
8766 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8767 symbols without address.
8768
05f00e22
KR
87692020-04-06 Kamil Rytarowski <n54@gmx.com>
8770
8771 * nbsd-nat.h (struct thread_info): Add forward declaration.
8772 (nbsd_nat_target::thread_alive): Add.
8773 (nbsd_nat_target::thread_name): Likewise.
8774 (nbsd_nat_target::update_thread_list): Likewise.
8775 (update_thread_list::post_attach): Likewise.
8776 (post_attach::pid_to_str): Likewise.
8777 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8778 (nbsd_thread_lister): Add.
8779 (nbsd_nat_target::thread_alive): Likewise.
8780 (nbsd_nat_target::thread_name): Likewise.
8781 (nbsd_add_threads): Likewise.
8782 (update_thread_list::post_attach): Likewise.
8783 (nbsd_nat_target::update_thread_list): Likewise.
8784 (post_attach::pid_to_str): Likewise.
8785
6ee448cc
TT
87862020-04-06 Tom Tromey <tromey@adacore.com>
8787
8788 * ada-valprint.c (print_variant_part): Extract the variant field.
8789 (print_field_values): Use the field as the outer value when
8790 recursing.
8791
dea34e8c
TT
87922020-04-06 Tom Tromey <tromey@adacore.com>
8793
8794 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
8795 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
8796 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
8797 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
8798 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
8799
93689ce9
TT
88002020-04-06 Tom Tromey <tromey@adacore.com>
8801
8802 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8803 TYPE_CODE_ERROR.
8804
79743962
KR
88052020-04-06 Kamil Rytarowski <n54@gmx.com>
8806
8807 * nbsd-tdep.c: Include "gdbarch.h".
8808 Define enum with NetBSD signal numbers.
8809 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
8810 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
8811 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
8812 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
8813 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
8814 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
8815 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
8816 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8817 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
8818 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8819 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8820 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
8821
9e7c9a03
HD
88222020-04-03 Hannes Domani <ssbssa@yahoo.de>
8823
8824 PR gdb/25325
8825 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
8826
d9e49b61
TT
88272020-04-03 Tom Tromey <tromey@adacore.com>
8828
8829 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
8830 Read constant block.
8831
e0fc5c3f
SM
88322020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8833
8834 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
8835 (gdb_bfd_get_full_section_contents): New declaration.
8836 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
8837 * windows-tdep.c (is_linked_with_cygwin_dll): Use
8838 gdb_bfd_get_full_section_contents.
8839
e2ff18a0
SM
88402020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8841
8842 * exec.c (build_section_table): Replace internal_error with
8843 gdb_assert.
8844 (section_table_xfer_memory_partial): Likewise.
8845 * mdebugread.c (parse_partial_symbols): Likewise.
8846 * psymtab.c (lookup_partial_symbol): Likewise.
8847 * utils.c (wrap_here): Likewise.
8848
0830d301
TT
88492020-04-02 Tom Tromey <tromey@adacore.com>
8850
8851 * f-lang.c (build_fortran_types): Use arch_type to initialize
8852 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8853
e7da7f8f
TT
88542020-04-02 Tom Tromey <tromey@adacore.com>
8855
8856 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8857 of attributes.
8858
c90d28ac
AB
88592020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8860 Bernd Edlinger <bernd.edlinger@hotmail.de>
8861 Tom Tromey <tromey@adacore.com>
8862
8863 * buildsym.c (buildsym_compunit::record_line): Remove
8864 deduplication code.
8865
1aa98955
TV
88662020-04-02 Tom de Vries <tdevries@suse.de>
8867
8868 PR ada/24671
8869 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8870
d3214198
TV
88712020-04-02 Tom de Vries <tdevries@suse.de>
8872
8873 * dwarf2/read.c (dwarf2_gdb_index_functions,
8874 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8875 NULL.
8876 * psymtab.c (psym_lookup_global_symbol_language): New function.
8877 (psym_functions): Init psym_lookup_global_symbol_language with
8878 psym_lookup_global_symbol_language.
8879 * symfile-debug.c (debug_sym_quick_functions): Init
8880 lookup_global_symbol_language with NULL.
8881 * symfile.c (set_initial_language): Remove fixme comment.
8882 * symfile.h (struct quick_symbol_functions): Add
8883 lookup_global_symbol_language.
8884 * symtab.c (find_quick_global_symbol_language): New function.
8885 (find_main_name): Use find_quick_global_symbol_language.
8886
2836752f
SM
88872020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8888
8889 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8890
64dc2d4b
BE
88912020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8892
8893 * buildsym.c (record_line): Fix undefined behavior and preserve
8894 lines at eof.
8895
bbe3dc41
BE
88962020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8897
8898 * buildsym.c (record_line): Fix the resizing condition.
8899
6b4a335b
TT
89002020-04-01 Tom Tromey <tom@tromey.com>
8901
8902 * value.h (value_literal_complex): Add comment.
8903 * valops.c (value_literal_complex): Refer to value.h.
8904
3638a098
TT
89052020-04-01 Tom Tromey <tom@tromey.com>
8906
8907 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8908 (scalar_type): New rule, from typebase.
8909 (typebase): Use scalar_type. Recognize complex types.
8910 (field_name): Handle FLOAT_KEYWORD.
8911 (ident_tokens): Add _Complex and __complex__.
8912
c34e8714
TT
89132020-04-01 Tom Tromey <tom@tromey.com>
8914
8915 PR exp/25299:
8916 * valarith.c (promotion_type, complex_binop): New functions.
8917 (scalar_binop): Handle complex numbers. Use promotion_type.
8918 (value_pos, value_neg, value_complement): Handle complex numbers.
8919
fa649bb7
TT
89202020-04-01 Tom Tromey <tom@tromey.com>
8921
8922 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8923 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8924 (parse_number): Handle complex numbers.
8925
981c08ce
TT
89262020-04-01 Tom Tromey <tom@tromey.com>
8927
8928 * c-valprint.c (c_decorations): Change complex suffix to "i".
8929
4c99290d
TT
89302020-04-01 Tom Tromey <tom@tromey.com>
8931
8932 * valprint.c (generic_value_print_complex): Use accessors.
8933 * value.h (value_real_part, value_imaginary_part): Declare.
8934 * valops.c (value_real_part, value_imaginary_part): New
8935 functions.
8936 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8937
5b930b45
TT
89382020-04-01 Tom Tromey <tom@tromey.com>
8939
8940 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8941 (read_range_type): Update.
8942 * mdebugread.c (basic_type): Update.
8943 * go-lang.c (build_go_types): Use init_complex_type.
8944 * gdbtypes.h (struct main_type) <complex_type>: New member.
8945 (init_complex_type): Update.
8946 (arch_complex_type): Don't declare.
8947 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8948 Make name if none given. Use alloc_type_copy. Look for cached
8949 complex type.
8950 (arch_complex_type): Remove.
8951 (gdbtypes_post_init): Use init_complex_type.
8952 * f-lang.c (build_fortran_types): Use init_complex_type.
8953 * dwarf2/read.c (read_base_type): Update.
8954 * d-lang.c (build_d_types): Use init_complex_type.
8955 * ctfread.c (read_base_type): Update.
8956
53cccef1
TBA
89572020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8958
8959 * infrun.c (stop_all_threads): Update assertion, plus when
8960 stopping threads, take into account that we might be trying
8961 to stop an all-stop target.
8962 (stop_waiting): Call 'stop_all_threads' if there exists a
8963 non-stop target.
8964
a0714d30
TBA
89652020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8966
8967 * target.h (exists_non_stop_target): New function declaration.
8968 * target.c (exists_non_stop_target): New function.
8969
60e22c1e
HD
89702020-04-01 Hannes Domani <ssbssa@yahoo.de>
8971
8972 PR gdb/24789
8973 * eval.c (is_integral_or_integral_reference): New function.
8974 (evaluate_subexp_standard): Allow integer references in
8975 pointer arithmetic.
8976
e139a727
TBA
89772020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8978
8979 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8980 check for no ptid in the stop reply when the target is non-stop.
8981
e0802d59
TT
89822020-04-01 Tom Tromey <tromey@adacore.com>
8983
8984 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8985 "name" parameter to rvalue reference. Initialize m_name_holder.
8986 <lookup_name_info>: New overloads.
8987 <name>: Return gdb::string_view.
8988 <c_str>: New method.
8989 <make_ignore_params>: Update.
8990 <search_name_hash>: Update.
8991 <language_lookup_name>: Return const char *.
8992 <m_name>: Change type.
8993 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8994 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8995 (lookup_name_info::match_any): Update.
8996 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8997 Update.
8998 * minsyms.c (linkage_name_str): Update.
8999 * language.c (default_symbol_name_matcher): Update.
9000 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
9001 Update.
9002 * ada-lang.c (ada_fold_name): Change parameter to string_view.
9003 (ada_lookup_name_info::ada_lookup_name_info): Update.
9004 (literal_symbol_name_matcher): Update.
9005
8c072cb6
TT
90062020-04-01 Tom Tromey <tromey@adacore.com>
9007
9008 * psymtab.c (psymtab_search_name): Remove function.
9009 (psym_lookup_symbol): Create search name and lookup name here.
9010 (lookup_partial_symbol): Remove "name" parameter; add
9011 lookup_name.
9012 (psym_expand_symtabs_for_function): Update.
9013
6f29a534
TT
90142020-03-31 Joel Jones <joelkevinjones@gmail.com>
9015
9016 PR tui/25597:
9017 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
9018
af62665e
TT
90192020-03-31 Tom Tromey <tromey@adacore.com>
9020
9021 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
9022 memcpy.
9023
d1a89da5
NC
90242020-03-30 Nelson Chu <nelson.chu@sifive.com>
9025
9026 * features/riscv/32bit-csr.xml: Regenerated.
9027 * features/riscv/64bit-csr.xml: Regenerated.
9028
d8af9068
TT
90292020-03-30 Tom Tromey <tromey@adacore.com>
9030
9031 * ada-valprint.c (print_variant_part): Update.
9032 * ada-lang.h (ada_which_variant_applies): Update.
9033 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
9034 outer_valaddr parameters; replace with "outer" value parameter.
9035 (to_fixed_variant_branch_type): Update.
9036
227c0bf4
PFC
90372020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9038
9039 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
9040 <list>. Remove inclusion of observable.h.
9041 (PPC_DEBUG_CURRENT_VERSION): Move up define.
9042 (struct arch_lwp_info): New struct.
9043 (class ppc_linux_dreg_interface): New class.
9044 (struct ppc_linux_process_info): New struct.
9045 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
9046 <low_new_clone, low_forget_process, low_prepare_to_resume>
9047 <copy_thread_dreg_state, mark_thread_stale>
9048 <mark_debug_registers_changed, register_hw_breakpoint>
9049 <clear_hw_breakpoint, register_wp, clear_wp>
9050 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
9051 <num_memory_accesses, get_trigger_type>
9052 <create_watchpoint_request, hwdebug_point_cmp>
9053 <init_arch_lwp_info, get_arch_lwp_info>
9054 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
9055 methods.
9056 <struct ptid_hash>: New inner struct.
9057 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
9058 members.
9059 (saved_dabr_value, hwdebug_info, max_slots_number)
9060 (struct hw_break_tuple, struct thread_points, ppc_threads)
9061 (have_ptrace_hwdebug_interface)
9062 (hwdebug_find_thread_points_by_tid)
9063 (hwdebug_insert_point, hwdebug_remove_point): Remove.
9064 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
9065 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
9066 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
9067 use m_dreg_interface.
9068 (hwdebug_point_cmp): Change to...
9069 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
9070 reference arguments instead of pointers.
9071 (ppc_linux_nat_target::ranged_break_num_registers): Use
9072 m_dreg_interface.
9073 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
9074 m_dreg_interface. Call register_hw_breakpoint.
9075 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
9076 m_dreg_interface. Call clear_hw_breakpoint.
9077 (get_trigger_type): Change to...
9078 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
9079 comment.
9080 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
9081 use m_dreg_interface. Call register_hw_breakpoint.
9082 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
9083 use m_dreg_interface. Call clear_hw_breakpoint.
9084 (can_use_watchpoint_cond_accel): Change to...
9085 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
9086 method. Update comment, use m_dreg_interface and
9087 m_process_info.
9088 (calculate_dvc): Change to...
9089 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
9090 m_dreg_interface.
9091 (num_memory_accesses): Change to...
9092 (ppc_linux_nat_target::num_memory_accesses): ...this method.
9093 (check_condition): Change to...
9094 (ppc_linux_nat_target::check_condition): ...this method.
9095 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
9096 comment, use m_dreg_interface.
9097 (create_watchpoint_request): Change to...
9098 (ppc_linux_nat_target::create_watchpoint_request): ...this
9099 method. Use m_dreg_interface.
9100 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
9101 m_dreg_interface. Call register_hw_breakpoint or register_wp.
9102 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
9103 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
9104 (ppc_linux_nat_target::low_forget_process)
9105 (ppc_linux_nat_target::low_new_fork)
9106 (ppc_linux_nat_target::low_new_clone)
9107 (ppc_linux_nat_target::low_delete_thread)
9108 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
9109 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
9110 only call mark_thread_stale.
9111 (ppc_linux_thread_exit): Remove.
9112 (ppc_linux_nat_target::stopped_data_address): Change to...
9113 (ppc_linux_nat_target::low_stopped_data_address): This. Add
9114 comment, use m_dreg_interface and m_thread_hw_breakpoints.
9115 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
9116 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
9117 comment. Call low_stopped_data_address.
9118 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
9119 m_dreg_interface.
9120 (ppc_linux_nat_target::masked_watch_num_registers): Use
9121 m_dreg_interface.
9122 (ppc_linux_nat_target::copy_thread_dreg_state)
9123 (ppc_linux_nat_target::mark_thread_stale)
9124 (ppc_linux_nat_target::mark_debug_registers_changed)
9125 (ppc_linux_nat_target::register_hw_breakpoint)
9126 (ppc_linux_nat_target::clear_hw_breakpoint)
9127 (ppc_linux_nat_target::register_wp)
9128 (ppc_linux_nat_target::clear_wp)
9129 (ppc_linux_nat_target::init_arch_lwp_info)
9130 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9131 (_initialize_ppc_linux_nat): Remove observer callback.
9132
4db10d8f
PFC
91332020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9134
9135 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9136 (ppc_linux_nat_target::auxv_parse)
9137 (ppc_linux_nat_target::read_description)
9138 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9139 Move up.
9140
1310c1b0
PFC
91412020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9142
9143 * linux-nat.h (low_new_clone): New method.
9144 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9145
69b037c3
SM
91462020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9147
9148 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9149 (dbx_expand_psymtab): ... this.
9150 (start_psymtab): Update.
9151 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9152 (mdebug_expand_psymtab): ... this.
9153 (parse_partial_symbols): Update.
9154 (new_psymtab): Update.
9155 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9156 (xcoff_expand_psymtab): ... this.
9157 (xcoff_start_psymtab): Update.
9158
48993951
SM
91592020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9160
9161 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9162 <expand_dependencies>: ... this.
9163 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9164 (partial_symtab::expand_dependencies): ... this.
9165 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9166 Update.
9167 (dwarf2_psymtab::expand_psymtab): Update.
9168 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9169 * mdebugread.c (psymtab_to_symtab_1): Update.
9170 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9171
3ad83046
SM
91722020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9173
9174 * psympriv.h (discard_psymtab): Remove.
9175 * dbxread.c (dbx_end_psymtab): Update.
9176 * xcoffread.c (xcoff_end_psymtab): Update.
9177
4d1b9ab6
TT
91782020-03-28 Tom Tromey <tom@tromey.com>
9179
9180 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9181 comment.
9182
f1749218
TT
91832020-03-28 Tom Tromey <tom@tromey.com>
9184
9185 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9186
ebea7626
HD
91872020-03-27 Hannes Domani <ssbssa@yahoo.de>
9188
9189 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9190
a879b4d5
JB
91912020-03-26 John Baldwin <jhb@FreeBSD.org>
9192
9193 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9194
0826b30a
TT
91952020-03-26 Tom Tromey <tom@tromey.com>
9196
9197 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9198 (mark_common_block_symbol_computed, read_tag_string_type)
9199 (attr_to_dynamic_prop, read_subrange_type): Update.
9200 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9201 to be methods on struct attribute.
9202 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9203 (read_call_site_scope, partial_die_info::read)
9204 (partial_die_info::read, lookup_die_type, follow_die_ref):
9205 Update.
9206 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9207 from dwarf2_get_ref_die_offset.
9208 (attribute::constant_value): New method, from
9209 dwarf2_get_attr_constant_value.
9210 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9211 Declare method.
9212 <constant_value>: New method.
9213
2b2558bf
TT
92142020-03-26 Tom Tromey <tom@tromey.com>
9215
9216 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9217 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9218 (dwarf_type_encoding_name): Move to stringify.c.
9219 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9220 * dwarf2/stringify.c: New file.
9221 * dwarf2/stringify.h: New file.
9222
eeb64781
TT
92232020-03-26 Tom Tromey <tom@tromey.com>
9224
9225 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9226 Rewrite.
9227
a39fdb41
TT
92282020-03-26 Tom Tromey <tom@tromey.com>
9229
9230 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9231 methods.
9232 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9233 (lookup_ranges_base): Likewise.
9234 (read_cutu_die_from_dwo, read_full_die_1): Update.
9235
436c571c
TT
92362020-03-26 Tom Tromey <tom@tromey.com>
9237
9238 * dwarf2/read.c (read_import_statement, read_file_scope)
9239 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9240 (read_lexical_block_scope, read_call_site_scope)
9241 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9242 (handle_struct_member_die, process_structure_scope)
9243 (update_enumeration_type_from_children)
9244 (process_enumeration_scope, read_array_type, read_common_block)
9245 (read_namespace, read_module, read_subroutine_type): Update.
9246 (sibling_die): Remove.
9247
052c8bb8
TT
92482020-03-26 Tom Tromey <tom@tromey.com>
9249
9250 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9251 (build_type_psymtabs_reader, read_structure_type)
9252 (read_enumeration_type, read_full_die_1): Update.
9253 (dwarf2_attr_no_follow): Move to die.h.
9254 * dwarf2/die.h (struct die_info) <attr>: New method.
9255
2b24b6e4
TT
92562020-03-26 Tom Tromey <tom@tromey.com>
9257
9258 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9259 <base_address>: Now an optional.
9260 (dwarf2_find_base_address, dwarf2_rnglists_process)
9261 (dwarf2_ranges_process, fill_in_loclist_baton)
9262 (dwarf2_symbol_mark_computed): Update.
9263
c2d50fd0
TT
92642020-03-26 Tom Tromey <tom@tromey.com>
9265
9266 * dwarf2/read.c (struct die_info): Move to die.h.
9267 * dwarf2/die.h: New file.
9268
0df7ad3a
TT
92692020-03-26 Tom Tromey <tom@tromey.com>
9270
9271 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9272 * dwarf2/read.c
9273 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9274 Move to line-header.c.
9275 (read_checked_initial_length_and_offset, read_formatted_entries):
9276 Likewise.
9277 (dwarf_decode_line_header): Split into two.
9278 * dwarf2/line-header.c
9279 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9280 Move from read.c.
9281 (read_checked_initial_length_and_offset, read_formatted_entries):
9282 Likewise.
9283 (dwarf_decode_line_header): New function, split from read.c.
9284
86c0bb4c
TT
92852020-03-26 Tom Tromey <tom@tromey.com>
9286
9287 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9288 Declare method.
9289 * dwarf2/read.c (read_attribute_value): Update.
9290 (dwarf2_per_objfile::read_line_string): Rename from
9291 read_indirect_line_string.
9292 (read_formatted_entries): Update.
9293
2ef46c2f
TT
92942020-03-26 Tom Tromey <tom@tromey.com>
9295
9296 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9297 variable.
9298
4f9c1eda
TT
92992020-03-26 Tom Tromey <tom@tromey.com>
9300
9301 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9302 const.
9303 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9304 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9305 parameter const.
9306
5a0e026f
TT
93072020-03-26 Tom Tromey <tom@tromey.com>
9308
9309 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9310 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9311 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9312 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9313
8844c11b
TT
93142020-03-26 Tom Tromey <tom@tromey.com>
9315
9316 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9317 file_names_size, file_full_name, file_file_name>: Use const.
9318 <file_name_at, file_names>: Add const overload.
9319 * dwarf2/line-header.c (line_header::file_file_name)
9320 (line_header::file_full_name): Update.
9321
c90ec28a
TT
93222020-03-26 Tom Tromey <tom@tromey.com>
9323
9324 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9325 (macro_start_file, consume_improper_spaces)
9326 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9327 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9328 (dwarf_decode_macros): Move to macro.c.
9329 * dwarf2/macro.c: New file.
9330 * dwarf2/macro.h: New file.
9331 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9332
4f44ae6c
TT
93332020-03-26 Tom Tromey <tom@tromey.com>
9334
9335 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9336 method.
9337 * dwarf2/section.c: New method. From
9338 read_indirect_string_at_offset_from.
9339 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9340 (read_indirect_string_at_offset_from): Move to section.c.
9341 (read_indirect_string_at_offset): Rewrite.
9342 (read_indirect_line_string_at_offset): Remove.
9343 (read_indirect_string, read_indirect_line_string)
9344 (dwarf_decode_macro_bytes): Update.
9345
a0194fa8
TT
93462020-03-26 Tom Tromey <tom@tromey.com>
9347
9348 * dwarf2/section.h (struct dwarf2_section_info)
9349 <overload_complaint>: Declare.
9350 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9351 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9352 Rename from dwarf2_section_buffer_overflow_complaint.
9353 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9354 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9355
3d27bbdb
TT
93562020-03-26 Tom Tromey <tom@tromey.com>
9357
9358 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9359 Declare.
9360 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9361 Move from read.c.
9362 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9363 to section.c.
9364
9eac9650
TT
93652020-03-26 Tom Tromey <tom@tromey.com>
9366
9367 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9368
bf80d710
TT
93692020-03-26 Tom Tromey <tom@tromey.com>
9370
9371 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9372 "builder".
9373 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9374 parameter.
9375 (dwarf_decode_macros): Update.
9376
0314b390
TT
93772020-03-26 Tom Tromey <tom@tromey.com>
9378
9379 * dwarf2/read.c (read_attribute_value): Update.
9380 (read_indirect_string_from_dwz): Move to dwz.c; change into
9381 method.
9382 (dwarf_decode_macro_bytes): Update.
9383 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9384 * dwarf2/dwz.c: New file.
9385 * Makefile.in (COMMON_SFILES): Add dwz.c.
9386
9fda78b6
TT
93872020-03-26 Tom Tromey <tom@tromey.com>
9388
9389 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9390 * dwarf2/read.c: Add include.
9391 * dwarf2/index-write.c: Add include.
9392 * dwarf2/index-cache.c: Add include.
9393 * dwarf2/dwz.h: New file.
9394
33aa3c10
TT
93952020-03-25 Tom Tromey <tom@tromey.com>
9396
9397 * compile/compile-object-load.c (get_out_value_type): Mention
9398 correct symbol name in error message.
9399
d503b685
HD
94002020-03-25 Hannes Domani <ssbssa@yahoo.de>
9401
9402 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9403
7b1eff95
TV
94042020-03-25 Tom de Vries <tdevries@suse.de>
9405
9406 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9407 * symmisc.c (dump_symtab_1): Print user and includes fields.
9408 (maintenance_info_symtabs): Same.
9409
dd895392
AB
94102020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9411
9412 PR gdb/25534
9413 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9414 (riscv_regcache_cooked_write): New function.
9415 (riscv_push_dummy_call): Use new function.
9416 (riscv_return_value): Likewise.
9417
5ab2fbf1
SM
94182020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9419
9420 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9421 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9422 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9423 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9424 * infrun.c (follow_fork): Likewise.
9425 (follow_fork_inferior): Likewise.
9426 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9427 * linux-nat.h (class linux_nat_target): Likewise.
9428 * remote.c (class remote_target) <follow_fork>: Likewise.
9429 (remote_target::follow_fork): Likewise.
9430 * target-delegates.c: Re-generate.
9431 * target.c (default_follow_fork): Likewise.
9432 (target_follow_fork): Likewise.
9433 * target.h (struct target_ops) <follow_fork>: Likewise.
9434 (target_follow_fork): Likewise.
9435
a64fafb5
TV
94362020-03-24 Tom de Vries <tdevries@suse.de>
9437
9438 * psymtab.c (maintenance_info_psymtabs): Print user field.
9439
fe26d3a3
TT
94402020-03-20 Tom Tromey <tromey@adacore.com>
9441
9442 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9443 const.
9444 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9445 const.
9446
c884cc46
SM
94472020-03-20 Simon Marchi <simon.marchi@efficios.com>
9448
9449 * ptrace.m4: Don't check for ptrace declaration.
9450 * config.in: Re-generate.
9451 * configure: Re-generate.
9452 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9453 not defined.
9454
1ff700c2
KR
94552020-03-20 Kamil Rytarowski <n54@gmx.com>
9456
9457 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9458 `PTRACE_TYPE_RET'.
9459 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9460 * sparc-nat.c (gdb_ptrace): Likewise.
9461 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9462
f7d4f0b1
TT
94632020-03-20 Tom Tromey <tromey@adacore.com>
9464
9465 * c-exp.y (lex_one_token): Fix assert.
9466
f67210ff
TT
94672020-03-20 Tom Tromey <tromey@adacore.com>
9468
9469 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9470 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9471 strncpy call.
9472
1773be9e
TT
94732020-03-20 Tom Tromey <tromey@adacore.com>
9474
9475 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9476
70304be9
TT
94772020-03-20 Tom Tromey <tromey@adacore.com>
9478
9479 * ada-valprint.c (print_variant_part): Remove parameters; switch
9480 to value-based API.
9481 (print_field_values): Likewise.
9482 (ada_val_print_struct_union): Likewise.
9483 (ada_value_print_1): Update.
9484
9faa006d
KR
94852020-03-20 Kamil Rytarowski <n54@gmx.com>
9486
9487 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9488 nbsd_nat_target instead of inf_ptrace_target.
9489 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9490 nbsd_nat_target.
9491
4a90f062
KR
94922020-03-20 Kamil Rytarowski <n54@gmx.com>
9493
9494 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9495 it to the ptrace call.
9496 * (store_registers): Likewise.
9497
94982020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
9499
9500 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9501 it to the ptrace call.
9502 * (store_registers): Likewise.
9503
2d07da27
LM
95042020-03-19 Luis Machado <luis.machado@linaro.org>
9505
9506 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9507 valid, fetch vg value from ptrace.
9508
f09db380
KR
95092020-03-19 Kamil Rytarowski <n54@gmx.com>
9510 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9511 * inf-ptrace.c: Likewise.
9512 * (gdb_ptrace): Add.
9513 * (inf_ptrace_target::resume): Update.
9514 * (inf_ptrace_target::xfer_partial): Likewise.
9515 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9516 * (inf_ptrace_peek_poke): Update.
9517
fcc7376e
KR
95182020-03-19 Kamil Rytarowski <n54@gmx.com>
9519
9520 * x86-bsd-nat.c (gdb_ptrace): New.
9521 * (x86bsd_dr_set): Add new argument `ptid'.
9522 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9523 x86bsd_dr_set_addr): Update.
9524
cada5fc9
AB
95252020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9526
9527 * remote.c (remote_target::process_stop_reply): Handle events for
9528 all threads differently.
9529
19a2740f
AB
95302020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9531
9532 * completer.c (completion_tracker::remove_completion): Define new
9533 function.
9534 * completer.h (completion_tracker::remove_completion): Declare new
9535 function.
9536 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9537 when adding a C++ function symbol.
9538
724fd9ba
AB
95392020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9540
9541 * completer.c (completion_tracker::completion_hash_entry): Define
9542 new class.
9543 (advance_to_filename_complete_word_point): Call
9544 recompute_lowest_common_denominator.
9545 (completion_tracker::completion_tracker): Call discard_completions
9546 to setup the hash table.
9547 (completion_tracker::discard_completions): Allow for being called
9548 from the constructor, pass new equal function, and element deleter
9549 when constructing the hash table. Initialise new class member
9550 variables.
9551 (completion_tracker::maybe_add_completion): Remove use of
9552 m_entries_vec, and store more information into m_entries_hash.
9553 (completion_tracker::recompute_lcd_visitor): New function, most
9554 content taken from...
9555 (completion_tracker::recompute_lowest_common_denominator):
9556 ...here, this now just visits each item in the hash calling the
9557 above visitor.
9558 (completion_tracker::build_completion_result): Remove use of
9559 m_entries_vec, call recompute_lowest_common_denominator.
9560 * completer.h (completion_tracker::have_completions): Remove use
9561 of m_entries_vec.
9562 (completion_tracker::completion_hash_entry): Declare new class.
9563 (completion_tracker::recompute_lowest_common_denominator): Change
9564 function signature.
9565 (completion_tracker::recompute_lcd_visitor): Declare new function.
9566 (completion_tracker::m_entries_vec): Delete.
9567 (completion_tracker::m_entries_hash): Initialize to NULL.
9568 (completion_tracker::m_lowest_common_denominator_valid): New
9569 member variable.
9570 (completion_tracker::m_lowest_common_denominator_max_length): New
9571 member variable.
9572
5a82b8a1
KR
95732020-03-17 Kamil Rytarowski <n54@gmx.com>
9574
9575 * regformats/regdef.h: Put reg in gdb namespace.
9576
fb516a69
KR
95772020-03-17 Kamil Rytarowski <n54@gmx.com>
9578
9579 * i386-bsd-nat.c (gdb_ptrace): New.
9580 * (i386bsd_fetch_inferior_registers,
9581 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9582 * (i386bsd_fetch_inferior_registers,
9583 i386bsd_store_inferior_registers) Use gdb_ptrace.
9584
1c0aa1fb
KR
95852020-03-17 Kamil Rytarowski <n54@gmx.com>
9586
9587 * amd64-bsd-nat.c (gdb_ptrace): New.
9588 * (amd64bsd_fetch_inferior_registers,
9589 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9590 * (amd64bsd_fetch_inferior_registers,
9591 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9592
5ccd2fb7
KR
95932020-03-17 Kamil Rytarowski <n54@gmx.com>
9594
9595 * user-regs.c (user_reg::read): Rename to...
9596 (user_reg::xread): ...this.
9597 * (append_user_reg): Rename argument `read' to `xread'.
9598 * (user_reg_add_builtin): Likewise.
9599 * (user_reg_add): Likewise.
9600 * (value_of_user_reg): Likewise.
9601
2108a63a
KR
96022020-03-17 Kamil Rytarowski <n54@gmx.com>
9603
9604 * sparc-nat.c (gdb_ptrace): New.
9605 * sparc-nat.c (sparc_fetch_inferior_registers)
9606 (sparc_store_inferior_registers) Remove obsolete comment.
9607 * sparc-nat.c (sparc_fetch_inferior_registers)
9608 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9609 * sparc-nat.c (sparc_fetch_inferior_registers)
9610 (sparc_store_inferior_registers) Use gdb_ptrace.
9611
a225c9a8
KR
96122020-03-17 Kamil Rytarowski <n54@gmx.com>
9613
9614 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9615 it to the ptrace call.
9616 * sh-nbsd-nat.c (store_registers): Likewise.
9617
98097623
KR
96182020-03-17 Kamil Rytarowski <n54@gmx.com>
9619
9620 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9621 nbsd_nat_target instead of inf_ptrace_target.
9622 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9623 nbsd_nat_target.
9624
9e38d619
KR
96252020-03-17 Kamil Rytarowski <n54@gmx.com>
9626
9627 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9628
a2ecbe9f
KR
96292020-03-17 Kamil Rytarowski <n54@gmx.com>
9630
9631 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9632 <sys/sysctl.h>.
9633 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9634
58990295
TV
96352020-03-17 Tom de Vries <tdevries@suse.de>
9636
9637 PR gdb/23710
9638 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9639 fields.
9640 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9641 fields.
9642 (process_imported_unit_die): Skip import of c++ CUs.
9643
771dd3a8
TT
96442020-03-16 Tom Tromey <tom@tromey.com>
9645
9646 * p-valprint.c (pascal_object_print_value): Initialize
9647 base_value.
9648
817a7585
AK
96492020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9650 Shahab Vahedi <shahab@synopsys.com>
9651
9652 * Makefile.in: Add arch/arc.o
9653 * configure.tgt: Likewise.
9654 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9655 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 9656 (arc_read_description): New function to cache target descriptions.
817a7585
AK
9657 * arc-tdep.h (arc_read_description): Add proto type.
9658 * arch/arc.c: New file.
9659 * arch/arc.h: Likewise.
9660 * features/Makefile: Replace old target descriptions with new.
9661 * features/arc-arcompact.c: Remove.
9662 * features/arc-arcompact.xml: Likewise.
9663 * features/arc-v2.c: Likewise
9664 * features/arc-v2.xml: Likewise
9665 * features/arc/aux-arcompact.xml: New file.
9666 * features/arc/aux-v2.xml: Likewise.
9667 * features/arc/core-arcompact.xml: Likewise.
9668 * features/arc/core-v2.xml: Likewise.
9669 * features/arc/aux-arcompact.c: Generate.
9670 * features/arc/aux-v2.c: Likewise.
9671 * features/arc/core-arcompact.c: Likewise.
9672 * features/arc/core-v2.c: Likewise.
9673 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9674
67430cd0
TT
96752020-03-16 Tom Tromey <tromey@adacore.com>
9676
9677 PR gdb/25663:
9678 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9679 putting value into bcache.
9680
30efb6c7
SM
96812020-03-16 Simon Marchi <simon.marchi@efficios.com>
9682
9683 PR gdb/21500
9684 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9685 to...
9686 (amd64_windows_init_abi_common): ... this. Don't set size of
9687 long type.
9688 (amd64_windows_init_abi): New function.
9689 (amd64_cygwin_init_abi): New function.
9690 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9691 the Cygwin OS ABI.
9692 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9693 comment.
9694
8db52437
SM
96952020-03-16 Simon Marchi <simon.marchi@efficios.com>
9696
9697 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9698 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9699 (pe_import_directory_entry): New struct type.
9700 (is_linked_with_cygwin_dll): New function.
9701 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9702 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9703 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9704
5982a56a
SM
97052020-03-16 Simon Marchi <simon.marchi@efficios.com>
9706
9707 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9708 i386_cygwin_core_osabi_sniffer.
9709
7a1998df
SM
97102020-03-16 Simon Marchi <simon.marchi@efficios.com>
9711
9712 * i386-cygwin-tdep.c: Rename to...
9713 * i386-windows-tdep.c: ... this.
9714 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9715 i386-windows-tdep.c.
9716 * configure.tgt: Likewise.
9717
053205cc
SM
97182020-03-16 Simon Marchi <simon.marchi@efficios.com>
9719
9720 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9721 * osabi.c (gdb_osabi_names): Add "Windows".
9722 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9723 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9724 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9725 i386_cygwin_osabi_sniffer.
9726 (_initialize_i386_cygwin_tdep): Register OS ABI
9727 GDB_OSABI_WINDOWS for i386.
9728 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9729 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9730 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9731 for x86-64.
9732 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9733 when the target matches '*-*-mingw*'.
9734
fe4b2ee6
SM
97352020-03-16 Simon Marchi <simon.marchi@efficios.com>
9736
9737 * defs.h (enum gdb_osabi): Move to...
9738 * osabi.h (enum gdb_osabi): ... here.
9739 * gdbarch.sh: Include osabi.h in gdbarch.h.
9740 * gdbarch.h: Re-generate.
9741
cb9b645d
SM
97422020-03-16 Simon Marchi <simon.marchi@efficios.com>
9743
9744 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9745 function.
9746 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9747
3293bbaf
TT
97482020-03-14 Tom Tromey <tom@tromey.com>
9749
9750 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9751 for C++.
9752 (c_type_print_modifier): Likewise. Add "language" parameter.
9753 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9754 (c_type_print_base_1): Update.
9755 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9756 constants.
9757 * type-stack.c (type_stack::insert): Handle tp_atomic and
9758 tp_restrict.
9759 (type_stack::follow_type_instance_flags): Likewise.
9760 (type_stack::follow_types): Likewise. Merge type-following code.
9761 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9762 (space_identifier, cv_with_space_id)
9763 (const_or_volatile_or_space_identifier_noopt)
9764 (const_or_volatile_or_space_identifier): Remove.
9765 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9766 rules.
9767 (ptr_operator, typebase): Update.
9768 (enum token_flag) <FLAG_C>: New constant.
9769 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9770 "_Atomic".
9771 (lex_one_token): Handle FLAG_C.
9772
154151a6
KR
97732020-03-14 Kamil Rytarowski <n54@gmx.com>
9774
9775 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9776 it to the ptrace call.
9777 * m68k-bsd-nat.c (store_registers): Likewise.
9778
bc107784
KR
97792020-03-14 Kamil Rytarowski <n54@gmx.com>
9780
9781 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9782 gdb_byte *.
9783 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9784 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9785 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9786
01a80117
KR
97872020-03-14 Kamil Rytarowski <n54@gmx.com>
9788
9789 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
9790 nbsd_nat_target instead of inf_ptrace_target.
9791 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9792 nbsd_nat_target.
9793
f90280ca
KR
97942020-03-14 Kamil Rytarowski <n54@gmx.com>
9795
9796 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
9797 register_t.
9798
6def66f1
KR
97992020-03-14 Kamil Rytarowski <n54@gmx.com>
9800
9801 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9802 it to the ptrace call.
9803 * alpha-bsd-nat.c (store_registers): Likewise.
9804
66eaca97
KR
98052020-03-14 Kamil Rytarowski <n54@gmx.com>
9806
9807 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
9808 includes.
9809 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
9810 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
9811 fill_fpregset): Likewise.
9812
4fed520b
KR
98132020-03-14 Kamil Rytarowski <n54@gmx.com>
9814
9815 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
9816 nbsd_nat_target instead of inf_ptrace_target.
9817 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9818 nbsd_nat_target.
9819
2190cf06
KR
98202020-03-14 Kamil Rytarowski <n54@gmx.com>
9821
9822 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
9823 register_t.
9824
75c56d3d
KR
98252020-03-14 Kamil Rytarowski <n54@gmx.com>
9826
9827 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
9828 it to the ptrace call.
9829 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
9830 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
9831 * arm-nbsd-nat.c (store_register): Likewise.
9832 * arm-nbsd-nat.c (store_regs): Likewise.
9833 * arm-nbsd-nat.c (store_fp_register): Likewise.
9834 * arm-nbsd-nat.c (store_fp_regs): Likewise.
9835
6018d381
KR
98362020-03-14 Kamil Rytarowski <n54@gmx.com>
9837
9838 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
9839 nbsd_nat_target instead of inf_ptrace_target.
9840 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9841 nbsd_nat_target.
9842
013f99f0
KR
98432020-03-14 Kamil Rytarowski <n54@gmx.com>
9844
9845 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9846 it to the ptrace call.
9847 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9848
12753073
KR
98492020-03-14 Kamil Rytarowski <n54@gmx.com>
9850
6227b330
KR
9851 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9852 it to the ptrace call.
9853 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9854
98552020-03-14 Kamil Rytarowski <n54@gmx.com>
9856
9857 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9858 gdb_byte *.
12753073
KR
9859 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9860
d5be5fa4
KR
98612020-03-14 Kamil Rytarowski <n54@gmx.com>
9862
9863 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9864 instead of inf_ptrace_target.
9865 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9866 nbsd_nat_target.
9867
8110f842
KR
98682020-03-14 Kamil Rytarowski <n54@gmx.com>
9869
9870 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9871 register_t.
9872
52feded7
KR
98732020-03-14 Kamil Rytarowski <n54@gmx.com>
9874
9875 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9876 register_t.
9877
25567eee
KR
98782020-03-14 Kamil Rytarowski <n54@gmx.com>
9879
9880 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9881 register_t.
9882
426a9c18
TT
98832020-03-13 Tom Tromey <tom@tromey.com>
9884
9885 * value.h (val_print): Don't declare.
9886 * valprint.h (val_print_array_elements)
9887 (val_print_scalar_formatted, generic_val_print): Don't declare.
9888 * valprint.c (generic_val_print_array): Take a struct value.
9889 (generic_val_print_ptr, generic_val_print_memberptr)
9890 (generic_val_print_bool, generic_val_print_int)
9891 (generic_val_print_char, generic_val_print_complex)
9892 (generic_val_print): Remove.
9893 (generic_value_print): Update.
9894 (do_val_print): Remove unused parameters. Don't call
9895 la_val_print.
9896 (val_print): Remove.
9897 (common_val_print): Update. Don't call value_check_printable.
9898 (val_print_scalar_formatted, val_print_array_elements): Remove.
9899 * rust-lang.c (rust_val_print): Remove.
9900 (rust_language_defn): Update.
9901 * p-valprint.c (pascal_val_print): Remove.
9902 (pascal_value_print_inner): Update.
9903 (pascal_object_print_val_fields, pascal_object_print_val):
9904 Remove.
9905 (pascal_object_print_static_field): Update.
9906 * p-lang.h (pascal_val_print): Don't declare.
9907 * p-lang.c (pascal_language_defn): Update.
9908 * opencl-lang.c (opencl_language_defn): Update.
9909 * objc-lang.c (objc_language_defn): Update.
9910 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9911 * m2-lang.h (m2_val_print): Don't declare.
9912 * m2-lang.c (m2_language_defn): Update.
9913 * language.h (struct language_defn) <la_val_print>: Remove.
9914 * language.c (unk_lang_value_print_inner): Rename. Change
9915 argument types.
9916 (unknown_language_defn, auto_language_defn): Update.
9917 * go-valprint.c (go_val_print): Remove.
9918 * go-lang.h (go_val_print): Don't declare.
9919 * go-lang.c (go_language_defn): Update.
9920 * f-valprint.c (f_val_print): Remove.
9921 * f-lang.h (f_value_print): Don't declare.
9922 * f-lang.c (f_language_defn): Update.
9923 * d-valprint.c (d_val_print): Remove.
9924 * d-lang.h (d_value_print): Don't declare.
9925 * d-lang.c (d_language_defn): Update.
9926 * cp-valprint.c (cp_print_value_fields)
9927 (cp_print_value_fields_rtti, cp_print_value): Remove.
9928 (cp_print_static_field): Update.
9929 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9930 (c_val_print_struct, c_val_print_union, c_val_print_int)
9931 (c_val_print_memberptr, c_val_print): Remove.
9932 * c-lang.h (c_val_print_array, cp_print_value_fields)
9933 (cp_print_value_fields_rtti): Don't declare.
9934 * c-lang.c (c_language_defn, cplus_language_defn)
9935 (asm_language_defn, minimal_language_defn): Update.
9936 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9937 (ada_val_print_enum): Take a struct value.
9938 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9939 (ada_val_print): Remove.
9940 (ada_value_print_1): Update.
9941 (printable_val_type): Remove.
9942 * ada-lang.h (ada_val_print): Don't declare.
9943 * ada-lang.c (ada_language_defn): Update.
9944
42331a1e
TT
99452020-03-13 Tom Tromey <tom@tromey.com>
9946
9947 * valprint.c (do_val_print): Update.
9948 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9949 a struct value.
9950 (value_to_value_object_no_release): Declare.
9951 * python/py-value.c (value_to_value_object_no_release): New
9952 function.
9953 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9954 struct value.
9955 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9956 function.
9957 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9958 a struct value.
9959 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9960 Declare.
9961 (gdbscm_apply_val_pretty_printer): Take a struct value.
9962 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9963 value.
9964 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9965 value.
9966 * extension-priv.h (struct extension_language_ops)
9967 <apply_val_pretty_printer>: Take a struct value.
9968 * cp-valprint.c (cp_print_value): Create a struct value.
9969 (cp_print_value): Update.
9970
3a916a97
TT
99712020-03-13 Tom Tromey <tom@tromey.com>
9972
9973 * ada-valprint.c (print_field_values): Call common_val_print.
9974
b59eac37
TT
99752020-03-13 Tom Tromey <tom@tromey.com>
9976
9977 * ada-valprint.c (val_print_packed_array_elements): Remove
9978 bitoffset and val parameters. Call common_val_print.
9979 (ada_val_print_string): Remove offset, address, and original_value
9980 parameters.
9981 (ada_val_print_array): Update.
9982 (ada_value_print_array): New function.
9983 (ada_value_print_1): Call it.
9984
03371129
TT
99852020-03-13 Tom Tromey <tom@tromey.com>
9986
9987 * ada-valprint.c (ada_value_print): Use common_val_print.
9988
2e088f8b
TT
99892020-03-13 Tom Tromey <tom@tromey.com>
9990
9991 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9992
39ef85a8
TT
99932020-03-13 Tom Tromey <tom@tromey.com>
9994
9995 * ada-valprint.c (ada_value_print_num): New function.
9996 (ada_value_print_1): Use it.
9997
b9fa6e07
TT
99982020-03-13 Tom Tromey <tom@tromey.com>
9999
10000 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
10001
416595d6
TT
100022020-03-13 Tom Tromey <tom@tromey.com>
10003
10004 * ada-valprint.c (ada_value_print_ptr): New function.
10005 (ada_value_print_1): Use it.
10006
5b5e15ec
TT
100072020-03-13 Tom Tromey <tom@tromey.com>
10008
10009 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
10010 call common_val_print.
10011 (ada_val_print_1): Update.
10012 (ada_value_print_1): New function.
10013 (ada_value_print_inner): Rewrite.
10014
fbf54e75
TT
100152020-03-13 Tom Tromey <tom@tromey.com>
10016
10017 * cp-valprint.c (cp_print_value_fields): Update.
10018 (cp_print_value): New function.
10019
64b653ca
TT
100202020-03-13 Tom Tromey <tom@tromey.com>
10021
10022 * m2-valprint.c (m2_value_print_inner): Use
10023 cp_print_value_fields.
10024 * cp-valprint.c (cp_print_value_fields): New function.
10025 * c-valprint.c (c_value_print_struct): New function.
10026 (c_value_print_inner): Use c_value_print_struct.
10027 * c-lang.h (cp_print_value_fields): Declare.
10028
6999f067
TT
100292020-03-13 Tom Tromey <tom@tromey.com>
10030
10031 * c-valprint.c (c_value_print_array): New function.
10032 (c_value_print_inner): Use it.
10033
ce80b8bd
TT
100342020-03-13 Tom Tromey <tom@tromey.com>
10035
10036 * c-valprint.c (c_value_print_memberptr): New function.
10037 (c_value_print_inner): Use it.
10038
2faac269
TT
100392020-03-13 Tom Tromey <tom@tromey.com>
10040
10041 * c-valprint.c (c_value_print_int): New function.
10042 (c_value_print_inner): Use it.
10043
da3e2c29
TT
100442020-03-13 Tom Tromey <tom@tromey.com>
10045
10046 * c-valprint.c (c_value_print_ptr): New function.
10047 (c_value_print_inner): Use it.
10048
50836231
TT
100492020-03-13 Tom Tromey <tom@tromey.com>
10050
10051 * c-valprint.c (c_value_print_inner): Rewrite.
10052
4f412b6e
TT
100532020-03-13 Tom Tromey <tom@tromey.com>
10054
10055 * valprint.c (generic_value_print_complex): New function.
10056 (generic_value_print): Use it.
10057
f5354008
TT
100582020-03-13 Tom Tromey <tom@tromey.com>
10059
10060 * valprint.c (generic_val_print_float): Don't call
10061 val_print_scalar_formatted.
10062 (generic_val_print, generic_value_print): Update.
10063
3eec3b05
TT
100642020-03-13 Tom Tromey <tom@tromey.com>
10065
10066 * valprint.c (generic_value_print_char): New function
10067 (generic_value_print): Use it.
10068
fdddfccb
TT
100692020-03-13 Tom Tromey <tom@tromey.com>
10070
10071 * valprint.c (generic_value_print_int): New function.
10072 (generic_value_print): Use it.
10073
6dde7521
TT
100742020-03-13 Tom Tromey <tom@tromey.com>
10075
10076 * valprint.c (generic_value_print_bool): New function.
10077 (generic_value_print): Use it.
10078
4112d2e6
TT
100792020-03-13 Tom Tromey <tom@tromey.com>
10080
10081 * valprint.c (generic_val_print_func): Simplify.
10082 (generic_val_print, generic_value_print): Update.
10083
65786af6
TT
100842020-03-13 Tom Tromey <tom@tromey.com>
10085
10086 * valprint.c (generic_val_print_flags): Remove.
10087 (generic_val_print, generic_value_print): Update.
10088 (val_print_type_code_flags): Add original_value parameter.
10089
40f3ce18
TT
100902020-03-13 Tom Tromey <tom@tromey.com>
10091
10092 * valprint.c (generic_val_print): Update.
10093 (generic_value_print): Update.
10094 * valprint.c (generic_val_print_enum): Don't call
10095 val_print_scalar_formatted.
10096
2a5b130b
TT
100972020-03-13 Tom Tromey <tom@tromey.com>
10098
10099 * valprint.c (generic_value_print): Call generic_value_print_ptr.
10100 * valprint.c (generic_value_print_ptr): New function.
10101
abc66ce9
TT
101022020-03-13 Tom Tromey <tom@tromey.com>
10103
10104 * valprint.c (generic_value_print): Rewrite.
10105
07a32858
TT
101062020-03-13 Tom Tromey <tom@tromey.com>
10107
10108 * p-valprint.c (pascal_object_print_value_fields)
10109 (pascal_object_print_value): New functions.
10110
64d64d3a
TT
101112020-03-13 Tom Tromey <tom@tromey.com>
10112
10113 * p-valprint.c (pascal_value_print_inner): Rewrite.
10114
6a95a1f5
TT
101152020-03-13 Tom Tromey <tom@tromey.com>
10116
10117 * f-valprint.c (f_value_print_innner): Rewrite.
10118
59fcdac6
TT
101192020-03-13 Tom Tromey <tom@tromey.com>
10120
10121 * m2-valprint.c (m2_print_unbounded_array): New overload.
10122 (m2_print_unbounded_array): Update.
10123 (m2_print_array_contents): Take a struct value.
10124 (m2_value_print_inner): Rewrite.
10125
d133c3e1
TT
101262020-03-13 Tom Tromey <tom@tromey.com>
10127
10128 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10129 (d_value_print_inner): New function.
10130 * d-lang.h (d_value_print_inner): Declare.
10131 * d-lang.c (d_language_defn): Use d_value_print_inner.
10132
23b0f06b
TT
101332020-03-13 Tom Tromey <tom@tromey.com>
10134
10135 * go-valprint.c (go_value_print_inner): New function.
10136 * go-lang.h (go_value_print_inner): Declare.
10137 * go-lang.c (go_language_defn): Use go_value_print_inner.
10138
5f56f7cb
TT
101392020-03-13 Tom Tromey <tom@tromey.com>
10140
10141 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10142 API.
10143 (rust_val_print): Rewrite.
10144 (rust_value_print_inner): New function, from rust_val_print.
10145 (rust_language_defn): Use rust_value_print_inner.
10146
26792ee0
TT
101472020-03-13 Tom Tromey <tom@tromey.com>
10148
10149 * ada-valprint.c (ada_value_print_inner): New function.
10150 * ada-lang.h (ada_value_print_inner): Declare.
10151 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10152
24051bbe
TT
101532020-03-13 Tom Tromey <tom@tromey.com>
10154
10155 * f-valprint.c (f_value_print_innner): New function.
10156 * f-lang.h (f_value_print_innner): Declare.
10157 * f-lang.c (f_language_defn): Use f_value_print_innner.
10158
c0941be6
TT
101592020-03-13 Tom Tromey <tom@tromey.com>
10160
10161 * p-valprint.c (pascal_value_print_inner): New function.
10162 * p-lang.h (pascal_value_print_inner): Declare.
10163 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10164
62c4663d
TT
101652020-03-13 Tom Tromey <tom@tromey.com>
10166
10167 * m2-valprint.c (m2_value_print_inner): New function.
10168 * m2-lang.h (m2_value_print_inner): Declare.
10169 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10170
62182190
TT
101712020-03-13 Tom Tromey <tom@tromey.com>
10172
10173 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10174 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10175 * c-valprint.c (c_value_print_inner): New function.
10176 * c-lang.h (c_value_print_inner): Declare.
10177 * c-lang.c (c_language_defn, cplus_language_defn)
10178 (asm_language_defn, minimal_language_defn): Use
10179 c_value_print_inner.
10180
1e592a8a
TT
101812020-03-13 Tom Tromey <tom@tromey.com>
10182
10183 * p-valprint.c (pascal_object_print_value_fields): Now static.
10184 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10185
7fe471e9
TT
101862020-03-13 Tom Tromey <tom@tromey.com>
10187
10188 * c-valprint.c (c_val_print_array): Simplify.
10189
d121c6ce
TT
101902020-03-13 Tom Tromey <tom@tromey.com>
10191
10192 * valprint.c (value_print_array_elements): New function.
10193 * valprint.h (value_print_array_elements): Declare.
10194
4dba70ee
TT
101952020-03-13 Tom Tromey <tom@tromey.com>
10196
10197 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10198 * mips-tdep.c (mips_print_register): Use
10199 value_print_scalar_formatted.
10200
4f9ae810
TT
102012020-03-13 Tom Tromey <tom@tromey.com>
10202
10203 * valprint.h (value_print_scalar_formatted): Declare.
10204 * valprint.c (value_print_scalar_formatted): New function.
10205
156bfec9
TT
102062020-03-13 Tom Tromey <tom@tromey.com>
10207
10208 * valprint.h (generic_value_print): Declare.
10209 * valprint.c (generic_value_print): New function.
10210
2b4e573d
TT
102112020-03-13 Tom Tromey <tom@tromey.com>
10212
10213 * valprint.c (do_val_print): Call la_value_print_inner, if
10214 available.
10215 * rust-lang.c (rust_language_defn): Update.
10216 * p-lang.c (pascal_language_defn): Update.
10217 * opencl-lang.c (opencl_language_defn): Update.
10218 * objc-lang.c (objc_language_defn): Update.
10219 * m2-lang.c (m2_language_defn): Update.
10220 * language.h (struct language_defn) <la_value_print_inner>: New
10221 member.
10222 * language.c (unknown_language_defn, auto_language_defn): Update.
10223 * go-lang.c (go_language_defn): Update.
10224 * f-lang.c (f_language_defn): Update.
10225 * d-lang.c (d_language_defn): Update.
10226 * c-lang.c (c_language_defn, cplus_language_defn)
10227 (asm_language_defn, minimal_language_defn): Update.
10228 * ada-lang.c (ada_language_defn): Update.
10229
a1f6a07c
TT
102302020-03-13 Tom Tromey <tom@tromey.com>
10231
10232 * c-valprint.c (c_value_print): Use common_val_print.
10233
410cf315
TT
102342020-03-13 Tom Tromey <tom@tromey.com>
10235
10236 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10237
72a45c93
TT
102382020-03-13 Tom Tromey <tom@tromey.com>
10239
10240 * f-valprint.c (f77_print_array_1, f_val_print): Use
10241 common_val_print.
10242
040f66bd
TT
102432020-03-13 Tom Tromey <tom@tromey.com>
10244
10245 * riscv-tdep.c (riscv_print_one_register_info): Use
10246 common_val_print.
10247
a6e05a6c
TT
102482020-03-13 Tom Tromey <tom@tromey.com>
10249
10250 * mi/mi-main.c (output_register): Use common_val_print.
10251
3444c526
TT
102522020-03-13 Tom Tromey <tom@tromey.com>
10253
10254 * infcmd.c (default_print_one_register_info): Use
10255 common_val_print.
10256
c2a44efe
TT
102572020-03-13 Tom Tromey <tom@tromey.com>
10258
10259 * valprint.h (common_val_print_checked): Declare.
10260 * valprint.c (common_val_print_checked): New function.
10261 * stack.c (print_frame_arg): Use common_val_print_checked.
10262
b0c26e99
TT
102632020-03-13 Tom Tromey <tom@tromey.com>
10264
10265 * valprint.c (do_val_print): New function, from val_print.
10266 (val_print): Use do_val_print.
10267 (common_val_print): Use do_val_print.
10268
ce3acbe9
TT
102692020-03-13 Tom Tromey <tom@tromey.com>
10270
10271 * valprint.c (value_print): Use scoped_value_mark.
10272
96c7f873
TV
102732020-03-13 Tom de Vries <tdevries@suse.de>
10274
10275 PR symtab/25646
10276 * psymtab.c (partial_symtab::partial_symtab): Don't set
10277 globals_offset and statics_offset. Push element onto
10278 current_global_psymbols and current_static_psymbols stacks.
10279 (concat): New function.
10280 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10281 element from current_global_psymbols and current_static_psymbols
10282 stacks. Concat popped elements to global_psymbols and
10283 static_symbols.
10284 (add_psymbol_to_list): Use current_global_psymbols and
10285 current_static_psymbols stacks.
10286 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10287 current_static_psymbols fields.
10288
6ba0a321
CB
102892020-03-12 Christian Biesinger <cbiesinger@google.com>
10290
10291 * corelow.c (sniff_core_bfd): Remove.
10292 (class core_target) <m_core_vec>: Remove.
10293 (core_target::core_target): Update.
10294 (core_file_fns): Remove.
10295 (deprecated_add_core_fns): Remove.
10296 (default_core_sniffer): Remove.
10297 (sniff_core_bfd): Remove.
10298 (default_check_format): Remove.
10299 (gdb_check_format): Remove.
10300 (core_target_open): Update.
10301 (core_target::get_core_register_section): Update.
10302 (get_core_registers_cb): Update.
10303 (core_target::fetch_registers): Update.
10304 * gdbcore.h (struct core_fns): Remove.
10305 (deprecated_add_core_fns): Remove.
10306 (default_core_sniffer): Remove.
10307 (default_check_format): Remove.
10308
227031b2
TT
103092020-03-12 Tom Tromey <tom@tromey.com>
10310
10311 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10312 CORE_ADDR.
10313 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10314
53807e9f
TT
103152020-03-12 Tom Tromey <tom@tromey.com>
10316
10317 * remote.c (remote_target::download_tracepoint)
10318 (remote_target::enable_tracepoint)
10319 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10320 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10321 sprintf_vma.
10322
64f25102
TT
103232020-03-12 Tom Tromey <tom@tromey.com>
10324
10325 * symfile-mem.c: Update CORE_ADDR size assert.
10326
272cd5a3
SM
103272020-03-12 Simon Marchi <simon.marchi@efficios.com>
10328
10329 * selftest.m4: Move to gdbsupport/.
10330 * acinclude.m4: Update path to selftest.m4.
10331
74cd3f9d
SM
103322020-03-12 Simon Marchi <simon.marchi@efficios.com>
10333
10334 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10335 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10336 gdbarch-selfselftests.c and selftest-arch.c.
10337 (SUBDIR_UNITTESTS_OBS): Rename to...
10338 (SELFTESTS_OBS): ... this.
10339 (COMMON_SFILES): Remove disasm-selftests.c and
10340 gdbarch-selftests.c.
10341 * configure.ac: Don't add selftest-arch.{c,o} to
10342 CONFIG_{SRCS,OBS}.
10343 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10344 preprocessor conditions.
10345
db6878ac
SM
103462020-03-12 Simon Marchi <simon.marchi@efficios.com>
10347
10348 * configure.ac: Don't source bfd/development.sh.
10349 * selftest.m4: Modify comment.
10350 * configure: Re-generate.
10351
4d696a5c
SM
103522020-03-12 Simon Marchi <simon.marchi@efficios.com>
10353
10354 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10355 not "true" or "false".
10356 * configure: Re-generate.
10357
8dd8e1c7
CB
103582020-03-12 Christian Biesinger <cbiesinger@google.com>
10359
10360 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10361 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10362 renamed to arm_nbsd_supply_gregset.
10363 (fetch_register): Update to call arm_nbsd_supply_gregset.
10364 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10365 (arm_netbsd_nat_target::fetch_registers): Update.
10366 (fetch_elfcore_registers): Removed.
10367 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10368 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10369 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10370 not require NetBSD system headers.
10371 (arm_nbsd_regset): New struct.
10372 (arm_nbsd_iterate_over_regset_sections): New function.
10373 (arm_netbsd_init_abi_common): Updated to call
10374 set_gdbarch_iterate_over_regset_sections.
10375 * arm-nbsd-tdep.h: New file.
10376
dd69bf7a
KB
103772020-03-11 Kevin Buettner <kevinb@redhat.com>
10378
10379 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10380 recursion.
10381
a0761e34
SM
103822020-03-11 Simon Marchi <simon.marchi@efficios.com>
10383
10384 * configure: Re-generate.
10385
e7a82140
TT
103862020-03-11 Tom Tromey <tromey@adacore.com>
10387
10388 * ada-typeprint.c (print_choices): Fix comment.
10389
dcc050c8
AB
103902020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10391
10392 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10393 previous item in the list, when the list has no items.
10394
1c33af77
TV
103952020-03-11 Tom de Vries <tdevries@suse.de>
10396
10397 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10398 PROP_LOCLIST handling code.
10399
8c95582d
AB
104002020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10401
10402 * buildsym-legacy.c (record_line): Pass extra parameter to
10403 record_line.
10404 * buildsym.c (buildsym_compunit::record_line): Take an extra
10405 parameter, reduce duplication in the line table, and record the
10406 is_stmt flag in the line table.
10407 * buildsym.h (buildsym_compunit::record_line): Add extra
10408 parameter.
10409 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10410 non-statement lines.
10411 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10412 this to the symtab builder.
10413 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10414 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10415 through to dwarf_record_line_1.
10416 * infrun.c (process_event_stop_test): When stepping, don't stop at
10417 a non-statement instruction, and only refresh the step info when
10418 we land in the middle of a line's range. Also add an extra
10419 comment.
10420 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10421 field.
10422 * record-btrace.c (btrace_find_line_range): Only record lines
10423 marked as is-statement.
10424 * stack.c (frame_show_address): Show the frame address if we are
10425 in a non-statement sal.
10426 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10427 (maintenance_print_one_line_table): Print a header for the is_stmt
10428 column, and include is_stmt information in the output.
10429 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10430 preference to non-statements.
10431 (find_pcs_for_symtab_line): Prefer is-statement entries.
10432 (find_line_common): Likewise.
10433 * symtab.h (struct linetable_entry): Add is_stmt field.
10434 (struct symtab_and_line): Likewise.
10435 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10436 arranging the line table.
10437
e4003a34
TV
104382020-03-07 Tom de Vries <tdevries@suse.de>
10439
10440 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10441 DIE.
10442
e8932576
TT
104432020-03-07 Tom Tromey <tom@tromey.com>
10444
10445 * valops.c (value_literal_complex): Remove obsolete comment.
10446 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10447 comment.
10448
29734269
SM
104492020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10450
10451 * infrun.h: Forward-declare thread_info.
10452 (set_step_info): Add thread_info parameter, add doc.
10453 * infrun.c (set_step_info): Add thread_info parameter, move doc
10454 to header.
10455 * infrun.c (process_event_stop_test): Pass thread to
10456 set_step_info call.
10457 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10458 set_step_info.
10459 (prepare_one_step): Add thread_info parameter, pass it to
10460 set_step_frame and prepare_one_step (recursive) call.
10461 (step_1): Pass thread to prepare_one_step call.
10462 (step_command_fsm::should_stop): Pass thread to
10463 prepare_one_step.
10464 (until_next_fsm): Pass thread to set_step_frame call.
10465 (finish_command): Pass thread to set_step_info call.
10466
b7d64b29
HD
104672020-03-06 Hannes Domani <ssbssa@yahoo.de>
10468
10469 * windows-tdep.c (windows_solib_create_inferior_hook):
10470 Check if inferior is running.
10471
09f2921c
TV
104722020-03-06 Tom de Vries <tdevries@suse.de>
10473
10474 * NEWS: Fix "the the".
10475 * ctfread.c: Same.
10476
fd760e79
TV
104772020-03-06 Tom de Vries <tdevries@suse.de>
10478
10479 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10480
20ea4a60
AB
104812020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10482
10483 * .dir-locals.el: Add a comment referencing the other copies of
10484 this file.
10485
0afbabf0
JB
104862020-03-05 John Baldwin <jhb@FreeBSD.org>
10487
10488 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10489 psargs.
10490
842806cb
TBA
104912020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10492
10493 * .gitattributes: New file.
10494
be1e3d3e
TT
104952020-03-04 Tom Tromey <tom@tromey.com>
10496
10497 * symmisc.c (print_symbol_bcache_statistics)
10498 (print_objfile_statistics): Update.
10499 * symfile.c (allocate_symtab): Use intern.
10500 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10501 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10502 macro_cache>: Remove.
10503 <string_cache>: New member.
10504 (struct objfile) <intern>: New methods.
10505 * elfread.c (elf_symtab_read): Use intern.
10506 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10507 (dwarf2_compute_name, dwarf2_physname)
10508 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10509 names.
10510 (guess_partial_die_structure_name): Update.
10511 (partial_die_info::fixup): Intern name.
10512 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10513 name.
10514 (dwarf2_name): Intern name. Update.
10515 * buildsym.c (buildsym_compunit::get_macro_table): Use
10516 string_cache.
10517
4e7625fd
TT
105182020-03-04 Tom Tromey <tom@tromey.com>
10519
10520 * jit.c (bfd_open_from_target_memory): Make "target" const.
10521 * corefile.c (gnutarget): Now const.
10522 * gdbcore.h (gnutarget): Now const.
10523
46f9f931
HD
105242020-03-04 Hannes Domani <ssbssa@yahoo.de>
10525
10526 * NEWS: Mention support for WOW64 processes.
10527 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10528 (amd64_windows_segment_register_p): Remove static.
10529 (_initialize_amd64_windows_nat): Update.
10530 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10531 * i386-windows-nat.c (context_offset): Update.
10532 (i386_mappings): Rename and remove static.
10533 (i386_windows_segment_register_p): Remove static.
10534 (_initialize_i386_windows_nat): Update.
10535 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10536 (STATUS_WX86_SINGLE_STEP): New macro.
10537 (EnumProcessModulesEx): New macro.
10538 (Wow64SuspendThread): New macro.
10539 (Wow64GetThreadContext): New macro.
10540 (Wow64SetThreadContext): New macro.
10541 (Wow64GetThreadSelectorEntry): New macro.
10542 (windows_set_context_register_offsets): Add static.
10543 (windows_set_segment_register_p): Likewise.
10544 (windows_add_thread): Adapt for WOW64 processes.
10545 (windows_fetch_one_register): Likewise.
10546 (windows_nat_target::fetch_registers): Likewise.
10547 (windows_store_one_register): Likewise.
10548 (display_selector): Likewise.
10549 (display_selectors): Likewise.
10550 (handle_exception): Likewise.
10551 (windows_continue): Likewise.
10552 (windows_nat_target::resume): Likewise.
10553 (windows_add_all_dlls): Likewise.
10554 (do_initial_windows_stuff): Likewise.
10555 (windows_nat_target::attach): Likewise.
10556 (windows_get_exec_module_filename): Likewise.
10557 (windows_nat_target::create_inferior): Likewise.
10558 (windows_xfer_siginfo): Likewise.
10559 (_initialize_loadable): Initialize Wow64SuspendThread,
10560 Wow64GetThreadContext, Wow64SetThreadContext,
10561 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10562 * windows-nat.h (windows_set_context_register_offsets):
10563 Remove declaration.
10564 (windows_set_segment_register_p): Likewise.
10565 (i386_windows_segment_register_p): Add declaration.
10566 (amd64_windows_segment_register_p): Likewise.
10567
440cf44e
LM
105682020-03-04 Luis Machado <luis.machado@linaro.org>
10569
10570 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10571 in "info registers" for AArch64/ARM.
10572
10573 The change caused "info registers" to not print GPR's.
10574
10575 gdb/ChangeLog:
10576
10577 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10578
10579 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10580 when reg->group is empty and reggroup is not.
10581
1009d92f
TT
105822020-03-03 Tom Tromey <tromey@adacore.com>
10583
10584 * dwarf2/frame.c (struct dwarf2_frame_cache)
10585 <checked_tailcall_bottom, entry_cfa_sp_offset,
10586 entry_cfa_sp_offset_p>: Remove members.
10587 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10588 (dwarf2_frame_prev_register): Don't call
10589 dwarf2_tailcall_sniffer_first.
10590 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10591 * frame-unwind.c (add_unwinder): New fuction.
10592 (frame_unwind_init): Use it. Add tailcall unwinder.
10593
5e5d66b6
AB
105942020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10595 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10596
10597 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10598 value should be printed as true.
10599
584cf46d
HD
106002020-03-03 Hannes Domani <ssbssa@yahoo.de>
10601
10602 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10603 (windows_init_abi): Set and use windows_so_ops.
10604
7b973adc
SDJ
106052020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10606
10607 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10608 when verifying if dealing with a convenience variable.
10609
bb7b70ab
LM
106102020-03-03 Luis Machado <luis.machado@linaro.org>
10611
10612 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10613
9822cb57
SM
106142020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10615
10616 * infrun.c (gdbarch_supports_displaced_stepping): New.
10617 (use_displaced_stepping): Break up conditions in smaller pieces.
10618 Use gdbarch_supports_displaced_stepping.
10619 (displaced_step_prepare_throw): Use
10620 gdbarch_supports_displaced_stepping.
10621
63e163f2
AB
106222020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10623
10624 * NEWS: Mention new behaviour of the history filename.
10625 * top.c (write_history_p): Add comment.
10626 (show_write_history_p): Add header comment, give a different
10627 message when history writing is on, but the history filename is
10628 empty.
10629 (history_filename): Add comment.
10630 (history_filename_empty): New function.
10631 (show_history_filename): Add header comment, give a different
10632 message when the filename is empty.
10633 (init_history): Compare history_filename against nullptr, and only
10634 read history if the filename is not empty.
10635 (set_history_filename): Add header comment, and only make
10636 non-empty filenames absolute.
10637 (init_main): Make the filename argument to 'set history filename'
10638 optional.
10639
81b86b97
CB
106402020-03-02 Christian Biesinger <cbiesinger@google.com>
10641
10642 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10643 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10644 (fetch_fp_register): Update.
10645 (fetch_fp_regs): Update.
10646 (store_fp_register): Update.
10647 (store_fp_regs): Update.
10648 (arm_netbsd_nat_target::read_description): New function.
10649 (fetch_elfcore_registers): Update.
10650
24ed6739
AB
106512020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10652
10653 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10654 general_thread if the stop reply is missing a thread-id.
10655 (remote_target::process_stop_reply): Use the first non-exited
10656 thread if the target didn't pass a thread-id.
10657 * infrun.c (do_target_wait): Move call to
10658 switch_to_inferior_no_thread to ....
10659 (do_target_wait_1): ... here.
10660
a84bb2a0
JT
106612020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10662
10663 * debuginfod-support.c: Include defs.h first.
10664
658dadf0
TV
106652020-02-28 Tom de Vries <tdevries@suse.de>
10666
10667 * symfile.c (set_initial_language): Use default language for lookup.
10668
4ebe4877
SM
106692020-02-28 Simon Marchi <simon.marchi@efficios.com>
10670
10671 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10672 reader variable, pass `this` to read_cutu_die_from_dwo.
10673
e5da1139
AM
106742020-02-27 Aaron Merey <amerey@redhat.com>
10675
10676 * source.c (open_source_file): Check for nullptr when computing
10677 srcpath.
10678
317f7127
TT
106792020-02-27 Tom Tromey <tromey@adacore.com>
10680
10681 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10682 member.
10683 (dwarf2_add_field): Don't update nfields.
10684 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10685
3104d9ee
AB
106862020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10687
10688 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10689 abs.
10690
b83470bf
TT
106912020-02-26 Tom Tromey <tom@tromey.com>
10692
10693 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10694 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10695 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10696 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10697 per_cu_data.
10698
edfe0a0c
TT
106992020-02-26 Tom Tromey <tom@tromey.com>
10700
10701 * dwarf2/index-write.c (psym_index_map): Change type.
10702 (add_address_entry_worker, write_one_signatured_type)
10703 (recursively_count_psymbols, recursively_write_psymbols)
10704 (class debug_names, psyms_seen_size, write_gdbindex)
10705 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10706
0d79cdc4
AM
107072020-02-26 Aaron Merey <amerey@redhat.com>
10708
10709 * Makefile.in: Handle optional debuginfod support.
10710 * NEWS: Update.
10711 * README: Add --with-debuginfod summary.
10712 * config.in: Regenerate.
10713 * configure: Regenerate.
10714 * configure.ac: Handle optional debuginfod support.
10715 * debuginfod-support.c: debuginfod helper functions.
10716 * debuginfod-support.h: Ditto.
10717 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10718 summary.
10719 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10720 when a dwz file cannot be found.
10721 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10722 debuginfo file cannot be found.
10723 * source.c (open_source_file): Query debuginfod servers when a
10724 source file cannot be found.
10725 * top.c (print_gdb_configuration): Include
10726 --{with,without}-debuginfod in the output.
10727
b65ce565
JG
107282020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10729
10730 * thread.c (thr_try_catch_cmd): Print thread name.
10731
d4c9a4f8
SM
107322020-02-26 Simon Marchi <simon.marchi@efficios.com>
10733
10734 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10735 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10736 dwarf2_fetch_die_type_sect_off): Move to...
10737 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10738 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10739 dwarf2_fetch_die_type_sect_off): ... here.
10740 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10741 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10742 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10743
0dce4280
TV
107442020-02-26 Tom de Vries <tdevries@suse.de>
10745
10746 PR gdb/25603
10747 * symfile.c (set_initial_language): Exit-early if
10748 language_mode == language_mode_manual.
10749
450a1bfc
SM
107502020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10751
10752 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10753 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10754 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10755
9e80cfa1
AB
107562020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10757
10758 * gdbtypes.c (create_array_type_with_stride): Handle negative
10759 array strides.
10760 * valarith.c (value_subscripted_rvalue): Likewise.
10761
09624f1f
LM
107622020-02-25 Luis Machado <luis.machado@linaro.org>
10763
10764 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10765
8cb5117c
SM
107662020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10767
10768 * loc.h (dwarf2_get_die_type): Move to...
10769 * read.h (dwarf2_get_die_type): ... here.
10770 * read.c (dwarf2_get_die_type): Move doc to header.
10771
c325c44e
JB
107722020-02-25 Joel Brobecker <brobecker@adacore.com>
10773
10774 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10775 'gnulib/Makefile.in' to the list.
10776
4ac93832
TT
107772020-02-24 Tom Tromey <tom@tromey.com>
10778
10779 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10780 Remove.
10781 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10782 XOBNEWVEC.
10783
197400e8
TT
107842020-02-24 Tom Tromey <tom@tromey.com>
10785
10786 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10787 New method.
10788 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10789 (dw2_do_instantiate_symtab, dw2_get_file_names)
10790 (build_type_psymtab_dependencies, load_full_type_unit): Update.
10791
76935768
TT
107922020-02-24 Tom Tromey <tom@tromey.com>
10793
10794 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
10795 make_scoped_restore.
10796 (dwarf2_psymtab::read_symtab): Don't clear
10797 reading_partial_symbols.
10798
a88ef40d
TV
107992020-02-24 Tom de Vries <tdevries@suse.de>
10800
10801 PR gdb/25592
10802 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10803
c9af6521
TV
108042020-02-24 Tom de Vries <tdevries@suse.de>
10805
10806 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
10807 commands layout next/prev/regs.
10808
5707a07a
TT
108092020-02-22 Tom Tromey <tom@tromey.com>
10810
10811 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
10812 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
10813
3b0fb49e
TT
108142020-02-22 Tom Tromey <tom@tromey.com>
10815
10816 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
10817
283be8bf
TT
108182020-02-22 Tom Tromey <tom@tromey.com>
10819
10820 * tui/tui-win.c (_initialize_tui_win): Add usage text.
10821 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
10822 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
10823 * tui/tui.c (_initialize_tui): Add usage text.
10824
ca793b96
TT
108252020-02-22 Tom Tromey <tom@tromey.com>
10826
10827 * tui/tui-win.c (tui_set_focus_command)
10828 (tui_set_win_height_command): Use error_no_arg.
10829 (_initialize_tui_win): Update help text.
10830 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
10831
432b5c40
TT
108322020-02-22 Tom Tromey <tom@tromey.com>
10833
10834 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
10835 * tui/tui-disasm.h (struct tui_disasm_window)
10836 <display_start_addr>: Declare.
10837 * tui/tui-source.h (struct tui_source_window)
10838 <display_start_addr>: Declare.
10839 * tui/tui-winsource.h (struct tui_source_window_base)
10840 <show_source_line, display_start_addr>: New methods.
10841 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
10842 Rename and move to protected section.
10843 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
10844 (tui_source_window_base::do_erase_source_content): Update.
10845 (tui_source_window_base::show_source_line): Now a method.
10846 (tui_source_window_base::show_source_content)
10847 (tui_source_window_base::tui_source_window_base)
10848 (tui_source_window_base::rerender)
10849 (tui_source_window_base::refill)
10850 (tui_source_window_base::do_scroll_horizontal)
10851 (tui_source_window_base::set_is_exec_point_at)
10852 (tui_source_window_base::update_breakpoint_info)
10853 (tui_source_window_base::update_exec_info): Update.
10854 * tui/tui-source.c (tui_source_window::set_contents)
10855 (tui_source_window::showing_source_p)
10856 (tui_source_window::do_scroll_vertical)
10857 (tui_source_window::location_matches_p)
10858 (tui_source_window::line_is_displayed): Update.
10859 (tui_source_window::display_start_addr): New method.
10860 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10861 (tui_disasm_window::do_scroll_vertical)
10862 (tui_disasm_window::location_matches_p): Update.
10863 (tui_disasm_window::display_start_addr): New method.
10864
01b1af32
TT
108652020-02-22 Tom Tromey <tom@tromey.com>
10866
10867 * NEWS: Add entry for gdb.register_window_type.
10868 * tui/tui-layout.h (window_factory): New typedef.
10869 (tui_register_window): Declare.
10870 * tui/tui-layout.c (saved_tui_windows): New global.
10871 (tui_apply_current_layout): Use it.
10872 (tui_register_window): New function.
10873 * python/python.c (do_start_initialization): Call
10874 gdbpy_initialize_tui.
10875 (python_GdbMethods): Add "register_window_type" function.
10876 * python/python-internal.h (gdbpy_register_tui_window)
10877 (gdbpy_initialize_tui): Declare.
10878 * python/py-tui.c: New file.
10879 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10880
fc96d20b
TT
108812020-02-22 Tom Tromey <tom@tromey.com>
10882
10883 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10884
935c78c0
TT
108852020-02-22 Tom Tromey <tom@tromey.com>
10886
10887 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10888 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10889 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10890 (tui_set_win_focus_to): Move from tui-win.c.
10891
0240c8f1
TT
108922020-02-22 Tom Tromey <tom@tromey.com>
10893
10894 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10895 functions.
10896 (known_window_types): New global.
10897 (tui_get_window_by_name): Reimplement.
10898 (initialize_known_windows): New function.
10899 (validate_window_name): Rewrite.
10900 (_initialize_tui_layout): Call initialize_known_windows.
10901
fdb01f0c
TT
109022020-02-22 Tom Tromey <tom@tromey.com>
10903
10904 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10905 Remove constants.
10906 * tui/tui-winsource.h (struct tui_source_window_base)
10907 <tui_source_window_base>: Remove parameter.
10908 * tui/tui-winsource.c
10909 (tui_source_window_base::tui_source_window_base): Remove
10910 parameter.
10911 (tui_source_window_base::refill): Update.
10912 * tui/tui-stack.h (struct tui_locator_window)
10913 <tui_locator_window>: Update.
10914 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10915 Default the constructor.
10916 * tui/tui-regs.h (struct tui_data_item_window)
10917 <tui_data_item_window>: Default the constructor.
10918 (struct tui_data_window) <tui_data_window>: Likewise.
10919 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10920 Default the constructor.
10921 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10922 Default the constructor.
10923 <type>: Remove.
10924 (struct tui_win_info) <tui_win_info>: Default the constructor.
10925 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10926 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10927 Default the constructor.
10928
865a5aec
TT
109292020-02-22 Tom Tromey <tom@tromey.com>
10930
10931 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10932 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10933 * tui/tui-win.c (tui_resize_all): Don't call
10934 tui_delete_invisible_windows.
10935 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10936 done.
10937 (tui_set_layout): Update.
10938 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10939 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10940 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10941
e098d18c
TT
109422020-02-22 Tom Tromey <tom@tromey.com>
10943
10944 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10945 correctly.
10946
eb9c8874
TT
109472020-02-22 Tom Tromey <tom@tromey.com>
10948
10949 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10950
7eed1a8e
TT
109512020-02-22 Tom Tromey <tom@tromey.com>
10952
10953 * tui/tui-winsource.h (struct tui_source_window_iterator)
10954 <inner_iterator>: New etytypedef.
10955 <tui_source_window_iterator>: Take "end" parameter.
10956 <tui_source_window_iterator>: Take iterator.
10957 <operator*, advance>: Update.
10958 <m_iter>: Change type.
10959 <m_end>: New field.
10960 (struct tui_source_windows) <begin, end>: Update.
10961 * tui/tui-layout.c (tui_windows): New global.
10962 (tui_apply_current_layout): Clear tui_windows.
10963 (tui_layout_window::apply): Update tui_windows.
10964 * tui/tui-data.h (tui_windows): Declare.
10965 (all_tui_windows): Now inline function.
10966 (class tui_window_iterator, struct all_tui_windows): Remove.
10967
7c043ba6
TT
109682020-02-22 Tom Tromey <tom@tromey.com>
10969
10970 PR tui/17850:
10971 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10972 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10973 "height" argument.
10974 (class tui_layout_window) <get_sizes>: Likewise.
10975 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10976 argument.
10977 <get_sizes>: Add "height" argument.
10978 <m_vertical>: New field.
10979 * tui/tui-layout.c (tui_layout_split::clone): Update.
10980 (tui_layout_split::get_sizes): Add "height" argument.
10981 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10982 (tui_new_layout_command): Parse "-horizontal".
10983 (_initialize_tui_layout): Update help string.
10984 (tui_layout_split::specification): Add "-horizontal" when needed.
10985 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10986 argument.
10987 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10988 New methods.
10989
6bc56648
TT
109902020-02-22 Tom Tromey <tom@tromey.com>
10991
10992 * tui/tui-layout.h (enum tui_adjust_result): New.
10993 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10994 (class tui_layout_window) <adjust_size>: Return
10995 tui_adjust_result. Rewrite.
10996 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10997 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10998
c22fef7e
TT
109992020-02-22 Tom Tromey <tom@tromey.com>
11000
11001 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
11002 parameter and return types.
11003 (class tui_layout_base) <specification>: Add "depth".
11004 (class tui_layout_window) <specification>: Add "depth".
11005 (class tui_layout_split) <specification>: Add "depth".
11006 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
11007 and return types.
11008 (tui_new_layout_command): Parse sub-layouts.
11009 (_initialize_tui_layout): Update help string.
11010 (tui_layout_window::specification): Add "depth".
11011 (add_layout_command): Update.
11012
ee325b61
TT
110132020-02-22 Tom Tromey <tom@tromey.com>
11014
11015 * NEWS: Add "tui new-layout" item.
11016 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
11017 Add new-layout command to help text.
11018 (validate_window_name): New function.
11019 (tui_new_layout_command): New function.
11020 (_initialize_tui_layout): Register "new-layout".
11021 (tui_layout_window::specification): New method.
11022 (tui_layout_window::specification): New method.
11023 * tui/tui-layout.h (class tui_layout_base) <specification>: New
11024 method.
11025 (class tui_layout_window) <specification>: New method.
11026 (class tui_layout_split) <specification>: New method.
11027
416eb92d
TT
110282020-02-22 Tom Tromey <tom@tromey.com>
11029
11030 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
11031 * tui/tui-win.c (window_name_completer): Update comment.
11032 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
11033 Declare method.
11034 (class tui_layout_window) <replace_window>: Likewise.
11035 (class tui_layout_split) <replace_window>: Likewise.
11036 (tui_set_layout): Don't declare.
11037 (tui_set_initial_layout): Declare function.
11038 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
11039 (asm_regs_layout): New globals.
11040 (tui_current_layout, show_layout): Remove.
11041 (tui_set_layout, tui_add_win_to_layout): Rewrite.
11042 (find_layout, tui_apply_layout): New function.
11043 (layout_completer): Remove.
11044 (tui_next_layout): Reimplement.
11045 (tui_next_layout_command): New function.
11046 (tui_set_initial_layout, tui_prev_layout_command): New functions.
11047 (tui_regs_layout): Reimplement.
11048 (tui_regs_layout_command): New function.
11049 (extract_display_start_addr): Rewrite.
11050 (next_layout, prev_layout): Remove.
11051 (tui_layout_window::replace_window): New method.
11052 (tui_layout_split::replace_window): New method.
11053 (destroy_layout): New function.
11054 (layout_list): New global.
11055 (add_layout_command): New function.
11056 (initialize_layouts): Update.
11057 (tui_layout_command): New function.
11058 (_initialize_tui_layout): Install "layout" commands.
11059 * tui/tui-data.h (enum tui_layout_type): Remove.
11060 (tui_current_layout): Don't declare.
11061
0dbc2fc7
TT
110622020-02-22 Tom Tromey <tom@tromey.com>
11063
11064 * tui/tui-regs.c (tui_reg_layout): Remove.
11065 (tui_reg_command): Use tui_regs_layout.
11066 * tui/tui-layout.h (tui_reg_command): Declare.
11067 * tui/tui-layout.c (tui_reg_command): New function.
11068
5afe342e
TT
110692020-02-22 Tom Tromey <tom@tromey.com>
11070
11071 * tui/tui.c (tui_rl_delete_other_windows): Call
11072 tui_remove_some_windows.
11073 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
11074 Declare method.
11075 (class tui_layout_window) <remove_windows>: New method.
11076 (class tui_layout_split) <remove_windows>: Declare.
11077 (tui_remove_some_windows): Declare.
11078 * tui/tui-layout.c (tui_remove_some_windows): New function.
11079 (tui_layout_split::remove_windows): New method.
11080
427326a8
TT
110812020-02-22 Tom Tromey <tom@tromey.com>
11082
11083 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
11084 * tui/tui-layout.h (tui_next_layout): Declare.
11085 * tui/tui-layout.c (tui_next_layout): New function.
11086
3fe12b6d
TT
110872020-02-22 Tom Tromey <tom@tromey.com>
11088
11089 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
11090 correct coordinates.
11091
59b8b5d2
TT
110922020-02-22 Tom Tromey <tom@tromey.com>
11093
11094 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
11095 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
11096 DATA_WIN case.
11097
2a3d458b
TT
110982020-02-22 Tom Tromey <tom@tromey.com>
11099
11100 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
11101 TUI_DISASM_WIN, not tui_win_list.
11102
3f0cbb04
TT
111032020-02-22 Tom Tromey <tom@tromey.com>
11104
11105 * valprint.c (generic_val_print_enum_1)
11106 (val_print_type_code_flags): Style member names.
11107 * rust-lang.c (val_print_struct, rust_print_enum)
11108 (rust_print_struct_def, rust_internal_print_type): Style member
11109 names.
11110 * p-valprint.c (pascal_object_print_value_fields): Style member
11111 names. Only call fprintf_symbol_filtered for static members.
11112 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
11113 * f-valprint.c (f_val_print): Style member names.
11114 * f-typeprint.c (f_type_print_base): Style member names.
11115 * cp-valprint.c (cp_print_value_fields): Style member names. Only
11116 call fprintf_symbol_filtered for static members.
11117 (cp_print_class_member): Style member names.
11118 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
11119 member names.
11120 * ada-valprint.c (ada_print_scalar): Style enum names.
11121 (ada_val_print_enum): Likewise.
11122 * ada-typeprint.c (print_enum_type): Style enum names.
11123
d4d947ae
TT
111242020-02-21 Tom Tromey <tom@tromey.com>
11125
11126 * psympriv.h (struct partial_symtab): Update comment.
11127
e94e944b
TT
111282020-02-21 Tom Tromey <tromey@adacore.com>
11129
11130 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11131 type is CORE_ADDR.
11132
1eb73179
TV
111332020-02-21 Tom de Vries <tdevries@suse.de>
11134
11135 PR gdb/25534
11136 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11137 if dependencies[i]->user != NULL.
11138
4f180d53
AT
111392020-02-21 Ali Tamur <tamur@google.com>
11140
11141 * dwarf2/read.c (dwarf2_name): Add null check.
11142
22b6cd70
TT
111432020-02-20 Tom Tromey <tom@tromey.com>
11144
11145 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11146 ">=", in binary search.
11147 (dwarf2_find_containing_comp_unit): New overload.
11148 (run_test): New self-test.
11149 (_initialize_dwarf2_read): Register new test.
11150
bd0cf5a6
NC
111512020-02-20 Nelson Chu <nelson.chu@sifive.com>
11152
11153 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11154 * riscv-tdep.h: Likewise.
11155 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11156 rv32-only CSR.
11157 * features/riscv/64bit-csr.xml: Regenerated.
11158
3f702acd
SDJ
111592020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11160 Tom Tromey <tom@tromey.com>
11161
11162 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11163 of 'fputc_unfiltered'.
11164 (putchar_unfiltered): Call 'fputc_unfiltered'.
11165 (fputc_unfiltered): Call 'fputs_unfiltered'.
11166
d13c7322
AB
111672020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11168
11169 * config.in: Regenerate.
11170 * configure: Regenerate.
11171 * configure.ac: Add --with-python-libdir option.
11172 * main.c: Use WITH_PYTHON_LIBDIR.
11173
869d8950
TT
111742020-02-19 Tom Tromey <tom@tromey.com>
11175
11176 * symtab.c (general_symbol_info::compute_and_set_names): Use
11177 obstack_strndup. Simplify call to symbol_set_demangled_name.
11178
298e9637
SM
111792020-02-19 Simon Marchi <simon.marchi@efficios.com>
11180
11181 * dwarf2/read.c (allocate_signatured_type_table,
11182 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11183 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11184 Remove objfile parameter, update all callers.
11185
08410482
DE
111862020-02-19 Doug Evans <dje@google.com>
11187
11188 PR rust/25535
11189 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11190 rust_enum_variant calculation.
11191
dfdeeca1
TT
111922020-02-19 Tom Tromey <tromey@adacore.com>
11193
11194 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11195
2ef5453b
TT
111962020-02-19 Tom Tromey <tromey@adacore.com>
11197
11198 * ada-lang.c (cache_symbol): Use obstack_strdup.
11199
9f1528a1
AB
112002020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11201
11202 * configure: Regenerate.
11203
d3c22fa8
TT
112042020-02-19 Tom Tromey <tromey@adacore.com>
11205
11206 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11207 NULL check.
11208
bf84f706
MR
112092020-02-19 Maciej W. Rozycki <macro@wdc.com>
11210
11211 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11212
d1c9b20f
AB
112132020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11214
11215 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11216 if GDBSERVER is not defined.
11217 (riscv_tdesc_cache): Likewise, also store const target_desc.
11218 (STATIC_IN_GDB): Define.
11219 (riscv_create_target_description): Update declaration with
11220 STATIC_IN_GDB.
11221 (riscv_lookup_target_description): New function, only define if
11222 GDBSERVER is not defined.
11223 * arch/riscv.h (riscv_create_target_description): Declare only
11224 when GDBSERVER is defined.
11225 (riscv_lookup_target_description): New declaration when GDBSERVER
11226 is not defined.
11227 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11228 (riscv_linux_read_features): ...this, and return
11229 riscv_gdbarch_features instead of target_desc.
11230 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11231 (riscv_linux_read_description): Rename to...
11232 (riscv_linux_read_features): ...this.
11233 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11234 Update to use riscv_gdbarch_features and
11235 riscv_lookup_target_description.
11236 * riscv-tdep.c (riscv_find_default_target_description): Use
11237 riscv_lookup_target_description instead of
11238 riscv_create_target_description.
11239
373d7ac0
SM
112402020-02-18 Simon Marchi <simon.marchi@efficios.com>
11241
11242 * valprint.c (generic_val_print_enum_1): When printing a flag
11243 enum with value 0 and there is no enumerator with value 0, print
11244 just "0" instead of "(unknown: 0x0)".
11245
b29a2df0
SM
112462020-02-18 Simon Marchi <simon.marchi@efficios.com>
11247
11248 * valprint.c (generic_val_print_enum_1): Print unknown part of
11249 flag enum in hex.
11250
6740f0cc
SM
112512020-02-18 Simon Marchi <simon.marchi@efficios.com>
11252
11253 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11254 flag enums to contain duplicate enumerators.
11255 * valprint.c (generic_val_print_enum_1): Update comment.
11256
edd45eb0
SM
112572020-02-18 Simon Marchi <simon.marchi@efficios.com>
11258
11259 * dwarf2/read.c: Include "count-one-bits.h".
11260 (update_enumeration_type_from_children): If an enumerator has
11261 multiple bits set, don't treat the enumeration as a "flag enum".
11262 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11263 of flag enums have 0 or 1 bit set.
11264
6d0cf446
BE
112652020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11266
11267 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11268 conversion.
11269 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11270 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11271 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11272 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11273 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11274
7001c1b7
SM
112752020-02-18 Simon Marchi <simon.marchi@efficios.com>
11276
11277 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11278
fdb61c6c
SM
112792020-02-14 Simon Marchi <simon.marchi@efficios.com>
11280
11281 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11282 displaced_step_closure_up.
11283 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11284 (struct displaced_step_closure_up):
11285 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11286 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11287 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11288 Likewise.
11289 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11290 * gdbarch.c, gdbarch.h: Re-generate.
11291 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11292 displaced_step_closure_up.
11293 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11294 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11295 * infrun.h (displaced_step_closure_up): New type alias.
11296 (struct displaced_step_inferior_state) <step_closure>: Change
11297 type to displaced_step_closure_up.
11298 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11299 displaced_step_closure_up.
11300 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11301
a4a38eb4
TT
113022020-02-14 Tom Tromey <tom@tromey.com>
11303
11304 * minidebug.c (gnu_debug_key): New global.
11305 (find_separate_debug_file_in_section): Use it.
11306
e8217e61
SM
113072020-02-14 Simon Marchi <simon.marchi@efficios.com>
11308
11309 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11310 std::unique_ptr.
11311 * gdbarch.c: Re-generate.
11312 * gdbarch.h: Re-generate.
11313 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11314 change.
11315 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11316 type to std::unique_ptr.
11317 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11318 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11319 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11320 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11321 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11322 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11323 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11324 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11325 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11326
d8d83535
SM
113272020-02-14 Simon Marchi <simon.marchi@efficios.com>
11328
11329 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11330 std::unique_ptr.
11331 (displaced_step_clear): Rename to...
11332 (displaced_step_reset): ... this. Just call displaced->reset ().
11333 (displaced_step_clear_cleanup): Rename to...
11334 (displaced_step_reset_cleanup): ... this.
11335 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11336 (displaced_step_fixup): Likewise.
11337 (resume_1): Likewise.
11338 (handle_inferior_event): Restore child's memory before calling
11339 displaced_step_fixup on the parent.
11340 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11341 to std::unique_ptr.
11342 <step_closure>: Change type to std::unique_ptr.
11343
5f661e03
SM
113442020-02-14 Simon Marchi <simon.marchi@efficios.com>
11345
11346 * arm-tdep.c: Include count-one-bits.h.
11347 (cleanup_block_store_pc): Use count_one_bits.
11348 (cleanup_block_load_pc): Use count_one_bits.
11349 (arm_copy_block_xfer): Use count_one_bits.
11350 (thumb2_copy_block_xfer): Use count_one_bits.
11351 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11352 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11353 (thumb_get_next_pcs_raw): Use count_one_bits.
11354 (arm_get_next_pcs_raw): Use count_one_bits_l.
11355 * arch/arm.c (bitcount): Remove.
11356 * arch/arm.h (bitcount): Remove.
11357
8084e579
TT
113582020-02-14 Tom Tromey <tromey@adacore.com>
11359
11360 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11361 Update.
11362 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11363 * dwarf2/loc.c (call_site_find_chain_1): Return
11364 unique_xmalloc_ptr.
11365 (call_site_find_chain): Likewise.
11366
258bf0ee
RB
113672020-02-14 Richard Biener <rguenther@suse.de>
11368
11369 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11370 on expression with division operators.
11371
f98a8458
AKS
113722020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11373
11374 * MAINTAINERS (Write After Approval): Adding myself.
11375
d1437c0e
TT
113762020-02-12 Tom Tromey <tom@tromey.com>
11377
11378 * event-loop.c (event_data, gdb_event, event_handler_func):
11379 Remove.
11380
3d4560f7
TT
113812020-02-12 Tom Tromey <tom@tromey.com>
11382
11383 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11384 (dwarf2_frame_objfile_data): Add comment.
11385 (find_comp_unit, set_comp_unit): New functions.
11386 (dwarf2_frame_find_fde): Use find_comp_unit.
11387 (dwarf2_build_frame_info): Use set_comp_unit.
11388
21982304
TT
113892020-02-12 Tom Tromey <tom@tromey.com>
11390
11391 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11392 (comp_unit): Don't initialize objfile.
11393 (execute_cfa_program): Add text_offset parameter.
11394 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11395 (dwarf2_frame_cache): Update.
11396 (dwarf2_build_frame_info): Don't set "objfile" member.
11397
4debb237
TT
113982020-02-12 Tom Tromey <tom@tromey.com>
11399
11400 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11401 (decode_frame_entry): Likewise.
11402 (dwarf2_build_frame_info): Update.
11403
0d404d44
TT
114042020-02-12 Tom Tromey <tom@tromey.com>
11405
11406 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11407 (decode_frame_entry_1): Use the comp_unit obstack.
11408
a7a3ae5c
TT
114092020-02-12 Tom Tromey <tom@tromey.com>
11410
11411 * dwarf2/frame.c (struct comp_unit): Add initializers and
11412 constructor.
11413 (dwarf2_frame_objfile_data): Store a comp_unit.
11414 (dwarf2_frame_find_fde): Update.
11415 (dwarf2_build_frame_info): Use "new".
11416
a9d65418
TT
114172020-02-12 Tom Tromey <tom@tromey.com>
11418
11419 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11420 (dwarf2_fde_table): Typedef for std::vector.
11421 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11422 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11423 (decode_frame_entry): Update.
11424 (dwarf2_build_frame_info): Use "new".
11425
7559c217
CB
114262020-02-12 Christian Biesinger <cbiesinger@google.com>
11427
11428 * arm-tdep.c (arm_gdbarch_init): Update.
11429 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11430 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11431 have_neon, is_m>: Change to bool.
11432
aeefc73c
CB
114332020-02-12 Christian Biesinger <cbiesinger@google.com>
11434
11435 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11436
d27b8e5f
TT
114372020-02-12 Tom Tromey <tom@tromey.com>
11438
11439 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11440
cd5900f3
HD
114412020-02-12 Hannes Domani <ssbssa@yahoo.de>
11442
11443 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11444 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11445
f056b22b
TT
114462020-02-11 Tom Tromey <tom@tromey.com>
11447
11448 * psymtab.h: Update comment.
11449
f92ff6b5
TT
114502020-02-11 Tom Tromey <tom@tromey.com>
11451
11452 * gdb_obstack.h (struct auto_obstack): Use
11453 DISABLE_COPY_AND_ASSIGN.
11454
3fd6912b
TT
114552020-02-11 Tom Tromey <tom@tromey.com>
11456
11457 * dwarf2/frame.h (struct objfile): Don't forward declare.
11458
69ed9b74
CB
114592020-02-11 Christian Biesinger <cbiesinger@google.com>
11460
11461 * cris-tdep.c (cris_supply_gregset): Change signature to match
11462 what struct regset expects.
11463 (cris_regset): New struct.
11464 (fetch_core_registers): Remove.
11465 (cris_iterate_over_regset_sections): New function.
11466 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11467 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11468
bda874f6
CB
114692020-02-11 Christian Biesinger <cbiesinger@google.com>
11470
11471 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11472 registers.
11473
754e1564
CB
114742020-02-11 Christian Biesinger <cbiesinger@google.com>
11475
11476 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11477
8ddd8e0e
SM
114782020-02-11 Simon Marchi <simon.marchi@efficios.com>
11479
11480 * configure: Re-generate.
11481
898e7f60
SM
114822020-02-11 Simon Marchi <simon.marchi@efficios.com>
11483
11484 * configure: Re-generate.
11485
58df732b
SM
114862020-02-11 Simon Marchi <simon.marchi@efficios.com>
11487
11488 * acinclude: Update warning.m4 path.
11489 * warning.m4: Move to gdbsupport.
11490
da5bd37e
TT
114912020-02-11 Tom Tromey <tromey@adacore.com>
11492
11493 * remote.c (remote_console_output): Update.
11494 * printcmd.c (printf_command): Update.
11495 * event-loop.c (gdb_wait_for_event): Update.
11496 * linux-nat.c (sigchld_handler): Update.
11497 * remote-sim.c (gdb_os_write_stdout): Update.
11498 (gdb_os_flush_stdout): Update.
11499 (gdb_os_flush_stderr): Update.
11500 (gdb_os_write_stderr): Update.
11501 * exceptions.c (print_exception): Update.
11502 * remote-fileio.c (remote_fileio_func_read): Update.
11503 (remote_fileio_func_write): Update.
11504 * tui/tui.c (tui_enable): Update.
11505 * tui/tui-interp.c (tui_interp::init): Update.
11506 * utils.c (init_page_info): Update.
11507 (putchar_unfiltered, fputc_unfiltered): Update.
11508 (gdb_flush): Update.
11509 (emit_style_escape): Update.
11510 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11511 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11512 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11513 (stderr_file::write): Update.
11514 (stderr_file::puts): Update.
11515 * ui-file.h (ui_file_isatty, ui_file_write)
11516 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11517 (ui_file_puts): Don't declare.
11518
85f0dd3c
TV
115192020-02-10 Tom de Vries <tdevries@suse.de>
11520
11521 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11522 sentinel to char *.
11523
2e927613
TV
115242020-02-09 Tom de Vries <tdevries@suse.de>
11525
11526 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11527 filename if it matches "<artificial>".
11528
6bafc845
HD
115292020-02-09 Hannes Domani <ssbssa@yahoo.de>
11530
11531 * windows-tdep.c (struct enum_value_name): New struct.
11532 (create_enum): New function.
11533 (windows_get_siginfo_type): Create and use enum types.
11534
7928d571
HD
115352020-02-09 Hannes Domani <ssbssa@yahoo.de>
11536
11537 * NEWS: Mention $_siginfo support for Windows.
11538 * windows-nat.c (handle_exception): Set siginfo_er.
11539 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11540 (windows_xfer_siginfo): New function.
11541 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11542 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11543 (init_windows_gdbarch_data): New function.
11544 (get_windows_gdbarch_data): New function.
11545 (windows_get_siginfo_type): New function.
11546 (windows_init_abi): Register windows_get_siginfo_type.
11547 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11548
6751ebae
TT
115492020-02-08 Tom Tromey <tom@tromey.com>
11550
11551 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11552 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11553 <keep>: Declare method.
11554 <m_keep>: Remove member.
11555 <~cutu_reader>: Remove.
11556 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11557 (cutu_reader::cutu_reader): Update.
11558 (cutu_reader::keep): Rename from ~cutu_reader.
11559 (process_psymtab_comp_unit, build_type_psymtabs_1)
11560 (process_skeletonless_type_unit, load_partial_comp_unit)
11561 (load_full_comp_unit, dwarf2_read_addr_index)
11562 (read_signatured_type): Update.
11563
135f5437
TT
115642020-02-08 Tom Tromey <tom@tromey.com>
11565
11566 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11567 "want_partial_unit" parameter.
11568 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11569 Inline check for DW_TAG_partial_unit.
11570 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11571
9f66ff1c
TT
115722020-02-08 Tom Tromey <tom@tromey.com>
11573
11574 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11575 read.c.
11576 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11577 read.c.
11578
c8a7a66f
TT
115792020-02-08 Tom Tromey <tom@tromey.com>
11580
11581 * dwarf2/read.c (read_address): Move to comp-unit.c.
11582 (dwarf2_rnglists_process, dwarf2_ranges_process)
11583 (read_attribute_value, dwarf_decode_lines_1)
11584 (var_decode_location, decode_locdesc): Update.
11585 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11586 read.c. Remove "cu" parameter.
11587 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11588 method.
11589
8266302d
TT
115902020-02-08 Tom Tromey <tom@tromey.com>
11591
11592 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11593 (read_indirect_line_string): Update.
11594 * dwarf2/comp-unit.c (read_offset): Remove.
11595 (read_comp_unit_head): Update.
11596 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11597 method.
11598 (read_offset): Don't declare.
11599
4057dfde
TT
116002020-02-08 Tom Tromey <tom@tromey.com>
11601
11602 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11603 * dwarf2/read.c (struct comp_unit_head): Move to
11604 dwarf2/comp-unit.h.
11605 (enum class rcuh_kind): Move to comp-unit.h.
11606 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11607 (read_comp_unit_head, error_check_comp_unit_head)
11608 (read_and_check_comp_unit_head): Move to comp-unit.c.
11609 (read_offset, dwarf_unit_type_name): Likewise.
11610 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11611 (cutu_reader::cutu_reader, read_call_site_scope)
11612 (find_partial_die, follow_die_offset): Update.
11613 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11614
24aa364d
TT
116152020-02-08 Tom Tromey <tom@tromey.com>
11616
11617 * dwarf2/read.c (read_offset_1): Move to leb.c.
11618 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11619 (dwarf_decode_macro_bytes): Update.
11620 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11621 * dwarf2/leb.h (read_offset): Declare.
11622
2c7d5afc
TT
116232020-02-08 Tom Tromey <tom@tromey.com>
11624
11625 * dwarf2/read.c (dwarf2_section_size): Remove.
11626 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11627 Update.
11628 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11629
4075cb26
TT
116302020-02-08 Tom Tromey <tom@tromey.com>
11631
11632 * dwarf2/read.c (read_initial_length): Move to leb.c.
11633 * dwarf2/leb.h (read_initial_length): Declare.
11634 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11635 handle_nonstd parameter.
11636 * dwarf2/frame.c (read_initial_length): Remove.
11637 (decode_frame_entry_1): Update.
11638
09ba997f
TT
116392020-02-08 Tom Tromey <tom@tromey.com>
11640
11641 * dwarf2/loc.c (dwarf2_find_location_expression)
11642 (dwarf_evaluate_loc_desc::get_tls_address)
11643 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11644 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11645 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11646 (dwarf2_compile_property_to_c)
11647 (dwarf2_loc_desc_get_symbol_read_needs)
11648 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11649 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11650 (loclist_describe_location, loclist_tracepoint_var_ref)
11651 (loclist_generate_c_location): Update.
11652 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11653 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11654 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11655 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11656 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11657 (dwarf2_per_cu_data::addr_size)
11658 (dwarf2_per_cu_data::ref_addr_size)
11659 (dwarf2_per_cu_data::text_offset)
11660 (dwarf2_per_cu_data::addr_type): Now methods.
11661 (per_cu_header_read_in): Make per_cu "const".
11662 (dwarf2_version): Remove.
11663 (dwarf2_per_cu_data::int_type): Now a method.
11664 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11665 (set_die_type, read_array_type, read_subrange_index_type)
11666 (read_tag_string_type, read_subrange_type): Update.
11667 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11668 offset_size, ref_addr_size, text_offset, addr_type, version,
11669 objfile, int_type, addr_sized_int_type>: Declare methods.
11670
96c738c0
TT
116712020-02-08 Tom Tromey <tom@tromey.com>
11672
11673 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11674 Move earlier.
11675
8fdd972c
TT
116762020-02-08 Tom Tromey <tom@tromey.com>
11677
11678 * dwarf2/read.h (dwarf_line_debug): Declare.
11679 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11680 * dwarf2/read.c: Move line_header code to new files.
11681 (dwarf_line_debug): No longer static.
11682 * dwarf2/line-header.c: New file.
11683 * dwarf2/line-header.h: New file.
11684
03075812
TT
116852020-02-08 Tom Tromey <tom@tromey.com>
11686
11687 * dwarf2/read.c (struct line_header) <file_full_name,
11688 file_file_name>: Return unique_xmalloc_ptr.
11689 (line_header::file_file_name): Update.
11690 (line_header::file_full_name): Update.
11691 (dw2_get_file_names_reader): Update.
11692 (macro_start_file): Update.
11693
bb822404
TT
116942020-02-08 Tom Tromey <tom@tromey.com>
11695
11696 * dwarf2/read.c (struct line_header) <file_full_name,
11697 file_file_name>: Declare methods.
11698 (dw2_get_file_names_reader): Update.
11699 (file_file_name): Now a method.
11700 (file_full_name): Likewise.
11701 (macro_start_file): Update.
11702
009b64fc
TT
117032020-02-08 Tom Tromey <tom@tromey.com>
11704
11705 * dwarf2/read.c (dwarf_always_disassemble)
11706 (show_dwarf_always_disassemble): Move to loc.c.
11707 (_initialize_dwarf2_read): Move "always-disassemble" registration
11708 to loc.c.
11709 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11710 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11711 static.
11712 (show_dwarf_always_disassemble): Move from read.c.
11713 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11714
5895093f
TT
117152020-02-08 Tom Tromey <tom@tromey.com>
11716
11717 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11718 (create_quick_file_names_table): Return htab_up.
11719 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11720 Update.
11721 * dwarf2/read.h (struct dwarf2_per_objfile)
11722 <quick_file_names_table>: Now htab_up.
11723
b3b32279
TT
117242020-02-08 Tom Tromey <tom@tromey.com>
11725
11726 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11727
1d33d811
TT
117282020-02-08 Tom Tromey <tom@tromey.com>
11729
11730 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11731 Rewrite.
11732 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11733 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11734 (abbrev_table::abbrev_table): No longer inline.
11735 (ABBREV_HASH_SIZE): Remove.
11736 (abbrev_table::m_abbrevs): Now an htab_up.
11737
86de1d91
TT
117382020-02-08 Tom Tromey <tom@tromey.com>
11739
11740 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11741 (cutu_reader): Update.
11742 (build_type_psymtabs_1): Update.
11743 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11744 (abbrev_table::alloc_abbrev): Update.
11745 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11746 (abbrev_table::read): New static method, renamed from
11747 abbrev_table_read_table.
11748 (abbrev_table::alloc_abbrev)
11749 (abbrev_table::add_abbrev): Now private.
11750 (abbrev_table::abbrev_table): Now private.
11751 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11752
0335378b
TT
117532020-02-08 Tom Tromey <tom@tromey.com>
11754
11755 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11756 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11757 htab_up.
11758
48b490f2
TT
117592020-02-08 Tom Tromey <tom@tromey.com>
11760
11761 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11762 htab_up.
11763 (lookup_dwo_unit_in_dwp): Update.
11764 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11765 on obstack.
11766
bc68fb19
TT
117672020-02-08 Tom Tromey <tom@tromey.com>
11768
11769 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11770 obstack.
11771
d15acc42
TT
117722020-02-08 Tom Tromey <tom@tromey.com>
11773
11774 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11775 line_header_hash.
11776 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11777 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11778 Change type to htab_up.
11779
eaa5fa8b
TT
117802020-02-08 Tom Tromey <tom@tromey.com>
11781
11782 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11783 htab_up. Don't allocate on obstack.
11784 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11785 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11786 Change type to htab_up.
11787
b0b6a987
TT
117882020-02-08 Tom Tromey <tom@tromey.com>
11789
11790 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
11791 Change type to htab_up.
11792 * dwarf2/read.c (create_signatured_type_table_from_index)
11793 (create_signatured_type_table_from_debug_names)
11794 (create_all_type_units, add_type_unit)
11795 (lookup_dwo_signatured_type, lookup_signatured_type)
11796 (process_skeletonless_type_unit): Update.
11797 (create_debug_type_hash_table, create_debug_types_hash_table):
11798 Change type of types_htab.
11799 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11800 htab_up. Don't allocate on obstack.
11801 (create_cus_hash_table): Change type of cus_htab parameter.
11802 (struct dwo_file) <cus, tus>: Now htab_up.
11803 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11804 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
11805 (queue_and_load_all_dwo_tus): Update.
11806 * dwarf2/index-write.c (write_gdbindex): Update.
11807 (write_debug_names): Update.
11808
39856def
TT
118092020-02-08 Tom Tromey <tom@tromey.com>
11810
11811 * dwarf2/read.h (struct dwarf2_queue_item): Move from
11812 dwarf2/read.c. Remove "next" member. Add constructor ntad
11813 destructor.
11814 (struct dwarf2_per_objfile) <queue>: New member.
11815 * dwarf2/read.c (struct dwarf2_queue_item): Move to
11816 dwarf2/read.h.
11817 (dwarf2_queue, dwarf2_queue_tail): Remove.
11818 (class dwarf2_queue_guard): Add parameter to constructor. Use
11819 DISABLE_COPY_AND_ASSIGN.
11820 <m_per_objfile>: New member.
11821 <~dwarf2_queue_guard>: Rewrite.
11822 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
11823 Update.
11824 (~dwarf2_queue_item): New.
11825
3e225074
TT
118262020-02-08 Tom Tromey <tom@tromey.com>
11827
11828 * dwarf2/read.c (struct die_info) <has_children>: New member.
11829 (dw2_get_file_names_reader): Remove has_children.
11830 (dw2_get_file_names): Update.
11831 (read_cutu_die_from_dwo): Remove has_children.
11832 (cutu_reader::init_tu_and_read_dwo_dies)
11833 (cutu_reader::cutu_reader): Update.
11834 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
11835 Remove has_children.
11836 (build_type_psymtabs_1, process_skeletonless_type_unit)
11837 (load_partial_comp_unit, load_full_comp_unit): Update.
11838 (create_dwo_cu_reader): Remove has_children.
11839 (create_cus_hash_table, read_die_and_children): Update.
11840 (read_full_die_1,read_full_die): Remove has_children.
11841 (read_signatured_type): Update.
11842 (class cutu_reader) <has_children>: Remove.
11843
82ca8957
TT
118442020-02-08 Tom Tromey <tom@tromey.com>
11845
11846 * dwarf2/expr.c: Rename from dwarf2expr.c.
11847 * dwarf2/expr.h: Rename from dwarf2expr.h.
11848 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11849 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11850 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11851 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11852 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11853 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11854 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11855 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11856 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11857 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11858 * dwarf2/loc.c: Rename from dwarf2loc.c.
11859 * dwarf2/loc.h: Rename from dwarf2loc.h.
11860 * dwarf2/read.c: Rename from dwarf2read.c.
11861 * dwarf2/read.h: Rename from dwarf2read.h.
11862 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11863 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11864 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11865 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11866 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11867 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11868 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11869 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11870 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11871 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11872 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11873 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11874 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11875 Update.
11876 * Makefile.in (COMMON_SFILES): Update.
11877 (HFILES_NO_SRCDIR): Update.
11878
9e35d499
TT
118792020-02-08 Tom Tromey <tom@tromey.com>
11880
11881 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11882 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11883
1eba2311
TT
118842020-02-08 Tom Tromey <tom@tromey.com>
11885
11886 * dwarf2read.h (struct die_info): Don't declare.
11887
e41c2da2
TT
118882020-02-08 Tom Tromey <tom@tromey.com>
11889
11890 * dwarf2read.h (die_info_ptr): Remove typedef.
11891
4fc6c0d5
TT
118922020-02-08 Tom Tromey <tom@tromey.com>
11893
11894 * dwarf2read.c (read_call_site_scope)
11895 (handle_data_member_location, dwarf2_add_member_fn)
11896 (mark_common_block_symbol_computed, read_common_block)
11897 (attr_to_dynamic_prop, partial_die_info::read)
11898 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11899 (dwarf2_symbol_mark_computed, set_die_type): Update.
11900 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11901 method.
11902 (attr_form_is_block): Don't declare.
11903 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11904
cd6c91b4
TT
119052020-02-08 Tom Tromey <tom@tromey.com>
11906
11907 * dwarf2read.c (dwarf2_find_base_address, )
11908 (read_call_site_scope, rust_containing_type)
11909 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11910 (handle_data_member_location, dwarf2_add_member_fn)
11911 (get_alignment, read_structure_type, process_structure_scope)
11912 (mark_common_block_symbol_computed, read_common_block)
11913 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11914 (partial_die_info::read, read_attribute_value, new_symbol)
11915 (lookup_die_type, dwarf2_get_ref_die_offset)
11916 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11917 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11918 (dwarf2_symbol_mark_computed): Update.
11919 * dwarf2/attribute.h (struct attribute) <value_as_address,
11920 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11921 methods.
11922 (value_as_address, attr_form_is_section_offset)
11923 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11924 * dwarf2/attribute.c (attribute::value_as_address)
11925 (attribute::form_is_section_offset, attribute::form_is_constant)
11926 (attribute::form_is_ref): Now methods.
11927
162dce55
TT
119282020-02-08 Tom Tromey <tom@tromey.com>
11929
11930 * dwarf2read.c (struct attribute, DW_STRING)
11931 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11932 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11933 (attr_form_is_block, attr_form_is_section_offset)
11934 (attr_form_is_constant, attr_form_is_ref): Move.
11935 * dwarf2/attribute.h: New file.
11936 * dwarf2/attribute.c: New file, from dwarf2read.c.
11937 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11938
3054dd54
TT
119392020-02-08 Tom Tromey <tom@tromey.com>
11940
11941 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11942 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11943 Move.
11944 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11945 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11946 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11947 abbrev.c.
11948 * dwarf2/abbrev.h: New file.
11949 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11950 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11951
96b79293
TT
119522020-02-08 Tom Tromey <tom@tromey.com>
11953
11954 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11955 (dwarf2_section_size, dwarf2_get_section_info)
11956 (create_signatured_type_table_from_debug_names)
11957 (create_addrmap_from_aranges, read_debug_names_from_section)
11958 (get_gdb_index_contents_from_section, read_comp_unit_head)
11959 (error_check_comp_unit_head, read_abbrev_offset)
11960 (create_debug_type_hash_table, init_cu_die_reader)
11961 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11962 (read_comp_units_from_section, create_cus_hash_table)
11963 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11964 (create_dwp_v2_section, dwarf2_rnglists_process)
11965 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11966 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11967 (read_indirect_string_from_dwz, read_addr_index_1)
11968 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11969 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11970 (fill_in_loclist_baton): Update.
11971 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11972 get_containing_section, get_bfd_owner, get_bfd_section,
11973 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11974 (dwarf2_read_section, get_section_name, get_section_file_name)
11975 (get_containing_section, get_section_bfd_owner)
11976 (get_section_bfd_section, get_section_name, get_section_file_name)
11977 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11978 declare.
11979 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11980 (dwarf2_section_info::get_bfd_owner)
11981 (dwarf2_section_info::get_bfd_section)
11982 (dwarf2_section_info::get_name)
11983 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11984 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11985 (dwarf2_section_info::read): Now methods.
11986 * dwarf-index-write.c (class debug_names): Update.
11987
2c86cff9
TT
119882020-02-08 Tom Tromey <tom@tromey.com>
11989
11990 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11991 Move to dwarf2/section.h.
11992 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11993 (get_section_bfd_section, get_section_name)
11994 (get_section_file_name, get_section_id, get_section_flags)
11995 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11996 dwarf2/section.c.
11997 * dwarf2/section.h: New file.
11998 * dwarf2/section.c: New file, from dwarf2read.c.
11999 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
12000
f4382c45
TT
120012020-02-08 Tom Tromey <tom@tromey.com>
12002
12003 * dwarf2read.h (read_unsigned_leb128): Don't declare.
12004 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
12005 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
12006 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
12007 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
12008 * dwarf2/leb.h: New file, from dwarf2read.c.
12009 * dwarf2/leb.c: New file, from dwarf2read.c.
12010 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
12011 Remove.
12012 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
12013 (COMMON_SFILES): Add dwarf2/leb.c.
12014
01840b7a
JB
120152020-02-08 Joel Brobecker <brobecker@adacore.com>
12016
12017 GDB 9.1 released.
12018
dfcb27e4
IB
120192020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12020
12021 PR gdb/25190:
aac66a4c
SM
12022 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
12023 * gdb/remote.c (remote_console_output): Update.
12024 * gdb/ui-file.c (fputs_unfiltered): Rename to...
12025 (ui_file_puts): ...this.
12026 * gdb/ui-file.h (ui_file_puts): Add declaration.
12027 * gdb/utils.c (emit_style_escape): Update.
12028 (flush_wrap_buffer): Update.
12029 (fputs_maybe_filtered): Update.
12030 (fputs_unfiltered): Add function.
dfcb27e4 12031
faa17681
IB
120322020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12033
aac66a4c
SM
12034 * gdb/event-loop.c (gdb_wait_for_event): Update.
12035 * gdb/printcmd.c (printf_command): Update.
12036 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
12037 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
12038 (gdb_os_flush_stderr): Update.
12039 * gdb/remote.c (remote_console_output): Update.
12040 * gdb/ui-file.c (gdb_flush): Rename to...
12041 (ui_file_flush): ...this.
12042 (stderr_file::write): Update.
12043 (stderr_file::puts): Update.
12044 * gdb/ui-file.h (gdb_flush): Rename to...
12045 (ui_file_flush): ...this.
12046 * gdb/utils.c (gdb_flush): Add function.
12047 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 12048
5abbbe1d
TT
120492020-02-07 Tom Tromey <tromey@adacore.com>
12050
12051 PR breakpoints/24915:
12052 * source.c (find_and_open_source): Do not check basenames_may_differ.
12053
919adfe8
TT
120542020-02-07 Tom Tromey <tom@tromey.com>
12055
12056 * README: Update gdbserver documentation.
12057 * gdbserver: Move to top level.
12058 * configure.tgt (build_gdbserver): Remove.
12059 * configure.ac: Remove --enable-gdbserver.
12060 * configure: Rebuild.
12061 * Makefile.in (distclean): Don't mention gdbserver.
12062
1d5d29e7
SV
120632020-02-06 Shahab Vahedi <shahab@synopsys.com>
12064
12065 * source-cache.c (source_cache::ensure): Surround
12066 get_plain_source_lines with a try/catch.
12067 (source_cache::get_line_charpos): Get rid of try/catch
12068 and only check for the return value of "ensure".
12069 * tui/tui-source.c (tui_source_window::set_contents):
12070 Simplify "nlines" calculation.
12071
6eb1129c
SV
120722020-02-06 Shahab Vahedi <shahab@synopsys.com>
12073
12074 * MAINTAINERS (Write After Approval): Add myself.
12075
c6a42d11
CB
120762020-02-05 Christian Biesinger <cbiesinger@google.com>
12077
12078 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
12079 function call.
12080
c8ecdda6
CB
120812020-02-05 Christian Biesinger <cbiesinger@google.com>
12082
12083 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
12084
f6480e70
MR
120852020-02-05 Maciej W. Rozycki <macro@wdc.com>
12086
12087 * nat/riscv-linux-tdesc.h: New file.
12088 * nat/riscv-linux-tdesc.c: New file, taking code from...
12089 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12090 ... here.
12091 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
12092 NATDEPFILES.
12093
dcc9fbc6
AB
120942020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
12095
12096 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
12097 we don't set the fake simulator ptid to the null_ptid.
12098
719546c4
SM
120992020-02-03 Simon Marchi <simon.marchi@efficios.com>
12100
12101 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
12102 * gdbthread.h (class thread_info) <resumed>: Likewise.
12103 * infrun.c (resume_1): Likewise.
12104 (proceed): Likewise.
12105 (infrun_thread_stop_requested): Likewise.
12106 (stop_all_threads): Likewise.
12107 (handle_inferior_event): Likewise.
12108 (restart_threads): Likewise.
12109 (finish_step_over): Likewise.
12110 (keep_going_stepped_thread): Likewise.
12111 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
12112 (linux_handle_extended_wait): Likewise.
12113 * record-btrace.c (get_thread_current_frame_id): Likewise.
12114 * record-full.c (record_full_wait_1): Likewise.
12115 * remote.c (remote_target::process_initial_stop_replies): Likewise.
12116 * target.c (target_resume): Likewise.
12117 * thread.c (set_running_thread): Likewise.
12118
e409c542
AKS
121192020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12120
12121 * f-valprint.c (f77_print_array_1): Changed datatype of index
12122 variable to LONGEST from int to enable it to contain bound
12123 values correctly.
12124
ee98c0da
MR
121252020-02-03 Maciej W. Rozycki <macro@wdc.com>
12126
12127 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12128 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12129 offsets according to FLEN determined.
12130 (riscv_linux_nat_target::read_description): Determine FLEN
12131 dynamically.
12132 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12133 according to FLEN determined.
12134 (riscv_linux_nat_target::store_registers): Likewise.
12135
aa66aac4
SV
121362020-02-01 Shahab Vahedi <shahab@synopsys.com>
12137
12138 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12139 when reg->group is empty and reggroup is not.
12140
fd9faca8
TT
121412020-01-31 Tom Tromey <tromey@adacore.com>
12142
12143 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12144 Call beneath target's mourn_inferior after unpushing.
12145
42330a68
AB
121462020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12147
12148 PR tui/9765
12149 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12150 have enough lines to fill the screen, still return the lowest
12151 address we found.
12152
7a27a45b
AB
121532020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12154
12155 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12156 '-', '<', and '>' commands.
12157
c47f70e2
PA
121582020-01-29 Pedro Alves <palves@redhat.com>
12159 Sergio Durigan Junior <sergiodj@redhat.com>
12160
12161 * infcmd.c (construct_inferior_arguments): Assert that
12162 'argc' is greater than 0.
12163
5133a315
LM
121642020-01-29 Luis Machado <luis.machado@linaro.org>
12165
12166 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12167 (BRK_INSN_MASK): Define to 0xd4200000.
12168 (aarch64_program_breakpoint_here_p): New function.
12169 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12170 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12171 breakpoint.c.
12172 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12173 breakpoint.h
12174 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12175 call gdbarch_program_breakpoint_here_p.
12176 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12177 default_program_breakpoint_here_p, changed return type to bool and
12178 simplified.
12179 * breakpoint.h (program_breakpoint_here): Moved prototype to
12180 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12181 return type to bool.
12182 * gdbarch.c: Regenerate.
12183 * gdbarch.h: Regenerate.
12184 * gdbarch.sh (program_breakpoint_here_p): New method.
12185 * infrun.c (handle_signal_stop): Call
12186 gdbarch_program_breakpoint_here_p.
12187
168f8c6b
TT
121882020-01-26 Tom Tromey <tom@tromey.com>
12189
12190 * ctfread.c (struct ctf_fp_info): Reindent.
12191 (_initialize_ctfread): Remove.
12192
128a391f
TT
121932020-01-26 Tom Tromey <tom@tromey.com>
12194
12195 * psymtab.c (partial_map_expand_apply)
12196 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12197 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12198 (psym_print_stats, psym_expand_symtabs_for_function)
12199 (psym_map_symbol_filenames, psym_map_matching_symbols)
12200 (psym_expand_symtabs_matching)
12201 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12202 (maintenance_check_psymtabs): Use new methods.
12203 * psympriv.h (struct partial_symtab) <readin_p,
12204 get_compunit_symtab>: New methods.
12205 <readin, compunit_symtab>: Remove members.
12206 (struct standard_psymtab): New.
12207 (struct legacy_psymtab): Derive from standard_psymtab.
12208 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12209 standard_psymtab.
12210 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12211
0494dbec
TT
122122020-01-26 Tom Tromey <tom@tromey.com>
12213
12214 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12215 read_dependencies. Add assert.
12216 * psymtab.c (partial_symtab::read_dependencies): New method.
12217 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12218 method.
12219 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12220 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12221 read_dependencies.
12222 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12223 Add assert.
12224
8566b89b
TT
122252020-01-26 Tom Tromey <tom@tromey.com>
12226
12227 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12228 Call expand_psymtab.
12229 (xcoff_read_symtab): Call expand_psymtab.
12230 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12231 legacy_expand_psymtab.
12232 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12233 method.
12234 (struct legacy_psymtab) <expand_psymtab>: Implement.
12235 <legacy_expand_psymtab>: New member.
12236 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12237 (parse_partial_symbols): Set legacy_expand_psymtab.
12238 (psymtab_to_symtab_1): Change argument order. Call
12239 expand_psymtab.
12240 (new_psymtab): Set legacy_expand_psymtab.
12241 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12242 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12243 expand_psymtab.
12244 (dwarf2_psymtab::expand_psymtab): Rename from
12245 psymtab_to_symtab_1. Call expand_psymtab.
12246 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12247 (dbx_end_psymtab): Likewise.
12248 (dbx_psymtab_to_symtab_1): Change argument order. Call
12249 expand_psymtab.
12250 (dbx_read_symtab): Call expand_psymtab.
12251 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12252 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12253 (ctf_psymtab::read_symtab): Call expand_psymtab.
12254
077cbab2
TT
122552020-01-26 Tom Tromey <tom@tromey.com>
12256
12257 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12258 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12259 messages.
12260 * mdebugread.c (mdebug_read_symtab): Remove prints.
12261 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12262 assert.
12263 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12264
891813be
TT
122652020-01-26 Tom Tromey <tom@tromey.com>
12266
12267 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12268 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12269 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12270 legacy_symtab.
12271 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12272 * psymtab.c (psymtab_to_symtab): Call method.
12273 (dump_psymtab): Update.
12274 * psympriv.h (struct partial_symtab): Add virtual destructor.
12275 <read_symtab>: New method.
12276 (struct legacy_symtab): New.
12277 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12278 (struct pst_map) <pst>: Now a legacy_psymtab.
12279 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12280 (new_psymtab): Use legacy_psymtab.
12281 * dwarf2read.h (struct dwarf2_psymtab): New.
12282 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12283 * dwarf2read.c (dwarf2_create_include_psymtab)
12284 (dwarf2_build_include_psymtabs, create_type_unit_group)
12285 (create_partial_symtab, process_psymtab_comp_unit_reader)
12286 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12287 (set_partial_user): Use dwarf2_psymtab.
12288 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12289 (psymtab_to_symtab_1, process_full_comp_unit)
12290 (process_full_type_unit, dwarf2_ranges_read)
12291 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12292 (dwarf_decode_lines): Use dwarf2_psymtab.
12293 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12294 (add_address_entry_worker, write_one_signatured_type)
12295 (recursively_count_psymbols, recursively_write_psymbols)
12296 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12297 (write_debug_names): Likewise.
12298 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12299 <pst>: Now a legacy_psymtab.
12300 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12301 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12302 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12303 * ctfread.c (struct ctf_psymtab): New.
12304 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12305 ctf_psymtab.
12306 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12307 (create_partial_symtab): Return a ctf_psymtab.
12308 (scan_partial_symbols): Update.
12309
c3693a1d
TT
123102020-01-26 Tom Tromey <tom@tromey.com>
12311
12312 * xcoffread.c (xcoff_start_psymtab): Use new.
12313 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12314 renamed from start_psymtab_common.
12315 * psympriv.h (struct partial_symtab): Add new constructor.
12316 (start_psymtab_common): Don't declare.
12317 * mdebugread.c (parse_partial_symbols): Use new.
12318 * dwarf2read.c (create_partial_symtab): Use new.
12319 * dbxread.c (start_psymtab): Use new.
12320 * ctfread.c (create_partial_symtab): Use new.
12321
32caafd0
TT
123222020-01-26 Tom Tromey <tom@tromey.com>
12323
12324 * xcoffread.c (xcoff_end_psymtab): Use new.
12325 * psymtab.c (start_psymtab_common): Use new.
12326 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12327 Update.
12328 * psympriv.h (struct partial_symtab): Add parameters to
12329 constructor. Don't inline.
12330 (allocate_psymtab): Don't declare.
12331 * mdebugread.c (new_psymtab): Use new.
12332 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12333 * dbxread.c (dbx_end_psymtab): Use new.
12334
abaa2f23
TT
123352020-01-26 Tom Tromey <tom@tromey.com>
12336
12337 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12338 allocate_psymtab. Update documentation.
12339 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12340 allocate_psymtab. Do not use new.
12341 (allocate_psymtab): Use new. Update.
12342
6d94535f
TT
123432020-01-26 Tom Tromey <tom@tromey.com>
12344
12345 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12346 * psymtab.c (psym_print_stats): Update.
12347 * psympriv.h (struct partial_symtab) <readin,
12348 psymtabs_addrmap_supported, anonymous>: Now bool.
12349 * mdebugread.c (psymtab_to_symtab_1): Update.
12350 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12351 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12352 (process_full_comp_unit, process_full_type_unit): Update.
12353 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12354 * ctfread.c (psymtab_to_symtab): Update.
12355
6f17252b
TT
123562020-01-26 Tom Tromey <tom@tromey.com>
12357
12358 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12359 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12360 * psymtab.c (psymtab_storage): Delete psymtabs.
12361 (psymtab_storage::allocate_psymtab): Use new.
12362 (psymtab_storage::discard_psymtab): Use delete.
12363 * psympriv.h (struct partial_symtab): Add constructor and
12364 initializers.
12365
f6f1cebc
TT
123662020-01-26 Tom Tromey <tom@tromey.com>
12367
12368 * machoread.c: Do not include psympriv.h.
12369
e47e48f6
PW
123702020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12371
12372 * NEWS: Mention the new option and the set/show commands.
12373
a2fedca9
PW
123742020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12375
12376 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12377 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12378 (validate_exec_file): New variables, enums, functions.
12379 (exec_file_locate_attach, print_section_info): Style the filenames.
12380 (_initialize_exec): Install show_exec_file_mismatch_command and
12381 set_exec_file_mismatch_command.
12382 * gdbcore.h (validate_exec_file): Declare.
12383 * infcmd.c (attach_command): Call validate_exec_file.
12384 * remote.c ( remote_target::remote_add_inferior): Likewise.
12385
7ffa82e1
AB
123862020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12387
12388 * frame.c (find_frame_sal): Move call to get_next_frame into more
12389 inner scope.
12390 * inline-frame.c (inilne_state) <inline_state>: Update argument
12391 types.
12392 (inilne_state) <skipped_symbol>: Rename to...
12393 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12394 (skip_inline_frames): Build vector of skipped symbols and use this
12395 to reate the inline_state.
12396 (inline_skipped_symbol): Add a comment and some assertions, fetch
12397 skipped symbol from the list.
12398
3d92a3e3
AB
123992020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12400
12401 * buildsym.c (lte_is_less_than): Delete.
12402 (buildsym_compunit::end_symtab_with_blockvector): Create local
12403 lambda function to sort line table entries, and use
12404 std::stable_sort instead of std::sort.
12405 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12406 markers when looking for a previous line.
12407
94a72be7
AB
124082020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12409
12410 * dwarf2read.c (lnp_state_machine::record_line): Include
12411 end_sequence parameter in debug print out. Record the line if we
12412 are at an end_sequence marker even if it's not the start of a
12413 statement.
12414 * symmisc.c (maintenance_print_one_line_table): Print end of
12415 sequence markers with 'END' not '0'.
12416
53af73bf
PA
124172020-01-24 Pedro Alves <palves@redhat.com>
12418
12419 PR gdb/25410
12420 * thread.c (scoped_restore_current_thread::restore): Use
12421 switch_to_inferior_no_thread.
12422 * exec.c: Include "progspace-and-thread.h".
12423 (add_target_sections, remove_target_sections):
12424 scoped_restore_current_pspace_and_thread instead of
12425 scoped_restore_current_thread.
12426 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12427 and aspace to the inferior before calling clone_program_space.
12428 Remove stale comment.
12429
3050c6f4
CB
124302020-01-24 Christian Biesinger <cbiesinger@google.com>
12431
12432 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12433 (arm_netbsd_nat_target::fetch_registers): ...this.
12434 (arm_nbsd_nat_target::store_registers): Rename to...
12435 (arm_netbsd_nat_target::store_registers): ...this.
12436
73685c7e
CB
124372020-01-24 Christian Biesinger <cbiesinger@google.com>
12438
12439 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12440 register_t.
12441
89203d40
CB
124422020-01-24 Christian Biesinger <cbiesinger@google.com>
12443
12444 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12445 Update comment.
12446 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12447 Likewise.
12448 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12449 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12450 the correct replacement (iterate_over_regset_sections).
12451 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12452 Update comment.
12453
1ba1ac88
AB
124542020-01-24 Graham Markall <graham.markall@embecosm.com>
12455
12456 PR gdb/23718
12457 * gdb/python/python.c (execute_gdb_command): Call
12458 async_enable_stdin in catch block.
12459
f3364a6d
AB
124602020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12461
12462 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12463 SWITCH_THRU_ALL_UIS.
12464
733d0a67
AB
124652020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12466
12467 PR tui/9765
12468 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12469 comment, add extra parameter, and update to store previous symbol
12470 when appropriate.
12471 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12472 add extra parameter.
12473 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12474 remove unneeded parameter, add try/catch around gdb_print_insn,
12475 rewrite to add items to asm_lines vector.
12476 (tui_find_backward_disassembly_start_address): New function.
12477 (tui_find_disassembly_address): Updated throughout.
12478 (tui_disasm_window::set_contents): Update for changes to
12479 tui_disassemble.
12480 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12481 number of lines to scroll.
12482
b3b3bada
SM
124832020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12484
12485 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12486 (SECT_OFF_DATA): Likewise.
12487 (SECT_OFF_RODATA): Likewise.
12488 (SECT_OFF_TEXT): Likewise.
12489 (SECT_OFF_BSS): Likewise.
12490 (struct objfile) <text_section_offset, data_section_offset>: New
12491 methods.
12492 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12493 objfile::text_section_offset.
12494 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12495 * coffread.c (coff_symtab_read): Likewise.
12496 (enter_linenos): Likewise.
12497 (process_coff_symbol): Likewise.
12498 * ctfread.c (get_objfile_text_range): Likewise.
12499 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12500 Use objfile::data_section_offset.
12501 * dwarf2-frame.c (execute_cfa_program): Use
12502 objfile::text_section_offset.
12503 (dwarf2_frame_find_fde): Likewise.
12504 * dwarf2read.c (create_addrmap_from_index): Likewise.
12505 (create_addrmap_from_aranges): Likewise.
12506 (dw2_find_pc_sect_compunit_symtab): Likewise.
12507 (process_psymtab_comp_unit_reader): Likewise.
12508 (add_partial_symbol): Likewise.
12509 (add_partial_subprogram): Likewise.
12510 (process_full_comp_unit): Likewise.
12511 (read_file_scope): Likewise.
12512 (read_func_scope): Likewise.
12513 (read_lexical_block_scope): Likewise.
12514 (read_call_site_scope): Likewise.
12515 (dwarf2_rnglists_process): Likewise.
12516 (dwarf2_ranges_process): Likewise.
12517 (dwarf2_ranges_read): Likewise.
12518 (dwarf_decode_lines_1): Likewise.
12519 (new_symbol): Likewise.
12520 (dwarf2_fetch_die_loc_sect_off): Likewise.
12521 (dwarf2_per_cu_text_offset): Likewise.
12522 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12523 * hppa-tdep.c (read_unwind_info): Likewise.
12524 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12525 * psympriv.h (struct partial_symtab): Likewise.
12526 * psymtab.c (find_pc_sect_psymtab): Likewise.
12527 * solib-svr4.c (enable_break): Likewise.
12528 * stap-probe.c (relocate_address): Use
12529 objfile::data_section_offset.
12530 * xcoffread.c (enter_line_range): Use
12531 objfile::text_section_offset.
12532 (read_xcoff_symtab): Likewise.
12533
ab53f382
SM
125342020-01-23 Simon Marchi <simon.marchi@efficios.com>
12535
12536 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12537 declaration to narrower scopes.
12538
e7eee665
SM
125392020-01-23 Simon Marchi <simon.marchi@efficios.com>
12540
12541 * darwin-nat.h (struct darwin_exception_msg, enum
12542 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12543 Move up.
12544 (class darwin_nat_target) <wait_1, check_new_threads,
12545 decode_exception_message, decode_message, stop_inferior,
12546 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12547 * darwin-nat.c (darwin_check_new_threads): Rename to...
12548 (darwin_nat_target::check_new_threads): ... this.
12549 (darwin_suspend_inferior_it): Remove.
12550 (darwin_decode_exception_message): Rename to...
12551 (darwin_nat_target::decode_exception_message): ... this.
12552 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12553 (darwin_decode_message): Rename to...
12554 (darwin_nat_target::decode_message): ... this.
12555 (cancel_breakpoint): Rename to...
12556 (darwin_nat_target::cancel_breakpoint): ... this.
12557 (darwin_wait): Rename to...
12558 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12559 instead of iterate_over_inferiors.
12560 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12561 (darwin_stop_inferior): Rename to...
12562 (darwin_nat_target::stop_inferior): ... this.
12563 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12564 (darwin_init_thread_list): Rename to...
12565 (darwin_nat_target::init_thread_list): ... this.
12566 (darwin_ptrace_him): Rename to...
12567 (darwin_nat_target::ptrace_him): ... this.
12568 (darwin_nat_target::create_inferior): Pass lambda function to
12569 fork_inferior.
12570 (darwin_nat_target::detach): Call stop_inferior instead of
12571 darwin_stop_inferior.
12572 * fork-inferior.h (fork_inferior): Change init_trace_fun
12573 parameter to gdb::function_view.
12574 * fork-inferior.c (fork_inferior): Likewise.
12575
c162ed3e
HD
125762020-01-23 Hannes Domani <ssbssa@yahoo.de>
12577
12578 * i386-cygwin-tdep.c (core_process_module_section): Update.
12579 * windows-nat.c (struct lm_info_windows): Add text_offset.
12580 (windows_xfer_shared_libraries): Update.
12581 * windows-tdep.c (windows_xfer_shared_library):
12582 Add text_offset_cached argument.
12583 * windows-tdep.h (windows_xfer_shared_library): Update.
12584
a1237872
SM
125852020-01-21 Simon Marchi <simon.marchi@efficios.com>
12586
12587 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12588
b3ee6dd9
SM
125892020-01-21 Simon Marchi <simon.marchi@efficios.com>
12590
12591 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12592 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12593 replace with range-based for.
12594 (gdbsim_interrupt_inferior): Remove.
12595 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12596 with a range-based for. Inline code from
12597 gdbsim_interrupt_inferior.
12598
f9fac3c8
SM
125992020-01-21 Simon Marchi <simon.marchi@efficios.com>
12600
12601 * infrun.c (proceed): Fix indentation.
12602
f6474de9
TT
126032020-01-21 Tom Tromey <tromey@adacore.com>
12604
12605 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12606 * python/python.c (python_extension_ops): Update.
12607 (gdbpy_colorize): New function.
12608 * python/lib/gdb/__init__.py (colorize): New function.
12609 * extension.h (ext_lang_colorize): Declare.
12610 * extension.c (ext_lang_colorize): New function.
12611 * extension-priv.h (struct extension_language_ops) <colorize>: New
12612 member.
12613 * cli/cli-style.c (_initialize_cli_style): Update help text.
12614
f0c702d4
LM
126152020-01-21 Luis Machado <luis.machado@linaro.org>
12616
12617 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12618 <cond>: Change type to bool.
12619 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12620 (aarch64_displaced_step_cb): Likewise.
12621 (aarch64_displaced_step_tb): Likewise.
12622
1ab139e5
LM
126232020-01-21 Luis Machado <luis.machado@linaro.org>
12624
12625 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12626 output.
12627
0c271889
LM
126282020-01-21 Luis Machado <luis.machado@linaro.org>
12629
12630 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12631 <pc_adjust>: Adjust the documentation.
12632 (aarch64_displaced_step_fixup): Check if PC really moved before
12633 adjusting it.
12634
4d89c1c7
TT
126352020-01-19 Tom Tromey <tom@tromey.com>
12636
12637 * disasm.c (~gdb_disassembler): New destructor.
12638 (gdb_buffered_insn_length): Call disassemble_free_target.
12639 * disasm.h (class gdb_disassembler): Declare destructor. Use
12640 DISABLE_COPY_AND_ASSIGN.
12641
c0ab21c2
TT
126422020-01-19 Tom Tromey <tom@tromey.com>
12643
12644 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12645 (die_reader_func_ftype): Remove.
12646 (cutu_reader): New class.
12647 (dw2_get_file_names_reader): Remove "data" parameter.
12648 (dw2_get_file_names): Use cutu_reader.
12649 (create_debug_type_hash_table): Update.
12650 (read_cutu_die_from_dwo): Update comment.
12651 (lookup_dwo_unit): Add dwo_name parameter.
12652 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12653 die_reader_func_ftype and data parameters.
12654 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12655 Remove die_reader_func_ftype and data parameters.
12656 (~cutu_reader): New; from init_cutu_and_read_dies.
12657 (cutu_reader::cutu_reader): Rename from
12658 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12659 and data parameters.
12660 (init_cutu_and_read_dies_simple): Remove.
12661 (struct process_psymtab_comp_unit_data): Remove.
12662 (process_psymtab_comp_unit_reader): Remove data parameter; add
12663 want_partial_unit and pretend_language parameters.
12664 (process_psymtab_comp_unit): Use cutu_reader.
12665 (build_type_psymtabs_reader): Remove data parameter.
12666 (build_type_psymtabs_1): Use cutu_reader.
12667 (process_skeletonless_type_unit): Likewise.
12668 (load_partial_comp_unit_reader): Remove.
12669 (load_partial_comp_unit): Use cutu_reader.
12670 (load_full_comp_unit_reader): Remove.
12671 (load_full_comp_unit): Use cutu_reader.
12672 (struct create_dwo_cu_data): Remove.
12673 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12674 dwo_unit parameters.
12675 (create_cus_hash_table): Use cutu_reader.
12676 (struct dwarf2_read_addr_index_data): Remove.
12677 (dwarf2_read_addr_index_reader): Remove.
12678 (dwarf2_read_addr_index): Use cutu_reader.
12679 (read_signatured_type_reader): Remove.
12680 (read_signatured_type): Use cutu_reader.
12681
45bbae5c
TT
126822020-01-19 Tom Tromey <tom@tromey.com>
12683
12684 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12685 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12686 (tui_wrefresh): Declare.
12687 * tui/tui-wingeneral.c (suppress_output): New global.
12688 (tui_suppress_output, ~tui_suppress_output): New constructor and
12689 destructor.
12690 (tui_wrefresh): New function.
12691 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12692 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12693 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12694 method.
12695 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12696 tui_wrefresh.
12697 (tui_data_window::no_refresh): New method.
12698 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12699 (tui_reg_command): Use tui_suppress_output
12700 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12701 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12702 method.
12703 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12704
4f13c1c0
TT
127052020-01-19 Tom Tromey <tom@tromey.com>
12706
12707 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12708 Handle case where symtab is null.
12709
fa47e446
SM
127102020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12711
12712 * linux-fork.c (one_fork_p): Simplify.
12713
26f42329
SM
127142020-01-17 Simon Marchi <simon.marchi@efficios.com>
12715
12716 * top.c (struct qt_args): Remove.
12717 (kill_or_detach): Change return type to void, replace `void *`
12718 parameter with a proper one.
12719 (print_inferior_quit_action): Likewise.
12720 (quit_confirm): Use range-based for loop to iterate over inferiors.
12721 (quit_force): Likewise.
12722
a9ac81b1
SM
127232020-01-17 Simon Marchi <simon.marchi@efficios.com>
12724
12725 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12726 `void *` parameter with proper parameters.
12727 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12728 (print_one_inferior): Change return type to void, replace `void *`
12729 parameter with proper parameters.
12730 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12731 inferiors.
12732 (get_other_inferior): Remove.
12733 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12734 inferiors.
12735
788eca49
SM
127362020-01-17 Simon Marchi <simon.marchi@efficios.com>
12737
12738 * mi/mi-interp.c (report_initial_inferior): Remove.
12739 (mi_interp::init): Use range-based for to iterate over inferiors.
12740
d9bc85b6
SM
127412020-01-17 Simon Marchi <simon.marchi@efficios.com>
12742
12743 * python/py-inferior.c (build_inferior_list): Remove.
12744 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12745
40c94099
CB
127462020-01-16 Christian Biesinger <cbiesinger@google.com>
12747
12748 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12749 (btrace_stitch_trace): Likewise.
12750 * charset.c (intermediate_encoding): Likewise (vaild).
12751 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12752 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12753 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12754
e0cdfe3c
HD
127552020-01-16 Hannes Domani <ssbssa@yahoo.de>
12756
12757 * windows-tdep.c (windows_get_tlb_type):
12758 Add rtl_user_process_parameters type.
12759
790f1718 127602020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 12761 Norbert Lange <nolange79@gmail.com>
790f1718
PA
12762
12763 PR build/24805
12764 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12765 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12766 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12767 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12768 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12769 (ps_plog): Redeclare exported functions with default visibility.
12770
3112ed97
NA
127712020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12772
12773 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12774 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12775
8dc3273e
SM
127762020-01-15 Simon Marchi <simon.marchi@efficios.com>
12777
12778 * infcmd.c (post_create_inferior): Use get_thread_regcache
12779 instead of get_current_regcache.
12780
ff47f4f0
TT
127812020-01-14 Tom Tromey <tom@tromey.com>
12782
12783 PR symtab/12535:
12784 * python/python.c (gdbpy_decode_line): Treat empty string the same
12785 as no argument.
12786
975f45b7
TT
127872020-01-14 Tom Tromey <tom@tromey.com>
12788
12789 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
12790
25e57356
TT
127912020-01-14 Tom Tromey <tom@tromey.com>
12792
12793 * nat/linux-btrace.c: Don't include <config.h>.
12794 * nat/linux-ptrace.c: Don't include <config.h>.
12795 * nat/x86-linux-dregs.c: Don't include <config.h>.
12796
05ea2a05
TT
127972020-01-14 Tom Tromey <tom@tromey.com>
12798
12799 * configure: Rebuild.
12800 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12801
01027315
TT
128022020-01-14 Tom Tromey <tom@tromey.com>
12803
12804 * nat/x86-linux-dregs.c: Include configh.h.
12805 * nat/linux-ptrace.c: Include configh.h.
12806 * nat/linux-btrace.c: Include configh.h.
12807 * defs.h: Include config.h, bfd.h.
12808 * configure.ac: Don't source common.host.
12809 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
12810 * configure: Rebuild.
12811 * acinclude.m4: Update path.
12812 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
12813 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
12814 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
12815 (CLIBS): Add LIBSUPPORT.
12816 (CDEPS): Likewise.
12817 (COMMON_SFILES): Remove gdbsupport files.
12818 (HFILES_NO_SRCDIR): Likewise.
12819 (stamp-version): Update path to create-version.sh.
12820 (ALLDEPFILES): Remove gdbsupport files.
12821
b2ceabe8
TT
128222020-01-14 Tom Tromey <tom@tromey.com>
12823
12824 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
12825 USE_WIN32API when needed.
12826 * configure.ac (USE_WIN32API): Don't define.
12827 (WIN32LIBS): Use WIN32APILIBS.
12828 * configure: Rebuild.
12829
25c51f71
TT
128302020-01-14 Tom Tromey <tom@tromey.com>
12831
12832 * configure: Rebuild.
12833 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
12834
717c684d
BE
128352020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12836
12837 * skip.c (skip_function_command): Make skip w/o arguments use the
12838 name of the inlined function if pc is inside any inlined function.
12839
7da6a5b9
LM
128402020-01-14 Luis Machado <luis.machado@linaro.org>
12841
12842 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
12843 * infrun.c (resume_1): Likewise.
12844 (handle_inferior_event): Remove stale comment.
12845 * linux-nat.c (linux_nat_target::resume): Update comments.
12846 (save_stop_reason): Likewise.
12847 (linux_nat_filter_event): Likewise.
12848 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12849
44e4c775
AB
128502020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12851
12852 * elfread.c (record_minimal_symbol): Set section index to 0 for
12853 non-allocatable sections.
12854
18a8505e
AT
12855
128562020-01-13 Ali Tamur <tamur@google.com>
12857
12858 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12859 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12860 to gdb::optional. Update comments.
12861 (dwo_file): Update comments.
12862 (read_attribute): Update API to take an additional out parameter,
12863 need_reprocess. This is used to mark attributes that need other
12864 attributes (e.g. str_offsets_base) for correct computation which may not
12865 have been read yet.
12866 (read_attribute_reprocess): New function declaration.
12867 (read_addr_index): Likewise.
12868 (read_dwo_str_index): Likewise.
12869 (read_stub_str_index): Likewise.
12870 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12871 (lookup_addr_base): New function definition.
12872 (lookup_ranges_base): Likewise.
12873 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12874 lookup_ranges_base.
12875 (init_cutu_and_read_dies): Update comments.
12876 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12877 unit. This is used to inherit parent's str_offsets_base and addr_base.
12878 Update comments.
12879 (init_cutu_and_read_dies_simple): Reflect API changes.
12880 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12881 (create_cus_hash_table): Change API to take parent compile unit.
12882 Reflect API changes.
12883 (open_and_init_dwo_file): Reflect API changes.
12884 (dwarf2_get_pc_bounds): Update comments.
12885 (dwarf2_record_block_ranges): Likewise.
12886 (read_full_die_1): Change implementation to reprocess attributes that
12887 need str_offsets_base and addr_base.
12888 (partial_die_info::read): Likewise.
12889 (read_attribute_reprocess): New function definition.
12890 (read_attribute_value): Change API to take an additional out parameter,
12891 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12892 when a non-dwo compile unit has index based attributes.
12893 (read_attribute): Reflect API changes.
12894 (read_addr_index_1): Reflect API changes. Update comments.
12895 (dwarf2_read_addr_index_data): Reflect API changes.
12896 (dwarf2_read_addr_index): Likewise.
12897 (read_str_index): Change API and implementation. This becomes a helper
12898 to be used by the new string index related methods. Update error
12899 message and comments.
12900 (read_dwo_str_index): New function definition.
12901 (read_stub_str_index): Likewise.
12902 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12903 * symfile.h (dwarf2_debug_sections): Likewise.
12904 * xcoffread.c (dwarf2_debug_sections): Likewise.
12905
0cac9354
SM
129062020-01-13 Simon Marchi <simon.marchi@efficios.com>
12907
12908 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12909 core_reg_sect type to gdb_byte *.
12910 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12911 * cris-tdep.c (fetch_core_registers): Likewise.
12912 * corelow.c (core_target::get_core_register_section): Change
12913 type of `contents` to gdb::byte_vector.
12914
9a6d629c
AB
129152020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12916
12917 * tui/tui-wingeneral.c (box_win): Position the title in the center
12918 of the border.
12919
d8b2f9e3
SM
129202020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12921
12922 * corelow.c (core_target::get_core_register_section): Use
12923 std::vector instead of alloca.
12924
bb564c58
SM
129252020-01-13 Simon Marchi <simon.marchi@efficios.com>
12926
12927 * warning.m4: Add -Wmissing-declarations to build_warnings.
12928 * configure: Re-generate.
12929
6b366111
SM
129302020-01-13 Simon Marchi <simon.marchi@efficios.com>
12931
12932 * python/python.c (init__gdb_module): Add declaration.
12933
6c265988
SM
129342020-01-13 Simon Marchi <simon.marchi@efficios.com>
12935
12936 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12937 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12938 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12939 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12940 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12941 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12942 * ada-exp.y (_initialize_ada_exp): Add declaration.
12943 * ada-lang.c (_initialize_ada_language): Add declaration.
12944 * ada-tasks.c (_initialize_tasks): Add declaration.
12945 * agent.c (_initialize_agent): Add declaration.
12946 * aix-thread.c (_initialize_aix_thread): Add declaration.
12947 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12948 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12949 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12950 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12951 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12952 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12953 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12954 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12955 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12956 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12957 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12958 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12959 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12960 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12961 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12962 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12963 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12964 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12965 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12966 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12967 * annotate.c (_initialize_annotate): Add declaration.
12968 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12969 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12970 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12971 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12972 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12973 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12974 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12975 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12976 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12977 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12978 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12979 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12980 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12981 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12982 * auto-load.c (_initialize_auto_load): Add declaration.
12983 * auxv.c (_initialize_auxv): Add declaration.
12984 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12985 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12986 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12987 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12988 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12989 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12990 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12991 * breakpoint.c (_initialize_breakpoint): Add declaration.
12992 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12993 * btrace.c (_initialize_btrace): Add declaration.
12994 * charset.c (_initialize_charset): Add declaration.
12995 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12996 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12997 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12998 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12999 * cli/cli-script.c (_initialize_cli_script): Add declaration.
13000 * cli/cli-style.c (_initialize_cli_style): Add declaration.
13001 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
13002 * coffread.c (_initialize_coffread): Add declaration.
13003 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
13004 * compile/compile.c (_initialize_compile): Add declaration.
13005 * complaints.c (_initialize_complaints): Add declaration.
13006 * completer.c (_initialize_completer): Add declaration.
13007 * copying.c (_initialize_copying): Add declaration.
13008 * corefile.c (_initialize_core): Add declaration.
13009 * corelow.c (_initialize_corelow): Add declaration.
13010 * cp-abi.c (_initialize_cp_abi): Add declaration.
13011 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
13012 * cp-support.c (_initialize_cp_support): Add declaration.
13013 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
13014 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
13015 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
13016 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
13017 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
13018 * ctfread.c (_initialize_ctfread): Add declaration.
13019 * d-lang.c (_initialize_d_language): Add declaration.
13020 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
13021 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
13022 * dbxread.c (_initialize_dbxread): Add declaration.
13023 * dcache.c (_initialize_dcache): Add declaration.
13024 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
13025 * disasm.c (_initialize_disasm): Add declaration.
13026 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
13027 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
13028 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
13029 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
13030 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
13031 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
13032 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
13033 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
13034 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
13035 * elfread.c (_initialize_elfread): Add declaration.
13036 * exec.c (_initialize_exec): Add declaration.
13037 * extension.c (_initialize_extension): Add declaration.
13038 * f-lang.c (_initialize_f_language): Add declaration.
13039 * f-valprint.c (_initialize_f_valprint): Add declaration.
13040 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
13041 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
13042 * filesystem.c (_initialize_filesystem): Add declaration.
13043 * findcmd.c (_initialize_mem_search): Add declaration.
13044 * findvar.c (_initialize_findvar): Add declaration.
13045 * fork-child.c (_initialize_fork_child): Add declaration.
13046 * frame-base.c (_initialize_frame_base): Add declaration.
13047 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
13048 * frame.c (_initialize_frame): Add declaration.
13049 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
13050 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
13051 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
13052 * gcore.c (_initialize_gcore): Add declaration.
13053 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
13054 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
13055 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
13056 * gdbarch.c (_initialize_gdbarch): Add declaration.
13057 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
13058 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
13059 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
13060 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
13061 * go-lang.c (_initialize_go_language): Add declaration.
13062 * go32-nat.c (_initialize_go32_nat): Add declaration.
13063 * guile/guile.c (_initialize_guile): Add declaration.
13064 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
13065 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
13066 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
13067 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
13068 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
13069 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
13070 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
13071 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
13072 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
13073 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
13074 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
13075 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
13076 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
13077 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
13078 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
13079 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
13080 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
13081 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
13082 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
13083 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
13084 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
13085 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
13086 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
13087 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
13088 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
13089 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
13090 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
13091 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
13092 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
13093 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
13094 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
13095 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
13096 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
13097 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
13098 * infcall.c (_initialize_infcall): Add declaration.
13099 * infcmd.c (_initialize_infcmd): Add declaration.
13100 * inflow.c (_initialize_inflow): Add declaration.
13101 * infrun.c (_initialize_infrun): Add declaration.
13102 * interps.c (_initialize_interpreter): Add declaration.
13103 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
13104 * jit.c (_initialize_jit): Add declaration.
13105 * language.c (_initialize_language): Add declaration.
13106 * linux-fork.c (_initialize_linux_fork): Add declaration.
13107 * linux-nat.c (_initialize_linux_nat): Add declaration.
13108 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
13109 * linux-thread-db.c (_initialize_thread_db): Add declaration.
13110 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
13111 * m2-lang.c (_initialize_m2_language): Add declaration.
13112 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
13113 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
13114 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
13115 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
13116 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
13117 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
13118 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
13119 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
13120 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
13121 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
13122 * machoread.c (_initialize_machoread): Add declaration.
13123 * macrocmd.c (_initialize_macrocmd): Add declaration.
13124 * macroscope.c (_initialize_macroscope): Add declaration.
13125 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13126 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13127 * maint.c (_initialize_maint_cmds): Add declaration.
13128 * mdebugread.c (_initialize_mdebugread): Add declaration.
13129 * memattr.c (_initialize_mem): Add declaration.
13130 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13131 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13132 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13133 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13134 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13135 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13136 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13137 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13138 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13139 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13140 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13141 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13142 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13143 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13144 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13145 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13146 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13147 * mipsread.c (_initialize_mipsread): Add declaration.
13148 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13149 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13150 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13151 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13152 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13153 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13154 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13155 * nto-procfs.c (_initialize_procfs): Add declaration.
13156 * objc-lang.c (_initialize_objc_language): Add declaration.
13157 * observable.c (_initialize_observer): Add declaration.
13158 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13159 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13160 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13161 * osabi.c (_initialize_gdb_osabi): Add declaration.
13162 * osdata.c (_initialize_osdata): Add declaration.
13163 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13164 * parse.c (_initialize_parse): Add declaration.
13165 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13166 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13167 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13168 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13169 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13170 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13171 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13172 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13173 * printcmd.c (_initialize_printcmd): Add declaration.
13174 * probe.c (_initialize_probe): Add declaration.
13175 * proc-api.c (_initialize_proc_api): Add declaration.
13176 * proc-events.c (_initialize_proc_events): Add declaration.
13177 * proc-service.c (_initialize_proc_service): Add declaration.
13178 * procfs.c (_initialize_procfs): Add declaration.
13179 * producer.c (_initialize_producer): Add declaration.
13180 * psymtab.c (_initialize_psymtab): Add declaration.
13181 * python/python.c (_initialize_python): Add declaration.
13182 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13183 * record-btrace.c (_initialize_record_btrace): Add declaration.
13184 * record-full.c (_initialize_record_full): Add declaration.
13185 * record.c (_initialize_record): Add declaration.
13186 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13187 * regcache.c (_initialize_regcache): Add declaration.
13188 * reggroups.c (_initialize_reggroup): Add declaration.
13189 * remote-notif.c (_initialize_notif): Add declaration.
13190 * remote-sim.c (_initialize_remote_sim): Add declaration.
13191 * remote.c (_initialize_remote): Add declaration.
13192 * reverse.c (_initialize_reverse): Add declaration.
13193 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13194 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13195 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13196 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13197 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13198 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13199 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13200 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13201 Add declaration.
13202 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13203 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13204 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13205 * rust-exp.y (_initialize_rust_exp): Add declaration.
13206 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13207 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13208 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13209 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13210 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13211 * score-tdep.c (_initialize_score_tdep): Add declaration.
13212 * ser-go32.c (_initialize_ser_dos): Add declaration.
13213 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13214 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13215 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13216 * ser-uds.c (_initialize_ser_socket): Add declaration.
13217 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13218 * serial.c (_initialize_serial): Add declaration.
13219 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13220 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13221 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13222 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13223 * skip.c (_initialize_step_skip): Add declaration.
13224 * sol-thread.c (_initialize_sol_thread): Add declaration.
13225 * solib-aix.c (_initialize_solib_aix): Add declaration.
13226 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13227 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13228 * solib-frv.c (_initialize_frv_solib): Add declaration.
13229 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13230 * solib-target.c (_initialize_solib_target): Add declaration.
13231 * solib.c (_initialize_solib): Add declaration.
13232 * source-cache.c (_initialize_source_cache): Add declaration.
13233 * source.c (_initialize_source): Add declaration.
13234 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13235 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13236 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13237 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13238 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13239 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13240 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13241 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13242 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13243 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13244 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13245 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13246 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13247 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13248 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13249 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13250 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13251 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13252 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13253 * stabsread.c (_initialize_stabsread): Add declaration.
13254 * stack.c (_initialize_stack): Add declaration.
13255 * stap-probe.c (_initialize_stap_probe): Add declaration.
13256 * std-regs.c (_initialize_frame_reg): Add declaration.
13257 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13258 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13259 * symfile.c (_initialize_symfile): Add declaration.
13260 * symmisc.c (_initialize_symmisc): Add declaration.
13261 * symtab.c (_initialize_symtab): Add declaration.
13262 * target.c (_initialize_target): Add declaration.
13263 * target-connection.c (_initialize_target_connection): Add
13264 declaration.
13265 * target-dcache.c (_initialize_target_dcache): Add declaration.
13266 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13267 * thread.c (_initialize_thread): Add declaration.
13268 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13269 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13270 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13271 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13272 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13273 * tracectf.c (_initialize_ctf): Add declaration.
13274 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13275 * tracefile.c (_initialize_tracefile): Add declaration.
13276 * tracepoint.c (_initialize_tracepoint): Add declaration.
13277 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13278 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13279 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13280 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13281 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13282 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13283 * tui/tui.c (_initialize_tui): Add declaration.
13284 * typeprint.c (_initialize_typeprint): Add declaration.
13285 * ui-style.c (_initialize_ui_style): Add declaration.
13286 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13287 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13288 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13289 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13290 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13291 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13292 * unittests/filtered_iterator-selftests.c
13293 (_initialize_filtered_iterator_selftests): Add declaration.
13294 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13295 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13296 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13297 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13298 * unittests/main-thread-selftests.c
13299 (_initialize_main_thread_selftests): Add declaration.
13300 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13301 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13302 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13303 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13304 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13305 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13306 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13307 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13308 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13309 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13310 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13311 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13312 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13313 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13314 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13315 declaration.
13316 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13317 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13318 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13319 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13320 * user-regs.c (_initialize_user_regs): Add declaration.
13321 * utils.c (_initialize_utils): Add declaration.
13322 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13323 * valops.c (_initialize_valops): Add declaration.
13324 * valprint.c (_initialize_valprint): Add declaration.
13325 * value.c (_initialize_values): Add declaration.
13326 * varobj.c (_initialize_varobj): Add declaration.
13327 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13328 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13329 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13330 * windows-nat.c (_initialize_windows_nat): Add declaration.
13331 (_initialize_check_for_gdb_ini): Add declaration.
13332 (_initialize_loadable): Add declaration.
13333 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13334 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13335 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13336 * xcoffread.c (_initialize_xcoffread): Add declaration.
13337 * xml-support.c (_initialize_xml_support): Add declaration.
13338 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13339 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13340 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13341 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13342
e2de1eec
SM
133432020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13344
13345 * regformats/regdat.sh: Generate declaration for init function.
13346
e0037b4c
SM
133472020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13348
13349 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13350 up.
13351 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13352 close_one_inferior>: New methods.
13353 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13354 pass down target to find_inferior_pid.
13355 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13356 Pass down target to find_inferior_ptid.
13357 (gdbsim_target::create_inferior): Pass down target to
13358 add_thread_silent.
13359 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13360 target down to find_inferior_ptid and switch_to_thread.
13361 (gdbsim_target::close): Update to call close_one_inferior.
13362 (struct resume_data): Remove.
13363 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13364 directly, rather than through a void pointer.
13365 (gdbsim_target::resume): Update to call resume_one_inferior.
13366
58920b5b
SM
133672020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13368
13369 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13370
4ec89149
PA
133712020-01-12 Pedro Alves <palves@redhat.com>
13372
13373 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13374 directly for the current inferior instead of
13375 discard_all_inferiors.
13376 (discard_all_inferiors): Delete.
13377
7c392d1d
TT
133782020-01-11 Tom Tromey <tom@tromey.com>
13379
13380 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13381 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13382 deprecated_safe_get_selected_frame.
13383
d9ebdab7
TBA
133842020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13385
13386 * inferior.c (print_inferior): Switch inferior before printing it.
13387
f3c469b9
PA
133882020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13389 Pedro Alves <palves@redhat.com>
13390
13391 * progspace-and-thread.c (switch_to_program_space_and_thread):
13392 Assert there's an inferior for PSPACE. Use
13393 switch_to_inferior_no_thread to switch the inferior too.
13394 * progspace.c (program_space::~program_space): Call
13395 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13396 (program_space::free_all_objfiles): Don't call clear_symtab_users
13397 here.
13398 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13399
65c574f6
PA
134002020-01-10 Pedro Alves <palves@redhat.com>
13401
13402 * NEWS: Mention multi-target debugging, "info connections", and
13403 "add-inferior -no-connection".
13404
2f4fcf00
PA
134052020-01-10 Pedro Alves <palves@redhat.com>
13406
13407 * infrun.c: Include "target-connection.h".
13408 (check_multi_target_resumption): New.
13409 (proceed): Call it.
13410 * target-connection.c (make_target_connection_string): Make
13411 extern.
13412 * target-connection.h (make_target_connection_string): Declare.
13413
121b3efd
PA
134142020-01-10 Pedro Alves <palves@redhat.com>
13415
13416 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13417 * inferior.c (uiout_field_connection): New function.
13418 (print_inferior): Add new "connection-id" column.
13419 (add_inferior_command): Show connection number/string of added
13420 inferior.
13421 * process-stratum-target.h
13422 (process_stratum_target::connection_string): New virtual method.
13423 (process_stratum_target::connection_number): New field.
13424 * remote.c (remote_target::connection_string): New override.
13425 * target-connection.c: New file.
13426 * target-connection.h: New file.
13427 * target.c (decref_target): Remove process_stratum targets from
13428 the connection list.
13429 (target_stack::push): Add process_stratum targets to the
13430 connection list.
13431
4f837581
PA
134322020-01-10 Pedro Alves <palves@redhat.com>
13433
13434 Revert:
13435 2016-04-12 Pedro Alves <palves@redhat.com>
13436 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13437 Remove references to name.
13438 * serial.h (struct serial) <name>: Delete.
13439
f4ec508e
PA
134402020-01-10 Pedro Alves <palves@redhat.com>
13441
13442 * gdbarch-selftests.c (register_to_value_test): Remove "target
13443 already pushed" check.
13444
5b6d1e4f
PA
134452020-01-10 Pedro Alves <palves@redhat.com>
13446 John Baldwin <jhb@FreeBSD.org>
13447
13448 * aarch64-linux-nat.c
13449 (aarch64_linux_nat_target::thread_architecture): Adjust.
13450 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13451 (task_command_1): Likewise.
13452 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13453 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13454 (aix_thread_target::store_registers)
13455 (aix_thread_target::thread_alive): Adjust.
13456 * amd64-fbsd-tdep.c: Include "inferior.h".
13457 (amd64fbsd_get_thread_local_address): Pass down target.
13458 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13459 thread's gdbarch instead of target_gdbarch.
13460 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13461 get_last_target_status.
13462 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13463 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13464 inferiors.
13465 (update_inserted_breakpoint_locations): Skip if inferiors with no
13466 execution.
13467 (update_global_location_list): When handling moribund locations,
13468 find representative inferior for location's pspace, and use thread
13469 count of its process_stratum target.
13470 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13471 * bsd-uthread.c (bsd_uthread_target::wait): Use
13472 as_process_stratum_target and adjust thread_change_ptid and
13473 add_thread calls.
13474 (bsd_uthread_target::update_thread_list): Use
13475 as_process_stratum_target and adjust find_thread_ptid,
13476 thread_change_ptid and add_thread calls.
13477 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13478 find_thread_ptid call.
13479 * corelow.c (add_to_thread_list): Adjust add_thread call.
13480 (core_target_open): Adjust add_thread_silent and thread_count
13481 calls.
13482 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13483 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13484 * event-top.c (async_disconnect): Pop targets from all inferiors.
13485 * exec.c (add_target_sections): Push exec target on all inferiors
13486 sharing the program space.
13487 (remove_target_sections): Remove the exec target from all
13488 inferiors sharing the program space.
13489 (exec_on_vfork): New.
13490 * exec.h (exec_on_vfork): Declare.
13491 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13492 Pass it down.
13493 (fbsd_nat_target::update_thread_list): Adjust.
13494 (fbsd_nat_target::resume): Adjust.
13495 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13496 down.
13497 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13498 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13499 get_thread_arch_regcache call.
13500 * fork-child.c (gdb_startup_inferior): Pass target down to
13501 startup_inferior and set_executing.
13502 * gdbthread.h (struct process_stratum_target): Forward declare.
13503 (add_thread, add_thread_silent, add_thread_with_info)
13504 (in_thread_list): Add process_stratum_target parameter.
13505 (find_thread_ptid(inferior*, ptid_t)): New overload.
13506 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13507 parameter.
13508 (all_threads()): Delete overload.
13509 (all_threads, all_non_exited_threads): Add process_stratum_target
13510 parameter.
13511 (all_threads_safe): Use brace initialization.
13512 (thread_count): Add process_stratum_target parameter.
13513 (set_resumed, set_running, set_stop_requested, set_executing)
13514 (threads_are_executing, finish_thread_state): Add
13515 process_stratum_target parameter.
13516 (switch_to_thread): Use is_current_thread.
13517 * i386-fbsd-tdep.c: Include "inferior.h".
13518 (i386fbsd_get_thread_local_address): Pass down target.
13519 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13520 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13521 have_inferiors check.
13522 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13523 (inf_ptrace_target::attach): Adjust.
13524 * infcall.c (run_inferior_call): Adjust.
13525 * infcmd.c (run_command_1): Pass target to
13526 scoped_finish_thread_state.
13527 (proceed_thread_callback): Skip inferiors with no execution.
13528 (continue_command): Rename 'all_threads' local to avoid hiding
13529 'all_threads' function. Adjust get_last_target_status call.
13530 (prepare_one_step): Adjust set_running call.
13531 (signal_command): Use user_visible_resume_target. Compare thread
13532 pointers instead of inferior_ptid.
13533 (info_program_command): Adjust to pass down target.
13534 (attach_command): Mark target's 'thread_executing' flag.
13535 (stop_current_target_threads_ns): New, factored out from ...
13536 (interrupt_target_1): ... this. Switch inferior before making
13537 target calls.
13538 * inferior-iter.h
13539 (struct all_inferiors_iterator, struct all_inferiors_range)
13540 (struct all_inferiors_safe_range)
13541 (struct all_non_exited_inferiors_range): Filter on
13542 process_stratum_target too. Remove explicit.
13543 * inferior.c (inferior::inferior): Push dummy target on target
13544 stack.
13545 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13546 Add process_stratum_target parameter, and pass it down.
13547 (have_live_inferiors): Adjust.
13548 (switch_to_inferior_and_push_target): New.
13549 (add_inferior_command, clone_inferior_command): Handle
13550 "-no-connection" parameter. Use
13551 switch_to_inferior_and_push_target.
13552 (_initialize_inferior): Mention "-no-connection" option in
13553 the help of "add-inferior" and "clone-inferior" commands.
13554 * inferior.h: Include "process-stratum-target.h".
13555 (interrupt_target_1): Use bool.
13556 (struct inferior) <push_target, unpush_target, target_is_pushed,
13557 find_target_beneath, top_target, process_target, target_at,
13558 m_stack>: New.
13559 (discard_all_inferiors): Delete.
13560 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13561 (all_inferiors, all_non_exited_inferiors): Add
13562 process_stratum_target parameter.
13563 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13564 (target_last_proc_target): New global.
13565 (follow_fork_inferior): Push target on new inferior. Pass target
13566 to add_thread_silent. Call exec_on_vfork. Handle target's
13567 reference count.
13568 (follow_fork): Adjust get_last_target_status call. Also consider
13569 target.
13570 (follow_exec): Push target on new inferior.
13571 (struct execution_control_state) <target>: New field.
13572 (user_visible_resume_target): New.
13573 (do_target_resume): Call target_async.
13574 (resume_1): Set target's threads_executing flag. Consider resume
13575 target.
13576 (commit_resume_all_targets): New.
13577 (proceed): Also consider resume target. Skip threads of inferiors
13578 with no execution. Commit resumtion in all targets.
13579 (start_remote): Pass current inferior to wait_for_inferior.
13580 (infrun_thread_stop_requested): Consider target as well. Pass
13581 thread_info pointer to clear_inline_frame_state instead of ptid.
13582 (infrun_thread_thread_exit): Consider target as well.
13583 (random_pending_event_thread): New inferior parameter. Use it.
13584 (do_target_wait): Rename to ...
13585 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13586 down.
13587 (threads_are_resumed_pending_p, do_target_wait): New.
13588 (prepare_for_detach): Adjust calls.
13589 (wait_for_inferior): New inferior parameter. Handle it. Use
13590 do_target_wait_1 instead of do_target_wait.
13591 (fetch_inferior_event): Adjust. Switch to representative
13592 inferior. Pass target down.
13593 (set_last_target_status): Add process_stratum_target parameter.
13594 Save target in global.
13595 (get_last_target_status): Add process_stratum_target parameter and
13596 handle it.
13597 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13598 (context_switch): Check inferior_ptid == null_ptid before calling
13599 inferior_thread().
13600 (get_inferior_stop_soon): Pass down target.
13601 (wait_one): Rename to ...
13602 (poll_one_curr_target): ... this.
13603 (struct wait_one_event): New.
13604 (wait_one): New.
13605 (stop_all_threads): Adjust.
13606 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13607 event's target.
13608 (switch_back_to_stepped_thread): Also consider target.
13609 (print_stop_event): Update.
13610 (normal_stop): Update. Also consider the resume target.
13611 * infrun.h (wait_for_inferior): Remove declaration.
13612 (user_visible_resume_target): New declaration.
13613 (get_last_target_status, set_last_target_status): New
13614 process_stratum_target parameter.
13615 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13616 process_stratum_target parameter, and use it.
13617 (clear_inline_frame_state (thread_info*)): New.
13618 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13619 process_stratum_target parameter.
13620 (clear_inline_frame_state (thread_info*)): Declare.
13621 * linux-fork.c (delete_checkpoint_command): Pass target down to
13622 find_thread_ptid.
13623 (checkpoint_command): Adjust.
13624 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13625 instead of just tweaking inferior_ptid.
13626 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13627 (exit_lwp): Pass target down to find_thread_ptid.
13628 (attach_proc_task_lwp_callback): Pass target down to
13629 add_thread/set_running/set_executing.
13630 (linux_nat_target::attach): Pass target down to
13631 thread_change_ptid.
13632 (get_detach_signal): Pass target down to find_thread_ptid.
13633 Consider last target status's target.
13634 (linux_resume_one_lwp_throw, resume_lwp)
13635 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13636 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13637 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13638 (linux_nat_target::async_wait_fd): New.
13639 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13640 target down.
13641 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13642 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13643 * linux-thread-db.c (struct thread_db_info::process_target): New
13644 field.
13645 (add_thread_db_info): Save target.
13646 (get_thread_db_info): New process_stratum_target parameter. Also
13647 match target.
13648 (delete_thread_db_info): New process_stratum_target parameter.
13649 Also match target.
13650 (thread_from_lwp): Adjust to pass down target.
13651 (thread_db_notice_clone): Pass down target.
13652 (check_thread_db_callback): Pass down target.
13653 (try_thread_db_load_1): Always push the thread_db target.
13654 (try_thread_db_load, record_thread): Pass target down.
13655 (thread_db_target::detach): Pass target down. Always unpush the
13656 thread_db target.
13657 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13658 target down. Always unpush the thread_db target.
13659 (find_new_threads_callback, thread_db_find_new_threads_2)
13660 (thread_db_target::update_thread_list): Pass target down.
13661 (thread_db_target::pid_to_str): Pass current inferior down.
13662 (thread_db_target::get_thread_local_address): Pass target down.
13663 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13664 target down.
13665 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13666 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13667 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13668 (procfs_init_inferior): Rename to ...
13669 (procfs_target::procfs_init_inferior): ... this and adjust.
13670 (procfs_target::create_inferior, procfs_notice_thread)
13671 (procfs_do_thread_registers): Adjust.
13672 * ppc-fbsd-tdep.c: Include "inferior.h".
13673 (ppcfbsd_get_thread_local_address): Pass down target.
13674 * proc-service.c (ps_xfer_memory): Switch current inferior and
13675 program space as well.
13676 (get_ps_regcache): Pass target down.
13677 * process-stratum-target.c
13678 (process_stratum_target::thread_address_space)
13679 (process_stratum_target::thread_architecture): Pass target down.
13680 * process-stratum-target.h
13681 (process_stratum_target::threads_executing): New field.
13682 (as_process_stratum_target): New.
13683 * ravenscar-thread.c
13684 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13685 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13686 down.
13687 * record-btrace.c (record_btrace_target::info_record): Adjust.
13688 (record_btrace_target::record_method)
13689 (record_btrace_target::record_is_replaying)
13690 (record_btrace_target::fetch_registers)
13691 (get_thread_current_frame_id, record_btrace_target::resume)
13692 (record_btrace_target::wait, record_btrace_target::stop): Pass
13693 target down.
13694 * record-full.c (record_full_wait_1): Switch to event thread.
13695 Pass target down.
13696 * regcache.c (regcache::regcache)
13697 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13698 process_stratum_target parameter and handle it.
13699 (current_thread_target): New global.
13700 (get_thread_regcache): Add process_stratum_target parameter and
13701 handle it. Switch inferior before calling target method.
13702 (get_thread_regcache): Pass target down.
13703 (get_thread_regcache_for_ptid): Pass target down.
13704 (registers_changed_ptid): Add process_stratum_target parameter and
13705 handle it.
13706 (registers_changed_thread, registers_changed): Pass target down.
13707 (test_get_thread_arch_aspace_regcache): New.
13708 (current_regcache_test): Define a couple local test_target_ops
13709 instances and use them for testing.
13710 (readwrite_regcache): Pass process_stratum_target parameter.
13711 (cooked_read_test, cooked_write_test): Pass mock_target down.
13712 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13713 (get_thread_arch_aspace_regcache): Add process_stratum_target
13714 parameter.
13715 (regcache::target): New method.
13716 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13717 (regcache::registers_changed_ptid): Add process_stratum_target
13718 parameter.
13719 (regcache::m_target): New field.
13720 (registers_changed_ptid): Add process_stratum_target parameter.
13721 * remote.c (remote_state::supports_vCont_probed): New field.
13722 (remote_target::async_wait_fd): New method.
13723 (remote_unpush_and_throw): Add remote_target parameter.
13724 (get_current_remote_target): Adjust.
13725 (remote_target::remote_add_inferior): Push target.
13726 (remote_target::remote_add_thread)
13727 (remote_target::remote_notice_new_inferior)
13728 (get_remote_thread_info): Pass target down.
13729 (remote_target::update_thread_list): Skip threads of inferiors
13730 bound to other targets. (remote_target::close): Don't discard
13731 inferiors. (remote_target::add_current_inferior_and_thread)
13732 (remote_target::process_initial_stop_replies)
13733 (remote_target::start_remote)
13734 (remote_target::remote_serial_quit_handler): Pass down target.
13735 (remote_target::remote_unpush_target): New remote_target
13736 parameter. Unpush the target from all inferiors.
13737 (remote_target::remote_unpush_and_throw): New remote_target
13738 parameter. Pass it down.
13739 (remote_target::open_1): Check whether the current inferior has
13740 execution instead of checking whether any inferior is live. Pass
13741 target down.
13742 (remote_target::remote_detach_1): Pass down target. Use
13743 remote_unpush_target.
13744 (extended_remote_target::attach): Pass down target.
13745 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13746 (remote_target::append_resumption): Pass down target.
13747 (remote_target::append_pending_thread_resumptions)
13748 (remote_target::remote_resume_with_hc, remote_target::resume)
13749 (remote_target::commit_resume): Pass down target.
13750 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13751 (remote_target::interrupt_query)
13752 (remote_target::remove_new_fork_children)
13753 (remote_target::check_pending_events_prevent_wildcard_vcont)
13754 (remote_target::remote_parse_stop_reply)
13755 (remote_target::process_stop_reply): Pass down target.
13756 (first_remote_resumed_thread): New remote_target parameter. Pass
13757 it down.
13758 (remote_target::wait_as): Pass down target.
13759 (unpush_and_perror): New remote_target parameter. Pass it down.
13760 (remote_target::readchar, remote_target::remote_serial_write)
13761 (remote_target::getpkt_or_notif_sane_1)
13762 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13763 down target.
13764 (remote_target::mourn_inferior): Pass down target. Use
13765 remote_unpush_target.
13766 (remote_target::core_of_thread)
13767 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13768 (remote_target::pid_to_exec_file)
13769 (remote_target::thread_handle_to_thread_info): Pass down target.
13770 (remote_target::async_wait_fd): New.
13771 * riscv-fbsd-tdep.c: Include "inferior.h".
13772 (riscv_fbsd_get_thread_local_address): Pass down target.
13773 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13774 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13775 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13776 Adjust.
13777 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13778 * solib-svr4.c (enable_break): Pass down target.
13779 * spu-multiarch.c (parse_spufs_run): Pass down target.
13780 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13781 * target-delegates.c: Regenerate.
13782 * target.c (g_target_stack): Delete.
13783 (current_top_target): Return the current inferior's top target.
13784 (target_has_execution_1): Refer to the passed-in inferior's top
13785 target.
13786 (target_supports_terminal_ours): Check whether the initial
13787 inferior was already created.
13788 (decref_target): New.
13789 (target_stack::push): Incref/decref the target.
13790 (push_target, push_target, unpush_target): Adjust.
13791 (target_stack::unpush): Defref target.
13792 (target_is_pushed): Return bool. Adjust to refer to the current
13793 inferior's target stack.
13794 (dispose_inferior): Delete, and inline parts ...
13795 (target_preopen): ... here. Only dispose of the current inferior.
13796 (target_detach): Hold strong target reference while detaching.
13797 Pass target down.
13798 (target_thread_name): Add assertion.
13799 (target_resume): Pass down target.
13800 (target_ops::beneath, find_target_at): Adjust to refer to the
13801 current inferior's target stack.
13802 (get_dummy_target): New.
13803 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13804 has a thread running.
13805 (initialize_targets): Rename to ...
13806 (_initialize_target): ... this.
13807 * target.h: Include "gdbsupport/refcounted-object.h".
13808 (struct target_ops): Inherit refcounted_object.
13809 (target_ops::shortname, target_ops::longname): Make const.
13810 (target_ops::async_wait_fd): New method.
13811 (decref_target): Declare.
13812 (struct target_ops_ref_policy): New.
13813 (target_ops_ref): New typedef.
13814 (get_dummy_target): Declare function.
13815 (target_is_pushed): Return bool.
13816 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
13817 (all_matching_threads_iterator::all_matching_threads_iterator):
13818 Handle filter target.
13819 * thread-iter.h (struct all_matching_threads_iterator, struct
13820 all_matching_threads_range, class all_non_exited_threads_range):
13821 Filter by target too. Remove explicit.
13822 * thread.c (threads_executing): Delete.
13823 (inferior_thread): Pass down current inferior.
13824 (clear_thread_inferior_resources): Pass down thread pointer
13825 instead of ptid_t.
13826 (add_thread_silent, add_thread_with_info, add_thread): Add
13827 process_stratum_target parameter. Use it for thread and inferior
13828 searches.
13829 (is_current_thread): New.
13830 (thread_info::deletable): Use it.
13831 (find_thread_ptid, thread_count, in_thread_list)
13832 (thread_change_ptid, set_resumed, set_running): New
13833 process_stratum_target parameter. Pass it down.
13834 (set_executing): New process_stratum_target parameter. Pass it
13835 down. Adjust reference to 'threads_executing'.
13836 (threads_are_executing): New process_stratum_target parameter.
13837 Adjust reference to 'threads_executing'.
13838 (set_stop_requested, finish_thread_state): New
13839 process_stratum_target parameter. Pass it down.
13840 (switch_to_thread): Also match inferior.
13841 (switch_to_thread): New process_stratum_target parameter. Pass it
13842 down.
13843 (update_threads_executing): Reimplement.
13844 * top.c (quit_force): Pop targets from all inferior.
13845 (gdb_init): Don't call initialize_targets.
13846 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13847 Declare.
13848 (windows_add_thread, windows_delete_thread): Adjust.
13849 (get_windows_debug_event): Rename to ...
13850 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13851 * tracefile-tfile.c (tfile_target_open): Pass down target.
13852 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13853 Forward declare.
13854 (switch_to_thread): Add process_stratum_target parameter.
13855 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13856 parameter. Use it.
13857 (mi_on_resume): Pass target down.
13858 * nat/fork-inferior.c (startup_inferior): Add
13859 process_stratum_target parameter. Pass it down.
13860 * nat/fork-inferior.h (startup_inferior): Add
13861 process_stratum_target parameter.
13862 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13863
75c6c844
PA
138642020-01-10 Pedro Alves <palves@redhat.com>
13865
13866 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13867 directly. Instead find the first thread in the thread list and
13868 use switch_to_thread.
13869
78f2c40a
PA
138702020-01-10 Pedro Alves <palves@redhat.com>
13871
13872 * remote.c (remote_target::remote_add_inferior): Don't bind a
13873 process to the current inferior if the current inferior is already
13874 bound to a process.
13875
e7af6c70
TBA
138762020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13877 Pedro Alves <palves@redhat.com>
13878
13879 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13880 If no process is specified, return null_ptid instead of
13881 inferior_ptid.
13882 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13883 TARGET_WAITKIND_SIGNALLED with no pid.
13884
31ba933e
PA
138852020-01-10 Pedro Alves <palves@redhat.com>
13886
13887 * remote.c (first_remote_resumed_thread): New.
13888 (remote_target::wait_as): Use it as default event_ptid instead of
13889 inferior_ptid.
13890
735fc2ca
PA
138912020-01-10 Pedro Alves <palves@redhat.com>
13892
13893 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13894
c17e02e1
PA
138952020-01-10 Pedro Alves <palves@redhat.com>
13896
13897 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13898 not -1.
13899
ab1ddbcf
PA
139002020-01-10 Pedro Alves <palves@redhat.com>
13901
13902 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13903 ptid to get_last_target_status.
13904 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13905 ptid to get_last_target_status.
13906 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13907 get_last_target_status.
13908 (info_program_command): Don't pass a target_waitstatus to
13909 get_last_target_status.
13910 * infrun.c (init_wait_for_inferior): Use
13911 nullify_last_target_wait_ptid.
13912 (get_last_target_status): Handle nullptr arguments.
13913 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13914 (print_stop_event): Don't pass a ptid to get_last_target_status.
13915 (normal_stop): Don't pass a ptid to get_last_target_status.
13916 * infrun.h (get_last_target_status, set_last_target_status): Move
13917 comments here and update.
13918 (nullify_last_target_wait_ptid): Declare.
13919 * linux-fork.c (fork_load_infrun_state): Remove local extern
13920 declaration of nullify_last_target_wait_ptid.
13921 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13922 to get_last_target_status.
13923
f3f8ece4
PA
139242020-01-10 Pedro Alves <palves@redhat.com>
13925
13926 * gdbthread.h (scoped_restore_current_thread)
13927 <dont_restore, restore, m_dont_restore>: Declare.
13928 * thread.c (thread_alive): Add assertion. Return bool.
13929 (switch_to_thread_if_alive): New.
13930 (prune_threads): Switch inferior/thread.
13931 (print_thread_info_1): Switch thread before calling target methods.
13932 (scoped_restore_current_thread::restore): New, factored out from
13933 ...
13934 (scoped_restore_current_thread::~scoped_restore_current_thread):
13935 ... this.
13936 (scoped_restore_current_thread::scoped_restore_current_thread):
13937 Add assertion.
13938 (thread_apply_all_command, thread_select): Use
13939 switch_to_thread_if_alive.
13940 * infrun.c (proceed, restart_threads, handle_signal_stop)
13941 (switch_back_to_stepped_thread): Switch current thread before
13942 calling target methods.
13943
db2d40f7
PA
139442020-01-10 Pedro Alves <palves@redhat.com>
13945
13946 * inferior.c (switch_to_inferior_no_thread): New function,
13947 factored out from ...
13948 (inferior_command): ... here.
13949 * inferior.h (switch_to_inferior_no_thread): Declare.
13950 * mi/mi-main.c (run_one_inferior): Use
13951 switch_to_inferior_no_thread.
13952
bd420a2d
PA
139532020-01-10 Pedro Alves <palves@redhat.com>
13954
13955 * infcmd.c (kill_command): Remove dead code.
13956
ddf5db90
PA
139572020-01-10 Pedro Alves <palves@redhat.com>
13958
13959 * remote.c (remote_target::mourn_inferior): No longer check
13960 whether the target is running.
13961
5018ce90
PA
139622020-01-10 Pedro Alves <palves@redhat.com>
13963
13964 * corelow.c (core_target::has_execution): Change parameter type to
13965 inferior pointer.
13966 * inferior.c (number_of_live_inferiors): Use
13967 inferior::has_execution instead of target_has_execution_1.
13968 * inferior.h (inferior::has_execution): New.
13969 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13970 inferior::has_execution instead of target_has_execution_1.
13971 * process-stratum-target.c
13972 (process_stratum_target::has_execution): Change parameter type to
13973 inferior pointer. Check the inferior's PID instead of
13974 inferior_ptid.
13975 * process-stratum-target.h
13976 (process_stratum_target::has_execution): Change parameter type to
13977 inferior pointer.
13978 * record-full.c (record_full_core_target::has_execution): Change
13979 parameter type to inferior pointer.
13980 * target.c (target_has_execution_1): Change parameter type to
13981 inferior pointer.
13982 (target_has_execution_current): Adjust.
13983 * target.h (target_ops::has_execution): Change parameter type to
13984 inferior pointer.
13985 (target_has_execution_1): Change parameter type to inferior
13986 pointer. Change return type to bool.
13987 * tracefile.h (tracefile_target::has_execution): Change parameter
13988 type to inferior pointer.
13989
74375d18
PA
139902020-01-10 Pedro Alves <palves@redhat.com>
13991
13992 * exceptions.c (print_flush): Remove current_top_target() check.
13993
acdf84a6
PA
139942020-01-10 Pedro Alves <palves@redhat.com>
13995
13996 * remote.c (show_remote_exec_file): Show the current inferior's
13997 exec-file instead of the command variable's value.
13998
ec506636
PA
139992020-01-10 Pedro Alves <palves@redhat.com>
14000
14001 * record-full.c (record_full_resume_ptid): New global.
14002 (record_full_target::resume): Set it.
14003 (record_full_wait_1): Use record_full_resume_ptid instead of
14004 inferior_ptid.
14005
873657b9
PA
140062020-01-10 Pedro Alves <palves@redhat.com>
14007
14008 * gdbthread.h (scoped_restore_current_thread)
14009 <dont_restore, restore, m_dont_restore>: Declare.
14010 * thread.c (thread_alive): Add assertion. Return bool.
14011 (switch_to_thread_if_alive): New.
14012 (prune_threads): Switch inferior/thread.
14013 (print_thread_info_1): Switch thread before calling target methods.
14014 (scoped_restore_current_thread::restore): New, factored out from
14015 ...
14016 (scoped_restore_current_thread::~scoped_restore_current_thread):
14017 ... this.
14018 (scoped_restore_current_thread::scoped_restore_current_thread):
14019 Add assertion.
14020 (thread_apply_all_command, thread_select): Use
14021 switch_to_thread_if_alive.
14022
7f0ae84c
GB
140232020-01-10 George Barrett <bob@bob131.so>
14024
14025 * stap-probe.c (stap_modify_semaphore): Don't check for null
14026 semaphores.
14027 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
14028 for null semaphores.
14029
f5a7c406
AB
140302020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14031
14032 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
14033 all source windows, and maintain horizontal scroll status while
14034 doing so.
14035
9ae6bf64
TT
140362020-01-09 Tom Tromey <tom@tromey.com>
14037
14038 PR tui/18932:
14039 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
14040 update_source_window, not print_source_lines.
14041
b2efe70c
AB
140422020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14043
14044 * tui/tui.c (tui_enable): Register tui hooks after calling
14045 tui_display_main.
14046
5f23a082
CB
140472020-01-09 Christian Biesinger <cbiesinger@google.com>
14048
14049 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
14050
3061113b
SM
140512020-01-08 Simon Marchi <simon.marchi@efficios.com>
14052
14053 * thread.c (print_thread_info_1): Fix indentation.
14054
57d75002
CB
140552020-01-09 Christian Biesinger <cbiesinger@google.com>
14056
14057 * symtab.c (general_symbol_info::compute_and_set_names): Move the
14058 unique_xmalloc_ptr outside the if to always free the demangled name.
14059
6a053cb1
TT
140602020-01-08 Tom Tromey <tromey@adacore.com>
14061
14062 * xcoffread.c (enter_line_range, read_xcoff_symtab)
14063 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
14064 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
14065 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
14066 Remove.
14067 (section_offsets): New typedef.
14068 * symtab.c (fixup_section, get_msymbol_address): Update.
14069 * symmisc.c (dump_msymbols): Update.
14070 * symfile.h (relative_addr_info_to_section_offsets)
14071 (symfile_map_offsets_to_segments): Update.
14072 * symfile.c (build_section_addr_info_from_objfile)
14073 (init_objfile_sect_indices): Update.
14074 (struct place_section_arg): Change type of "offsets".
14075 (place_section): Update.
14076 (relative_addr_info_to_section_offsets): Change type of
14077 "section_offsets". Remove "num_sections" parameter.
14078 (default_symfile_offsets, syms_from_objfile_1)
14079 (set_objfile_default_section_offset): Update.
14080 (reread_symbols): No need to preserve section offsets by hand.
14081 (symfile_map_offsets_to_segments): Change type of "offsets".
14082 * stap-probe.c (relocate_address): Update.
14083 * stabsread.h (process_one_symbol): Update.
14084 * solib-target.c (struct lm_info_target) <offsets>: Change type.
14085 (solib_target_relocate_section_addresses): Update.
14086 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
14087 Update.
14088 * solib-frv.c (frv_relocate_main_executable): Update.
14089 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
14090 * solib-aix.c (solib_aix_get_section_offsets): Change return
14091 type.
14092 (solib_aix_solib_create_inferior_hook): Update.
14093 * remote.c (remote_target::get_offsets): Update.
14094 * psymtab.c (find_pc_sect_psymtab): Update.
14095 * psympriv.h (struct partial_symbol) <address, text_low,
14096 text_high>: Update.
14097 * objfiles.h (obj_section_offset): Update.
14098 (struct objfile) <section_offsets>: Change type.
14099 <num_sections>: Remove.
14100 (objfile_relocate): Update.
14101 * objfiles.c (entry_point_address_query): Update
14102 (relocate_one_symbol): Change type of "section_offsets".
14103 (objfile_relocate1, objfile_relocate1): Change type of
14104 "new_offsets".
14105 (objfile_rebase1): Update.
14106 * mipsread.c (mipscoff_symfile_read): Update.
14107 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
14108 parameter.
14109 * mdebugread.c (parse_symbol): Change type of "section_offsets".
14110 (parse_external, psymtab_to_symtab_1): Update.
14111 * machoread.c (macho_symfile_offsets): Update.
14112 * ia64-tdep.c (ia64_find_unwind_table): Update.
14113 * hppa-tdep.c (read_unwind_info): Update.
14114 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
14115 * dwarf2read.c (create_addrmap_from_index)
14116 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14117 (process_psymtab_comp_unit_reader, add_partial_symbol)
14118 (add_partial_subprogram, process_full_comp_unit)
14119 (read_file_scope, read_func_scope, read_lexical_block_scope)
14120 (read_call_site_scope, dwarf2_rnglists_process)
14121 (dwarf2_ranges_process, dwarf2_ranges_read)
14122 (dwarf_decode_lines_1, var_decode_location, new_symbol)
14123 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
14124 Update.
14125 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14126 Update.
14127 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14128 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14129 (process_one_symbol): Change type of "section_offsets".
14130 * ctfread.c (get_objfile_text_range): Update.
14131 * coffread.c (coff_symtab_read, enter_linenos)
14132 (process_coff_symbol): Update.
14133 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14134 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14135
456e800a
TT
141362020-01-08 Tom Tromey <tromey@adacore.com>
14137
14138 * dwarf2read.c (parse_macro_definition): Use std::string.
14139 (parse_macro_definition): Likewise.
14140
6dfa2fc2
TT
141412020-01-08 Tom Tromey <tromey@adacore.com>
14142
14143 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14144 (ATTR_ALLOC_CHUNK): Remove.
14145
421d1616
TT
141462020-01-08 Tom Tromey <tromey@adacore.com>
14147
14148 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14149
43816ebc
TT
141502020-01-08 Tom Tromey <tromey@adacore.com>
14151
14152 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14153 (dwarf2_compute_name, open_dwo_file): Likewise.
14154 (process_enumeration_scope): Use std::vector.
14155 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14156 (partial_die_info::fixup, dwarf2_start_subfile)
14157 (guess_full_die_structure_name, dwarf2_name): Likewise.
14158 (determine_prefix): Update.
14159 (guess_full_die_structure_name): Make return type const.
14160 (partial_die_full_name): Return unique_xmalloc_ptr.
14161 (DW_FIELD_ALLOC_CHUNK): Remove.
14162
4212d509
TT
141632020-01-07 Tom Tromey <tromey@adacore.com>
14164
14165 PR build/24937:
14166 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14167
06a6207a
JT
141682020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14169
14170 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14171
153d79c4
AB
141722020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14173
14174 * stack.c (print_frame_info): Move disassemble_next_line code
14175 inside source_print block.
14176
66182876
EZ
141772020-01-06 Eli Zaretskii <eliz@gnu.org>
14178
14179 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14180 gdb/signals.h, as we are now using native signal symbols.
14181
cbfa8581
SV
141822020-01-06 Shahab Vahedi <shahab@synopsys.com>
14183
14184 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14185 overflow by an early check of content vs threshold.
aac66a4c 14186 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
14187 Likewise.
14188
3f602821
EZ
141892020-01-06 Eli Zaretskii <eliz@gnu.org>
14190
14191 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14192
a08c904d
JT
141932020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14194
14195 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14196 export table if no section contains it's RVA.
14197
89a65580
EZ
141982020-01-06 Eli Zaretskii <eliz@gnu.org>
14199
14200 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14201
8b7fcda2
HD
142022020-01-06 Hannes Domani <ssbssa@yahoo.de>
14203
14204 * source.c (print_source_lines_base): Set last_line_listed.
14205
a61b4f69
SV
142062020-01-06 Shahab Vahedi <shahab@synopsys.com>
14207
14208 * tui/tui-disasm.c: Remove trailing spaces.
14209
559e7e50
EZ
142102020-01-06 Eli Zaretskii <eliz@gnu.org>
14211 Pedro Alves <palves@redhat.com>
14212
14213 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14214 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14215 (windows_gdb_signal_to_target): New function, uses the above
14216 enumeration to convert GDB internal signal codes to equivalent
14217 Windows codes.
14218 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14219 * windows-nat.c: Include "gdb_wait.h".
14220 (get_windows_debug_event): Extract the fatal exception from the
14221 exit status and convert to the equivalent Posix signal number.
14222 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14223 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14224 * gdbsupport/gdb_wait.c: New file, implements
14225 windows_status_to_termsig.
14226 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14227 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14228
f2302a34
AB
142292020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14230
14231 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14232 show_layout.
14233
6a5206eb
LM
142342020-01-05 Luis Machado <luis.machado@linaro.org>
14235
14236 * aarch64-linux-nat.c
14237 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14238 and bfd_mach_aarch64.
14239
6ec1d75e
PW
142402020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14241
14242 * ui-file.c (stdio_file::can_emit_style_escape)
14243 (tee_file::can_emit_style_escape): Ensure style is used also on
14244 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14245 to gdb_stdout.
14246 * main.c (set_gdb_data_directory): Use file style to output the
14247 warning that the given pathname is not a directory.
14248 * top.c (show_history_filename, gdb_safe_append_history)
14249 (show_gdb_datadir): Use file style.
14250
44f81a76
HD
142512020-01-03 Hannes Domani <ssbssa@yahoo.de>
14252
14253 * solib-target.c (struct lm_info_target):
14254 Change offsets to be a unique_xmalloc_ptr.
14255 (solib_target_relocate_section_addresses): Update.
14256
25057eb0
HD
142572020-01-03 Hannes Domani <ssbssa@yahoo.de>
14258
14259 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14260
6e2118f5
BE
142612020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14262
14263 * MAINTAINERS (Write After Approval): Add myself.
14264
8133c7dc
LM
142652020-01-02 Luis Machado <luis.machado@linaro.org>
14266
14267 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14268 Cell BE architecture.
14269 * target.h (struct target_ops) <thread_architecture>: Likewise.
14270
48189bec
HD
142712020-01-01 Hannes Domani <ssbssa@yahoo.de>
14272
14273 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14274
ead1063b
HD
142752020-01-01 Hannes Domani <ssbssa@yahoo.de>
14276
14277 * MAINTAINERS (Write After Approval): Add myself.
14278
e5d78223
JB
142792020-01-01 Joel Brobecker <brobecker@adacore.com>
14280
14281 * gdbarch.sh: Update copyright year range of generated files.
14282
b811d2c2
JB
142832020-01-01 Joel Brobecker <brobecker@adacore.com>
14284
14285 Update copyright year range in all GDB files.
14286
5f4def5c
JB
142872020-01-01 Joel Brobecker <brobecker@adacore.com>
14288
14289 * copyright.py: Convert to Python 3.
14290
51fd4002
JB
142912020-01-01 Joel Brobecker <brobecker@adacore.com>
14292
14293 * copyright.py: Adapt after move of gnulib directory from gdb
14294 directory to toplevel directory.
14295
5fb651f2
JB
142962020-01-01 Joel Brobecker <brobecker@adacore.com>
14297
14298 * copyright.py (main): Exit if run from the wrong directory.
14299
5dd8bf88
JB
143002020-01-01 Joel Brobecker <brobecker@adacore.com>
14301
14302 * top.c (print_gdb_version): Change copyright year to 2020.
14303
9f71dacb 143042020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 14305
9f71dacb 14306 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 14307
9f71dacb 14308For older changes see ChangeLog-2019.
c906108c
SS
14309\f
14310Local Variables:
14311mode: change-log
14312left-margin: 8
14313fill-column: 74
14314version-control: never
57da7796 14315coding: utf-8
c906108c 14316End:
This page took 6.683758 seconds and 4 git commands to generate.