Use a curses pad for source and disassembly windows
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
9e820dec
TT
12020-09-27 Tom Tromey <tom@tromey.com>
2
3 * unittests/tui-selftests.c: Update.
4 * tui/tui-winsource.h (struct tui_source_window_base)
5 <extra_margin, show_line_number, refresh_pad>: New methods.
6 <m_max_length, m_pad>: New members.
7 (tui_copy_source_line): Update.
8 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
9 first_col, line_width, ndigits parameters. Add length.
10 (tui_source_window_base::show_source_line): Write to pad. Line
11 number now 0-based.
12 (tui_source_window_base::refresh_pad): New method.
13 (tui_source_window_base::show_source_content): Write to pad. Call
14 refresh_pad.
15 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
16 not refill.
17 (tui_source_window_base::update_exec_info): Call
18 show_line_number.
19 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
20 method.
21 <m_digits>: New member.
22 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
23 and m_max_length.
24 (tui_source_window::show_line_number): New method.
25 * tui/tui-io.h (tui_puts): Fix comment.
26 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
27 m_max_length.
28
c15c15c8
TT
292020-09-27 Tom Tromey <tom@tromey.com>
30
31 * tui/tui-winsource.c
32 (tui_source_window_base::set_is_exec_point_at): Don't call
33 show_source_line.
34
149830c1
TT
352020-09-27 Tom Tromey <tom@tromey.com>
36
37 * python/py-tui.c (class tui_py_window) <refresh_window>: New
38 method.
39 <erase>: Update.
40 <cursor_x, cursor_y>: Remove.
41 <m_inner_window>: New member.
42 (tui_py_window::rerender): Create inner window.
43 (tui_py_window::output): Write to inner window.
44
8f9929bb
GR
452020-09-26 Gareth Rees <grees@undo.io> (tiny change)
46
47 PR python/26586
48 * cli/cli-script.c (execute_control_commands): don't set
49 instream to nullptr here as this breaks the from_tty argument
50 to gdb.execute in Python.
51 (execute_user_command): set instream to nullptr here instead.
52
956bdb59
SM
532020-09-25 Simon Marchi <simon.marchi@efficios.com>
54
55 * infrun.h (infrun_debug_printf): Fix formatting.
56 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
57
3b93626b
SJ
582020-09-25 Saagar Jha <saagar@saagarjha.com>
59
60 * compile/compile-object-load.h (struct munmap_list): Add
61 explicitly-defined move constructor.
62
b551a89f
TT
632020-09-24 Tom Tromey <tromey@adacore.com>
64
65 PR tui/26638:
66 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
67 method.
68 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
69 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
70 (tui_prev_win): Rewrite.
71
99bb393f
HD
722020-09-23 Hannes Domani <ssbssa@yahoo.de>
73
74 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
75 in WOW64 processes as SIGINT.
76 * nat/windows-nat.h: Make wow64_process a shared variable.
77 * windows-nat.c: Remove static wow64_process variable.
78
20a5fcbd
TT
792020-09-23 Tom Tromey <tom@tromey.com>
80
81 PR symtab/25470:
82 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
83 offset and bit size.
84 * printcmd.c (print_scalar_formatted): Handle zero-length
85 integer.
86 (print_scalar_formatted): Use bit_size_differs_p.
87 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
88 constant.
89 (union type_specific): <int_stuff>: New member.
90 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
91 methods.
92 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
93 TYPE_SPECIFIC_FIELD.
94 (recursive_dump_type, copy_type_recursive): Update.
95 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
96 DW_AT_data_bit_offset.
97
bac51ab7
TT
982020-09-23 Tom Tromey <tom@tromey.com>
99
100 * utils.h (class gdb_argv): Add move operators.
101 <append>: New methods.
102 * compile/compile.c (build_argc_argv): Remove.
103 (compile_args_argc): Remove.
104 (compile_args_argv): Change type.
105 (set_compile_args): Simplify.
106 (append_args): Remove.
107 (filter_args): Remove argcp parameter.
108 (get_args): Return gdb_argv. Simplify.
109 (compile_to_object): Update.
110
92677124
TT
1112020-09-23 Tom Tromey <tom@tromey.com>
112
113 * compile/compile-object-run.c (do_module_cleanup)
114 <~do_module_cleanup> :Remove.
115 (do_module_cleanup): Update.
116 * compile/compile-object-load.h (struct munmap_list): Add move
117 assignment operator.
118 <source_file>: Now a std::string.
119 <munmap_list>: Rename. No longer a pointer.
120 * compile/compile-object-load.c (struct setup_sections_data): Add
121 constructor.
122 <setup_one_section>: Declare.
123 <munmap_list>: Move earlier.
124 <m_bfd>: New member.
125 <m_last_size, m_last_section_first, m_last_prot,
126 m_last_max_alignment>: Rename, add initializers where needed.
127 (setup_sections_data::setup_one_section): Rename from
128 setup_sections. Update.
129 (compile_object_load): Update. Don't use bfd_map_over_sections.
130
e616f60a
TT
1312020-09-23 Tom Tromey <tom@tromey.com>
132
133 * compile/compile-object-run.c (struct do_module_cleanup): Add
134 parameters to constructor. Update destructor.
135 <source_file, scope, scope_data, out_value_type, out_value_addr,
136 munmap_list_head, objfile_name_string>: Remove.
137 <module>: New member.
138 (do_module_cleanup): Update.
139 (compile_object_run): Update.
140
e947a848
TT
1412020-09-23 Tom Tromey <tom@tromey.com>
142
143 * compile/compile.c (eval_compile_command): Update.
144 * compile/compile-object-run.h (compile_object_run): Take a
145 compile_module_up.
146 * compile/compile-object-run.c (compile_object_run): Take a
147 compile_module_up.
148 * compile/compile-object-load.h (struct compile_module): Add
149 constructor, destructor.
150 (compile_module_up): New typedef.
151 (compile_object_load): Return compile_object_up.
152 * compile/compile-object-load.c (compile_object_load): Return
153 compile_module_up.
154
0dbf6ee6
TT
1552020-09-23 Tom Tromey <tom@tromey.com>
156
157 * compile/compile-object-run.c (struct do_module_cleanup): Add
158 constructor, destructor.
159 <objfile_name_string>: Don't use struct hack.
160 (do_module_cleanup): Use delete.
161 (compile_object_run): Use new.
162
ebe824f5
TT
1632020-09-23 Tom Tromey <tom@tromey.com>
164
165 * compile/compile-cplus-types.c
166 (compile_cplus_convert_struct_or_union): Use std::vector.
167 (compile_cplus_convert_func): Likewise.
168 * compile/compile-c-types.c (convert_func): Use std::vector.
169
5dd918d9
TT
1702020-09-21 Tom Tromey <tromey@adacore.com>
171
172 * sparc-tdep.c (sparc32_skip_prologue): Use
173 skip_prologue_using_sal.
174
5486c517
TT
1752020-09-19 Tom Tromey <tom@tromey.com>
176
177 * symfile.c (add_section_size_callback): Remove.
178 (load_one_section): Rename from load_section_callback. Change
179 parameters.
180 (generic_load): Use foreach.
181
8a6bb1d1
TT
1822020-09-19 Tom Tromey <tom@tromey.com>
183
184 * exec.c (add_to_section_table): Remove.
185 (build_section_table): Use foreach.
186
08f93a1a
TT
1872020-09-19 Tom Tromey <tom@tromey.com>
188
189 * elfread.c (elf_locate_sections): Change parameters.
190 (elf_symfile_read): Use foreach.
191
03cd72b8
TT
1922020-09-19 Tom Tromey <tom@tromey.com>
193
194 * cli/cli-dump.c (struct callback_data): Remove.
195 (restore_one_section): Rename from restore_section_callback.
196 Change parameters.
197 (restore_binary_file): Change parameters.
198 (restore_command): Use foreach.
199
f4f2b85f
TT
2002020-09-19 Tom Tromey <tom@tromey.com>
201
202 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
203 (gcore_copy_callback): Likewise.
204 (gcore_memory_sections): Use foreach.
205
b35c1d1c
TT
2062020-09-19 Tom Tromey <tom@tromey.com>
207
208 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
209 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
210 parameters.
211 (generic_elf_osabi_sniffer): Use foreach.
212 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
213 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
214
5bb6e9dd
TT
2152020-09-19 Tom Tromey <tom@tromey.com>
216
217 * dwarf2/read.c (locate_dwz_sections): Change parameters.
218 (dwarf2_get_dwz_file): Use foreach.
219 (dwarf2_locate_dwo_sections): Change parameters.
220 (open_and_init_dwo_file): Use foreach.
221 (dwarf2_locate_common_dwp_sections): Change parameters.
222 (open_and_init_dwp_file): Use foreach.
223
ad7277da
TT
2242020-09-19 Tom Tromey <tom@tromey.com>
225
226 * symfile.h: (find_lowest_section): Don't declare.
227 * symfile.c (find_lowest_section): Now static. Change
228 parameters.
229 (struct place_section_arg): Remove.
230 (place_section): Change parameters.
231 (addr_info_make_relative): Use foreach.
232 (symfile_dummy_outputs): Remove.
233 (default_symfile_relocate): Use foreach.
234
cb814f2e
TT
2352020-09-19 Tom Tromey <tom@tromey.com>
236
237 * objfiles.c (add_to_objfile_sections): Rename from
238 add_to_objfile_sections_full.
239 (add_to_objfile_sections): Remove.
240 (build_objfile_section_table): Use foreach.
241
3cabfd26
TT
2422020-09-19 Tom Tromey <tom@tromey.com>
243
244 * stap-probe.c (get_stap_base_address_1): Remove.
245 (get_stap_base_address): Use foreach.
246
1ce51eb5
TT
2472020-09-19 Tom Tromey <tom@tromey.com>
248
249 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
250 parameters.
251 (gdb_bfd_close_or_warn): Use foreach.
252
a190fabb
TT
2532020-09-19 Tom Tromey <tom@tromey.com>
254
255 * corelow.c (add_to_thread_list): Change parameters.
256 (core_target_open): Use foreach.
257
cafb0d81
TT
2582020-09-19 Tom Tromey <tom@tromey.com>
259
260 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
261 existing function.
262
c8d5abea
AB
2632020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
264
265 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
266 for arrays.
267
6d816919
AB
2682020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
269
270 * eval.c: Remove 'f-lang.h' include.
271 (value_f90_subarray): Moved to f-lang.c.
272 (eval_call): Renamed to...
273 (evaluate_subexp_do_call): ...this, is no longer static, header
274 comment moved into header file.
275 (evaluate_funcall): Update call to eval_call.
276 (skip_undetermined_arglist): Moved to f-lang.c.
277 (fortran_value_subarray): Likewise.
278 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
279 moved to evaluate_subexp_f.
280 (calc_f77_array_dims): Moved to f-lang.c
281 * expprint.c (print_subexp_funcall): New function.
282 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
283 moved to print_subexp_f, OP_FUNCALL uses new function.
284 (dump_subexp_body_funcall): New function.
285 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
286 moved to dump_subexp_f, OP_FUNCALL uses new function.
287 * expression.h (evaluate_subexp_do_call): Declare.
288 * f-lang.c (value_f90_subarray): Moved from eval.c.
289 (skip_undetermined_arglist): Likewise.
290 (calc_f77_array_dims): Likewise.
291 (fortran_value_subarray): Likewise.
292 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
293 (operator_length_f): Likewise.
294 (print_subexp_f): Likewise.
295 (dump_subexp_body_f): Likewise.
296 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
297 declaration of this operation to here.
298 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
299 support moved to operator_length_f.
300 * parser-defs.h (dump_subexp_body_funcall): Declare.
301 (print_subexp_funcall): Declare.
302 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
303 fortran-operator.def.
304
8c37706a
AB
3052020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
306
307 * eval.c (fortran_value_subarray): New function, content is taken
308 from...
309 (evaluate_subexp_standard): ...here, in two places. Now arrays
310 and strings both call the new function.
311 (calc_f77_array_dims): Add header comment, handle strings.
312
14f9473c
VC
3132020-09-18 Victor Collod <vcollod@nvidia.com>
314
315 PR gdb/26635
316 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
317 (i386_analyze_prologue): Call i386_skip_endbr.
318
b60cea74
TT
3192020-09-18 Tom Tromey <tromey@adacore.com>
320
321 * windows-nat.c (struct windows_nat_target) <wait>: Update.
322 (windows_nat_target::wait): Update.
323 * target/wait.h (enum target_wait_flag): New. Use
324 DEF_ENUM_FLAGS_TYPE.
325 * target/target.h (target_wait): Change type of options.
326 * target.h (target_options_to_string, default_target_wait):
327 Update.
328 (struct target_ops) <wait>: Change type of options.
329 * target.c (target_wait, default_target_wait, do_option): Change
330 type of "options".
331 (target_options_to_string): Likewise.
332 * target-delegates.c: Rebuild.
333 * target-debug.h (target_debug_print_target_wait_flags): Rename
334 from target_debug_print_options.
335 * sol-thread.c (class sol_thread_target) <wait>: Update.
336 (sol_thread_target::wait): Update.
337 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
338 (rs6000_nat_target::wait): Update.
339 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
340 Update.
341 (remote_target::wait_ns, remote_target::wait_as): Change type of
342 "options".
343 (remote_target::wait): Update.
344 * remote-sim.c (struct gdbsim_target) <wait>: Update.
345 (gdbsim_target::wait): Update.
346 * record-full.c (class record_full_base_target) <wait>: Update.
347 (record_full_wait_1): Change type of "options".
348 (record_full_base_target::wait): Update.
349 * record-btrace.c (class record_btrace_target) <wait>: Update.
350 (record_btrace_target::wait): Update.
351 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
352 Update.
353 (ravenscar_thread_target::wait): Update.
354 * procfs.c (class procfs_target) <wait>: Update.
355 (procfs_target::wait): Update.
356 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
357 * obsd-nat.c (obsd_nat_target::wait): Update.
358 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
359 (nto_procfs_target::wait): Update.
360 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
361 * nbsd-nat.c (nbsd_wait): Change type of "options".
362 (nbsd_nat_target::wait): Update.
363 * linux-thread-db.c (class thread_db_target) <wait>: Update.
364 (thread_db_target::wait): Update.
365 * linux-nat.h (class linux_nat_target) <wait>: Update.
366 * linux-nat.c (linux_nat_target::wait): Update.
367 (linux_nat_wait_1): Update.
368 * infrun.c (do_target_wait_1, do_target_wait): Change type of
369 "options".
370 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
371 * inf-ptrace.c (inf_ptrace_target::wait): Update.
372 * go32-nat.c (struct go32_nat_target) <wait>: Update.
373 (go32_nat_target::wait): Update.
374 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
375 * gnu-nat.c (gnu_nat_target::wait): Update.
376 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
377 * fbsd-nat.c (fbsd_nat_target::wait): Update.
378 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
379 * darwin-nat.c (darwin_nat_target::wait): Update.
380 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
381 (bsd_uthread_target::wait): Update.
382 * aix-thread.c (class aix_thread_target) <wait>: Update.
383 (aix_thread_target::wait): Update.
384
0295dde6
AB
3852020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
386
387 * compile/compile-object-run.c (create_copied_type_recursive): New
388 function.
389 (compile_object_run): Use new function.
390
d3483b43
JT
3912020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
392
393 * NEWS: Mention x86_64 Cygwin core file support.
394
e7d612ad
JT
3952020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
396
397 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
398 (core_process_module_section): Handle NOTE_INFO_MODULE64.
399
aff9d387
JT
4002020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
401
62a5151b
JT
402 * windows-tdep.h: Add prototypes.
403 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
404 (i386_windows_core_pid_to_str): Move and rename ...
405 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
406 (windows_core_pid_to_str): ... and here.
407 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
408
4092020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
410 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
411 (amd64_windows_init_abi_common): ... and register.
412
7d155da3
JT
4132020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
414
415 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
416 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
417
e8ef12b9
PA
4182020-09-18 Pedro Alves <pedro@palves.net>
419
420 PR gdb/26631
421 * thread.c (thread_find_command): Switch inferior before calling
422 target methods.
423
c1e1314d
TT
4242020-09-17 Tom Tromey <tromey@adacore.com>
425
426 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
427 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
428 (tdesc_arch_data_up): New typedef.
429 (tdesc_use_registers, tdesc_data_alloc): Update.
430 (tdesc_data_cleanup): Don't declare.
431 * target-descriptions.c (tdesc_data_alloc): Return a
432 tdesc_arch_data_up.
433 (tdesc_arch_data_deleter::operator()): Rename from
434 tdesc_data_cleanup. Change argument type.
435 (tdesc_use_registers): Change early_data to an rvalue reference.
436 (tdesc_use_registers): Don't use delete.
437 * sparc-tdep.c (sparc32_gdbarch_init): Update.
438 * s390-tdep.c (s390_gdbarch_init): Update.
439 * rx-tdep.c (rx_gdbarch_init): Update.
440 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
441 * riscv-tdep.c (riscv_gdbarch_init): Update.
442 * or1k-tdep.c (or1k_gdbarch_init): Update.
443 * nios2-tdep.c (nios2_gdbarch_init): Update.
444 * nds32-tdep.c (nds32_gdbarch_init): Update.
445 * mips-tdep.c (mips_gdbarch_init): Update.
446 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
447 * m68k-tdep.c (m68k_gdbarch_init): Update.
448 * i386-tdep.c (i386_gdbarch_init): Update.
449 * arm-tdep.c (arm_gdbarch_init): Update.
450 * arc-tdep.c (arc_tdesc_init): Update.
451 (arc_gdbarch_init): Update.
452 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
453
0363df3d
HD
4542020-09-17 Hannes Domani <ssbssa@yahoo.de>
455
456 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
457 for WOW64 processes.
458
280a9412
TT
4592020-09-17 Tom Tromey <tom@tromey.com>
460
461 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
462
6108fd18
TT
4632020-09-17 Tom Tromey <tom@tromey.com>
464
465 * value.c (preserve_values): Update.
466 * python/py-type.c (save_objfile_types): Update.
467 * guile/scm-type.c (save_objfile_types): Update.
468 * gdbtypes.h (create_copied_types_hash): Return htab_up.
469 * gdbtypes.c (create_copied_types_hash): Return htab_up.
470 * compile/compile-object-run.c (compile_object_run): Update.
471
fa9b1164
TT
4722020-09-17 Tom Tromey <tom@tromey.com>
473
474 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
475 Remove.
476 <m_table>: Now htab_up.
477 * typeprint.c (typedef_hash_table::recursively_update)
478 (typedef_hash_table::add_template_parameters)
479 (typedef_hash_table::typedef_hash_table): Update.
480 (typedef_hash_table::~typedef_hash_table): Remove.
481 (typedef_hash_table::typedef_hash_table)
482 (typedef_hash_table::find_global_typedef)
483 (typedef_hash_table::find_typedef): Update.
484
eb53f105
TT
4852020-09-17 Tom Tromey <tom@tromey.com>
486
487 * target-descriptions.c (tdesc_use_registers): Use htab_up.
488
7a8a5d47
TT
4892020-09-17 Tom Tromey <tom@tromey.com>
490
491 * linespec.c (class decode_compound_collector)
492 <~decode_compound_collector>: Remove.
493 <m_unique_syms>: Now htab_up.
494 (decode_compound_collector::operator ()): Update.
495 (class symtab_collector) <~symtab_collector>: Remove.
496 <m_symtab_table>: Now htab_up.
497 (symtab_collector::operator ()): Update.
498
99032cfc
TT
4992020-09-17 Tom Tromey <tom@tromey.com>
500
501 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
502 (filename_seen_cache::clear): Update.
503 (~filename_seen_cache): Remove.
504 (filename_seen_cache::seen): Update.
505 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
506 htab_up.
507 <~filename_seen_cache>: Remove.
508 <traverse>: Update.
509
32580f6d
TT
5102020-09-17 Tom Tromey <tom@tromey.com>
511
512 * completer.c (completion_tracker::discard_completions)
513 (completion_tracker::~completion_tracker)
514 (completion_tracker::maybe_add_completion)
515 (completion_tracker::remove_completion)
516 (completion_tracker::recompute_lowest_common_denominator)
517 (completion_tracker::build_completion_result): Update.
518 * completer.h (class completion_tracker) <have_completions>:
519 Update.
520 <m_entries_hash>: Now htab_up.
521
c1fb9836
TT
5222020-09-17 Tom Tromey <tom@tromey.com>
523
524 * breakpoint.c (ambiguous_names_p): Use htab_up.
525
88f07206
TT
5262020-09-17 Tom Tromey <tom@tromey.com>
527
528 * auto-load.c (struct auto_load_pspace_info)
529 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
530 <loaded_script_files, loaded_script_texts>: Change type to
531 htab_up.
532 (~auto_load_pspace_info) Remove.
533 (init_loaded_scripts_info, maybe_add_script_file)
534 (maybe_add_script_text, auto_load_info_scripts): Update.
535
9519b2ee
TT
5362020-09-17 Tom Tromey <tromey@adacore.com>
537
538 * c-exp.y (name_obstack): Now static.
539
d2cd4113
CC
5402020-09-17 Chungyi Chi <demonic@csie.io>
541
542 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
543
b650a282
SM
5442020-09-16 Simon Marchi <simon.marchi@efficios.com>
545
546 * breakpoint.h (init_catchpoint): Change int parameter to bool.
547 (add_solib_catchpoint): Likewise.
548 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
549 to bool.
550 (add_solib_catchpoint): Change int parameter/variable to bool.
551 (catch_load_or_unload): Likewise.
552 (init_catchpoint): Likewise.
553 (create_fork_vfork_event_catchpoint): Likewise.
554 (catch_fork_command_1): Likewise.
555 (catch_exec_command_1): Likewise.
556
4d0bcfcf
SM
5572020-09-16 Simon Marchi <simon.marchi@efficios.com>
558
559 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
560 Change instance_flags to m_instance_flags.
561
fe830662
TT
5622020-09-16 Tom Tromey <tromey@adacore.com>
563
564 PR gdb/26598:
565 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
566
fe5ddfc3
JB
5672020-09-16 John Baldwin <jhb@FreeBSD.org>
568
569 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
570 PL_FLAG_EXEC.
571 (fbsd_nat_target::insert_exec_catchpoint)
572 (fbsd_nat_target::remove_exec_catchpoint): Always define.
573 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
574 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
575
e911c666
JB
5762020-09-16 John Baldwin <jhb@FreeBSD.org>
577
578 * configure.ac: Remove check for kinfo_getvmmap().
579 * configure, config.in: Regenerate.
580 * fbsd-nat.c (fbsd_read_mapping): Remove
581 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
582 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
583 kinfo_get_vmmap() are always present.
584
1f17d372
JB
5852020-09-16 John Baldwin <jhb@FreeBSD.org>
586
587 * fbsd-nat.c: Always include support for
588 TARGET_OBJECT_SIGNAL_INFO.
589
bcb1da7f
JB
5902020-09-16 John Baldwin <jhb@FreeBSD.org>
591
592 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
593 sysctl and remove procfs fallback.
594
5515f729
JB
5952020-09-16 John Baldwin <jhb@FreeBSD.org>
596
597 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
598 * fbsd-nat.h: Likewise.
599
da1df1db
TBA
6002020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
601
602 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
603 argument.
604
0e25e767
AB
6052020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
606
607 * ada-lang.c (ada_language_data): Delete.
608 (ada_language): Remove references to ada_language_data.
609 * c-lang.c (c_language_data): Delete.
610 (c_language): Remove references to c_language_data.
611 (cplus_language_data): Delete.
612 (cplus_language): Remove references to cplus_language_data.
613 (asm_language_data): Delete.
614 (asm_language): Remove references to asm_language_data.
615 (minimal_language_data): Delete.
616 (minimal_language): Remove references to minimal_language_data.
617 * d-lang.c (d_language_data): Delete.
618 (d_language): Remove references to d_language_data.
619 * f-lang.c (f_language_data): Delete.
620 (f_language): Remove references to f_language_data.
621 * go-lang.c (go_language_data): Delete.
622 (go_language): Remove references to go_language_data.
623 * language.c (unknown_language_data): Delete.
624 (unknown_language): Remove references to unknown_language_data.
625 (auto_language_data): Delete.
626 (auto_language): Remove references to auto_language_data.
627 * language.h (language_data): Delete struct.
628 (language_defn): No longer inherit from language_data.
629 * m2-lang.c (m2_language_data): Delete.
630 (m2_language): Remove references to m2_language_data.
631 * objc-lang.c (objc_language_data): Delete.
632 (objc_language): Remove references to objc_language_data.
633 * opencl-lang.c (opencl_language_data): Delete.
634 (opencl_language): Remove references to opencl_language_data.
635 * p-lang.c (pascal_language_data): Delete.
636 (pascal_language): Remove references to pascal_language_data.
637 * rust-lang.c (rust_language_data): Delete.
638 (rust_language): Remove references to rust_language_data.
639
b7c6e27d
AB
6402020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
641
642 * ada-lang.c (ada_language_data): Remove la_op_print_tab
643 initializer.
644 (ada_language::opcode_print_table): New member function.
645 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
646 (c_language::opcode_print_table): New member function.
647 (cplus_language_data): Remove la_op_print_tab initializer.
648 (cplus_language::opcode_print_table): New member function.
649 (asm_language_data): Remove la_op_print_tab initializer.
650 (asm_language::opcode_print_table): New member function.
651 (minimal_language_data): Remove la_op_print_tab initializer.
652 (minimal_language::opcode_print_table): New member function.
653 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
654 (d_language::opcode_print_table): New member function.
655 * expprint.c (print_subexp_standard): Update call to
656 opcode_print_table.
657 (op_string): Likewise.
658 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
659 (f_language::opcode_print_table): New member function.
660 * go-lang.c (go_language_data): Remove la_op_print_tab
661 initializer.
662 (go_language::opcode_print_table): New member function.
663 * language.c (unknown_language_data): Remove la_op_print_tab
664 initializer.
665 (unknown_language::opcode_print_table): New member function.
666 (auto_language_data): Remove la_op_print_tab initializer.
667 (auto_language::opcode_print_table): New member function.
668 * language.h (language_data): Remove la_op_print_tab field.
669 (language_defn::opcode_print_table): Declare new member function.
670 * m2-lang.c (m2_language_data): Remove la_op_print_tab
671 initializer.
672 (m2_language::opcode_print_table): New member function.
673 * objc-lang.c (objc_language_data): Remove la_op_print_tab
674 initializer.
675 (objc_language::opcode_print_table): New member function.
676 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
677 initializer.
678 (opencl_language::opcode_print_table): New member function.
679 * p-lang.c (pascal_language_data): Remove la_op_print_tab
680 initializer.
681 (pascal_language::opcode_print_table): New member function.
682 * rust-lang.c (rust_language_data): Remove la_op_print_tab
683 initializer.
684 (rust_language::opcode_print_table): New member function.
685
5aba6ebe
AB
6862020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
687
688 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
689 (ada_language::expression_ops): New member function.
690 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
691 (c_language::expression_ops): New member function.
692 (cplus_language_data): Remove la_exp_desc initializer.
693 (cplus_language::expression_ops): New member function.
694 (asm_language_data): Remove la_exp_desc initializer.
695 (asm_language::expression_ops): New member function.
696 (minimal_language_data): Remove la_exp_desc initializer.
697 (minimal_language::expression_ops): New member function.
698 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
699 (d_language::expression_ops): New member function.
700 * eval.c (evaluate_subexp): Update call to expression_ops.
701 * expprint.c (print_subexp): Likewise.
702 (op_name): Likewise.
703 (dump_subexp_body): Likewise.
704 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
705 (f_language::expression_ops): New member function.
706 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
707 (go_language::expression_ops): New member function.
708 * language.c (language_defn::expression_ops): New function.
709 (unknown_language_data): Remove la_exp_desc initializer.
710 (auto_language_data): Likewise.
711 * language.h (language_data): Remove la_exp_desc field.
712 (language_defn::expression_ops): Declare new member function.
713 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
714 (m2_language::expression_ops): New member function.
715 * objc-lang.c (objc_language_data): Remove la_exp_desc
716 initializer.
717 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
718 initializer.
719 (opencl_language::expression_ops): New member function.
720 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
721 * parse.c (operator_length): Update call to expression_ops.
722 (exp_iterate): Likewise.
723 * rust-lang.c (rust_language_data): Remove la_exp_desc
724 initializer.
725 (ruse_language::expression_ops): New member function.
726
b63a3f3f
AB
7272020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
728
729 * ada-lang.c (ada_language_data): Remove la_varobj_ops
730 initializer.
731 (ada_language::varobj_ops): New member function.
732 * c-lang.c (c_language_data): Remove la_varobj_ops
733 initializer.
734 (cplus_language_data): Likewise.
735 (cplus_language::varobj_ops): New member function.
736 (asm_language_data): Remove la_varobj_ops initializer.
737 (minimal_language_data): Likewise.
738 * d-lang.c (d_language_data): Likewise.
739 * f-lang.c (f_language_data): Likewise.
740 * go-lang.c (go_language_data): Likewise.
741 * language.c (language_defn::varobj_ops): New function.
742 (unknown_language_data): Remove la_varobj_ops
743 initializer.
744 (auto_language_data): Likewise.
745 * language.h (language_data): Remove la_varobj_ops field.
746 (language_defn::varobj_ops): Declare new member function.
747 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
748 * objc-lang.c (objc_language_data): Likewise.
749 * opencl-lang.c (opencl_language_data): Likewise.
750 * p-lang.c (pascal_language_data): Likewise.
751 * rust-lang.c (rust_language_data): Likewise.
752 * varobj.c (varobj_create): Update call to varobj_ops.
753 * varobj.h (default_varobj_ops): Delete define.
754
1ac14a04
AB
7552020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
756
757 * ada-lang.c (ada_language_data): Remove la_macro_expansion
758 initializer.
759 * c-lang.c (c_language_data): Likewise.
760 (c_language::macro_expansion): New member function.
761 (cplus_language_data): Likewise.
762 (cplus_language::macro_expansion): New member function.
763 (asm_language_data): Likewise.
764 (asm_language::macro_expansion): New member function.
765 (minimal_language_data): Likewise.
766 (minimal_language::macro_expansion): New member function.
767 * d-lang.c (d_language_data): Remove la_macro_expansion
768 initializer.
769 * f-lang.c (f_language_data): Likewise.
770 * go-lang.c (go_language_data): Likewise.
771 * language.c (unknown_language_data): Likewise.
772 (auto_language_data): Likewise.
773 * language.h (language_data): Remove la_macro_expansion field.
774 (language_defn::macro_expansion): New member function.
775 * m2-lang.c (m2_language_data): Remove la_macro_expansion
776 initializer.
777 * objc-lang.c (objc_language_data): Likewise.
778 (objc_language::macro_expansion): New member function.
779 * opencl-lang.c (opencl_language_data): Likewise.
780 (opencl_language::macro_expansion): New member function.
781 * p-lang.c (pascal_language_data): Remove la_macro_expansion
782 initializer.
783 * rust-lang.c (rust_language_data): Likewise.
784 * symtab.c (default_collect_symbol_completion_matches_break_on):
785 Update call to macro_expansion.
786
3a3440fb
AB
7872020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
788
789 * ada-lang.c (ada_language_data): Remove la_array_ordering
790 initializer.
791 * c-lang.c (c_language_data): Likewise.
792 (cplus_language_data): Likewise.
793 (asm_language_data): Likewise.
794 (minimal_language_data): Likewise.
795 * d-lang.c (d_language_data): Likewise.
796 * dwarf2/read.c (read_array_order): Update for call to
797 array_ordering.
798 * f-lang.c (f_language_data): Remove la_array_ordering
799 initializer.
800 (f_language::array_ordering): New member function.
801 * go-lang.c (go_language_data): Remove la_array_ordering
802 initializer.
803 * language.c (unknown_language_data): Likewise.
804 (auto_language_data): Likewise.
805 * language.h (language_data): Delete la_array_ordering field.
806 (language_defn::array_ordering): New member function.
807 * m2-lang.c (m2_language_data): Remove la_array_ordering
808 initializer.
809 * objc-lang.c (objc_language_data): Likewise.
810 * opencl-lang.c (opencl_language_data): Likewise.
811 * p-lang.c (pascal_language_data): Likewise.
812 * rust-lang.c (rust_language_data): Likewise.
813
0d201fa4
AB
8142020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
815
816 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
817 initializer.
818 * c-lang.c (c_language_data): Likewise.
819 (cplus_language_data): Likewise.
820 (asm_language_data): Likewise.
821 (minimal_language_data): Likewise.
822 * d-lang.c (d_language_data): Likewise.
823 * f-lang.c (f_language_data): Likewise.
824 (f_language::case_sensitivity): New member function.
825 * go-lang.c (go_language_data): Remove la_case_sensitivity
826 initializer.
827 * language.c (enum case_mode): Moved here from language.h.
828 (case_mode): Make static.
829 (show_case_command): Update for case_sensitivity being a method.
830 (set_case_command): Likewise.
831 (set_range_case): Likewise.
832 (unknown_language_data): Remove la_case_sensitivity initializer.
833 (auto_language_data): Likewise.
834 * language.h (case_mode): Delete, move enum declaration to
835 language.c.
836 (language_data): Delete la_case_sensitivity field.
837 (language_defn::case_sensitivity): New member function.
838 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
839 initializer.
840 * objc-lang.c (objc_language_data): Likewise.
841 * opencl-lang.c (opencl_language_data): Likewise.
842 * p-lang.c (pascal_language_data): Likewise.
843 * rust-lang.c (rust_language_data): Likewise.
844
efdf6a73
AB
8452020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
846
847 * ada-lang.c (ada_language_data): Remove la_range_check
848 initializer.
849 * c-lang.c (c_language_data): Likewise.
850 (cplus_language_data): Likewise.
851 (asm_language_data): Likewise.
852 (minimal_language_data): Likewise.
853 * d-lang.c (d_language_data): Likewise.
854 * f-lang.c (f_language_data): Likewise.
855 (f_language::range_checking_on_by_default): New member function.
856 * go-lang.c (go_language_data): Remove la_range_check initializer.
857 * language.c (enum range_mode): Moved here from language.h.
858 (range_mode): Made static.
859 (show_range_command): Update to use
860 range_checking_on_by_default.
861 (set_range_command): Likewise.
862 (set_range_case): Likewise.
863 (unknown_language_data): Remove la_range_check initializer.
864 (auto_language_data): Likewise.
865 * language.h (range_mode): Delete. Enum definition moved to
866 language.c.
867 (language_data): Remove la_range_check field.
868 (language_defn::range_checking_on_by_default): New member
869 function.
870 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
871 (m2_language::range_checking_on_by_default): New member function.
872 * objc-lang.c (objc_language_data): Remove la_range_check
873 initializer.
874 * opencl-lang.c (opencl_language_data): Likewise.
875 * p-lang.c (pascal_language_data): Likewise.
876 (pascal_language::range_checking_on_by_default): New member
877 function.
878 * rust-lang.c (rust_language_data): Remove la_range_check
879 initializer.
880 (rust_language::range_checking_on_by_default): New member
881 function.
882
bf92aec5
AB
8832020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
884
885 * dwarf2/read.c (dwarf2_physname): Remove special case for
886 language_go.
887 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
888 member function.
889
d3355e4d
AB
8902020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
891
892 * ada-lang.c (ada_language_data): Remove
893 la_store_sym_names_in_linkage_form_p initializer.
894 (ada_language::store_sym_names_in_linkage_form_p): New member
895 function.
896 * c-lang.c (c_language_data): Remove
897 la_store_sym_names_in_linkage_form_p initializer.
898 (c_language::store_sym_names_in_linkage_form_p): New member
899 function.
900 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
901 initializer.
902 (asm_language_data): Likewise.
903 (asm_language::store_sym_names_in_linkage_form_p): New member
904 function.
905 (minimal_language_data): Remove
906 la_store_sym_names_in_linkage_form_p initializer.
907 (minimal_language::store_sym_names_in_linkage_form_p): New member
908 function.
909 * d-lang.c (d_language_data): Remove
910 la_store_sym_names_in_linkage_form_p initializer.
911 * dwarf2/read.c (dwarf2_physname): Update call to
912 store_sym_names_in_linkage_form_p.
913 * f-lang.c (f_language_data): Remove
914 la_store_sym_names_in_linkage_form_p initializer.
915 * go-lang.c (go_language_data): Remove
916 la_store_sym_names_in_linkage_form_p initializer.
917 * language.c (unknown_language_data): Remove
918 la_store_sym_names_in_linkage_form_p initializer.
919 (unknown_language::store_sym_names_in_linkage_form_p): New member
920 function.
921 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
922 initializer.
923 (auto_language::store_sym_names_in_linkage_form_p): New member
924 function.
925 * language.h (language_data): Remove
926 la_store_sym_names_in_linkage_form_p member variable.
927 (language_defn::store_sym_names_in_linkage_form_p): New member
928 function.
929 * m2-lang.c (m2_language_data): Remove
930 la_store_sym_names_in_linkage_form_p initializer.
931 * objc-lang.c (objc_language_data): Likewise.
932 * opencl-lang.c (opencl_language_data): Likewise.
933 * p-lang.c (pascal_language_data): Likewise.
934 * rust-lang.c (rust_language_data): Likewise.
935
22c12a6c
AB
9362020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
937
938 * ada-lang.c (ada_language_data): Remove string_lower_bound
939 initializer.
940 * c-lang.c (c_language_data): Likewise.
941 (cplus_language_data): Likewise.
942 (asm_language_data): Likewise.
943 (minimal_language_data): Likewise.
944 * d-lang.c (d_language_data): Likewise.
945 * f-lang.c (f_language_data): Likewise.
946 * go-lang.c (go_language_data): Likewise.
947 * language.c (unknown_language_data): Likewise.
948 (auto_language_data): Likewise.
949 * language.h (language_data): Remove string_lower_bound field.
950 (language_defn::string_lower_bound): New member function.
951 * m2-lang.c (m2_language_data): Remove string_lower_bound
952 initializer.
953 (m2_language::string_lower_bound): New member function.
954 * objc-lang.c (objc_language_data): Remove string_lower_bound
955 initializer.
956 * opencl-lang.c (opencl_language_data): Likewise.
957 * p-lang.c (pascal_language_data): Likewise.
958 * rust-lang.c (rust_language_data): Likewise.
959 * valops.c (value_cstring): Update call to string_lower_bound.
960 (value_string): Likewise.
961 * value.c (allocate_repeated_value): Likewise.
962
1c236ddd
AB
9632020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
964
965 * valops.c (value_repeat): Fix incorrect argument name in comment.
966
67bd3fd5
AB
9672020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
968
969 * ada-lang.c (ada_language_data): Remove c_style_arrays
970 initializer.
971 (ada_language::c_style_arrays_p): New member fuction.
972 * c-lang.c (c_language_data): Remove c_style_arrays
973 initializer.
974 (cplus_language_data): Likewise.
975 (asm_language_data): Likewise.
976 (minimal_language_data): Likewise.
977 * d-lang.c (d_language_data): Likewise.
978 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
979 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
980 (f_language::c_style_arrays_p): New member function.
981 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
982 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
983 * language.c (unknown_language_data): Remove c_style_arrays
984 initializer.
985 (auto_language_data): Likewise.
986 * language.h (language_data): Remove c_style_arrays field.
987 (language_defn::c_style_arrays_p): New member function.
988 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
989 (m2_language::c_style_arrays_p): New member function.
990 * objc-lang.c (objc_language_data): Remove c_style_arrays
991 initializer.
992 * opencl-lang.c (opencl_language_data): Likewise.
993 * p-lang.c (pascal_language_data): Likewise.
994 * rust-lang.c (rust_language_data): Likewise.
995 * valarith.c (value_subscript): Update call to c_style_arrays_p,
996 and update local variable to a bool.
997 * valops.c (value_cast): Update call to c_style_arrays_p.
998 (value_array): Likewise.
999 * value.c (coerce_array): Likewise.
1000
85967615
AB
10012020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1002
1003 * ada-lang.c (ada_language_data): Remove la_language initializer.
1004 * c-lang.c (c_language_data): Likewise.
1005 (cplus_language_data): Likewise.
1006 (asm_language_data): Likewise.
1007 (minimal_language_data): Likewise.
1008 * d-lang.c (d_language_data): Likewise.
1009 * f-lang.c (f_language_data): Likewise.
1010 * go-lang.c (go_language_data): Likewise.
1011 * language.c (unknown_language_data): Likewise.
1012 (auto_language_data): Likewise.
1013 * language.h (language_data): Remove la_language field.
1014 (language_defn::language_defn): Initialise la_language field.
1015 (language_defn::la_language): New member variable.
1016 * m2-lang.c (m2_language_data): Remove la_language field.
1017 * objc-lang.c (objc_language_data): Likewise.
1018 * opencl-lang.c (opencl_language_data): Likewise.
1019 * p-lang.c (pascal_language_data): Likewise.
1020 * rust-lang.c (rust_language_data): Likewise.
1021
e171d6f1
AB
10222020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1023
1024 * ada-lang.c (ada_extensions): Delete, moved into
1025 ada_language::filename_extensions.
1026 (ada_language_data): Remove la_filename_extensions initializer.
1027 (ada_language::filename_extensions): New member function.
1028 * c-lang.c (c_extensions): Delete, moved into
1029 c_language::filename_extensions.
1030 (c_language_data): Remove la_filename_extensions initializer.
1031 (c_language::filename_extensions): New member function.
1032 (cplus_extensions): Delete, moved into
1033 cplus_language::filename_extensions.
1034 (cplus_language_data): Remove la_filename_extensions initializer.
1035 (cplus_language::filename_extensions): New member function.
1036 (asm_extensions): Delete, moved into
1037 asm_language::filename_extensions.
1038 (asm_language_data): Remove la_filename_extensions initializer.
1039 (asm_language::filename_extensions): New member function.
1040 (minimal_language_data): Remove la_filename_extensions
1041 initializer.
1042 * d-lang.c (d_extensions): Delete, moved into
1043 d_language::filename_extensions.
1044 (d_language_data): Remove la_filename_extensions initializer.
1045 (d_language::filename_extensions): New member function.
1046 * f-lang.c (f_extensions): Delete, moved into
1047 f_language::filename_extensions.
1048 (f_language_data): Remove la_filename_extensions initializer.
1049 (f_language::filename_extensions): New member function.
1050 * go-lang.c (go_language_data): Remove la_filename_extensions
1051 initializer.
1052 * language.c (add_set_language_command): Update now that
1053 filename_extensions returns a vector.
1054 (unknown_language_data): Remove la_filename_extensions
1055 initializer.
1056 (auto_language_data): Likewise.
1057 * language.h (language_data): Remove la_filename_extensions field.
1058 (language_defn::filename_extensions): New member function.
1059 * m2-lang.c (m2_language_data): Remove la_filename_extensions
1060 initializer.
1061 * objc-lang.c (objc_extensions): Delete, moved into
1062 objc_language::filename_extensions.
1063 (objc_language_data): Remove la_filename_extensions initializer.
1064 (objc_language::filename_extensions): New member function.
1065 * opencl-lang.c (opencl_language_data): Remove
1066 la_filename_extensions initializer.
1067 * p-lang.c (pascal_extensions): Delete, moved into
1068 pascal_language::filename_extensions.
1069 (pascal_language_data): Remove la_filename_extensions initializer.
1070 (pascal_language::filename_extensions): New member function.
1071 * rust-lang.c (rust_extensions): Delete, moved into
1072 rust_language::filename_extensions.
1073 (rust_language_data): Remove la_filename_extensions initializer.
1074 (rust_language::filename_extensions): New member function.
1075 * symfile.c (add_filename_language): Add new assert.
1076
6f7664a9
AB
10772020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1078
1079 * ada-lang.c (ada_language_data): Remove la_name and
1080 la_natural_name initializers.
1081 (ada_language::name): New member function.
1082 (ada_language::natural_name): New member function.
1083 * c-lang.c (c_language_data): Remove la_name and
1084 la_natural_name initializers.
1085 (c_language::name): New member function.
1086 (c_language::natural_name): New member function.
1087 (cplus_language_data): Remove la_name and
1088 la_natural_name initializers.
1089 (cplus_language::name): New member function.
1090 (cplus_language::natural_name): New member function.
1091 (asm_language_data): Remove la_name and
1092 la_natural_name initializers.
1093 (asm_language::name): New member function.
1094 (asm_language::natural_name): New member function.
1095 (minimal_language_data): Remove la_name and
1096 la_natural_name initializers.
1097 (minimal_language::name): New member function.
1098 (minimal_language::natural_name): New member function.
1099 * compile/compile.c (compile_to_object): Update call to
1100 lanugage_defn::name.
1101 * d-lang.c (d_language_data): Remove la_name and
1102 la_natural_name initializers.
1103 (d_language::name): New member function.
1104 (d_language::natural_name): New member function.
1105 * expprint.c (print_subexp_standard): Update call to
1106 language_defn::name.
1107 (dump_raw_expression): Likewise
1108 (dump_prefix_expression): Likewise.
1109 * f-lang.c (f_language_data): Remove la_name and
1110 la_natural_name initializers.
1111 (f_language::name): New member function.
1112 (f_language::natural_name): New member function.
1113 * go-lang.c (go_language_data): Remove la_name and
1114 la_natural_name initializers.
1115 (go_language::name): New member function.
1116 (go_language::natural_name): New member function.
1117 * language.c (show_language_command): Update call to
1118 language_defn::name.
1119 (set_language_command): Likewise.
1120 (language_enum): Likewise.
1121 (language_str): Likewise.
1122 (add_set_language_command): Likewise, use
1123 language_defn::natural_name in the doc string.
1124 (unknown_language_data): Remove la_name and
1125 la_natural_name initializers.
1126 (unknown_language::name): New member function.
1127 (unknown_language::natural_name): New member function.
1128 (auto_language_data): Remove la_name and
1129 la_natural_name initializers.
1130 (auto_language::name): New member function.
1131 (auto_language::natural_name): New member function.
1132 (language_lookup_primitive_type_as_symbol): Update call to
1133 language_defn::name.
1134 * language.h (language_data): Remove la_name and la_natural_name
1135 member variables.
1136 (language_defn::name): New member function.
1137 (language_defn::natural_name): New member function.
1138 * m2-lang.c (m2_language_data): Remove la_name and
1139 la_natural_name initializers.
1140 (m2_language::name): New member function.
1141 (m2_language::natural_name): New member function.
1142 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
1143 language_defn::natural_name.
1144 * objc-lang.c (objc_language_data): Remove la_name and
1145 la_natural_name initializers.
1146 (objc_language::name): New member function.
1147 (objc_language::natural_name): New member function.
1148 * opencl-lang.c (opencl_language_data): Remove la_name and
1149 la_natural_name initializers.
1150 (opencl_language::name): New member function.
1151 (opencl_language::natural_name): New member function.
1152 * p-lang.c (pascal_language_data): Remove la_name and
1153 la_natural_name initializers.
1154 (pascal_language::name): New member function.
1155 (pascal_language::natural_name): New member function.
1156 * rust-lang.c (rust_language_data): Remove la_name and
1157 la_natural_name initializers.
1158 (rust_language::name): New member function.
1159 (rust_language::natural_name): New member function.
1160 * symtab.c (lookup_language_this): Update call to
1161 language_defn::name.
1162
5bae7c4e
AB
11632020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1164
1165 * ada-lang.c (ada_language_data): Remove la_name_of_this
1166 initializer.
1167 * ax-gdb.c (gen_expr): Update call to name_of_this.
1168 * c-exp.y (classify_name): Likewise.
1169 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1170 (cplus_language_data): Likewise.
1171 (cplus_language::name_of_this): New member function.
1172 (asm_language_data): Remove la_name_of_this initializer.
1173 (minimal_language_data): Likewise.
1174 * d-lang.c (d_language_data): Likewise.
1175 (d_language::name_of_this): New member function.
1176 * expprint.c (print_subexp_standard): Update call to name_of_this.
1177 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1178 * go-lang.c (go_language_data): Likewise.
1179 * language.c (unknown_language_data): Likewise.
1180 (unknown_language::name_of_this): New member function.
1181 (auto_language_data): Remove la_name_of_this initializer.
1182 (auto_language::name_of_this): New member function.
1183 * language.h (language_data): Delete la_name_of_this member
1184 variable.
1185 (language_defn::name_of_this): New member function.
1186 * m2-lang.c (m2_language_data): Remove la_name_of_this
1187 initializer.
1188 * objc-lang.c (objc_language_data): Likewise.
1189 (objc_language::name_of_this): New member function.
1190 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1191 initializer.
1192 * p-lang.c (pascal_language_data): Likewise.
1193 (pascal_language::name_of_this): New member function.
1194 * rust-lang.c (rust_language_data): Remove la_name_of_this
1195 initializer.
1196 * symtab.c (lookup_language_this): Update call to name_of_this.
1197 (lookup_symbol_aux): Likewise.
1198 * valops.c (value_of_this): Likewise.
1199
22e3f3ed
AB
12002020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1201
1202 * ada-lang.c (ada_language_data): Remove
1203 la_struct_too_deep_ellipsis initializer.
1204 (ada_language::struct_too_deep_ellipsis): New member function.
1205 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1206 initializer.
1207 (cplus_language_data): Likewise.
1208 (asm_language_data): Likewise.
1209 (minimal_language_data): Likewise.
1210 * cp-valprint.c (cp_print_value): Update call to
1211 struct_too_deep_ellipsis.
1212 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1213 initializer.
1214 * f-lang.c (f_language_data): Likewise.
1215 (f_language::struct_too_deep_ellipsis): New member function.
1216 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1217 initializer.
1218 * language.c (unknown_language_data): Likewise.
1219 (auto_language_data): Likewise.
1220 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1221 member variable.
1222 (language_defn::struct_too_deep_ellipsis): New member function.
1223 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1224 initializer.Q
1225 * objc-lang.c (objc_language_data): Likewise.
1226 * opencl-lang.c (opencl_language_data): Likewise.
1227 * p-lang.c (pascal_language_data): Likewise.
1228 * rust-lang.c (rust_language_data): Likewise.
1229 * valprint.c (val_print_check_max_depth): Update call to
1230 struct_too_deep_ellipsis.
1231
ed29e1c7
FW
12322020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1233
1234 * MAINTAINERS (Write After Approval): Add myself.
1235
12d8f940
TT
12362020-09-15 Tom Tromey <tom@tromey.com>
1237
1238 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1239 Remove.
1240
6b5a7bc7
TT
12412020-09-15 Tom Tromey <tom@tromey.com>
1242
1243 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1244 and TYPE_CODE_METHODPTR cases.
1245 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1246 (c_value_print_inner): Update.
1247 * valprint.c (generic_value_print_memberptr): New function, from
1248 c_value_print_memberptr.
1249 (generic_value_print): Use it. Call cplus_print_method_ptr.
1250
47f0e2ff
TT
12512020-09-15 Tom Tromey <tromey@adacore.com>
1252
1253 * python/python-internal.h (PyInt_FromLong): Remove define.
1254 * python/py-value.c (convert_value_from_python): Use
1255 gdb_py_object_from_longest.
1256 * python/py-type.c (typy_get_code): Use
1257 gdb_py_object_from_longest.
1258 * python/py-symtab.c (salpy_get_line): Use
1259 gdb_py_object_from_longest.
1260 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1261 gdb_py_object_from_longest.
1262 * python/py-record.c (recpy_gap_reason_code): Use
1263 gdb_py_object_from_longest.
1264 * python/py-record-btrace.c (recpy_bt_insn_size)
1265 (recpy_bt_func_level, btpy_list_count): Use
1266 gdb_py_object_from_longest.
1267 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1268 gdb_py_object_from_longest. Fix error handling.
1269 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1270 gdb_py_object_from_longest.
1271 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1272 gdb_py_object_from_longest.
1273 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1274 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1275 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1276
512116ce
TT
12772020-09-15 Tom Tromey <tromey@adacore.com>
1278
1279 * python/python.c (gdbpy_parameter_value): Use
1280 gdb_py_object_from_ulongest.
1281
4ab1029c
TT
12822020-09-15 Tom Tromey <tromey@adacore.com>
1283
1284 * python/py-infevents.c (create_register_changed_event_object):
1285 Use gdb_py_object_from_longest.
1286 * python/py-exitedevent.c (create_exited_event_object): Use
1287 gdb_py_object_from_longest.
1288
062534d4
TT
12892020-09-15 Tom Tromey <tromey@adacore.com>
1290
1291 * python/python.c (gdbpy_parameter_value): Use
1292 gdb_py_object_from_longest.
1293 * python/py-type.c (convert_field, typy_range): Use
1294 gdb_py_object_from_longest.
1295 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1296 gdb_py_object_from_longest.
1297 * python/py-lazy-string.c (stpy_get_length): Use
1298 gdb_py_object_from_longest.
1299 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1300 gdb_py_object_from_longest.
1301 * python/py-infevents.c (create_memory_changed_event_object): Use
1302 gdb_py_object_from_longest.
1303 * python/py-inferior.c (infpy_get_num): Use
1304 gdb_py_object_from_longest.
1305 (infpy_get_pid): Likewise.
1306
d1cab987
TT
13072020-09-15 Tom Tromey <tromey@adacore.com>
1308
1309 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1310 defines.
1311 * python/py-value.c (valpy_long): Use
1312 gdb_py_object_from_ulongest.
1313 * python/py-symtab.c (salpy_get_pc): Use
1314 gdb_py_object_from_ulongest.
1315 (salpy_get_last): Likewise.
1316 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1317 gdb_py_object_from_ulongest.
1318 * python/py-lazy-string.c (stpy_get_address): Use
1319 gdb_py_object_from_ulongest.
1320 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1321 * python/py-arch.c (archpy_disassemble): Use
1322 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1323 error handling.
1324
4bde49dc
TT
13252020-09-15 Tom Tromey <tromey@adacore.com>
1326
1327 * python/python-internal.h (gdb_py_long_from_longest): Remove
1328 defines.
1329 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1330 * python/py-type.c (convert_field, typy_get_sizeof): Use
1331 gdb_py_object_from_longest.
1332 * python/py-record-btrace.c (btpy_list_index): Use
1333 gdb_py_object_from_longest.
1334
37431074
TT
13352020-09-15 Tom Tromey <tromey@adacore.com>
1336
1337 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1338 * python/py-record.c (recpy_element_number): Use
1339 gdb_py_object_from_longest.
1340 (recpy_gap_number): Likewise.
1341
cbe25684
TT
13422020-09-15 Tom Tromey <tromey@adacore.com>
1343
1344 * top.c (ui::ui): Update.
1345 (highest_ui_num): Remove.
1346 * top.h (struct ui) <num>: Remove.
1347
db92ac45
TT
13482020-09-15 Tom Tromey <tromey@adacore.com>
1349
1350 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1351 * ui-style.c (ansi_regex_text): Now array.
1352 * rust-exp.y (number_regex_text): Now array.
1353 * linespec.c (linespec_quote_characters): Now array.
1354 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1355 Now arrays.
1356
d2b31b67
SM
13572020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1358
1359 * debuginfod-support.c (debuginfod_client_deleter): New.
1360 (debuginfod_client_up): New.
1361 (debuginfod_init): Return debuginfod_client_up.
1362 (debuginfod_source_query): Adjust.
1363 (debuginfod_debuginfo_query): Adjust.
1364
3246bd8e
SM
13652020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1366
1367 * debuginfod-support.c (debuginfod_source_query): Use
1368 make_unique_xstrdup.
1369
10242f36
SM
13702020-09-14 Simon Marchi <simon.marchi@efficios.com>
1371
1372 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1373 with `type::instance_flags`.
1374
e1044e6a
MM
13752020-09-14 Michael Mullin <masmullin@gmail.com>
1376
1377 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1378 Remove baton parameter.
1379
04902b09
PA
13802020-09-14 Pedro Alves <pedro@palves.net>
1381
1382 * Makefile.in (SELFTESTS_SRCS): Add
1383 unittests/enum-flags-selftests.c.
1384 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1385 btrace_function_flags instead of enum btrace_function_flag.
1386 * compile/compile-c-types.c (convert_qualified): Use
1387 enum_flags::raw.
1388 * compile/compile-cplus-symbols.c (convert_one_symbol)
1389 (convert_symbol_bmsym):
1390 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1391 (compile_cplus_convert_struct_or_union_methods)
1392 (compile_cplus_instance::convert_qualified_base):
1393 * go-exp.y (parse_string_or_char): Add cast to int.
1394 * unittests/enum-flags-selftests.c: New file.
1395 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1396 type to btrace_thread_flags from btrace_thread_flag.
1397 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1398 local's type to btrace_thread_flags from btrace_thread_flag. Add
1399 cast in DEBUG call.
1400
69896a2c
PA
14012020-09-14 Pedro Alves <pedro@palves.net>
1402
1403 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1404 * gdbtypes.c (address_space_name_to_int): Rename to ...
1405 (address_space_name_to_type_instance_flags): ... this.
1406 (address_space_int_to_name): Rename to ...
1407 (address_space_type_instance_flags_to_name): ... this.
1408 * gdbtypes.h (address_space_name_to_int): Rename to ...
1409 (address_space_name_to_type_instance_flags): ... this.
1410 (address_space_int_to_name): Rename to ...
1411 (address_space_type_instance_flags_to_name): ... this.
1412 * type-stack.c (type_stack::insert): Adjust to rename.
1413 * type-stack.h (type_stack::insert): Likewise.
1414
314ad88d
PA
14152020-09-14 Pedro Alves <pedro@palves.net>
1416 Andrew Burgess <andrew.burgess@embecosm.com>
1417
1418 * avr-tdep.c (avr_address_class_type_flags): Return
1419 type_instance_flags.
1420 (avr_address_class_type_flags_to_name): Take a
1421 type_instance_flags.
1422 (avr_address_class_name_to_type_flags): Return bool and take a
1423 type_instance_flags.
1424 * d-lang.c (build_d_types): Use type::set_instance_flags.
1425 * ft32-tdep.c (ft32_address_class_type_flags): Return
1426 type_instance_flags.
1427 (ft32_address_class_type_flags_to_name): Take a
1428 type_instance_flags.
1429 (ft32_address_class_name_to_type_flags): Return bool and take a
1430 type_instance_flags.
1431 (ft32_gdbarch_init): Use type::set_instance_flags.
1432 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1433 * gdbarch.h, gdbarch.c: Regenerate.
1434 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1435 (address_class_name_to_type_flags): Use type_instance_flags and
1436 bool.
1437 * gdbtypes.c (address_space_name_to_int)
1438 (address_space_int_to_name, make_qualified_type): Use
1439 type_instance_flags.
1440 (make_qualified_type): Use type_instance_flags and
1441 type::set_instance_flags.
1442 (make_type_with_address_space, make_cv_type, make_vector_type)
1443 (check_typedef): Use type_instance_flags.
1444 (recursive_dump_type): Cast type_instance_flags to unsigned for
1445 printing.
1446 (copy_type_recursive): Use type::set_instance_flags.
1447 (gdbtypes_post_init): Use type::set_instance_flags.
1448 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1449 <m_instance_flags>: ... this.
1450 <instance_flags, set_instance_flags>: New methods.
1451 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1452 (SET_TYPE_INSTANCE_FLAGS): New.
1453 (address_space_name_to_int, address_space_int_to_name)
1454 (make_type_with_address_space): Pass flags using
1455 type_instance_flags instead of int.
1456 * stabsread.c (cleanup_undefined_types_noname): Use
1457 type::set_instance_flags.
1458 * s390-tdep.c (s390_address_class_type_flags): Return
1459 type_instance_flags.
1460 (s390_address_class_type_flags_to_name): Take a
1461 type_instance_flags.
1462 (s390_address_class_name_to_type_flags): Return bool and take a
1463 type_instance_flags.
1464 * type-stack.c (type_stack::follow_types): Use
1465 type_instance_flags.
1466 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1467
27087b7f
TT
14682020-09-14 Tom Tromey <tromey@adacore.com>
1469
1470 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1471 * x86-tdep.c (x86_is_thunk_register_name)
1472 (x86_in_indirect_branch_thunk): Update.
1473 * sparc64-tdep.c (sparc64_fpu_register_names)
1474 (sparc64_cp0_register_names, sparc64_register_names)
1475 (sparc64_pseudo_register_names): Now const.
1476 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1477 cp0_registers_num>: Now const.
1478 * sparc-tdep.c (sparc_core_register_names)
1479 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1480 (sparc32_pseudo_register_names): Now const.
1481 (validate_tdesc_registers): Update.
1482 * rust-lang.c (rust_extensions): Now const.
1483 * p-lang.c (p_extensions): Now const.
1484 * objc-lang.c (objc_extensions): Now const.
1485 * nto-tdep.c (nto_thread_state_str): Now const.
1486 * moxie-tdep.c (moxie_register_names): Now const.
1487 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1488 Now const.
1489 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1490 (mips_linux_reg_names): Now const.
1491 (mips_gdbarch_init): Update.
1492 * microblaze-tdep.c (microblaze_register_names): Now const.
1493 * m68k-tdep.c (m68k_register_names): Now const.
1494 * m32r-tdep.c (m32r_register_names): Now const.
1495 * ia64-tdep.c (ia64_register_names): Now const.
1496 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1497 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1498 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1499 ymm_avx512_register_names, pkeys_register_names>: Now const.
1500 * i386-tdep.c (i386_register_names, i386_zmm_names)
1501 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1502 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1503 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1504 * f-lang.c (f_extensions): Now const.
1505 * d-lang.c (d_extensions): Now const.
1506 * csky-tdep.c (csky_register_names): Now const.
1507 * charset.c (default_charset_names, charset_enum): Now const.
1508 (_initialize_charset): Update.
1509 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1510 const.
1511 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1512 (bsd_uthread_solib_loaded): Update.
1513 (bsd_uthread_state): Now const.
1514 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1515 (amd64_ymm_avx512_names, amd64_ymmh_names)
1516 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1517 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1518 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1519 (amd64_dword_names): Now const.
1520 * agent.c (can_use_agent_enum): Now const.
1521 * ada-tasks.c (task_states, long_task_states): Now const.
1522 * ada-lang.c (known_runtime_file_name_patterns)
1523 (known_auxiliary_function_name_patterns, attribute_names)
1524 (standard_exc, ada_extensions): Now const.
1525
89806626
SM
15262020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1527
1528 * bcache.h (struct bcache) <bcache>: Remove constructor.
1529 <m_hash_function, m_compare_function>: Remove.
1530 <~bcache>: Make virtual.
1531 <compare>: Remove static method, introduce virtual method.
1532 <default_hash>: Remove.
1533 <hash>: New virtual method.
1534 * bcache.c (bcache::expand_hash_table): Update.
1535 (bcache::insert): Update.
1536 (bcache::hash): New.
1537 (bcache::compare): Update comment and parameter names.
1538 * gdbtypes.c (types_deeply_equal): Update.
1539 * psymtab.h (struct psymbol_bcache): New struct.
1540 (class psymtab_storage) <psymtab_storage>: Make default.
1541 <psymbol_cache>: Change type to psymbol_bcache.
1542 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1543 (psymbol_hash): Change to...
1544 (psymbol_bcache::hash): ... this.
1545 (psymbol_compare): Change to...
1546 (psymbol_bcache::compare): ... this.
1547
677c92fe
SM
15482020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1549
1550 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1551 checking for initial lwp.
1552
3eba3a01
TT
15532020-09-14 Tom Tromey <tromey@adacore.com>
1554
1555 * m68k-tdep.c (m68k_extract_return_value): Use
1556 pointer_result_regnum.
1557 (m68k_store_return_value): Likewise.
1558 (m68k_reg_struct_return_p): Handle vectors and arrays.
1559 (m68k_return_value): Handle arrays.
1560 (m68k_svr4_return_value): Fix single-element aggregate handling.
1561 Handle long double. Adjust for embedded ABI.
1562 (m68k_svr4_init_abi): Set pointer_result_regnum.
1563 (m68k_embedded_init_abi): New function.
1564 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1565 (m68k_osabi_sniffer): New function.
1566 (_initialize_m68k_tdep): Register osabi sniffer.
1567 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1568 member.
1569
33f4dd48
SM
15702020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1571
1572 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1573 with gdb::unique_xmalloc_ptr<char>.
1574
8400a90d
SM
15752020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1576
1577 * xml-support.h (xml_fetch_another): Change type to be a
1578 function_view.
1579 (xml_process_xincludes): Remove baton parameter.
1580 (xml_fetch_content_from_file): Change baton parameter to
1581 dirname.
1582 * xml-support.c (struct xinclude_parsing_data)
1583 <xinclude_parsing_data>: Remove baton parameter.
1584 <fetcher_baton>: Remove.
1585 (xinclude_start_include): Adjust.
1586 (xml_process_xincludes): Adjust.
1587 (xml_fetch_content_from_file): Replace baton parameter with
1588 dirname.
1589 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1590 (xml_init_syscalls_info): Use a lambda.
1591 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1592 (file_read_description_xml): Use a lambda.
1593 (fetch_available_features_from_target): Change baton parameter
1594 to target_ops.
1595 (target_read_description_xml): Use a lambda.
1596 (target_fetch_description_xml): Use a lambda.
1597 (string_read_description_xml): Update.
1598
04f5bab2
SM
15992020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1600
1601 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1602 uses with type::endianity_is_not_default.
1603
db558e34
SM
16042020-09-14 Simon Marchi <simon.marchi@efficios.com>
1605
1606 * gdbtypes.h (struct type) <endianity_is_not_default,
1607 set_endianity_is_not_default>: New methods.
1608 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1609 type::endianity_is_not_default, change all write call sites to
1610 use type::set_endianity_is_not_default.
1611
22c4c60c
SM
16122020-09-14 Simon Marchi <simon.marchi@efficios.com>
1613
1614 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1615 uses with type::is_fixed_instance.
1616
9cdd0d12
SM
16172020-09-14 Simon Marchi <simon.marchi@efficios.com>
1618
1619 * gdbtypes.h (struct type) <is_fixed_instance,
1620 set_is_fixed_instance>: New methods.
1621 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1622 write call sites to use type::set_is_fixed_instance.
1623
0becda7a
SM
16242020-09-14 Simon Marchi <simon.marchi@efficios.com>
1625
1626 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1627 uses with type::is_gnu_ifunc.
1628
03cc7249
SM
16292020-09-14 Simon Marchi <simon.marchi@efficios.com>
1630
1631 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1632 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1633 use type::set_is_gnu_ifunc.
1634
3f46044c
SM
16352020-09-14 Simon Marchi <simon.marchi@efficios.com>
1636
1637 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1638 uses with type::stub_is_supported.
1639
9baccff6
SM
16402020-09-14 Simon Marchi <simon.marchi@efficios.com>
1641
1642 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1643 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1644 use type::set_stub_is_supported.
1645
bd63c870
SM
16462020-09-14 Simon Marchi <simon.marchi@efficios.com>
1647
1648 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1649 uses with type::is_vector.
1650
2062087b
SM
16512020-09-14 Simon Marchi <simon.marchi@efficios.com>
1652
1653 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1654 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1655 use type::set_is_vector.
1656
a409645d
SM
16572020-09-14 Simon Marchi <simon.marchi@efficios.com>
1658
1659 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1660 uses with type::has_varargs.
1661
1d6286ed
SM
16622020-09-14 Simon Marchi <simon.marchi@efficios.com>
1663
1664 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1665 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1666 use type::set_has_varargs.
1667
7f9f399b
SM
16682020-09-14 Simon Marchi <simon.marchi@efficios.com>
1669
1670 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1671 uses with type::is_prototyped.
1672
27e69b7a
SM
16732020-09-14 Simon Marchi <simon.marchi@efficios.com>
1674
1675 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1676 New methods.
1677 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1678 call sites to use type::set_is_prototyped.
1679
d2183968
SM
16802020-09-14 Simon Marchi <simon.marchi@efficios.com>
1681
1682 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1683 uses with type::target_is_stub.
1684
8f53807e
SM
16852020-09-14 Simon Marchi <simon.marchi@efficios.com>
1686
1687 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1688 New methods.
1689 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1690 sites to use type::set_target_is_stub.
1691
e46d3488
SM
16922020-09-14 Simon Marchi <simon.marchi@efficios.com>
1693
1694 * gdbtypes.h (TYPE_STUB): Remove, replace all
1695 uses with type::is_stub.
1696
b4b73759
SM
16972020-09-14 Simon Marchi <simon.marchi@efficios.com>
1698
1699 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1700 (TYPE_STUB): Use type::is_stub, change all write call sites to
1701 use type::set_is_stub.
1702
20ce4123
SM
17032020-09-14 Simon Marchi <simon.marchi@efficios.com>
1704
1705 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1706 type::has_no_signedness.
1707
15152a54
SM
17082020-09-14 Simon Marchi <simon.marchi@efficios.com>
1709
1710 * gdbtypes.h (struct type) <has_no_signedness,
1711 set_has_no_signedness>: New methods.
1712 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1713 call sites to use type::set_has_no_signedness.
1714
c6d940a9
SM
17152020-09-14 Simon Marchi <simon.marchi@efficios.com>
1716
1717 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1718 type::is_unsigned.
1719
653223d3
SM
17202020-09-14 Simon Marchi <simon.marchi@efficios.com>
1721
1722 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1723 methods.
1724 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1725 sites to use type::set_is_unsigned.
1726
55ea94da 17272020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 1728 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 1729
e851246a
SM
1730 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1731 pointer and stack frame offset when unwinding.
55ea94da 1732
6791b117
PA
17332020-09-13 Pedro Alves <pedro@palves.net>
1734
1735 * NEWS: Document "-break-insert --qualified".
1736 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1737
77f2120b
PA
17382020-09-13 Pedro Alves <pedro@palves.net>
1739
1740 * linespec.c (classify_mtype, compare_msyms): Delete.
1741 (search_minsyms_for_name): Remove classification logic. Instead
1742 filter out trampoline symbols if we also found an external
1743 function of the same name.
1744
ed6a896c
JB
17452020-09-13 Joel Brobecker <brobecker@adacore.com>
1746
1747 * NEWS: Create a new section for the next release branch.
1748 Rename the section of the current branch, now that it has
1749 been cut.
1750
32aea73e
JB
17512020-09-13 Joel Brobecker <brobecker@adacore.com>
1752
1753 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1754 * version.in: Bump version to 11.0.50.DATE-git.
1755
8087c3fa
JB
17562020-09-12 Joel Brobecker <brobecker@adacore.com>
1757
1758 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1759
2a67f09d
FW
17602020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1761 Felix Willgerodt <Felix.Willgerodt@intel.com>
1762
1763 * gdbarch.sh: Added bfloat16 type.
1764 * gdbarch.c: Regenerated.
1765 * gdbarch.h: Regenerated.
1766 * gdbtypes.c (floatformats_bfloat16): New struct.
1767 (gdbtypes_post_init): Add builtin_bfloat16.
1768 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1769 (floatformats_bfloat16): New struct.
1770 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1771 (i386_ymm_type): Add field "v16_bfloat16"
1772 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1773 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1774 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1775 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1776 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1777 * features/i386/64bit-avx512.c: Regenerated.
1778 * features/i386/64bit-sse.xml: Add bfloat16 type.
1779 * features/i386/64bit-sse.c: Regenerated.
1780
1347d111
FW
17812020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1782
1783 * i386-tdep.c (i386_zmm_type): Fix field names.
1784 (i386_ymm_type): Fix field names.
1785
7a4e8e7d
TBA
17862020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1787
1788 * breakpoint.c: Fix typo in the help message of the
1789 "set breakpoint condition-evaluation" command.
1790
cf4ac4be
KR
17912020-09-10 Kamil Rytarowski <n54@gmx.com>
1792
1793 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1794 * (nbsd_nat_target::pid_to_exec_file)
1795 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1796 (nbsd_nat_target::post_startup_inferior)
1797 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1798 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1799 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1800 * (nbsd_thread_lister): Remove.
1801
f404573e
KR
18022020-09-10 Kamil Rytarowski <n54@gmx.com>
1803
1804 * fork-inferior.c (startup_inferior): Avoid double free.
1805
1ccb2c17
KR
18062020-09-10 Kamil Rytarowski <n54@gmx.com>
1807
1808 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1809 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1810
feedfcc7
KR
18112020-09-10 Kamil Rytarowski <n54@gmx.com>
1812
1813 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1814 * netbsd-nat.c: Include <sys/ptrace.h>.
1815 * (netbsd_nat::enable_proc_events): Add.
1816
c489f8c6
KR
18172020-09-10 Kamil Rytarowski <n54@gmx.com>
1818
1819 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1820 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1821 (netbsd_nat::for_each_thread): Add.
1822 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1823 "gdbsupport/common-debug.h".
1824 * (netbsd_nat::netbsd_thread_lister)
1825 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1826 (netbsd_nat::for_each_thread): Add.
1827
330662f6
KR
18282020-09-10 Kamil Rytarowski <n54@gmx.com>
1829
1830 * netbsd-nat.h: Include <unistd.h>.
1831 * (netbsd_nat::pid_to_exec_file): Add.
1832 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1833 * (netbsd_nat::pid_to_exec_file) Add.
1834
70b67307
KR
18352020-09-10 Kamil Rytarowski <n54@gmx.com>
1836
1837 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
1838
99cf6da6
KR
18392020-09-10 Kamil Rytarowski <n54@gmx.com>
1840
1841 * netbsd-nat.h: New file.
1842 * netbsd-nat.c: Likewise.
1843
1b788fb6
TT
18442020-09-09 Tom Tromey <tromey@adacore.com>
1845
1846 * ada-lang.c (remove_extra_symbols): Do not increment when
1847 removing an element
1848
03b0a45f
TT
18492020-09-08 Tom Tromey <tromey@adacore.com>
1850
1851 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
1852
3cae4447
TT
18532020-09-08 Tom Tromey <tromey@adacore.com>
1854
1855 PR win32/25302:
1856 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
1857 (gdb_bfd_init_data): New function.
1858 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
1859
7f08fd51
TBA
18602020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1861
1862 * infrun.c (fetch_inferior_event): Use
1863 `switch_to_target_no_thread` to switch the target.
1864
3e6ff933
TT
18652020-09-06 Tom Tromey <tom@tromey.com>
1866
1867 * symfile.h (dwarf2_free_objfile): Don't declare.
1868
e56798df
AKS
18692020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1870
1871 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
1872 to match 16 byte real/complex type generated by Flang compiler.
1873
8f5c6526
TV
18742020-09-03 Tom de Vries <tdevries@suse.de>
1875
1876 PR breakpoint/26546
1877 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
1878 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
1879
c5065df0
SM
18802020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
1881
1882 * maint.c (index_digits): New function.
1883 (struct maint_print_section_data): Remove.
1884 (print_bfd_section_info): Remove print_data parameter, add arg
1885 and index_digits.
1886 (print_objfile_section_info): Likewise.
1887 (print_bfd_section_info_maybe_relocated): Likewise (plus
1888 objfile).
1889 (maintenance_info_sections): Adjust calls.
1890
02c6f3f1
TT
18912020-09-02 Tom Tromey <tromey@adacore.com>
1892
1893 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1894 for null pointers.
1895 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1896
ef5e5b0b
SM
18972020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1898
1899 * bcache.h (struct bcache) <insert>: Change type of `added` to
1900 pointer to bool.
1901 * bcache.c (bcache::insert): Likewise.
1902 * gdbtypes.c (check_types_worklist): Adjust.
1903 * psymtab.c (add_psymbol_to_bcache): Adjust.
1904
973695d6
KB
19052020-08-31 Kevin Buettner <kevinb@redhat.com>
1906
1907 * corelow.c (unordered_set): Include.
1908 (class core_target): Add field 'm_core_unavailable_mappings'.
1909 (core_target::build_file_mappings): Print only one warning
1910 per inaccessible file. Add unavailable/broken mappings
1911 to m_core_unavailable_mappings.
1912 (core_target::xfer_partial): Call...
1913 (core_target::xfer_memory_via_mappings): New method.
1914
264fc0e2
SM
19152020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1916
1917 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1918 type to bool.
1919
2de01bdb
SM
19202020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1921
1922 * dwarf2/read.c (struct field_info): Fix indentation.
1923
f3bd50f1
SM
19242020-08-31 Simon Marchi <simon.marchi@efficios.com>
1925
1926 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1927 ordering in comment.
1928 * frame.c (frame_id_eq): Fix indentation.
1929
22b9b4b0
SL
19302020-08-31 Scott Linder <scott@scottlinder.com>
1931 Simon Marchi <simon.marchi@efficios.com>
1932
1933 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1934 inline frame ids in outer frame.
1935
84154d16
SM
19362020-08-31 Simon Marchi <simon.marchi@efficios.com>
1937
1938 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1939 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1940 (outer_frame_id): Use FID_STACK_OUTER instead of
1941 FID_STACK_INVALID.
1942 (frame_id_p): Don't check for outer_frame_id.
1943
8efaf6b3
SM
19442020-08-31 Simon Marchi <simon.marchi@efficios.com>
1945
1946 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1947 regnum/frame in value. Call allocate_value_lazy.
1948 * frame.c (frame_unwind_register_value): Use
1949 val_print_not_saved.
1950
fe1fe7ea
SM
19512020-08-31 Simon Marchi <simon.marchi@efficios.com>
1952
1953 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1954
f7c7700d
PA
19552020-08-29 Pedro Alves <pedro@palves.net>
1956
1957 * progspace.c (print_program_space): Use all_inferiors. Switch to
1958 the inferior before calling target_pid_to_str.
1959
e0814aae
TT
19602020-08-28 Tom Tromey <tom@tromey.com>
1961
1962 * xcoffread.c (xcoff_end_psymtab): Update comment.
1963 * dbxread.c (dbx_end_psymtab): Update comment.
1964
626d2320
TV
19652020-08-28 Tom de Vries <tdevries@suse.de>
1966
1967 PR breakpoint/26544
1968 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1969 event_location.
1970 (create_breakpoint): Same.
1971 (base_breakpoint_decode_location): Same.
1972 (bkpt_create_sals_from_location): Same.
1973 (bkpt_decode_location): Same.
1974 (bkpt_probe_create_sals_from_location): Same.
1975 (bkpt_probe_decode_location): Same.
1976 (tracepoint_create_sals_from_location): Same.
1977 (tracepoint_decode_location): Same.
1978 (tracepoint_probe_decode_location): Same.
1979 (strace_marker_create_sals_from_location): Same.
1980 (strace_marker_decode_location): Same.
1981 (create_sals_from_location_default): Same.
1982 (decode_location_default): Same.
1983 * breakpoint.h (struct breakpoint_ops): Same.
1984 (create_breakpoint): Same.
1985 * linespec.h (decode_line_full): Same.
1986 * linespec.c (decode_line_full): Same. Throw error if
1987 result.size () == 0.
1988
df631783
PA
19892020-08-27 Pedro Alves <pedro@palves.net>
1990
1991 PR gdb/26524
1992 * breakpoint.c (until_break_fsm) <location_breakpoint,
1993 caller_breakpoint>: Delete fields.
1994 <breakpoints>: New field.
1995 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1996 two individual breakpoints.
1997 (until_break_fsm::should_stop): Loop over breakpoints in the
1998 breakpoint vector.
1999 (until_break_fsm::clean_up): Adjust to clear the breakpoints
2000 vector.
2001 (until_break_command): Handle location expanding into multiple
2002 sals.
2003
b2b38aa4
PA
20042020-08-27 Pedro Alves <pedro@palves.net>
2005
2006 PR gdb/26523
2007 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
2008 bp_until breakpoints user-specified locations. Update intro
2009 comment.
2010
b886559f
SM
20112020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
2012
2013 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
2014 gdb_bfd_sections): New.
2015 * maint.c (print_bfd_section_info): Change param type to
2016 maint_print_section_data.
2017 (print_objfile_section_info): Likewise.
2018 (print_bfd_section_info_maybe_relocated): Likewise.
2019 (maintenance_info_sections): Use gdb_bfd_sections.
2020
4c6e63bf
SV
20212020-08-25 Shahab Vahedi <shahab@synopsys.com>
2022
2023 * MAINTAINERS: Add ARC target and maintainer.
2024
8d7f0635
AK
20252020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
2026
2027 * configure.tgt: ARC support for GNU/Linux.
2028 * Makefile.in (ALL_TARGET_OBJS): Likewise.
2029 * arc-linux-tdep.c: New file.
2030 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
2031 * arc-tdep.c (arc_write_pc): Use it.
2032
fdd8731b
SV
20332020-08-25 Shahab Vahedi <shahab@synopsys.com>
2034
2035 * arc-tdep.c (arc_check_for_hardware_loop): New.
2036 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
2037
22459524
SV
20382020-08-25 Shahab Vahedi <shahab@synopsys.com>
2039
2040 * arc-tdep.h: Include "gdbarch.h".
2041
995d3a19
SV
20422020-08-25 Shahab Vahedi <shahab@synopsys.com>
2043
2044 * arch/arc.h
2045 (arc_gdbarch_features): New class to stir the selection of target XML.
2046 (arc_create_target_description): Use FEATURES to choose XML target.
2047 (arc_lookup_target_description): Use arc_create_target_description
2048 to create _new_ target descriptions or return the already created
2049 ones if the FEATURES is the same.
2050 * arch/arc.c: Implementation of prototypes described above.
2051 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
2052 (arc_gdbarch_features_init): Initialize the FEATURES struct.
2053 * arc-tdep.c (*_feature_name): Make feature names consistent.
2054 (arc_register_feature): A new struct to hold information about
2055 registers of a particular target/feature.
2056 (arc_check_tdesc_feature): Check if XML provides registers in
2057 compliance with ARC_REGISTER_FEATURE structs.
2058 (arc_update_acc_reg_names): Add aliases for r58 and r59.
2059 (determine_*_reg_feature_set): Which feature name to look for.
2060 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
2061 (mach_type_to_arc_isa): Convert from a set of binutils machine types
2062 to expected ISA enums to be used in arc_gdbarch_features structs.
2063 * features/Makefile (FEATURE_XMLFILES): Add new files.
2064 * gdb/features/arc/v1-aux.c: New file.
2065 * gdb/features/arc/v1-aux.xml: Likewise.
2066 * gdb/features/arc/v1-core.c: Likewise.
2067 * gdb/features/arc/v1-core.xml: Likewise.
2068 * gdb/features/arc/v2-aux.c: Likewise.
2069 * gdb/features/arc/v2-aux.xml: Likewise.
2070 * gdb/features/arc/v2-core.c: Likewise.
2071 * gdb/features/arc/v2-core.xml: Likewise.
2072 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
2073
3945d2d7
GM
20742020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
2075 Andrew Burgess <andrew.burgess@embecosm.com>
2076
2077 PR m2/26372
fc5d6901 2078 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
2079 an assert. Remove single element array indexing pattern as the
2080 MULTI_SUBSCRIPT support will handle this case too.
2081
2677f2d3
SM
20822020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
2083
2084 * value.h (valprint_check_validity): Move declaration from
2085 here...
2086 * valprint.h (valprint_check_validity): ... to here.
2087
c426fddb
SM
20882020-08-24 Simon Marchi <simon.marchi@efficios.com>
2089
2090 * debug.h: New file.
2091 * debug.c (debug_prefixed_vprintf): New function.
2092 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
2093 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
2094
1eb8556f
SM
20952020-08-24 Simon Marchi <simon.marchi@efficios.com>
2096
2097 * infrun.h (infrun_debug_printf_1): New function declaration.
2098 (infrun_debug_printf): New macro.
2099 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
2100 throughout.
2101 (infrun_debug_printf): New function.
2102 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
2103 (handle_jit_event): Likewise.
2104
b8fff44e
MW
21052020-08-21 Mark Wielaard <mark@klomp.org>
2106
2107 * ada-lex.l: Extend register warnings diagnostics comment for g++.
2108
d19c3068
SM
21092020-08-22 Simon Marchi <simon.marchi@efficios.com>
2110
2111 * frame.c (enum class frame_id_status): New.
2112 (struct frame_info) <this_id::p>: Change type to frame_id_status.
2113 (fprintf_frame): Update.
2114 (compute_frame_id): Set frame id status to "computing" on entry.
2115 Set it back to "not_computed" on failure and to "computed" on
2116 success.
2117 (get_frame_id): Assert the frame id is not being computed.
2118 (create_sentinel_frame): Use frame_id_status::COMPUTED.
2119 (create_new_frame): Likewise.
2120 (frame_cleanup_after_sniffer): Update assert.
2121
b70e516e
SM
21222020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2123
2124 * regcache.c (pid_ptid_regcache_map): New type.
2125 (target_ptid_regcache_map): Remove.
2126 (target_pid_ptid_regcache_map): New type.
2127 (regcaches): Change type to target_pid_ptid_regcache_map.
2128 (get_thread_arch_aspace_regcache): Update.
2129 (regcache_thread_ptid_changed): Update, handle pid-like ptid
2130 case.
2131 (regcaches_size): Update.
2132 (regcache_count): Update.
2133 (registers_changed_ptid_target_pid_test): New.
2134 (_initialize_regcache): Register new test.
2135
cdd9148a
SM
21362020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2137
2138 * regcache.c (regcache_count): New.
2139 (struct regcache_test_data): New.
2140 (regcache_test_data_up): New.
2141 (populate_regcaches_for_test): New.
2142 (regcaches_test): Remove.
2143 (get_thread_arch_aspace_regcache_test): New.
2144 (registers_changed_ptid_all_test): New.
2145 (registers_changed_ptid_target_test): New.
2146 (registers_changed_ptid_target_ptid_test): New.
2147 (regcache_thread_ptid_changed): Remove regcache_count lambda.
2148 (_initialize_regcache): Register new tests.
2149
dd125343
SM
21502020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2151
2152 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
2153 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
2154 gdbarch and aspace parameter. Use current inferior's aspace.
2155 Validate regcache's arch value.
2156 (regcaches_test): Update.
2157
3ee93972
SM
21582020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2159
2160 * regcache.c (regcaches_test): Call registers_changed.
2161
33bf4c5c
TBA
21622020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2163
2164 * infrun.c (process_event_stop_test): Fix typo "breapoint".
2165
c2fd7fae
AKS
21662020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2167
2168 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2169 to find the end of prologue for flang compiled binaries.
2170 * arm-tdep.c (arm_skip_prologue): Likewise.
2171 * i386-tdep.c (i386_skip_prologue): Likewise.
2172 * producer.c (producer_is_llvm): New function.
2173 (producer_parsing_tests): Added new tests for clang/flang.
2174 * producer.h (producer_is_llvm): New declaration.
2175
9327494e
SM
21762020-08-18 Simon Marchi <simon.marchi@efficios.com>
2177
2178 * linux-nat.c (linux_nat_debug_printf): New function.
2179 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2180
d138725a
AM
21812020-08-18 Aaron Merey <amerey@redhat.com>
2182
2183 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2184 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2185 (CLIBS): Add DEBUGINFOD_LIBS.
2186
f9b11e6b
ST
21872020-08-17 Sergei Trofimovich <siarheit@google.com>
2188
2189 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2190 'gdbarch_num_regs'.
2191
3ae7ab99
TT
21922020-08-17 Tom Tromey <tromey@adacore.com>
2193
2194 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2195 ada_get_decoded_value returns NULL.
2196
b017825f
TT
21972020-08-17 Tom Tromey <tromey@adacore.com>
2198
2199 * python/py-inferior.c (infpy_search_memory): Use
2200 gdb_py_object_from_ulongest.
2201 * python/py-infevents.c (create_inferior_call_event_object)
2202 (create_memory_changed_event_object): Use
2203 gdb_py_object_from_ulongest.
2204 * python/py-linetable.c (ltpy_entry_get_pc): Use
2205 gdb_py_object_from_ulongest.
2206
7635cf79
SM
22072020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2208
2209 * loc.c (class symbol_needs_eval_context): Fix indentation.
2210
f54be24b
SM
22112020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2212
2213 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2214 bool.
2215
53d5a2a5
TV
22162020-08-17 Tom de Vries <tdevries@suse.de>
2217
2218 PR gdb/26393
2219 * gdbtypes.c (dump_dynamic_prop): New function.
2220 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2221
547ce8f0
TV
22222020-08-15 Tom de Vries <tdevries@suse.de>
2223
2224 PR backtrace/26390
2225 * stack.c (print_frame_args): Temporarily set the selected
2226 frame to FRAME while printing the frame's arguments.
2227
6ea815e7
PFC
22282020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2229
2230 PR breakpoints/26385
2231 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2232 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2233
6e562fa3
PFC
22342020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2235
2236 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2237 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2238 and >= to check return value instead of == -1 and != -1.
2239
d369b608
SM
22402020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2241
2242 * utils.h (class gdb_argv) <as_array_view>: New method.
2243 * utils.c (gdb_argv_as_array_view_test): New.
2244 (_initialize_utils): Register selftest.
2245 * maint.c (maintenance_selftest): Use the new method.
2246
b31488a3
KR
22472020-08-13 Kamil Rytarowski <n54@gmx.com>
2248
2249 * target.h (supports_dumpcore, dumpcore): New
2250 function declarations.
2251 * target.c (supports_dumpcore, dumpcore): New
2252 functions.
2253 * target-delegates.c: Rebuild.
2254 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2255 and target_dumpcore ().
2256
002a3166
AM
22572020-08-13 Aaron Merey <amerey@redhat.com>
2258
2259 * debuginfod-support.c: Replace global variables with user_data.
2260
ece5bc8a
SM
22612020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2262
2263 * maint.c (maintenance_selftest): Split args and pass array_view
2264 to run_tests.
2265
6d8a0a5e
LM
22662020-08-12 Luis Machado <luis.machado@linaro.org>
2267
2268 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2269 type's length.
2270 Use %s and pulongest to print the length.
2271
7cf663a9
PA
22722020-08-12 Pedro Alves <palves@redhat.com>
2273
2274 * NEWS: Move "Multi-target debugging support" item to the
2275 "Changes since GDB 9" section.
2276
27c7b875
PA
22772020-08-12 Pedro Alves <palves@redhat.com>
2278
2279 PR gdb/26336
2280 * progspace.c (program_space::remove_objfile): Invalidate the
2281 frame cache.
2282
1796a2a1
TV
22832020-08-11 Tom de Vries <tdevries@suse.de>
2284
2285 * MAINTAINERS: Mark ms1 as deleted.
2286
f8e3fe0d
LM
22872020-08-10 Luis Machado <luis.machado@linaro.org>
2288
2289 PR gdb/26310
2290
2291 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2292 act accordingly.
2293 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2294 movz/str/stur/stp skipping behavior.
2295
cc308722
LM
22962020-08-10 Luis Machado <luis.machado@linaro.org>
2297
2298 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2299 struct user_sve_header instead of struct sve_context.
2300
041d9819
SM
23012020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2302
2303 * read.h (dwarf2_fetch_die_loc_sect_off,
2304 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2305 `void *` parameter with function_view.
2306 * read.c (dwarf2_fetch_die_loc_sect_off,
2307 dwarf2_fetch_die_loc_cu_off): Likewise.
2308 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2309 (per_cu_dwarf_call): Adjust.
2310 (get_frame_address_in_block_wrapper): Remove.
2311 (indirect_synthetic_pointer): Adjust.
2312 (get_ax_pc): Remove.
2313 (dwarf2_compile_expr_to_ax): Adjust.
2314
38f8aa06
TV
23152020-08-08 Tom de Vries <tdevries@suse.de>
2316
2317 PR build/26344
2318 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2319 constructor.
2320 * regcache.c (get_thread_arch_aspace_regcache): Same.
2321
a52b3ae2
TT
23222020-08-07 Tom Tromey <tromey@adacore.com>
2323
2324 * ravenscar-thread.c
2325 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2326 New method.
2327 (ravenscar_thread_target::wait): Check
2328 runtime_initialized.
2329 (ravenscar_thread_target::prepare_to_store)
2330 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2331 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2332 (ravenscar_thread_target::stopped_by_watchpoint)
2333 (ravenscar_thread_target::stopped_data_address)
2334 (ravenscar_thread_target::core_of_thread): Use
2335 scoped_restore_current_thread and
2336 set_base_thread_from_ravenscar_task.
2337
0e29517d
TT
23382020-08-07 Tom Tromey <tromey@adacore.com>
2339
2340 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2341
592f9bd7
TT
23422020-08-07 Tom Tromey <tromey@adacore.com>
2343
2344 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2345 update_inferior_ptid before update_thread_list.
2346 (temporarily_change_regcache_ptid): New class.
2347 (ravenscar_thread_target::fetch_registers)
2348 (ravenscar_thread_target::store_registers)
2349 (ravenscar_thread_target::prepare_to_store): Use base thread when
2350 forwarding operation.
2351
39e2018a
TT
23522020-08-07 Tom Tromey <tromey@adacore.com>
2353
2354 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2355 "is_pid" case.
2356
2080266b
TT
23572020-08-07 Tom Tromey <tromey@adacore.com>
2358
2359 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2360 New methods.
2361 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2362 first.
2363 (ravenscar_thread_target::add_thread): Rename from
2364 ravenscar_add_thread.
2365 (ravenscar_thread_target::update_thread_list): Use a lambda.
2366 (ravenscar_thread_target::xfer_partial): New method.
2367
78c02f21
TT
23682020-08-07 Tom Tromey <tromey@adacore.com>
2369
2370 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2371 gdb::function_view.
2372 (iterate_over_live_ada_tasks): Change type of argument.
2373 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2374 of argument.
2375
d5d833af
TT
23762020-08-07 Tom Tromey <tromey@adacore.com>
2377
2378 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2379 Remove.
2380 (ravenscar_thread_target::extra_thread_info): Remove.
2381 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2382 defer to target beneath for non-Ravenscar threads.
2383
a8ac85bb
TT
23842020-08-07 Tom Tromey <tromey@adacore.com>
2385
2386 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2387 get_base_thread_from_ravenscar_task>: Now methods.
2388 <m_cpu_map>: New member.
2389 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2390 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2391 (ravenscar_thread_target::task_is_currently_active): Update.
2392 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2393 Now a method.
2394 (ravenscar_thread_target::add_active_thread): Put initial thread
2395 into the m_cpu_map.
2396
550ab58d
TT
23972020-08-07 Tom Tromey <tromey@adacore.com>
2398
2399 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2400 event_ptid.
2401
e9546579
TT
24022020-08-07 Tom Tromey <tromey@adacore.com>
2403
2404 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2405 runtime_initialized.
2406
3d4470e5
TT
24072020-08-07 Tom Tromey <tromey@adacore.com>
2408
2409 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2410 add_active_thread.
2411 (ravenscar_thread_target::add_active_thread): Now public.
2412 (ravenscar_inferior_created): Call add_active_thread after pushing
2413 the target.
2414
888bdb2b
SM
24152020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2416
2417 * regcache.c (ptid_regcache_map): New type.
2418 (target_ptid_regcache_map): New type.
2419 (regcaches): Change type to target_ptid_regcache_map.
2420 (get_thread_arch_aspace_regcache): Update to regcaches' new
2421 type.
2422 (regcache_thread_ptid_changed): Likewise.
2423 (registers_changed_ptid): Likewise.
2424 (regcaches_size): Likewise.
2425 (regcaches_test): Update.
2426 (regcache_thread_ptid_changed): Update.
2427 * regcache.h (regcache_up): New type.
2428 * gdbsupport/ptid.h (hash_ptid): New struct.
2429
b161a60d
SM
24302020-08-07 Simon Marchi <simon.marchi@efficios.com>
2431
2432 * observable.h (thread_ptid_changed): Add parameter
2433 `process_stratum_target *`.
2434 * infrun.c (infrun_thread_ptid_changed): Add parameter
2435 `process_stratum_target *` and use it.
2436 (selftests): New namespace.
2437 (infrun_thread_ptid_changed): New function.
2438 (_initialize_infrun): Register selftest.
2439 * regcache.c (regcache_thread_ptid_changed): Add parameter
2440 `process_stratum_target *` and use it.
2441 (regcache_thread_ptid_changed): New function.
2442 (_initialize_regcache): Register selftest.
2443 * thread.c (thread_change_ptid): Pass target to
2444 thread_ptid_changed observable.
2445
d2854d8d
CT
24462020-08-06 Caroline Tice <cmtice@google.com>
2447
fe4c3d43
SM
2448 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2449 (struct dwp_sections): Update field comments. Add loclists and
2450 rnglists fields.
2451 (struct virtual_v2_dwo_sections): Rename struct to
2452 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2453 size & offset fields for loclists and rnglists.
2454 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2455 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2456 skipping dummy type units.
2457 (create_dwp_hash_table): Update the large comment above the function to
2458 discuss Version 5 DWP files as well, with references. Update all the
2459 version checks in the function to check for version 5 as well. Add new
2460 section at the end to create dwp hash table for version 5.
2461 (create_dwp_v2_section): Rename function to
2462 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2463 Add V5 to error message text.
2464 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2465 into calls to create_dwp_v2_or_v5_section.
2466 (create_dwo_unit_in_dwp_v5): New function.
2467 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2468 check for version2; add else clause to handle version 5.
2469 (open_and_init_dwo_file): Add code to check dwarf version & only call
2470 create_debug_types_hash_table (with sections.types) if version is not 5;
2471 else call create_debug_type_hash_table, with sections.info.
2472 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2473 version 5.
2474 (dwarf2_locate_v5_dwp_sections): New function.
2475 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2476 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 2477
159ed7d9
SM
24782020-08-06 Simon Marchi <simon.marchi@efficios.com>
2479
2480 * regcache.h (class regcache): Remove friend
2481 registers_changed_ptid.
2482 <regcache_thread_ptid_changed>: Remove.
2483 <regcaches>: Remove.
2484 * regcache.c (regcache::regcaches): Rename to...
2485 (regcaches): ... this. Make static.
2486 (get_thread_arch_aspace_regcache): Update.
2487 (regcache::regcache_thread_ptid_changed): Rename to...
2488 (regcache_thread_ptid_changed): ... this. Update.
2489 (class regcache_access): Remove.
2490 (regcaches_test): Update.
2491 (_initialize_regcache): Update.
2492 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2493 <forward_list>.
2494
174981ae
SM
24952020-08-06 Simon Marchi <simon.marchi@efficios.com>
2496
2497 * regcache.h (class regcache) <current_regcache>: Rename to...
2498 <regcaches>: ... this. Move doc here.
2499 * regcache.c (regcache::current_regcache) Rename to...
2500 (regcache::regcaches): ... this. Move doc to header.
2501 (get_thread_arch_aspace_regcache): Update.
2502 (regcache::regcache_thread_ptid_changed): Update.
2503 (registers_changed_ptid): Update.
2504 (class regcache_access) <current_regcache_size>: Rename to...
2505 <regcaches_size>: ... this.
2506 (current_regcache_test): Rename to...
2507 (regcaches_test): ... this.
2508 (_initialize_regcache): Update.
2509
ed908db6
VC
25102020-08-06 Victor Collod <vcollod@nvidia.com>
2511
2512 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2513
b5582ab7
KB
25142020-08-05 Kevin Buettner <kevinb@redhat.com>
2515
2516 * corelow.c (core_target::build_file_mappings): Don't output
2517 null pathname in warning.
2518
ea946b86
SM
25192020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2520
2521 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2522 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2523 gdb.dwarf2/dw2-single-line-discriminators.exp,
2524 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2525
57d02173
TT
25262020-08-05 Tom Tromey <tromey@adacore.com>
2527
2528 PR rust/26197:
2529 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2530 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2531 Fix off-by-one and type size errors in ordinary case.
2532
5555c86d
TV
25332020-08-05 Tom de Vries <tdevries@suse.de>
2534
2535 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2536 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2537
97916bfe
SM
25382020-08-04 Simon Marchi <simon.marchi@efficios.com>
2539
2540 * frame.h (frame_id_p): Return bool.
2541 (frame_id_artificial_p): Return bool.
2542 (frame_id_eq): Return bool.
2543 (has_stack_frames): Return bool.
2544 (get_selected_frame): Fix typo in comment.
2545 (get_frame_pc_if_available): Return bool.
2546 (get_frame_address_in_block_if_available): Return bool.
2547 (get_frame_func_if_available): Return bool.
2548 (read_frame_register_unsigned): Return bool.
2549 (get_frame_register_bytes): Return bool.
2550 (safe_frame_unwind_memory): Return bool.
2551 (deprecated_frame_register_read): Return bool.
2552 (frame_unwinder_is): Return bool.
2553 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2554 bool.
2555 <this_id::p>: Likewise.
2556 <prev_p>: Likewise.
2557 (frame_stash_add): Return bool.
2558 (get_frame_id): Use bool.
2559 (frame_id_build_special) Use bool.
2560 (frame_id_build_unavailable_stack): Use bool.
2561 (frame_id_build): Use bool.
2562 (frame_id_p): Return bool, use true/false instead of 1/0.
2563 (frame_id_artificial_p): Likewise.
2564 (frame_id_eq): Likewise.
2565 (frame_id_inner): Likewise.
2566 (get_frame_func_if_available): Likewise.
2567 (read_frame_register_unsigned): Likewise.
2568 (deprecated_frame_register_read): Likewise.
2569 (get_frame_register_bytes): Likewise.
2570 (has_stack_frames): Likewise.
2571 (inside_main_func): Likewise.
2572 (inside_entry_func): Likewise.
2573 (get_frame_pc_if_available): Likewise.
2574 (get_frame_address_in_block_if_available): Likewise.
2575 (frame_unwinder_is): Likewise.
2576 (safe_frame_unwind_memory): Likewise.
2577 (frame_unwind_arch): Likewise.
2578
fedfee88
SM
25792020-08-04 Simon Marchi <simon.marchi@efficios.com>
2580
2581 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2582 type to cached_copy_status.
2583 (fprintf_frame): Adjust.
2584 (get_frame_func_if_available): Adjust.
2585 (frame_cleanup_after_sniffer): Adjust.
2586
6cfa9b59
MW
25872020-08-04 Mark Wielaard <mark@klomp.org>
2588
2589 * MAINTAINERS (Write After Approval): Update email address.
2590
66d6346b
SM
25912020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2592
2593 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2594 dynamic_prop::const_val.
2595
8a6d5e35
SM
25962020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2597
2598 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2599 dynamic_prop::kind.
2600
51d6067d
SM
26012020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2602
2603 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2604
b26e2ae7
JM
26052020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2606
2607 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2608
39791af2
JM
26092020-08-04 Weimin Pan <weimin.pan@oracle.com>
2610 Jose E. Marchesi <jose.marchesi@oracle.com>
2611
2612 * configure.tgt: Add entry for bpf-*-*.
2613 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2614 (ALLDEPFILES): Add bpf-tdep.c.
2615 * bpf-tdep.c: New file.
2616 * MAINTAINERS: Add bpf target and maintainer.
2617 * NEWS: Mention the support for the new target.
2618
521894aa
TV
26192020-08-04 Tom de Vries <tdevries@suse.de>
2620
2621 PR symtab/23270
2622 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2623 Error.
2624
5d6356e9
JB
26252020-08-03 John Baldwin <jhb@FreeBSD.org>
2626
2627 * syscalls/freebsd.xml: Regenerate.
2628
0cf82b81
JB
26292020-08-03 John Baldwin <jhb@FreeBSD.org>
2630
2631 * syscalls/update-freebsd.sh: Fix usage and year range.
2632
8f34b746
TV
26332020-08-03 Tom de Vries <tdevries@suse.de>
2634
2635 PR symtab/26333
2636 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2637 DW_LNE_lo_user/DW_LNE_hi_user range.
2638
5e500d33
SM
26392020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2640
2641 PR ada/26318
2642 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2643 kind.
2644
78319c15
TBA
26452020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2646
2647 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2648
4c55e970
TBA
26492020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2650
2651 * breakpoint.c (set_breakpoint_condition): Update the condition
2652 expressions after checking that the input condition string parses
2653 successfully and does not contain junk at the end.
2654
1e620590
TBA
26552020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2656
2657 * breakpoint.c (set_breakpoint_condition): Update the
2658 condition string after parsing the new condition successfully.
2659
c8693053
RO
26602020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2661
2662 * proc-api.c (_STRUCTURED_PROC): Don't define.
2663 * proc-events.c: Likewise.
2664 * proc-flags.c: Likewise.
2665 * proc-why.c: Likewise.
2666 * procfs.c: Likewise.
2667
2668 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2669 * configure, config.in: Regenerate.
2670
5a99adb8
TV
26712020-07-30 Tom de Vries <tdevries@suse.de>
2672
2673 PR build/26320
2674 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2675 m_red/m_green/m_blue in a union.
2676
8ba83e91
TV
26772020-07-29 Tom de Vries <tdevries@suse.de>
2678
2679 PR tdep/26280
2680 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2681
f75a0693
AB
26822020-07-28 Tom Tromey <tromey@adacore.com>
2683
2684 PR symtab/26270:
2685 * symtab.h (find_pc_partial_function_sym): Declare.
2686 * cli/cli-cmds.c (disassemble_command): Use
2687 find_pc_partial_function_sym. Check asm_demangle.
2688 * blockframe.c (cache_pc_function_sym): New global.
2689 (cache_pc_function_name): Remove.
2690 (clear_pc_function_cache): Update.
2691 (find_pc_partial_function_sym): New function, from
2692 find_pc_partial_function.
2693 (find_pc_partial_function): Rewrite using
2694 find_pc_partial_function_sym.
2695
16f3242c
TT
26962020-07-28 Tom Tromey <tromey@adacore.com>
2697
2698 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2699 help. Add usage.
2700
4888741a
TT
27012020-07-28 Tom Tromey <tromey@adacore.com>
2702
2703 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2704 <DW_OP_GNU_variable_value>: Cast to address type.
2705
4d46f402
KR
27062020-07-28 Kamil Rytarowski <n54@gmx.com>
2707
2708 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2709 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2710 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2711 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2712 (nbsd_get_siginfo_type): New.
2713 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2714 (_initialize_nbsd_tdep): New.
2715
d70f978b
L
27162020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2717
2718 PR binutils/26301
2719 * configure: Regenerated.
2720
377170fa
L
27212020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2722
2723 PR binutils/26301
2724 * configure: Regenerated.
2725
43d5901d
AB
27262020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2727
2728 * python/py-frame.c: Remove 'user-regs.h' include.
2729 (frapy_read_register): Rewrite to make use of
2730 gdbpy_parse_register_id.
2731 * python/py-registers.c (gdbpy_parse_register_id): New function,
2732 moved here from python/py-unwind.c. Updated the return type, and
2733 also accepts register descriptor objects.
2734 * python/py-unwind.c: Remove 'user-regs.h' include.
2735 (pyuw_parse_register_id): Moved to python/py-registers.c.
2736 (unwind_infopy_add_saved_register): Update to use
2737 gdbpy_parse_register_id.
2738 (pending_framepy_read_register): Likewise.
2739 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2740
14fa8fb3
AB
27412020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2742
2743 * python/py-registers.c: Add 'user-regs.h' include.
2744 (register_descriptor_iter_find): New function.
2745 (register_descriptor_iterator_object_methods): New static global
2746 methods array.
2747 (register_descriptor_iterator_object_type): Add pointer to methods
2748 array.
2749
ddce1758
JB
27502020-07-27 John Baldwin <jhb@FreeBSD.org>
2751
2752 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2753 for all architectures on FreeBSD 11.3 and later.
2754
a4089f52
TT
27552020-07-27 Tom Tromey <tromey@adacore.com>
2756
2757 * gcore.h (load_corefile): Don't declare.
2758
95420d30
TV
27592020-07-27 Tom de Vries <tdevries@suse.de>
2760
2761 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2762 * config.in: Regenerate.
2763 * configure: Regenerate.
2764
05a6b8c2
EZ
27652020-07-26 Eli Zaretskii <eliz@gnu.org>
2766
2767 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2768 ws2tcpip.h. When checking whether socklen_t type is defined, use
2769 ws2tcpip.h if it is available and sys/socket.h isn't.
2770 * configure: Regenerate.
2771 * config.in: Regenerate.
2772
e79eb02f
AB
27732020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2774
2775 PR fortran/23051
2776 PR fortran/26139
2777 * valops.c (value_ind): Pass address to
2778 readjust_indirect_value_type.
2779 * value.c (readjust_indirect_value_type): Make parameter
2780 non-const, and add extra address parameter. Resolve original type
2781 before using it.
2782 * value.h (readjust_indirect_value_type): Update function
2783 signature and comment.
2784
876518dd
TV
27852020-07-25 Tom de Vries <tdevries@suse.de>
2786
2787 PR symtab/26243
2788 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2789 entries.
2790
f6720b1c
AM
27912020-07-24 Aaron Merey <amerey@redhat.com>
2792
2793 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2794 * configure: Rebuild.
2795
513487e1
KB
27962020-07-23 Kevin Buettner <kevinb@redhat.com>
2797
2798 PR corefiles/26294
2799 * corelow.c (_initialize_corelow): Add period to help text
2800 for "maintenance print core-file-backed-mappings".
2801
e7bc9db8
PA
28022020-07-23 Pedro Alves <pedro@palves.net>
2803
2804 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2805 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2806 meanwhile.
2807 * frame.c (frame_cache_generation, get_frame_cache_generation):
2808 New.
2809 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2810 (get_prev_frame_if_no_cycle): On exception, don't touch
2811 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2812 * frame.h (get_frame_cache_generation): Declare.
2813
90fcc466
TV
28142020-07-23 Tom de Vries <tdevries@suse.de>
2815
2816 PR tui/26282
2817 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2818 New default constructor.
2819
78344df7
AB
28202020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2821
2822 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2823 exclude non-statement entries.
2824
b089853a
KB
28252020-07-22 Kevin Buettner <kevinb@redhat.com>
2826
2827 * NEWS (New commands): Mention new command
2828 "maintenance print core-file-backed-mappings".
2829
09c2f5d4
KB
28302020-07-22 Kevin Buettner <kevinb@redhat.com>
2831
2832 * corelow.c (gdbcmd.h): Include.
2833 (core_target::info_proc_mappings): New method.
2834 (get_current_core_target): New function.
2835 (maintenance_print_core_file_backed_mappings): New function.
2836 (_initialize_corelow): Add core-file-backed-mappings to
2837 "maint print" commands.
2838
9c5ec5c2 28392020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 2840
9c5ec5c2
KB
2841 * linux-tdep.c (dump_note_entry_p): New function.
2842 (linux_dump_mapping_p_ftype): New typedef.
2843 (linux_find_memory_regions_full): Add new parameter,
2844 should_dump_mapping_p.
2845 (linux_find_memory_regions): Adjust call to
2846 linux_find_memory_regions_full.
2847 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2848 call to linux_find_memory_regions_full.
2849
db082f59
KB
28502020-07-22 Kevin Buettner <kevinb@redhat.com>
2851
2852 * corelow.c (solist.h, unordered_map): Include.
2853 (class core_target): Add field m_core_file_mappings and
2854 method build_file_mappings.
2855 (core_target::core_target): Call build_file_mappings.
2856 (core_target::~core_target): Free memory associated with
2857 m_core_file_mappings.
2858 (core_target::build_file_mappings): New method.
2859 (core_target::xfer_partial): Use m_core_file_mappings
2860 for memory transfers.
2861 * linux-tdep.c (linux_read_core_file_mappings): New
2862 function.
2863 (linux_core_info_proc_mappings): Rewrite to use
2864 linux_read_core_file_mappings.
2865 (linux_init_abi): Register linux_read_core_file_mappings.
2866
7e183d27
KB
28672020-07-22 Kevin Buettner <kevinb@redhat.com>
2868
2869 * arch-utils.c (default_read_core_file_mappings): New function.
2870 * arch-utils.c (default_read_core_file_mappings): Declare.
2871 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
2872 * gdbarch.h, gdbarch.c: Regenerate.
2873
2735d421
KB
28742020-07-22 Kevin Buettner <kevinb@redhat.com>
2875
2876 PR corefiles/25631
2877 * corelow.c (core_target:xfer_partial): Revise
2878 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
2879 case after first checking the stratum beneath the core
2880 target.
2881 (has_all_memory): Return true.
2882 * target.c (raw_memory_xfer_partial): Revise comment
2883 regarding use of has_all_memory.
2884
e56cb451
KB
28852020-07-22 Kevin Buettner <kevinb@redhat.com>
2886
2887 * exec.h (section_table_xfer_memory): Revise declaration,
2888 replacing section name parameter with an optional callback
2889 predicate.
2890 * exec.c (section_table_xfer_memory): Likewise.
2891 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2892 of section_table_xfer_memory.
2893
32fa152e
TT
28942020-07-22 Tom Tromey <tromey@adacore.com>
2895
2896 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2897 lookup_symbol_search_name.
2898
a67a1c41
AB
28992020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2900
2901 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2902 redundant local variable.
2903 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2904 reference, not pointer, update code accordingly.
2905
a7b4ff4f
SM
29062020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2907 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2908
2909 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2910 * jit.c (jit_breakpoint_re_set_internal): Use the
2911 `skip_jit_symbol_lookup` field.
2912
2340e834
SM
29132020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2914 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2915
2916 * jit.c (jit_read_descriptor): Define the descriptor address once,
2917 use twice.
2918 (jit_breakpoint_deleted): Move the declaration of the loop variable
2919 `iter` into the loop header.
2920 (jit_breakpoint_re_set_internal): Move the declaration of the local
2921 variable `objf_data` to the first point of definition.
2922 (jit_event_handler): Move the declaration of local variables
2923 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2924 Rename `objf` to `jited`.
2925
c1072906
SM
29262020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2927
2928 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2929 Remove.
2930 * jit.c (get_jiter_objfile_data): Update.
2931
c8474dc3
TBA
29322020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2933 Simon Marchi <simon.marchi@polymtl.ca>
2934
2935 * jit.c (struct jit_program_space_data): Remove.
2936 (jit_program_space_key): Remove.
2937 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2938 stuff.
2939 (get_jit_program_space_data): Remove.
2940 (jit_breakpoint_deleted): Iterate on all of the program space's
2941 objfiles.
2942 (jit_inferior_init): Likewise.
2943 (jit_breakpoint_re_set_internal): Likewise. Also change return
2944 type to void.
2945 (jit_breakpoint_re_set): Pass current_program_space to
2946 jit_breakpoint_re_set_internal.
2947
77208eb7
SM
29482020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2949
2950 * jit.h (struct jiter_objfile_data) <cached_code_address,
2951 jit_breakpoint>: Move to here from ...
2952 * jit.c (jit_program_space_data): ... here.
2953 (jiter_objfile_data::~jiter_objfile_data): Update.
2954 (jit_breakpoint_deleted): Update.
2955 (jit_breakpoint_re_set_internal): Update.
2956
8c1c720f
SM
29572020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2958
2959 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2960 checks.
2961 (jit_read_descriptor): Remove NULL check.
2962 (jit_event_handler): Add an assertion.
2963
0e74a041
SM
29642020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2965
2966 * jit.h (struct jit_objfile_data): Split into...
2967 (struct jiter_objfile_data): ... this ...
2968 (struct jited_objfile_data): ... and this.
2969 * objfiles.h (struct objfile) <jit_data>: Remove.
2970 <jiter_data, jited_data>: New fields.
2971 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2972 (jiter_objfile_data::~jiter_objfile_data): ... this.
2973 (get_jit_objfile_data): Rename to ...
2974 (get_jiter_objfile_data): ... this.
2975 (add_objfile_entry): Update.
2976 (jit_read_descriptor): Use get_jiter_objfile_data.
2977 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2978 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2979 (jit_inferior_exit_hook): Use objfile's jited_data field.
2980
238b5c9f
SM
29812020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2982
2983 * jit.h: Forward-declare `struct minimal_symbol`.
2984 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2985 constructor, destructor, and an objfile* field.
2986 * jit.c (jit_objfile_data): Remove.
2987 (struct jit_objfile_data): Migrate from here to jit.h.
2988 (jit_objfile_data::~jit_objfile_data): New destructor
2989 implementation with code moved from free_objfile_data.
2990 (free_objfile_data): Delete.
2991 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2992 (jit_find_objf_with_entry_addr): Ditto.
2993 (jit_inferior_exit_hook): Ditto.
2994 (_initialize_jit): Remove the call to
2995 register_objfile_data_with_cleanup.
2996 * objfiles.h (struct objfile) <jit_data>: New field.
2997
fe053b9e
TBA
29982020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2999
3000 * jit.h: Forward-declare `struct objfile`.
3001 (jit_event_handler): Add a second parameter, the JITer objfile.
3002 * jit.c (jit_read_descriptor): Change the signature to take the
3003 JITer objfile as an argument instead of the jit_program_space_data.
3004 (jit_inferior_init): Update the call to jit_read_descriptor.
3005 (jit_event_handler): Use the new JITer objfile argument when calling
3006 jit_read_descriptor.
3007 * breakpoint.c (handle_jit_event): Update the call to
3008 jit_event_handler to pass the JITer objfile.
3009
4cec0c66
JB
30102020-07-21 John Baldwin <jhb@FreeBSD.org>
3011
3012 * gdbarch.c: Regenerate.
3013 * gdbarch.h: Regenerate.
3014 * gdbarch.sh (handle_segmentation_fault): Remove method.
3015 * infrun.c (handle_segmentation_fault): Remove.
3016 (print_signal_received_reason): Remove call to
3017 handle_segmentation_fault.
3018
0e42f66a
JB
30192020-07-21 John Baldwin <jhb@FreeBSD.org>
3020
3021 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3022 Rename to sparc64_linux_report_signal_info and add siggnal
3023 argument.
3024 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
3025 instead of sparc64_linux_handle_segmentation_fault.
3026
77bdfeb2
JB
30272020-07-21 John Baldwin <jhb@FreeBSD.org>
3028
3029 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
3030 i386_linux_report_signal_info instead of
3031 i386_linux_handle_segmentation_fault.
3032 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
3033 to i386_linux_report_signal_info and add siggnal argument.
3034 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
3035 of i386_linux_handle_segmentation_fault.
3036 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
3037 to i386_linux_report_signal_info and add siggnal argument.
3038
ad97bfc5
JB
30392020-07-21 John Baldwin <jhb@FreeBSD.org>
3040
3041 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
3042 hook if present.
3043
272bb05c
JB
30442020-07-21 John Baldwin <jhb@FreeBSD.org>
3045
3046 * gdbarch.c: Regenerate.
3047 * gdbarch.h: Regenerate.
3048 * gdbarch.sh (report_signal_info): New method.
3049 * infrun.c (print_signal_received_reason): Invoke gdbarch
3050 report_signal_info hook if present.
3051
baf8791e
AB
30522020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3053
3054 * python/py-registers.c : Add 'unordered_map' include.
3055 (gdbpy_new_reggroup): Renamed to...
3056 (gdbpy_get_reggroup): ...this. Update to only create register
3057 group descriptors when needed.
3058 (gdbpy_reggroup_iter_next): Update.
3059
f7306dac
AB
30602020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3061
3062 * python/py-registers.c (gdbpy_register_object_data): New static
3063 global.
3064 (gdbpy_register_object_data_init): New function.
3065 (gdbpy_new_register_descriptor): Renamed to...
3066 (gdbpy_get_register_descriptor): ...this, and update to reuse
3067 existing register descriptors where possible.
3068 (gdbpy_register_descriptor_iter_next): Update.
3069 (gdbpy_initialize_registers): Register new gdbarch data.
3070
05c309a8
SM
30712020-07-21 Simon Marchi <simon.marchi@efficios.com>
3072
3073 * linux-nat.c (stopped_pids): Make static.
3074
d1fd641e
SM
30752020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3076
3077 PR ada/26235
3078 * gdbtypes.c (ada_discrete_type_low_bound,
3079 ada_discrete_type_high_bound): Handle undefined bounds.
3080
1de14d77
KR
30812020-07-21 Kamil Rytarowski <n54@gmx.com>
3082
3083 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
3084 declaration.
3085 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
3086 function.
3087
ed810cc7
JB
30882020-07-20 John Baldwin <jhb@FreeBSD.org>
3089
3090 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
3091 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
3092 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
3093 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
3094 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
3095 method.
3096
ae5369e7
LC
30972020-07-20 Ludovic Courtès <ludo@gnu.org>
3098
3099 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
3100 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
3101 which are deprecated in Guile 3.0.
3102 * configure.ac (try_guile_versions): Add "guile-3.0".
3103 * configure (try_guile_versions): Regenerate.
3104 * NEWS: Update entry.
3105
68cf161c
LC
31062020-07-20 Ludovic Courtès <ludo@gnu.org>
3107 Doug Evans <dje@google.com>
3108
3109 PR gdb/21104
3110 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
3111 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
3112 USING_GUILE_BEFORE_2_2.
3113 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
3114 Change type to 'scm_t_port_type *'.
3115 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
3116 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
3117 parameter and honor it. Update callers.
3118 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
3119 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
3120 functions.
3121 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
3122 USING_GUILE_BEFORE_2_2.
3123 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
3124 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
3125 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
3126 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
3127 and 'SCM_PORT_TYPE'.
3128 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
3129 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
3130 (gdbscm_memory_port_read, gdbscm_memory_port_write)
3131 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
3132 [!USING_GUILE_BEFORE_2_2]: New functions.
3133 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
3134 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
3135 'gdbscm_memory_port_read'.
3136 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
3137 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
3138 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
3139 function.
3140 (ioscm_init_memory_port): Remove.
3141 (ioscm_init_memory_port_stream): New function
3142 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
3143 function.
3144 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3145 Return scm_from_uint (0).
3146 (gdbscm_set_memory_port_read_buffer_size_x)
3147 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3148 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3149 Return scm_from_uint (0).
3150 (gdbscm_set_memory_port_write_buffer_size_x)
3151 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3152 * configure.ac (try_guile_versions): Add "guile-2.2".
3153 * configure: Regenerate.
3154 * NEWS: Add entry.
3155
aee91db3
TT
31562020-07-18 Tom Tromey <tom@tromey.com>
3157
3158 * linux-nat.c (linux_multi_process): Remove.
3159 (linux_nat_target::supports_multi_process): Return true.
3160
0e267416
AB
31612020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3162
3163 * arch/riscv.c (riscv_tdesc_cache): Change map type.
3164 (riscv_lookup_target_description): Return pointer out of
3165 unique_ptr.
3166 * target-descriptions.c (allocate_target_description): Add
3167 comment.
3168 (target_desc_deleter::operator()): Likewise.
3169 * target-descriptions.h (struct target_desc_deleter): Moved to
3170 gdbsupport/tdesc.h.
3171 (target_desc_up): Likewise.
3172
f80c8ec4
TT
31732020-07-17 Tom Tromey <tromey@adacore.com>
3174
3175 * linux-nat.c (linux_nat_target::supports_non_stop)
3176 (linux_nat_target::always_non_stop_p): Use "true".
3177 (linux_nat_target::supports_disable_randomization): Use "true" and
3178 "false".
3179
d0ce17d8
CT
31802020-07-16 Caroline Tice <cmtice@google.com>
3181
3182 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3183 (RNGLIST_HEADER_SIZE64): New constant definition.
3184 (struct dwop_section_names): Add rnglists_dwo.
3185 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3186 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3187 (struct dwo_sections): Add rnglists field.
3188 (read_attribut_reprocess): Add tag parameter.
3189 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3190 (cu_debug_rnglists_section): New function (decl & definition).
3191 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3192 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3193 die whose range is being checked; get rnglist section from
3194 cu_debug_rnglists_section, to get from either objfile or dwo file as
3195 appropriate. Add cases for DW_RLE_base_addressx,
3196 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3197 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3198 test inside if-condition and updating complaint message.
3199 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3200 dwarf2_rnglists_process.
3201 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3202 dwarf2_ranges_process.
3203 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3204 need_ranges_base and update comment appropriately. Also pass die tag
3205 to dwarf2_ranges_read.
3206 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3207 need_ranges_base and update comment appropriately. Also pass die tag
3208 to dwarf2_ranges_process.
3209 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3210 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3211 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3212 need_ranges_base and update comment appropriately. Also pass die tag
3213 to read_attribute_reprocess and dwarf2_ranges_read.
3214 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3215 and update function comment appropriately.
3216 (read_loclist_index): Call read_loclists_rnglists_header instead of
3217 read_loclist_header.
3218 (read_rnglist_index): New function.
3219 (read_attribute_reprocess): Add tag parameter. Add code for
3220 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3221 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3222
3dcc261c
AB
32232020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3224
3225 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3226 being resolved.
3227
ccb9eba6
AB
32282020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3229
3230 * arch-utils.c (show_architecture): Update formatting of messages.
3231
cf88be68
SM
32322020-07-12 Simon Marchi <simon.marchi@efficios.com>
3233
3234 * gdbtypes.h (struct type) <bounds>: Handle array and string
3235 types.
3236 * ada-lang.c (assign_aggregate): Use type::bounds on
3237 array/string type.
3238 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3239 * c-varobj.c (c_number_of_children): Likewise.
3240 (c_describe_child): Likewise.
3241 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3242 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3243 (f_type_print_base): Likewise.
3244 * f-valprint.c (f77_array_offset_tbl): Likewise.
3245 (f77_get_upperbound): Likewise.
3246 (f77_print_array_1): Likewise.
3247 * guile/scm-type.c (gdbscm_type_range): Likewise.
3248 * m2-typeprint.c (m2_array): Likewise.
3249 (m2_is_long_set_of_type): Likewise.
3250 * m2-valprint.c (get_long_set_bounds): Likewise.
3251 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3252 * python/py-type.c (typy_range): Likewise.
3253 * rust-lang.c (rust_internal_print_type): Likewise.
3254 * type-stack.c (type_stack::follow_types): Likewise.
3255 * valarith.c (value_subscripted_rvalue): Likewise.
3256 * valops.c (value_cast): Likewise.
3257
509971ae
SM
32582020-07-12 Simon Marchi <simon.marchi@efficios.com>
3259
3260 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3261 callers to use the equivalent accessor methods.
3262
107406b7
SM
32632020-07-12 Simon Marchi <simon.marchi@efficios.com>
3264
3265 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3266 (struct type) <bit_stride>: New method.
3267 (TYPE_BIT_STRIDE): Remove.
3268 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3269
bb789949
SM
32702020-07-12 Simon Marchi <simon.marchi@efficios.com>
3271
3272 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3273 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3274 callers to use the equivalent accessor methods instead.
3275
39498edb
SM
32762020-07-12 Simon Marchi <simon.marchi@efficios.com>
3277
3278 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3279 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3280 callers to use the equivalent accessor methods instead.
3281
3b606f38
SM
32822020-07-12 Simon Marchi <simon.marchi@efficios.com>
3283
3284 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3285 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3286 to use dynamic_prop::kind.
3287
064d9cb9
SM
32882020-07-12 Simon Marchi <simon.marchi@efficios.com>
3289
3290 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3291 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3292 to get the bound property's kind and check against
3293 PROP_UNDEFINED.
3294
5537ddd0
SM
32952020-07-12 Simon Marchi <simon.marchi@efficios.com>
3296
3297 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3298 all callers to use type::range_bounds followed by
3299 dynamic_prop::{low,high}.
3300
8c2e4e06
SM
33012020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3302
3303 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3304 const_val, set_const_val, baton, set_locexpr, set_loclist,
3305 set_addr_offset, variant_parts, set_variant_parts,
3306 original_type, set_original_type>: New methods.
3307 <kind>: Rename to...
3308 <m_kind>: ... this. Update all users to use the new methods
3309 instead.
3310 <data>: Rename to...
3311 <m_data>: ... this. Update all users to use the new methods
3312 instead.
3313
7c6f2712
SM
33142020-07-12 Simon Marchi <simon.marchi@efficios.com>
3315
3316 * gdbtypes.c (get_discrete_bounds): Return failure if
3317 the range type's bounds are not both defined and constant
3318 values.
3319 (get_array_bounds): Update comment. Remove undefined bound check.
3320
599088e3
SM
33212020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3322
3323 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3324 the type::bounds method directly.
3325
c4dfcb36
SM
33262020-07-12 Simon Marchi <simon.marchi@efficios.com>
3327
3328 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3329 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3330 are used to set the range type's bounds to use set_bounds.
3331
0a278aa7
PW
33322020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3333
3334 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3335
cce20f10
PA
33362020-07-10 Pedro Alves <pedro@palves.net>
3337
3338 * gdbthread.h (inferior_ref): Define.
3339 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3340 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3341 * thread.c
3342 (scoped_restore_current_thread::restore):
3343 Adjust to gdb::ref_ptr.
3344 (scoped_restore_current_thread::~scoped_restore_current_thread):
3345 Remove manual decref handling.
3346 (scoped_restore_current_thread::scoped_restore_current_thread):
3347 Adjust to use
3348 inferior_ref::new_reference/thread_info_ref::new_reference.
3349 Incref the thread before calling get_frame_id instead of after.
3350 Let TARGET_CLOSE_ERROR propagate.
3351
6d7aa592
PA
33522020-07-10 Pedro Alves <pedro@palves.net>
3353
3354 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3355 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3356 NOT_AVAILABLE_ERROR.
3357 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3358 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3359
b3e3a4c1
SM
33602020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3361 Pedro Alves <pedro@palves.net>
3362
3363 PR gdb/26199
3364 * infrun.c (threads_are_resumed_pending_p): Delete.
3365 (do_target_wait): Remove threads_are_executing and
3366 threads_are_resumed_pending_p checks from the inferior_matches
3367 lambda. Update comments.
3368
d6cc5d98
PA
33692020-07-10 Pedro Alves <pedro@palves.net>
3370
3371 PR gdb/26199
3372 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3373 executing threads.
3374
7d3badc6
PA
33752020-07-10 Pedro Alves <pedro@palves.net>
3376
3377 PR gdb/26199
3378 * infrun.c (handle_no_resumed): Handle multiple targets.
3379
42bd97a6
PA
33802020-07-10 Pedro Alves <pedro@palves.net>
3381
3382 PR gdb/26199
3383 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3384 target_is_async_p.
3385
43667cc6
PA
33862020-07-10 Pedro Alves <pedro@palves.net>
3387
3388 PR gdb/26199
3389 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3390 threads, not all threads.
3391
96118d11
PA
33922020-07-10 Pedro Alves <pedro@palves.net>
3393
3394 PR gdb/26199
3395 * remote.c (remote_target::open_1): Pass remote target pointer as
3396 data to create_async_event_handler.
3397 (remote_async_inferior_event_handler): Mark async event handler
3398 before returning if the remote target still has either pending
3399 events or unacknowledged notifications.
3400
54904d81
JB
34012020-07-10 John Baldwin <jhb@FreeBSD.org>
3402
3403 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3404 declaration.
3405 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3406 function.
3407
f37e5866
JB
34082020-07-09 John Baldwin <jhb@FreeBSD.org>
3409
3410 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3411 inferior_ptid.
3412
fc238d4a
JB
34132020-07-09 John Baldwin <jhb@FreeBSD.org>
3414
3415 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3416 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3417 AT_FREEBSD_PS_STRINGS.
3418
6e2469ff
HD
34192020-07-08 Hannes Domani <ssbssa@yahoo.de>
3420
3421 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3422 of debugfile path on Windows.
3423
d1076c41
JB
34242020-07-08 John Baldwin <jhb@FreeBSD.org>
3425
3426 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3427 argument to 'data'.
3428
15f3b077
TT
34292020-07-08 Tom Tromey <tromey@adacore.com>
3430
3431 * ada-lang.c (ada_exception_message_1): Use read_memory.
3432
9fc501fd
AB
34332020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3434
3435 PR python/22748
3436 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3437 special handling for inline frames.
3438 * findvar.c (value_of_register_lazy): Skip inline frames when
3439 creating lazy register values.
3440 * frame.c (frame_id_computed_p): Delete definition.
3441 * frame.h (frame_id_computed_p): Delete declaration.
3442
64cb3757
AB
34432020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3444
3445 * NEWS: Mention additions to Python API.
3446 * python/py-arch.c (archpy_register_groups): New function.
3447 (arch_object_methods): Add 'register_groups' method.
3448 * python/py-registers.c (reggroup_iterator_object): New struct.
3449 (reggroup_object): New struct.
3450 (gdbpy_new_reggroup): New function.
3451 (gdbpy_reggroup_to_string): New function.
3452 (gdbpy_reggroup_name): New function.
3453 (gdbpy_reggroup_iter): New function.
3454 (gdbpy_reggroup_iter_next): New function.
3455 (gdbpy_new_reggroup_iterator): New function
3456 (gdbpy_initialize_registers): Register new types.
3457 (reggroup_iterator_object_type): Define new Python type.
3458 (gdbpy_reggroup_getset): New static global.
3459 (reggroup_object_type): Define new Python type.
3460 * python/python-internal.h
3461
0f767f94
AB
34622020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3463
3464 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3465 * python/py-arch.c (archpy_registers): New function.
3466 (arch_object_methods): Add 'registers' method.
3467 * python/py-registers.c: New file.
3468 * python/python-internal.h
3469 (gdbpy_new_register_descriptor_iterator): Declare.
3470 (gdbpy_initialize_registers): Declare.
3471 * python/python.c (do_start_initialization): Call
3472 gdbpy_initialize_registers.
3473 * NEWS: Mention additions to the Python API.
3474
87dbc774
AB
34752020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3476
3477 * NEWS: Mention new Python API method.
3478 * python/py-unwind.c (pending_framepy_architecture): New function.
3479 (pending_frame_object_methods): Add architecture method.
3480
3bc98c0c
AB
34812020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3482
3483 * gdbarch.c: Regenerate.
3484 * gdbarch.h: Regenerate.
3485 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3486 (gdbarch_data): Use internal_error for the case where
3487 deprecated_set_gdbarch_data was originally needed.
3488 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3489 and use passed in obstack.
3490 (libunwind_frame_set_descr): Should no longer get back NULL from
3491 gdbarch_data.
3492 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3493 type.
3494 * user-regs.c (user_regs_init): Update parameters, and use passed
3495 in obstack.
3496 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3497 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3498
d8cc8af6
TV
34992020-07-06 Tom de Vries <tdevries@suse.de>
3500
3501 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3502 End-Of-Sequence in lte_is_less_than.
3503 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3504 "gdb: Don't reorder line table entries too much when sorting".
3505
947f7597
TV
35062020-07-06 Tom de Vries <tdevries@suse.de>
3507
3508 PR tui/26205
3509 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3510
1e7c1b22
TV
35112020-07-05 Tom de Vries <tdevries@suse.de>
3512
3513 PR build/26187
3514 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3515 std::uncaught_exceptions instead of deprecated
3516 std::uncaught_exception.
3517
a36158ec
SM
35182020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3519
3520 * macroexp.h (macro_stringify): Return
3521 gdb::unique_xmalloc_ptr<char>.
3522 * macroexp.c (macro_stringify): Likewise.
3523 * macrotab.c (fixup_definition): Update.
3524
14d960c8
SM
35252020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3526
3527 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3528 (lex_one_token): Update.
3529 * macroexp.c (struct macro_buffer) <release>: Return
3530 gdb::unique_xmalloc_ptr<char>.
3531 (macro_stringify): Update.
3532 (macro_expand): Update.
3533 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3534 * macroexp.h (macro_expand_next): Likewise.
3535
211d5b1c
SM
35362020-07-02 Simon Marchi <simon.marchi@efficios.com>
3537
3538 * macroexp.h (macro_lookup_ftype): Remove.
3539 (macro_expand, macro_expand_once, macro_expand_next): Remove
3540 lookup function parameters, add scope parameter.
3541 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3542 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3543 * macroscope.h (standard_macro_lookup): Change parameter type
3544 to macro_scope.
3545 * macroscope.c (standard_macro_lookup): Likewise.
3546 * c-exp.y (lex_one_token): Update.
3547 * macrocmd.c (macro_expand_command): Likewise.
3548 (macro_expand_once_command): Likewise.
3549
b1a35af2
SM
35502020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3551
3552 * inf-loop.c (inferior_event_handler): Remove client_data param.
3553 * inf-loop.h (inferior_event_handler): Likewise.
3554 * infcmd.c (step_1): Adjust.
3555 * infrun.c (proceed): Adjust.
3556 (fetch_inferior_event): Remove client_data param.
3557 (infrun_async_inferior_event_handler): Adjust.
3558 * infrun.h (fetch_inferior_event): Remove `void *` param.
3559 * linux-nat.c (handle_target_event): Adjust.
3560 * record-btrace.c (record_btrace_handle_async_inferior_event):
3561 Adjust.
3562 * record-full.c (record_full_async_inferior_event_handler):
3563 Adjust.
3564 * remote.c (remote_async_inferior_event_handler): Adjust.
3565
1cdf9e33
TT
35662020-07-01 Tom Tromey <tom@tromey.com>
3567
3568 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3569 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3570
32c1e210
TT
35712020-07-01 Tom Tromey <tom@tromey.com>
3572
3573 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3574 tui_gen_win_info.
3575 (tui_win_info::make_window): Merge with
3576 tui_gen_win_info::make_window.
3577 (tui_win_info::make_visible): Move from tui_gen_win_info.
3578 * tui/tui-win.c (tui_win_info::max_width): Move from
3579 tui_gen_win_info.
3580 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3581 type.
3582 <window_factory>: Likewise.
3583 * tui/tui-layout.c (tui_win_info::resize): Move from
3584 tui_gen_win_info.
3585 (make_standard_window): Change return type.
3586 (get_locator_window, tui_get_window_by_name): Likewise.
3587 (tui_layout_window::apply): Remove a cast.
3588 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3589 (struct tui_win_info): Merge with tui_gen_win_info.
3590 (struct tui_gen_win_info): Remove.
3591
a30cb6da
TT
35922020-07-01 Tom Tromey <tom@tromey.com>
3593
3594 * tui/tui-stack.h (struct tui_locator_window): Derive from
3595 tui_win_info.
3596 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3597 <can_box>: New method.
3598
1eb2161f
TT
35992020-07-01 Tom Tromey <tom@tromey.com>
3600
3601 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3602
7134f2eb
TT
36032020-07-01 Tom Tromey <tom@tromey.com>
3604
3605 * tui/tui-regs.c (tui_data_window::display_registers_from)
3606 (tui_data_window::display_registers_from)
3607 (tui_data_window::first_data_item_displayed)
3608 (tui_data_window::delete_data_content_windows): Update.
3609 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3610 Remove.
3611 (tui_data_window::check_register_values): Update.
3612 (tui_data_item_window::rerender): Add parameters. Update.
3613 (tui_data_item_window::refresh_window): Remove.
3614 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3615 virtual.
3616 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3617 tui_gen_win_info.
3618 <refresh_window, max_height, min_height>: Remove.
3619 <rerender>: Add parameters.
3620 <x, y, visible>: New members.
3621 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3622 <m_item_width>: New member.
3623
22b7b041
TT
36242020-07-01 Tom Tromey <tom@tromey.com>
3625
3626 * tui/tui-regs.c (tui_data_window::show_register_group)
3627 (tui_data_window::check_register_values): Update.
3628 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3629 from item_no.
3630
c9753adb
TT
36312020-07-01 Tom Tromey <tom@tromey.com>
3632
3633 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3634 useless "if".
3635
9ab26b4a
TT
36362020-07-01 Tom Tromey <tom@tromey.com>
3637
3638 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3639 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3640
e555083f
TT
36412020-07-01 Tom Tromey <tom@tromey.com>
3642
3643 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3644 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3645 (struct tui_line_or_address): Move from tui-data.h.
3646 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3647 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3648 (tui_cmd_window, tui_source_window_base, tui_source_window)
3649 (tui_disasm_window): Don't declare.
3650 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3651 to tui-winsource.h.
3652 (SINGLE_KEY): Move to tui-stack.c.
3653
7a02bab7
TT
36542020-07-01 Tom Tromey <tom@tromey.com>
3655
3656 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3657 std::string.
3658 * tui/tui-regs.c (class tab_expansion_file): New.
3659 (tab_expansion_file::write): New method.
3660 (tui_register_format): Change return type. Use
3661 tab_expansion_file.
3662 (tui_get_register, tui_data_window::display_registers_from)
3663 (tui_data_item_window::rerender): Update.
3664 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3665 * tui/tui-io.c (tui_expand_tabs): Remove.
3666
ea68593b
TT
36672020-07-01 Tom Tromey <tom@tromey.com>
3668
3669 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3670
a8caed5d
FS
36712020-07-01 Fangrui Song <maskray@google.com>
3672
3673 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3674
9cdf9820
AKS
36752020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3676
3677 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3678 forms for DW_AT_associated and DW_AT_allocated attributes,
3679 which is already checked in function attr_to_dynamic_prop.
3680
a1520ad8
TT
36812020-06-30 Tom Tromey <tromey@adacore.com>
3682
3683 * dwarf2/read.c (quirk_rust_enum): Correctly call
3684 alloc_rust_variant for default-less enum.
3685
5ac58899
TT
36862020-06-30 Tom Tromey <tromey@adacore.com>
3687
3688 PR build/26183:
3689 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3690 gdb::to_string.
3691
19b187a9
SM
36922020-06-29 Simon Marchi <simon.marchi@efficios.com>
3693
3694 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3695 * gdbarch.h: Re-generate.
3696
cd4c4c07
TT
36972020-06-28 Tom Tromey <tom@tromey.com>
3698
3699 * command.h (cmd_types): Remove.
3700 (cmd_type): Don't declare.
3701 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3702 typedef.
3703 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3704 * cli/cli-decode.c (cmd_type): Remove.
3705
05779d57
PA
37062020-06-27 Pedro Alves <palves@redhat.com>
3707
3708 * fork-child.c (prefork_hook): Adjust.
3709 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3710 Delete.
3711 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3712 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3713 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3714 Remove declarations.
3715 (struct inferior) <set_tty, tty>: New methods.
3716 (struct inferior) <terminal>: Rename to ...
3717 (struct inferior) <m_terminal>: ... this and make private.
3718 * main.c (captured_main_1): Adjust.
3719 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3720 (mi_cmd_inferior_tty_show): Adjust.
3721 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3722 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3723
1776e3e5
NA
37242020-06-26 Nick Alcock <nick.alcock@oracle.com>
3725
3726 * configure.ac: Add --enable-libctf: handle --disable-static
3727 properly.
3728 * acinclude.m4: sinclude ../config/enable.m4.
3729 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3730 (LIBCTF): Substitute in.
3731 (CTF_DEPS): New, likewise.
3732 (CLIBS): libctf needs symbols from libbfd: move earlier.
3733 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3734 flags.
3735 * ctfread.c: Surround in ENABLE_LIBCTF.
3736 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3737 * configure: Regenerate.
3738 * config.in: Likewise.
3739
58373b80
SM
37402020-06-25 Simon Marchi <simon.marchi@efficios.com>
3741
3742 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3743
277474ee
SM
37442020-06-25 Simon Marchi <simon.marchi@efficios.com>
3745
3746 * inferior.h (struct inferior) <terminal>: Change type to
3747 gdb::unique_xmalloc_ptr<char>.
3748 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3749 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3750 field, adjust to unique pointer.
3751 (get_inferior_io_terminal): Adjust to unique pointer.
3752
6d74da72
AB
37532020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3754
3755 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3756 registers, not just the known core set of registers.
3757
2e52d038
AB
37582020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3759
3760 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3761 fflags, frm, and fcsr registers.
3762 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3763 restore groups.
3764 (riscv_tdesc_unknown_reg): New function.
3765 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3766 tdesc_use_registers.
3767 * riscv-tdep.h (struct gdbarch_tdep): Add
3768 unknown_csrs_first_regnum, unknown_csrs_count,
3769 duplicate_fflags_regnum, duplicate_frm_regnum, and
3770 duplicate_fcsr_regnum fields.
3771
be64fd07
AB
37722020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3773
3774 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3775 callback, use the callback (when not null) to help number unknown
3776 registers.
3777 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3778 (tdesc_use_registers): Add extra parameter to declaration.
3779
3b9fce96
AB
37802020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3781
3782 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3783 in the file.
3784 (class riscv_pending_register_alias): Likewise.
3785 (riscv_register_feature::register_info): Change 'required_p' field
3786 to 'required', and change its type. Add 'check' member function.
3787 (riscv_register_feature::register_info::check): Define new member
3788 function.
3789 (riscv_xreg_feature): Change initialisation of 'required' field.
3790 (riscv_freg_feature): Likewise.
3791 (riscv_virtual_feature): Likewise.
3792 (riscv_csr_feature): Likewise.
3793 (riscv_check_tdesc_feature): Take extra parameter, the csr
3794 tdesc_feature, rewrite the function to use the new
3795 riscv_register_feature::register_info::check function.
3796 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3797
865bad26
AB
37982020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3799
3800 * features/Makefile: Remove all references to the deleted files
3801 below.
3802 * features/riscv/32bit-csr.c: Deleted.
3803 * features/riscv/32bit-csr.xml: Deleted.
3804 * features/riscv/64bit-csr.c: Deleted.
3805 * features/riscv/64bit-csr.xml: Deleted.
3806 * features/riscv/rebuild-csr-xml.sh: Deleted.
3807
ed69cbc8
AB
38082020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3809
3810 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3811 whitespace error for declaration of names member variable.
3812 (struct riscv_register_feature): Add new prefer_first_name member
3813 variable, and fix whitespace error in declaration of registers.
3814 (riscv_xreg_feature): Initialize prefer_first_name field.
3815 (riscv_freg_feature): Likewise.
3816 (riscv_virtual_feature): Likewise.
3817 (riscv_csr_feature): Likewise.
3818 (riscv_register_name): Expand on comments. Remove register name
3819 modifications for CSR and virtual registers.
3820
4445e8f5
AB
38212020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3822
3823 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3824 errors.
3825
767a879e
AB
38262020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3827
3828 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3829 riscv-opc.h.
3830 (class riscv_pending_register_alias): New class.
3831 (riscv_check_tdesc_feature): Take vector of pending aliases and
3832 populate it as appropriate.
3833 (riscv_setup_register_aliases): Delete.
3834 (riscv_gdbarch_init): Create vector of pending aliases and pass it
3835 to riscv_check_tdesc_feature in all cases. Use the vector to
3836 create the register aliases.
3837
bb6e55f3
RO
38382020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3839
3840 * sol2-tdep.c (sol2_static_transform_name): Remove.
3841 (sol2_init_abi): Don't register it.
3842 * gdbarch.sh (static_transform_name): Remove.
3843 * gdbarch.c, gdbarch.h: Regenerate.
3844
3845 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3846 gdbarch_static_transform_name.
3847 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3848 * stabsread.c (define_symbol) <'X'>: Remove.
3849 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
3850 handling.
3851 <'V'>: Likewise.
3852 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
3853 <'S'>: Remove call to gdbarch_static_transform_name.
3854
c6d36836
RO
38552020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3856
3857 * procfs.c (procfs_pre_trace): New function.
3858 (procfs_target::create_inferior): Pass it to fork_inferior.
3859
a7e6196b
RO
38602020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3861
3862 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
3863 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
3864 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
3865 sol2-tdep.o, sparc-sol2-tdep.o.
3866 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
3867 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
3868 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
3869 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
3870
d412e696
RO
38712020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3872
3873 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
3874 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
3875 Call sol2_init_abi.
3876 Remove calls to set_gdbarch_skip_solib_resolver,
3877 set_gdbarch_core_pid_to_str.
3878 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
3879 (i386_sol2_static_transform_name): Remove.
3880 (i386_sol2_init_abi): Call sol2_init_abi.
3881 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3882 set_gdbarch_static_transform_name,
3883 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3884 Use sol2_sigtramp_p.
3885 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
3886 (sol2_sigtramp_p): New function.
3887 (sol2_static_transform_name): New function.
3888 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3889 (sol2_init_abi): New function.
3890 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3891 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3892 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3893 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3894 (sparc_sol2_static_transform_name): Remove.
3895 (sparc32_sol2_init_abi): Call sol2_init_abi.
3896 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3897 set_gdbarch_static_transform_name,
3898 set_gdbarch_skip_solib_resolver,
3899 set_gdbarch_core_pid_to_str.
3900 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3901 (sparc_sol2_static_transform_name): Remove
3902 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3903 call sol2_sigtramp_p.
3904 (sparc64_sol2_init_abi): Call sol2_init_abi.
3905 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3906 set_gdbarch_static_transform_name,
3907 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3908
a8654e7d
PW
39092020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3910
3911 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3912 * exec.c (validate_exec_file): If from_tty, set both
3913 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3914 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3915 and from_tty, unconditionally ask a confirmation.
3916
caa7fd04
AB
39172020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3918
3919 * target-descriptions.c (tdesc_architecture_name): Protect against
3920 NULL pointer dereference.
3921 (maint_print_xml_tdesc_cmd): New function.
3922 (_initialize_target_descriptions): Register new 'maint print
3923 xml-tdesc' command and give it the filename completer.
3924 * NEWS: Mention new 'maint print xml-tdesc' command.
3925
fbf42f4e
AB
39262020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3927
3928 * target-descriptions.c (class tdesc_compatible_info): New class.
3929 (struct target_desc): Change type of compatible vector.
3930 (tdesc_compatible_p): Update for change in type of
3931 target_desc::compatible.
3932 (tdesc_compatible_info_list): New function.
3933 (tdesc_compatible_info_arch_name): New function.
3934 (tdesc_add_compatible): Update for change in type of
3935 target_desc::compatible.
3936 (print_c_tdesc::visit_pre): Likewise.
3937
20821f4e
AB
39382020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3939
3940 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3941 whitespace to underscore.
3942 (maint_print_c_tdesc_cmd): Use fake filename for target
3943 descriptions that came from the target.
3944 (_initialize_target_descriptions): Add filename command completion
3945 for 'maint print c-tdesc'.
3946
1fb5ee62
SM
39472020-06-23 Simon Marchi <simon.marchi@efficios.com>
3948
3949 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3950 lines.
3951
fc3ecb3e
SM
39522020-06-23 Simon Marchi <simon.marchi@efficios.com>
3953
3954 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3955 lines.
3956 (dwarf2_find_location_expression): Likewise.
3957 (call_site_parameter_matches): Likewise.
3958 (dwarf2_compile_expr_to_ax): Likewise.
3959 (disassemble_dwarf_expression): Likewise.
3960 (loclist_describe_location): Likewise.
3961
236ef034
PA
39622020-06-23 Pedro Alves <palves@redhat.com>
3963
3964 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3965 progspace-and-thread.h. Include scoped-mock-context.h instead.
3966 (register_to_value_test): Use scoped_mock_context.
3967 * regcache.c: Include "scoped-mock-context.h".
3968 (cooked_read_test): Don't error out if a target is already pushed.
3969 Use scoped_mock_context. Adjust.
3970 * scoped-mock-context.h: New file.
3971
39e7ecca
AB
39722020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3973
3974 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3975 initializer.
3976 (ada_language::is_string_type_p): New member function.
3977 * c-lang.c (c_language_data): Delete la_is_string_type_p
3978 initializer.
3979 (cplus_language_data): Likewise.
3980 (asm_language_data): Likewise.
3981 (minimal_language_data): Likewise.
3982 * d-lang.c (d_language_data): Likewise.
3983 * f-lang.c (f_is_string_type_p): Delete function, implementation
3984 moved to f_language::is_string_type_p.
3985 (f_language_data): Delete la_is_string_type_p initializer.
3986 (f_language::is_string_type_p): New member function,
3987 implementation from f_is_string_type_p.
3988 * go-lang.c (go_is_string_type_p): Delete function, implementation
3989 moved to go_language::is_string_type_p.
3990 (go_language_data): Delete la_is_string_type_p initializer.
3991 (go_language::is_string_type_p): New member function,
3992 implementation from go_is_string_type_p.
3993 * language.c (language_defn::is_string_type_p): Define new member
3994 function.
3995 (default_is_string_type_p): Make static, add comment copied from
3996 header file.
3997 (unknown_language_data): Delete la_is_string_type_p initializer.
3998 (unknown_language::is_string_type_p): New member function.
3999 (auto_language_data): Delete la_is_string_type_p initializer.
4000 (auto_language::is_string_type_p): New member function.
4001 * language.h (language_data): Delete la_is_string_type_p field.
4002 (language_defn::is_string_type_p): Declare new function.
4003 (default_is_string_type_p): Delete desclaration, move comment to
4004 definition.
4005 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
4006 moved to m2_language::is_string_type_p.
4007 (m2_language_data): Delete la_is_string_type_p initializer.
4008 (m2_language::is_string_type_p): New member function,
4009 implementation from m2_is_string_type_p.
4010 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
4011 initializer.
4012 * opencl-lang.c (opencl_language_data): Likewise.
4013 * p-lang.c (pascal_is_string_type_p): Delete function,
4014 implementation moved to pascal_language::is_string_type_p.
4015 (pascal_language_data): Delete la_is_string_type_p initializer.
4016 (pascal_language::is_string_type_p): New member function,
4017 implementation from pascal_is_string_type_p.
4018 * rust-lang.c (rust_is_string_type_p): Delete function,
4019 implementation moved to rust_language::is_string_type_p.
4020 (rust_language_data): Delete la_is_string_type_p initializer.
4021 (rust_language::is_string_type_p): New member function,
4022 implementation from rust_is_string_type_p.
4023 * valprint.c (val_print_scalar_or_string_type_p): Update call to
4024 is_string_type_p.
4025
4ffc13fb
AB
40262020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4027
4028 * ada-lang.c (ada_language_data): Delete la_print_typedef
4029 initializer.
4030 (ada_language::print_typedef): New member function.
4031 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
4032 (cplus_language_data): Likewise.
4033 (asm_language_data): Likewise.
4034 (minimal_language_data): Likewise.
4035 * d-lang.c (d_language_data): Likewise.
4036 * f-lang.c (f_language_data): Likewise.
4037 (f_language::print_typedef): New member function.
4038 * go-lang.c (go_language_data): Delete la_print_typedef
4039 initializer.
4040 * language.c (language_defn::print_typedef): Define member
4041 function.
4042 (unknown_language_data): Delete la_print_typedef initializer.
4043 (unknown_language::print_typedef): New member function.
4044 (auto_language_data): Delete la_print_typedef initializer.
4045 (auto_language::print_typedef): New member function.
4046 * language.h (language_data): Delete la_print_typedef field.
4047 (language_defn::print_typedef): Declare new member function.
4048 (LA_PRINT_TYPEDEF): Update call to print_typedef.
4049 (default_print_typedef): Delete declaration.
4050 * m2-lang.c (m2_language_data): Delete la_print_typedef
4051 initializer.
4052 (m2_language::print_typedef): New member function.
4053 * objc-lang.c (objc_language_data): Delete la_print_typedef
4054 initializer.
4055 * opencl-lang.c (opencl_language_data): Likewise.
4056 * p-lang.c (pascal_language_data): Likewise.
4057 (pascal_language::print_typedef): New member function.
4058 * rust-lang.c (rust_print_typedef): Delete function,
4059 implementation moved to rust_language::print_typedef.
4060 (rust_language): Delete la_print_typedef initializer.
4061 (rust_language::print_typedef): New member function,
4062 implementation from rust_print_typedef.
4063 * typeprint.c (default_print_typedef): Delete.
4064
d711ee67
AB
40652020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4066
4067 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
4068 (ada_language::printstr): New member function.
4069 * c-lang.c (c_language_data): Delete la_printstr initializer.
4070 (cplus_language_data): Likewise.
4071 (asm_language_data): Likewise.
4072 (minimal_language_data): Likewise.
4073 * d-lang.c (d_language_data): Likewise.
4074 * f-lang.c (f_printstr): Rename to f_language::printstr.
4075 (f_language_data): Delete la_printstr initializer.
4076 (f_language::printstr): New member function, implementation from
4077 f_printstr.
4078 * go-lang.c (go_language_data): Delete la_printstr initializer.
4079 * language.c (language_defn::printstr): Define new member
4080 function.
4081 (unk_lang_printstr): Delete.
4082 (unknown_language_data): Delete la_printstr initializer.
4083 (unknown_language::printstr): New member function.
4084 (auto_language_data): Delete la_printstr initializer.
4085 (auto_language::printstr): New member function.
4086 * language.h (language_data): Delete la_printstr field.
4087 (language_defn::printstr): Declare new member function.
4088 (LA_PRINT_STRING): Update call to printstr.
4089 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
4090 (m2_language_data): Delete la_printstr initializer.
4091 (m2_language::printstr): New member function, implementation from
4092 m2_printstr.
4093 * objc-lang.c (objc_language_data): Delete la_printstr
4094 initializer.
4095 * opencl-lang.c (opencl_language_data): Likewise.
4096 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
4097 (pascal_language_data): Delete la_printstr initializer.
4098 (pascal_language::printstr): New member function, implementation
4099 from pascal_printstr.
4100 * p-lang.h (pascal_printstr): Delete declaration.
4101 * rust-lang.c (rust_printstr): Update header comment.
4102 (rust_language_data): Delete la_printstr initializer.
4103 (rust_language::printstr): New member function.
4104
52b50f2c
AB
41052020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4106
4107 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
4108 (ada_language::printchar): New member function.
4109 * c-lang.c (c_language_data): Delete la_printchar initializer.
4110 (cplus_language_data): Likewise.
4111 (asm_language_data): Likewise.
4112 (minimal_language_data): Likewise.
4113 * d-lang.c (d_language_data): Likewise.
4114 * f-lang.c (f_printchar): Rename to f_language::printchar.
4115 (f_language_data): Delete la_printchar initializer.
4116 (f_language::printchar): New member function, implementation from
4117 f_printchar.
4118 * go-lang.c (go_language_data): Delete la_printchar initializer.
4119 * language.c (unk_lang_printchar): Delete.
4120 (language_defn::printchar): Define new member function.
4121 (unknown_language_data): Delete la_printchar initializer.
4122 (unknown_language::printchar): New member function.
4123 (auto_language_data): Delete la_printchar initializer.
4124 (auto_language::printchar): New member function.
4125 * language.h (language_data): Delete la_printchar field.
4126 (language_defn::printchar): Declare new member function.
4127 (LA_PRINT_CHAR): Update call to printchar.
4128 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
4129 (m2_language::printchar): New member function.
4130 * objc-lang.c (objc_language_data): Delete la_printchar
4131 initializer.
4132 * opencl-lang.c (opencl_language_data): Likewise.
4133 * p-lang.c (pascal_language_data): Delete la_printchar
4134 initializer.
4135 (pascal_language::printchar): New member function.
4136 * rust-lang.c (rust_printchar): Rename to
4137 rust_language::printchar.
4138 (rust_language_data): Delete la_printchar initializer.
4139 (rust_language::printchar): New member function, implementation
4140 from rust_printchar.
4141
ec8cec5b
AB
41422020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4143
4144 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
4145 (ada_language_data): Delete la_emitchar initializer.
4146 (ada_language::emitchar): New member function, implementation from
4147 emit_char.
4148 * c-lang.c (c_language_data): Delete la_emitchar initializer.
4149 (cplus_language_data): Likewise.
4150 (asm_language_data): Likewise.
4151 (minimal_language_data): Likewise.
4152 * d-lang.c (d_language_data): Likewise.
4153 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
4154 (f_language_data): Delete la_emitchar initializer.
4155 (f_language::emitchar): New member function, implementation from
4156 f_emit_char.
4157 * go-lang.c (go_language_data): Delete la_emitchar initializer.
4158 * language.c (unk_lang_emit_char): Delete.
4159 (language_defn::emitchar): New member function definition.
4160 (unknown_language_data): Delete la_emitchar initializer.
4161 (unknown_language::emitchar): New member function.
4162 (auto_language_data): Delete la_emitchar initializer.
4163 (auto_language::emitchar): New member function.
4164 * language.h (language_data): Delete la_emitchar field.
4165 (language_defn::emitchar): New member field declaration.
4166 (LA_EMIT_CHAR): Update call to emitchar.
4167 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
4168 (m2_language_data): Delete la_emitchar initializer.
4169 (m2_language::emitchar): New member function, implementation from
4170 m2_emit_char.
4171 * objc-lang.c (objc_language_data): Delete la_emitchar
4172 initializer.
4173 * opencl-lang.c (opencl_language_data): Likewise.
4174 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4175 (pascal_language_data): Delete la_emitchar initializer.
4176 (pascal_language::emitchar): New member function, implementation
4177 from pascal_emit_char.
4178 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4179 (rust_language_data): Delete la_emitchar initializer.
4180 (rust_language::emitchar): New member function, implementation
4181 from rust_emitchar.
4182
1bf9c363
AB
41832020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4184
4185 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4186 (ada_language_data): Delete la_post_parser initializer.
4187 (ada_language::post_parser): New member function.
4188 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4189 (cplus_language_data): Likewise.
4190 (asm_language_data): Likewise.
4191 (minimal_language_data): Likewise.
4192 * d-lang.c (d_language_data): Likewise.
4193 * f-lang.c (f_language_data): Likewise.
4194 * go-lang.c (go_language_data): Likewise.
4195 * language.c (unknown_language_data): Likewise.
4196 (auto_language_data): Likewise.
4197 * language.h (language_data): Delete la_post_parser field.
4198 (language_defn::post_parser): New member function.
4199 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4200 * objc-lang.c (objc_language_data): Likewise.
4201 * opencl-lang.c (opencl_language_data): Likewise.
4202 * p-lang.c (pascal_language_data): Likewise.
4203 * parse.c (parse_exp_in_context): Update call to post_parser.
4204 (null_post_parser): Delete definition.
4205 * parser-defs.h (null_post_parser): Delete declaration.
4206 * rust-lang.c (rust_language_data): Delete la_post_parser
4207 initializer.
4208
87afa652
AB
42092020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4210
4211 * ada-lang.c (parse): Rename to ada_language::parser.
4212 (ada_language_data): Delete la_parser initializer.
4213 (ada_language::parser): New member function, implementation from
4214 parse.
4215 * c-lang.c (c_language_data): Delete la_parser initializer.
4216 (cplus_language_data): Likewise.
4217 (asm_language_data): Likewise.
4218 (minimal_language_data): Likewise.
4219 * d-lang.c (d_language_data): Likewise.
4220 (d_language::parser): New member function.
4221 * f-lang.c (f_language_data): Delete la_parser initializer.
4222 (f_language::parser): New member function.
4223 * go-lang.c (go_language_data): Delete la_parser initializer.
4224 (go_language::parser): New member function.
4225 * language.c (unk_lang_parser): Delete.
4226 (language_defn::parser): Define new member function.
4227 (unknown_language_data): Delete la_parser initializer.
4228 (unknown_language::parser): New member function.
4229 (auto_language_data): Delete la_parser initializer.
4230 (auto_language::parser): New member function.
4231 * language.h (language_data): Delete la_parser field.
4232 (language_defn::parser): Declare new member function.
4233 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4234 (m2_language::parser): New member function.
4235 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4236 * opencl-lang.c (opencl_language_data): Likewise.
4237 * p-lang.c (pascal_language_data): Likewise.
4238 (pascal_language::parser): New member function.
4239 * parse.c (parse_exp_in_context): Update call to parser.
4240 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4241 (rust_language::parser): New member function.
4242
37825800
AB
42432020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4244
4245 * top.c (print_gdb_configuration): Print --with-python-libdir
4246 configuration value.
4247
5b860c93
PW
42482020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4249
4250 * NEWS: Mention change to the alias command.
4251
cf00cd6f
PW
42522020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4253
4254 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4255 (alias_command_completer)
4256 (make_alias_options_def_group): New functions.
4257 (alias_opts, alias_option_defs): New struct and array.
4258 (alias_usage_error): Update usage.
4259 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4260 Use option framework.
4261 (_initialize_cli_cmds): Update alias command help.
4262 Update aliases command help.
4263 (show_user):
4264 Add NULL for new default_args lookup_cmd argument.
4265 (valid_command_p): Rename to validate_aliased_command.
4266 Add NULL for new default_args lookup_cmd argument. Verify that the
4267 aliased_command has no default args.
4268 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4269 (lookup_cmd_1, lookup_cmd): New argument default_args.
4270 (add_alias_cmd):
4271 Add NULL for new default_args lookup_cmd argument.
4272 (print_help_for_command): Show default args under the layout
4273 alias some_alias = some_aliased_cmd some_alias_default_arg.
4274 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4275 xfree default_args in destructor.
4276 * cli/cli-script.c (process_next_line, do_define_command):
4277 Add NULL for new default_args lookup_cmd argument.
4278 * command.h: Declare new default_args argument in lookup_cmd
4279 and lookup_cmd_1.
4280 * completer.c (complete_line_internal_1):
4281 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4282 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4283 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4284 Likewise.
4285 * infcmd.c (_initialize_infcmd): Likewise.
4286 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4287 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4288 * python/py-param.c (add_setshow_generic): Likewise.
4289 * remote.c (_initialize_remote): Likewise.
4290 * top.c (execute_command): Prepend default_args if command has some.
4291 (set_verbose):
4292 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4293 * tracepoint.c (validate_actionline, encode_actions_1):
4294 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4295
bd920864
TBA
42962020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4297
4298 * jit.c (jit_read_descriptor): Use bool as the return type.
4299 (jit_breakpoint_re_set_internal): Use bool as the return type.
4300 Invert the return value logic; return true if the jit breakpoint
4301 has been successfully initialized.
4302 (jit_inferior_init): Update the call to
4303 jit_breakpoint_re_set_internal.
4304
f8098322
PA
43052020-06-22 Pedro Alves <palves@redhat.com>
4306
4307 PR gdb/25939
4308 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4309 Use the current inferior instead. Don't return
4310 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4311 wait again.
4312 * sol-thread.c (sol_thread_target::wait): Don't reference
4313 inferior_ptid.
4314 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4315 (sol_update_thread_list_callback): Use the current inferior's pid
4316 instead of inferior_ptid.
4317
196535a6
RO
43182020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4319
4320 * procfs.c: Cleanup many comments.
4321
4322 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4323 (AFTER_WATCHFLAG): Replace by value.
4324
4325 (MAIN_PROC_NAME_FORMAT): Inline ...
4326 (create_procinfo): ... here.
4327
4328 (procfs_debug_inferior): Remove SYS_exec handling.
4329 (syscall_is_exec): Likewise.
4330 (procfs_set_exec_trap): Likewise.
4331
4332 (syscall_is_lwp_exit): Inline in callers.
4333 (syscall_is_exit): Likewise.
4334 (syscall_is_exec): Likewise.
4335 (syscall_is_lwp_create): Likewise.
4336
4337 (invalidate_cache): Remove #if 0 code.
4338
4339 (make_signal_thread_runnable): Remove.
4340 (procfs_target::resume): Remove #if 0 code.
4341
cf6f3e86
RO
43422020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4343
4344 PR gdb/25939
4345 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4346 call ...
4347 (procfs_target::create_inferior): ... here.
4348
48e9cc84
PW
43492020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4350
4351 * exec.c (validate_exec_file): Ensure the build-id is up to
4352 date by calling reopen_exec_file (that checks file timestamp
4353 to decide to re-read the file).
4354
3922b302
PA
43552020-06-18 Pedro Alves <palves@redhat.com>
4356
4357 PR gdb/25412
4358 * gdbthread.h (delete_thread, delete_thread_silent)
4359 (find_thread_ptid): Update comments.
4360 * thread.c (current_thread_): New global.
4361 (is_current_thread): Move higher, and reimplement.
4362 (inferior_thread): Reimplement.
4363 (set_thread_exited): Use bool. Add assertions.
4364 (add_thread_silent): Simplify thread-reuse handling by always
4365 calling delete_thread.
4366 (delete_thread): Remove intro comment.
4367 (find_thread_ptid): Skip exited threads.
4368 (switch_to_thread_no_regs): Write to current_thread_.
4369 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4370 INFERIOR_PTID. Clear current_thread_.
4371
6dbdab44
PA
43722020-06-18 Pedro Alves <palves@redhat.com>
4373
4374 * aix-thread.c (pd_update): Use switch_to_thread.
4375
2da4b788
PA
43762020-06-18 Pedro Alves <palves@redhat.com>
4377
4378 * ravenscar-thread.c (ravenscar_thread_target): Update.
4379 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4380 (ravenscar_thread_target::add_active_thread): ... this. Don't
4381 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4382 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4383
50838d1b
PA
43842020-06-18 Pedro Alves <palves@redhat.com>
4385
4386 * nat/windows-nat.c (current_windows_thread): Remove.
4387 * nat/windows-nat.h (current_windows_thread): Remove.
4388 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4389 Adjust.
4390 (display_selectors): Adjust to fetch the current
4391 windows_thread_info based on inferior_ptid.
4392 (fake_create_process): No longer write to current_windows_thread.
4393 (windows_nat_target::get_windows_debug_event):
4394 Don't set inferior_ptid or current_windows_thread.
4395 (windows_nat_target::wait): Adjust to not rely on
4396 current_windows_thread.
4397 (do_initial_windows_stuff): Now a method of windows_nat_target.
4398 Switch to the last_ptid thread.
4399 (windows_nat_target::attach): Adjust.
4400 (windows_nat_target::detach): Use switch_to_no_thread instead of
4401 writing to inferior_ptid directly.
4402 (windows_nat_target::create_inferior): Adjust.
4403
31ce04e9
PA
44042020-06-18 Pedro Alves <palves@redhat.com>
4405
4406 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4407
1ee1a363
PA
44082020-06-18 Pedro Alves <palves@redhat.com>
4409
4410 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4411 after creating it, instead of writing to inferior_ptid. Don't
4412 write to inferior_ptid.
4413
6d350754
PA
44142020-06-18 Pedro Alves <palves@redhat.com>
4415
4416 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4417
5d971d48
PA
44182020-06-18 Pedro Alves <palves@redhat.com>
4419
4420 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4421 it, instead of writing to inferior_ptid.
4422
86e57d1b
PA
44232020-06-18 Pedro Alves <palves@redhat.com>
4424
4425 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4426 to inferior_ptid.
4427
f2e1c129
PA
44282020-06-18 Pedro Alves <palves@redhat.com>
4429
4430 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4431 instead of writing to inferior_ptid directly.
4432
60db1b85
PA
44332020-06-18 Pedro Alves <palves@redhat.com>
4434
4435 * corelow.c (core_target::close): Use switch_to_no_thread instead
4436 of writing to inferior_ptid directly.
4437 (add_to_thread_list, core_target_open): Use switch_to_thread
4438 instead of writing to inferior_ptid directly.
4439
fe7d6a8d
PA
44402020-06-18 Pedro Alves <palves@redhat.com>
4441
4442 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4443 inferior_ptid.
4444 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4445 inferior_ptid.
4446 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4447 inferior_ptid directly.
4448 (darwin_nat_target::init_thread_list): Switch to thread, instead
4449 of writing to inferior_ptid.
4450 (darwin_nat_target::attach): Don't write to inferior_ptid.
4451 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4452
975f8708
PA
44532020-06-18 Pedro Alves <palves@redhat.com>
4454
4455 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4456 thread.
4457 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4458 Instead use switch_to_thread.
4459 (gnu_nat_target::detach): Use switch_to_no_thread
4460 instead of writing to inferior_ptid directly. Used passed-in
4461 inferior instead of looking up the inferior by pid.
4462
1a204730
PA
44632020-06-18 Pedro Alves <palves@redhat.com>
4464
4465 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4466 inferior_ptid.
4467
ebe84f23
PA
44682020-06-18 Pedro Alves <palves@redhat.com>
4469
4470 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4471 inferior_ptid.
4472 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4473 thread.
4474 (nto_procfs_target::detach): Avoid referencing
4475 inferior_ptid. Use switch_to_no_thread instead of writing to
4476 inferior_ptid directly.
4477 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4478 instead of writing to inferior_ptid directly.
4479 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4480 to thread.
4481
191f02e5
PA
44822020-06-18 Pedro Alves <palves@redhat.com>
4483
4484 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4485 after creating it, instead of writing to inferior_ptid.
4486 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4487 to inferior_ptid directly.
4488 (gdbsim_target::wait): Don't write to inferior_ptid.
4489
0ac55310
PA
44902020-06-18 Pedro Alves <palves@redhat.com>
4491
4492 * remote.c (remote_target::remote_notice_new_inferior): Use
4493 switch_to_thread instead of writing to inferior_ptid directly.
4494 (remote_target::add_current_inferior_and_thread): Use
4495 switch_to_no_thread instead of writing to inferior_ptid directly.
4496 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4497 and switch_to_thread instead of using set_current_inferior or
4498 writing to inferior_ptid directly.
4499
5233f39b
PA
45002020-06-18 Pedro Alves <palves@redhat.com>
4501
4502 * tracectf.c (ctf_target_open): Switch to added thread instead of
4503 writing to inferior_ptid directly.
4504 (ctf_target::close): Use switch_to_no_thread instead of writing to
4505 inferior_ptid directly.
4506
087e161b
PA
45072020-06-18 Pedro Alves <palves@redhat.com>
4508
4509 * tracefile-tfile.c (tfile_target_open): Don't write to
4510 inferior_ptid directly, instead switch to added thread.
4511 (tfile_target::close): Use switch_to_no_thread instead of writing
4512 to inferior_ptid directly.
4513
7fb43e53
PA
45142020-06-18 Pedro Alves <palves@redhat.com>
4515
4516 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4517 (procfs_target::detach): Use switch_to_no_thread
4518 instead of writing to inferior_ptid directly.
4519 (do_attach): Change return type to void. Switch to the added
4520 thread.
4521 (procfs_target::create_inferior): Switch to the added thread.
4522 (procfs_do_thread_registers): Don't write to inferior_ptid.
4523
18493a00
PA
45242020-06-18 Pedro Alves <palves@redhat.com>
4525
4526 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4527 of writing to inferior_ptid.
4528 (scoped_restore_exited_inferior): Delete.
4529 (handle_vfork_child_exec_or_exit): Simplify using
4530 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4531 instead of writing to inferior_ptid.
4532 (THREAD_STOPPED_BY): Delete.
4533 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4534 (thread_stopped_by_hw_breakpoint): Delete.
4535 (save_waitstatus): Use
4536 scoped_restore_current_thread+switch_to_thread, and call
4537 target_stopped_by_watchpoint instead of
4538 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4539 instead of thread_stopped_by_sw_breakpoint, and
4540 target_stopped_by_hw_breakpoint instead of
4541 thread_stopped_by_hw_breakpoint.
4542 (handle_inferior_event)
4543 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4544 inferior_ptid directly, nor
4545 set_current_inferior/set_current_program_space. Use
4546 switch_to_thread / switch_to_inferior_no_thread instead.
4547
a0776b13
PA
45482020-06-18 Pedro Alves <palves@redhat.com>
4549
4550 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4551 instead of writing to inferior_ptid.
4552
6155c136
PA
45532020-06-18 Pedro Alves <palves@redhat.com>
4554
4555 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4556 added thread.
4557 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4558 to the added thread.
4559 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4560 instead of writing to inferior_ptid.
4561
c5316fc6
PA
45622020-06-18 Pedro Alves <palves@redhat.com>
4563
4564 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4565 (register_to_value_test): Mock a program_space too. Heap-allocate
4566 the address space. Don't write to inferior_ptid. Use
4567 switch_to_thread instead.
4568
8df01799
PA
45692020-06-18 Pedro Alves <palves@redhat.com>
4570
4571 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4572 Delete.
4573 (find_signalled_thread()): New, factored out from
4574 linux_make_corefile_notes and adjusted to handle exited threads.
4575 (linux_make_corefile_notes): Adjust to use the new
4576 find_signalled_thread.
4577
41792d68
PA
45782020-06-18 Pedro Alves <palves@redhat.com>
4579
4580 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4581 of saving/restoring inferior_ptid.
4582
612f258a
TT
45832020-06-17 Tom Tromey <tom@tromey.com>
4584
4585 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4586 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4587 declare.
4588 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4589
efb763a5
SM
45902020-06-15 Simon Marchi <simon.marchi@efficios.com>
4591
4592 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4593 of partial symtabs.
4594
2951f6c0
SM
45952020-06-17 Simon Marchi <simon.marchi@efficios.com>
4596
4597 * regformats/reg-arm.dat: Remove.
4598 * regformats/reg-bfin.dat: Remove.
4599 * regformats/reg-cris.dat: Remove.
4600 * regformats/reg-crisv32.dat: Remove.
4601 * regformats/reg-m32r.dat: Remove.
4602 * regformats/reg-tilegx.dat: Remove.
4603 * regformats/reg-tilegx32.dat: Remove.
4604
7d458ea5
SM
46052020-06-17 Simon Marchi <simon.marchi@efficios.com>
4606
4607 * features/Makefile (WHICH): Remove arm files.
4608 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4609 * regformats/arm/arm-with-neon.dat: Remove.
4610 * regformats/arm/arm-with-vfpv2.dat: Remove.
4611 * regformats/arm/arm-with-vfpv3.dat: Remove.
4612
3af96c0d
SM
46132020-06-17 Simon Marchi <simon.marchi@efficios.com>
4614
4615 * features/Makefile (XMLTOC): Remove rx.xml.
4616
b25e22fd
PA
46172020-06-17 Pedro Alves <palves@redhat.com>
4618
4619 * gdbthread.h (thread_control_state) <trap_expected> Update
4620 comments.
4621
a78a19b1
AB
46222020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4623
4624 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4625 ada_language::lookup_symbol_nonlocal.
4626 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4627 (ada_language::lookup_symbol_nonlocal): New member function,
4628 implementation from ada_lookup_symbol_nonlocal.
4629 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4630 initializer.
4631 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4632 initializer.
4633 (cplus_language::lookup_symbol_nonlocal): New member function.
4634 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4635 (minimal_language_data) Likewise.
4636 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4637 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4638 initializer.
4639 (d_language::lookup_symbol_nonlocal): New member function.
4640 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4641 initializer.
4642 (f_language::lookup_symbol_nonlocal): New member function.
4643 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4644 initializer.
4645 * language.c (unknown_language_data): Likewise.
4646 (auto_language_data): Likewise.
4647 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4648 field.
4649 (language_defn::lookup_symbol_nonlocal): New member function.
4650 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4651 initializer.
4652 * objc-lang.c (objc_language_data): Likewise.
4653 * opencl-lang.c (opencl_language_data): Likewise.
4654 * p-lang.c (pascal_language_data): Likewise.
4655 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4656 rust_language::lookup_symbol_nonlocal.
4657 (rust_language_data): Delete la_lookup_symbol_nonlocal
4658 initializer.
4659 (rust_language::lookup_symbol_nonlocal): New member function,
4660 implementation from rust_lookup_symbol_nonlocal.
4661 * symtab.c (lookup_symbol_aux): Update call to
4662 lookup_symbol_nonlocal.
4663 (basic_lookup_symbol_nonlocal): Rename to...
4664 (language_defn::lookup_symbol_nonlocal): ...this, and update
4665 header comment. Remove language_defn parameter, and replace with
4666 uses of `this'.
4667 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4668
ebe2334e
AB
46692020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4670
4671 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4672 initializer.
4673 (ada_language::value_print_inner): New member function.
4674 * c-lang.c (c_language_data): Delete la_value_print_inner
4675 initializer.
4676 (cplus_language_data): Likewise.
4677 (asm_language_data): Likewise.
4678 (minimal_language_data): Likewise.
4679 * d-lang.c (d_language_data): Likewise.
4680 (d_language::value_print_inner): New member function.
4681 * f-lang.c (f_language_data): Delete la_value_print_inner
4682 initializer.
4683 (f_language::value_print_inner): New member function.
4684 * f-lang.h (f_value_print_innner): Rename to...
4685 (f_value_print_inner): ...this (note spelling of 'inner').
4686 * f-valprint.c (f_value_print_innner): Rename to...
4687 (f_value_print_inner): ...this (note spelling of 'inner').
4688 * go-lang.c (go_language_data): Delete la_value_print_inner
4689 initializer.
4690 (go_language::value_print_inner): New member function.
4691 * language.c (language_defn::value_print_inner): Define new member
4692 function.
4693 (unk_lang_value_print_inner): Delete.
4694 (unknown_language_data): Delete la_value_print_inner initializer.
4695 (unknown_language::value_print_inner): New member function.
4696 (auto_language_data): Delete la_value_print_inner initializer.
4697 (auto_language::value_print_inner): New member function.
4698 * language.h (language_data): Delete la_value_print_inner field.
4699 (language_defn::value_print_inner): Delcare new member function.
4700 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4701 initializer.
4702 (m2_language::value_print_inner): New member function.
4703 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4704 initializer.
4705 * opencl-lang.c (opencl_language_data): Likewise.
4706 * p-lang.c (pascal_language_data): Likewise.
4707 (pascal_language::value_print_inner): New member function.
4708 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4709 initializer.
4710 (rust_language::value_print_inner): New member function.
4711 * valprint.c (do_val_print): Update call to value_print_inner.
4712
a1d1fa3e
AB
47132020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4714
4715 * ada-lang.c (ada_language_data): Delete la_value_print
4716 initializer.
4717 (ada_language::value_print): New member function.
4718 * c-lang.c (c_language_data): Delete la_value_print initializer.
4719 (cplus_language_data): Likewise.
4720 (asm_language_data): Likewise.
4721 (minimal_language_data): Likewise.
4722 * d-lang.c (d_language_data): Likewise.
4723 * f-lang.c (f_language_data): Likewise.
4724 * go-lang.c (go_language_data): Likewise.
4725 * language.c (unk_lang_value_print): Delete.
4726 (language_defn::value_print): Define new member function.
4727 (unknown_language_data): Delete la_value_print initializer.
4728 (unknown_language::value_print): New member function.
4729 (auto_language_data): Delete la_value_print initializer.
4730 (auto_language::value_print): New member function.
4731 * language.h (language_data): Delete la_value_print field.
4732 (language_defn::value_print): Declare new member function.
4733 (LA_VALUE_PRINT): Update call to value_print.
4734 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4735 * objc-lang.c (objc_language_data): Likewise.
4736 * opencl-lang.c (opencl_language_data): Likewise.
4737 * p-lang.c (pascal_language_data): Likewise.
4738 (pascal_language::value_print): New member function.
4739 * rust-lang.c (rust_language_data): Delete la_value_print
4740 initializer.
4741
f16a9f57
AB
47422020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4743
4744 * ada-lang.c (ada_watch_location_expression): Rename to
4745 ada_language::watch_location_expression.
4746 (ada_language_data): Delete la_watch_location_expression
4747 initializer.
4748 (ada_language::watch_location_expression): New member function,
4749 implementation from ada_watch_location_expression.
4750 * breakpoint.c (watch_command_1): Update call to
4751 watch_location_expression.
4752 * c-lang.c (c_watch_location_expression): Rename to
4753 language_defn::watch_location_expression.
4754 (c_language_data): Delete la_watch_location_expression
4755 initializer.
4756 (cplus_language_data): Likewise.
4757 (asm_language_data): Likewise.
4758 (minimal_language_data): Likewise.
4759 * c-lang.h (c_watch_location_expression): Delete declaration.
4760 * d-lang.c (d_language_data): Delete la_watch_location_expression
4761 initializer.
4762 * f-lang.c (f_language_data): Likewise.
4763 * go-lang.c (go_language_data): Likewise.
4764 * language.c (language_defn::watch_location_expression): Member
4765 function implementation from c_watch_location_expression.
4766 (unknown_language_data): Delete la_watch_location_expression
4767 initializer.
4768 (auto_language_data): Likewise.
4769 * language.h (language_data): Delete la_watch_location_expression
4770 field.
4771 (language_defn::watch_location_expression): Declare new member
4772 function.
4773 * m2-lang.c (m2_language_data): Delete
4774 la_watch_location_expression initializer.
4775 * objc-lang.c (objc_language_data): Likewise.
4776 * opencl-lang.c (opencl_language_data): Likewise.
4777 * p-lang.c (pascal_language_data): Likewise.
4778 * rust-lang.c (rust_watch_location_expression): Rename to
4779 rust_language::watch_location_expression.
4780 (rust_language_data): Delete la_watch_location_expression
4781 initializer.
4782 (rust_language::watch_location_expression): New member function,
4783 implementation from rust_watch_location_expression.
4784
7e56227d
AB
47852020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4786
4787 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4788 ada_language::collect_symbol_completion_matches.
4789 (ada_language_data): Delete la_collect_symbol_completion_matches
4790 initializer.
4791 (ada_language::collect_symbol_completion_matches): New member
4792 function, implementation from
4793 ada_collect_symbol_completion_matches.
4794 * c-lang.c (c_language_data): Delete
4795 la_collect_symbol_completion_matches initializer.
4796 (cplus_language_data): Likewise.
4797 (asm_language_data): Likewise.
4798 (minimal_language_data): Likewise.
4799 * d-lang.c (d_language_data): Likewise.
4800 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4801 f_language::collect_symbol_completion_matches.
4802 (f_language_data): Delete la_collect_symbol_completion_matches
4803 initializer.
4804 (f_language::collect_symbol_completion_matches) New member
4805 function, implementation from f_collect_symbol_completion_matches.
4806 * go-lang.c (go_language_data): Delete
4807 la_collect_symbol_completion_matches initializer.
4808 * language.c (unknown_language_data): Likewise.
4809 (auto_language_data): Likewise.
4810 * language.h (language_data): Delete
4811 la_collect_symbol_completion_matches field.
4812 (language_defn::collect_symbol_completion_matches): New member
4813 function.
4814 * m2-lang.c (m2_language_data): Delete
4815 la_collect_symbol_completion_matches initializer.
4816 * objc-lang.c (objc_language_data): Likewise.
4817 * opencl-lang.c (opencl_language_data): Likewise.
4818 * p-lang.c (pascal_language_data): Likewise.
4819 * rust-lang.c (rust_language_data): Likewise.
4820 * symtab.c (default_collect_symbol_completion_matches): Delete.
4821 (collect_symbol_completion_matches): Update call to
4822 collect_symbol_completion_matches.
4823 (collect_symbol_completion_matches_type): Likewise.
4824 * symtab.h (default_collect_symbol_completion_matches): Delete
4825 declaration.
4826
53fc67f8
AB
48272020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4828
4829 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4830 (ada_language_data): Delete la_word_break_characters initializer.
4831 (ada_language::word_break_characters): New member function.
4832 * c-lang.c (c_language_data): Delete la_word_break_characters
4833 initializer.
4834 (cplus_language_data): Likewise.
4835 (asm_language_data): Likewise.
4836 (minimal_language_data): Likewise.
4837 * completer.c: Update global comment.
4838 (advance_to_expression_complete_word_point): Update call to
4839 word_break_characters.
4840 (complete_files_symbols): Likewise.
4841 (complete_line_internal_1): Likewise.
4842 (default_completer_handle_brkchars): Likewise.
4843 (skip_quoted_chars): Likewise.
4844 * d-lang.c (d_language_data): Delete la_word_break_characters
4845 initializer.
4846 * f-lang.c (f_word_break_characters): Delete.
4847 (f_language_data): Delete la_word_break_characters initializer.
4848 (f_language::word_break_characters): New member function.
4849 * go-lang.c (go_language_data): Delete la_word_break_characters
4850 initializer.
4851 * language.c (unknown_language_data): Likewise.
4852 (auto_language_data): Likewise.
4853 * language.h (default_word_break_characters): Move declaration to
4854 earlier in the file.
4855 (language_data): Delete la_word_break_characters field.
4856 (language_defn::word_break_characters): New member function.
4857 * m2-lang.c (m2_language_data): Delete la_word_break_characters
4858 initializer.
4859 * objc-lang.c (objc_language_data): Likewise.
4860 * opencl-lang.c (opencl_language_data): Likewise.
4861 * p-lang.c (pascal_language_data): Likewise.
4862 * rust-lang.c (rust_language_data): Likewise.
4863
c9debfb9
AB
48642020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4865
4866 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
4867 (ada_language_data): Delete la_get_symbol_name_matcher
4868 initializer.
4869 (language_defn::get_symbol_name_matcher_inner): New member
4870 function.
4871 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
4872 initializer.
4873 (cplus_language_data): Likewise.
4874 (cplus_language::get_symbol_name_matcher_inner): New member
4875 function.
4876 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
4877 (minimal_language_data): Likewise.
4878 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
4879 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
4880 initializer.
4881 * dictionary.c (iter_match_first_hashed): Update call to
4882 get_symbol_name_matcher.
4883 (iter_match_next_hashed): Likewise.
4884 (iter_match_next_linear): Likewise.
4885 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
4886 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
4887 initializer.
4888 (f_language::get_symbol_name_matcher_inner): New member function.
4889 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4890 initializer.
4891 * language.c (default_symbol_name_matcher): Update header comment,
4892 make static.
4893 (language_defn::get_symbol_name_matcher): New definition.
4894 (language_defn::get_symbol_name_matcher_inner): Likewise.
4895 (get_symbol_name_matcher): Delete.
4896 (unknown_language_data): Delete la_get_symbol_name_matcher
4897 initializer.
4898 (auto_language_data): Likewise.
4899 * language.h (language_data): Delete la_get_symbol_name_matcher
4900 field.
4901 (language_defn::get_symbol_name_matcher): New member function.
4902 (language_defn::get_symbol_name_matcher_inner): Likewise.
4903 (default_symbol_name_matcher): Delete declaration.
4904 * linespec.c (find_methods): Update call to
4905 get_symbol_name_matcher.
4906 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4907 initializer.
4908 * minsyms.c (lookup_minimal_symbol): Update call to
4909 get_symbol_name_matcher.
4910 (iterate_over_minimal_symbols): Likewise.
4911 * objc-lang.c (objc_language_data): Delete
4912 la_get_symbol_name_matcher initializer.
4913 * opencl-lang.c (opencl_language_data): Likewise.
4914 * p-lang.c (pascal_language_data): Likewise.
4915 * psymtab.c (psymbol_name_matches): Update call to
4916 get_symbol_name_matcher.
4917 * rust-lang.c (rust_language_data): Delete
4918 la_get_symbol_name_matcher initializer.
4919 * symtab.c (symbol_matches_search_name): Update call to
4920 get_symbol_name_matcher.
4921 (compare_symbol_name): Likewise.
4922
9a49ad8c
AB
49232020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4924
4925 * ada-lang.c (ada_language_data): Delete la_compute_program
4926 initializer.
4927 * c-lang.c (c_language_data): Likewise.
4928 (c_language::compute_program): New member function.
4929 (cplus_language_data): Delete la_compute_program initializer.
4930 (cplus_language::compute_program): New member function.
4931 (asm_language_data): Delete la_compute_program initializer.
4932 (minimal_language_data): Likewise.
4933 * c-lang.h (c_compute_program): Update comment.
4934 (cplus_compute_program): Likewise.
4935 * compile/compile-c-support.c (c_compute_program): Likewise.
4936 (cplus_compute_program): Likewise.
4937 * compile/compile.c (compile_to_object): Update call to
4938 la_compute_program.
4939 * d-lang.c (d_language_data): Delete la_compute_program
4940 initializer.
4941 * f-lang.c (f_language_data): Likewise.
4942 * go-lang.c (go_language_data): Likewise.
4943 * language.c (unknown_language_data): Likewise.
4944 (auto_language_data): Likewise.
4945 * language.h (language_data): Delete la_compute_program field.
4946 (language_defn::compute_program): New member function.
4947 * m2-lang.c (m2_language_data): Delete la_compute_program
4948 initializer.
4949 * objc-lang.c (objc_language_data): Likewise.
4950 * opencl-lang.c (opencl_language_data): Likewise.
4951 * p-lang.c (pascal_language_data): Likewise.
4952 * rust-lang.c (rust_language_data): Likewise.
4953
eff93b4d
AB
49542020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4955
4956 * ada-lang.c (ada_language_data) Delete
4957 la_class_name_from_physname initializer.
4958 * c-lang.c (c_language_data): Likewise.
4959 (cplus_language_data): Likewise.
4960 (cplus_language::class_name_from_physname): New member function.
4961 (asm_language_data): Delete la_class_name_from_physname
4962 initializer.
4963 (minimal_language_data): Likewise.
4964 * d-lang.c (d_language_data): Likewise.
4965 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4966 method on language_defn class.
4967 (guess_full_die_structure_name): Likewise.
4968 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4969 initializer.
4970 * go-lang.c (go_language_data): Likewise.
4971 * language.c (language_class_name_from_physname): Delete.
4972 (unk_lang_class_name): Delete.
4973 (unknown_language_data): Delete la_class_name_from_physname
4974 initializer.
4975 (auto_language_data): Likewise.
4976 * language.h (language_data): Delete la_class_name_from_physname
4977 field.
4978 (language_defn::class_name_from_physname): New function.
4979 (language_class_name_from_physname): Delete declaration.
4980 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4981 initializer.
4982 * objc-lang.c (objc_language_data): Likewise.
4983 * opencl-lang.c (opencl_language_data): Likewise.
4984 * p-lang.c (pascal_language_data): Likewise.
4985 * rust-lang.c (rust_language_data): Likewise.
4986
de543742
TT
49872020-06-16 Tom Tromey <tom@tromey.com>
4988
4989 * tui/tui-data.h (STATUS_NAME): New macro.
4990 * tui/tui-layout.c (tui_remove_some_windows)
4991 (initialize_known_windows, tui_register_window)
4992 (tui_layout_split::remove_windows, initialize_layouts)
4993 (tui_new_layout_command): Don't use hard-coded window names.
4994
a350efd4
TT
49952020-06-16 Tom Tromey <tom@tromey.com>
4996
4997 PR tui/25348:
4998 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4999 tui_initialize_readline. Only run once. Call rl_initialize.
5000 * tui/tui.h (tui_ensure_readline_initialized): Rename from
5001 tui_initialize_readline.
5002 * tui/tui-io.c (tui_setup_io): Call
5003 tui_ensure_readline_initialized.
5004 * tui/tui-interp.c (tui_interp::init): Update.
5005
39ec0490
TT
50062020-06-16 Tom Tromey <tom@tromey.com>
5007
5008 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
5009 Also preserve the status window.
5010
d2d1ea20
TT
50112020-06-16 Tom Tromey <tom@tromey.com>
5012
5013 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
5014 where m_window==nullptr.
5015
66920317
TT
50162020-06-15 Tom Tromey <tromey@adacore.com>
5017
5018 * windows-nat.c (windows_nat::handle_output_debug_string):
5019 Update.
5020 (windows_nat::handle_ms_vc_exception): Update.
5021 * target.h (target_read_string): Change API.
5022 * target.c (target_read_string): Change API.
5023 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
5024 Update.
5025 * solib-frv.c (frv_current_sos): Update.
5026 * solib-dsbt.c (dsbt_current_sos): Update.
5027 * solib-darwin.c (darwin_current_sos): Update.
5028 * linux-thread-db.c (inferior_has_bug): Update.
5029 * expprint.c (print_subexp_standard): Update.
5030 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
5031 (ada_exception_message_1): Update.
5032
a5d871dd
TT
50332020-06-15 Tom Tromey <tromey@adacore.com>
5034
5035 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
5036
670e35fa
TT
50372020-06-15 Tom Tromey <tromey@adacore.com>
5038
5039 * valprint.c (read_string): Update comment.
5040 * target.c (MIN): Remove.
5041 (target_read_string): Rewrite.
5042
f5272a3b
TT
50432020-06-15 Tom Tromey <tromey@adacore.com>
5044
5045 * corefile.c (read_memory_string): Remove.
5046 * ada-valprint.c (ada_value_print_ptr): Update.
5047 * ada-lang.h (ada_tag_name): Change return type.
5048 * ada-lang.c (type_from_tag): Update.
5049 (ada_tag_name_from_tsd): Change return type. Use
5050 target_read_string.
5051 (ada_tag_name): Likewise.
5052 * gdbcore.h (read_memory_string): Don't declare.
5053
2c074f49
HD
50542020-06-14 Hannes Domani <ssbssa@yahoo.de>
5055
5056 * symtab.c (rbreak_command): Ignore Windows drive colon.
5057
6a17d503
SM
50582020-06-12 Simon Marchi <simon.marchi@efficios.com>
5059
5060 * NEWS: Mention removed GDBserver host support.
5061
453c733f
NC
50622020-06-12 Nelson Chu <nelson.chu@sifive.com>
5063
5064 * features/riscv/rebuild-csr-xml.sh: Updated.
5065
2b4e6a3f
TT
50662020-06-11 Tom Tromey <tom@tromey.com>
5067
5068 PR gdb/18318:
5069 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
5070
4412332f
JG
50712020-06-09 Jonny Grant <jg@jguk.org>
50722020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
5073
5074 * main.c (captured_main_1): Don't print new line after help.
5075 (print_gdb_help): add mailing list and IRC channel information
5076 to --help. Add new lines between items in the footer. Remove
5077 quotes around bug url.
5078
2f33032a
KS
50792020-06-11 Keith Seitz <keiths@redhat.com>
5080
5081 PR gdb/21356
5082 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
5083 Resolve typedefs for type length calculations.
5084
7ab96794
TV
50852020-06-10 Tom de Vries <tdevries@suse.de>
5086
5087 PR ada/24713
5088 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
5089 (write_psymbols): Enable .gdb_index for ada.
5090 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
5091 ada.
5092
e5f3ece2
TV
50932020-06-10 Tom de Vries <tdevries@suse.de>
5094
5095 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
5096 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
5097 namei" instead of "const char *name" argument.
5098 (dw2_map_matching_symbols): Use "offset_type namei" variant of
5099 dw2_symtab_iter_init.
5100
940da03e
SM
51012020-06-08 Simon Marchi <simon.marchi@efficios.com>
5102
5103 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
5104 to use type::field and field::type instead.
5105
b6cdac4b
SM
51062020-06-08 Simon Marchi <simon.marchi@efficios.com>
5107
5108 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
5109 to use field::type instead.
5110
5d14b6e5
SM
51112020-06-08 Simon Marchi <simon.marchi@efficios.com>
5112
5113 * gdbtypes.h (struct field) <type, set_type>: New methods.
5114 Rename `type` field to...
5115 <m_type>: ... this. Change references throughout to use type or
5116 set_type methods.
5117 (FIELD_TYPE): Use field::type. Change call sites that modify
5118 the field's type to use field::set_type instead.
5119
3d967001
SM
51202020-06-08 Simon Marchi <simon.marchi@efficios.com>
5121
5122 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
5123 to use type::index_type instead.
5124
262abc0d
SM
51252020-06-08 Simon Marchi <simon.marchi@efficios.com>
5126
5127 * gdbtypes.h (struct type) <index_type, set_index_type>: New
5128 methods.
5129 (TYPE_INDEX_TYPE): Use type::index_type.
5130 * gdbtypes.c (create_array_type_with_stride): Likewise.
5131
82836c92
TT
51322020-06-07 Tom Tromey <tom@tromey.com>
5133
5134 * valprint.c (generic_val_print_float): Remove "embedded_offset"
5135 parameter.
5136 (generic_value_print): Update.
5137
940dace9
AB
51382020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5139
5140 Revert commit 982a38f60b0.
5141 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
5142
982a38f6
AB
51432020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5144
5145 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
5146 avoid use after free.
5147
82f06518
TV
51482020-06-05 Tom de Vries <tdevries@suse.de>
5149
5150 * NEWS: Fix typos.
5151
f8c41851
SM
51522020-06-04 Simon Marchi <simon.marchi@efficios.com>
5153
5154 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
5155 the per_bfd object.
5156 (dwarf2_read_debug_names): Likewise.
5157 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
5158 object when re-using a per_bfd object with an index.
5159
f9b5d5ea
TV
51602020-06-03 Tom de Vries <tdevries@suse.de>
5161
5162 PR symtab/26046
5163 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
5164 children for C++.
5165 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
5166 DW_TAG_subprogram.
5167
f6eee2d0
AB
51682020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5169
5170 * ada-lang.c (ada_language_data): Delete skip_trampoline
5171 initializer.
5172 * c-lang.c (c_language_data): Likewise.
5173 (cplus_language_data): Likewise.
5174 (cplus_language::skip_trampoline): New member function.
5175 (asm_language_data): Delete skip_trampoline initializer.
5176 (minimal_language_data): Likewise.
5177 * d-lang.c (d_language_data): Likewise.
5178 * f-lang.c (f_language_data): Likewise.
5179 * go-lang.c (go_language_data): Likewise.
5180 * language.c (unk_lang_trampoline): Delete function.
5181 (skip_language_trampoline): Update.
5182 (unknown_language_data): Delete skip_trampoline initializer.
5183 (auto_language_data): Likewise.
5184 * language.h (language_data): Delete skip_trampoline field.
5185 (language_defn::skip_trampoline): New function.
5186 * m2-lang.c (m2_language_data): Delete skip_trampoline
5187 initializer.
5188 * objc-lang.c (objc_skip_trampoline): Delete function, move
5189 implementation to objc_language::skip_trampoline.
5190 (objc_language_data): Delete skip_trampoline initializer.
5191 (objc_language::skip_trampoline): New member function with
5192 implementation from objc_skip_trampoline.
5193 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5194 initializer.
5195 * p-lang.c (pascal_language_data): Likewise.
5196 * rust-lang.c (rust_language_data): Likewise.
5197
0a50df5d
AB
51982020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5199
5200 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5201 (ada_language::demangle): New member function.
5202 * c-lang.c (c_language_data): Delete la_demangle initializer.
5203 (cplus_language_data): Delete la_demangle initializer.
5204 (cplus_language::demangle): New member function.
5205 (asm_language_data): Delete la_demangle initializer.
5206 (minimal_language_data): Delete la_demangle initializer.
5207 * d-lang.c (d_language_data): Delete la_demangle initializer.
5208 (d_language::demangle): New member function.
5209 * f-lang.c (f_language_data): Delete la_demangle initializer.
5210 (f_language::demangle): New member function.
5211 * go-lang.c (go_language_data): Delete la_demangle initializer.
5212 (go_language::demangle): New member function.
5213 * language.c (language_demangle): Update.
5214 (unk_lang_demangle): Delete.
5215 (unknown_language_data): Delete la_demangle initializer.
5216 (unknown_language::demangle): New member function.
5217 (auto_language_data): Delete la_demangle initializer.
5218 (auto_language::demangle): New member function.
5219 * language.h (language_data): Delete la_demangle field.
5220 (language_defn::demangle): New function.
5221 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5222 * objc-lang.c (objc_language_data): Delete la_demangle
5223 initializer.
5224 (objc_language::demangle): New member function.
5225 * opencl-lang.c (opencl_language_data): Delete la_demangle
5226 initializer.
5227 * p-lang.c (pascal_language_data): Likewise.
5228 * rust-lang.c (rust_language_data): Likewise.
5229 (rust_language::demangle): New member function.
5230
fbfb0a46
AB
52312020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5232
5233 * ada-lang.c (ada_language_data): Delete la_print_type
5234 initializer.
5235 (ada_language::print_type): New member function.
5236 * c-lang.c (c_language_data): Delete la_print_type initializer.
5237 (c_language::print_type): New member function.
5238 (cplus_language_data): Delete la_print_type initializer.
5239 (cplus_language::print_type): New member function.
5240 (asm_language_data): Delete la_print_type initializer.
5241 (asm_language::print_type): New member function.
5242 (minimal_language_data): Delete la_print_type initializer.
5243 (minimal_language::print_type): New member function.
5244 * d-lang.c (d_language_data): Delete la_print_type initializer.
5245 (d_language::print_type): New member function.
5246 * f-lang.c (f_language_data): Delete la_print_type initializer.
5247 (f_language::print_type): New member function.
5248 * go-lang.c (go_language_data): Delete la_print_type initializer.
5249 (go_language::print_type): New member function.
5250 * language.c (unk_lang_print_type): Delete.
5251 (unknown_language_data): Delete la_print_type initializer.
5252 (unknown_language::print_type): New member function.
5253 (auto_language_data): Delete la_print_type initializer.
5254 (auto_language::print_type): New member function.
5255 * language.h (language_data): Delete la_print_type field.
5256 (language_defn::print_type): New function.
5257 (LA_PRINT_TYPE): Update.
5258 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5259 (m2_language::print_type): New member function.
5260 * objc-lang.c (objc_language_data): Delete la_print_type
5261 initializer.
5262 (objc_language::print_type): New member function.
5263 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5264 to opencl_language::print_type.
5265 (opencl_language_data): Delete la_print_type initializer.
5266 (opencl_language::print_type): New member function, implementation
5267 from opencl_print_type.
5268 * p-lang.c (pascal_language_data): Delete la_print_type
5269 initializer.
5270 (pascal_language::print_type): New member function.
5271 * rust-lang.c (rust_print_type): Delete, implementation moved to
5272 rust_language::print_type.
5273 (rust_language_data): Delete la_print_type initializer.
5274 (rust_language::print_type): New member function, implementation
5275 from rust_print_type.
5276
6f827019
AB
52772020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5278
5279 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5280 implementation moves to...
5281 (ada_language::sniff_from_mangled_name): ...here. Update return
5282 type.
5283 (ada_language_data): Delete la_sniff_from_mangled_name
5284 initializer.
5285 * c-lang.c (c_language_data): Likewise.
5286 (cplus_language_data): Likewise.
5287 (cplus_language::sniff_from_mangled_name): New member function,
5288 implementation taken from gdb_sniff_from_mangled_name.
5289 (asm_language_data): Delete la_sniff_from_mangled_name
5290 initializer.
5291 (minimal_language_data): Likewise.
5292 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5293 implementation moves to cplus_language::sniff_from_mangled_name.
5294 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5295 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5296 moves to...
5297 (d_language::sniff_from_mangled_name): ...here.
5298 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5299 * f-lang.c (f_language_data): Likewise.
5300 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5301 moves to...
5302 (go_language::sniff_from_mangled_name): ...here.
5303 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5304 * language.c (language_sniff_from_mangled_name): Delete.
5305 (unknown_language_data): Delete la_sniff_from_mangled_name
5306 initializer.
5307 (auto_language_data): Likewise.
5308 * language.h (language_data): Delete la_sniff_from_mangled_name
5309 field.
5310 (language_defn::sniff_from_mangled_name): New function.
5311 (language_sniff_from_mangled_name): Delete declaration.
5312 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5313 field.
5314 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5315 implementation moves to...
5316 (objc_language::sniff_from_mangled_name): ...here.
5317 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5318 * opencl-lang.c (opencl_language_data): Likewise.
5319 * p-lang.c (pascal_language_data): Likewise.
5320 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5321 implementation moves to...
5322 (rust_language::sniff_from_mangled_name): ...here.
5323 (rust_language_data): Delete la_sniff_from_mangled_name
5324 initializer.
5325 * symtab.c (symbol_find_demangled_name): Call
5326 sniff_from_mangled_name member function.
5327
fb8006fd
AB
53282020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5329
5330 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5331 initializer.
5332 * c-lang.c (c_language_data): Likewise.
5333 (cplus_language_data): Likewise.
5334 (cplus_language::search_name_hash): New member function.
5335 (asm_language_data): Delete la_search_name_hash initializer.
5336 (minimal_language_data): Likewise.
5337 * d-lang.c (d_language_data): Likewise.
5338 * dictionary.c (default_search_name_hash): Rename to...
5339 (language_defn::search_name_hash): ...this.
5340 * f-lang.c (f_language_data): Likewise.
5341 (f_language::search_name_hash): New member function.
5342 * go-lang.c (go_language_data): Delete la_search_name_hash
5343 initializer.
5344 * language.c (unknown_language_data): Likewise.
5345 (auto_language_data): Likewise.
5346 * language.h (struct language_data): Delete la_search_name_hash
5347 field.
5348 (language_defn::search_name_hash): Declare new member function.
5349 (default_search_name_hash): Delete declaration.
5350 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5351 initializer.
5352 * objc-lang.c (objc_language_data): Likewise.
5353 * opencl-lang.c (opencl_language_data): Likewise.
5354 * p-lang.c (pascal_language_data): Likewise.
5355 * rust-lang.c (rust_language_data): Likewise.
5356 * symtab.c (search_name_hash): Update call.
5357
8e25bafe
AB
53582020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5359
5360 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5361 initializer.
5362 * c-lang.c (class compile_instance): Declare.
5363 (c_language_data): Delete la_get_compile_instance initializer.
5364 (c_language::get_compile_instance): New member function.
5365 (cplus_language_data): Delete la_get_compile_instance initializer.
5366 (cplus_language::get_compile_instance): New member function.
5367 (asm_language_data): Delete la_get_compile_instance initializer.
5368 (minimal_language_data): Likewise.
5369 * c-lang.h (c_get_compile_context): Update comment.
5370 (cplus_get_compile_context): Update comment.
5371 * compile/compile.c (compile_to_object): Update calls, don't rely
5372 on function pointer being NULL.
5373 * d-lang.c (d_language_data): Delete la_get_compile_instance
5374 initializer.
5375 * f-lang.c (f_language_data): Likewise.
5376 * go-lang.c (go_language_data): Likewise.
5377 * language.c (unknown_language_data): Likewise.
5378 (auto_language_data): Likewise.
5379 * language.h (language_data): Delete la_get_compile_instance field.
5380 (language_defn::get_compile_instance): New member function.
5381 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5382 initializer.
5383 * objc-lang.c (objc_language_data): Likewise.
5384 * opencl-lang.c (opencl_language_data): Likewise.
5385 * p-lang.c (pascal_language_data): Likewise.
5386 * rust-lang.c (rust_language_data): Likewise.
5387
4009ee92
AB
53882020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5389
5390 * ada-lang.c (ada_add_all_symbols): Update comment.
5391 (ada_iterate_over_symbols): Delete, move implementation to...
5392 (ada_language::iterate_over_symbols): ...here, a new member
5393 function, rewrite to use range based for loop.
5394 (ada_language_data): Delete la_iterate_over_symbols initializer.
5395 * c-lang.c (c_language_data): Likewise.
5396 (cplus_language_data): Likewise.
5397 (asm_language_data): Likewise.
5398 (minimal_language_data): Likewise.
5399 * d-lang.c (d_language_data): Likewise.
5400 * f-lang.c (f_language_data): Likewise.
5401 * go-lang.c (go_language_data): Likewise.
5402 * language.c (unknown_language_data): Likewise.
5403 (auto_language_data): Likewise.
5404 * language.h (language_data): Delete la_iterate_over_symbols field.
5405 (language_defn::iterate_over_symbols): New member function.
5406 (LA_ITERATE_OVER_SYMBOLS): Update.
5407 * linespec.c (iterate_over_all_matching_symtabs): Update.
5408 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5409 initializer.
5410 * objc-lang.c (objc_language_data): Likewise.
5411 * opencl-lang.c (opencl_language_data): Likewise.
5412 * p-lang.c (pascal_language_data): Likewise.
5413 * rust-lang.c (rust_language_data): Likewise.
5414
54f4ca46
AB
54152020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5416
5417 * ada-lang.c (ada_language_data): Delete
5418 la_lookup_transparent_type initializer.
5419 * c-lang.c (c_language_data): Likewise.
5420 (cplus_language_data): Likewise.
5421 (cplus_language::lookup_transparent_type): New member function.
5422 (asm_language_data): Delete la_lookup_transparent_type
5423 initializer.
5424 (minimal_language_data): Likewise.
5425 * d-lang.c (d_language_data): Likewise.
5426 * f-lang.c (f_language_data): Likewise.
5427 * go-lang.c (go_language_data): Likewise.
5428 * language.c (unknown_language_data): Likewise.
5429 (auto_language_data): Likewise.
5430 * language.h (struct language_data): Delete
5431 la_lookup_transparent_type field.
5432 (language_defn::lookup_transparent_type): New member function.
5433 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5434 initializer.
5435 * objc-lang.c (objc_language_data): Likewise.
5436 * opencl-lang.c (opencl_language_data): Likewise.
5437 * p-lang.c (pascal_language_data): Likewise.
5438 * rust-lang.c (rust_language_data): Likewise.
5439 * symtab.c (symbol_matches_domain): Update call.
5440
1fb314aa
AB
54412020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5442
5443 * ada-lang.c (ada_language_arch_info): Delete function, move
5444 implementation to...
5445 (ada_language::language_arch_info): ...here, a new member
5446 function.
5447 (ada_language_data): Delete la_language_arch_info.
5448 * c-lang.c (c_language_data): Likewise.
5449 (c_language::language_arch_info): New member function.
5450 (cplus_language_arch_info): Delete function, move
5451 implementation to...
5452 (cplus_language::language_arch_info): ...here, a new member
5453 function.
5454 (cplus_language_data): Delete la_language_arch_info.
5455 (asm_language_data): Likewise.
5456 (asm_language::language_arch_info): New member function.
5457 (minimal_language_data): Delete la_language_arch_info.
5458 (minimal_language::language_arch_info): New member function.
5459 * d-lang.c (d_language_arch_info): Delete function, move
5460 implementation to...
5461 (d_language::language_arch_info): ...here, a new member
5462 function.
5463 (d_language_data): Delete la_language_arch_info.
5464 * f-lang.c (f_language_arch_info): Delete function, move
5465 implementation to...
5466 (f_language::language_arch_info): ...here, a new member
5467 function.
5468 (f_language_data): Delete la_language_arch_info.
5469 * go-lang.c (go_language_arch_info): Delete function, move
5470 implementation to...
5471 (go_language::language_arch_info): ...here, a new member
5472 function.
5473 (go_language_data): Delete la_language_arch_info.
5474 * language.c (unknown_language_data): Likewise.
5475 (unknown_language::language_arch_info): New member function.
5476 (auto_language_data): Delete la_language_arch_info.
5477 (auto_language::language_arch_info): New member function.
5478 (language_gdbarch_post_init): Update call to
5479 la_language_arch_info.
5480 * language.h (language_data): Delete la_language_arch_info
5481 function pointer.
5482 (language_defn::language_arch_info): New function.
5483 * m2-lang.c (m2_language_arch_info): Delete function, move
5484 implementation to...
5485 (m2_language::language_arch_info): ...here, a new member
5486 function.
5487 (m2_language_data): Delete la_language_arch_info.
5488 * objc-lang.c (objc_language_arch_info): Delete function, move
5489 implementation to...
5490 (objc_language::language_arch_info): ...here, a new member
5491 function.
5492 (objc_language_data): Delete la_language_arch_info.
5493 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5494 implementation to...
5495 (opencl_language::language_arch_info): ...here, a new member
5496 function.
5497 (opencl_language_data): Delete la_language_arch_info.
5498 * p-lang.c (pascal_language_arch_info): Delete function, move
5499 implementation to...
5500 (pascal_language::language_arch_info): ...here, a new member
5501 function.
5502 (pascal_language_data): Delete la_language_arch_info.
5503 * rust-lang.c (rust_language_arch_info): Delete function, move
5504 implementation to...
5505 (rust_language::language_arch_info): ...here, a new member
5506 function.
5507 (rust_language_data): Delete la_language_arch_info.
5508
48448202
AB
55092020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5510
5511 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5512 initializer.
5513 * c-lang.c (c_language_data): Likewise.
5514 (cplus_language_data): Likewise.
5515 (cplus_language::pass_by_reference_info): New method.
5516 (asm_language_data): Delete la_pass_by_reference initializer.
5517 (minimal_language_data): Likewise.
5518 * cp-abi.c (cp_pass_by_reference): Remove use of
5519 default_pass_by_reference.
5520 * d-lang.c (d_language_data): Likewise.
5521 * f-lang.c (f_language_data): Likewise.
5522 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5523 default_pass_by_reference.
5524 * go-lang.c (go_language_data): Likewise.
5525 * language.c (language_pass_by_reference): Update.
5526 (default_pass_by_reference): Delete.
5527 (unknown_language_data): Delete la_pass_by_reference
5528 initializer.
5529 (auto_language_data): Likewise.
5530 * language.h (struct language_data): Delete la_pass_by_reference
5531 field.
5532 (language_defn::pass_by_reference_info): New member function.
5533 (default_pass_by_reference): Delete declaration.
5534 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5535 initializer.
5536 * objc-lang.c (objc_language_data): Likewise.
5537 * opencl-lang.c (opencl_language_data): Likewise.
5538 * p-lang.c (pascal_language_data): Likewise.
5539 * rust-lang.c (rust_language_data): Likewise.
5540
15e5fd35
AB
55412020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5542
5543 * ada-lang.c (ada_read_var_value): Delete function, move
5544 implementation to...
5545 (ada_language::read_var_value): ...here.
5546 (ada_language_data): Delete la_read_var_value initializer.
5547 * c-lang.c (c_language_data): Likewise.
5548 (cplus_language_data): Likewise.
5549 (minimal_language_data): Likewise.
5550 * d-lang.c (d_language_data): Likewise.
5551 * f-lang.c (f_language_data): Likewise.
5552 * findvar.c (default_read_var_value): Rename to...
5553 (language_defn::read_var_value): ...this.
5554 * findvar.c (read_var_value): Update header comment, and change to
5555 call member function instead of function pointer.
5556 * go-lang.c (go_language_data): Likewise.
5557 * language.c (unknown_language_data): Delete la_read_var_value
5558 initializer.
5559 (auto_language_data): Likewise.
5560 * language.h (struct language_data): Delete la_read_var_value
5561 field.
5562 (language_defn::read_var_value): New member function.
5563 (default_read_var_value): Delete declaration.
5564 * m2-lang.c (m2_language_data): Delete la_read_var_value
5565 initializer.
5566 * objc-lang.c (objc_language_data): Likewise.
5567 * opencl-lang.c (opencl_language_data): Likewise.
5568 * p-lang.c (pascal_language_data): Likewise.
5569 * rust-lang.c (rust_language_data): Likewise.
5570 * value.h (default_read_var_value): Delete declaration.
5571
5bd40f2a
AB
55722020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5573
5574 * ada-lang.c (ada_print_array_index): Delete function, move
5575 implementation to...
5576 (ada_language::print_array_index): ...here.
5577 (ada_language_data): Delete la_print_array_index initializer.
5578 * c-lang.c (c_language_data): Likewise.
5579 (cplus_language_data): Likewise.
5580 (minimal_language_data): Likewise.
5581 * d-lang.c (d_language_data): Likewise.
5582 * f-lang.c (f_language_data): Likewise.
5583 * go-lang.c (go_language_data): Likewise.
5584 * language.c (default_print_array_index): Delete function, move
5585 implementation to...
5586 (language_defn::print_array_index): ...here.
5587 (unknown_language_data): Delete la_print_array_index initializer.
5588 (auto_language_data): Likewise.
5589 * language.h (struct language_data): Delete la_print_array_index
5590 field.
5591 (language_defn::print_array_index): New member function.
5592 (LA_PRINT_ARRAY_INDEX): Update.
5593 (default_print_array_index): Delete declaration.
5594 * m2-lang.c (m2_language_data): Delete la_print_array_index
5595 initializer.
5596 * objc-lang.c (objc_language_data): Likewise.
5597 * opencl-lang.c (opencl_language_data): Likewise.
5598 * p-lang.c (pascal_language_data): Likewise.
5599 * rust-lang.c (rust_language_data): Likewise.
5600
0874fd07
AB
56012020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5602
5603 * gdb/ada-lang.c (ada_language_defn): Convert to...
5604 (ada_language_data): ...this.
5605 (class ada_language): New class.
5606 (ada_language_defn): New static global.
5607 * gdb/c-lang.c (c_language_defn): Convert to...
5608 (c_language_data): ...this.
5609 (class c_language): New class.
5610 (c_language_defn): New static global.
5611 (cplus_language_defn): Convert to...
5612 (cplus_language_data): ...this.
5613 (class cplus_language): New class.
5614 (cplus_language_defn): New static global.
5615 (asm_language_defn): Convert to...
5616 (asm_language_data): ...this.
5617 (class asm_language): New class.
5618 (asm_language_defn): New static global.
5619 (minimal_language_defn): Convert to...
5620 (minimal_language_data): ...this.
5621 (class minimal_language): New class.
5622 (minimal_language_defn): New static global.
5623 * gdb/d-lang.c (d_language_defn): Convert to...
5624 (d_language_data): ...this.
5625 (class d_language): New class.
5626 (d_language_defn): New static global.
5627 * gdb/f-lang.c (f_language_defn): Convert to...
5628 (f_language_data): ...this.
5629 (class f_language): New class.
5630 (f_language_defn): New static global.
5631 * gdb/go-lang.c (go_language_defn): Convert to...
5632 (go_language_data): ...this.
5633 (class go_language): New class.
5634 (go_language_defn): New static global.
5635 * gdb/language.c (unknown_language_defn): Remove declaration.
5636 (current_language): Initialize to nullptr, real initialization is
5637 moved to _initialize_language.
5638 (languages): Delete global.
5639 (language_defn::languages): Define.
5640 (set_language_command): Use language_defn::languages.
5641 (set_language): Likewise.
5642 (range_error): Likewise.
5643 (language_enum): Likewise.
5644 (language_def): Likewise.
5645 (add_set_language_command): Use language_def::languages for the
5646 language list, and language_def to lookup language pointers.
5647 (skip_language_trampoline): Use language_defn::languages.
5648 (unknown_language_defn): Convert to...
5649 (unknown_language_data): ...this.
5650 (class unknown_language): New class.
5651 (unknown_language_defn): New static global.
5652 (auto_language_defn): Convert to...
5653 (auto_language_data): ...this.
5654 (class auto_language): New class.
5655 (auto_language_defn): New static global.
5656 (language_gdbarch_post_init): Use language_defn::languages.
5657 (_initialize_language): Initialize current_language.
5658 * gdb/language.h (struct language_defn): Rename to...
5659 (struct language_data): ...this.
5660 (struct language_defn): New.
5661 (auto_language_defn): Delete.
5662 (unknown_language_defn): Delete.
5663 (minimal_language_defn): Delete.
5664 (ada_language_defn): Delete.
5665 (asm_language_defn): Delete.
5666 (c_language_defn): Delete.
5667 (cplus_language_defn): Delete.
5668 (d_language_defn): Delete.
5669 (f_language_defn): Delete.
5670 (go_language_defn): Delete.
5671 (m2_language_defn): Delete.
5672 (objc_language_defn): Delete.
5673 (opencl_language_defn): Delete.
5674 (pascal_language_defn): Delete.
5675 (rust_language_defn): Delete.
5676 * gdb/m2-lang.c (m2_language_defn): Convert to...
5677 (m2_language_data): ...this.
5678 (class m2_language): New class.
5679 (m2_language_defn): New static global.
5680 * gdb/objc-lang.c (objc_language_defn): Convert to...
5681 (objc_language_data): ...this.
5682 (class objc_language): New class.
5683 (objc_language_defn): New static global.
5684 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5685 (opencl_language_data): ...this.
5686 (class opencl_language): New class.
5687 (opencl_language_defn): New static global.
5688 * gdb/p-lang.c (pascal_language_defn): Convert to...
5689 (pascal_language_data): ...this.
5690 (class pascal_language): New class.
5691 (pascal_language_defn): New static global.
5692 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5693 language pointer, update comment format.
5694 * gdb/rust-lang.c (rust_language_defn): Convert to...
5695 (rust_language_data): ...this.
5696 (class rust_language): New class.
5697 (rust_language_defn): New static global.
5698
1313c56e
AB
56992020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5700
5701 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5702 member variable.
5703 <m_stmt_at_address>: New member variable.
5704 (lnp_state_machine::record_line): Don't record some lines, update
5705 tracking of is_stmt at the same address.
5706 (lnp_state_machine::lnp_state_machine): Initialise new member
5707 variables.
5708
b7ed9f3d
ST
57092020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5710
5711 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5712 "-include gnu-nat-mig.h".
5713 * gnu-nat-mig.h: New file.
5714 * gnu-nat.c: Include "gnu-nat-mig.h".
5715 (exc_server, msg_reply_server, notify_server,
5716 process_reply_server): Remove declarations.
5717
14a8ad62
ST
57182020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5719
5720 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5721 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5722 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5723 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5724 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5725 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5726 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5727 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5728 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5729 to gnu_nat_target class.
5730 * gnu-nat.c: Likewise.
5731 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5732 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5733 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5734 object.
5735 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5736 instead of `gnu_target'.
5737
0af5e106
ST
57382020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5739
5740 * i386-gnu-tdep.c: Include "gdbcore.h"
5741 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5742 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5743 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5744 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5745 i386_gnu_sigcontext_addr): New functions
5746 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5747 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5748 tdep.
5749
078f2fc9
ST
57502020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5751
5752 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5753 before fork_inferior call. Avoid calling it if target_is_pushed returns
5754 true.
5755
53dff92c
ST
57562020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5757
5758 * gnu-nat.h (gnu_target): New variable declaration.
5759 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5760 gnu_target.
5761 * gnu-nat.c (gnu_target): New variable.
5762 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5763 add_thread_silent, and add_thread calls.
5764 (gnu_nat_target::create_inferior): Pass gnu_target to
5765 add_thread_silent, thread_change_ptid call.
5766 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5767 call.
5768
5a8b8627
ST
57692020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5770
5771 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5772 (gnu_nat_target::find_memory_regions): Remove unused
5773 `old_address' variable.
5774
366f550a
ST
57752020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5776
5777 * gnu-nat.c: Include "gdbarch.h".
5778
f14871bf
ST
57792020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5780
5781 * reply_mig_hack.awk (Error return): Cast function through
5782 void *, to bypass compiler function call check.
5783
c6887cfb
ST
57842020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5785
5786 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5787 $(srcdir)/reply_mig_hack.awk.
5788
6930bffe
ST
57892020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5790
5791 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5792
112c22ed
JG
57932020-05-30 Jonny Grant <jg@jguk.org>
5794
5795 * configure.ac (ACX_BUGURL): change bug URL to https.
5796
f68f85b5
PA
57972020-05-30 Pedro Alves <palves@redhat.com>
5798
5799 * cp-support.c (replace_typedefs_template): New.
5800 (replace_typedefs_qualified_name): Handle
5801 DEMANGLE_COMPONENT_TEMPLATE.
5802
976ca316
SM
58032020-05-29 Simon Marchi <simon.marchi@efficios.com>
5804
5805 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5806 dwarf2/index-cache.h, dwarf2/index-write.c,
5807 dwarf2/index-write.h, dwarf2/line-header.c,
5808 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5809 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5810 variables and fields from `dwarf2_per_objfile` to just
5811 `per_objfile` throughout.
5812
989ade05
SM
58132020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5814
5815 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5816 <push_dwarf_reg_entry_value>: Add comment.
5817
c47bae85
KB
58182020-05-28 Kevin Buettner <kevinb@redhat.com>
5819 Keith Seitz <keiths@redhat.com>
5820
5821 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5822 instead of PyEval_ReleaseLock.
5823 (class gdbpy_gil): Move to earlier in file.
5824 (finalize_python): Set gdb_python_initialized.
5825 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5826 when not initialized.
5827
44486dcf
SM
58282020-05-28 Simon Marchi <simon.marchi@efficios.com>
5829
5830 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5831 <push_dwarf_reg_entry_value>: Remove assert. Override
5832 per_objfile with caller_per_objfile.
5833
f030440d
TV
58342020-05-28 Tom de Vries <tdevries@suse.de>
5835
5836 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
5837 PR gold/15646 workaround to symbol kind "type".
5838
f0fbb768
TT
58392020-05-27 Tom Tromey <tromey@adacore.com>
5840
5841 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
5842
af0b2a3e
TT
58432020-05-27 Tom Tromey <tromey@adacore.com>
5844
5845 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5846 Use htab_find_with_hash.
5847 <add_abbrev>: Remove "abbrev_number" parameter.
5848 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
5849 "abbrev_number" parameter. Use htab_find_slot_with_hash.
5850 (hash_abbrev): Add comment.
5851 (abbrev_table::lookup_abbrev): Move to header file.
5852 (abbrev_table::read): Update.
5853
7d00ffec
TT
58542020-05-27 Tom Tromey <tromey@adacore.com>
5855
5856 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
5857 method.
5858 <canonical_name>: New member.
5859 <raw_name>: Rename from "name".
5860 (partial_die_info): Initialize canonical_name.
5861 (scan_partial_symbols): Check raw_name.
5862 (partial_die_parent_scope, partial_die_full_name)
5863 (add_partial_symbol, add_partial_subprogram)
5864 (add_partial_enumeration, load_partial_dies): Use "name" method.
5865 (partial_die_info::name): New method.
5866 (partial_die_info::read, guess_partial_die_structure_name)
5867 (partial_die_info::fixup): Update.
5868
697bba18
TT
58692020-05-27 Tom Tromey <tromey@adacore.com>
5870
5871 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
5872 <get_ref_die_offset>: Inline.
5873 <get_ref_die_offset_complaint>: New method.
5874 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
5875 (attribute::get_ref_die_offset_complaint): Rename from
5876 get_ref_die_offset. Just issue complaint.
5877
c17ace43
HD
58782020-05-27 Hannes Domani <ssbssa@yahoo.de>
5879
5880 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
5881
96445f0b
HD
58822020-05-27 Hannes Domani <ssbssa@yahoo.de>
5883
5884 * exec.c (exec_file_attach): Use errno value of first openp failure.
5885
ac637ec3
HD
58862020-05-27 Hannes Domani <ssbssa@yahoo.de>
5887
5888 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5889 Don't close thread handle.
5890
17ee85fc
TT
58912020-05-27 Tom Tromey <tom@tromey.com>
5892 Simon Marchi <simon.marchi@efficios.com>
5893
5894 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5895 shared_ptr.
5896 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5897 member.
5898 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5899 dwarf2_per_bfd_objfile_data_key>: New globals.
5900 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5901 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5902 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5903 shared.
5904 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5905 short-circuit when sharing.
5906 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5907 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5908
39b16f87
SM
59092020-05-27 Simon Marchi <simon.marchi@efficios.com>
5910
5911 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5912 to...
5913 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5914 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5915
fcf23d5b
SM
59162020-05-27 Simon Marchi <simon.marchi@efficios.com>
5917
5918 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5919 build_name_components, find_name_components_bounds>:
5920 Add per_objfile parameter.
5921 (struct mapped_index) <symbol_name_at>: Likewise.
5922 (struct mapped_debug_names): Remove constructor.
5923 <dwarf2_per_objfile>: Remove field.
5924 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5925 (mapped_index_base::find_name_components_bounds,
5926 mapped_index_base::build_name_components,
5927 dw2_expand_symtabs_matching_symbol): Likewise.
5928 (class mock_mapped_index) <symbol_name_at>: Likewise.
5929 (check_match): Likewise.
5930 (check_find_bounds_finds): Likewise.
5931 (test_mapped_index_find_name_component_bounds): Update.
5932 (CHECK_MATCH): Update.
5933 (dw2_expand_symtabs_matching): Update.
5934 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5935 per_objfile parameter.
5936 <find_vec_in_debug_names>: Likewise.
5937 <m_per_objfile>: New field.
5938 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5939 parameter.
5940 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5941 (dw2_debug_names_iterator::next): Update.
5942 (dw2_debug_names_lookup_symbol): Update.
5943 (dw2_debug_names_expand_symtabs_for_function): Update.
5944 (dw2_debug_names_map_matching_symbols): Update.
5945 (dw2_debug_names_expand_symtabs_matching): Update.
5946 (dwarf2_read_debug_names): Update.
5947
7188ed02
SM
59482020-05-27 Simon Marchi <simon.marchi@efficios.com>
5949
5950 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5951 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5952 move to dwarf2_per_objfile.
5953 <read_in_chain>: Remove.
5954 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5955 remove_all_cus, age_comp_units>: New methods.
5956 <m_dwarf2_cus>: New member.
5957 (struct dwarf2_per_cu_data) <cu>: Remove.
5958 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5959 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5960 moved to methods of dwarf2_per_objfile.
5961 (dwarf2_clear_marks): Remove.
5962 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5963 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5964 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5965 (dwarf2_per_objfile::remove_all_cus): New.
5966 (class free_cached_comp_units) <~free_cached_comp_units>:
5967 Update.
5968 (load_cu): Update.
5969 (dw2_do_instantiate_symtab): Adjust.
5970 (fill_in_sig_entry_from_dwo_entry): Adjust.
5971 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5972 (cutu_reader::cutu_reader): Likewise.
5973 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5974 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5975 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5976 and dwarf2_per_objfile::age_comp_units.
5977 (load_partial_comp_unit): Update.
5978 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5979 (process_queue): Likewise.
5980 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5981 backlink.
5982 (dwarf2_read_addr_index): Likewise.
5983 (follow_die_offset): Likewise.
5984 (dwarf2_fetch_die_loc_sect_off): Likewise.
5985 (dwarf2_fetch_constant_bytes): Likewise.
5986 (dwarf2_fetch_die_type_sect_off): Likewise.
5987 (follow_die_sig_1): Likewise.
5988 (load_full_type_unit): Likewise.
5989 (read_signatured_type): Likewise.
5990 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5991 (dwarf2_cu::~dwarf2_cu): Remove.
5992 (dwarf2_per_objfile::get_cu): New.
5993 (dwarf2_per_objfile::set_cu): New.
5994 (age_cached_comp_units): Rename to...
5995 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5996 to std::unordered_map.
5997 (free_one_cached_comp_unit): Rename to...
5998 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5999 to std::unordered_map.
6000 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
6001 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
6002 a dwarf2_per_objfile in data.
6003 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
6004 (dwarf2_clear_marks): Remove.
6005
2e671100
SM
60062020-05-27 Simon Marchi <simon.marchi@efficios.com>
6007
6008 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
6009 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
6010 (init_tu_and_read_dwo_dies): Likewise.
6011 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
6012 (cutu_reader::cutu_reader): Likewise.
6013 (load_partial_comp_unit): Likewise.
6014 (process_psymtab_comp_unit): Update.
6015 (build_type_psymtabs_1): Update.
6016 (process_skeletonless_type_unit): Update.
6017 (load_full_comp_unit): Update.
6018 (find_partial_die): Update.
6019 (dwarf2_read_addr_index): Update.
6020 (read_signatured_type): Update.
6021
2e6a9f79
SM
60222020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6023
6024 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
6025 m_header_read_in>: New fields.
6026 <get_header>: New method.
6027 * dwarf2/read.c (per_cu_header_read_in): Remove.
6028 (dwarf2_per_cu_data::get_header): New.
6029 (dwarf2_per_cu_data::addr_size): Update.
6030 (dwarf2_per_cu_data::offset_size): Update.
6031 (dwarf2_per_cu_data::ref_addr_size): Update.
6032
1b555f17
SM
60332020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6034
6035 * dwarf2/read.c (load_cu): Return dwarf2_cu.
6036 (dw2_do_instantiate_symtab): Update.
6037 (queue_and_load_all_dwo_tus): Change parameter from
6038 dwarf2_per_cu_data to dwarf2_cu.
6039 (dwarf2_fetch_die_loc_sect_off): Update.
6040 (dwarf2_fetch_constant_bytes): Update.
6041 (dwarf2_fetch_die_type_sect_off): Update.
6042
8fc0b21d
SM
60432020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6044
6045 * dwarf2/read.c (process_full_comp_unit,
6046 process_full_type_unit): Remove per_cu, per_objfile paramters.
6047 Add dwarf2_cu parameter.
6048 (process_queue): Update.
6049
168c9250
SM
60502020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6051
6052 * dwarf2/read.c (create_cu_from_index_list): Replace
6053 dwarf2_per_objfile parameter with dwarf2_per_bfd.
6054 (create_cus_from_index_list): Likewise.
6055 (create_cus_from_index): Likewise.
6056 (create_signatured_type_table_from_index): Likewise.
6057 (create_cus_from_debug_names_list): Likewise.
6058 (create_cus_from_debug_names): Likewise.
6059 (dwarf2_read_gdb_index): Update.
6060 (dwarf2_read_debug_names): Update.
6061
e286671b
TT
60622020-05-27 Tom Tromey <tom@tromey.com>
6063 Simon Marchi <simon.marchi@efficios.com>
6064
6065 * dwarf2/read.h (struct dwarf2_per_objfile)
6066 <get_type_for_signatured_type, set_type_for_signatured_type>:
6067 New methods.
6068 <m_type_map>: New member.
6069 (struct signatured_type) <type>: Remove.
6070 * dwarf2/read.c
6071 (dwarf2_per_objfile::get_type_for_signatured_type,
6072 dwarf2_per_objfile::set_type_for_signatured_type): New.
6073 (get_signatured_type): Use new methods.
6074
8adb8487
TT
60752020-05-27 Tom Tromey <tom@tromey.com>
6076 Simon Marchi <simon.marchi@efficios.com>
6077
6078 * dwarf2/read.h (struct type_unit_group_unshareable): New.
6079 (struct dwarf2_per_objfile) <type_units>: New member.
6080 <get_type_unit_group_unshareable>: New method.
6081 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
6082 num_symtabs, symtabs>: Remove; move to
6083 type_unit_group_unshareable.
6084 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
6085 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
6086 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
6087
127bbf4b
SM
60882020-05-27 Simon Marchi <simon.marchi@efficios.com>
6089
6090 * dwarf2/read.h (struct dwarf2_per_cu_data):
6091 <dwarf2_per_objfile>: Remove.
6092 * dwarf2/read.c (create_cu_from_index_list): Don't assign
6093 dwarf2_per_objfile.
6094 (create_signatured_type_table_from_index): Likewise.
6095 (create_signatured_type_table_from_debug_names): Likewise.
6096 (create_debug_type_hash_table): Likewise.
6097 (fill_in_sig_entry_from_dwo_entry): Likewise.
6098 (create_type_unit_group): Likewise.
6099 (read_comp_units_from_section): Likewise.
6100 (create_cus_hash_table): Likewise.
6101
f6e649dd
SM
61022020-05-27 Simon Marchi <simon.marchi@efficios.com>
6103
6104 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
6105 dwarf2_per_cu_data::dwarf2_per_objfile.
6106 (compute_compunit_symtab_includes): Likewise.
6107 (dwarf2_cu::start_symtab): Likewise.
6108
aa66c379
SM
61092020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6110
6111 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
6112 parameter.
6113 * dwarf2/read.c (get_die_type_at_offset): Likewise.
6114 (read_namespace_alias): Update.
6115 (lookup_die_type): Update.
6116 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
6117 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
6118 Update.
6119 (disassemble_dwarf_expression): Update.
6120
120ce1b5
SM
61212020-05-27 Simon Marchi <simon.marchi@efficios.com>
6122
6123 * dwarf2/read.h (struct dwarf2_queue_item): Add
6124 dwarf2_per_objfile parameter, assign new parameter.
6125 <per_objfile>: New field.
6126 * dwarf2/read.c (free_one_cached_comp_unit): Add
6127 dwarf2_per_objfile parameter.
6128 (queue_comp_unit): Likewise.
6129 (dw2_do_instantiate_symtab): Update.
6130 (process_psymtab_comp_unit): Update.
6131 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
6132 (process_imported_unit_die): Update.
6133 (queue_and_load_dwo_tu): Update.
6134 (follow_die_offset): Update.
6135 (follow_die_sig_1): Update.
6136
9f47c707
SM
61372020-05-27 Simon Marchi <simon.marchi@efficios.com>
6138
6139 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
6140 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
6141 (read_call_site_scope): Assign per_objfile.
6142 (dwarf2_per_cu_data::objfile): Remove.
6143 * gdbtypes.h (struct call_site) <per_objfile>: New member.
6144 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
6145 dwarf2_per_objfile parameter.
6146 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
6147 dwarf2_per_objfile parameter.
6148 (dwarf_expr_reg_to_entry_parameter): Add output
6149 dwarf2_per_objfile parameter.
6150 (locexpr_get_frame_base): Update.
6151 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
6152 <push_dwarf_reg_entry_value>: Update.
6153 <call_site_to_target_addr>: Update.
6154 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
6155 parameter.
6156 (value_of_dwarf_reg_entry): Update.
6157 (rw_pieced_value): Update.
6158 (indirect_synthetic_pointer): Update.
6159 (dwarf2_evaluate_property): Update.
6160 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
6161 parameter.
6162 (locexpr_read_variable): Update.
6163 (locexpr_get_symbol_read_needs): Update.
6164 (loclist_read_variable): Update.
6165
14095eb3
SM
61662020-05-27 Simon Marchi <simon.marchi@efficios.com>
6167
6168 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6169 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6170 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6171 parameter.
6172 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6173 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6174 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6175 parameter.
6176 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6177 sect_variable_value): Add dwarf2_per_objfile parameter.
6178 (class dwarf_evaluate_loc_desc) <dwarf_call,
6179 dwarf_variable_value>: Update.
6180 (fetch_const_value_from_synthetic_pointer): Add
6181 dwarf2_per_objfile parameter.
6182 (fetch_const_value_from_synthetic_pointer): Update.
6183 (coerced_pieced_ref): Update.
6184 (class symbol_needs_eval_context) <dwarf_call,
6185 dwarf_variable_value>: Update.
6186 (dwarf2_compile_expr_to_ax): Update.
6187
3c3cd3d4
SM
61882020-05-27 Simon Marchi <simon.marchi@efficios.com>
6189
6190 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6191 parameter.
6192 (dwarf2_evaluate_loc_desc_full): Update.
6193
82ca3f51
SM
61942020-05-27 Simon Marchi <simon.marchi@efficios.com>
6195
6196 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6197 parameter.
6198 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6199 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6200 dwarf2_per_objfile parameter.
6201 (decode_debug_loc_dwo_addresses): Likewise.
6202 (dwarf2_find_location_expression): Update.
6203 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6204 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6205 parameter.
6206 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6207 parameter.
6208 (locexpr_describe_location_1): Likewise.
6209 (locexpr_describe_location): Update.
6210
4b167ea1
SM
62112020-05-27 Simon Marchi <simon.marchi@efficios.com>
6212
6213 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6214 Remove.
6215 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6216 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6217 (dwarf2_compile_property_to_c): Update.
6218 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6219 use text offset from objfile.
6220 (locexpr_tracepoint_var_ref): Update.
6221 (locexpr_generate_c_location): Update.
6222 (loclist_describe_location): Update.
6223 (loclist_tracepoint_var_ref): Update.
6224 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6225 dwarf2_per_objfile parameter.
6226 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6227 use text offset from objfile.
6228 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6229
89b07335
SM
62302020-05-27 Simon Marchi <simon.marchi@efficios.com>
6231
6232 * dwarf2/expr.h (struct dwarf_expr_context)
6233 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6234 <offset>: Remove.
6235 <per_objfile>: New member.
6236 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6237 dwarf2_per_objfile parameter. Don't set offset, set
6238 per_objfile.
6239 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6240 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6241 a dwarf2_per_objfile object instead of an offset.
6242 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6243 constructor.
6244 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6245 to dwarf2_expr_executor constructor. Don't set offset.
6246 (dwarf2_fetch_cfa_info): Update.
6247 (struct dwarf2_frame_cache) <text_offset>: Remove.
6248 <per_objfile>: New field.
6249 (dwarf2_frame_cache): Update.
6250 (dwarf2_frame_prev_register): Update.
6251 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6252 <dwarf_evaluate_loc_desc>: Add constructor.
6253 (dwarf2_evaluate_loc_desc_full): Update.
6254 (dwarf2_locexpr_baton_eval): Update.
6255 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6256 Add constructor.
6257 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6258
293e7e51
SM
62592020-05-27 Simon Marchi <simon.marchi@efficios.com>
6260
6261 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6262 addr_sized_int_type>: Move to dwarf2_cu.
6263 <int_type>: Move to dwarf2_per_objfile.
6264 (struct dwarf2_per_objfile) <int_type>: Move here.
6265 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6266 addr_sized_int_type>: Move here.
6267 (read_func_scope): Update.
6268 (read_array_type): Update.
6269 (read_tag_string_type): Update.
6270 (attr_to_dynamic_prop): Update.
6271 (dwarf2_per_cu_data::int_type): Rename to...
6272 (dwarf2_per_objfile::int_type): ... this.
6273 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6274 (dwarf2_cu::addr_sized_int_type): ... this.
6275 (read_subrange_type): Update.
6276 (dwarf2_per_cu_data::addr_type): Rename to...
6277 (dwarf2_cu::addr_type): ... this.
6278 (set_die_type): Update.
6279
64874a40
SM
62802020-05-27 Simon Marchi <simon.marchi@efficios.com>
6281
6282 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6283 data through per_cu->cu.
6284
4ab09049
SM
62852020-05-27 Simon Marchi <simon.marchi@efficios.com>
6286
6287 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6288 dwarf2_per_cu_data parameter fo dwarf2_cu.
6289 (lookup_dwo_type_unit): Likewise.
6290 (read_cutu_die_from_dwo): Likewise.
6291 (lookup_dwo_unit): Likewise.
6292 (open_and_init_dwo_file): Likewise.
6293 (lookup_dwo_cutu): Likewise.
6294 (lookup_dwo_comp_unit): Likewise.
6295 (lookup_dwo_type_unit): Likewise.
6296 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6297 (cutu_reader::cutu_reader): Update.
6298
47b14e86
SM
62992020-05-27 Simon Marchi <simon.marchi@efficios.com>
6300
6301 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6302 parameter.
6303 (process_full_type_unit): Likewise.
6304 (process_queue): Update.
6305
43182c09
SM
63062020-05-27 Simon Marchi <simon.marchi@efficios.com>
6307
6308 * dwarf2/read.c (recursively_compute_inclusions): Add
6309 dwarf2_per_objfile parameter.
6310 (compute_compunit_symtab_includes): Likewise.
6311 (process_cu_includes): Update.
6312
7aa104c4
SM
63132020-05-27 Simon Marchi <simon.marchi@efficios.com>
6314
6315 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6316 parameter.
6317 (create_type_unit_group): Update.
6318 (process_psymtab_comp_unit_reader): Update.
6319 (build_type_psymtabs_reader): Update.
6320
e3beb21d
SM
63212020-05-27 Simon Marchi <simon.marchi@efficios.com>
6322
6323 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6324 object through m_this_cu->cu.
6325
d460f660
SM
63262020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6327
6328 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6329 the info parameter.
6330 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6331
ab432490
SM
63322020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6333
6334 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6335 per_objfile parameter.
6336 (load_full_type_unit): Add per_objfile parameter.
6337 (read_signatured_type): Likewise.
6338 (load_full_comp_unit): Likewise.
6339 (load_cu): Likewise.
6340 (dw2_do_instantiate_symtab): Likewise.
6341 (dw2_get_file_names): Likewise.
6342 (dw2_map_symtabs_matching_filename): Update.
6343 (dw_expand_symtabs_matching_file_matcher): Update.
6344 (dw2_map_symbol_filenames): Update.
6345 (process_psymtab_comp_unit): Add per_objfile parameter.
6346 (build_type_psymtabs_1): Update.
6347 (process_skeletonless_type_unit): Update.
6348 (dwarf2_build_psymtabs_hard): Update.
6349 (load_partial_comp_unit): Add per_objfile parameter.
6350 (scan_partial_symbols): Update.
6351 (load_full_comp_unit): Add per_objfile parameter.
6352 (process_imported_unit_die): Update.
6353 (create_cus_hash_table): Update.
6354 (find_partial_die): Update.
6355 (dwarf2_read_addr_index): Update.
6356 (follow_die_offset): Update.
6357 (dwarf2_fetch_die_loc_sect_off): Update.
6358 (dwarf2_fetch_constant_bytes): Update.
6359 (dwarf2_fetch_die_type_sect_off): Update.
6360 (follow_die_sig_1): Update.
6361 (load_full_type_unit): Add per_objfile parameter.
6362 (read_signatured_type): Likewise.
6363
313bad1b
SM
63642020-05-27 Simon Marchi <simon.marchi@efficios.com>
6365
6366 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6367 of objfile_name.
6368
c3699833
SM
63692020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6370
6371 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6372 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6373 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6374 field.
6375 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6376 (create_cus_from_index): Update.
6377 (dwarf2_read_gdb_index): Update.
6378 (create_cus_from_debug_names): Update.
6379 (dwarf2_read_debug_names): Update.
6380 (get_abbrev_section_for_cu): Update.
6381 (create_all_comp_units): Update.
6382 (read_attribute_value): Update.
6383 (get_debug_line_section): Update.
6384 * dwarf2/index-cache.c (index_cache::store): Update.
6385 * dwarf2/index-write.c (save_gdb_index_command): Update.
6386 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6387
1859c670
SM
63882020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6389
6390 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6391 member.
6392 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6393 dwarf2_per_cu_data::per_bfd.
6394 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6395 (create_type_unit_group): Likewise.
6396 (queue_comp_unit): Remove reference to
6397 per_cu->dwarf2_per_objfile.
6398 (maybe_queue_comp_unit): Likewise.
6399 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6400 (create_cus_hash_table): Assign new field.
6401
5e22e966
SM
64022020-05-27 Simon Marchi <simon.marchi@efficios.com>
6403
6404 * dwarf2/read.c: Replace
6405 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6406 dwarf2_cu->per_objfile throughout.
6407
97a1449a
SM
64082020-05-27 Simon Marchi <simon.marchi@efficios.com>
6409
6410 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6411 parameter, don't use per_cu->dwarf2_per_objfile.
6412 (dw2_instantiate_symtab): Likewise.
6413 (dw2_find_last_source_symtab): Update.
6414 (dw2_map_expand_apply): Update.
6415 (dw2_lookup_symbol): Update.
6416 (dw2_expand_symtabs_for_function): Update.
6417 (dw2_expand_all_symtabs): Update.
6418 (dw2_expand_symtabs_with_fullname): Update.
6419 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6420 don't use per_cu->dwarf2_per_objfile.
6421 (dw2_expand_marked_cus): Update.
6422 (dw2_find_pc_sect_compunit_symtab): Update.
6423 (dw2_debug_names_lookup_symbol): Update.
6424 (dw2_debug_names_expand_symtabs_for_function): Update.
6425 (dw2_debug_names_map_matching_symbols): Update.
6426 (dwarf2_psymtab::expand_psymtab): Update.
6427
9e021579
SM
64282020-05-27 Simon Marchi <simon.marchi@efficios.com>
6429
6430 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6431 <per_objfile>: New member.
6432 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6433 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6434 call to dwarf2_cu.
6435 (cutu_reader::cutu_reader): Update.
6436 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6437
ae090bdb
SM
64382020-05-27 Simon Marchi <simon.marchi@efficios.com>
6439
6440 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6441 struct dwarf2_per_objfile.
6442 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6443 dwarf2_per_bfd.
6444 * dwarf2/read.c (set_die_type): Update.
6445 (get_die_type_at_offset): Update.
6446
af758d11
SM
64472020-05-27 Tom Tromey <tom@tromey.com>
6448 Simon Marchi <simon.marchi@efficios.com>
6449
6450 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6451 method.
6452 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6453 get_symtab, set_symtab>: New methods.
6454 <m_symtabs>: New field.
6455 (struct dwarf2_psymtab): Derive from partial_symtab.
6456 <readin_p, get_compunit_symtab>: Declare methods.
6457 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6458 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6459 New methods.
6460 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6461 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6462 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6463 (dw2_symtab_iter_next, dw2_print_stats)
6464 (dw2_expand_symtabs_with_fullname)
6465 (dw2_expand_symtabs_matching_one)
6466 (dw_expand_symtabs_matching_file_matcher)
6467 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6468 (dw2_debug_names_iterator::next)
6469 (dw2_debug_names_map_matching_symbols)
6470 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6471 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6472 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6473 New methods.
6474 (get_compunit_symtab, process_full_comp_unit)
6475 (process_full_type_unit): Update.
6476 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6477
5989a64e
SM
64782020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6479
6480 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6481 then introduce a new dwarf2_per_objfile type.
6482 <read_line_string>: Move to the new dwarf2_per_objfile type.
6483 <objfile>: Likewise.
6484 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6485 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6486 dwarf2_per_objfile->per_bfd.
6487 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6488 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6489 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6490 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6491 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6492 (dwarf2_per_objfile::locate_sections): Rename to...
6493 (dwarf2_per_bfd::locate_sections): ... this.
6494 (dwarf2_per_objfile::get_cutu): Rename to...
6495 (dwarf2_per_bfd::get_cutu): ... this.
6496 (dwarf2_per_objfile::get_cu): Rename to...
6497 (dwarf2_per_bfd::get_cu): ... this.
6498 (dwarf2_per_objfile::get_tu): Rename to...
6499 (dwarf2_per_bfd::get_tu): ... this.
6500 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6501 (dwarf2_per_bfd::allocate_per_cu): ... this.
6502 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6503 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6504 (get_gdb_index_contents_ftype): Change parameter from
6505 dwarf2_per_objfile to dwarf2_per_bfd.
6506 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6507 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6508
a50264ba
TT
65092020-05-27 Tom Tromey <tom@tromey.com>
6510 Simon Marchi <simon.marchi@efficios.com>
6511
6512 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6513 (allocate_piece_closure): Set "per_objfile" member.
6514 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6515 (locexpr_describe_location, loclist_describe_location): Use new
6516 member.
6517 * dwarf2/read.c (read_call_site_scope)
6518 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6519 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6520 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6521 handle_data_member_location): Set per_objfile member.
6522 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6523 member.
6524 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6525
d3473f0c
TT
65262020-05-27 Tom Tromey <tom@tromey.com>
6527
6528 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6529 allocate_signatured_type>: Declare new methods.
6530 <m_num_psymtabs>: New member.
6531 (struct dwarf2_per_cu_data) <index>: New member.
6532 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6533 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6534 (create_cu_from_index_list): Use allocate_per_cu.
6535 (create_signatured_type_table_from_index)
6536 (create_signatured_type_table_from_debug_names)
6537 (create_debug_type_hash_table, add_type_unit)
6538 (read_comp_units_from_section): Use allocate_signatured_type.
6539
5717c425
TT
65402020-05-27 Tom Tromey <tom@tromey.com>
6541
6542 * psymtab.c (partial_map_expand_apply)
6543 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6544 (psym_lookup_global_symbol_language)
6545 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6546 (psym_print_stats, psym_expand_symtabs_for_function)
6547 (psym_map_symbol_filenames, psym_map_matching_symbols)
6548 (psym_expand_symtabs_matching)
6549 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6550 (maintenance_check_psymtabs): Update.
6551 * psympriv.h (struct partial_symtab) <readin_p,
6552 get_compunit_symtab>: Add objfile parameter.
6553 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6554 Likewise.
6555 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6556 get_compunit_symtab>: Likewise.
6557 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6558
45940949
TT
65592020-05-27 Tom Tromey <tom@tromey.com>
6560
6561 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6562 member.
6563 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6564 (create_cu_from_index_list)
6565 (create_signatured_type_table_from_index)
6566 (create_signatured_type_table_from_debug_names)
6567 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6568 (dwarf2_create_include_psymtab)
6569 (create_debug_type_hash_table, add_type_unit)
6570 (create_type_unit_group, read_comp_units_from_section)
6571 (dwarf2_compute_name, create_cus_hash_table)
6572 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6573 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6574 obstack.
6575 (dw2_get_real_path): Likewise. Change argument to
6576 dwarf2_per_objfile.
6577
f8c6d152
LM
65782020-05-27 Luis Machado <luis.machado@linaro.org>
6579
6580 PR tdep/26000
6581 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6582 for ldrd (immediate).
6583
e98d2e6d
PW
65842020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6585
6586 * command.h: Add comment giving the name of class_tui.
6587 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6588 create the fake command for the help for class_tui.
6589
53a47a3e
TT
65902020-05-26 Tom Tromey <tromey@adacore.com>
6591
6592 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6593 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6594 (val_atr): New function.
6595 (value_val_atr): Use it.
6596 * ada-valprint.c (print_optional_low_bound): Change low bound
6597 handling for enums.
6598 (val_print_packed_array_elements): Don't call discrete_position.
6599 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6600 discrete_position for enum types.
6601 * language.c (default_print_array_index): Change type.
6602 * language.h (struct language_defn) <la_print_array_index>: Add
6603 index_type parameter, change type of index_value.
6604 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6605 (default_print_array_index): Update.
6606 * valprint.c (maybe_print_array_index): Don't call
6607 value_from_longest. Update.
6608 (value_print_array_elements): Don't call discrete_position.
6609
0bc2354b
TT
66102020-05-26 Tom Tromey <tromey@adacore.com>
6611
6612 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6613 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6614
1218a4bf
CDA
66152020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6616
6617 PR gdb/13519
6618 * avr-tdep.c (avr_integer_to_address): Return data or code
6619 address accordingly to the second 'type' argument of the
6620 function.
6621
92651b1d
MW
66222020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6623
6624 * infcmd.c, inferior.h: (construct_inferior_arguments):
6625 Moved function from here to gdbsupport/common-inferior.{h,cc}
6626
0a4f5f8c
TT
66272020-05-23 Tom Tromey <tom@tromey.com>
6628
6629 Revert commit eca1f90c:
6630 * NEWS: Remove entry for completion styling.
6631 * completer.c (_rl_completion_prefix_display_length): Move
6632 declaration later.
6633 (gdb_fnprint): Revert.
6634 (gdb_display_match_list_1): Likewise.
6635 * cli/cli-style.c (completion_prefix_style)
6636 (completion_difference_style, completion_suffix_style): Remove.
6637 (_initialize_cli_style): Revert.
6638 * cli/cli-style.h (completion_prefix_style)
6639 (completion_difference_style, completion_suffix_style): Don't
6640 declare.
6641
e08bd6c5
PA
66422020-05-24 Pedro Alves <palves@redhat.com>
6643
6644 * symtab.c (completion_list_add_name): Return boolean indication
6645 of whether the symbol matched.
6646 (completion_list_add_symbol): Don't try to remove C++ aliases if
6647 the symbol didn't match in the first place.
6648 * symtab.h (completion_list_add_name): Return bool.
6649
ceacbf6e
SM
66502020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6651
6652 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6653 type::field.
6654
26f16254
JB
66552020-05-23 Joel Brobecker <brobecker@adacore.com>
6656
6657 GDB 9.2 released.
6658
eca1f90c
TT
66592020-05-23 Tom Tromey <tom@tromey.com>
6660
6661 * NEWS: Add entry for completion styling.
6662 * completer.c (_rl_completion_prefix_display_length): Move
6663 declaration earlier.
6664 (gdb_fnprint): Use completion_style.
6665 (gdb_display_match_list_1): Likewise.
6666 * cli/cli-style.c (completion_prefix_style)
6667 (completion_difference_style, completion_suffix_style): New
6668 globals.
6669 (_initialize_cli_style): Register new globals.
6670 * cli/cli-style.h (completion_prefix_style)
6671 (completion_difference_style, completion_suffix_style): Declare.
6672
51e2cfa2
PA
66732020-05-23 Pedro Alves <palves@redhat.com>
6674
6675 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6676 (parse_escape): Use ISDIGIT instead of isdigit.
6677 (puts_debug): Use gdb_isprint instead of isprint.
6678 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6679 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6680 ISSPACE instead of isspace.
6681 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6682 instead of isspace.
6683 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6684 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6685 instead of isxdigit and ISDIGIT instead of isdigit.
6686
80fc5e77
SM
66872020-05-22 Simon Marchi <simon.marchi@efficios.com>
6688
6689 * gdbtypes.h (struct type) <field>: New method.
6690 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6691 or type::field.
6692
3cabb6b0
SM
66932020-05-22 Simon Marchi <simon.marchi@efficios.com>
6694
6695 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6696 (TYPE_FIELDS): Use type::fields. Change all call sites that
6697 modify the propery to use type::set_fields instead.
6698
1f704f76
SM
66992020-05-22 Simon Marchi <simon.marchi@efficios.com>
6700
6701 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6702 type::num_fields instead.
6703
5e33d5f4
SM
67042020-05-22 Simon Marchi <simon.marchi@efficios.com>
6705
6706 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6707 methods.
6708 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6709 that modify the number of fields to use type::set_num_fields
6710 instead.
6711
9392ebb3
TT
67122020-05-22 Tom Tromey <tromey@adacore.com>
6713
6714 * compile/compile-object-load.h (munmap_list_free): Don't
6715 declare.
6716
7c13f4e8
AB
67172020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6718
6719 * annotate.c (annotate_source_line): Update return type, add call
6720 to update current symtab and line.
6721 * annotate.h (annotate_source_line): Update return type, and
6722 extend header comment.
6723 * source.c (info_line_command): Check annotation_level before
6724 calling annotate_source_line.
6725 * stack.c (print_frame_info): If calling annotate_source_line
6726 returns true, then don't print any other source line information.
6727
aa370940
SM
67282020-05-21 Simon Marchi <simon.marchi@efficios.com>
6729
6730 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6731
84d53fa9
SM
67322020-05-21 Simon Marchi <simon.marchi@efficios.com>
6733
6734 * coffread.c (patch_type): Remove NULL check before xfree.
6735 * corefile.c (set_gnutarget): Likewise.
6736 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6737 * exec.c (build_section_table): Likewise.
6738 * remote.c (remote_target::pass_signals): Likewise.
6739 * utils.c (n_spaces): Likewise.
6740 * cli/cli-script.c (document_command): Likewise.
6741 * i386-windows-tdep.c (core_process_module_section): Likewise.
6742 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6743
9d428aae
SM
67442020-05-20 Simon Marchi <simon.marchi@efficios.com>
6745
6746 * symfile.c (reread_symbols): Clear objfile's section_offsets
6747 vector and section indices, re-compute them by calling
6748 sym_offsets.
6749
250106a7
TT
67502020-05-20 Tom Tromey <tromey@adacore.com>
6751
6752 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 6753 (desc_one_bound, desc_index_type): Compute field name.
250106a7 6754
9a0bacfb
TV
67552020-05-20 Tom de Vries <tdevries@suse.de>
6756
6757 PR symtab/25833
6758 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6759
7b958a48
AM
67602020-05-20 Alan Modra <amodra@gmail.com>
6761
6762 PR 25993
6763 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6764 bfd_set_filename.
6765 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6766 passed to bfd_set_filename.
6767 * symfile-mem.c (add_vsyscall_page): Likewise for string
6768 passed to symbol_file_add_from_memory.
6769 (symbol_file_add_from_memory): Make name param a const char* and
6770 don't strdup.
6771
c7e97679
AM
67722020-05-20 Alan Modra <amodra@gmail.com>
6773
6774 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6775 rather than accessing bfd->filename directly.
6776 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6777 and use bfd_section_name.
6778 * dwarf2/frame.c (decode_frame_entry): Likewise.
6779 * exec.c (exec_set_section_address): Likewise.
6780 * solib-aix.c (solib_aix_bfd_open): Likewise.
6781 * stap-probe.c (get_stap_base_address): Likewise.
6782 * symfile.c (reread_symbols): Likewise.
6783
563c591b
TT
67842020-05-19 Tom Tromey <tromey@adacore.com>
6785
6786 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6787
f408d82c
SM
67882020-05-19 Simon Marchi <simon.marchi@efficios.com>
6789
6790 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6791
98c59b52
PA
67922020-05-19 Pedro Alves <palves@redhat.com>
6793
6794 * NEWS (set exec-file-mismatch): Adjust entry.
6795 * exec.c: Include "build-id.h".
6796 (validate_exec_file): Try to match build IDs instead of filenames.
6797 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6798 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6799 and pass down 'warn_if_slow'.
6800 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6801 gdb_bfd_open_closure to pass it down.
6802 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6803
4111f652
PA
68042020-05-19 Pedro Alves <palves@redhat.com>
6805
6806 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6807 * target.c (target_fileio_open_1): Rename to target_fileio_open
6808 and make extern. Use bool.
6809 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6810 (target_fileio_read_alloc_1): Adjust.
6811 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6812 (target_fileio_open_warn_if_slow): Delete declaration.
6813
ad80db5b
PA
68142020-05-19 Pedro Alves <palves@redhat.com>
6815
6816 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6817 Adjust all callers.
6818
1d6ce4d3
YS
68192020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6820
6821 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6822 whether disp is negative.
6823
9005fbbb
SM
68242020-05-19 Simon Marchi <simon.marchi@efficios.com>
6825
6826 * symfile.h (struct symfile_segment_data)
6827 <~symfile_segment_data>: Remove.
6828 <segment_info>: Change to std::vector.
6829 * symfile.c (default_symfile_segments): Update.
6830 * elfread.c (elf_symfile_segments): Update.
6831
68b888ff
SM
68322020-05-19 Simon Marchi <simon.marchi@efficios.com>
6833
6834 * symfile.h (struct symfile_segment_data) <struct segment>: New.
6835 <segments>: New.
6836 <segment_bases, segment_sizes>: Remove.
6837 * symfile.c (default_symfile_segments): Update.
6838 * elfread.c (elf_symfile_segments): Update.
6839 * remote.c (remote_target::get_offsets): Update.
6840 * solib-target.c (solib_target_relocate_section_addresses):
6841 Update.
6842
62982abd
SM
68432020-05-19 Simon Marchi <simon.marchi@efficios.com>
6844
6845 * symfile.h (struct symfile_segment_data): Initialize fields.
6846 <~symfile_segment_data>: Add.
6847 (symfile_segment_data_up): New.
6848 (struct sym_fns) <sym_segments>: Return a
6849 symfile_segment_data_up.
6850 (default_symfile_segments): Return a symfile_segment_data_up.
6851 (free_symfile_segment_data): Remove.
6852 (get_symfile_segment_data): Return a symfile_segment_data_up.
6853 * symfile.c (default_symfile_segments): Likewise.
6854 (get_symfile_segment_data): Likewise.
6855 (free_symfile_segment_data): Remove.
6856 (symfile_find_segment_sections): Update.
6857 * elfread.c (elf_symfile_segments): Return a
6858 symfile_segment_data_up.
6859 * remote.c (remote_target::get_offsets): Update.
6860 * solib-target.c (solib_target_relocate_section_addresses):
6861 Update.
6862 * symfile-debug.c (debug_sym_segments): Return a
6863 symfile_segment_data_up.
6864
7f204339
RO
68652020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6866
e52a0f1b
RO
6867 PR build/25981
6868 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
6869 Hardcode register numbers.
6870
7f204339
RO
6871 PR build/25981
6872 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
6873 procfs_find_LDT_entry): Remove.
6874 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
6875 procfs_find_LDT_entry): Remove.
6876 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
6877 Remove.
6878
7f32a4d5
PA
68792020-05-17 Pedro Alves <palves@redhat.com>
6880 Andrew Burgess <andrew.burgess@embecosm.com>
6881 Keno Fischer <keno@juliacomputing.com>
6882
6883 PR gdb/25741
6884 * breakpoint.c (build_target_condition_list): Update comments.
6885 (build_target_command_list): Update comments and skip matching
6886 locations.
6887 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
6888 a separate function. Simplify "set breakpoint auto-hw off"
6889 handling.
6890 (insert_breakpoints): Update comment.
6891 (tracepoint_locations_match): New parameter. For breakpoints,
6892 compare location types too, if the caller wants to.
6893 (handle_automatic_hardware_breakpoints): New functions.
6894 (bp_location_is_less_than): Also sort by location type and
6895 hardware breakpoint length.
6896 (update_global_location_list): Handle "set breakpoint auto-hw on"
6897 here.
6898 (update_breakpoint_locations): Ask breakpoint_locations_match to
6899 ignore location types.
6900
7d93a1e0
SM
69012020-05-16 Simon Marchi <simon.marchi@efficios.com>
6902
6903 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6904 type::name instead.
6905
d0e39ea2
SM
69062020-05-16 Simon Marchi <simon.marchi@efficios.com>
6907
6908 * gdbtypes.h (struct type) <name, set_name>: New methods.
6909 (TYPE_CODE): Use type::name. Change all call sites used to set
6910 the name to use type::set_name instead.
6911
2dab0c7b
TT
69122020-05-16 Tom Tromey <tom@tromey.com>
6913
6914 * top.c (quit_force): Update.
6915 * infrun.c (handle_no_resumed): Update.
6916 * top.h (all_uis): New function.
6917 (ALL_UIS): Remove.
6918
59f7bd8d
SM
69192020-05-16 Simon Marchi <simon.marchi@efficios.com>
6920
6921 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6922
9bf058f0
PA
69232020-05-16 Pedro Alves <palves@redhat.com>
6924
6925 * ia64-linux-nat.c
6926 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6927 Declare method.
6928 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6929
8f86ae1a
SM
69302020-05-15 Simon Marchi <simon.marchi@efficios.com>
6931
6932 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6933 (sparc64_adi_info): Likewise.
6934
d6bc0792
TT
69352020-05-15 Tom Tromey <tom@tromey.com>
6936
6937 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6938 block_objfile.
6939 (lookup_objfile_from_block): Remove.
6940 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6941 (lookup_global_symbol): Use block_objfile.
6942 * symtab.h (lookup_objfile_from_block): Don't declare.
6943 * printcmd.c (clear_dangling_display_expressions): Use
6944 block_objfile.
6945 * parse.c (operator_check_standard): Use block_objfile.
6946
8c14c3a3
TT
69472020-05-15 Tom Tromey <tom@tromey.com>
6948
6949 * language.c (language_alloc_type_symbol): Set
6950 SYMBOL_SECTION.
6951 * symtab.c (initialize_objfile_symbol): Remove.
6952 (allocate_symbol): Remove.
6953 (allocate_template_symbol): Remove.
6954 * dwarf2/read.c (fixup_go_packaging): Use "new".
6955 (new_symbol): Use "new".
6956 (read_variable): Don't call initialize_objfile_symbol. Use
6957 "new".
6958 (read_func_scope): Use "new".
6959 * xcoffread.c (process_xcoff_symbol): Don't call
6960 initialize_objfile_symbol.
6961 (SYMBOL_DUP): Remove.
6962 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6963 "new".
6964 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6965 (allocate_template_symbol): Don't declare.
6966 (struct symbol): Add copy constructor. Change defaults.
6967 * jit.c (finalize_symtab): Use "new".
6968 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6969 Use "new".
6970 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6971 (common_block_end): Use "new".
6972 * mdebugread.c (parse_symbol): Use "new".
6973 (new_symbol): Likewise.
6974
5b4a1a8d
PW
69752020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6976
6977 * NEWS: Mention changes to help and apropos.
6978
57b4f16e
PW
69792020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6980
6981 * command.h (enum command_class): Improve comments, document
6982 that class_alias is for user-defined aliases, give the class
6983 name for each class, remove unused class_xdb.
6984 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6985 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6986 by a precise class.
6987 * infcmd.c (_initialize_infcmd): Likewise.
6988 * reverse.c (_initialize_reverse): Likewise.
6989 * stack.c (_initialize_stack): Likewise.
6990 * symfile.c (_initialize_symfile): Likewise.
6991 * tracepoint.c (_initialize_tracepoint): Likewise.
6992
7c05caf7
PW
69932020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6994
6995 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6996 when their aliased command is traversed.
6997 (help_cmd): Add fput_command_names_styled call to
6998 output command name and aliases when command has an alias.
6999
3b3aaacb
PW
70002020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7001
7002 * cli/cli-decode.h (help_cmd_list): Remove declaration.
7003 * cli/cli-decode.c (help_cmd_list): Declare as static,
7004 remove prefix argument, use bool for recurse arg, rework to show the aliases of
7005 a command together with the command.
7006 (fput_command_name_styled, fput_command_names_styled): New functions.
7007 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
7008 fput_command_name_styled.
7009 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
7010 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
7011
7aa1b46f
PW
70122020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7013
7014 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
7015 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
7016 * command.h (cmd_show_list): Likewise.
7017 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
7018 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
7019
89bcba74
PW
70202020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7021
7022 * unittests/command-def-selftests.c (traverse_command_structure):
7023 Verify all commands of a list have the same prefix command and
7024 that only the top cmdlist commands have a null prefix.
7025
3f4d92eb
PW
70262020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7027
7028 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
7029 as prefix, not one of its aliases.
7030 (set_cmd_prefix): Remove.
7031 (do_add_cmd): Centralize the setting of the prefix of a command, when
7032 command is defined after its full chain of prefix commands.
7033 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
7034 (add_setshow_cmd_full): Likewise.
7035 (update_prefix_field_of_prefixed_commands): New function.
7036 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
7037 update_prefix_field_of_prefixed_commands.
7038 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
7039 addresses of remote_set_cmdlist and remote_show_cmdlist given
7040 as argument, not the address of an argument.
7041 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
7042 * gdb/remote.c (_initialize_remote): Likewise.
7043
0605465f
PW
70442020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7045
7046 * cli/cli-cmds.c (alias_command): Check for an existing alias
7047 using lookup_cmd_composition, as valid_command_p is too strict
7048 and forbids aliases that are the prefix of an existing alias
7049 or command.
7050 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
7051 command is properly recognised as a valid command.
7052
58e6ac70
PW
70532020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7054
7055 * unittests/help-doc-selftests.c: Rename to
7056 unittests/command-def-selftests.c
7057 * unittests/command-def-selftests.c (help_doc_tests): Update some
7058 comments.
7059 (command_structure_tests, traverse_command_structure): New namespace
7060 and function.
7061 (command_structure_invariants_tests): New function.
7062 (_initialize_command_def_selftests) Renamed from
7063 _initialize_help_doc_selftests, register command_structure_invariants
7064 selftest.
7065
a7b9ceb8
PW
70662020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7067
7068 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
7069 an alias of 'show'.
7070
b2188a06
JB
70712020-05-15 Joel Brobecker <brobecker@adacore.com>
7072
7073 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
7074 ada_is_fixed_point_type. Update all callers.
7075 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
7076 all callers.
7077 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
7078 Update all callers.
7079 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
7080 print_fixed_point_type. Update all callers.
7081 * ada-valprint.c (ada_value_print_num): Replace call to
7082 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
7083
a51951c2
KB
70842020-05-14 Kevin Buettner <kevinb@redhat.com>
7085
7086 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
7087 processors.
7088 (cpu_supports_bts): Add CV_AMD case.
7089
29d6859f
LM
70902020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
7091 Simon Marchi <simon.marchi@efficios.com>
7092
7093 * infrun.c (stop_all_threads): Collect multiple wait events at
7094 each pass.
7095
78134374
SM
70962020-05-14 Simon Marchi <simon.marchi@efficios.com>
7097
7098 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
7099 type::code instead.
7100
67607e24
SM
71012020-05-14 Simon Marchi <simon.marchi@efficios.com>
7102
7103 * gdbtypes.h (struct type) <code, set_code>: New methods.
7104 (TYPE_CODE): Use type::code. Change all call sites used to set
7105 the code to use type::set_code instead.
7106
a05575d3
TBA
71072020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7108 Tom de Vries <tdevries@suse.de>
7109 Pedro Alves <palves@redhat.com>
7110
7111 PR threads/25478
7112 * infrun.c (stop_all_threads): Do NOT ignore
7113 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
7114 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
7115 received.
7116 (handle_no_resumed): Remove code handling a live inferior with no
7117 threads.
7118 * remote.c (has_single_non_exited_thread): New.
7119 (remote_target::update_thread_list): Do not delete a thread if is
7120 the last thread of the process.
7121 * thread.c (thread_select): Call delete_exited_threads instead of
7122 prune_threads.
7123
6ad82919
TBA
71242020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7125
7126 * infrun.c (stop_all_threads): Enable/disable thread events of all
7127 targets. Move a debug message denoting the end of the function
7128 into the SCOPED_EXIT block.
7129
d890404b
TBA
71302020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7131
7132 * process-stratum-target.h: Include <set>.
7133 (all_non_exited_process_targets, switch_to_target_no_thread): New
7134 function declarations.
7135 * process-stratum-target.c (all_non_exited_process_targets)
7136 (switch_to_target_no_thread): New function implementations.
7137
293b3ebc
TBA
71382020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7139
7140 * infrun.c (handle_inferior_event): Extract out a piece of code
7141 into...
7142 (mark_non_executing_threads): ...this new function.
7143
7ca9b62a
TBA
71442020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7145
7146 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
7147 use.
7148
fc75c28b
TBA
71492020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7150
7151 * regcache.c (regcache_read_pc_protected): New function
7152 implementation that returns 0 if the PC cannot read via
7153 'regcache_read_pc'.
7154 * infrun.c (proceed): Call 'regcache_read_pc_protected'
7155 instead of 'regcache_read_pc'.
7156 (keep_going_pass_signal): Ditto.
7157
a89febbd
TT
71582020-05-13 Tom Tromey <tromey@adacore.com>
7159
7160 * ada-lang.c (align_value): Remove.
7161 (ada_template_to_fixed_record_type_1): Use align_up.
7162
f7e23710
TBA
71632020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7164
7165 * async-event.c: Update the copyright year.
7166 * async-event.h: Update the copyright year.
7167
02ff80c2
SM
71682020-05-12 Simon Marchi <simon.marchi@efficios.com>
7169
7170 * objfiles.h (is_addr_in_objfile,
7171 shared_objfile_contains_address_p): Return bool.
7172 * objfile.c (is_addr_in_objfile,
7173 shared_objfile_contains_address_p): Return bool.
7174
4fd6c7e8
TT
71752020-05-11 Tom Tromey <tromey@adacore.com>
7176
7177 * cli/cli-cmds.c (info_command): Restore.
7178 (_initialize_cli_cmds): Use add_prefix_command for "info".
7179 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7180
5eb68a39
TT
71812020-05-11 Tom Tromey <tromey@adacore.com>
7182
7183 * ada-lang.c (ada_value_primitive_field): Now public.
7184 * ada-lang.h (ada_value_primitive_field): Declare.
7185 * ada-valprint.c (print_field_values): Use
7186 ada_value_primitive_field for wrapper fields.
7187
7666722f
TV
71882020-05-11 Tom de Vries <tdevries@suse.de>
7189
7190 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7191 MODULE_DOMAIN.
7192
3ee6bb11
TV
71932020-05-11 Tom de Vries <tdevries@suse.de>
7194
7195 PR symtab/25941
7196 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7197 with length 0, if not gdb-produced.
7198 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7199
43434996
TV
72002020-05-09 Tom de Vries <tdevries@suse.de>
7201
7202 PR gdb/25955
7203 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7204 calculation.
7205
2f78cffc
TT
72062020-05-09 Tom Tromey <tom@tromey.com>
7207
7208 * top.c (server_command): Now bool.
7209 * top.h (server_command): Now bool.
7210
4f7bc5ed
TT
72112020-05-08 Tom Tromey <tromey@adacore.com>
7212
7213 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7214 already being processed.
7215
8be4b118
TT
72162020-05-08 Tom Tromey <tom@tromey.com>
7217
7218 * printcmd.c (struct display) <next>: Remove.
7219 <display>: New constructor.
7220 <exp_string>: Now a std::string.
7221 <enabled_p>: Now a bool.
7222 (display_number): Move definition earlier.
7223 (displays): Rename from display_chain. Now a std::vector.
7224 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7225 (display_command): Update.
7226 (do_one_display, disable_display)
7227 (enable_disable_display_command, do_enable_disable_display):
7228 Update.
7229 (free_display): Remove.
7230 (clear_displays): Rewrite.
7231 (delete_display): Update.
7232 (map_display_numbers): Use function_view. Remove "data"
7233 parameter. Update.
7234 (do_delete_display): Remove.
7235 (undisplay_command): Update.
7236 (do_one_display, do_displays, disable_display)
7237 (info_display_command): Update.
7238 (do_enable_disable_display): Remove.
7239 (enable_disable_display_command)
7240 (clear_dangling_display_expressions): Update.
7241
94c93c35
TT
72422020-05-08 Tom Tromey <tom@tromey.com>
7243
7244 * symtab.c (set_symbol_cache_size)
7245 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7246 (maintenance_print_symbol_cache_statistics): Update.
7247 * symmisc.c (print_symbol_bcache_statistics)
7248 (print_objfile_statistics, maintenance_print_objfiles)
7249 (maintenance_info_symtabs, maintenance_check_symtabs)
7250 (maintenance_expand_symtabs, maintenance_info_line_tables):
7251 Update.
7252 * symfile-debug.c (set_debug_symfile): Update.
7253 * source.c (forget_cached_source_info): Update.
7254 * python/python.c (gdbpy_progspaces): Update.
7255 * psymtab.c (maintenance_info_psymtabs): Update.
7256 * probe.c (parse_probes): Update.
7257 * linespec.c (iterate_over_all_matching_symtabs)
7258 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7259 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7260 * exec.c (exec_target::close): Update.
7261 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7262 * breakpoint.c (print_one_breakpoint_location)
7263 (create_longjmp_master_breakpoint)
7264 (create_std_terminate_master_breakpoint): Update.
7265 * progspace.c (program_spaces): Now a std::vector.
7266 (maybe_new_address_space): Update.
7267 (add_program_space): Remove.
7268 (program_space::program_space): Update.
7269 (remove_program_space): Update.
7270 (number_of_program_spaces): Remove.
7271 (print_program_space, update_address_spaces): Update.
7272 * progspace.h (program_spaces): Change type.
7273 (ALL_PSPACES): Remove.
7274 (number_of_program_spaces): Don't declare.
7275 (struct program_space) <next>: Remove.
7276
a1fd1ac9
TT
72772020-05-08 Tom Tromey <tom@tromey.com>
7278
7279 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7280 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7281 (enable_break): Update.
7282 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7283 (frv_fdpic_find_canonical_descriptor): Update.
7284 (frv_fetch_objfile_link_map): Update.
7285 * progspace.c (program_space::free_all_objfiles): Update.
7286 (program_space::solibs): New method.
7287 * progspace.h (struct program_space) <solibs>: New method.
7288 * solist.h (master_so_list): Don't declare.
7289 (ALL_SO_LIBS): Remove.
7290 * solib.h (so_list_head): Remove.
7291 (update_solib_list): Update comment.
7292 * solib.c (master_so_list): Remove.
7293 (solib_used, update_solib_list, solib_add)
7294 (info_sharedlibrary_command, clear_solib)
7295 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7296
38eae084
TT
72972020-05-08 Tom Tromey <tom@tromey.com>
7298
7299 * extension.c (extension_languages): Now a std::array.
7300 (ALL_EXTENSION_LANGUAGES): Remove.
7301 (get_ext_lang_defn, get_ext_lang_of_file)
7302 (eval_ext_lang_from_control_command): Update.
7303 (finish_ext_lang_initialization)
7304 (auto_load_ext_lang_scripts_for_objfile)
7305 (ext_lang_type_printers::ext_lang_type_printers)
7306 (apply_ext_lang_type_printers)
7307 (ext_lang_type_printers::~ext_lang_type_printers)
7308 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7309 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7310 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7311 (get_matching_xmethod_workers, ext_lang_colorize)
7312 (ext_lang_before_prompt): Update.
7313 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7314
596dc4ad
TT
73152020-05-08 Tom Tromey <tom@tromey.com>
7316
7317 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7318 overload.
7319 <swap_string, m_string>: Remove.
7320 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7321 Update.
7322 * stabsread.c (define_symbol, read_type): Update.
7323 * linespec.c (find_linespec_symbols): Update.
7324 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7325 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7326 * dbxread.c (read_dbx_symtab): Update.
7327 * cp-support.h (cp_canonicalize_string_full)
7328 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7329 Return unique_xmalloc_ptr.
7330 * cp-support.c (inspect_type): Update.
7331 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7332 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7333 Likewise.
7334 * c-typeprint.c (print_name_maybe_canonical): Update.
7335 * break-catch-throw.c (check_status_exception_catchpoint):
7336 Update.
7337
bf4cb9be
TV
73382020-05-08 Tom de Vries <tdevries@suse.de>
7339
7340 * infrun.c (follow_fork): Copy current_line and current_symtab to
7341 child thread.
7342
a1b68f28
SM
73432020-05-07 Simon Marchi <simon.marchi@efficios.com>
7344
7345 * async-event.c (struct async_signal_handler, struct
7346 async_event_handler): Reformat, remove typedef.
7347
98d48915
SM
73482020-05-07 Simon Marchi <simon.marchi@efficios.com>
7349
7350 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7351 access thistype->main_type->dyn_prop_list directly.
7352
7aa91313
SM
73532020-05-07 Simon Marchi <simon.marchi@efficios.com>
7354
7355 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7356 (remove_dyn_prop): Remove. Update all users to use
7357 type::remove_dyn_prop.
7358 * gdbtypes.c (remove_dyn_prop): Rename to...
7359 (type::remove_dyn_prop): ... this.
7360
5c54719c
SM
73612020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7362
7363 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7364 (add_dyn_prop): Remove. Update all users to use
7365 type::add_dyn_prop.
7366 * gdbtypes.c (add_dyn_prop): Rename to...
7367 (type::add_dyn_prop): ... this.
7368
24e99c6c
SM
73692020-05-07 Simon Marchi <simon.marchi@efficios.com>
7370
7371 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7372 (get_dyn_prop): Remove. Update all users to use
7373 type::dyn_prop.
7374 * gdbtypes.c (get_dyn_prop): Rename to...
7375 (type::dyn_prop): ... this.
7376
0d4bf016
SM
73772020-05-06 Simon Marchi <simon.marchi@efficios.com>
7378
7379 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7380
ac4a4f1c
SM
73812020-05-06 Simon Marchi <simon.marchi@efficios.com>
7382
7383 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7384 instruction, skip it if it's there.
7385
a3bbacc1
SM
73862020-05-05 Simon Marchi <simon.marchi@efficios.com>
7387
7388 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7389
c3236f84
SM
73902020-05-04 Simon Marchi <simon.marchi@efficios.com>
7391
7392 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7393 * gdbtypes.c (recursive_dump_type): Remove use of
7394 TYPE_INCOMPLETE.
7395
3b6acaee
TT
73962020-05-03 Tom Tromey <tom@tromey.com>
7397
7398 * breakpoint.c (catch_command, tcatch_command): Remove.
7399 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7400 add_show_prefix_cmd.
7401 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7402 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7403 Remove.
7404 (add_internal_problem_command): Use add_basic_prefix_cmd,
7405 add_show_prefix_cmd.
7406 * mips-tdep.c (set_mipsfpu_command): Remove.
7407 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7408 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7409 (_initialize_index_cache): Use add_basic_prefix_cmd.
7410 * memattr.c (dummy_cmd): Remove.
7411 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7412 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7413 (_initialize_tui_win): Use add_basic_prefix_cmd,
7414 add_show_prefix_cmd.
7415 * cli/cli-logging.c (set_logging_command): Remove.
7416 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7417 add_show_prefix_cmd.
7418 (show_logging_command): Remove.
7419 * target.c (target_command): Remove.
7420 (add_target): Use add_basic_prefix_cmd.
7421
a51119cd
HD
74222020-05-02 Hannes Domani <ssbssa@yahoo.de>
7423
7424 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7425
652fc23a 74262020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7427
652fc23a
PW
7428 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7429 info_command.
7430
117539e6
KR
74312020-04-30 Kamil Rytarowski <n54@gmx.com>
7432
7433 * nbsd-nat.c (nbsd_enable_proc_events)
7434 (nbsd_nat_target::post_startup_inferior): Add.
7435 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7436 (nbsd_nat_target::update_thread_list): Rewrite.
7437 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7438 "PTRACE_LWP_CREATE".
7439 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7440
102e38eb 74412020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7442
102e38eb
PW
7443 * stack.c (_initialize_stack): Remove duplicated creation
7444 of "frame" command and "f" alias.
7445
ee9d1e5f
HD
74462020-04-30 Hannes Domani <ssbssa@yahoo.de>
7447
7448 PR gdb/18706
7449 * gdbtypes.c (check_typedef): Calculate size of array of
7450 stubbed type.
7451
627c7fb8
HD
74522020-04-30 Hannes Domani <ssbssa@yahoo.de>
7453
7454 PR gdb/15559
7455 * i386-tdep.c (i386_push_dummy_call): Call
7456 i386_thiscall_push_dummy_call.
7457 (i386_thiscall_push_dummy_call): New function.
7458 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7459 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7460 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7461
ffc2844e
SM
74622020-04-29 Simon Marchi <simon.marchi@efficios.com>
7463
7464 * gdbarch.sh (do_read): Add shellcheck disable directive for
7465 warning SC2162.
7466
1207375d
SM
74672020-04-29 Simon Marchi <simon.marchi@efficios.com>
7468
7469 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7470 "referenced but not assigned" warning.
7471
9fdb2916
SM
74722020-04-29 Simon Marchi <simon.marchi@efficios.com>
7473
7474 * gdbarch.sh: Remove code that sets fallbackdefault.
7475
759cea5e
SM
74762020-04-29 Simon Marchi <simon.marchi@efficios.com>
7477
7478 * gdbarch.sh: Use shell operators && and || instead of
7479 -a and -o.
7480
cb02ab24
SM
74812020-04-29 Simon Marchi <simon.marchi@efficios.com>
7482
7483 * gdbarch.sh: Use $(...) instead of `...`.
7484
a6fc5ffc
SM
74852020-04-29 Simon Marchi <simon.marchi@efficios.com>
7486
7487 * gdbarch.sh: Use double quotes around variables.
7488
8d113d13
SM
74892020-04-29 Simon Marchi <simon.marchi@efficios.com>
7490
7491 * gdbarch.sh: Use %s with printf, instead of variables in the
7492 format string.
7493
ed6acedd
TT
74942020-04-29 Tom Tromey <tromey@adacore.com>
7495
7496 PR ada/25875:
7497 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7498 type fields here.
7499 (read_enumeration_type): Call
7500 update_enumeration_type_from_children later. Update comments.
7501 (process_enumeration_scope): Don't create type fields.
7502
b68b1b58
KR
75032020-04-29 Kamil Rytarowski <n54@gmx.com>
7504
7505 * nbsd-tdep.c: Include "xml-syscall.h".
7506 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7507
f94b2e03
KR
75082020-04-29 Kamil Rytarowski <n54@gmx.com>
7509
7510 * nbsd-nat.c: Include "sys/wait.h".
7511 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7512 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7513 (nbsd_nat_target::remove_exec_catchpoint)
7514 (nbsd_nat_target::set_syscall_catchpoint): Add.
7515 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7516 (nbsd_nat_target::insert_exec_catchpoint)
7517 (nbsd_nat_target::remove_exec_catchpoint)
7518 (nbsd_nat_target::set_syscall_catchpoint): Add.
7519 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7520 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7521 `nbsd_get_syscall_number'.
7522
fc49bc72
TT
75232020-04-29 Tom Tromey <tom@tromey.com>
7524
7525 * stack.c (print_block_frame_labels): Remove.
7526
d642b692
HD
75272020-04-29 Hannes Domani <ssbssa@yahoo.de>
7528
7529 PR gdb/17320
7530 * ada-valprint.c (val_print_packed_array_elements): Move array
7531 end bracket to new line.
7532 (ada_val_print_string): Remove extra spaces before first array
7533 element.
7534 * c-valprint.c (c_value_print_array): Likewise.
7535 * m2-valprint.c (m2_print_array_contents): Likewise.
7536 (m2_value_print_inner): Likewise.
7537 * p-valprint.c (pascal_value_print_inner): Likewise.
7538 * valprint.c (generic_val_print_array): Likewise.
7539 (value_print_array_elements): Move first array element and array
7540 end bracket to new line.
7541
ea90f227
TV
75422020-04-29 Tom de Vries <tdevries@suse.de>
7543
7544 PR symtab/25889
7545 * linespec.c (find_method): Fix ix calculation.
7546
4498ef4f
KR
75472020-04-28 Kamil Rytarowski <n54@gmx.com>
7548
7549 * syscalls/update-netbsd.sh: New file.
7550 * syscalls/netbsd.xml: Regenerate.
7551 * data-directory/Makefile.in: Register `netbsd.xml' in
7552 `SYSCALLS_FILES'.
7553
a55e30b5
SM
75542020-04-28 Simon Marchi <simon.marchi@efficios.com>
7555
7556 * syscalls/update-freebsd.sh: Add double quotes.
7557
2b2fbab8
TT
75582020-04-28 Tom Tromey <tom@tromey.com>
7559
7560 * NEWS: Update.
7561 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7562 (cmdpy_init): Allow class_tui.
7563
a65189c9
TV
75642020-04-28 Mark Williams <mark@myosotissp.com>
7565
7566 PR gdb/24480
7567 * dwarf2read.c: Add missing assingments to list_in_scope when
7568 start_symtab was already called.
7569
1b95cdb7
SM
75702020-04-28 Simon Marchi <simon.marchi@efficios.com>
7571
7572 PR gdb/25881
7573 * dwarf2/read.c (offset_map_type): Use
7574 gdb:hash_enum<sect_offset> as hash function.
7575
15cd93d0
TV
75762020-04-28 Tom de Vries <tdevries@suse.de>
7577
7578 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7579 with DW_AT_signature.
7580
1eb39914
SM
75812020-04-27 Simon Marchi <simon.marchi@efficios.com>
7582
7583 * configure.ac: Remove check for fs_base/gs_base in
7584 user_regs_struct.
7585 * configure: Re-generate.
7586 * config.in: Re-generate.
7587 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7588 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7589 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7590
991a3e2e
LM
75912020-04-27 Luis Machado <luis.machado@linaro.org>
7592
7593 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7594 problematic inline frame unwinding situation.
7595 * frame.c (frame_id_computed_p): New function.
7596 * frame.h (frame_id_computed_p): New prototype.
7597
361ba0e8
TT
75982020-04-26 Tom Tromey <tom@tromey.com>
7599
7600 * command.h (enum command_class) <class_pseudo>: Remove.
7601
bc3609fd
PW
76022020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7603
7604 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7605 and whitespace.
7606
b9771db7
KR
76072020-04-25 Kamil Rytarowski <n54@gmx.com>
7608
ec16513e
SM
7609 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7610 `PT_GET_PROCESS_STATE' block.
b9771db7 7611
7151c1af
TT
76122020-04-24 Tom Tromey <tom@tromey.com>
7613
7614 * symtab.h (symbol_get_demangled_name): Don't declare.
7615 * symtab.c (symbol_get_demangled_name): Remove.
7616 (general_symbol_info::natural_name)
7617 (general_symbol_info::demangled_name): Update.
7618
906bb4c5
TT
76192020-04-24 Tom Tromey <tom@tromey.com>
7620
7621 PR rust/25025:
7622 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7623
bcfe6157
TT
76242020-04-24 Tom Tromey <tom@tromey.com>
7625
7626 PR symtab/12707:
7627 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7628 exists.
7629 (new_symbol): Likewise.
7630 * compile/compile-object-load.c (get_out_value_type): Use
7631 symbol_matches_search_name.
7632
f049a313
TT
76332020-04-24 Tom Tromey <tom@tromey.com>
7634
7635 * dwarf2/read.c (add_partial_symbol): Do not call
7636 compute_and_set_names.
7637
76e288d1
TT
76382020-04-24 Tom Tromey <tom@tromey.com>
7639
7640 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7641 overload.
7642
2467f4f6
TT
76432020-04-24 Tom Tromey <tom@tromey.com>
7644
7645 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7646 (add_psymbol_to_list): New overload. Make old overload call new
7647 one.
7648 * psympriv.h (add_psymbol_to_list): New overload.
7649
e61108c9
TT
76502020-04-24 Tom Tromey <tom@tromey.com>
7651
7652 * dwarf2/read.c (partial_die_info::read) <case
7653 DW_AT_linkage_name>: Use value_as_string.
7654 (dwarf2_string_attr): Use value_as_string.
7655 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7656 method.
7657 * dwarf2/attribute.c (attribute::value_as_string): New method.
7658
8c87a452
TT
76592020-04-24 Tom Tromey <tom@tromey.com>
7660
7661 * symtab.c (general_symbol_info::natural_name)
7662 (general_symbol_info::demangled_name): Check for language_rust.
7663
787de330
TT
76642020-04-24 Tom Tromey <tom@tromey.com>
7665
7666 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7667 (dwarf2_physname): ... from here.
7668 (partial_die_info::read): Add Rust "{" hack.
7669
ff985671
TT
76702020-04-24 Tom Tromey <tom@tromey.com>
7671
7672 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7673 method.
7674 (symbol_set_demangled_name): Don't declare.
7675 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7676 symbol_set_demangled_name.
7677 (general_symbol_info::set_language)
7678 (general_symbol_info::compute_and_set_names): Update.
7679 * minsyms.c (minimal_symbol_reader::install): Update.
7680 * dwarf2/read.c (new_symbol): Update.
7681
1acda803
TT
76822020-04-24 Tom Tromey <tromey@adacore.com>
7683
7684 PR python/23662:
7685 * python/py-type.c (convert_field): Handle
7686 FIELD_LOC_KIND_DWARF_BLOCK.
7687 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7688 (typy_get_dynamic): Nw function.
7689 (type_object_getset): Add "dynamic".
7690 * NEWS: Add entry.
7691
d656f129
TT
76922020-04-24 Tom Tromey <tromey@adacore.com>
7693
7694 * ada-typeprint.c (print_choices, print_variant_part)
7695 (print_record_field_types_dynamic): New functions.
7696 (print_record_field_types): Use print_record_field_types_dynamic.
7697
7d79de9a
TT
76982020-04-24 Tom Tromey <tromey@adacore.com>
7699
7700 * dwarf2/read.c (handle_data_member_location): New overload.
7701 (dwarf2_add_field): Use it.
7702 (decode_locdesc): Add "computed" parameter. Update comment.
7703 * gdbtypes.c (is_dynamic_type_internal): Also look for
7704 FIELD_LOC_KIND_DWARF_BLOCK.
7705 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7706 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7707 virtual base classes.
7708 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7709 FIELD_LOC_KIND_DWARF_BLOCK.
7710
f8e89861
TT
77112020-04-24 Tom Tromey <tromey@adacore.com>
7712
7713 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7714 * gdbtypes.c (is_dynamic_type_internal): Check
7715 TYPE_HAS_DYNAMIC_LENGTH.
7716 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7717 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7718 New macros.
7719 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7720 constant.
7721
9c6a1327
TT
77222020-04-24 Tom Tromey <tromey@adacore.com>
7723
7724 * dwarf2/read.c (struct variant_field): Rewrite.
7725 (struct variant_part_builder): New.
7726 (struct nextfield): Remove "variant" field. Add "offset".
7727 (struct field_info): Add "current_variant_part" and
7728 "variant_parts".
7729 (alloc_discriminant_info): Remove.
7730 (alloc_rust_variant): New function.
7731 (quirk_rust_enum): Update.
7732 (dwarf2_add_field): Set "offset" member. Don't handle
7733 DW_TAG_variant_part.
7734 (offset_map_type): New typedef.
7735 (convert_variant_range, create_one_variant)
7736 (create_one_variant_part, create_variant_parts)
7737 (add_variant_property): New functions.
7738 (dwarf2_attach_fields_to_type): Call add_variant_property.
7739 (read_structure_type): Don't handle DW_TAG_variant_part.
7740 (handle_variant_part, handle_variant): New functions.
7741 (handle_struct_member_die): Use them.
7742 (process_structure_scope): Don't handle variant parts.
7743 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7744 (struct discriminant_info): Remove.
7745 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7746 (struct main_type) <flag_discriminated_union>: Remove.
7747 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7748 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7749 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7750 Update.
7751 * valops.c (value_union_variant): Remove.
7752 * value.h (value_union_variant): Don't declare.
7753
b249d2c2
TT
77542020-04-24 Tom Tromey <tromey@adacore.com>
7755
7756 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7757 (ada_value_primitive_packed_val): Update.
7758 * ada-valprint.c (ada_value_print_1): Update.
7759 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7760 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7761 just an address. Use evaluate_for_locexpr_baton.
7762 (dwarf2_evaluate_property): Update.
7763 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7764 array_view.
7765 * findvar.c (default_read_var_value): Update.
7766 * gdbtypes.c (compute_variant_fields_inner)
7767 (resolve_dynamic_type_internal): Update.
7768 (resolve_dynamic_type): Change type of valaddr parameter.
7769 * gdbtypes.h (resolve_dynamic_type): Update.
7770 * valarith.c (value_subscripted_rvalue): Update.
7771 * value.c (value_from_contents_and_address): Update.
7772
61122aa9
TT
77732020-04-24 Tom Tromey <tromey@adacore.com>
7774
7775 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7776 "push_initial_value" parameter.
7777 (dwarf2_evaluate_property): Likewise.
7778 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7779
ef83a141
TT
77802020-04-24 Tom Tromey <tromey@adacore.com>
7781
7782 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7783 (variant::matches, compute_variant_fields_recurse)
7784 (compute_variant_fields_inner, compute_variant_fields): New
7785 functions.
7786 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7787 Use resolved_type after type is made.
7788 (operator==): Add new cases.
7789 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7790 (struct discriminant_range, struct variant, struct variant_part):
7791 New.
7792 (union dynamic_prop_data) <variant_parts, original_type>: New
7793 members.
7794 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7795 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7796 constants.
7797 * value.c (unpack_bits_as_long): Now public.
7798 * value.h (unpack_bits_as_long): Declare.
7799
675127ec
TT
78002020-04-24 Tom Tromey <tromey@adacore.com>
7801
7802 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7803 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7804
9852ceef
HD
78052020-04-24 Hannes Domani <ssbssa@yahoo.de>
7806
7807 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7808
7632c6ce
KR
78092020-04-24 Kamil Rytarowski <n54@gmx.com>
7810
7811 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7812 (remove_fork_catchpoint, post_startup_inferior)
7813 (post_attach): Move...
7814 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7815 (remove_fork_catchpoint, post_startup_inferior)
7816 (post_attach): ...here.
7817 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7818 (remove_fork_catchpoint, post_startup_inferior)
7819 (post_attach): Move...
7820 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7821 (remove_fork_catchpoint, post_startup_inferior)
7822 (post_attach): ...here.
7823
7be2bb4f
TT
78242020-04-24 Tom Tromey <tromey@adacore.com>
7825
7826 * nat/windows-nat.h (struct windows_thread_info)
7827 <pc_adjusted>: New member.
7828 * windows-nat.c (windows_fetch_one_register): Check
7829 pc_adjusted.
7830 (windows_nat_target::get_windows_debug_event)
7831 (windows_nat_target::wait): Set pc_adjusted.
7832
f80cb3b4
TV
78332020-04-24 Tom de Vries <tdevries@suse.de>
7834
7835 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
7836 Run gdb-add-index inside temp dir.
7837
29514b87
TT
78382020-04-23 Tom Tromey <tromey@adacore.com>
7839
7840 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
7841 in loop.
7842
5939967b
LM
78432020-04-23 Luis Machado <luis.machado@linaro.org>
7844
7845 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7846 get_frame_register instead of gdbarch_unwind_pc.
7847
70bc38f5
TV
78482020-04-23 Tom de Vries <tdevries@suse.de>
7849
7850 * symtab.c (lookup_global_symbol): Prefer def over decl.
7851
de82891c
TV
78522020-04-23 Tom de Vries <tdevries@suse.de>
7853
7854 PR symtab/25807
7855 * block.c (best_symbol, better_symbol): Promote to external.
7856 * block.h (best_symbol, better_symbol): Declare.
7857 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
7858 decl.
7859
ecc6c606
TT
78602020-04-23 Tom Tromey <tromey@adacore.com>
7861
7862 PR ada/25837:
7863 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
7864 "const char *", not a "const std::string &".
7865 <name_and_matcher::operator==>: Update.
7866 * unittests/lookup_name_info-selftests.c: Change type of
7867 "result".
7868
740480b8
TT
78692020-04-23 Tom Tromey <tom@tromey.com>
7870
7871 * inferior.h (iterate_over_inferiors): Don't declare.
7872 * inferior.c (iterate_over_inferiors): Remove.
7873 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
7874 Remove.
7875 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
7876 use iterate_over_inferiors.
7877 (darwin_resume_inferior_it)
7878 (struct resume_inferior_threads_param)
7879 (darwin_resume_inferior_threads_it): Remove.
7880 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
7881
ae3ab1f0
TV
78822020-04-23 Tom de Vries <tdevries@suse.de>
7883
7884 * blockframe.c (find_pc_partial_function): Use
7885 find_pc_sect_compunit_symtab rather than
7886 objfile->sf->qf->find_pc_sect_compunit_symtab.
7887
317d2668
TV
78882020-04-22 Tom de Vries <tdevries@suse.de>
7889
7890 PR symtab/25764
7891 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7892 in psymtabs.
7893
eea9e357
TV
78942020-04-22 Tom de Vries <tdevries@suse.de>
7895
7896 PR symtab/25801
7897 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7898 symtabs.
7899
3d5afab3
TV
79002020-04-22 Tom de Vries <tdevries@suse.de>
7901
7902 PR symtab/25700
7903 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7904 CU if already created.
7905
d43b7a2d
TBA
79062020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7907
7908 * infrun.c (displaced_step_fixup): Switch to the event_thread
7909 before calling displaced_step_restore, not after.
7910
d89edf9b
MM
79112020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7912
7913 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7914 its inferior is not recorded by us.
7915 (record_btrace_target_open): Replace call to
7916 all_non_exited_threads () with call to current_inferior
7917 ()->non_exited_threads ().
7918 (record_btrace_target::stop_recording): Likewise.
7919 (record_btrace_target::close): Likewise.
7920 (record_btrace_target::wait): Likewise.
7921 (record_btrace_target::record_stop_replaying): Likewise.
7922
5897fd49
MM
79232020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7924
7925 * btrace.c (btrace_enable): Throw an error on double enables and
7926 when enabling recording fails.
7927 (btrace_disable): Throw an error if the thread is not recorded.
7928
1a476b6d
MM
79292020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7930
7931 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7932 request if we do not have a thread_info.
7933
4778a5f8
TV
79342020-04-21 Tom de Vries <tdevries@suse.de>
7935
7936 PR gdb/25471
7937 * thread.c
7938 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7939 exception in get_frame_id.
7940
0fa7617d
TT
79412020-04-20 Tom Tromey <tromey@adacore.com>
7942
7943 * python/python.c (struct gdbpy_event): Mark move constructor as
7944 noexcept.
7945 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7946 constructor as noexcept.
7947 * completer.h (struct completion_result): Mark move constructor as
7948 noexcept.
7949 * completer.c (completion_result::completion_result): Use
7950 initialization style. Don't call reset_match_list.
7951
ad23bda0
MS
79522020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7953
7954 * MAINTAINERS (Write After Approval): Add myself.
7955
45e1f031
TT
79562020-04-18 Tom Tromey <tom@tromey.com>
7957
7958 * windows-tdep.c (init_w32_command_list)
7959 (w32_prefix_command_valid): Restore.
7960 (_initialize_windows_tdep): Call init_w32_command_list.
7961
08feed99
TT
79622020-04-18 Tom Tromey <tom@tromey.com>
7963
7964 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7965 * value.c (value_fn_field): Update.
7966 * valops.c (find_function_in_inferior)
7967 (value_allocate_space_in_inferior): Update.
7968 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7969 Update.
7970 * tui/tui-source.c (tui_source_window::set_contents): Update.
7971 * symtab.c (lookup_global_or_static_symbol)
7972 (find_function_start_sal_1, skip_prologue_sal)
7973 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7974 * symmisc.c (dump_msymbols, dump_symtab_1)
7975 (maintenance_print_one_line_table): Update.
7976 * symfile.c (init_entry_point_info, section_is_mapped)
7977 (list_overlays_command, simple_read_overlay_table)
7978 (simple_overlay_update_1): Update.
7979 * stap-probe.c (handle_stap_probe): Update.
7980 * stabsread.c (dbx_init_float_type, define_symbol)
7981 (read_one_struct_field, read_enum_type, read_range_type): Update.
7982 * source.c (info_line_command): Update.
7983 * python/python.c (gdbpy_source_objfile_script)
7984 (gdbpy_execute_objfile_script): Update.
7985 * python/py-type.c (save_objfile_types): Update.
7986 * python/py-objfile.c (py_free_objfile): Update.
7987 * python/py-inferior.c (python_new_objfile): Update.
7988 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7989 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7990 (maintenance_check_psymtabs): Update.
7991 * printcmd.c (info_address_command): Update.
7992 * objfiles.h (struct objfile) <arch>: New method, from
7993 get_objfile_arch.
7994 (get_objfile_arch): Don't declare.
7995 * objfiles.c (get_objfile_arch): Remove.
7996 (filter_overlapping_sections): Update.
7997 * minsyms.c (msymbol_is_function): Update.
7998 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7999 (output_nondebug_symbol): Update.
8000 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
8001 (mdebug_expand_psymtab): Update.
8002 * machoread.c (macho_add_oso_symfile): Update.
8003 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
8004 Update.
8005 * linux-fork.c (checkpoint_command): Update.
8006 * linespec.c (convert_linespec_to_sals): Update.
8007 * jit.c (finalize_symtab): Update.
8008 * infrun.c (insert_exception_resume_from_probe): Update.
8009 * ia64-tdep.c (ia64_find_unwind_table): Update.
8010 * hppa-tdep.c (internalize_unwinds): Update.
8011 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
8012 Update.
8013 * gcore.c (call_target_sbrk): Update.
8014 * elfread.c (record_minimal_symbol, elf_symtab_read)
8015 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
8016 (elf_gnu_ifunc_resolve_by_got): Update.
8017 * dwarf2/read.c (create_addrmap_from_index)
8018 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
8019 (read_debug_names_from_section)
8020 (process_psymtab_comp_unit_reader, add_partial_symbol)
8021 (add_partial_subprogram, process_full_comp_unit)
8022 (read_file_scope, read_func_scope, read_lexical_block_scope)
8023 (read_call_site_scope, dwarf2_ranges_read)
8024 (dwarf2_record_block_ranges, dwarf2_add_field)
8025 (mark_common_block_symbol_computed, read_tag_pointer_type)
8026 (read_tag_string_type, dwarf2_init_float_type)
8027 (dwarf2_init_complex_target_type, read_base_type)
8028 (partial_die_info::read, partial_die_info::read)
8029 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
8030 (dwarf2_fetch_die_loc_sect_off): Update.
8031 * dwarf2/loc.c (dwarf2_find_location_expression)
8032 (class dwarf_evaluate_loc_desc, rw_pieced_value)
8033 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
8034 (dwarf2_loc_desc_get_symbol_read_needs)
8035 (locexpr_describe_location_piece, locexpr_describe_location_1)
8036 (loclist_describe_location): Update.
8037 * dwarf2/index-write.c (write_debug_names): Update.
8038 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
8039 * dtrace-probe.c (dtrace_process_dof): Update.
8040 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
8041 (process_one_symbol): Update.
8042 * ctfread.c (ctf_init_float_type, read_base_type): Update.
8043 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
8044 (coff_read_enum_type): Update.
8045 * cli/cli-cmds.c (edit_command, list_command): Update.
8046 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
8047 * breakpoint.c (create_overlay_event_breakpoint)
8048 (create_longjmp_master_breakpoint)
8049 (create_std_terminate_master_breakpoint)
8050 (create_exception_master_breakpoint, get_sal_arch): Update.
8051 * block.c (block_gdbarch): Update.
8052 * annotate.c (annotate_source_line): Update.
8053
0743fc83
TT
80542020-04-17 Tom Tromey <tromey@adacore.com>
8055
8056 * auto-load.c (show_auto_load_cmd): Remove.
8057 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
8058 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
8059 (maintenance_print_arc_command): Remove.
8060 * tui/tui-win.c (tui_command): Remove.
8061 (tui_get_cmd_list): Use add_basic_prefix_cmd.
8062 * tui/tui-layout.c (tui_layout_command): Remove.
8063 (_initialize_tui_layout): Use add_basic_prefix_cmd.
8064 * python/python.c (user_set_python, user_show_python): Remove.
8065 (_initialize_python): Use add_basic_prefix_cmd,
8066 add_show_prefix_cmd.
8067 * guile/guile.c (set_guile_command, show_guile_command): Remove.
8068 (install_gdb_commands): Use add_basic_prefix_cmd,
8069 add_show_prefix_cmd.
8070 (info_guile_command): Remove.
8071 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
8072 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
8073 add_show_prefix_cmd.
8074 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
8075 Remove do_set and do_show parameters.
8076 * cli/cli-style.c (set_style, show_style): Remove.
8077 (_initialize_cli_style): Use add_basic_prefix_cmd,
8078 add_show_prefix_cmd.
8079 (cli_style_option::add_setshow_commands): Remove do_set and
8080 do_show parameters.
8081 (cli_style_option::add_setshow_commands): Use
8082 add_basic_prefix_cmd, add_show_prefix_cmd.
8083 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
8084 (set_style_name): Remove.
8085 * cli/cli-dump.c (dump_command, append_command): Remove.
8086 (srec_dump_command, ihex_dump_command, verilog_dump_command)
8087 (tekhex_dump_command, binary_dump_command)
8088 (binary_append_command): Remove.
8089 (_initialize_cli_dump): Use add_basic_prefix_cmd.
8090 * windows-tdep.c (w32_prefix_command_valid): Remove global.
8091 (init_w32_command_list): Remove; move into ...
8092 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
8093 * valprint.c (set_print, show_print, set_print_raw)
8094 (show_print_raw): Remove.
8095 (_initialize_valprint): Use add_basic_prefix_cmd,
8096 add_show_prefix_cmd.
8097 * typeprint.c (set_print_type, show_print_type): Remove.
8098 (_initialize_typeprint): Use add_basic_prefix_cmd,
8099 add_show_prefix_cmd.
8100 * record.c (set_record_command, show_record_command): Remove.
8101 (_initialize_record): Use add_basic_prefix_cmd,
8102 add_show_prefix_cmd.
8103 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
8104 add_show_prefix_cmd.
8105 (info_command, show_command, set_debug, show_debug): Remove.
8106 * top.h (set_history, show_history): Don't declare.
8107 * top.c (set_history, show_history): Remove.
8108 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
8109 (unset_tdesc_cmd): Remove.
8110 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
8111 add_show_prefix_cmd.
8112 * symtab.c (info_module_command): Remove.
8113 (_initialize_symtab): Use add_basic_prefix_cmd.
8114 * symfile.c (overlay_command): Remove.
8115 (_initialize_symfile): Use add_basic_prefix_cmd.
8116 * sparc64-tdep.c (info_adi_command): Remove.
8117 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
8118 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
8119 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
8120 add_show_prefix_cmd.
8121 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
8122 (_initialize_serial): Use add_basic_prefix_cmd,
8123 add_show_prefix_cmd.
8124 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
8125 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
8126 add_show_prefix_cmd.
8127 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
8128 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
8129 add_show_prefix_cmd.
8130 * riscv-tdep.c (show_riscv_command, set_riscv_command)
8131 (show_debug_riscv_command, set_debug_riscv_command): Remove.
8132 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
8133 add_show_prefix_cmd.
8134 * remote.c (remote_command, set_remote_cmd): Remove.
8135 (_initialize_remote): Use add_basic_prefix_cmd.
8136 * record-full.c (set_record_full_command)
8137 (show_record_full_command): Remove.
8138 (_initialize_record_full): Use add_basic_prefix_cmd,
8139 add_show_prefix_cmd.
8140 * record-btrace.c (cmd_set_record_btrace)
8141 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
8142 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
8143 (cmd_show_record_btrace_pt): Remove.
8144 (_initialize_record_btrace): Use add_basic_prefix_cmd,
8145 add_show_prefix_cmd.
8146 * ravenscar-thread.c (set_ravenscar_command)
8147 (show_ravenscar_command): Remove.
8148 (_initialize_ravenscar): Use add_basic_prefix_cmd,
8149 add_show_prefix_cmd.
8150 * mips-tdep.c (show_mips_command, set_mips_command)
8151 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
8152 add_show_prefix_cmd.
8153 * maint.c (maintenance_command, maintenance_info_command)
8154 (maintenance_check_command, maintenance_print_command)
8155 (maintenance_set_cmd, maintenance_show_cmd): Remove.
8156 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
8157 add_show_prefix_cmd.
8158 (show_per_command_cmd): Remove.
8159 * maint-test-settings.c (maintenance_set_test_settings_cmd):
8160 Remove.
8161 (maintenance_show_test_settings_cmd): Remove.
8162 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
8163 add_show_prefix_cmd.
8164 * maint-test-options.c (maintenance_test_options_command):
8165 Remove.
8166 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
8167 * macrocmd.c (macro_command): Remove
8168 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8169 * language.c (set_check, show_check): Remove.
8170 (_initialize_language): Use add_basic_prefix_cmd,
8171 add_show_prefix_cmd.
8172 * infcmd.c (unset_command): Remove.
8173 (_initialize_infcmd): Use add_basic_prefix_cmd.
8174 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8175 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8176 add_show_prefix_cmd.
8177 * go32-nat.c (go32_info_dos_command): Remove.
8178 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8179 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8180 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8181 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8182 (_initialize_frame): Use add_basic_prefix_cmd,
8183 add_show_prefix_cmd.
8184 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8185 (_initialize_dcache): Use add_basic_prefix_cmd,
8186 add_show_prefix_cmd.
8187 * cp-support.c (maint_cplus_command): Remove.
8188 (_initialize_cp_support): Use add_basic_prefix_cmd.
8189 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8190 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8191 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8192 add_basic_prefix_cmd, add_show_prefix_cmd.
8193 * breakpoint.c (save_command): Remove.
8194 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8195 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8196 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8197 add_show_prefix_cmd.
8198 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8199 (set_ada_command, show_ada_command): Remove.
8200 (_initialize_ada_language): Use add_basic_prefix_cmd,
8201 add_show_prefix_cmd.
8202 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8203
3557f442
KR
82042020-04-16 Kamil Rytarowski <n54@gmx.com>
8205
8206 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8207 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8208
16197208
SM
82092020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8210
8211 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8212 warning messages.
8213
00ac85d3
SM
82142020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8215
8216 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8217 import table is not at beginning of .idata section.
8218
381ce63f
PA
82192020-04-16 Pedro Alves <palves@redhat.com>
8220
8221 * inferior.c (delete_inferior): Use delete operator directly
8222 instead of delete_program_space.
8223 * progspace.c (add_program_space): New, factored out from
8224 program_space::program_space.
8225 (remove_program_space): New, factored out from
8226 delete_program_space.
8227 (program_space::program_space): Remove intro comment. Rewrite.
8228 (program_space::~program_space): Remove intro comment. Call
8229 remove_program_space.
8230 (delete_program_space): Delete.
8231 * progspace.h (program_space::program_space): Make explicit. Move
8232 intro comment here, adjusted.
8233 (program_space::~program_space): Move intro comment here,
8234 adjusted.
8235 (delete_program_space): Remove.
8236
a010605f
TT
82372020-04-16 Tom Tromey <tromey@adacore.com>
8238
8239 * windows-nat.c (windows_nat::handle_access_violation): New
8240 function.
8241 * nat/windows-nat.h (handle_access_violation): Declare.
8242 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8243 windows-nat.c. Call handle_access_violation.
8244
efba5c23
TV
82452020-04-16 Tom de Vries <tdevries@suse.de>
8246
8247 PR symtab/25791
8248 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8249 CUs without psymtab.
8250
97ed802d
KB
82512020-04-16 Kevin Buettner <kevinb@redhat.com>
8252
8253 * python/python.c (do_start_initialization): Don't call
8254 PyEval_InitThreads for Python 3.9 and beyond.
8255
c7d64809
KR
82562020-04-15 Kamil Rytarowski <n54@gmx.com>
8257
8258 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8259 thread functions.
8260 (obsd_nat_target::wait): Likewise.
8261
ce127a96
TT
82622020-04-15 Tom Tromey <tromey@adacore.com>
8263
8264 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8265 (DEBUG_EXCEPT): Use debug_printf.
8266
99f1bc6a
AB
82672020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8268
8269 * completer.c (class completion_tracker::completion_hash_entry)
8270 <hash_name>: New member function.
8271 (completion_tracker::discard_completions): New callback to hash a
8272 completion_hash_entry, pass this to htab_create_alloc.
8273
a0e9b532
JT
82742016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8275
8276 * windows-nat.c (windows_make_so): Warn rather than stopping with
8277 an error if realpath() fails.
8278
06ca5dd4
KR
82792020-04-14 Kamil Rytarowski <n54@gmx.com>
8280
8281 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8282 (nbsd_nat_target::info_proc): Add do_status.
8283
194d088f
TV
82842020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8285 Tom de Vries <tdevries@suse.de>
8286
8287 PR symtab/25718
8288 * psympriv.h (struct partial_symtab::read_symtab)
8289 (struct partial_symtab::expand_psymtab)
8290 (struct partial_symtab::read_dependencies): Update comments.
8291 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8292 read_symtab for includer.
8293 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8294 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8295 (struct dwarf2_include_psymtab::m_readin): Remove.
8296 (struct dwarf2_include_psymtab::includer): New member function.
8297 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8298
c1a66c06
TV
82992020-04-14 Tom de Vries <tdevries@suse.de>
8300
8301 PR symtab/25720
8302 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8303 with NULL symbol_matcher and lookup_name.
8304 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8305 and lookup_name.
8306 * dwarf2/read.c (dw2_expand_symtabs_matching)
8307 (dw2_debug_names_expand_symtabs_matching): Same.
8308 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8309 Make lookup_name a pointer. Update comment.
8310 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8311 lookup_name being a pointer.
8312 * symfile.c (expand_symtabs_matching): Same.
8313 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8314 * linespec.c (iterate_over_all_matching_symtabs): Same.
8315
400b5eca
TT
83162020-04-13 Tom Tromey <tom@tromey.com>
8317
8318 * run-on-main-thread.c: Update include.
8319 * unittests/main-thread-selftests.c: Update include.
8320 * tui/tui-win.c: Update include.
8321 * tui/tui-io.c: Update include.
8322 * tui/tui-interp.c: Update include.
8323 * tui/tui-hooks.c: Update include.
8324 * top.h: Update include.
8325 * top.c: Update include.
8326 * ser-base.c: Update include.
8327 * remote.c: Update include.
8328 * remote-notif.c: Update include.
8329 * remote-fileio.c: Update include.
8330 * record-full.c: Update include.
8331 * record-btrace.c: Update include.
8332 * python/python.c: Update include.
8333 * posix-hdep.c: Update include.
8334 * mingw-hdep.c: Update include.
8335 * mi/mi-main.c: Update include.
8336 * mi/mi-interp.c: Update include.
8337 * main.c: Update include.
8338 * linux-nat.c: Update include.
8339 * interps.c: Update include.
8340 * infrun.c: Update include.
8341 * inf-loop.c: Update include.
8342 * event-top.c: Update include.
8343 * event-loop.c: Move to ../gdbsupport/.
8344 * event-loop.h: Move to ../gdbsupport/.
8345 * async-event.h: Update include.
8346 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8347
93b54c8e
TT
83482020-04-13 Tom Tromey <tom@tromey.com>
8349
8350 * tui/tui-win.c: Include async-event.h.
8351 * remote.c: Include async-event.h.
8352 * remote-notif.c: Include async-event.h.
8353 * record-full.c: Include async-event.h.
8354 * record-btrace.c: Include async-event.h.
8355 * infrun.c: Include async-event.h.
8356 * event-top.c: Include async-event.h.
8357 * event-loop.h: Move some declarations to async-event.h.
8358 * event-loop.c: Don't include ser-event.h or top.h. Move some
8359 code to async-event.c.
8360 * async-event.h: New file.
8361 * async-event.c: New file.
8362 * Makefile.in (COMMON_SFILES): Add async-event.c.
8363 (HFILES_NO_SRCDIR): Add async-event.h.
8364
c1cd3163
TT
83652020-04-13 Tom Tromey <tom@tromey.com>
8366
8367 * utils.c (flush_streams): New function.
8368 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8369
29f2bf4f
TT
83702020-04-13 Tom Tromey <tom@tromey.com>
8371
8372 * event-loop.c (handle_file_event): Use warning, not
8373 printf_unfiltered.
8374
98029d02
TT
83752020-04-13 Tom Tromey <tom@tromey.com>
8376
8377 * event-loop.c: Include <chrono>.
8378
06cc9596
TT
83792020-04-13 Tom Tromey <tom@tromey.com>
8380
8381 * gdb_select.h: Move to ../gdbsupport/.
8382 * event-loop.c: Update include path.
8383 * top.c: Update include path.
8384 * ser-base.c: Update include path.
8385 * ui-file.c: Update include path.
8386 * ser-tcp.c: Update include path.
8387 * guile/scm-ports.c: Update include path.
8388 * posix-hdep.c: Update include path.
8389 * ser-unix.c: Update include path.
8390 * gdb_usleep.c: Update include path.
8391 * mingw-hdep.c: Update include path.
8392 * inflow.c: Update include path.
8393 * infrun.c: Update include path.
8394 * event-top.c: Update include path.
8395
8ae8e197
TT
83962020-04-13 Tom Tromey <tom@tromey.com>
8397
8398 * configure: Rebuild.
8399 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8400
58cf28e8
TT
84012020-04-13 Tom Tromey <tom@tromey.com>
8402
8403 * event-loop.h (start_event_loop): Don't declare.
8404 * event-loop.c (start_event_loop): Move...
8405 * main.c (start_event_loop): ...here. Now static.
8406
b7f999ae
SDJ
84072020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8408
8409 * MAINTAINERS: Update my email address.
8410
1085dfd4
KR
84112020-04-12 Kamil Rytarowski <n54@gmx.com>
8412
8413 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8414 IP_ALL.
8415
49d1d1f5
KR
84162020-04-12 Kamil Rytarowski <n54@gmx.com>
8417
8418 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 8419 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 8420
b4848d2a
KR
84212020-04-12 Kamil Rytarowski <n54@gmx.com>
8422
8423 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 8424 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 8425
51c133d5
KR
84262020-04-12 Kamil Rytarowski <n54@gmx.com>
8427
8428 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8429
54b8cbd0
KR
84302020-04-11 Kamil Rytarowski <n54@gmx.com>
8431
8432 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8433 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8434 (nbsd_nat_target::info_proc): New functions.
8435 * nbsd-nat.c (kinfo_get_vmmap): New function.
8436 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8437 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8438 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8439 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8440 functions.
8441 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8442 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8443 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8444 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8445 (KINFO_VME_FLAG_GROWS_DOWN): New.
8446
cf83625d
AS
84472020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8448
8449 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8450 bit shift.
8451
0c4311ab
TT
84522020-04-10 Tom Tromey <tromey@adacore.com>
8453
8454 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8455
3e65b3e9
TT
84562020-04-10 Tom Tromey <tromey@adacore.com>
8457
8458 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8459 separate debug files.
8460
13302e95
HD
84612020-04-10 Hannes Domani <ssbssa@yahoo.de>
8462
8463 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8464 Move to...
8465 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8466 ... here.
8467 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8468 Check for STATUS_WX86_BREAKPOINT.
8469 (windows_nat_target::wait): Same.
8470
bdfc1e8a
TV
84712020-04-10 Tom de Vries <tdevries@suse.de>
8472
8473 PR cli/25808
8474 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8475
f4460aec
SM
84762020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8477
8478 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8479 (Write After Approval): Remove Tom de Vries.
8480
a25198bb
BE
84812020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8482
8483 revert partially:
8484 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8485
aac66a4c
SM
8486 * buildsym.c (record_line): Fix undefined behavior and preserve
8487 lines at eof.
a25198bb 8488
206c98a6
KR
84892020-04-09 Kamil Rytarowski <n54@gmx.com>
8490
8491 * auxv.h (svr4_auxv_parse): New.
8492 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8493 and generic_auxv_parse.
8494 (svr4_auxv_parse): Add.
8495 * obsd-tdep.c: Include "auxv.h".
8496 (obsd_auxv_parse): Remove.
8497 (obsd_init_abi): Remove comment.
8498 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8499 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8500 * nbsd-tdep.c: Include "auxv.h".
8501 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8502
71fbdbaf
TT
85032020-04-08 Tom Tromey <tromey@adacore.com>
8504
8505 * nat/windows-nat.h (last_wait_event): Don't declare.
8506 (wait_for_debug_event): Update comment.
8507 * nat/windows-nat.c (last_wait_event): Now static.
8508
2c1d95e8
TT
85092020-04-08 Tom Tromey <tromey@adacore.com>
8510
8511 * windows-nat.c (wait_for_debug_event): Move to
8512 nat/windows-nat.c.
8513 * nat/windows-nat.h (wait_for_debug_event): Declare.
8514 * nat/windows-nat.c (wait_for_debug_event): Move from
8515 windows-nat.c. No longer static.
8516
d2977bc4
TT
85172020-04-08 Tom Tromey <tromey@adacore.com>
8518
8519 * windows-nat.c (get_windows_debug_event): Use
8520 fetch_pending_stop.
8521 * nat/windows-nat.h (fetch_pending_stop): Declare.
8522 * nat/windows-nat.c (fetch_pending_stop): New function.
8523
e758e19c
TT
85242020-04-08 Tom Tromey <tromey@adacore.com>
8525
8526 * windows-nat.c (windows_continue): Use matching_pending_stop and
8527 continue_last_debug_event.
8528 * nat/windows-nat.h (matching_pending_stop)
8529 (continue_last_debug_event): Declare.
8530 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8531 (matching_pending_stop, continue_last_debug_event): New
8532 functions.
8533
8d30e395
TT
85342020-04-08 Tom Tromey <tromey@adacore.com>
8535
8536 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8537 (handle_exception_result): Move to nat/windows-nat.h.
8538 (DEBUG_EXCEPTION_SIMPLE): Remove.
8539 (windows_nat::handle_ms_vc_exception): New function.
8540 (handle_exception): Move to nat/windows-nat.c.
8541 (get_windows_debug_event): Update.
8542 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8543 nat/windows-nat.c.
8544 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8545 (handle_exception_result): Move from windows-nat.c.
8546 (handle_exception): Declare.
8547 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8548 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8549 windows-nat.c.
8550
29de418d
TT
85512020-04-08 Tom Tromey <tromey@adacore.com>
8552
8553 * windows-nat.c (exception_count, event_count): Remove.
8554 (handle_exception, get_windows_debug_event)
8555 (do_initial_windows_stuff): Update.
8556
a816ba18
TT
85572020-04-08 Tom Tromey <tromey@adacore.com>
8558
8559 * windows-nat.c (windows_nat::handle_load_dll)
8560 (windows_nat::handle_unload_dll): Rename. No longer static.
8561 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8562 Declare.
8563
a00caa12
TT
85642020-04-08 Tom Tromey <tromey@adacore.com>
8565
8566 * complaints.h (stop_whining): Declare at top-level.
8567 (complaint): Don't declare stop_whining.
8568
d41b524f
TT
85692020-04-08 Tom Tromey <tromey@adacore.com>
8570
8571 * windows-nat.c (windows_nat::handle_output_debug_string):
8572 Rename. No longer static.
8573 * nat/windows-nat.h (handle_output_debug_string): Declare.
8574
3c76026d
TT
85752020-04-08 Tom Tromey <tromey@adacore.com>
8576
8577 * windows-nat.c (current_process_handle, current_process_id)
8578 (main_thread_id, last_sig, current_event, last_wait_event)
8579 (current_windows_thread, desired_stop_thread_id, pending_stops)
8580 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8581 (display_selectors, fake_create_process)
8582 (get_windows_debug_event): Update.
8583 * nat/windows-nat.h (current_process_handle, current_process_id)
8584 (main_thread_id, last_sig, current_event, last_wait_event)
8585 (current_windows_thread, desired_stop_thread_id, pending_stops)
8586 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8587 * nat/windows-nat.c (current_process_handle, current_process_id)
8588 (main_thread_id, last_sig, current_event, last_wait_event)
8589 (current_windows_thread, desired_stop_thread_id, pending_stops)
8590 (siginfo_er): New globals. Move from windows-nat.c.
8591
9d8679cc
TT
85922020-04-08 Tom Tromey <tromey@adacore.com>
8593
8594 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8595 (handle_load_dll): Update.
8596 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8597
28688adf
TT
85982020-04-08 Tom Tromey <tromey@adacore.com>
8599
8600 * windows-nat.c (enum thread_disposition_type): Move to
8601 nat/windows-nat.h.
8602 (windows_nat::thread_rec): Rename from thread_rec. No longer
8603 static.
8604 (windows_add_thread, windows_nat_target::fetch_registers)
8605 (windows_nat_target::store_registers, handle_exception)
8606 (windows_nat_target::resume, get_windows_debug_event)
8607 (windows_nat_target::get_tib_address)
8608 (windows_nat_target::thread_name)
8609 (windows_nat_target::thread_alive): Update.
8610 * nat/windows-nat.h (enum thread_disposition_type): Move from
8611 windows-nat.c.
8612 (thread_rec): Declare.
8613
4834dad0
TT
86142020-04-08 Tom Tromey <tromey@adacore.com>
8615
8616 * windows-nat.c: Add "using namespace".
8617 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8618 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8619
65bafd5b
TT
86202020-04-08 Tom Tromey <tromey@adacore.com>
8621
8622 * nat/windows-nat.h (struct windows_thread_info): Declare
8623 destructor.
8624 * nat/windows-nat.c (~windows_thread_info): New.
8625
0a4afda3
TT
86262020-04-08 Tom Tromey <tromey@adacore.com>
8627
8628 PR gdb/22992
8629 * windows-nat.c (current_event): Update comment.
8630 (last_wait_event, desired_stop_thread_id): New globals.
8631 (struct pending_stop): New.
8632 (pending_stops): New global.
8633 (windows_nat_target) <stopped_by_sw_breakpoint>
8634 <supports_stopped_by_sw_breakpoint>: New methods.
8635 (windows_fetch_one_register): Add assertions. Adjust PC.
8636 (windows_continue): Handle pending stops. Suspend other threads
8637 when stepping. Use last_wait_event
8638 (wait_for_debug_event): New function.
8639 (get_windows_debug_event): Use wait_for_debug_event. Handle
8640 pending stops. Queue spurious stops.
8641 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8642 (windows_nat_target::kill): Use wait_for_debug_event.
8643 * nat/windows-nat.h (struct windows_thread_info)
8644 <stopped_at_software_breakpoint>: New field.
8645 * nat/windows-nat.c (windows_thread_info::resume): Clear
8646 stopped_at_software_breakpoint.
8647
8e61ebec
TT
86482020-04-08 Tom Tromey <tromey@adacore.com>
8649
8650 * windows-nat.c (enum thread_disposition_type): New.
8651 (thread_rec): Replace "get_context" parameter with "disposition";
8652 change type.
8653 (windows_add_thread, windows_nat_target::fetch_registers)
8654 (windows_nat_target::store_registers, handle_exception)
8655 (windows_nat_target::resume, get_windows_debug_event)
8656 (windows_nat_target::get_tib_address)
8657 (windows_nat_target::thread_name)
8658 (windows_nat_target::thread_alive): Update.
8659
98a03287
TT
86602020-04-08 Tom Tromey <tromey@adacore.com>
8661
8662 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8663 (windows_continue): Use windows_continue::resume.
8664 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8665 resume>: Declare new methods.
8666 * nat/windows-nat.c: New file.
8667 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8668
7c7411bc
TT
86692020-04-08 Tom Tromey <tromey@adacore.com>
8670
8671 * windows-nat.c (windows_add_thread, windows_delete_thread)
8672 (windows_nat_target::fetch_registers)
8673 (windows_nat_target::store_registers, fake_create_process)
8674 (windows_nat_target::resume, windows_nat_target::resume)
8675 (get_windows_debug_event, windows_nat_target::wait)
8676 (windows_nat_target::pid_to_str)
8677 (windows_nat_target::get_tib_address)
8678 (windows_nat_target::get_ada_task_ptid)
8679 (windows_nat_target::thread_name)
8680 (windows_nat_target::thread_alive): Use lwp, not tid.
8681
2950fdf7
TT
86822020-04-08 Tom Tromey <tromey@adacore.com>
8683
8684 * windows-nat.c (handle_exception)
8685 (windows_nat_target::thread_name): Update.
8686 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8687 <name>: Now unique_xmalloc_ptr.
8688
62fe396b
TT
86892020-04-08 Tom Tromey <tromey@adacore.com>
8690
8691 * windows-nat.c (thread_rec)
8692 (windows_nat_target::fetch_registers): Update.
8693 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8694 Update comment.
8695 <debug_registers_changed, reload_context>: Now bool.
8696
e9534bd2
TT
86972020-04-08 Tom Tromey <tromey@adacore.com>
8698
8699 * windows-nat.c (windows_add_thread): Use new.
8700 (windows_init_thread_list, windows_delete_thread): Use delete.
8701 (get_windows_debug_event): Update.
8702 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8703 destructor, and initializers.
8704
ae1f8880
TT
87052020-04-08 Tom Tromey <tromey@adacore.com>
8706
8707 * windows-nat.c (struct windows_thread_info): Remove.
8708 * nat/windows-nat.h: New file.
8709
55a1e039
TT
87102020-04-08 Tom Tromey <tromey@adacore.com>
8711
8712 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8713 (thread_rec, windows_add_thread, windows_delete_thread)
8714 (windows_continue): Update.
8715
93366324
TT
87162020-04-08 Tom Tromey <tromey@adacore.com>
8717
8718 * windows-nat.c (struct windows_thread_info): Remove typedef.
8719 (thread_head): Remove.
8720 (thread_list): New global.
8721 (thread_rec, windows_add_thread, windows_init_thread_list)
8722 (windows_delete_thread, windows_continue): Update.
8723
0f2265e2
SM
87242020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8725
8726 * windows-tdep.h (windows_init_abi): Add comment.
8727 (cygwin_init_abi): New declaration.
8728 * windows-tdep.c: Split signal enumeration in two, one for
8729 Windows and one for Cygwin.
8730 (windows_gdb_signal_to_target): Only deal with signal of the
8731 Windows OS ABI.
8732 (cygwin_gdb_signal_to_target): New function.
8733 (windows_init_abi): Rename to windows_init_abi_common, don't set
8734 gdb_signal_to_target gdbarch method. Add new new function with
8735 this name.
8736 (cygwin_init_abi): New function.
8737 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8738 comment. Don't call windows_init_abi.
8739 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8740 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8741 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8742 i386_windows_init_abi_common, don't call windows_init_abi. Add
8743 a new function of this name.
8744 (i386_cygwin_init_abi): New function.
8745 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8746 OS ABI Cygwin.
8747
3810f182
SM
87482020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8749
8750 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8751 parameter.c.
8752 (dwarf2_read_gdb_index): Update.
8753
063f8e80
KR
87542020-04-07 Kamil Rytarowski <n54@gmx.com>
8755
8756 * nbsd-tdep.c: Include "objfiles.h".
8757 (nbsd_skip_solib_resolver): New.
8758 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8759
85a9510c 87602020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8761
8762 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8763 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8764 with DW_LLE_base_addressx are being emitted in DWARFv5.
8765 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8766 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8767 unsigned integer.
8768
9fc3eaae 87692020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8770
8771 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8772 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8773 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8774 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8775 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8776 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8777 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8778
8779
41144253 87802020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8781
8782 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8783 (read_loclist_index): New function definition.
8784 (lookup_loclist_base): New function definition.
8785 (read_loclist_header): New function definition.
8786 (dwarf2_cu): Add loclist_base and loclist_header field.
8787 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8788 (read_full_die_1): Read the value of DW_AT_loclists_base.
8789 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8790 (read_attribute_value): Handle DW_FORM_loclistx.
8791 (skip_one_die): Handle DW_FORM_loclistx.
8792 (loclist_header): New structure declaration.
8793 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8794
9f4e76a4
SM
87952020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8796
8797 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8798 constructor. Remove `addr` parameter from other constructor and
8799 add `per_cu` parameter.
8800 * dwarf2/read.c (create_partial_symtab): Update.
8801
25c11aca
TV
88022020-04-07 Tom de Vries <tdevries@suse.de>
8803
8804 PR symtab/25796
8805 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8806 (partial_die_info::fixup): Inherit has_const_value.
8807
5707e24b
TV
88082020-04-07 Tom de Vries <tdevries@suse.de>
8809
8810 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8811 symbols without address.
8812
05f00e22
KR
88132020-04-06 Kamil Rytarowski <n54@gmx.com>
8814
8815 * nbsd-nat.h (struct thread_info): Add forward declaration.
8816 (nbsd_nat_target::thread_alive): Add.
8817 (nbsd_nat_target::thread_name): Likewise.
8818 (nbsd_nat_target::update_thread_list): Likewise.
8819 (update_thread_list::post_attach): Likewise.
8820 (post_attach::pid_to_str): Likewise.
8821 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8822 (nbsd_thread_lister): Add.
8823 (nbsd_nat_target::thread_alive): Likewise.
8824 (nbsd_nat_target::thread_name): Likewise.
8825 (nbsd_add_threads): Likewise.
8826 (update_thread_list::post_attach): Likewise.
8827 (nbsd_nat_target::update_thread_list): Likewise.
8828 (post_attach::pid_to_str): Likewise.
8829
6ee448cc
TT
88302020-04-06 Tom Tromey <tromey@adacore.com>
8831
8832 * ada-valprint.c (print_variant_part): Extract the variant field.
8833 (print_field_values): Use the field as the outer value when
8834 recursing.
8835
dea34e8c
TT
88362020-04-06 Tom Tromey <tromey@adacore.com>
8837
8838 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
8839 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
8840 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
8841 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
8842 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
8843
93689ce9
TT
88442020-04-06 Tom Tromey <tromey@adacore.com>
8845
8846 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8847 TYPE_CODE_ERROR.
8848
79743962
KR
88492020-04-06 Kamil Rytarowski <n54@gmx.com>
8850
8851 * nbsd-tdep.c: Include "gdbarch.h".
8852 Define enum with NetBSD signal numbers.
8853 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
8854 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
8855 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
8856 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
8857 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
8858 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
8859 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
8860 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8861 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
8862 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8863 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8864 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
8865
9e7c9a03
HD
88662020-04-03 Hannes Domani <ssbssa@yahoo.de>
8867
8868 PR gdb/25325
8869 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
8870
d9e49b61
TT
88712020-04-03 Tom Tromey <tromey@adacore.com>
8872
8873 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
8874 Read constant block.
8875
e0fc5c3f
SM
88762020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8877
8878 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
8879 (gdb_bfd_get_full_section_contents): New declaration.
8880 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
8881 * windows-tdep.c (is_linked_with_cygwin_dll): Use
8882 gdb_bfd_get_full_section_contents.
8883
e2ff18a0
SM
88842020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8885
8886 * exec.c (build_section_table): Replace internal_error with
8887 gdb_assert.
8888 (section_table_xfer_memory_partial): Likewise.
8889 * mdebugread.c (parse_partial_symbols): Likewise.
8890 * psymtab.c (lookup_partial_symbol): Likewise.
8891 * utils.c (wrap_here): Likewise.
8892
0830d301
TT
88932020-04-02 Tom Tromey <tromey@adacore.com>
8894
8895 * f-lang.c (build_fortran_types): Use arch_type to initialize
8896 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8897
e7da7f8f
TT
88982020-04-02 Tom Tromey <tromey@adacore.com>
8899
8900 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8901 of attributes.
8902
c90d28ac
AB
89032020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8904 Bernd Edlinger <bernd.edlinger@hotmail.de>
8905 Tom Tromey <tromey@adacore.com>
8906
8907 * buildsym.c (buildsym_compunit::record_line): Remove
8908 deduplication code.
8909
1aa98955
TV
89102020-04-02 Tom de Vries <tdevries@suse.de>
8911
8912 PR ada/24671
8913 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8914
d3214198
TV
89152020-04-02 Tom de Vries <tdevries@suse.de>
8916
8917 * dwarf2/read.c (dwarf2_gdb_index_functions,
8918 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8919 NULL.
8920 * psymtab.c (psym_lookup_global_symbol_language): New function.
8921 (psym_functions): Init psym_lookup_global_symbol_language with
8922 psym_lookup_global_symbol_language.
8923 * symfile-debug.c (debug_sym_quick_functions): Init
8924 lookup_global_symbol_language with NULL.
8925 * symfile.c (set_initial_language): Remove fixme comment.
8926 * symfile.h (struct quick_symbol_functions): Add
8927 lookup_global_symbol_language.
8928 * symtab.c (find_quick_global_symbol_language): New function.
8929 (find_main_name): Use find_quick_global_symbol_language.
8930
2836752f
SM
89312020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8932
8933 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8934
64dc2d4b
BE
89352020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8936
8937 * buildsym.c (record_line): Fix undefined behavior and preserve
8938 lines at eof.
8939
bbe3dc41
BE
89402020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8941
8942 * buildsym.c (record_line): Fix the resizing condition.
8943
6b4a335b
TT
89442020-04-01 Tom Tromey <tom@tromey.com>
8945
8946 * value.h (value_literal_complex): Add comment.
8947 * valops.c (value_literal_complex): Refer to value.h.
8948
3638a098
TT
89492020-04-01 Tom Tromey <tom@tromey.com>
8950
8951 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8952 (scalar_type): New rule, from typebase.
8953 (typebase): Use scalar_type. Recognize complex types.
8954 (field_name): Handle FLOAT_KEYWORD.
8955 (ident_tokens): Add _Complex and __complex__.
8956
c34e8714
TT
89572020-04-01 Tom Tromey <tom@tromey.com>
8958
8959 PR exp/25299:
8960 * valarith.c (promotion_type, complex_binop): New functions.
8961 (scalar_binop): Handle complex numbers. Use promotion_type.
8962 (value_pos, value_neg, value_complement): Handle complex numbers.
8963
fa649bb7
TT
89642020-04-01 Tom Tromey <tom@tromey.com>
8965
8966 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8967 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8968 (parse_number): Handle complex numbers.
8969
981c08ce
TT
89702020-04-01 Tom Tromey <tom@tromey.com>
8971
8972 * c-valprint.c (c_decorations): Change complex suffix to "i".
8973
4c99290d
TT
89742020-04-01 Tom Tromey <tom@tromey.com>
8975
8976 * valprint.c (generic_value_print_complex): Use accessors.
8977 * value.h (value_real_part, value_imaginary_part): Declare.
8978 * valops.c (value_real_part, value_imaginary_part): New
8979 functions.
8980 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8981
5b930b45
TT
89822020-04-01 Tom Tromey <tom@tromey.com>
8983
8984 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8985 (read_range_type): Update.
8986 * mdebugread.c (basic_type): Update.
8987 * go-lang.c (build_go_types): Use init_complex_type.
8988 * gdbtypes.h (struct main_type) <complex_type>: New member.
8989 (init_complex_type): Update.
8990 (arch_complex_type): Don't declare.
8991 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8992 Make name if none given. Use alloc_type_copy. Look for cached
8993 complex type.
8994 (arch_complex_type): Remove.
8995 (gdbtypes_post_init): Use init_complex_type.
8996 * f-lang.c (build_fortran_types): Use init_complex_type.
8997 * dwarf2/read.c (read_base_type): Update.
8998 * d-lang.c (build_d_types): Use init_complex_type.
8999 * ctfread.c (read_base_type): Update.
9000
53cccef1
TBA
90012020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9002
9003 * infrun.c (stop_all_threads): Update assertion, plus when
9004 stopping threads, take into account that we might be trying
9005 to stop an all-stop target.
9006 (stop_waiting): Call 'stop_all_threads' if there exists a
9007 non-stop target.
9008
a0714d30
TBA
90092020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9010
9011 * target.h (exists_non_stop_target): New function declaration.
9012 * target.c (exists_non_stop_target): New function.
9013
60e22c1e
HD
90142020-04-01 Hannes Domani <ssbssa@yahoo.de>
9015
9016 PR gdb/24789
9017 * eval.c (is_integral_or_integral_reference): New function.
9018 (evaluate_subexp_standard): Allow integer references in
9019 pointer arithmetic.
9020
e139a727
TBA
90212020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9022
9023 * remote.c (remote_target::remote_parse_stop_reply): Remove the
9024 check for no ptid in the stop reply when the target is non-stop.
9025
e0802d59
TT
90262020-04-01 Tom Tromey <tromey@adacore.com>
9027
9028 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
9029 "name" parameter to rvalue reference. Initialize m_name_holder.
9030 <lookup_name_info>: New overloads.
9031 <name>: Return gdb::string_view.
9032 <c_str>: New method.
9033 <make_ignore_params>: Update.
9034 <search_name_hash>: Update.
9035 <language_lookup_name>: Return const char *.
9036 <m_name>: Change type.
9037 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
9038 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
9039 (lookup_name_info::match_any): Update.
9040 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
9041 Update.
9042 * minsyms.c (linkage_name_str): Update.
9043 * language.c (default_symbol_name_matcher): Update.
9044 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
9045 Update.
9046 * ada-lang.c (ada_fold_name): Change parameter to string_view.
9047 (ada_lookup_name_info::ada_lookup_name_info): Update.
9048 (literal_symbol_name_matcher): Update.
9049
8c072cb6
TT
90502020-04-01 Tom Tromey <tromey@adacore.com>
9051
9052 * psymtab.c (psymtab_search_name): Remove function.
9053 (psym_lookup_symbol): Create search name and lookup name here.
9054 (lookup_partial_symbol): Remove "name" parameter; add
9055 lookup_name.
9056 (psym_expand_symtabs_for_function): Update.
9057
6f29a534
TT
90582020-03-31 Joel Jones <joelkevinjones@gmail.com>
9059
9060 PR tui/25597:
9061 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
9062
af62665e
TT
90632020-03-31 Tom Tromey <tromey@adacore.com>
9064
9065 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
9066 memcpy.
9067
d1a89da5
NC
90682020-03-30 Nelson Chu <nelson.chu@sifive.com>
9069
9070 * features/riscv/32bit-csr.xml: Regenerated.
9071 * features/riscv/64bit-csr.xml: Regenerated.
9072
d8af9068
TT
90732020-03-30 Tom Tromey <tromey@adacore.com>
9074
9075 * ada-valprint.c (print_variant_part): Update.
9076 * ada-lang.h (ada_which_variant_applies): Update.
9077 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
9078 outer_valaddr parameters; replace with "outer" value parameter.
9079 (to_fixed_variant_branch_type): Update.
9080
227c0bf4
PFC
90812020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9082
9083 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
9084 <list>. Remove inclusion of observable.h.
9085 (PPC_DEBUG_CURRENT_VERSION): Move up define.
9086 (struct arch_lwp_info): New struct.
9087 (class ppc_linux_dreg_interface): New class.
9088 (struct ppc_linux_process_info): New struct.
9089 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
9090 <low_new_clone, low_forget_process, low_prepare_to_resume>
9091 <copy_thread_dreg_state, mark_thread_stale>
9092 <mark_debug_registers_changed, register_hw_breakpoint>
9093 <clear_hw_breakpoint, register_wp, clear_wp>
9094 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
9095 <num_memory_accesses, get_trigger_type>
9096 <create_watchpoint_request, hwdebug_point_cmp>
9097 <init_arch_lwp_info, get_arch_lwp_info>
9098 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
9099 methods.
9100 <struct ptid_hash>: New inner struct.
9101 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
9102 members.
9103 (saved_dabr_value, hwdebug_info, max_slots_number)
9104 (struct hw_break_tuple, struct thread_points, ppc_threads)
9105 (have_ptrace_hwdebug_interface)
9106 (hwdebug_find_thread_points_by_tid)
9107 (hwdebug_insert_point, hwdebug_remove_point): Remove.
9108 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
9109 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
9110 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
9111 use m_dreg_interface.
9112 (hwdebug_point_cmp): Change to...
9113 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
9114 reference arguments instead of pointers.
9115 (ppc_linux_nat_target::ranged_break_num_registers): Use
9116 m_dreg_interface.
9117 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
9118 m_dreg_interface. Call register_hw_breakpoint.
9119 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
9120 m_dreg_interface. Call clear_hw_breakpoint.
9121 (get_trigger_type): Change to...
9122 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
9123 comment.
9124 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
9125 use m_dreg_interface. Call register_hw_breakpoint.
9126 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
9127 use m_dreg_interface. Call clear_hw_breakpoint.
9128 (can_use_watchpoint_cond_accel): Change to...
9129 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
9130 method. Update comment, use m_dreg_interface and
9131 m_process_info.
9132 (calculate_dvc): Change to...
9133 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
9134 m_dreg_interface.
9135 (num_memory_accesses): Change to...
9136 (ppc_linux_nat_target::num_memory_accesses): ...this method.
9137 (check_condition): Change to...
9138 (ppc_linux_nat_target::check_condition): ...this method.
9139 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
9140 comment, use m_dreg_interface.
9141 (create_watchpoint_request): Change to...
9142 (ppc_linux_nat_target::create_watchpoint_request): ...this
9143 method. Use m_dreg_interface.
9144 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
9145 m_dreg_interface. Call register_hw_breakpoint or register_wp.
9146 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
9147 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
9148 (ppc_linux_nat_target::low_forget_process)
9149 (ppc_linux_nat_target::low_new_fork)
9150 (ppc_linux_nat_target::low_new_clone)
9151 (ppc_linux_nat_target::low_delete_thread)
9152 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
9153 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
9154 only call mark_thread_stale.
9155 (ppc_linux_thread_exit): Remove.
9156 (ppc_linux_nat_target::stopped_data_address): Change to...
9157 (ppc_linux_nat_target::low_stopped_data_address): This. Add
9158 comment, use m_dreg_interface and m_thread_hw_breakpoints.
9159 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
9160 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
9161 comment. Call low_stopped_data_address.
9162 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
9163 m_dreg_interface.
9164 (ppc_linux_nat_target::masked_watch_num_registers): Use
9165 m_dreg_interface.
9166 (ppc_linux_nat_target::copy_thread_dreg_state)
9167 (ppc_linux_nat_target::mark_thread_stale)
9168 (ppc_linux_nat_target::mark_debug_registers_changed)
9169 (ppc_linux_nat_target::register_hw_breakpoint)
9170 (ppc_linux_nat_target::clear_hw_breakpoint)
9171 (ppc_linux_nat_target::register_wp)
9172 (ppc_linux_nat_target::clear_wp)
9173 (ppc_linux_nat_target::init_arch_lwp_info)
9174 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9175 (_initialize_ppc_linux_nat): Remove observer callback.
9176
4db10d8f
PFC
91772020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9178
9179 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9180 (ppc_linux_nat_target::auxv_parse)
9181 (ppc_linux_nat_target::read_description)
9182 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9183 Move up.
9184
1310c1b0
PFC
91852020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9186
9187 * linux-nat.h (low_new_clone): New method.
9188 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9189
69b037c3
SM
91902020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9191
9192 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9193 (dbx_expand_psymtab): ... this.
9194 (start_psymtab): Update.
9195 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9196 (mdebug_expand_psymtab): ... this.
9197 (parse_partial_symbols): Update.
9198 (new_psymtab): Update.
9199 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9200 (xcoff_expand_psymtab): ... this.
9201 (xcoff_start_psymtab): Update.
9202
48993951
SM
92032020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9204
9205 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9206 <expand_dependencies>: ... this.
9207 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9208 (partial_symtab::expand_dependencies): ... this.
9209 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9210 Update.
9211 (dwarf2_psymtab::expand_psymtab): Update.
9212 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9213 * mdebugread.c (psymtab_to_symtab_1): Update.
9214 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9215
3ad83046
SM
92162020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9217
9218 * psympriv.h (discard_psymtab): Remove.
9219 * dbxread.c (dbx_end_psymtab): Update.
9220 * xcoffread.c (xcoff_end_psymtab): Update.
9221
4d1b9ab6
TT
92222020-03-28 Tom Tromey <tom@tromey.com>
9223
9224 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9225 comment.
9226
f1749218
TT
92272020-03-28 Tom Tromey <tom@tromey.com>
9228
9229 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9230
ebea7626
HD
92312020-03-27 Hannes Domani <ssbssa@yahoo.de>
9232
9233 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9234
a879b4d5
JB
92352020-03-26 John Baldwin <jhb@FreeBSD.org>
9236
9237 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9238
0826b30a
TT
92392020-03-26 Tom Tromey <tom@tromey.com>
9240
9241 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9242 (mark_common_block_symbol_computed, read_tag_string_type)
9243 (attr_to_dynamic_prop, read_subrange_type): Update.
9244 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9245 to be methods on struct attribute.
9246 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9247 (read_call_site_scope, partial_die_info::read)
9248 (partial_die_info::read, lookup_die_type, follow_die_ref):
9249 Update.
9250 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9251 from dwarf2_get_ref_die_offset.
9252 (attribute::constant_value): New method, from
9253 dwarf2_get_attr_constant_value.
9254 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9255 Declare method.
9256 <constant_value>: New method.
9257
2b2558bf
TT
92582020-03-26 Tom Tromey <tom@tromey.com>
9259
9260 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9261 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9262 (dwarf_type_encoding_name): Move to stringify.c.
9263 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9264 * dwarf2/stringify.c: New file.
9265 * dwarf2/stringify.h: New file.
9266
eeb64781
TT
92672020-03-26 Tom Tromey <tom@tromey.com>
9268
9269 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9270 Rewrite.
9271
a39fdb41
TT
92722020-03-26 Tom Tromey <tom@tromey.com>
9273
9274 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9275 methods.
9276 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9277 (lookup_ranges_base): Likewise.
9278 (read_cutu_die_from_dwo, read_full_die_1): Update.
9279
436c571c
TT
92802020-03-26 Tom Tromey <tom@tromey.com>
9281
9282 * dwarf2/read.c (read_import_statement, read_file_scope)
9283 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9284 (read_lexical_block_scope, read_call_site_scope)
9285 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9286 (handle_struct_member_die, process_structure_scope)
9287 (update_enumeration_type_from_children)
9288 (process_enumeration_scope, read_array_type, read_common_block)
9289 (read_namespace, read_module, read_subroutine_type): Update.
9290 (sibling_die): Remove.
9291
052c8bb8
TT
92922020-03-26 Tom Tromey <tom@tromey.com>
9293
9294 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9295 (build_type_psymtabs_reader, read_structure_type)
9296 (read_enumeration_type, read_full_die_1): Update.
9297 (dwarf2_attr_no_follow): Move to die.h.
9298 * dwarf2/die.h (struct die_info) <attr>: New method.
9299
2b24b6e4
TT
93002020-03-26 Tom Tromey <tom@tromey.com>
9301
9302 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9303 <base_address>: Now an optional.
9304 (dwarf2_find_base_address, dwarf2_rnglists_process)
9305 (dwarf2_ranges_process, fill_in_loclist_baton)
9306 (dwarf2_symbol_mark_computed): Update.
9307
c2d50fd0
TT
93082020-03-26 Tom Tromey <tom@tromey.com>
9309
9310 * dwarf2/read.c (struct die_info): Move to die.h.
9311 * dwarf2/die.h: New file.
9312
0df7ad3a
TT
93132020-03-26 Tom Tromey <tom@tromey.com>
9314
9315 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9316 * dwarf2/read.c
9317 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9318 Move to line-header.c.
9319 (read_checked_initial_length_and_offset, read_formatted_entries):
9320 Likewise.
9321 (dwarf_decode_line_header): Split into two.
9322 * dwarf2/line-header.c
9323 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9324 Move from read.c.
9325 (read_checked_initial_length_and_offset, read_formatted_entries):
9326 Likewise.
9327 (dwarf_decode_line_header): New function, split from read.c.
9328
86c0bb4c
TT
93292020-03-26 Tom Tromey <tom@tromey.com>
9330
9331 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9332 Declare method.
9333 * dwarf2/read.c (read_attribute_value): Update.
9334 (dwarf2_per_objfile::read_line_string): Rename from
9335 read_indirect_line_string.
9336 (read_formatted_entries): Update.
9337
2ef46c2f
TT
93382020-03-26 Tom Tromey <tom@tromey.com>
9339
9340 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9341 variable.
9342
4f9c1eda
TT
93432020-03-26 Tom Tromey <tom@tromey.com>
9344
9345 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9346 const.
9347 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9348 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9349 parameter const.
9350
5a0e026f
TT
93512020-03-26 Tom Tromey <tom@tromey.com>
9352
9353 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9354 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9355 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9356 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9357
8844c11b
TT
93582020-03-26 Tom Tromey <tom@tromey.com>
9359
9360 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9361 file_names_size, file_full_name, file_file_name>: Use const.
9362 <file_name_at, file_names>: Add const overload.
9363 * dwarf2/line-header.c (line_header::file_file_name)
9364 (line_header::file_full_name): Update.
9365
c90ec28a
TT
93662020-03-26 Tom Tromey <tom@tromey.com>
9367
9368 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9369 (macro_start_file, consume_improper_spaces)
9370 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9371 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9372 (dwarf_decode_macros): Move to macro.c.
9373 * dwarf2/macro.c: New file.
9374 * dwarf2/macro.h: New file.
9375 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9376
4f44ae6c
TT
93772020-03-26 Tom Tromey <tom@tromey.com>
9378
9379 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9380 method.
9381 * dwarf2/section.c: New method. From
9382 read_indirect_string_at_offset_from.
9383 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9384 (read_indirect_string_at_offset_from): Move to section.c.
9385 (read_indirect_string_at_offset): Rewrite.
9386 (read_indirect_line_string_at_offset): Remove.
9387 (read_indirect_string, read_indirect_line_string)
9388 (dwarf_decode_macro_bytes): Update.
9389
a0194fa8
TT
93902020-03-26 Tom Tromey <tom@tromey.com>
9391
9392 * dwarf2/section.h (struct dwarf2_section_info)
9393 <overload_complaint>: Declare.
9394 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9395 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9396 Rename from dwarf2_section_buffer_overflow_complaint.
9397 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9398 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9399
3d27bbdb
TT
94002020-03-26 Tom Tromey <tom@tromey.com>
9401
9402 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9403 Declare.
9404 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9405 Move from read.c.
9406 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9407 to section.c.
9408
9eac9650
TT
94092020-03-26 Tom Tromey <tom@tromey.com>
9410
9411 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9412
bf80d710
TT
94132020-03-26 Tom Tromey <tom@tromey.com>
9414
9415 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9416 "builder".
9417 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9418 parameter.
9419 (dwarf_decode_macros): Update.
9420
0314b390
TT
94212020-03-26 Tom Tromey <tom@tromey.com>
9422
9423 * dwarf2/read.c (read_attribute_value): Update.
9424 (read_indirect_string_from_dwz): Move to dwz.c; change into
9425 method.
9426 (dwarf_decode_macro_bytes): Update.
9427 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9428 * dwarf2/dwz.c: New file.
9429 * Makefile.in (COMMON_SFILES): Add dwz.c.
9430
9fda78b6
TT
94312020-03-26 Tom Tromey <tom@tromey.com>
9432
9433 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9434 * dwarf2/read.c: Add include.
9435 * dwarf2/index-write.c: Add include.
9436 * dwarf2/index-cache.c: Add include.
9437 * dwarf2/dwz.h: New file.
9438
33aa3c10
TT
94392020-03-25 Tom Tromey <tom@tromey.com>
9440
9441 * compile/compile-object-load.c (get_out_value_type): Mention
9442 correct symbol name in error message.
9443
d503b685
HD
94442020-03-25 Hannes Domani <ssbssa@yahoo.de>
9445
9446 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9447
7b1eff95
TV
94482020-03-25 Tom de Vries <tdevries@suse.de>
9449
9450 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9451 * symmisc.c (dump_symtab_1): Print user and includes fields.
9452 (maintenance_info_symtabs): Same.
9453
dd895392
AB
94542020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9455
9456 PR gdb/25534
9457 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9458 (riscv_regcache_cooked_write): New function.
9459 (riscv_push_dummy_call): Use new function.
9460 (riscv_return_value): Likewise.
9461
5ab2fbf1
SM
94622020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9463
9464 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9465 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9466 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9467 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9468 * infrun.c (follow_fork): Likewise.
9469 (follow_fork_inferior): Likewise.
9470 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9471 * linux-nat.h (class linux_nat_target): Likewise.
9472 * remote.c (class remote_target) <follow_fork>: Likewise.
9473 (remote_target::follow_fork): Likewise.
9474 * target-delegates.c: Re-generate.
9475 * target.c (default_follow_fork): Likewise.
9476 (target_follow_fork): Likewise.
9477 * target.h (struct target_ops) <follow_fork>: Likewise.
9478 (target_follow_fork): Likewise.
9479
a64fafb5
TV
94802020-03-24 Tom de Vries <tdevries@suse.de>
9481
9482 * psymtab.c (maintenance_info_psymtabs): Print user field.
9483
fe26d3a3
TT
94842020-03-20 Tom Tromey <tromey@adacore.com>
9485
9486 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9487 const.
9488 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9489 const.
9490
c884cc46
SM
94912020-03-20 Simon Marchi <simon.marchi@efficios.com>
9492
9493 * ptrace.m4: Don't check for ptrace declaration.
9494 * config.in: Re-generate.
9495 * configure: Re-generate.
9496 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9497 not defined.
9498
1ff700c2
KR
94992020-03-20 Kamil Rytarowski <n54@gmx.com>
9500
9501 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9502 `PTRACE_TYPE_RET'.
9503 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9504 * sparc-nat.c (gdb_ptrace): Likewise.
9505 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9506
f7d4f0b1
TT
95072020-03-20 Tom Tromey <tromey@adacore.com>
9508
9509 * c-exp.y (lex_one_token): Fix assert.
9510
f67210ff
TT
95112020-03-20 Tom Tromey <tromey@adacore.com>
9512
9513 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9514 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9515 strncpy call.
9516
1773be9e
TT
95172020-03-20 Tom Tromey <tromey@adacore.com>
9518
9519 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9520
70304be9
TT
95212020-03-20 Tom Tromey <tromey@adacore.com>
9522
9523 * ada-valprint.c (print_variant_part): Remove parameters; switch
9524 to value-based API.
9525 (print_field_values): Likewise.
9526 (ada_val_print_struct_union): Likewise.
9527 (ada_value_print_1): Update.
9528
9faa006d
KR
95292020-03-20 Kamil Rytarowski <n54@gmx.com>
9530
9531 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9532 nbsd_nat_target instead of inf_ptrace_target.
9533 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9534 nbsd_nat_target.
9535
4a90f062
KR
95362020-03-20 Kamil Rytarowski <n54@gmx.com>
9537
9538 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9539 it to the ptrace call.
9540 * (store_registers): Likewise.
9541
95422020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
9543
9544 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9545 it to the ptrace call.
9546 * (store_registers): Likewise.
9547
2d07da27
LM
95482020-03-19 Luis Machado <luis.machado@linaro.org>
9549
9550 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9551 valid, fetch vg value from ptrace.
9552
f09db380
KR
95532020-03-19 Kamil Rytarowski <n54@gmx.com>
9554 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9555 * inf-ptrace.c: Likewise.
9556 * (gdb_ptrace): Add.
9557 * (inf_ptrace_target::resume): Update.
9558 * (inf_ptrace_target::xfer_partial): Likewise.
9559 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9560 * (inf_ptrace_peek_poke): Update.
9561
fcc7376e
KR
95622020-03-19 Kamil Rytarowski <n54@gmx.com>
9563
9564 * x86-bsd-nat.c (gdb_ptrace): New.
9565 * (x86bsd_dr_set): Add new argument `ptid'.
9566 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9567 x86bsd_dr_set_addr): Update.
9568
cada5fc9
AB
95692020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9570
9571 * remote.c (remote_target::process_stop_reply): Handle events for
9572 all threads differently.
9573
19a2740f
AB
95742020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9575
9576 * completer.c (completion_tracker::remove_completion): Define new
9577 function.
9578 * completer.h (completion_tracker::remove_completion): Declare new
9579 function.
9580 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9581 when adding a C++ function symbol.
9582
724fd9ba
AB
95832020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9584
9585 * completer.c (completion_tracker::completion_hash_entry): Define
9586 new class.
9587 (advance_to_filename_complete_word_point): Call
9588 recompute_lowest_common_denominator.
9589 (completion_tracker::completion_tracker): Call discard_completions
9590 to setup the hash table.
9591 (completion_tracker::discard_completions): Allow for being called
9592 from the constructor, pass new equal function, and element deleter
9593 when constructing the hash table. Initialise new class member
9594 variables.
9595 (completion_tracker::maybe_add_completion): Remove use of
9596 m_entries_vec, and store more information into m_entries_hash.
9597 (completion_tracker::recompute_lcd_visitor): New function, most
9598 content taken from...
9599 (completion_tracker::recompute_lowest_common_denominator):
9600 ...here, this now just visits each item in the hash calling the
9601 above visitor.
9602 (completion_tracker::build_completion_result): Remove use of
9603 m_entries_vec, call recompute_lowest_common_denominator.
9604 * completer.h (completion_tracker::have_completions): Remove use
9605 of m_entries_vec.
9606 (completion_tracker::completion_hash_entry): Declare new class.
9607 (completion_tracker::recompute_lowest_common_denominator): Change
9608 function signature.
9609 (completion_tracker::recompute_lcd_visitor): Declare new function.
9610 (completion_tracker::m_entries_vec): Delete.
9611 (completion_tracker::m_entries_hash): Initialize to NULL.
9612 (completion_tracker::m_lowest_common_denominator_valid): New
9613 member variable.
9614 (completion_tracker::m_lowest_common_denominator_max_length): New
9615 member variable.
9616
5a82b8a1
KR
96172020-03-17 Kamil Rytarowski <n54@gmx.com>
9618
9619 * regformats/regdef.h: Put reg in gdb namespace.
9620
fb516a69
KR
96212020-03-17 Kamil Rytarowski <n54@gmx.com>
9622
9623 * i386-bsd-nat.c (gdb_ptrace): New.
9624 * (i386bsd_fetch_inferior_registers,
9625 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9626 * (i386bsd_fetch_inferior_registers,
9627 i386bsd_store_inferior_registers) Use gdb_ptrace.
9628
1c0aa1fb
KR
96292020-03-17 Kamil Rytarowski <n54@gmx.com>
9630
9631 * amd64-bsd-nat.c (gdb_ptrace): New.
9632 * (amd64bsd_fetch_inferior_registers,
9633 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9634 * (amd64bsd_fetch_inferior_registers,
9635 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9636
5ccd2fb7
KR
96372020-03-17 Kamil Rytarowski <n54@gmx.com>
9638
9639 * user-regs.c (user_reg::read): Rename to...
9640 (user_reg::xread): ...this.
9641 * (append_user_reg): Rename argument `read' to `xread'.
9642 * (user_reg_add_builtin): Likewise.
9643 * (user_reg_add): Likewise.
9644 * (value_of_user_reg): Likewise.
9645
2108a63a
KR
96462020-03-17 Kamil Rytarowski <n54@gmx.com>
9647
9648 * sparc-nat.c (gdb_ptrace): New.
9649 * sparc-nat.c (sparc_fetch_inferior_registers)
9650 (sparc_store_inferior_registers) Remove obsolete comment.
9651 * sparc-nat.c (sparc_fetch_inferior_registers)
9652 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9653 * sparc-nat.c (sparc_fetch_inferior_registers)
9654 (sparc_store_inferior_registers) Use gdb_ptrace.
9655
a225c9a8
KR
96562020-03-17 Kamil Rytarowski <n54@gmx.com>
9657
9658 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9659 it to the ptrace call.
9660 * sh-nbsd-nat.c (store_registers): Likewise.
9661
98097623
KR
96622020-03-17 Kamil Rytarowski <n54@gmx.com>
9663
9664 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9665 nbsd_nat_target instead of inf_ptrace_target.
9666 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9667 nbsd_nat_target.
9668
9e38d619
KR
96692020-03-17 Kamil Rytarowski <n54@gmx.com>
9670
9671 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9672
a2ecbe9f
KR
96732020-03-17 Kamil Rytarowski <n54@gmx.com>
9674
9675 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9676 <sys/sysctl.h>.
9677 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9678
58990295
TV
96792020-03-17 Tom de Vries <tdevries@suse.de>
9680
9681 PR gdb/23710
9682 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9683 fields.
9684 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9685 fields.
9686 (process_imported_unit_die): Skip import of c++ CUs.
9687
771dd3a8
TT
96882020-03-16 Tom Tromey <tom@tromey.com>
9689
9690 * p-valprint.c (pascal_object_print_value): Initialize
9691 base_value.
9692
817a7585
AK
96932020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9694 Shahab Vahedi <shahab@synopsys.com>
9695
9696 * Makefile.in: Add arch/arc.o
9697 * configure.tgt: Likewise.
9698 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9699 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 9700 (arc_read_description): New function to cache target descriptions.
817a7585
AK
9701 * arc-tdep.h (arc_read_description): Add proto type.
9702 * arch/arc.c: New file.
9703 * arch/arc.h: Likewise.
9704 * features/Makefile: Replace old target descriptions with new.
9705 * features/arc-arcompact.c: Remove.
9706 * features/arc-arcompact.xml: Likewise.
9707 * features/arc-v2.c: Likewise
9708 * features/arc-v2.xml: Likewise
9709 * features/arc/aux-arcompact.xml: New file.
9710 * features/arc/aux-v2.xml: Likewise.
9711 * features/arc/core-arcompact.xml: Likewise.
9712 * features/arc/core-v2.xml: Likewise.
9713 * features/arc/aux-arcompact.c: Generate.
9714 * features/arc/aux-v2.c: Likewise.
9715 * features/arc/core-arcompact.c: Likewise.
9716 * features/arc/core-v2.c: Likewise.
9717 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9718
67430cd0
TT
97192020-03-16 Tom Tromey <tromey@adacore.com>
9720
9721 PR gdb/25663:
9722 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9723 putting value into bcache.
9724
30efb6c7
SM
97252020-03-16 Simon Marchi <simon.marchi@efficios.com>
9726
9727 PR gdb/21500
9728 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9729 to...
9730 (amd64_windows_init_abi_common): ... this. Don't set size of
9731 long type.
9732 (amd64_windows_init_abi): New function.
9733 (amd64_cygwin_init_abi): New function.
9734 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9735 the Cygwin OS ABI.
9736 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9737 comment.
9738
8db52437
SM
97392020-03-16 Simon Marchi <simon.marchi@efficios.com>
9740
9741 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9742 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9743 (pe_import_directory_entry): New struct type.
9744 (is_linked_with_cygwin_dll): New function.
9745 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9746 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9747 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9748
5982a56a
SM
97492020-03-16 Simon Marchi <simon.marchi@efficios.com>
9750
9751 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9752 i386_cygwin_core_osabi_sniffer.
9753
7a1998df
SM
97542020-03-16 Simon Marchi <simon.marchi@efficios.com>
9755
9756 * i386-cygwin-tdep.c: Rename to...
9757 * i386-windows-tdep.c: ... this.
9758 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9759 i386-windows-tdep.c.
9760 * configure.tgt: Likewise.
9761
053205cc
SM
97622020-03-16 Simon Marchi <simon.marchi@efficios.com>
9763
9764 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9765 * osabi.c (gdb_osabi_names): Add "Windows".
9766 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9767 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9768 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9769 i386_cygwin_osabi_sniffer.
9770 (_initialize_i386_cygwin_tdep): Register OS ABI
9771 GDB_OSABI_WINDOWS for i386.
9772 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9773 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9774 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9775 for x86-64.
9776 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9777 when the target matches '*-*-mingw*'.
9778
fe4b2ee6
SM
97792020-03-16 Simon Marchi <simon.marchi@efficios.com>
9780
9781 * defs.h (enum gdb_osabi): Move to...
9782 * osabi.h (enum gdb_osabi): ... here.
9783 * gdbarch.sh: Include osabi.h in gdbarch.h.
9784 * gdbarch.h: Re-generate.
9785
cb9b645d
SM
97862020-03-16 Simon Marchi <simon.marchi@efficios.com>
9787
9788 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9789 function.
9790 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9791
3293bbaf
TT
97922020-03-14 Tom Tromey <tom@tromey.com>
9793
9794 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9795 for C++.
9796 (c_type_print_modifier): Likewise. Add "language" parameter.
9797 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9798 (c_type_print_base_1): Update.
9799 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9800 constants.
9801 * type-stack.c (type_stack::insert): Handle tp_atomic and
9802 tp_restrict.
9803 (type_stack::follow_type_instance_flags): Likewise.
9804 (type_stack::follow_types): Likewise. Merge type-following code.
9805 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9806 (space_identifier, cv_with_space_id)
9807 (const_or_volatile_or_space_identifier_noopt)
9808 (const_or_volatile_or_space_identifier): Remove.
9809 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9810 rules.
9811 (ptr_operator, typebase): Update.
9812 (enum token_flag) <FLAG_C>: New constant.
9813 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9814 "_Atomic".
9815 (lex_one_token): Handle FLAG_C.
9816
154151a6
KR
98172020-03-14 Kamil Rytarowski <n54@gmx.com>
9818
9819 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9820 it to the ptrace call.
9821 * m68k-bsd-nat.c (store_registers): Likewise.
9822
bc107784
KR
98232020-03-14 Kamil Rytarowski <n54@gmx.com>
9824
9825 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9826 gdb_byte *.
9827 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9828 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9829 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9830
01a80117
KR
98312020-03-14 Kamil Rytarowski <n54@gmx.com>
9832
9833 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
9834 nbsd_nat_target instead of inf_ptrace_target.
9835 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9836 nbsd_nat_target.
9837
f90280ca
KR
98382020-03-14 Kamil Rytarowski <n54@gmx.com>
9839
9840 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
9841 register_t.
9842
6def66f1
KR
98432020-03-14 Kamil Rytarowski <n54@gmx.com>
9844
9845 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9846 it to the ptrace call.
9847 * alpha-bsd-nat.c (store_registers): Likewise.
9848
66eaca97
KR
98492020-03-14 Kamil Rytarowski <n54@gmx.com>
9850
9851 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
9852 includes.
9853 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
9854 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
9855 fill_fpregset): Likewise.
9856
4fed520b
KR
98572020-03-14 Kamil Rytarowski <n54@gmx.com>
9858
9859 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
9860 nbsd_nat_target instead of inf_ptrace_target.
9861 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9862 nbsd_nat_target.
9863
2190cf06
KR
98642020-03-14 Kamil Rytarowski <n54@gmx.com>
9865
9866 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
9867 register_t.
9868
75c56d3d
KR
98692020-03-14 Kamil Rytarowski <n54@gmx.com>
9870
9871 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
9872 it to the ptrace call.
9873 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
9874 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
9875 * arm-nbsd-nat.c (store_register): Likewise.
9876 * arm-nbsd-nat.c (store_regs): Likewise.
9877 * arm-nbsd-nat.c (store_fp_register): Likewise.
9878 * arm-nbsd-nat.c (store_fp_regs): Likewise.
9879
6018d381
KR
98802020-03-14 Kamil Rytarowski <n54@gmx.com>
9881
9882 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
9883 nbsd_nat_target instead of inf_ptrace_target.
9884 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9885 nbsd_nat_target.
9886
013f99f0
KR
98872020-03-14 Kamil Rytarowski <n54@gmx.com>
9888
9889 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9890 it to the ptrace call.
9891 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9892
12753073
KR
98932020-03-14 Kamil Rytarowski <n54@gmx.com>
9894
6227b330
KR
9895 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9896 it to the ptrace call.
9897 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9898
98992020-03-14 Kamil Rytarowski <n54@gmx.com>
9900
9901 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9902 gdb_byte *.
12753073
KR
9903 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9904
d5be5fa4
KR
99052020-03-14 Kamil Rytarowski <n54@gmx.com>
9906
9907 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9908 instead of inf_ptrace_target.
9909 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9910 nbsd_nat_target.
9911
8110f842
KR
99122020-03-14 Kamil Rytarowski <n54@gmx.com>
9913
9914 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9915 register_t.
9916
52feded7
KR
99172020-03-14 Kamil Rytarowski <n54@gmx.com>
9918
9919 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9920 register_t.
9921
25567eee
KR
99222020-03-14 Kamil Rytarowski <n54@gmx.com>
9923
9924 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9925 register_t.
9926
426a9c18
TT
99272020-03-13 Tom Tromey <tom@tromey.com>
9928
9929 * value.h (val_print): Don't declare.
9930 * valprint.h (val_print_array_elements)
9931 (val_print_scalar_formatted, generic_val_print): Don't declare.
9932 * valprint.c (generic_val_print_array): Take a struct value.
9933 (generic_val_print_ptr, generic_val_print_memberptr)
9934 (generic_val_print_bool, generic_val_print_int)
9935 (generic_val_print_char, generic_val_print_complex)
9936 (generic_val_print): Remove.
9937 (generic_value_print): Update.
9938 (do_val_print): Remove unused parameters. Don't call
9939 la_val_print.
9940 (val_print): Remove.
9941 (common_val_print): Update. Don't call value_check_printable.
9942 (val_print_scalar_formatted, val_print_array_elements): Remove.
9943 * rust-lang.c (rust_val_print): Remove.
9944 (rust_language_defn): Update.
9945 * p-valprint.c (pascal_val_print): Remove.
9946 (pascal_value_print_inner): Update.
9947 (pascal_object_print_val_fields, pascal_object_print_val):
9948 Remove.
9949 (pascal_object_print_static_field): Update.
9950 * p-lang.h (pascal_val_print): Don't declare.
9951 * p-lang.c (pascal_language_defn): Update.
9952 * opencl-lang.c (opencl_language_defn): Update.
9953 * objc-lang.c (objc_language_defn): Update.
9954 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9955 * m2-lang.h (m2_val_print): Don't declare.
9956 * m2-lang.c (m2_language_defn): Update.
9957 * language.h (struct language_defn) <la_val_print>: Remove.
9958 * language.c (unk_lang_value_print_inner): Rename. Change
9959 argument types.
9960 (unknown_language_defn, auto_language_defn): Update.
9961 * go-valprint.c (go_val_print): Remove.
9962 * go-lang.h (go_val_print): Don't declare.
9963 * go-lang.c (go_language_defn): Update.
9964 * f-valprint.c (f_val_print): Remove.
9965 * f-lang.h (f_value_print): Don't declare.
9966 * f-lang.c (f_language_defn): Update.
9967 * d-valprint.c (d_val_print): Remove.
9968 * d-lang.h (d_value_print): Don't declare.
9969 * d-lang.c (d_language_defn): Update.
9970 * cp-valprint.c (cp_print_value_fields)
9971 (cp_print_value_fields_rtti, cp_print_value): Remove.
9972 (cp_print_static_field): Update.
9973 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9974 (c_val_print_struct, c_val_print_union, c_val_print_int)
9975 (c_val_print_memberptr, c_val_print): Remove.
9976 * c-lang.h (c_val_print_array, cp_print_value_fields)
9977 (cp_print_value_fields_rtti): Don't declare.
9978 * c-lang.c (c_language_defn, cplus_language_defn)
9979 (asm_language_defn, minimal_language_defn): Update.
9980 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9981 (ada_val_print_enum): Take a struct value.
9982 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9983 (ada_val_print): Remove.
9984 (ada_value_print_1): Update.
9985 (printable_val_type): Remove.
9986 * ada-lang.h (ada_val_print): Don't declare.
9987 * ada-lang.c (ada_language_defn): Update.
9988
42331a1e
TT
99892020-03-13 Tom Tromey <tom@tromey.com>
9990
9991 * valprint.c (do_val_print): Update.
9992 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9993 a struct value.
9994 (value_to_value_object_no_release): Declare.
9995 * python/py-value.c (value_to_value_object_no_release): New
9996 function.
9997 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9998 struct value.
9999 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
10000 function.
10001 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
10002 a struct value.
10003 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
10004 Declare.
10005 (gdbscm_apply_val_pretty_printer): Take a struct value.
10006 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
10007 value.
10008 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
10009 value.
10010 * extension-priv.h (struct extension_language_ops)
10011 <apply_val_pretty_printer>: Take a struct value.
10012 * cp-valprint.c (cp_print_value): Create a struct value.
10013 (cp_print_value): Update.
10014
3a916a97
TT
100152020-03-13 Tom Tromey <tom@tromey.com>
10016
10017 * ada-valprint.c (print_field_values): Call common_val_print.
10018
b59eac37
TT
100192020-03-13 Tom Tromey <tom@tromey.com>
10020
10021 * ada-valprint.c (val_print_packed_array_elements): Remove
10022 bitoffset and val parameters. Call common_val_print.
10023 (ada_val_print_string): Remove offset, address, and original_value
10024 parameters.
10025 (ada_val_print_array): Update.
10026 (ada_value_print_array): New function.
10027 (ada_value_print_1): Call it.
10028
03371129
TT
100292020-03-13 Tom Tromey <tom@tromey.com>
10030
10031 * ada-valprint.c (ada_value_print): Use common_val_print.
10032
2e088f8b
TT
100332020-03-13 Tom Tromey <tom@tromey.com>
10034
10035 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
10036
39ef85a8
TT
100372020-03-13 Tom Tromey <tom@tromey.com>
10038
10039 * ada-valprint.c (ada_value_print_num): New function.
10040 (ada_value_print_1): Use it.
10041
b9fa6e07
TT
100422020-03-13 Tom Tromey <tom@tromey.com>
10043
10044 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
10045
416595d6
TT
100462020-03-13 Tom Tromey <tom@tromey.com>
10047
10048 * ada-valprint.c (ada_value_print_ptr): New function.
10049 (ada_value_print_1): Use it.
10050
5b5e15ec
TT
100512020-03-13 Tom Tromey <tom@tromey.com>
10052
10053 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
10054 call common_val_print.
10055 (ada_val_print_1): Update.
10056 (ada_value_print_1): New function.
10057 (ada_value_print_inner): Rewrite.
10058
fbf54e75
TT
100592020-03-13 Tom Tromey <tom@tromey.com>
10060
10061 * cp-valprint.c (cp_print_value_fields): Update.
10062 (cp_print_value): New function.
10063
64b653ca
TT
100642020-03-13 Tom Tromey <tom@tromey.com>
10065
10066 * m2-valprint.c (m2_value_print_inner): Use
10067 cp_print_value_fields.
10068 * cp-valprint.c (cp_print_value_fields): New function.
10069 * c-valprint.c (c_value_print_struct): New function.
10070 (c_value_print_inner): Use c_value_print_struct.
10071 * c-lang.h (cp_print_value_fields): Declare.
10072
6999f067
TT
100732020-03-13 Tom Tromey <tom@tromey.com>
10074
10075 * c-valprint.c (c_value_print_array): New function.
10076 (c_value_print_inner): Use it.
10077
ce80b8bd
TT
100782020-03-13 Tom Tromey <tom@tromey.com>
10079
10080 * c-valprint.c (c_value_print_memberptr): New function.
10081 (c_value_print_inner): Use it.
10082
2faac269
TT
100832020-03-13 Tom Tromey <tom@tromey.com>
10084
10085 * c-valprint.c (c_value_print_int): New function.
10086 (c_value_print_inner): Use it.
10087
da3e2c29
TT
100882020-03-13 Tom Tromey <tom@tromey.com>
10089
10090 * c-valprint.c (c_value_print_ptr): New function.
10091 (c_value_print_inner): Use it.
10092
50836231
TT
100932020-03-13 Tom Tromey <tom@tromey.com>
10094
10095 * c-valprint.c (c_value_print_inner): Rewrite.
10096
4f412b6e
TT
100972020-03-13 Tom Tromey <tom@tromey.com>
10098
10099 * valprint.c (generic_value_print_complex): New function.
10100 (generic_value_print): Use it.
10101
f5354008
TT
101022020-03-13 Tom Tromey <tom@tromey.com>
10103
10104 * valprint.c (generic_val_print_float): Don't call
10105 val_print_scalar_formatted.
10106 (generic_val_print, generic_value_print): Update.
10107
3eec3b05
TT
101082020-03-13 Tom Tromey <tom@tromey.com>
10109
10110 * valprint.c (generic_value_print_char): New function
10111 (generic_value_print): Use it.
10112
fdddfccb
TT
101132020-03-13 Tom Tromey <tom@tromey.com>
10114
10115 * valprint.c (generic_value_print_int): New function.
10116 (generic_value_print): Use it.
10117
6dde7521
TT
101182020-03-13 Tom Tromey <tom@tromey.com>
10119
10120 * valprint.c (generic_value_print_bool): New function.
10121 (generic_value_print): Use it.
10122
4112d2e6
TT
101232020-03-13 Tom Tromey <tom@tromey.com>
10124
10125 * valprint.c (generic_val_print_func): Simplify.
10126 (generic_val_print, generic_value_print): Update.
10127
65786af6
TT
101282020-03-13 Tom Tromey <tom@tromey.com>
10129
10130 * valprint.c (generic_val_print_flags): Remove.
10131 (generic_val_print, generic_value_print): Update.
10132 (val_print_type_code_flags): Add original_value parameter.
10133
40f3ce18
TT
101342020-03-13 Tom Tromey <tom@tromey.com>
10135
10136 * valprint.c (generic_val_print): Update.
10137 (generic_value_print): Update.
10138 * valprint.c (generic_val_print_enum): Don't call
10139 val_print_scalar_formatted.
10140
2a5b130b
TT
101412020-03-13 Tom Tromey <tom@tromey.com>
10142
10143 * valprint.c (generic_value_print): Call generic_value_print_ptr.
10144 * valprint.c (generic_value_print_ptr): New function.
10145
abc66ce9
TT
101462020-03-13 Tom Tromey <tom@tromey.com>
10147
10148 * valprint.c (generic_value_print): Rewrite.
10149
07a32858
TT
101502020-03-13 Tom Tromey <tom@tromey.com>
10151
10152 * p-valprint.c (pascal_object_print_value_fields)
10153 (pascal_object_print_value): New functions.
10154
64d64d3a
TT
101552020-03-13 Tom Tromey <tom@tromey.com>
10156
10157 * p-valprint.c (pascal_value_print_inner): Rewrite.
10158
6a95a1f5
TT
101592020-03-13 Tom Tromey <tom@tromey.com>
10160
10161 * f-valprint.c (f_value_print_innner): Rewrite.
10162
59fcdac6
TT
101632020-03-13 Tom Tromey <tom@tromey.com>
10164
10165 * m2-valprint.c (m2_print_unbounded_array): New overload.
10166 (m2_print_unbounded_array): Update.
10167 (m2_print_array_contents): Take a struct value.
10168 (m2_value_print_inner): Rewrite.
10169
d133c3e1
TT
101702020-03-13 Tom Tromey <tom@tromey.com>
10171
10172 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10173 (d_value_print_inner): New function.
10174 * d-lang.h (d_value_print_inner): Declare.
10175 * d-lang.c (d_language_defn): Use d_value_print_inner.
10176
23b0f06b
TT
101772020-03-13 Tom Tromey <tom@tromey.com>
10178
10179 * go-valprint.c (go_value_print_inner): New function.
10180 * go-lang.h (go_value_print_inner): Declare.
10181 * go-lang.c (go_language_defn): Use go_value_print_inner.
10182
5f56f7cb
TT
101832020-03-13 Tom Tromey <tom@tromey.com>
10184
10185 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10186 API.
10187 (rust_val_print): Rewrite.
10188 (rust_value_print_inner): New function, from rust_val_print.
10189 (rust_language_defn): Use rust_value_print_inner.
10190
26792ee0
TT
101912020-03-13 Tom Tromey <tom@tromey.com>
10192
10193 * ada-valprint.c (ada_value_print_inner): New function.
10194 * ada-lang.h (ada_value_print_inner): Declare.
10195 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10196
24051bbe
TT
101972020-03-13 Tom Tromey <tom@tromey.com>
10198
10199 * f-valprint.c (f_value_print_innner): New function.
10200 * f-lang.h (f_value_print_innner): Declare.
10201 * f-lang.c (f_language_defn): Use f_value_print_innner.
10202
c0941be6
TT
102032020-03-13 Tom Tromey <tom@tromey.com>
10204
10205 * p-valprint.c (pascal_value_print_inner): New function.
10206 * p-lang.h (pascal_value_print_inner): Declare.
10207 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10208
62c4663d
TT
102092020-03-13 Tom Tromey <tom@tromey.com>
10210
10211 * m2-valprint.c (m2_value_print_inner): New function.
10212 * m2-lang.h (m2_value_print_inner): Declare.
10213 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10214
62182190
TT
102152020-03-13 Tom Tromey <tom@tromey.com>
10216
10217 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10218 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10219 * c-valprint.c (c_value_print_inner): New function.
10220 * c-lang.h (c_value_print_inner): Declare.
10221 * c-lang.c (c_language_defn, cplus_language_defn)
10222 (asm_language_defn, minimal_language_defn): Use
10223 c_value_print_inner.
10224
1e592a8a
TT
102252020-03-13 Tom Tromey <tom@tromey.com>
10226
10227 * p-valprint.c (pascal_object_print_value_fields): Now static.
10228 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10229
7fe471e9
TT
102302020-03-13 Tom Tromey <tom@tromey.com>
10231
10232 * c-valprint.c (c_val_print_array): Simplify.
10233
d121c6ce
TT
102342020-03-13 Tom Tromey <tom@tromey.com>
10235
10236 * valprint.c (value_print_array_elements): New function.
10237 * valprint.h (value_print_array_elements): Declare.
10238
4dba70ee
TT
102392020-03-13 Tom Tromey <tom@tromey.com>
10240
10241 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10242 * mips-tdep.c (mips_print_register): Use
10243 value_print_scalar_formatted.
10244
4f9ae810
TT
102452020-03-13 Tom Tromey <tom@tromey.com>
10246
10247 * valprint.h (value_print_scalar_formatted): Declare.
10248 * valprint.c (value_print_scalar_formatted): New function.
10249
156bfec9
TT
102502020-03-13 Tom Tromey <tom@tromey.com>
10251
10252 * valprint.h (generic_value_print): Declare.
10253 * valprint.c (generic_value_print): New function.
10254
2b4e573d
TT
102552020-03-13 Tom Tromey <tom@tromey.com>
10256
10257 * valprint.c (do_val_print): Call la_value_print_inner, if
10258 available.
10259 * rust-lang.c (rust_language_defn): Update.
10260 * p-lang.c (pascal_language_defn): Update.
10261 * opencl-lang.c (opencl_language_defn): Update.
10262 * objc-lang.c (objc_language_defn): Update.
10263 * m2-lang.c (m2_language_defn): Update.
10264 * language.h (struct language_defn) <la_value_print_inner>: New
10265 member.
10266 * language.c (unknown_language_defn, auto_language_defn): Update.
10267 * go-lang.c (go_language_defn): Update.
10268 * f-lang.c (f_language_defn): Update.
10269 * d-lang.c (d_language_defn): Update.
10270 * c-lang.c (c_language_defn, cplus_language_defn)
10271 (asm_language_defn, minimal_language_defn): Update.
10272 * ada-lang.c (ada_language_defn): Update.
10273
a1f6a07c
TT
102742020-03-13 Tom Tromey <tom@tromey.com>
10275
10276 * c-valprint.c (c_value_print): Use common_val_print.
10277
410cf315
TT
102782020-03-13 Tom Tromey <tom@tromey.com>
10279
10280 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10281
72a45c93
TT
102822020-03-13 Tom Tromey <tom@tromey.com>
10283
10284 * f-valprint.c (f77_print_array_1, f_val_print): Use
10285 common_val_print.
10286
040f66bd
TT
102872020-03-13 Tom Tromey <tom@tromey.com>
10288
10289 * riscv-tdep.c (riscv_print_one_register_info): Use
10290 common_val_print.
10291
a6e05a6c
TT
102922020-03-13 Tom Tromey <tom@tromey.com>
10293
10294 * mi/mi-main.c (output_register): Use common_val_print.
10295
3444c526
TT
102962020-03-13 Tom Tromey <tom@tromey.com>
10297
10298 * infcmd.c (default_print_one_register_info): Use
10299 common_val_print.
10300
c2a44efe
TT
103012020-03-13 Tom Tromey <tom@tromey.com>
10302
10303 * valprint.h (common_val_print_checked): Declare.
10304 * valprint.c (common_val_print_checked): New function.
10305 * stack.c (print_frame_arg): Use common_val_print_checked.
10306
b0c26e99
TT
103072020-03-13 Tom Tromey <tom@tromey.com>
10308
10309 * valprint.c (do_val_print): New function, from val_print.
10310 (val_print): Use do_val_print.
10311 (common_val_print): Use do_val_print.
10312
ce3acbe9
TT
103132020-03-13 Tom Tromey <tom@tromey.com>
10314
10315 * valprint.c (value_print): Use scoped_value_mark.
10316
96c7f873
TV
103172020-03-13 Tom de Vries <tdevries@suse.de>
10318
10319 PR symtab/25646
10320 * psymtab.c (partial_symtab::partial_symtab): Don't set
10321 globals_offset and statics_offset. Push element onto
10322 current_global_psymbols and current_static_psymbols stacks.
10323 (concat): New function.
10324 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10325 element from current_global_psymbols and current_static_psymbols
10326 stacks. Concat popped elements to global_psymbols and
10327 static_symbols.
10328 (add_psymbol_to_list): Use current_global_psymbols and
10329 current_static_psymbols stacks.
10330 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10331 current_static_psymbols fields.
10332
6ba0a321
CB
103332020-03-12 Christian Biesinger <cbiesinger@google.com>
10334
10335 * corelow.c (sniff_core_bfd): Remove.
10336 (class core_target) <m_core_vec>: Remove.
10337 (core_target::core_target): Update.
10338 (core_file_fns): Remove.
10339 (deprecated_add_core_fns): Remove.
10340 (default_core_sniffer): Remove.
10341 (sniff_core_bfd): Remove.
10342 (default_check_format): Remove.
10343 (gdb_check_format): Remove.
10344 (core_target_open): Update.
10345 (core_target::get_core_register_section): Update.
10346 (get_core_registers_cb): Update.
10347 (core_target::fetch_registers): Update.
10348 * gdbcore.h (struct core_fns): Remove.
10349 (deprecated_add_core_fns): Remove.
10350 (default_core_sniffer): Remove.
10351 (default_check_format): Remove.
10352
227031b2
TT
103532020-03-12 Tom Tromey <tom@tromey.com>
10354
10355 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10356 CORE_ADDR.
10357 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10358
53807e9f
TT
103592020-03-12 Tom Tromey <tom@tromey.com>
10360
10361 * remote.c (remote_target::download_tracepoint)
10362 (remote_target::enable_tracepoint)
10363 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10364 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10365 sprintf_vma.
10366
64f25102
TT
103672020-03-12 Tom Tromey <tom@tromey.com>
10368
10369 * symfile-mem.c: Update CORE_ADDR size assert.
10370
272cd5a3
SM
103712020-03-12 Simon Marchi <simon.marchi@efficios.com>
10372
10373 * selftest.m4: Move to gdbsupport/.
10374 * acinclude.m4: Update path to selftest.m4.
10375
74cd3f9d
SM
103762020-03-12 Simon Marchi <simon.marchi@efficios.com>
10377
10378 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10379 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10380 gdbarch-selfselftests.c and selftest-arch.c.
10381 (SUBDIR_UNITTESTS_OBS): Rename to...
10382 (SELFTESTS_OBS): ... this.
10383 (COMMON_SFILES): Remove disasm-selftests.c and
10384 gdbarch-selftests.c.
10385 * configure.ac: Don't add selftest-arch.{c,o} to
10386 CONFIG_{SRCS,OBS}.
10387 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10388 preprocessor conditions.
10389
db6878ac
SM
103902020-03-12 Simon Marchi <simon.marchi@efficios.com>
10391
10392 * configure.ac: Don't source bfd/development.sh.
10393 * selftest.m4: Modify comment.
10394 * configure: Re-generate.
10395
4d696a5c
SM
103962020-03-12 Simon Marchi <simon.marchi@efficios.com>
10397
10398 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10399 not "true" or "false".
10400 * configure: Re-generate.
10401
8dd8e1c7
CB
104022020-03-12 Christian Biesinger <cbiesinger@google.com>
10403
10404 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10405 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10406 renamed to arm_nbsd_supply_gregset.
10407 (fetch_register): Update to call arm_nbsd_supply_gregset.
10408 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10409 (arm_netbsd_nat_target::fetch_registers): Update.
10410 (fetch_elfcore_registers): Removed.
10411 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10412 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10413 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10414 not require NetBSD system headers.
10415 (arm_nbsd_regset): New struct.
10416 (arm_nbsd_iterate_over_regset_sections): New function.
10417 (arm_netbsd_init_abi_common): Updated to call
10418 set_gdbarch_iterate_over_regset_sections.
10419 * arm-nbsd-tdep.h: New file.
10420
dd69bf7a
KB
104212020-03-11 Kevin Buettner <kevinb@redhat.com>
10422
10423 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10424 recursion.
10425
a0761e34
SM
104262020-03-11 Simon Marchi <simon.marchi@efficios.com>
10427
10428 * configure: Re-generate.
10429
e7a82140
TT
104302020-03-11 Tom Tromey <tromey@adacore.com>
10431
10432 * ada-typeprint.c (print_choices): Fix comment.
10433
dcc050c8
AB
104342020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10435
10436 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10437 previous item in the list, when the list has no items.
10438
1c33af77
TV
104392020-03-11 Tom de Vries <tdevries@suse.de>
10440
10441 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10442 PROP_LOCLIST handling code.
10443
8c95582d
AB
104442020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10445
10446 * buildsym-legacy.c (record_line): Pass extra parameter to
10447 record_line.
10448 * buildsym.c (buildsym_compunit::record_line): Take an extra
10449 parameter, reduce duplication in the line table, and record the
10450 is_stmt flag in the line table.
10451 * buildsym.h (buildsym_compunit::record_line): Add extra
10452 parameter.
10453 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10454 non-statement lines.
10455 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10456 this to the symtab builder.
10457 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10458 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10459 through to dwarf_record_line_1.
10460 * infrun.c (process_event_stop_test): When stepping, don't stop at
10461 a non-statement instruction, and only refresh the step info when
10462 we land in the middle of a line's range. Also add an extra
10463 comment.
10464 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10465 field.
10466 * record-btrace.c (btrace_find_line_range): Only record lines
10467 marked as is-statement.
10468 * stack.c (frame_show_address): Show the frame address if we are
10469 in a non-statement sal.
10470 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10471 (maintenance_print_one_line_table): Print a header for the is_stmt
10472 column, and include is_stmt information in the output.
10473 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10474 preference to non-statements.
10475 (find_pcs_for_symtab_line): Prefer is-statement entries.
10476 (find_line_common): Likewise.
10477 * symtab.h (struct linetable_entry): Add is_stmt field.
10478 (struct symtab_and_line): Likewise.
10479 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10480 arranging the line table.
10481
e4003a34
TV
104822020-03-07 Tom de Vries <tdevries@suse.de>
10483
10484 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10485 DIE.
10486
e8932576
TT
104872020-03-07 Tom Tromey <tom@tromey.com>
10488
10489 * valops.c (value_literal_complex): Remove obsolete comment.
10490 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10491 comment.
10492
29734269
SM
104932020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10494
10495 * infrun.h: Forward-declare thread_info.
10496 (set_step_info): Add thread_info parameter, add doc.
10497 * infrun.c (set_step_info): Add thread_info parameter, move doc
10498 to header.
10499 * infrun.c (process_event_stop_test): Pass thread to
10500 set_step_info call.
10501 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10502 set_step_info.
10503 (prepare_one_step): Add thread_info parameter, pass it to
10504 set_step_frame and prepare_one_step (recursive) call.
10505 (step_1): Pass thread to prepare_one_step call.
10506 (step_command_fsm::should_stop): Pass thread to
10507 prepare_one_step.
10508 (until_next_fsm): Pass thread to set_step_frame call.
10509 (finish_command): Pass thread to set_step_info call.
10510
b7d64b29
HD
105112020-03-06 Hannes Domani <ssbssa@yahoo.de>
10512
10513 * windows-tdep.c (windows_solib_create_inferior_hook):
10514 Check if inferior is running.
10515
09f2921c
TV
105162020-03-06 Tom de Vries <tdevries@suse.de>
10517
10518 * NEWS: Fix "the the".
10519 * ctfread.c: Same.
10520
fd760e79
TV
105212020-03-06 Tom de Vries <tdevries@suse.de>
10522
10523 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10524
20ea4a60
AB
105252020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10526
10527 * .dir-locals.el: Add a comment referencing the other copies of
10528 this file.
10529
0afbabf0
JB
105302020-03-05 John Baldwin <jhb@FreeBSD.org>
10531
10532 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10533 psargs.
10534
842806cb
TBA
105352020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10536
10537 * .gitattributes: New file.
10538
be1e3d3e
TT
105392020-03-04 Tom Tromey <tom@tromey.com>
10540
10541 * symmisc.c (print_symbol_bcache_statistics)
10542 (print_objfile_statistics): Update.
10543 * symfile.c (allocate_symtab): Use intern.
10544 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10545 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10546 macro_cache>: Remove.
10547 <string_cache>: New member.
10548 (struct objfile) <intern>: New methods.
10549 * elfread.c (elf_symtab_read): Use intern.
10550 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10551 (dwarf2_compute_name, dwarf2_physname)
10552 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10553 names.
10554 (guess_partial_die_structure_name): Update.
10555 (partial_die_info::fixup): Intern name.
10556 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10557 name.
10558 (dwarf2_name): Intern name. Update.
10559 * buildsym.c (buildsym_compunit::get_macro_table): Use
10560 string_cache.
10561
4e7625fd
TT
105622020-03-04 Tom Tromey <tom@tromey.com>
10563
10564 * jit.c (bfd_open_from_target_memory): Make "target" const.
10565 * corefile.c (gnutarget): Now const.
10566 * gdbcore.h (gnutarget): Now const.
10567
46f9f931
HD
105682020-03-04 Hannes Domani <ssbssa@yahoo.de>
10569
10570 * NEWS: Mention support for WOW64 processes.
10571 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10572 (amd64_windows_segment_register_p): Remove static.
10573 (_initialize_amd64_windows_nat): Update.
10574 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10575 * i386-windows-nat.c (context_offset): Update.
10576 (i386_mappings): Rename and remove static.
10577 (i386_windows_segment_register_p): Remove static.
10578 (_initialize_i386_windows_nat): Update.
10579 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10580 (STATUS_WX86_SINGLE_STEP): New macro.
10581 (EnumProcessModulesEx): New macro.
10582 (Wow64SuspendThread): New macro.
10583 (Wow64GetThreadContext): New macro.
10584 (Wow64SetThreadContext): New macro.
10585 (Wow64GetThreadSelectorEntry): New macro.
10586 (windows_set_context_register_offsets): Add static.
10587 (windows_set_segment_register_p): Likewise.
10588 (windows_add_thread): Adapt for WOW64 processes.
10589 (windows_fetch_one_register): Likewise.
10590 (windows_nat_target::fetch_registers): Likewise.
10591 (windows_store_one_register): Likewise.
10592 (display_selector): Likewise.
10593 (display_selectors): Likewise.
10594 (handle_exception): Likewise.
10595 (windows_continue): Likewise.
10596 (windows_nat_target::resume): Likewise.
10597 (windows_add_all_dlls): Likewise.
10598 (do_initial_windows_stuff): Likewise.
10599 (windows_nat_target::attach): Likewise.
10600 (windows_get_exec_module_filename): Likewise.
10601 (windows_nat_target::create_inferior): Likewise.
10602 (windows_xfer_siginfo): Likewise.
10603 (_initialize_loadable): Initialize Wow64SuspendThread,
10604 Wow64GetThreadContext, Wow64SetThreadContext,
10605 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10606 * windows-nat.h (windows_set_context_register_offsets):
10607 Remove declaration.
10608 (windows_set_segment_register_p): Likewise.
10609 (i386_windows_segment_register_p): Add declaration.
10610 (amd64_windows_segment_register_p): Likewise.
10611
440cf44e
LM
106122020-03-04 Luis Machado <luis.machado@linaro.org>
10613
10614 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10615 in "info registers" for AArch64/ARM.
10616
10617 The change caused "info registers" to not print GPR's.
10618
10619 gdb/ChangeLog:
10620
10621 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10622
10623 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10624 when reg->group is empty and reggroup is not.
10625
1009d92f
TT
106262020-03-03 Tom Tromey <tromey@adacore.com>
10627
10628 * dwarf2/frame.c (struct dwarf2_frame_cache)
10629 <checked_tailcall_bottom, entry_cfa_sp_offset,
10630 entry_cfa_sp_offset_p>: Remove members.
10631 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10632 (dwarf2_frame_prev_register): Don't call
10633 dwarf2_tailcall_sniffer_first.
10634 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10635 * frame-unwind.c (add_unwinder): New fuction.
10636 (frame_unwind_init): Use it. Add tailcall unwinder.
10637
5e5d66b6
AB
106382020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10639 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10640
10641 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10642 value should be printed as true.
10643
584cf46d
HD
106442020-03-03 Hannes Domani <ssbssa@yahoo.de>
10645
10646 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10647 (windows_init_abi): Set and use windows_so_ops.
10648
7b973adc
SDJ
106492020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10650
10651 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10652 when verifying if dealing with a convenience variable.
10653
bb7b70ab
LM
106542020-03-03 Luis Machado <luis.machado@linaro.org>
10655
10656 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10657
9822cb57
SM
106582020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10659
10660 * infrun.c (gdbarch_supports_displaced_stepping): New.
10661 (use_displaced_stepping): Break up conditions in smaller pieces.
10662 Use gdbarch_supports_displaced_stepping.
10663 (displaced_step_prepare_throw): Use
10664 gdbarch_supports_displaced_stepping.
10665
63e163f2
AB
106662020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10667
10668 * NEWS: Mention new behaviour of the history filename.
10669 * top.c (write_history_p): Add comment.
10670 (show_write_history_p): Add header comment, give a different
10671 message when history writing is on, but the history filename is
10672 empty.
10673 (history_filename): Add comment.
10674 (history_filename_empty): New function.
10675 (show_history_filename): Add header comment, give a different
10676 message when the filename is empty.
10677 (init_history): Compare history_filename against nullptr, and only
10678 read history if the filename is not empty.
10679 (set_history_filename): Add header comment, and only make
10680 non-empty filenames absolute.
10681 (init_main): Make the filename argument to 'set history filename'
10682 optional.
10683
81b86b97
CB
106842020-03-02 Christian Biesinger <cbiesinger@google.com>
10685
10686 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10687 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10688 (fetch_fp_register): Update.
10689 (fetch_fp_regs): Update.
10690 (store_fp_register): Update.
10691 (store_fp_regs): Update.
10692 (arm_netbsd_nat_target::read_description): New function.
10693 (fetch_elfcore_registers): Update.
10694
24ed6739
AB
106952020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10696
10697 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10698 general_thread if the stop reply is missing a thread-id.
10699 (remote_target::process_stop_reply): Use the first non-exited
10700 thread if the target didn't pass a thread-id.
10701 * infrun.c (do_target_wait): Move call to
10702 switch_to_inferior_no_thread to ....
10703 (do_target_wait_1): ... here.
10704
a84bb2a0
JT
107052020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10706
10707 * debuginfod-support.c: Include defs.h first.
10708
658dadf0
TV
107092020-02-28 Tom de Vries <tdevries@suse.de>
10710
10711 * symfile.c (set_initial_language): Use default language for lookup.
10712
4ebe4877
SM
107132020-02-28 Simon Marchi <simon.marchi@efficios.com>
10714
10715 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10716 reader variable, pass `this` to read_cutu_die_from_dwo.
10717
e5da1139
AM
107182020-02-27 Aaron Merey <amerey@redhat.com>
10719
10720 * source.c (open_source_file): Check for nullptr when computing
10721 srcpath.
10722
317f7127
TT
107232020-02-27 Tom Tromey <tromey@adacore.com>
10724
10725 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10726 member.
10727 (dwarf2_add_field): Don't update nfields.
10728 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10729
3104d9ee
AB
107302020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10731
10732 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10733 abs.
10734
b83470bf
TT
107352020-02-26 Tom Tromey <tom@tromey.com>
10736
10737 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10738 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10739 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10740 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10741 per_cu_data.
10742
edfe0a0c
TT
107432020-02-26 Tom Tromey <tom@tromey.com>
10744
10745 * dwarf2/index-write.c (psym_index_map): Change type.
10746 (add_address_entry_worker, write_one_signatured_type)
10747 (recursively_count_psymbols, recursively_write_psymbols)
10748 (class debug_names, psyms_seen_size, write_gdbindex)
10749 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10750
0d79cdc4
AM
107512020-02-26 Aaron Merey <amerey@redhat.com>
10752
10753 * Makefile.in: Handle optional debuginfod support.
10754 * NEWS: Update.
10755 * README: Add --with-debuginfod summary.
10756 * config.in: Regenerate.
10757 * configure: Regenerate.
10758 * configure.ac: Handle optional debuginfod support.
10759 * debuginfod-support.c: debuginfod helper functions.
10760 * debuginfod-support.h: Ditto.
10761 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10762 summary.
10763 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10764 when a dwz file cannot be found.
10765 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10766 debuginfo file cannot be found.
10767 * source.c (open_source_file): Query debuginfod servers when a
10768 source file cannot be found.
10769 * top.c (print_gdb_configuration): Include
10770 --{with,without}-debuginfod in the output.
10771
b65ce565
JG
107722020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10773
10774 * thread.c (thr_try_catch_cmd): Print thread name.
10775
d4c9a4f8
SM
107762020-02-26 Simon Marchi <simon.marchi@efficios.com>
10777
10778 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10779 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10780 dwarf2_fetch_die_type_sect_off): Move to...
10781 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10782 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10783 dwarf2_fetch_die_type_sect_off): ... here.
10784 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10785 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10786 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10787
0dce4280
TV
107882020-02-26 Tom de Vries <tdevries@suse.de>
10789
10790 PR gdb/25603
10791 * symfile.c (set_initial_language): Exit-early if
10792 language_mode == language_mode_manual.
10793
450a1bfc
SM
107942020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10795
10796 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10797 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10798 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10799
9e80cfa1
AB
108002020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10801
10802 * gdbtypes.c (create_array_type_with_stride): Handle negative
10803 array strides.
10804 * valarith.c (value_subscripted_rvalue): Likewise.
10805
09624f1f
LM
108062020-02-25 Luis Machado <luis.machado@linaro.org>
10807
10808 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10809
8cb5117c
SM
108102020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10811
10812 * loc.h (dwarf2_get_die_type): Move to...
10813 * read.h (dwarf2_get_die_type): ... here.
10814 * read.c (dwarf2_get_die_type): Move doc to header.
10815
c325c44e
JB
108162020-02-25 Joel Brobecker <brobecker@adacore.com>
10817
10818 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10819 'gnulib/Makefile.in' to the list.
10820
4ac93832
TT
108212020-02-24 Tom Tromey <tom@tromey.com>
10822
10823 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10824 Remove.
10825 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10826 XOBNEWVEC.
10827
197400e8
TT
108282020-02-24 Tom Tromey <tom@tromey.com>
10829
10830 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10831 New method.
10832 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10833 (dw2_do_instantiate_symtab, dw2_get_file_names)
10834 (build_type_psymtab_dependencies, load_full_type_unit): Update.
10835
76935768
TT
108362020-02-24 Tom Tromey <tom@tromey.com>
10837
10838 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
10839 make_scoped_restore.
10840 (dwarf2_psymtab::read_symtab): Don't clear
10841 reading_partial_symbols.
10842
a88ef40d
TV
108432020-02-24 Tom de Vries <tdevries@suse.de>
10844
10845 PR gdb/25592
10846 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10847
c9af6521
TV
108482020-02-24 Tom de Vries <tdevries@suse.de>
10849
10850 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
10851 commands layout next/prev/regs.
10852
5707a07a
TT
108532020-02-22 Tom Tromey <tom@tromey.com>
10854
10855 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
10856 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
10857
3b0fb49e
TT
108582020-02-22 Tom Tromey <tom@tromey.com>
10859
10860 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
10861
283be8bf
TT
108622020-02-22 Tom Tromey <tom@tromey.com>
10863
10864 * tui/tui-win.c (_initialize_tui_win): Add usage text.
10865 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
10866 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
10867 * tui/tui.c (_initialize_tui): Add usage text.
10868
ca793b96
TT
108692020-02-22 Tom Tromey <tom@tromey.com>
10870
10871 * tui/tui-win.c (tui_set_focus_command)
10872 (tui_set_win_height_command): Use error_no_arg.
10873 (_initialize_tui_win): Update help text.
10874 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
10875
432b5c40
TT
108762020-02-22 Tom Tromey <tom@tromey.com>
10877
10878 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
10879 * tui/tui-disasm.h (struct tui_disasm_window)
10880 <display_start_addr>: Declare.
10881 * tui/tui-source.h (struct tui_source_window)
10882 <display_start_addr>: Declare.
10883 * tui/tui-winsource.h (struct tui_source_window_base)
10884 <show_source_line, display_start_addr>: New methods.
10885 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
10886 Rename and move to protected section.
10887 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
10888 (tui_source_window_base::do_erase_source_content): Update.
10889 (tui_source_window_base::show_source_line): Now a method.
10890 (tui_source_window_base::show_source_content)
10891 (tui_source_window_base::tui_source_window_base)
10892 (tui_source_window_base::rerender)
10893 (tui_source_window_base::refill)
10894 (tui_source_window_base::do_scroll_horizontal)
10895 (tui_source_window_base::set_is_exec_point_at)
10896 (tui_source_window_base::update_breakpoint_info)
10897 (tui_source_window_base::update_exec_info): Update.
10898 * tui/tui-source.c (tui_source_window::set_contents)
10899 (tui_source_window::showing_source_p)
10900 (tui_source_window::do_scroll_vertical)
10901 (tui_source_window::location_matches_p)
10902 (tui_source_window::line_is_displayed): Update.
10903 (tui_source_window::display_start_addr): New method.
10904 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10905 (tui_disasm_window::do_scroll_vertical)
10906 (tui_disasm_window::location_matches_p): Update.
10907 (tui_disasm_window::display_start_addr): New method.
10908
01b1af32
TT
109092020-02-22 Tom Tromey <tom@tromey.com>
10910
10911 * NEWS: Add entry for gdb.register_window_type.
10912 * tui/tui-layout.h (window_factory): New typedef.
10913 (tui_register_window): Declare.
10914 * tui/tui-layout.c (saved_tui_windows): New global.
10915 (tui_apply_current_layout): Use it.
10916 (tui_register_window): New function.
10917 * python/python.c (do_start_initialization): Call
10918 gdbpy_initialize_tui.
10919 (python_GdbMethods): Add "register_window_type" function.
10920 * python/python-internal.h (gdbpy_register_tui_window)
10921 (gdbpy_initialize_tui): Declare.
10922 * python/py-tui.c: New file.
10923 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10924
fc96d20b
TT
109252020-02-22 Tom Tromey <tom@tromey.com>
10926
10927 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10928
935c78c0
TT
109292020-02-22 Tom Tromey <tom@tromey.com>
10930
10931 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10932 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10933 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10934 (tui_set_win_focus_to): Move from tui-win.c.
10935
0240c8f1
TT
109362020-02-22 Tom Tromey <tom@tromey.com>
10937
10938 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10939 functions.
10940 (known_window_types): New global.
10941 (tui_get_window_by_name): Reimplement.
10942 (initialize_known_windows): New function.
10943 (validate_window_name): Rewrite.
10944 (_initialize_tui_layout): Call initialize_known_windows.
10945
fdb01f0c
TT
109462020-02-22 Tom Tromey <tom@tromey.com>
10947
10948 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10949 Remove constants.
10950 * tui/tui-winsource.h (struct tui_source_window_base)
10951 <tui_source_window_base>: Remove parameter.
10952 * tui/tui-winsource.c
10953 (tui_source_window_base::tui_source_window_base): Remove
10954 parameter.
10955 (tui_source_window_base::refill): Update.
10956 * tui/tui-stack.h (struct tui_locator_window)
10957 <tui_locator_window>: Update.
10958 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10959 Default the constructor.
10960 * tui/tui-regs.h (struct tui_data_item_window)
10961 <tui_data_item_window>: Default the constructor.
10962 (struct tui_data_window) <tui_data_window>: Likewise.
10963 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10964 Default the constructor.
10965 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10966 Default the constructor.
10967 <type>: Remove.
10968 (struct tui_win_info) <tui_win_info>: Default the constructor.
10969 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10970 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10971 Default the constructor.
10972
865a5aec
TT
109732020-02-22 Tom Tromey <tom@tromey.com>
10974
10975 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10976 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10977 * tui/tui-win.c (tui_resize_all): Don't call
10978 tui_delete_invisible_windows.
10979 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10980 done.
10981 (tui_set_layout): Update.
10982 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10983 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10984 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10985
e098d18c
TT
109862020-02-22 Tom Tromey <tom@tromey.com>
10987
10988 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10989 correctly.
10990
eb9c8874
TT
109912020-02-22 Tom Tromey <tom@tromey.com>
10992
10993 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10994
7eed1a8e
TT
109952020-02-22 Tom Tromey <tom@tromey.com>
10996
10997 * tui/tui-winsource.h (struct tui_source_window_iterator)
10998 <inner_iterator>: New etytypedef.
10999 <tui_source_window_iterator>: Take "end" parameter.
11000 <tui_source_window_iterator>: Take iterator.
11001 <operator*, advance>: Update.
11002 <m_iter>: Change type.
11003 <m_end>: New field.
11004 (struct tui_source_windows) <begin, end>: Update.
11005 * tui/tui-layout.c (tui_windows): New global.
11006 (tui_apply_current_layout): Clear tui_windows.
11007 (tui_layout_window::apply): Update tui_windows.
11008 * tui/tui-data.h (tui_windows): Declare.
11009 (all_tui_windows): Now inline function.
11010 (class tui_window_iterator, struct all_tui_windows): Remove.
11011
7c043ba6
TT
110122020-02-22 Tom Tromey <tom@tromey.com>
11013
11014 PR tui/17850:
11015 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
11016 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
11017 "height" argument.
11018 (class tui_layout_window) <get_sizes>: Likewise.
11019 (class tui_layout_split) <tui_layout_split>: Add "vertical"
11020 argument.
11021 <get_sizes>: Add "height" argument.
11022 <m_vertical>: New field.
11023 * tui/tui-layout.c (tui_layout_split::clone): Update.
11024 (tui_layout_split::get_sizes): Add "height" argument.
11025 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
11026 (tui_new_layout_command): Parse "-horizontal".
11027 (_initialize_tui_layout): Update help string.
11028 (tui_layout_split::specification): Add "-horizontal" when needed.
11029 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
11030 argument.
11031 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
11032 New methods.
11033
6bc56648
TT
110342020-02-22 Tom Tromey <tom@tromey.com>
11035
11036 * tui/tui-layout.h (enum tui_adjust_result): New.
11037 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
11038 (class tui_layout_window) <adjust_size>: Return
11039 tui_adjust_result. Rewrite.
11040 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
11041 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
11042
c22fef7e
TT
110432020-02-22 Tom Tromey <tom@tromey.com>
11044
11045 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
11046 parameter and return types.
11047 (class tui_layout_base) <specification>: Add "depth".
11048 (class tui_layout_window) <specification>: Add "depth".
11049 (class tui_layout_split) <specification>: Add "depth".
11050 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
11051 and return types.
11052 (tui_new_layout_command): Parse sub-layouts.
11053 (_initialize_tui_layout): Update help string.
11054 (tui_layout_window::specification): Add "depth".
11055 (add_layout_command): Update.
11056
ee325b61
TT
110572020-02-22 Tom Tromey <tom@tromey.com>
11058
11059 * NEWS: Add "tui new-layout" item.
11060 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
11061 Add new-layout command to help text.
11062 (validate_window_name): New function.
11063 (tui_new_layout_command): New function.
11064 (_initialize_tui_layout): Register "new-layout".
11065 (tui_layout_window::specification): New method.
11066 (tui_layout_window::specification): New method.
11067 * tui/tui-layout.h (class tui_layout_base) <specification>: New
11068 method.
11069 (class tui_layout_window) <specification>: New method.
11070 (class tui_layout_split) <specification>: New method.
11071
416eb92d
TT
110722020-02-22 Tom Tromey <tom@tromey.com>
11073
11074 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
11075 * tui/tui-win.c (window_name_completer): Update comment.
11076 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
11077 Declare method.
11078 (class tui_layout_window) <replace_window>: Likewise.
11079 (class tui_layout_split) <replace_window>: Likewise.
11080 (tui_set_layout): Don't declare.
11081 (tui_set_initial_layout): Declare function.
11082 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
11083 (asm_regs_layout): New globals.
11084 (tui_current_layout, show_layout): Remove.
11085 (tui_set_layout, tui_add_win_to_layout): Rewrite.
11086 (find_layout, tui_apply_layout): New function.
11087 (layout_completer): Remove.
11088 (tui_next_layout): Reimplement.
11089 (tui_next_layout_command): New function.
11090 (tui_set_initial_layout, tui_prev_layout_command): New functions.
11091 (tui_regs_layout): Reimplement.
11092 (tui_regs_layout_command): New function.
11093 (extract_display_start_addr): Rewrite.
11094 (next_layout, prev_layout): Remove.
11095 (tui_layout_window::replace_window): New method.
11096 (tui_layout_split::replace_window): New method.
11097 (destroy_layout): New function.
11098 (layout_list): New global.
11099 (add_layout_command): New function.
11100 (initialize_layouts): Update.
11101 (tui_layout_command): New function.
11102 (_initialize_tui_layout): Install "layout" commands.
11103 * tui/tui-data.h (enum tui_layout_type): Remove.
11104 (tui_current_layout): Don't declare.
11105
0dbc2fc7
TT
111062020-02-22 Tom Tromey <tom@tromey.com>
11107
11108 * tui/tui-regs.c (tui_reg_layout): Remove.
11109 (tui_reg_command): Use tui_regs_layout.
11110 * tui/tui-layout.h (tui_reg_command): Declare.
11111 * tui/tui-layout.c (tui_reg_command): New function.
11112
5afe342e
TT
111132020-02-22 Tom Tromey <tom@tromey.com>
11114
11115 * tui/tui.c (tui_rl_delete_other_windows): Call
11116 tui_remove_some_windows.
11117 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
11118 Declare method.
11119 (class tui_layout_window) <remove_windows>: New method.
11120 (class tui_layout_split) <remove_windows>: Declare.
11121 (tui_remove_some_windows): Declare.
11122 * tui/tui-layout.c (tui_remove_some_windows): New function.
11123 (tui_layout_split::remove_windows): New method.
11124
427326a8
TT
111252020-02-22 Tom Tromey <tom@tromey.com>
11126
11127 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
11128 * tui/tui-layout.h (tui_next_layout): Declare.
11129 * tui/tui-layout.c (tui_next_layout): New function.
11130
3fe12b6d
TT
111312020-02-22 Tom Tromey <tom@tromey.com>
11132
11133 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
11134 correct coordinates.
11135
59b8b5d2
TT
111362020-02-22 Tom Tromey <tom@tromey.com>
11137
11138 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
11139 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
11140 DATA_WIN case.
11141
2a3d458b
TT
111422020-02-22 Tom Tromey <tom@tromey.com>
11143
11144 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
11145 TUI_DISASM_WIN, not tui_win_list.
11146
3f0cbb04
TT
111472020-02-22 Tom Tromey <tom@tromey.com>
11148
11149 * valprint.c (generic_val_print_enum_1)
11150 (val_print_type_code_flags): Style member names.
11151 * rust-lang.c (val_print_struct, rust_print_enum)
11152 (rust_print_struct_def, rust_internal_print_type): Style member
11153 names.
11154 * p-valprint.c (pascal_object_print_value_fields): Style member
11155 names. Only call fprintf_symbol_filtered for static members.
11156 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
11157 * f-valprint.c (f_val_print): Style member names.
11158 * f-typeprint.c (f_type_print_base): Style member names.
11159 * cp-valprint.c (cp_print_value_fields): Style member names. Only
11160 call fprintf_symbol_filtered for static members.
11161 (cp_print_class_member): Style member names.
11162 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
11163 member names.
11164 * ada-valprint.c (ada_print_scalar): Style enum names.
11165 (ada_val_print_enum): Likewise.
11166 * ada-typeprint.c (print_enum_type): Style enum names.
11167
d4d947ae
TT
111682020-02-21 Tom Tromey <tom@tromey.com>
11169
11170 * psympriv.h (struct partial_symtab): Update comment.
11171
e94e944b
TT
111722020-02-21 Tom Tromey <tromey@adacore.com>
11173
11174 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11175 type is CORE_ADDR.
11176
1eb73179
TV
111772020-02-21 Tom de Vries <tdevries@suse.de>
11178
11179 PR gdb/25534
11180 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11181 if dependencies[i]->user != NULL.
11182
4f180d53
AT
111832020-02-21 Ali Tamur <tamur@google.com>
11184
11185 * dwarf2/read.c (dwarf2_name): Add null check.
11186
22b6cd70
TT
111872020-02-20 Tom Tromey <tom@tromey.com>
11188
11189 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11190 ">=", in binary search.
11191 (dwarf2_find_containing_comp_unit): New overload.
11192 (run_test): New self-test.
11193 (_initialize_dwarf2_read): Register new test.
11194
bd0cf5a6
NC
111952020-02-20 Nelson Chu <nelson.chu@sifive.com>
11196
11197 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11198 * riscv-tdep.h: Likewise.
11199 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11200 rv32-only CSR.
11201 * features/riscv/64bit-csr.xml: Regenerated.
11202
3f702acd
SDJ
112032020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11204 Tom Tromey <tom@tromey.com>
11205
11206 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11207 of 'fputc_unfiltered'.
11208 (putchar_unfiltered): Call 'fputc_unfiltered'.
11209 (fputc_unfiltered): Call 'fputs_unfiltered'.
11210
d13c7322
AB
112112020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11212
11213 * config.in: Regenerate.
11214 * configure: Regenerate.
11215 * configure.ac: Add --with-python-libdir option.
11216 * main.c: Use WITH_PYTHON_LIBDIR.
11217
869d8950
TT
112182020-02-19 Tom Tromey <tom@tromey.com>
11219
11220 * symtab.c (general_symbol_info::compute_and_set_names): Use
11221 obstack_strndup. Simplify call to symbol_set_demangled_name.
11222
298e9637
SM
112232020-02-19 Simon Marchi <simon.marchi@efficios.com>
11224
11225 * dwarf2/read.c (allocate_signatured_type_table,
11226 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11227 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11228 Remove objfile parameter, update all callers.
11229
08410482
DE
112302020-02-19 Doug Evans <dje@google.com>
11231
11232 PR rust/25535
11233 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11234 rust_enum_variant calculation.
11235
dfdeeca1
TT
112362020-02-19 Tom Tromey <tromey@adacore.com>
11237
11238 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11239
2ef5453b
TT
112402020-02-19 Tom Tromey <tromey@adacore.com>
11241
11242 * ada-lang.c (cache_symbol): Use obstack_strdup.
11243
9f1528a1
AB
112442020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11245
11246 * configure: Regenerate.
11247
d3c22fa8
TT
112482020-02-19 Tom Tromey <tromey@adacore.com>
11249
11250 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11251 NULL check.
11252
bf84f706
MR
112532020-02-19 Maciej W. Rozycki <macro@wdc.com>
11254
11255 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11256
d1c9b20f
AB
112572020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11258
11259 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11260 if GDBSERVER is not defined.
11261 (riscv_tdesc_cache): Likewise, also store const target_desc.
11262 (STATIC_IN_GDB): Define.
11263 (riscv_create_target_description): Update declaration with
11264 STATIC_IN_GDB.
11265 (riscv_lookup_target_description): New function, only define if
11266 GDBSERVER is not defined.
11267 * arch/riscv.h (riscv_create_target_description): Declare only
11268 when GDBSERVER is defined.
11269 (riscv_lookup_target_description): New declaration when GDBSERVER
11270 is not defined.
11271 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11272 (riscv_linux_read_features): ...this, and return
11273 riscv_gdbarch_features instead of target_desc.
11274 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11275 (riscv_linux_read_description): Rename to...
11276 (riscv_linux_read_features): ...this.
11277 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11278 Update to use riscv_gdbarch_features and
11279 riscv_lookup_target_description.
11280 * riscv-tdep.c (riscv_find_default_target_description): Use
11281 riscv_lookup_target_description instead of
11282 riscv_create_target_description.
11283
373d7ac0
SM
112842020-02-18 Simon Marchi <simon.marchi@efficios.com>
11285
11286 * valprint.c (generic_val_print_enum_1): When printing a flag
11287 enum with value 0 and there is no enumerator with value 0, print
11288 just "0" instead of "(unknown: 0x0)".
11289
b29a2df0
SM
112902020-02-18 Simon Marchi <simon.marchi@efficios.com>
11291
11292 * valprint.c (generic_val_print_enum_1): Print unknown part of
11293 flag enum in hex.
11294
6740f0cc
SM
112952020-02-18 Simon Marchi <simon.marchi@efficios.com>
11296
11297 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11298 flag enums to contain duplicate enumerators.
11299 * valprint.c (generic_val_print_enum_1): Update comment.
11300
edd45eb0
SM
113012020-02-18 Simon Marchi <simon.marchi@efficios.com>
11302
11303 * dwarf2/read.c: Include "count-one-bits.h".
11304 (update_enumeration_type_from_children): If an enumerator has
11305 multiple bits set, don't treat the enumeration as a "flag enum".
11306 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11307 of flag enums have 0 or 1 bit set.
11308
6d0cf446
BE
113092020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11310
11311 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11312 conversion.
11313 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11314 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11315 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11316 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11317 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11318
7001c1b7
SM
113192020-02-18 Simon Marchi <simon.marchi@efficios.com>
11320
11321 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11322
fdb61c6c
SM
113232020-02-14 Simon Marchi <simon.marchi@efficios.com>
11324
11325 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11326 displaced_step_closure_up.
11327 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11328 (struct displaced_step_closure_up):
11329 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11330 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11331 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11332 Likewise.
11333 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11334 * gdbarch.c, gdbarch.h: Re-generate.
11335 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11336 displaced_step_closure_up.
11337 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11338 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11339 * infrun.h (displaced_step_closure_up): New type alias.
11340 (struct displaced_step_inferior_state) <step_closure>: Change
11341 type to displaced_step_closure_up.
11342 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11343 displaced_step_closure_up.
11344 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11345
a4a38eb4
TT
113462020-02-14 Tom Tromey <tom@tromey.com>
11347
11348 * minidebug.c (gnu_debug_key): New global.
11349 (find_separate_debug_file_in_section): Use it.
11350
e8217e61
SM
113512020-02-14 Simon Marchi <simon.marchi@efficios.com>
11352
11353 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11354 std::unique_ptr.
11355 * gdbarch.c: Re-generate.
11356 * gdbarch.h: Re-generate.
11357 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11358 change.
11359 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11360 type to std::unique_ptr.
11361 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11362 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11363 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11364 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11365 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11366 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11367 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11368 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11369 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11370
d8d83535
SM
113712020-02-14 Simon Marchi <simon.marchi@efficios.com>
11372
11373 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11374 std::unique_ptr.
11375 (displaced_step_clear): Rename to...
11376 (displaced_step_reset): ... this. Just call displaced->reset ().
11377 (displaced_step_clear_cleanup): Rename to...
11378 (displaced_step_reset_cleanup): ... this.
11379 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11380 (displaced_step_fixup): Likewise.
11381 (resume_1): Likewise.
11382 (handle_inferior_event): Restore child's memory before calling
11383 displaced_step_fixup on the parent.
11384 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11385 to std::unique_ptr.
11386 <step_closure>: Change type to std::unique_ptr.
11387
5f661e03
SM
113882020-02-14 Simon Marchi <simon.marchi@efficios.com>
11389
11390 * arm-tdep.c: Include count-one-bits.h.
11391 (cleanup_block_store_pc): Use count_one_bits.
11392 (cleanup_block_load_pc): Use count_one_bits.
11393 (arm_copy_block_xfer): Use count_one_bits.
11394 (thumb2_copy_block_xfer): Use count_one_bits.
11395 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11396 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11397 (thumb_get_next_pcs_raw): Use count_one_bits.
11398 (arm_get_next_pcs_raw): Use count_one_bits_l.
11399 * arch/arm.c (bitcount): Remove.
11400 * arch/arm.h (bitcount): Remove.
11401
8084e579
TT
114022020-02-14 Tom Tromey <tromey@adacore.com>
11403
11404 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11405 Update.
11406 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11407 * dwarf2/loc.c (call_site_find_chain_1): Return
11408 unique_xmalloc_ptr.
11409 (call_site_find_chain): Likewise.
11410
258bf0ee
RB
114112020-02-14 Richard Biener <rguenther@suse.de>
11412
11413 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11414 on expression with division operators.
11415
f98a8458
AKS
114162020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11417
11418 * MAINTAINERS (Write After Approval): Adding myself.
11419
d1437c0e
TT
114202020-02-12 Tom Tromey <tom@tromey.com>
11421
11422 * event-loop.c (event_data, gdb_event, event_handler_func):
11423 Remove.
11424
3d4560f7
TT
114252020-02-12 Tom Tromey <tom@tromey.com>
11426
11427 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11428 (dwarf2_frame_objfile_data): Add comment.
11429 (find_comp_unit, set_comp_unit): New functions.
11430 (dwarf2_frame_find_fde): Use find_comp_unit.
11431 (dwarf2_build_frame_info): Use set_comp_unit.
11432
21982304
TT
114332020-02-12 Tom Tromey <tom@tromey.com>
11434
11435 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11436 (comp_unit): Don't initialize objfile.
11437 (execute_cfa_program): Add text_offset parameter.
11438 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11439 (dwarf2_frame_cache): Update.
11440 (dwarf2_build_frame_info): Don't set "objfile" member.
11441
4debb237
TT
114422020-02-12 Tom Tromey <tom@tromey.com>
11443
11444 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11445 (decode_frame_entry): Likewise.
11446 (dwarf2_build_frame_info): Update.
11447
0d404d44
TT
114482020-02-12 Tom Tromey <tom@tromey.com>
11449
11450 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11451 (decode_frame_entry_1): Use the comp_unit obstack.
11452
a7a3ae5c
TT
114532020-02-12 Tom Tromey <tom@tromey.com>
11454
11455 * dwarf2/frame.c (struct comp_unit): Add initializers and
11456 constructor.
11457 (dwarf2_frame_objfile_data): Store a comp_unit.
11458 (dwarf2_frame_find_fde): Update.
11459 (dwarf2_build_frame_info): Use "new".
11460
a9d65418
TT
114612020-02-12 Tom Tromey <tom@tromey.com>
11462
11463 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11464 (dwarf2_fde_table): Typedef for std::vector.
11465 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11466 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11467 (decode_frame_entry): Update.
11468 (dwarf2_build_frame_info): Use "new".
11469
7559c217
CB
114702020-02-12 Christian Biesinger <cbiesinger@google.com>
11471
11472 * arm-tdep.c (arm_gdbarch_init): Update.
11473 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11474 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11475 have_neon, is_m>: Change to bool.
11476
aeefc73c
CB
114772020-02-12 Christian Biesinger <cbiesinger@google.com>
11478
11479 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11480
d27b8e5f
TT
114812020-02-12 Tom Tromey <tom@tromey.com>
11482
11483 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11484
cd5900f3
HD
114852020-02-12 Hannes Domani <ssbssa@yahoo.de>
11486
11487 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11488 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11489
f056b22b
TT
114902020-02-11 Tom Tromey <tom@tromey.com>
11491
11492 * psymtab.h: Update comment.
11493
f92ff6b5
TT
114942020-02-11 Tom Tromey <tom@tromey.com>
11495
11496 * gdb_obstack.h (struct auto_obstack): Use
11497 DISABLE_COPY_AND_ASSIGN.
11498
3fd6912b
TT
114992020-02-11 Tom Tromey <tom@tromey.com>
11500
11501 * dwarf2/frame.h (struct objfile): Don't forward declare.
11502
69ed9b74
CB
115032020-02-11 Christian Biesinger <cbiesinger@google.com>
11504
11505 * cris-tdep.c (cris_supply_gregset): Change signature to match
11506 what struct regset expects.
11507 (cris_regset): New struct.
11508 (fetch_core_registers): Remove.
11509 (cris_iterate_over_regset_sections): New function.
11510 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11511 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11512
bda874f6
CB
115132020-02-11 Christian Biesinger <cbiesinger@google.com>
11514
11515 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11516 registers.
11517
754e1564
CB
115182020-02-11 Christian Biesinger <cbiesinger@google.com>
11519
11520 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11521
8ddd8e0e
SM
115222020-02-11 Simon Marchi <simon.marchi@efficios.com>
11523
11524 * configure: Re-generate.
11525
898e7f60
SM
115262020-02-11 Simon Marchi <simon.marchi@efficios.com>
11527
11528 * configure: Re-generate.
11529
58df732b
SM
115302020-02-11 Simon Marchi <simon.marchi@efficios.com>
11531
11532 * acinclude: Update warning.m4 path.
11533 * warning.m4: Move to gdbsupport.
11534
da5bd37e
TT
115352020-02-11 Tom Tromey <tromey@adacore.com>
11536
11537 * remote.c (remote_console_output): Update.
11538 * printcmd.c (printf_command): Update.
11539 * event-loop.c (gdb_wait_for_event): Update.
11540 * linux-nat.c (sigchld_handler): Update.
11541 * remote-sim.c (gdb_os_write_stdout): Update.
11542 (gdb_os_flush_stdout): Update.
11543 (gdb_os_flush_stderr): Update.
11544 (gdb_os_write_stderr): Update.
11545 * exceptions.c (print_exception): Update.
11546 * remote-fileio.c (remote_fileio_func_read): Update.
11547 (remote_fileio_func_write): Update.
11548 * tui/tui.c (tui_enable): Update.
11549 * tui/tui-interp.c (tui_interp::init): Update.
11550 * utils.c (init_page_info): Update.
11551 (putchar_unfiltered, fputc_unfiltered): Update.
11552 (gdb_flush): Update.
11553 (emit_style_escape): Update.
11554 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11555 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11556 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11557 (stderr_file::write): Update.
11558 (stderr_file::puts): Update.
11559 * ui-file.h (ui_file_isatty, ui_file_write)
11560 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11561 (ui_file_puts): Don't declare.
11562
85f0dd3c
TV
115632020-02-10 Tom de Vries <tdevries@suse.de>
11564
11565 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11566 sentinel to char *.
11567
2e927613
TV
115682020-02-09 Tom de Vries <tdevries@suse.de>
11569
11570 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11571 filename if it matches "<artificial>".
11572
6bafc845
HD
115732020-02-09 Hannes Domani <ssbssa@yahoo.de>
11574
11575 * windows-tdep.c (struct enum_value_name): New struct.
11576 (create_enum): New function.
11577 (windows_get_siginfo_type): Create and use enum types.
11578
7928d571
HD
115792020-02-09 Hannes Domani <ssbssa@yahoo.de>
11580
11581 * NEWS: Mention $_siginfo support for Windows.
11582 * windows-nat.c (handle_exception): Set siginfo_er.
11583 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11584 (windows_xfer_siginfo): New function.
11585 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11586 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11587 (init_windows_gdbarch_data): New function.
11588 (get_windows_gdbarch_data): New function.
11589 (windows_get_siginfo_type): New function.
11590 (windows_init_abi): Register windows_get_siginfo_type.
11591 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11592
6751ebae
TT
115932020-02-08 Tom Tromey <tom@tromey.com>
11594
11595 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11596 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11597 <keep>: Declare method.
11598 <m_keep>: Remove member.
11599 <~cutu_reader>: Remove.
11600 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11601 (cutu_reader::cutu_reader): Update.
11602 (cutu_reader::keep): Rename from ~cutu_reader.
11603 (process_psymtab_comp_unit, build_type_psymtabs_1)
11604 (process_skeletonless_type_unit, load_partial_comp_unit)
11605 (load_full_comp_unit, dwarf2_read_addr_index)
11606 (read_signatured_type): Update.
11607
135f5437
TT
116082020-02-08 Tom Tromey <tom@tromey.com>
11609
11610 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11611 "want_partial_unit" parameter.
11612 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11613 Inline check for DW_TAG_partial_unit.
11614 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11615
9f66ff1c
TT
116162020-02-08 Tom Tromey <tom@tromey.com>
11617
11618 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11619 read.c.
11620 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11621 read.c.
11622
c8a7a66f
TT
116232020-02-08 Tom Tromey <tom@tromey.com>
11624
11625 * dwarf2/read.c (read_address): Move to comp-unit.c.
11626 (dwarf2_rnglists_process, dwarf2_ranges_process)
11627 (read_attribute_value, dwarf_decode_lines_1)
11628 (var_decode_location, decode_locdesc): Update.
11629 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11630 read.c. Remove "cu" parameter.
11631 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11632 method.
11633
8266302d
TT
116342020-02-08 Tom Tromey <tom@tromey.com>
11635
11636 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11637 (read_indirect_line_string): Update.
11638 * dwarf2/comp-unit.c (read_offset): Remove.
11639 (read_comp_unit_head): Update.
11640 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11641 method.
11642 (read_offset): Don't declare.
11643
4057dfde
TT
116442020-02-08 Tom Tromey <tom@tromey.com>
11645
11646 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11647 * dwarf2/read.c (struct comp_unit_head): Move to
11648 dwarf2/comp-unit.h.
11649 (enum class rcuh_kind): Move to comp-unit.h.
11650 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11651 (read_comp_unit_head, error_check_comp_unit_head)
11652 (read_and_check_comp_unit_head): Move to comp-unit.c.
11653 (read_offset, dwarf_unit_type_name): Likewise.
11654 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11655 (cutu_reader::cutu_reader, read_call_site_scope)
11656 (find_partial_die, follow_die_offset): Update.
11657 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11658
24aa364d
TT
116592020-02-08 Tom Tromey <tom@tromey.com>
11660
11661 * dwarf2/read.c (read_offset_1): Move to leb.c.
11662 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11663 (dwarf_decode_macro_bytes): Update.
11664 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11665 * dwarf2/leb.h (read_offset): Declare.
11666
2c7d5afc
TT
116672020-02-08 Tom Tromey <tom@tromey.com>
11668
11669 * dwarf2/read.c (dwarf2_section_size): Remove.
11670 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11671 Update.
11672 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11673
4075cb26
TT
116742020-02-08 Tom Tromey <tom@tromey.com>
11675
11676 * dwarf2/read.c (read_initial_length): Move to leb.c.
11677 * dwarf2/leb.h (read_initial_length): Declare.
11678 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11679 handle_nonstd parameter.
11680 * dwarf2/frame.c (read_initial_length): Remove.
11681 (decode_frame_entry_1): Update.
11682
09ba997f
TT
116832020-02-08 Tom Tromey <tom@tromey.com>
11684
11685 * dwarf2/loc.c (dwarf2_find_location_expression)
11686 (dwarf_evaluate_loc_desc::get_tls_address)
11687 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11688 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11689 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11690 (dwarf2_compile_property_to_c)
11691 (dwarf2_loc_desc_get_symbol_read_needs)
11692 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11693 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11694 (loclist_describe_location, loclist_tracepoint_var_ref)
11695 (loclist_generate_c_location): Update.
11696 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11697 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11698 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11699 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11700 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11701 (dwarf2_per_cu_data::addr_size)
11702 (dwarf2_per_cu_data::ref_addr_size)
11703 (dwarf2_per_cu_data::text_offset)
11704 (dwarf2_per_cu_data::addr_type): Now methods.
11705 (per_cu_header_read_in): Make per_cu "const".
11706 (dwarf2_version): Remove.
11707 (dwarf2_per_cu_data::int_type): Now a method.
11708 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11709 (set_die_type, read_array_type, read_subrange_index_type)
11710 (read_tag_string_type, read_subrange_type): Update.
11711 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11712 offset_size, ref_addr_size, text_offset, addr_type, version,
11713 objfile, int_type, addr_sized_int_type>: Declare methods.
11714
96c738c0
TT
117152020-02-08 Tom Tromey <tom@tromey.com>
11716
11717 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11718 Move earlier.
11719
8fdd972c
TT
117202020-02-08 Tom Tromey <tom@tromey.com>
11721
11722 * dwarf2/read.h (dwarf_line_debug): Declare.
11723 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11724 * dwarf2/read.c: Move line_header code to new files.
11725 (dwarf_line_debug): No longer static.
11726 * dwarf2/line-header.c: New file.
11727 * dwarf2/line-header.h: New file.
11728
03075812
TT
117292020-02-08 Tom Tromey <tom@tromey.com>
11730
11731 * dwarf2/read.c (struct line_header) <file_full_name,
11732 file_file_name>: Return unique_xmalloc_ptr.
11733 (line_header::file_file_name): Update.
11734 (line_header::file_full_name): Update.
11735 (dw2_get_file_names_reader): Update.
11736 (macro_start_file): Update.
11737
bb822404
TT
117382020-02-08 Tom Tromey <tom@tromey.com>
11739
11740 * dwarf2/read.c (struct line_header) <file_full_name,
11741 file_file_name>: Declare methods.
11742 (dw2_get_file_names_reader): Update.
11743 (file_file_name): Now a method.
11744 (file_full_name): Likewise.
11745 (macro_start_file): Update.
11746
009b64fc
TT
117472020-02-08 Tom Tromey <tom@tromey.com>
11748
11749 * dwarf2/read.c (dwarf_always_disassemble)
11750 (show_dwarf_always_disassemble): Move to loc.c.
11751 (_initialize_dwarf2_read): Move "always-disassemble" registration
11752 to loc.c.
11753 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11754 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11755 static.
11756 (show_dwarf_always_disassemble): Move from read.c.
11757 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11758
5895093f
TT
117592020-02-08 Tom Tromey <tom@tromey.com>
11760
11761 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11762 (create_quick_file_names_table): Return htab_up.
11763 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11764 Update.
11765 * dwarf2/read.h (struct dwarf2_per_objfile)
11766 <quick_file_names_table>: Now htab_up.
11767
b3b32279
TT
117682020-02-08 Tom Tromey <tom@tromey.com>
11769
11770 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11771
1d33d811
TT
117722020-02-08 Tom Tromey <tom@tromey.com>
11773
11774 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11775 Rewrite.
11776 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11777 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11778 (abbrev_table::abbrev_table): No longer inline.
11779 (ABBREV_HASH_SIZE): Remove.
11780 (abbrev_table::m_abbrevs): Now an htab_up.
11781
86de1d91
TT
117822020-02-08 Tom Tromey <tom@tromey.com>
11783
11784 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11785 (cutu_reader): Update.
11786 (build_type_psymtabs_1): Update.
11787 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11788 (abbrev_table::alloc_abbrev): Update.
11789 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11790 (abbrev_table::read): New static method, renamed from
11791 abbrev_table_read_table.
11792 (abbrev_table::alloc_abbrev)
11793 (abbrev_table::add_abbrev): Now private.
11794 (abbrev_table::abbrev_table): Now private.
11795 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11796
0335378b
TT
117972020-02-08 Tom Tromey <tom@tromey.com>
11798
11799 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11800 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11801 htab_up.
11802
48b490f2
TT
118032020-02-08 Tom Tromey <tom@tromey.com>
11804
11805 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11806 htab_up.
11807 (lookup_dwo_unit_in_dwp): Update.
11808 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11809 on obstack.
11810
bc68fb19
TT
118112020-02-08 Tom Tromey <tom@tromey.com>
11812
11813 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11814 obstack.
11815
d15acc42
TT
118162020-02-08 Tom Tromey <tom@tromey.com>
11817
11818 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11819 line_header_hash.
11820 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11821 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11822 Change type to htab_up.
11823
eaa5fa8b
TT
118242020-02-08 Tom Tromey <tom@tromey.com>
11825
11826 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11827 htab_up. Don't allocate on obstack.
11828 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11829 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11830 Change type to htab_up.
11831
b0b6a987
TT
118322020-02-08 Tom Tromey <tom@tromey.com>
11833
11834 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
11835 Change type to htab_up.
11836 * dwarf2/read.c (create_signatured_type_table_from_index)
11837 (create_signatured_type_table_from_debug_names)
11838 (create_all_type_units, add_type_unit)
11839 (lookup_dwo_signatured_type, lookup_signatured_type)
11840 (process_skeletonless_type_unit): Update.
11841 (create_debug_type_hash_table, create_debug_types_hash_table):
11842 Change type of types_htab.
11843 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11844 htab_up. Don't allocate on obstack.
11845 (create_cus_hash_table): Change type of cus_htab parameter.
11846 (struct dwo_file) <cus, tus>: Now htab_up.
11847 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11848 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
11849 (queue_and_load_all_dwo_tus): Update.
11850 * dwarf2/index-write.c (write_gdbindex): Update.
11851 (write_debug_names): Update.
11852
39856def
TT
118532020-02-08 Tom Tromey <tom@tromey.com>
11854
11855 * dwarf2/read.h (struct dwarf2_queue_item): Move from
11856 dwarf2/read.c. Remove "next" member. Add constructor ntad
11857 destructor.
11858 (struct dwarf2_per_objfile) <queue>: New member.
11859 * dwarf2/read.c (struct dwarf2_queue_item): Move to
11860 dwarf2/read.h.
11861 (dwarf2_queue, dwarf2_queue_tail): Remove.
11862 (class dwarf2_queue_guard): Add parameter to constructor. Use
11863 DISABLE_COPY_AND_ASSIGN.
11864 <m_per_objfile>: New member.
11865 <~dwarf2_queue_guard>: Rewrite.
11866 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
11867 Update.
11868 (~dwarf2_queue_item): New.
11869
3e225074
TT
118702020-02-08 Tom Tromey <tom@tromey.com>
11871
11872 * dwarf2/read.c (struct die_info) <has_children>: New member.
11873 (dw2_get_file_names_reader): Remove has_children.
11874 (dw2_get_file_names): Update.
11875 (read_cutu_die_from_dwo): Remove has_children.
11876 (cutu_reader::init_tu_and_read_dwo_dies)
11877 (cutu_reader::cutu_reader): Update.
11878 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
11879 Remove has_children.
11880 (build_type_psymtabs_1, process_skeletonless_type_unit)
11881 (load_partial_comp_unit, load_full_comp_unit): Update.
11882 (create_dwo_cu_reader): Remove has_children.
11883 (create_cus_hash_table, read_die_and_children): Update.
11884 (read_full_die_1,read_full_die): Remove has_children.
11885 (read_signatured_type): Update.
11886 (class cutu_reader) <has_children>: Remove.
11887
82ca8957
TT
118882020-02-08 Tom Tromey <tom@tromey.com>
11889
11890 * dwarf2/expr.c: Rename from dwarf2expr.c.
11891 * dwarf2/expr.h: Rename from dwarf2expr.h.
11892 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11893 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11894 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11895 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11896 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11897 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11898 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11899 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11900 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11901 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11902 * dwarf2/loc.c: Rename from dwarf2loc.c.
11903 * dwarf2/loc.h: Rename from dwarf2loc.h.
11904 * dwarf2/read.c: Rename from dwarf2read.c.
11905 * dwarf2/read.h: Rename from dwarf2read.h.
11906 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11907 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11908 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11909 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11910 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11911 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11912 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11913 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11914 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11915 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11916 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11917 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11918 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11919 Update.
11920 * Makefile.in (COMMON_SFILES): Update.
11921 (HFILES_NO_SRCDIR): Update.
11922
9e35d499
TT
119232020-02-08 Tom Tromey <tom@tromey.com>
11924
11925 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11926 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11927
1eba2311
TT
119282020-02-08 Tom Tromey <tom@tromey.com>
11929
11930 * dwarf2read.h (struct die_info): Don't declare.
11931
e41c2da2
TT
119322020-02-08 Tom Tromey <tom@tromey.com>
11933
11934 * dwarf2read.h (die_info_ptr): Remove typedef.
11935
4fc6c0d5
TT
119362020-02-08 Tom Tromey <tom@tromey.com>
11937
11938 * dwarf2read.c (read_call_site_scope)
11939 (handle_data_member_location, dwarf2_add_member_fn)
11940 (mark_common_block_symbol_computed, read_common_block)
11941 (attr_to_dynamic_prop, partial_die_info::read)
11942 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11943 (dwarf2_symbol_mark_computed, set_die_type): Update.
11944 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11945 method.
11946 (attr_form_is_block): Don't declare.
11947 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11948
cd6c91b4
TT
119492020-02-08 Tom Tromey <tom@tromey.com>
11950
11951 * dwarf2read.c (dwarf2_find_base_address, )
11952 (read_call_site_scope, rust_containing_type)
11953 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11954 (handle_data_member_location, dwarf2_add_member_fn)
11955 (get_alignment, read_structure_type, process_structure_scope)
11956 (mark_common_block_symbol_computed, read_common_block)
11957 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11958 (partial_die_info::read, read_attribute_value, new_symbol)
11959 (lookup_die_type, dwarf2_get_ref_die_offset)
11960 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11961 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11962 (dwarf2_symbol_mark_computed): Update.
11963 * dwarf2/attribute.h (struct attribute) <value_as_address,
11964 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11965 methods.
11966 (value_as_address, attr_form_is_section_offset)
11967 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11968 * dwarf2/attribute.c (attribute::value_as_address)
11969 (attribute::form_is_section_offset, attribute::form_is_constant)
11970 (attribute::form_is_ref): Now methods.
11971
162dce55
TT
119722020-02-08 Tom Tromey <tom@tromey.com>
11973
11974 * dwarf2read.c (struct attribute, DW_STRING)
11975 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11976 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11977 (attr_form_is_block, attr_form_is_section_offset)
11978 (attr_form_is_constant, attr_form_is_ref): Move.
11979 * dwarf2/attribute.h: New file.
11980 * dwarf2/attribute.c: New file, from dwarf2read.c.
11981 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11982
3054dd54
TT
119832020-02-08 Tom Tromey <tom@tromey.com>
11984
11985 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11986 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11987 Move.
11988 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11989 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11990 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11991 abbrev.c.
11992 * dwarf2/abbrev.h: New file.
11993 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11994 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11995
96b79293
TT
119962020-02-08 Tom Tromey <tom@tromey.com>
11997
11998 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11999 (dwarf2_section_size, dwarf2_get_section_info)
12000 (create_signatured_type_table_from_debug_names)
12001 (create_addrmap_from_aranges, read_debug_names_from_section)
12002 (get_gdb_index_contents_from_section, read_comp_unit_head)
12003 (error_check_comp_unit_head, read_abbrev_offset)
12004 (create_debug_type_hash_table, init_cu_die_reader)
12005 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
12006 (read_comp_units_from_section, create_cus_hash_table)
12007 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
12008 (create_dwp_v2_section, dwarf2_rnglists_process)
12009 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
12010 (abbrev_table_read_table, read_indirect_string_at_offset_from)
12011 (read_indirect_string_from_dwz, read_addr_index_1)
12012 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
12013 (dwarf_decode_macro_bytes, dwarf_decode_macros)
12014 (fill_in_loclist_baton): Update.
12015 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
12016 get_containing_section, get_bfd_owner, get_bfd_section,
12017 get_file_name, get_id, get_flags, empty, read>: Declare methods.
12018 (dwarf2_read_section, get_section_name, get_section_file_name)
12019 (get_containing_section, get_section_bfd_owner)
12020 (get_section_bfd_section, get_section_name, get_section_file_name)
12021 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
12022 declare.
12023 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
12024 (dwarf2_section_info::get_bfd_owner)
12025 (dwarf2_section_info::get_bfd_section)
12026 (dwarf2_section_info::get_name)
12027 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
12028 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
12029 (dwarf2_section_info::read): Now methods.
12030 * dwarf-index-write.c (class debug_names): Update.
12031
2c86cff9
TT
120322020-02-08 Tom Tromey <tom@tromey.com>
12033
12034 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
12035 Move to dwarf2/section.h.
12036 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
12037 (get_section_bfd_section, get_section_name)
12038 (get_section_file_name, get_section_id, get_section_flags)
12039 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
12040 dwarf2/section.c.
12041 * dwarf2/section.h: New file.
12042 * dwarf2/section.c: New file, from dwarf2read.c.
12043 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
12044
f4382c45
TT
120452020-02-08 Tom Tromey <tom@tromey.com>
12046
12047 * dwarf2read.h (read_unsigned_leb128): Don't declare.
12048 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
12049 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
12050 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
12051 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
12052 * dwarf2/leb.h: New file, from dwarf2read.c.
12053 * dwarf2/leb.c: New file, from dwarf2read.c.
12054 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
12055 Remove.
12056 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
12057 (COMMON_SFILES): Add dwarf2/leb.c.
12058
01840b7a
JB
120592020-02-08 Joel Brobecker <brobecker@adacore.com>
12060
12061 GDB 9.1 released.
12062
dfcb27e4
IB
120632020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12064
12065 PR gdb/25190:
aac66a4c
SM
12066 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
12067 * gdb/remote.c (remote_console_output): Update.
12068 * gdb/ui-file.c (fputs_unfiltered): Rename to...
12069 (ui_file_puts): ...this.
12070 * gdb/ui-file.h (ui_file_puts): Add declaration.
12071 * gdb/utils.c (emit_style_escape): Update.
12072 (flush_wrap_buffer): Update.
12073 (fputs_maybe_filtered): Update.
12074 (fputs_unfiltered): Add function.
dfcb27e4 12075
faa17681
IB
120762020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12077
aac66a4c
SM
12078 * gdb/event-loop.c (gdb_wait_for_event): Update.
12079 * gdb/printcmd.c (printf_command): Update.
12080 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
12081 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
12082 (gdb_os_flush_stderr): Update.
12083 * gdb/remote.c (remote_console_output): Update.
12084 * gdb/ui-file.c (gdb_flush): Rename to...
12085 (ui_file_flush): ...this.
12086 (stderr_file::write): Update.
12087 (stderr_file::puts): Update.
12088 * gdb/ui-file.h (gdb_flush): Rename to...
12089 (ui_file_flush): ...this.
12090 * gdb/utils.c (gdb_flush): Add function.
12091 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 12092
5abbbe1d
TT
120932020-02-07 Tom Tromey <tromey@adacore.com>
12094
12095 PR breakpoints/24915:
12096 * source.c (find_and_open_source): Do not check basenames_may_differ.
12097
919adfe8
TT
120982020-02-07 Tom Tromey <tom@tromey.com>
12099
12100 * README: Update gdbserver documentation.
12101 * gdbserver: Move to top level.
12102 * configure.tgt (build_gdbserver): Remove.
12103 * configure.ac: Remove --enable-gdbserver.
12104 * configure: Rebuild.
12105 * Makefile.in (distclean): Don't mention gdbserver.
12106
1d5d29e7
SV
121072020-02-06 Shahab Vahedi <shahab@synopsys.com>
12108
12109 * source-cache.c (source_cache::ensure): Surround
12110 get_plain_source_lines with a try/catch.
12111 (source_cache::get_line_charpos): Get rid of try/catch
12112 and only check for the return value of "ensure".
12113 * tui/tui-source.c (tui_source_window::set_contents):
12114 Simplify "nlines" calculation.
12115
6eb1129c
SV
121162020-02-06 Shahab Vahedi <shahab@synopsys.com>
12117
12118 * MAINTAINERS (Write After Approval): Add myself.
12119
c6a42d11
CB
121202020-02-05 Christian Biesinger <cbiesinger@google.com>
12121
12122 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
12123 function call.
12124
c8ecdda6
CB
121252020-02-05 Christian Biesinger <cbiesinger@google.com>
12126
12127 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
12128
f6480e70
MR
121292020-02-05 Maciej W. Rozycki <macro@wdc.com>
12130
12131 * nat/riscv-linux-tdesc.h: New file.
12132 * nat/riscv-linux-tdesc.c: New file, taking code from...
12133 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12134 ... here.
12135 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
12136 NATDEPFILES.
12137
dcc9fbc6
AB
121382020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
12139
12140 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
12141 we don't set the fake simulator ptid to the null_ptid.
12142
719546c4
SM
121432020-02-03 Simon Marchi <simon.marchi@efficios.com>
12144
12145 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
12146 * gdbthread.h (class thread_info) <resumed>: Likewise.
12147 * infrun.c (resume_1): Likewise.
12148 (proceed): Likewise.
12149 (infrun_thread_stop_requested): Likewise.
12150 (stop_all_threads): Likewise.
12151 (handle_inferior_event): Likewise.
12152 (restart_threads): Likewise.
12153 (finish_step_over): Likewise.
12154 (keep_going_stepped_thread): Likewise.
12155 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
12156 (linux_handle_extended_wait): Likewise.
12157 * record-btrace.c (get_thread_current_frame_id): Likewise.
12158 * record-full.c (record_full_wait_1): Likewise.
12159 * remote.c (remote_target::process_initial_stop_replies): Likewise.
12160 * target.c (target_resume): Likewise.
12161 * thread.c (set_running_thread): Likewise.
12162
e409c542
AKS
121632020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12164
12165 * f-valprint.c (f77_print_array_1): Changed datatype of index
12166 variable to LONGEST from int to enable it to contain bound
12167 values correctly.
12168
ee98c0da
MR
121692020-02-03 Maciej W. Rozycki <macro@wdc.com>
12170
12171 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12172 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12173 offsets according to FLEN determined.
12174 (riscv_linux_nat_target::read_description): Determine FLEN
12175 dynamically.
12176 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12177 according to FLEN determined.
12178 (riscv_linux_nat_target::store_registers): Likewise.
12179
aa66aac4
SV
121802020-02-01 Shahab Vahedi <shahab@synopsys.com>
12181
12182 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12183 when reg->group is empty and reggroup is not.
12184
fd9faca8
TT
121852020-01-31 Tom Tromey <tromey@adacore.com>
12186
12187 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12188 Call beneath target's mourn_inferior after unpushing.
12189
42330a68
AB
121902020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12191
12192 PR tui/9765
12193 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12194 have enough lines to fill the screen, still return the lowest
12195 address we found.
12196
7a27a45b
AB
121972020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12198
12199 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12200 '-', '<', and '>' commands.
12201
c47f70e2
PA
122022020-01-29 Pedro Alves <palves@redhat.com>
12203 Sergio Durigan Junior <sergiodj@redhat.com>
12204
12205 * infcmd.c (construct_inferior_arguments): Assert that
12206 'argc' is greater than 0.
12207
5133a315
LM
122082020-01-29 Luis Machado <luis.machado@linaro.org>
12209
12210 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12211 (BRK_INSN_MASK): Define to 0xd4200000.
12212 (aarch64_program_breakpoint_here_p): New function.
12213 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12214 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12215 breakpoint.c.
12216 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12217 breakpoint.h
12218 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12219 call gdbarch_program_breakpoint_here_p.
12220 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12221 default_program_breakpoint_here_p, changed return type to bool and
12222 simplified.
12223 * breakpoint.h (program_breakpoint_here): Moved prototype to
12224 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12225 return type to bool.
12226 * gdbarch.c: Regenerate.
12227 * gdbarch.h: Regenerate.
12228 * gdbarch.sh (program_breakpoint_here_p): New method.
12229 * infrun.c (handle_signal_stop): Call
12230 gdbarch_program_breakpoint_here_p.
12231
168f8c6b
TT
122322020-01-26 Tom Tromey <tom@tromey.com>
12233
12234 * ctfread.c (struct ctf_fp_info): Reindent.
12235 (_initialize_ctfread): Remove.
12236
128a391f
TT
122372020-01-26 Tom Tromey <tom@tromey.com>
12238
12239 * psymtab.c (partial_map_expand_apply)
12240 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12241 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12242 (psym_print_stats, psym_expand_symtabs_for_function)
12243 (psym_map_symbol_filenames, psym_map_matching_symbols)
12244 (psym_expand_symtabs_matching)
12245 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12246 (maintenance_check_psymtabs): Use new methods.
12247 * psympriv.h (struct partial_symtab) <readin_p,
12248 get_compunit_symtab>: New methods.
12249 <readin, compunit_symtab>: Remove members.
12250 (struct standard_psymtab): New.
12251 (struct legacy_psymtab): Derive from standard_psymtab.
12252 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12253 standard_psymtab.
12254 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12255
0494dbec
TT
122562020-01-26 Tom Tromey <tom@tromey.com>
12257
12258 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12259 read_dependencies. Add assert.
12260 * psymtab.c (partial_symtab::read_dependencies): New method.
12261 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12262 method.
12263 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12264 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12265 read_dependencies.
12266 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12267 Add assert.
12268
8566b89b
TT
122692020-01-26 Tom Tromey <tom@tromey.com>
12270
12271 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12272 Call expand_psymtab.
12273 (xcoff_read_symtab): Call expand_psymtab.
12274 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12275 legacy_expand_psymtab.
12276 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12277 method.
12278 (struct legacy_psymtab) <expand_psymtab>: Implement.
12279 <legacy_expand_psymtab>: New member.
12280 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12281 (parse_partial_symbols): Set legacy_expand_psymtab.
12282 (psymtab_to_symtab_1): Change argument order. Call
12283 expand_psymtab.
12284 (new_psymtab): Set legacy_expand_psymtab.
12285 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12286 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12287 expand_psymtab.
12288 (dwarf2_psymtab::expand_psymtab): Rename from
12289 psymtab_to_symtab_1. Call expand_psymtab.
12290 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12291 (dbx_end_psymtab): Likewise.
12292 (dbx_psymtab_to_symtab_1): Change argument order. Call
12293 expand_psymtab.
12294 (dbx_read_symtab): Call expand_psymtab.
12295 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12296 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12297 (ctf_psymtab::read_symtab): Call expand_psymtab.
12298
077cbab2
TT
122992020-01-26 Tom Tromey <tom@tromey.com>
12300
12301 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12302 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12303 messages.
12304 * mdebugread.c (mdebug_read_symtab): Remove prints.
12305 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12306 assert.
12307 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12308
891813be
TT
123092020-01-26 Tom Tromey <tom@tromey.com>
12310
12311 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12312 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12313 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12314 legacy_symtab.
12315 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12316 * psymtab.c (psymtab_to_symtab): Call method.
12317 (dump_psymtab): Update.
12318 * psympriv.h (struct partial_symtab): Add virtual destructor.
12319 <read_symtab>: New method.
12320 (struct legacy_symtab): New.
12321 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12322 (struct pst_map) <pst>: Now a legacy_psymtab.
12323 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12324 (new_psymtab): Use legacy_psymtab.
12325 * dwarf2read.h (struct dwarf2_psymtab): New.
12326 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12327 * dwarf2read.c (dwarf2_create_include_psymtab)
12328 (dwarf2_build_include_psymtabs, create_type_unit_group)
12329 (create_partial_symtab, process_psymtab_comp_unit_reader)
12330 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12331 (set_partial_user): Use dwarf2_psymtab.
12332 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12333 (psymtab_to_symtab_1, process_full_comp_unit)
12334 (process_full_type_unit, dwarf2_ranges_read)
12335 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12336 (dwarf_decode_lines): Use dwarf2_psymtab.
12337 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12338 (add_address_entry_worker, write_one_signatured_type)
12339 (recursively_count_psymbols, recursively_write_psymbols)
12340 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12341 (write_debug_names): Likewise.
12342 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12343 <pst>: Now a legacy_psymtab.
12344 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12345 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12346 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12347 * ctfread.c (struct ctf_psymtab): New.
12348 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12349 ctf_psymtab.
12350 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12351 (create_partial_symtab): Return a ctf_psymtab.
12352 (scan_partial_symbols): Update.
12353
c3693a1d
TT
123542020-01-26 Tom Tromey <tom@tromey.com>
12355
12356 * xcoffread.c (xcoff_start_psymtab): Use new.
12357 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12358 renamed from start_psymtab_common.
12359 * psympriv.h (struct partial_symtab): Add new constructor.
12360 (start_psymtab_common): Don't declare.
12361 * mdebugread.c (parse_partial_symbols): Use new.
12362 * dwarf2read.c (create_partial_symtab): Use new.
12363 * dbxread.c (start_psymtab): Use new.
12364 * ctfread.c (create_partial_symtab): Use new.
12365
32caafd0
TT
123662020-01-26 Tom Tromey <tom@tromey.com>
12367
12368 * xcoffread.c (xcoff_end_psymtab): Use new.
12369 * psymtab.c (start_psymtab_common): Use new.
12370 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12371 Update.
12372 * psympriv.h (struct partial_symtab): Add parameters to
12373 constructor. Don't inline.
12374 (allocate_psymtab): Don't declare.
12375 * mdebugread.c (new_psymtab): Use new.
12376 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12377 * dbxread.c (dbx_end_psymtab): Use new.
12378
abaa2f23
TT
123792020-01-26 Tom Tromey <tom@tromey.com>
12380
12381 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12382 allocate_psymtab. Update documentation.
12383 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12384 allocate_psymtab. Do not use new.
12385 (allocate_psymtab): Use new. Update.
12386
6d94535f
TT
123872020-01-26 Tom Tromey <tom@tromey.com>
12388
12389 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12390 * psymtab.c (psym_print_stats): Update.
12391 * psympriv.h (struct partial_symtab) <readin,
12392 psymtabs_addrmap_supported, anonymous>: Now bool.
12393 * mdebugread.c (psymtab_to_symtab_1): Update.
12394 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12395 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12396 (process_full_comp_unit, process_full_type_unit): Update.
12397 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12398 * ctfread.c (psymtab_to_symtab): Update.
12399
6f17252b
TT
124002020-01-26 Tom Tromey <tom@tromey.com>
12401
12402 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12403 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12404 * psymtab.c (psymtab_storage): Delete psymtabs.
12405 (psymtab_storage::allocate_psymtab): Use new.
12406 (psymtab_storage::discard_psymtab): Use delete.
12407 * psympriv.h (struct partial_symtab): Add constructor and
12408 initializers.
12409
f6f1cebc
TT
124102020-01-26 Tom Tromey <tom@tromey.com>
12411
12412 * machoread.c: Do not include psympriv.h.
12413
e47e48f6
PW
124142020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12415
12416 * NEWS: Mention the new option and the set/show commands.
12417
a2fedca9
PW
124182020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12419
12420 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12421 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12422 (validate_exec_file): New variables, enums, functions.
12423 (exec_file_locate_attach, print_section_info): Style the filenames.
12424 (_initialize_exec): Install show_exec_file_mismatch_command and
12425 set_exec_file_mismatch_command.
12426 * gdbcore.h (validate_exec_file): Declare.
12427 * infcmd.c (attach_command): Call validate_exec_file.
12428 * remote.c ( remote_target::remote_add_inferior): Likewise.
12429
7ffa82e1
AB
124302020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12431
12432 * frame.c (find_frame_sal): Move call to get_next_frame into more
12433 inner scope.
12434 * inline-frame.c (inilne_state) <inline_state>: Update argument
12435 types.
12436 (inilne_state) <skipped_symbol>: Rename to...
12437 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12438 (skip_inline_frames): Build vector of skipped symbols and use this
12439 to reate the inline_state.
12440 (inline_skipped_symbol): Add a comment and some assertions, fetch
12441 skipped symbol from the list.
12442
3d92a3e3
AB
124432020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12444
12445 * buildsym.c (lte_is_less_than): Delete.
12446 (buildsym_compunit::end_symtab_with_blockvector): Create local
12447 lambda function to sort line table entries, and use
12448 std::stable_sort instead of std::sort.
12449 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12450 markers when looking for a previous line.
12451
94a72be7
AB
124522020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12453
12454 * dwarf2read.c (lnp_state_machine::record_line): Include
12455 end_sequence parameter in debug print out. Record the line if we
12456 are at an end_sequence marker even if it's not the start of a
12457 statement.
12458 * symmisc.c (maintenance_print_one_line_table): Print end of
12459 sequence markers with 'END' not '0'.
12460
53af73bf
PA
124612020-01-24 Pedro Alves <palves@redhat.com>
12462
12463 PR gdb/25410
12464 * thread.c (scoped_restore_current_thread::restore): Use
12465 switch_to_inferior_no_thread.
12466 * exec.c: Include "progspace-and-thread.h".
12467 (add_target_sections, remove_target_sections):
12468 scoped_restore_current_pspace_and_thread instead of
12469 scoped_restore_current_thread.
12470 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12471 and aspace to the inferior before calling clone_program_space.
12472 Remove stale comment.
12473
3050c6f4
CB
124742020-01-24 Christian Biesinger <cbiesinger@google.com>
12475
12476 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12477 (arm_netbsd_nat_target::fetch_registers): ...this.
12478 (arm_nbsd_nat_target::store_registers): Rename to...
12479 (arm_netbsd_nat_target::store_registers): ...this.
12480
73685c7e
CB
124812020-01-24 Christian Biesinger <cbiesinger@google.com>
12482
12483 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12484 register_t.
12485
89203d40
CB
124862020-01-24 Christian Biesinger <cbiesinger@google.com>
12487
12488 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12489 Update comment.
12490 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12491 Likewise.
12492 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12493 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12494 the correct replacement (iterate_over_regset_sections).
12495 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12496 Update comment.
12497
1ba1ac88
AB
124982020-01-24 Graham Markall <graham.markall@embecosm.com>
12499
12500 PR gdb/23718
12501 * gdb/python/python.c (execute_gdb_command): Call
12502 async_enable_stdin in catch block.
12503
f3364a6d
AB
125042020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12505
12506 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12507 SWITCH_THRU_ALL_UIS.
12508
733d0a67
AB
125092020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12510
12511 PR tui/9765
12512 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12513 comment, add extra parameter, and update to store previous symbol
12514 when appropriate.
12515 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12516 add extra parameter.
12517 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12518 remove unneeded parameter, add try/catch around gdb_print_insn,
12519 rewrite to add items to asm_lines vector.
12520 (tui_find_backward_disassembly_start_address): New function.
12521 (tui_find_disassembly_address): Updated throughout.
12522 (tui_disasm_window::set_contents): Update for changes to
12523 tui_disassemble.
12524 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12525 number of lines to scroll.
12526
b3b3bada
SM
125272020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12528
12529 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12530 (SECT_OFF_DATA): Likewise.
12531 (SECT_OFF_RODATA): Likewise.
12532 (SECT_OFF_TEXT): Likewise.
12533 (SECT_OFF_BSS): Likewise.
12534 (struct objfile) <text_section_offset, data_section_offset>: New
12535 methods.
12536 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12537 objfile::text_section_offset.
12538 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12539 * coffread.c (coff_symtab_read): Likewise.
12540 (enter_linenos): Likewise.
12541 (process_coff_symbol): Likewise.
12542 * ctfread.c (get_objfile_text_range): Likewise.
12543 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12544 Use objfile::data_section_offset.
12545 * dwarf2-frame.c (execute_cfa_program): Use
12546 objfile::text_section_offset.
12547 (dwarf2_frame_find_fde): Likewise.
12548 * dwarf2read.c (create_addrmap_from_index): Likewise.
12549 (create_addrmap_from_aranges): Likewise.
12550 (dw2_find_pc_sect_compunit_symtab): Likewise.
12551 (process_psymtab_comp_unit_reader): Likewise.
12552 (add_partial_symbol): Likewise.
12553 (add_partial_subprogram): Likewise.
12554 (process_full_comp_unit): Likewise.
12555 (read_file_scope): Likewise.
12556 (read_func_scope): Likewise.
12557 (read_lexical_block_scope): Likewise.
12558 (read_call_site_scope): Likewise.
12559 (dwarf2_rnglists_process): Likewise.
12560 (dwarf2_ranges_process): Likewise.
12561 (dwarf2_ranges_read): Likewise.
12562 (dwarf_decode_lines_1): Likewise.
12563 (new_symbol): Likewise.
12564 (dwarf2_fetch_die_loc_sect_off): Likewise.
12565 (dwarf2_per_cu_text_offset): Likewise.
12566 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12567 * hppa-tdep.c (read_unwind_info): Likewise.
12568 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12569 * psympriv.h (struct partial_symtab): Likewise.
12570 * psymtab.c (find_pc_sect_psymtab): Likewise.
12571 * solib-svr4.c (enable_break): Likewise.
12572 * stap-probe.c (relocate_address): Use
12573 objfile::data_section_offset.
12574 * xcoffread.c (enter_line_range): Use
12575 objfile::text_section_offset.
12576 (read_xcoff_symtab): Likewise.
12577
ab53f382
SM
125782020-01-23 Simon Marchi <simon.marchi@efficios.com>
12579
12580 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12581 declaration to narrower scopes.
12582
e7eee665
SM
125832020-01-23 Simon Marchi <simon.marchi@efficios.com>
12584
12585 * darwin-nat.h (struct darwin_exception_msg, enum
12586 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12587 Move up.
12588 (class darwin_nat_target) <wait_1, check_new_threads,
12589 decode_exception_message, decode_message, stop_inferior,
12590 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12591 * darwin-nat.c (darwin_check_new_threads): Rename to...
12592 (darwin_nat_target::check_new_threads): ... this.
12593 (darwin_suspend_inferior_it): Remove.
12594 (darwin_decode_exception_message): Rename to...
12595 (darwin_nat_target::decode_exception_message): ... this.
12596 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12597 (darwin_decode_message): Rename to...
12598 (darwin_nat_target::decode_message): ... this.
12599 (cancel_breakpoint): Rename to...
12600 (darwin_nat_target::cancel_breakpoint): ... this.
12601 (darwin_wait): Rename to...
12602 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12603 instead of iterate_over_inferiors.
12604 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12605 (darwin_stop_inferior): Rename to...
12606 (darwin_nat_target::stop_inferior): ... this.
12607 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12608 (darwin_init_thread_list): Rename to...
12609 (darwin_nat_target::init_thread_list): ... this.
12610 (darwin_ptrace_him): Rename to...
12611 (darwin_nat_target::ptrace_him): ... this.
12612 (darwin_nat_target::create_inferior): Pass lambda function to
12613 fork_inferior.
12614 (darwin_nat_target::detach): Call stop_inferior instead of
12615 darwin_stop_inferior.
12616 * fork-inferior.h (fork_inferior): Change init_trace_fun
12617 parameter to gdb::function_view.
12618 * fork-inferior.c (fork_inferior): Likewise.
12619
c162ed3e
HD
126202020-01-23 Hannes Domani <ssbssa@yahoo.de>
12621
12622 * i386-cygwin-tdep.c (core_process_module_section): Update.
12623 * windows-nat.c (struct lm_info_windows): Add text_offset.
12624 (windows_xfer_shared_libraries): Update.
12625 * windows-tdep.c (windows_xfer_shared_library):
12626 Add text_offset_cached argument.
12627 * windows-tdep.h (windows_xfer_shared_library): Update.
12628
a1237872
SM
126292020-01-21 Simon Marchi <simon.marchi@efficios.com>
12630
12631 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12632
b3ee6dd9
SM
126332020-01-21 Simon Marchi <simon.marchi@efficios.com>
12634
12635 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12636 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12637 replace with range-based for.
12638 (gdbsim_interrupt_inferior): Remove.
12639 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12640 with a range-based for. Inline code from
12641 gdbsim_interrupt_inferior.
12642
f9fac3c8
SM
126432020-01-21 Simon Marchi <simon.marchi@efficios.com>
12644
12645 * infrun.c (proceed): Fix indentation.
12646
f6474de9
TT
126472020-01-21 Tom Tromey <tromey@adacore.com>
12648
12649 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12650 * python/python.c (python_extension_ops): Update.
12651 (gdbpy_colorize): New function.
12652 * python/lib/gdb/__init__.py (colorize): New function.
12653 * extension.h (ext_lang_colorize): Declare.
12654 * extension.c (ext_lang_colorize): New function.
12655 * extension-priv.h (struct extension_language_ops) <colorize>: New
12656 member.
12657 * cli/cli-style.c (_initialize_cli_style): Update help text.
12658
f0c702d4
LM
126592020-01-21 Luis Machado <luis.machado@linaro.org>
12660
12661 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12662 <cond>: Change type to bool.
12663 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12664 (aarch64_displaced_step_cb): Likewise.
12665 (aarch64_displaced_step_tb): Likewise.
12666
1ab139e5
LM
126672020-01-21 Luis Machado <luis.machado@linaro.org>
12668
12669 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12670 output.
12671
0c271889
LM
126722020-01-21 Luis Machado <luis.machado@linaro.org>
12673
12674 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12675 <pc_adjust>: Adjust the documentation.
12676 (aarch64_displaced_step_fixup): Check if PC really moved before
12677 adjusting it.
12678
4d89c1c7
TT
126792020-01-19 Tom Tromey <tom@tromey.com>
12680
12681 * disasm.c (~gdb_disassembler): New destructor.
12682 (gdb_buffered_insn_length): Call disassemble_free_target.
12683 * disasm.h (class gdb_disassembler): Declare destructor. Use
12684 DISABLE_COPY_AND_ASSIGN.
12685
c0ab21c2
TT
126862020-01-19 Tom Tromey <tom@tromey.com>
12687
12688 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12689 (die_reader_func_ftype): Remove.
12690 (cutu_reader): New class.
12691 (dw2_get_file_names_reader): Remove "data" parameter.
12692 (dw2_get_file_names): Use cutu_reader.
12693 (create_debug_type_hash_table): Update.
12694 (read_cutu_die_from_dwo): Update comment.
12695 (lookup_dwo_unit): Add dwo_name parameter.
12696 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12697 die_reader_func_ftype and data parameters.
12698 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12699 Remove die_reader_func_ftype and data parameters.
12700 (~cutu_reader): New; from init_cutu_and_read_dies.
12701 (cutu_reader::cutu_reader): Rename from
12702 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12703 and data parameters.
12704 (init_cutu_and_read_dies_simple): Remove.
12705 (struct process_psymtab_comp_unit_data): Remove.
12706 (process_psymtab_comp_unit_reader): Remove data parameter; add
12707 want_partial_unit and pretend_language parameters.
12708 (process_psymtab_comp_unit): Use cutu_reader.
12709 (build_type_psymtabs_reader): Remove data parameter.
12710 (build_type_psymtabs_1): Use cutu_reader.
12711 (process_skeletonless_type_unit): Likewise.
12712 (load_partial_comp_unit_reader): Remove.
12713 (load_partial_comp_unit): Use cutu_reader.
12714 (load_full_comp_unit_reader): Remove.
12715 (load_full_comp_unit): Use cutu_reader.
12716 (struct create_dwo_cu_data): Remove.
12717 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12718 dwo_unit parameters.
12719 (create_cus_hash_table): Use cutu_reader.
12720 (struct dwarf2_read_addr_index_data): Remove.
12721 (dwarf2_read_addr_index_reader): Remove.
12722 (dwarf2_read_addr_index): Use cutu_reader.
12723 (read_signatured_type_reader): Remove.
12724 (read_signatured_type): Use cutu_reader.
12725
45bbae5c
TT
127262020-01-19 Tom Tromey <tom@tromey.com>
12727
12728 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12729 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12730 (tui_wrefresh): Declare.
12731 * tui/tui-wingeneral.c (suppress_output): New global.
12732 (tui_suppress_output, ~tui_suppress_output): New constructor and
12733 destructor.
12734 (tui_wrefresh): New function.
12735 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12736 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12737 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12738 method.
12739 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12740 tui_wrefresh.
12741 (tui_data_window::no_refresh): New method.
12742 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12743 (tui_reg_command): Use tui_suppress_output
12744 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12745 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12746 method.
12747 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12748
4f13c1c0
TT
127492020-01-19 Tom Tromey <tom@tromey.com>
12750
12751 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12752 Handle case where symtab is null.
12753
fa47e446
SM
127542020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12755
12756 * linux-fork.c (one_fork_p): Simplify.
12757
26f42329
SM
127582020-01-17 Simon Marchi <simon.marchi@efficios.com>
12759
12760 * top.c (struct qt_args): Remove.
12761 (kill_or_detach): Change return type to void, replace `void *`
12762 parameter with a proper one.
12763 (print_inferior_quit_action): Likewise.
12764 (quit_confirm): Use range-based for loop to iterate over inferiors.
12765 (quit_force): Likewise.
12766
a9ac81b1
SM
127672020-01-17 Simon Marchi <simon.marchi@efficios.com>
12768
12769 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12770 `void *` parameter with proper parameters.
12771 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12772 (print_one_inferior): Change return type to void, replace `void *`
12773 parameter with proper parameters.
12774 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12775 inferiors.
12776 (get_other_inferior): Remove.
12777 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12778 inferiors.
12779
788eca49
SM
127802020-01-17 Simon Marchi <simon.marchi@efficios.com>
12781
12782 * mi/mi-interp.c (report_initial_inferior): Remove.
12783 (mi_interp::init): Use range-based for to iterate over inferiors.
12784
d9bc85b6
SM
127852020-01-17 Simon Marchi <simon.marchi@efficios.com>
12786
12787 * python/py-inferior.c (build_inferior_list): Remove.
12788 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12789
40c94099
CB
127902020-01-16 Christian Biesinger <cbiesinger@google.com>
12791
12792 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12793 (btrace_stitch_trace): Likewise.
12794 * charset.c (intermediate_encoding): Likewise (vaild).
12795 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12796 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12797 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12798
e0cdfe3c
HD
127992020-01-16 Hannes Domani <ssbssa@yahoo.de>
12800
12801 * windows-tdep.c (windows_get_tlb_type):
12802 Add rtl_user_process_parameters type.
12803
790f1718 128042020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 12805 Norbert Lange <nolange79@gmail.com>
790f1718
PA
12806
12807 PR build/24805
12808 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12809 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12810 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12811 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12812 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12813 (ps_plog): Redeclare exported functions with default visibility.
12814
3112ed97
NA
128152020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12816
12817 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12818 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12819
8dc3273e
SM
128202020-01-15 Simon Marchi <simon.marchi@efficios.com>
12821
12822 * infcmd.c (post_create_inferior): Use get_thread_regcache
12823 instead of get_current_regcache.
12824
ff47f4f0
TT
128252020-01-14 Tom Tromey <tom@tromey.com>
12826
12827 PR symtab/12535:
12828 * python/python.c (gdbpy_decode_line): Treat empty string the same
12829 as no argument.
12830
975f45b7
TT
128312020-01-14 Tom Tromey <tom@tromey.com>
12832
12833 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
12834
25e57356
TT
128352020-01-14 Tom Tromey <tom@tromey.com>
12836
12837 * nat/linux-btrace.c: Don't include <config.h>.
12838 * nat/linux-ptrace.c: Don't include <config.h>.
12839 * nat/x86-linux-dregs.c: Don't include <config.h>.
12840
05ea2a05
TT
128412020-01-14 Tom Tromey <tom@tromey.com>
12842
12843 * configure: Rebuild.
12844 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12845
01027315
TT
128462020-01-14 Tom Tromey <tom@tromey.com>
12847
12848 * nat/x86-linux-dregs.c: Include configh.h.
12849 * nat/linux-ptrace.c: Include configh.h.
12850 * nat/linux-btrace.c: Include configh.h.
12851 * defs.h: Include config.h, bfd.h.
12852 * configure.ac: Don't source common.host.
12853 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
12854 * configure: Rebuild.
12855 * acinclude.m4: Update path.
12856 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
12857 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
12858 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
12859 (CLIBS): Add LIBSUPPORT.
12860 (CDEPS): Likewise.
12861 (COMMON_SFILES): Remove gdbsupport files.
12862 (HFILES_NO_SRCDIR): Likewise.
12863 (stamp-version): Update path to create-version.sh.
12864 (ALLDEPFILES): Remove gdbsupport files.
12865
b2ceabe8
TT
128662020-01-14 Tom Tromey <tom@tromey.com>
12867
12868 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
12869 USE_WIN32API when needed.
12870 * configure.ac (USE_WIN32API): Don't define.
12871 (WIN32LIBS): Use WIN32APILIBS.
12872 * configure: Rebuild.
12873
25c51f71
TT
128742020-01-14 Tom Tromey <tom@tromey.com>
12875
12876 * configure: Rebuild.
12877 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
12878
717c684d
BE
128792020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12880
12881 * skip.c (skip_function_command): Make skip w/o arguments use the
12882 name of the inlined function if pc is inside any inlined function.
12883
7da6a5b9
LM
128842020-01-14 Luis Machado <luis.machado@linaro.org>
12885
12886 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
12887 * infrun.c (resume_1): Likewise.
12888 (handle_inferior_event): Remove stale comment.
12889 * linux-nat.c (linux_nat_target::resume): Update comments.
12890 (save_stop_reason): Likewise.
12891 (linux_nat_filter_event): Likewise.
12892 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12893
44e4c775
AB
128942020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12895
12896 * elfread.c (record_minimal_symbol): Set section index to 0 for
12897 non-allocatable sections.
12898
18a8505e
AT
12899
129002020-01-13 Ali Tamur <tamur@google.com>
12901
12902 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12903 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12904 to gdb::optional. Update comments.
12905 (dwo_file): Update comments.
12906 (read_attribute): Update API to take an additional out parameter,
12907 need_reprocess. This is used to mark attributes that need other
12908 attributes (e.g. str_offsets_base) for correct computation which may not
12909 have been read yet.
12910 (read_attribute_reprocess): New function declaration.
12911 (read_addr_index): Likewise.
12912 (read_dwo_str_index): Likewise.
12913 (read_stub_str_index): Likewise.
12914 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12915 (lookup_addr_base): New function definition.
12916 (lookup_ranges_base): Likewise.
12917 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12918 lookup_ranges_base.
12919 (init_cutu_and_read_dies): Update comments.
12920 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12921 unit. This is used to inherit parent's str_offsets_base and addr_base.
12922 Update comments.
12923 (init_cutu_and_read_dies_simple): Reflect API changes.
12924 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12925 (create_cus_hash_table): Change API to take parent compile unit.
12926 Reflect API changes.
12927 (open_and_init_dwo_file): Reflect API changes.
12928 (dwarf2_get_pc_bounds): Update comments.
12929 (dwarf2_record_block_ranges): Likewise.
12930 (read_full_die_1): Change implementation to reprocess attributes that
12931 need str_offsets_base and addr_base.
12932 (partial_die_info::read): Likewise.
12933 (read_attribute_reprocess): New function definition.
12934 (read_attribute_value): Change API to take an additional out parameter,
12935 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12936 when a non-dwo compile unit has index based attributes.
12937 (read_attribute): Reflect API changes.
12938 (read_addr_index_1): Reflect API changes. Update comments.
12939 (dwarf2_read_addr_index_data): Reflect API changes.
12940 (dwarf2_read_addr_index): Likewise.
12941 (read_str_index): Change API and implementation. This becomes a helper
12942 to be used by the new string index related methods. Update error
12943 message and comments.
12944 (read_dwo_str_index): New function definition.
12945 (read_stub_str_index): Likewise.
12946 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12947 * symfile.h (dwarf2_debug_sections): Likewise.
12948 * xcoffread.c (dwarf2_debug_sections): Likewise.
12949
0cac9354
SM
129502020-01-13 Simon Marchi <simon.marchi@efficios.com>
12951
12952 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12953 core_reg_sect type to gdb_byte *.
12954 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12955 * cris-tdep.c (fetch_core_registers): Likewise.
12956 * corelow.c (core_target::get_core_register_section): Change
12957 type of `contents` to gdb::byte_vector.
12958
9a6d629c
AB
129592020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12960
12961 * tui/tui-wingeneral.c (box_win): Position the title in the center
12962 of the border.
12963
d8b2f9e3
SM
129642020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12965
12966 * corelow.c (core_target::get_core_register_section): Use
12967 std::vector instead of alloca.
12968
bb564c58
SM
129692020-01-13 Simon Marchi <simon.marchi@efficios.com>
12970
12971 * warning.m4: Add -Wmissing-declarations to build_warnings.
12972 * configure: Re-generate.
12973
6b366111
SM
129742020-01-13 Simon Marchi <simon.marchi@efficios.com>
12975
12976 * python/python.c (init__gdb_module): Add declaration.
12977
6c265988
SM
129782020-01-13 Simon Marchi <simon.marchi@efficios.com>
12979
12980 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12981 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12982 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12983 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12984 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12985 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12986 * ada-exp.y (_initialize_ada_exp): Add declaration.
12987 * ada-lang.c (_initialize_ada_language): Add declaration.
12988 * ada-tasks.c (_initialize_tasks): Add declaration.
12989 * agent.c (_initialize_agent): Add declaration.
12990 * aix-thread.c (_initialize_aix_thread): Add declaration.
12991 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12992 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12993 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12994 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12995 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12996 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12997 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12998 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12999 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
13000 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
13001 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
13002 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
13003 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
13004 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
13005 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
13006 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
13007 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
13008 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
13009 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
13010 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
13011 * annotate.c (_initialize_annotate): Add declaration.
13012 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
13013 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
13014 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
13015 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
13016 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
13017 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
13018 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
13019 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
13020 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
13021 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
13022 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
13023 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
13024 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
13025 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
13026 * auto-load.c (_initialize_auto_load): Add declaration.
13027 * auxv.c (_initialize_auxv): Add declaration.
13028 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
13029 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
13030 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
13031 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
13032 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
13033 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
13034 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
13035 * breakpoint.c (_initialize_breakpoint): Add declaration.
13036 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
13037 * btrace.c (_initialize_btrace): Add declaration.
13038 * charset.c (_initialize_charset): Add declaration.
13039 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
13040 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
13041 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
13042 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
13043 * cli/cli-script.c (_initialize_cli_script): Add declaration.
13044 * cli/cli-style.c (_initialize_cli_style): Add declaration.
13045 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
13046 * coffread.c (_initialize_coffread): Add declaration.
13047 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
13048 * compile/compile.c (_initialize_compile): Add declaration.
13049 * complaints.c (_initialize_complaints): Add declaration.
13050 * completer.c (_initialize_completer): Add declaration.
13051 * copying.c (_initialize_copying): Add declaration.
13052 * corefile.c (_initialize_core): Add declaration.
13053 * corelow.c (_initialize_corelow): Add declaration.
13054 * cp-abi.c (_initialize_cp_abi): Add declaration.
13055 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
13056 * cp-support.c (_initialize_cp_support): Add declaration.
13057 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
13058 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
13059 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
13060 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
13061 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
13062 * ctfread.c (_initialize_ctfread): Add declaration.
13063 * d-lang.c (_initialize_d_language): Add declaration.
13064 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
13065 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
13066 * dbxread.c (_initialize_dbxread): Add declaration.
13067 * dcache.c (_initialize_dcache): Add declaration.
13068 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
13069 * disasm.c (_initialize_disasm): Add declaration.
13070 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
13071 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
13072 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
13073 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
13074 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
13075 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
13076 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
13077 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
13078 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
13079 * elfread.c (_initialize_elfread): Add declaration.
13080 * exec.c (_initialize_exec): Add declaration.
13081 * extension.c (_initialize_extension): Add declaration.
13082 * f-lang.c (_initialize_f_language): Add declaration.
13083 * f-valprint.c (_initialize_f_valprint): Add declaration.
13084 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
13085 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
13086 * filesystem.c (_initialize_filesystem): Add declaration.
13087 * findcmd.c (_initialize_mem_search): Add declaration.
13088 * findvar.c (_initialize_findvar): Add declaration.
13089 * fork-child.c (_initialize_fork_child): Add declaration.
13090 * frame-base.c (_initialize_frame_base): Add declaration.
13091 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
13092 * frame.c (_initialize_frame): Add declaration.
13093 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
13094 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
13095 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
13096 * gcore.c (_initialize_gcore): Add declaration.
13097 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
13098 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
13099 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
13100 * gdbarch.c (_initialize_gdbarch): Add declaration.
13101 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
13102 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
13103 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
13104 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
13105 * go-lang.c (_initialize_go_language): Add declaration.
13106 * go32-nat.c (_initialize_go32_nat): Add declaration.
13107 * guile/guile.c (_initialize_guile): Add declaration.
13108 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
13109 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
13110 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
13111 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
13112 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
13113 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
13114 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
13115 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
13116 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
13117 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
13118 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
13119 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
13120 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
13121 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
13122 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
13123 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
13124 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
13125 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
13126 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
13127 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
13128 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
13129 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
13130 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
13131 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
13132 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
13133 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
13134 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
13135 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
13136 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
13137 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
13138 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
13139 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
13140 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
13141 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
13142 * infcall.c (_initialize_infcall): Add declaration.
13143 * infcmd.c (_initialize_infcmd): Add declaration.
13144 * inflow.c (_initialize_inflow): Add declaration.
13145 * infrun.c (_initialize_infrun): Add declaration.
13146 * interps.c (_initialize_interpreter): Add declaration.
13147 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
13148 * jit.c (_initialize_jit): Add declaration.
13149 * language.c (_initialize_language): Add declaration.
13150 * linux-fork.c (_initialize_linux_fork): Add declaration.
13151 * linux-nat.c (_initialize_linux_nat): Add declaration.
13152 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
13153 * linux-thread-db.c (_initialize_thread_db): Add declaration.
13154 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
13155 * m2-lang.c (_initialize_m2_language): Add declaration.
13156 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
13157 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
13158 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
13159 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
13160 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
13161 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
13162 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
13163 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
13164 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
13165 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
13166 * machoread.c (_initialize_machoread): Add declaration.
13167 * macrocmd.c (_initialize_macrocmd): Add declaration.
13168 * macroscope.c (_initialize_macroscope): Add declaration.
13169 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13170 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13171 * maint.c (_initialize_maint_cmds): Add declaration.
13172 * mdebugread.c (_initialize_mdebugread): Add declaration.
13173 * memattr.c (_initialize_mem): Add declaration.
13174 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13175 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13176 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13177 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13178 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13179 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13180 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13181 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13182 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13183 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13184 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13185 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13186 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13187 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13188 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13189 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13190 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13191 * mipsread.c (_initialize_mipsread): Add declaration.
13192 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13193 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13194 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13195 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13196 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13197 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13198 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13199 * nto-procfs.c (_initialize_procfs): Add declaration.
13200 * objc-lang.c (_initialize_objc_language): Add declaration.
13201 * observable.c (_initialize_observer): Add declaration.
13202 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13203 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13204 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13205 * osabi.c (_initialize_gdb_osabi): Add declaration.
13206 * osdata.c (_initialize_osdata): Add declaration.
13207 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13208 * parse.c (_initialize_parse): Add declaration.
13209 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13210 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13211 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13212 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13213 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13214 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13215 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13216 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13217 * printcmd.c (_initialize_printcmd): Add declaration.
13218 * probe.c (_initialize_probe): Add declaration.
13219 * proc-api.c (_initialize_proc_api): Add declaration.
13220 * proc-events.c (_initialize_proc_events): Add declaration.
13221 * proc-service.c (_initialize_proc_service): Add declaration.
13222 * procfs.c (_initialize_procfs): Add declaration.
13223 * producer.c (_initialize_producer): Add declaration.
13224 * psymtab.c (_initialize_psymtab): Add declaration.
13225 * python/python.c (_initialize_python): Add declaration.
13226 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13227 * record-btrace.c (_initialize_record_btrace): Add declaration.
13228 * record-full.c (_initialize_record_full): Add declaration.
13229 * record.c (_initialize_record): Add declaration.
13230 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13231 * regcache.c (_initialize_regcache): Add declaration.
13232 * reggroups.c (_initialize_reggroup): Add declaration.
13233 * remote-notif.c (_initialize_notif): Add declaration.
13234 * remote-sim.c (_initialize_remote_sim): Add declaration.
13235 * remote.c (_initialize_remote): Add declaration.
13236 * reverse.c (_initialize_reverse): Add declaration.
13237 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13238 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13239 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13240 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13241 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13242 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13243 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13244 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13245 Add declaration.
13246 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13247 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13248 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13249 * rust-exp.y (_initialize_rust_exp): Add declaration.
13250 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13251 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13252 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13253 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13254 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13255 * score-tdep.c (_initialize_score_tdep): Add declaration.
13256 * ser-go32.c (_initialize_ser_dos): Add declaration.
13257 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13258 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13259 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13260 * ser-uds.c (_initialize_ser_socket): Add declaration.
13261 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13262 * serial.c (_initialize_serial): Add declaration.
13263 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13264 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13265 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13266 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13267 * skip.c (_initialize_step_skip): Add declaration.
13268 * sol-thread.c (_initialize_sol_thread): Add declaration.
13269 * solib-aix.c (_initialize_solib_aix): Add declaration.
13270 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13271 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13272 * solib-frv.c (_initialize_frv_solib): Add declaration.
13273 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13274 * solib-target.c (_initialize_solib_target): Add declaration.
13275 * solib.c (_initialize_solib): Add declaration.
13276 * source-cache.c (_initialize_source_cache): Add declaration.
13277 * source.c (_initialize_source): Add declaration.
13278 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13279 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13280 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13281 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13282 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13283 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13284 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13285 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13286 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13287 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13288 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13289 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13290 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13291 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13292 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13293 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13294 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13295 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13296 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13297 * stabsread.c (_initialize_stabsread): Add declaration.
13298 * stack.c (_initialize_stack): Add declaration.
13299 * stap-probe.c (_initialize_stap_probe): Add declaration.
13300 * std-regs.c (_initialize_frame_reg): Add declaration.
13301 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13302 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13303 * symfile.c (_initialize_symfile): Add declaration.
13304 * symmisc.c (_initialize_symmisc): Add declaration.
13305 * symtab.c (_initialize_symtab): Add declaration.
13306 * target.c (_initialize_target): Add declaration.
13307 * target-connection.c (_initialize_target_connection): Add
13308 declaration.
13309 * target-dcache.c (_initialize_target_dcache): Add declaration.
13310 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13311 * thread.c (_initialize_thread): Add declaration.
13312 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13313 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13314 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13315 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13316 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13317 * tracectf.c (_initialize_ctf): Add declaration.
13318 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13319 * tracefile.c (_initialize_tracefile): Add declaration.
13320 * tracepoint.c (_initialize_tracepoint): Add declaration.
13321 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13322 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13323 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13324 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13325 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13326 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13327 * tui/tui.c (_initialize_tui): Add declaration.
13328 * typeprint.c (_initialize_typeprint): Add declaration.
13329 * ui-style.c (_initialize_ui_style): Add declaration.
13330 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13331 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13332 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13333 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13334 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13335 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13336 * unittests/filtered_iterator-selftests.c
13337 (_initialize_filtered_iterator_selftests): Add declaration.
13338 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13339 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13340 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13341 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13342 * unittests/main-thread-selftests.c
13343 (_initialize_main_thread_selftests): Add declaration.
13344 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13345 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13346 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13347 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13348 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13349 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13350 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13351 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13352 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13353 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13354 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13355 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13356 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13357 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13358 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13359 declaration.
13360 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13361 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13362 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13363 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13364 * user-regs.c (_initialize_user_regs): Add declaration.
13365 * utils.c (_initialize_utils): Add declaration.
13366 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13367 * valops.c (_initialize_valops): Add declaration.
13368 * valprint.c (_initialize_valprint): Add declaration.
13369 * value.c (_initialize_values): Add declaration.
13370 * varobj.c (_initialize_varobj): Add declaration.
13371 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13372 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13373 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13374 * windows-nat.c (_initialize_windows_nat): Add declaration.
13375 (_initialize_check_for_gdb_ini): Add declaration.
13376 (_initialize_loadable): Add declaration.
13377 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13378 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13379 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13380 * xcoffread.c (_initialize_xcoffread): Add declaration.
13381 * xml-support.c (_initialize_xml_support): Add declaration.
13382 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13383 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13384 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13385 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13386
e2de1eec
SM
133872020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13388
13389 * regformats/regdat.sh: Generate declaration for init function.
13390
e0037b4c
SM
133912020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13392
13393 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13394 up.
13395 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13396 close_one_inferior>: New methods.
13397 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13398 pass down target to find_inferior_pid.
13399 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13400 Pass down target to find_inferior_ptid.
13401 (gdbsim_target::create_inferior): Pass down target to
13402 add_thread_silent.
13403 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13404 target down to find_inferior_ptid and switch_to_thread.
13405 (gdbsim_target::close): Update to call close_one_inferior.
13406 (struct resume_data): Remove.
13407 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13408 directly, rather than through a void pointer.
13409 (gdbsim_target::resume): Update to call resume_one_inferior.
13410
58920b5b
SM
134112020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13412
13413 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13414
4ec89149
PA
134152020-01-12 Pedro Alves <palves@redhat.com>
13416
13417 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13418 directly for the current inferior instead of
13419 discard_all_inferiors.
13420 (discard_all_inferiors): Delete.
13421
7c392d1d
TT
134222020-01-11 Tom Tromey <tom@tromey.com>
13423
13424 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13425 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13426 deprecated_safe_get_selected_frame.
13427
d9ebdab7
TBA
134282020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13429
13430 * inferior.c (print_inferior): Switch inferior before printing it.
13431
f3c469b9
PA
134322020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13433 Pedro Alves <palves@redhat.com>
13434
13435 * progspace-and-thread.c (switch_to_program_space_and_thread):
13436 Assert there's an inferior for PSPACE. Use
13437 switch_to_inferior_no_thread to switch the inferior too.
13438 * progspace.c (program_space::~program_space): Call
13439 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13440 (program_space::free_all_objfiles): Don't call clear_symtab_users
13441 here.
13442 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13443
65c574f6
PA
134442020-01-10 Pedro Alves <palves@redhat.com>
13445
13446 * NEWS: Mention multi-target debugging, "info connections", and
13447 "add-inferior -no-connection".
13448
2f4fcf00
PA
134492020-01-10 Pedro Alves <palves@redhat.com>
13450
13451 * infrun.c: Include "target-connection.h".
13452 (check_multi_target_resumption): New.
13453 (proceed): Call it.
13454 * target-connection.c (make_target_connection_string): Make
13455 extern.
13456 * target-connection.h (make_target_connection_string): Declare.
13457
121b3efd
PA
134582020-01-10 Pedro Alves <palves@redhat.com>
13459
13460 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13461 * inferior.c (uiout_field_connection): New function.
13462 (print_inferior): Add new "connection-id" column.
13463 (add_inferior_command): Show connection number/string of added
13464 inferior.
13465 * process-stratum-target.h
13466 (process_stratum_target::connection_string): New virtual method.
13467 (process_stratum_target::connection_number): New field.
13468 * remote.c (remote_target::connection_string): New override.
13469 * target-connection.c: New file.
13470 * target-connection.h: New file.
13471 * target.c (decref_target): Remove process_stratum targets from
13472 the connection list.
13473 (target_stack::push): Add process_stratum targets to the
13474 connection list.
13475
4f837581
PA
134762020-01-10 Pedro Alves <palves@redhat.com>
13477
13478 Revert:
13479 2016-04-12 Pedro Alves <palves@redhat.com>
13480 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13481 Remove references to name.
13482 * serial.h (struct serial) <name>: Delete.
13483
f4ec508e
PA
134842020-01-10 Pedro Alves <palves@redhat.com>
13485
13486 * gdbarch-selftests.c (register_to_value_test): Remove "target
13487 already pushed" check.
13488
5b6d1e4f
PA
134892020-01-10 Pedro Alves <palves@redhat.com>
13490 John Baldwin <jhb@FreeBSD.org>
13491
13492 * aarch64-linux-nat.c
13493 (aarch64_linux_nat_target::thread_architecture): Adjust.
13494 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13495 (task_command_1): Likewise.
13496 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13497 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13498 (aix_thread_target::store_registers)
13499 (aix_thread_target::thread_alive): Adjust.
13500 * amd64-fbsd-tdep.c: Include "inferior.h".
13501 (amd64fbsd_get_thread_local_address): Pass down target.
13502 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13503 thread's gdbarch instead of target_gdbarch.
13504 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13505 get_last_target_status.
13506 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13507 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13508 inferiors.
13509 (update_inserted_breakpoint_locations): Skip if inferiors with no
13510 execution.
13511 (update_global_location_list): When handling moribund locations,
13512 find representative inferior for location's pspace, and use thread
13513 count of its process_stratum target.
13514 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13515 * bsd-uthread.c (bsd_uthread_target::wait): Use
13516 as_process_stratum_target and adjust thread_change_ptid and
13517 add_thread calls.
13518 (bsd_uthread_target::update_thread_list): Use
13519 as_process_stratum_target and adjust find_thread_ptid,
13520 thread_change_ptid and add_thread calls.
13521 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13522 find_thread_ptid call.
13523 * corelow.c (add_to_thread_list): Adjust add_thread call.
13524 (core_target_open): Adjust add_thread_silent and thread_count
13525 calls.
13526 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13527 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13528 * event-top.c (async_disconnect): Pop targets from all inferiors.
13529 * exec.c (add_target_sections): Push exec target on all inferiors
13530 sharing the program space.
13531 (remove_target_sections): Remove the exec target from all
13532 inferiors sharing the program space.
13533 (exec_on_vfork): New.
13534 * exec.h (exec_on_vfork): Declare.
13535 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13536 Pass it down.
13537 (fbsd_nat_target::update_thread_list): Adjust.
13538 (fbsd_nat_target::resume): Adjust.
13539 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13540 down.
13541 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13542 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13543 get_thread_arch_regcache call.
13544 * fork-child.c (gdb_startup_inferior): Pass target down to
13545 startup_inferior and set_executing.
13546 * gdbthread.h (struct process_stratum_target): Forward declare.
13547 (add_thread, add_thread_silent, add_thread_with_info)
13548 (in_thread_list): Add process_stratum_target parameter.
13549 (find_thread_ptid(inferior*, ptid_t)): New overload.
13550 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13551 parameter.
13552 (all_threads()): Delete overload.
13553 (all_threads, all_non_exited_threads): Add process_stratum_target
13554 parameter.
13555 (all_threads_safe): Use brace initialization.
13556 (thread_count): Add process_stratum_target parameter.
13557 (set_resumed, set_running, set_stop_requested, set_executing)
13558 (threads_are_executing, finish_thread_state): Add
13559 process_stratum_target parameter.
13560 (switch_to_thread): Use is_current_thread.
13561 * i386-fbsd-tdep.c: Include "inferior.h".
13562 (i386fbsd_get_thread_local_address): Pass down target.
13563 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13564 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13565 have_inferiors check.
13566 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13567 (inf_ptrace_target::attach): Adjust.
13568 * infcall.c (run_inferior_call): Adjust.
13569 * infcmd.c (run_command_1): Pass target to
13570 scoped_finish_thread_state.
13571 (proceed_thread_callback): Skip inferiors with no execution.
13572 (continue_command): Rename 'all_threads' local to avoid hiding
13573 'all_threads' function. Adjust get_last_target_status call.
13574 (prepare_one_step): Adjust set_running call.
13575 (signal_command): Use user_visible_resume_target. Compare thread
13576 pointers instead of inferior_ptid.
13577 (info_program_command): Adjust to pass down target.
13578 (attach_command): Mark target's 'thread_executing' flag.
13579 (stop_current_target_threads_ns): New, factored out from ...
13580 (interrupt_target_1): ... this. Switch inferior before making
13581 target calls.
13582 * inferior-iter.h
13583 (struct all_inferiors_iterator, struct all_inferiors_range)
13584 (struct all_inferiors_safe_range)
13585 (struct all_non_exited_inferiors_range): Filter on
13586 process_stratum_target too. Remove explicit.
13587 * inferior.c (inferior::inferior): Push dummy target on target
13588 stack.
13589 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13590 Add process_stratum_target parameter, and pass it down.
13591 (have_live_inferiors): Adjust.
13592 (switch_to_inferior_and_push_target): New.
13593 (add_inferior_command, clone_inferior_command): Handle
13594 "-no-connection" parameter. Use
13595 switch_to_inferior_and_push_target.
13596 (_initialize_inferior): Mention "-no-connection" option in
13597 the help of "add-inferior" and "clone-inferior" commands.
13598 * inferior.h: Include "process-stratum-target.h".
13599 (interrupt_target_1): Use bool.
13600 (struct inferior) <push_target, unpush_target, target_is_pushed,
13601 find_target_beneath, top_target, process_target, target_at,
13602 m_stack>: New.
13603 (discard_all_inferiors): Delete.
13604 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13605 (all_inferiors, all_non_exited_inferiors): Add
13606 process_stratum_target parameter.
13607 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13608 (target_last_proc_target): New global.
13609 (follow_fork_inferior): Push target on new inferior. Pass target
13610 to add_thread_silent. Call exec_on_vfork. Handle target's
13611 reference count.
13612 (follow_fork): Adjust get_last_target_status call. Also consider
13613 target.
13614 (follow_exec): Push target on new inferior.
13615 (struct execution_control_state) <target>: New field.
13616 (user_visible_resume_target): New.
13617 (do_target_resume): Call target_async.
13618 (resume_1): Set target's threads_executing flag. Consider resume
13619 target.
13620 (commit_resume_all_targets): New.
13621 (proceed): Also consider resume target. Skip threads of inferiors
13622 with no execution. Commit resumtion in all targets.
13623 (start_remote): Pass current inferior to wait_for_inferior.
13624 (infrun_thread_stop_requested): Consider target as well. Pass
13625 thread_info pointer to clear_inline_frame_state instead of ptid.
13626 (infrun_thread_thread_exit): Consider target as well.
13627 (random_pending_event_thread): New inferior parameter. Use it.
13628 (do_target_wait): Rename to ...
13629 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13630 down.
13631 (threads_are_resumed_pending_p, do_target_wait): New.
13632 (prepare_for_detach): Adjust calls.
13633 (wait_for_inferior): New inferior parameter. Handle it. Use
13634 do_target_wait_1 instead of do_target_wait.
13635 (fetch_inferior_event): Adjust. Switch to representative
13636 inferior. Pass target down.
13637 (set_last_target_status): Add process_stratum_target parameter.
13638 Save target in global.
13639 (get_last_target_status): Add process_stratum_target parameter and
13640 handle it.
13641 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13642 (context_switch): Check inferior_ptid == null_ptid before calling
13643 inferior_thread().
13644 (get_inferior_stop_soon): Pass down target.
13645 (wait_one): Rename to ...
13646 (poll_one_curr_target): ... this.
13647 (struct wait_one_event): New.
13648 (wait_one): New.
13649 (stop_all_threads): Adjust.
13650 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13651 event's target.
13652 (switch_back_to_stepped_thread): Also consider target.
13653 (print_stop_event): Update.
13654 (normal_stop): Update. Also consider the resume target.
13655 * infrun.h (wait_for_inferior): Remove declaration.
13656 (user_visible_resume_target): New declaration.
13657 (get_last_target_status, set_last_target_status): New
13658 process_stratum_target parameter.
13659 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13660 process_stratum_target parameter, and use it.
13661 (clear_inline_frame_state (thread_info*)): New.
13662 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13663 process_stratum_target parameter.
13664 (clear_inline_frame_state (thread_info*)): Declare.
13665 * linux-fork.c (delete_checkpoint_command): Pass target down to
13666 find_thread_ptid.
13667 (checkpoint_command): Adjust.
13668 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13669 instead of just tweaking inferior_ptid.
13670 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13671 (exit_lwp): Pass target down to find_thread_ptid.
13672 (attach_proc_task_lwp_callback): Pass target down to
13673 add_thread/set_running/set_executing.
13674 (linux_nat_target::attach): Pass target down to
13675 thread_change_ptid.
13676 (get_detach_signal): Pass target down to find_thread_ptid.
13677 Consider last target status's target.
13678 (linux_resume_one_lwp_throw, resume_lwp)
13679 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13680 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13681 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13682 (linux_nat_target::async_wait_fd): New.
13683 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13684 target down.
13685 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13686 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13687 * linux-thread-db.c (struct thread_db_info::process_target): New
13688 field.
13689 (add_thread_db_info): Save target.
13690 (get_thread_db_info): New process_stratum_target parameter. Also
13691 match target.
13692 (delete_thread_db_info): New process_stratum_target parameter.
13693 Also match target.
13694 (thread_from_lwp): Adjust to pass down target.
13695 (thread_db_notice_clone): Pass down target.
13696 (check_thread_db_callback): Pass down target.
13697 (try_thread_db_load_1): Always push the thread_db target.
13698 (try_thread_db_load, record_thread): Pass target down.
13699 (thread_db_target::detach): Pass target down. Always unpush the
13700 thread_db target.
13701 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13702 target down. Always unpush the thread_db target.
13703 (find_new_threads_callback, thread_db_find_new_threads_2)
13704 (thread_db_target::update_thread_list): Pass target down.
13705 (thread_db_target::pid_to_str): Pass current inferior down.
13706 (thread_db_target::get_thread_local_address): Pass target down.
13707 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13708 target down.
13709 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13710 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13711 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13712 (procfs_init_inferior): Rename to ...
13713 (procfs_target::procfs_init_inferior): ... this and adjust.
13714 (procfs_target::create_inferior, procfs_notice_thread)
13715 (procfs_do_thread_registers): Adjust.
13716 * ppc-fbsd-tdep.c: Include "inferior.h".
13717 (ppcfbsd_get_thread_local_address): Pass down target.
13718 * proc-service.c (ps_xfer_memory): Switch current inferior and
13719 program space as well.
13720 (get_ps_regcache): Pass target down.
13721 * process-stratum-target.c
13722 (process_stratum_target::thread_address_space)
13723 (process_stratum_target::thread_architecture): Pass target down.
13724 * process-stratum-target.h
13725 (process_stratum_target::threads_executing): New field.
13726 (as_process_stratum_target): New.
13727 * ravenscar-thread.c
13728 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13729 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13730 down.
13731 * record-btrace.c (record_btrace_target::info_record): Adjust.
13732 (record_btrace_target::record_method)
13733 (record_btrace_target::record_is_replaying)
13734 (record_btrace_target::fetch_registers)
13735 (get_thread_current_frame_id, record_btrace_target::resume)
13736 (record_btrace_target::wait, record_btrace_target::stop): Pass
13737 target down.
13738 * record-full.c (record_full_wait_1): Switch to event thread.
13739 Pass target down.
13740 * regcache.c (regcache::regcache)
13741 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13742 process_stratum_target parameter and handle it.
13743 (current_thread_target): New global.
13744 (get_thread_regcache): Add process_stratum_target parameter and
13745 handle it. Switch inferior before calling target method.
13746 (get_thread_regcache): Pass target down.
13747 (get_thread_regcache_for_ptid): Pass target down.
13748 (registers_changed_ptid): Add process_stratum_target parameter and
13749 handle it.
13750 (registers_changed_thread, registers_changed): Pass target down.
13751 (test_get_thread_arch_aspace_regcache): New.
13752 (current_regcache_test): Define a couple local test_target_ops
13753 instances and use them for testing.
13754 (readwrite_regcache): Pass process_stratum_target parameter.
13755 (cooked_read_test, cooked_write_test): Pass mock_target down.
13756 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13757 (get_thread_arch_aspace_regcache): Add process_stratum_target
13758 parameter.
13759 (regcache::target): New method.
13760 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13761 (regcache::registers_changed_ptid): Add process_stratum_target
13762 parameter.
13763 (regcache::m_target): New field.
13764 (registers_changed_ptid): Add process_stratum_target parameter.
13765 * remote.c (remote_state::supports_vCont_probed): New field.
13766 (remote_target::async_wait_fd): New method.
13767 (remote_unpush_and_throw): Add remote_target parameter.
13768 (get_current_remote_target): Adjust.
13769 (remote_target::remote_add_inferior): Push target.
13770 (remote_target::remote_add_thread)
13771 (remote_target::remote_notice_new_inferior)
13772 (get_remote_thread_info): Pass target down.
13773 (remote_target::update_thread_list): Skip threads of inferiors
13774 bound to other targets. (remote_target::close): Don't discard
13775 inferiors. (remote_target::add_current_inferior_and_thread)
13776 (remote_target::process_initial_stop_replies)
13777 (remote_target::start_remote)
13778 (remote_target::remote_serial_quit_handler): Pass down target.
13779 (remote_target::remote_unpush_target): New remote_target
13780 parameter. Unpush the target from all inferiors.
13781 (remote_target::remote_unpush_and_throw): New remote_target
13782 parameter. Pass it down.
13783 (remote_target::open_1): Check whether the current inferior has
13784 execution instead of checking whether any inferior is live. Pass
13785 target down.
13786 (remote_target::remote_detach_1): Pass down target. Use
13787 remote_unpush_target.
13788 (extended_remote_target::attach): Pass down target.
13789 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13790 (remote_target::append_resumption): Pass down target.
13791 (remote_target::append_pending_thread_resumptions)
13792 (remote_target::remote_resume_with_hc, remote_target::resume)
13793 (remote_target::commit_resume): Pass down target.
13794 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13795 (remote_target::interrupt_query)
13796 (remote_target::remove_new_fork_children)
13797 (remote_target::check_pending_events_prevent_wildcard_vcont)
13798 (remote_target::remote_parse_stop_reply)
13799 (remote_target::process_stop_reply): Pass down target.
13800 (first_remote_resumed_thread): New remote_target parameter. Pass
13801 it down.
13802 (remote_target::wait_as): Pass down target.
13803 (unpush_and_perror): New remote_target parameter. Pass it down.
13804 (remote_target::readchar, remote_target::remote_serial_write)
13805 (remote_target::getpkt_or_notif_sane_1)
13806 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13807 down target.
13808 (remote_target::mourn_inferior): Pass down target. Use
13809 remote_unpush_target.
13810 (remote_target::core_of_thread)
13811 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13812 (remote_target::pid_to_exec_file)
13813 (remote_target::thread_handle_to_thread_info): Pass down target.
13814 (remote_target::async_wait_fd): New.
13815 * riscv-fbsd-tdep.c: Include "inferior.h".
13816 (riscv_fbsd_get_thread_local_address): Pass down target.
13817 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13818 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13819 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13820 Adjust.
13821 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13822 * solib-svr4.c (enable_break): Pass down target.
13823 * spu-multiarch.c (parse_spufs_run): Pass down target.
13824 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13825 * target-delegates.c: Regenerate.
13826 * target.c (g_target_stack): Delete.
13827 (current_top_target): Return the current inferior's top target.
13828 (target_has_execution_1): Refer to the passed-in inferior's top
13829 target.
13830 (target_supports_terminal_ours): Check whether the initial
13831 inferior was already created.
13832 (decref_target): New.
13833 (target_stack::push): Incref/decref the target.
13834 (push_target, push_target, unpush_target): Adjust.
13835 (target_stack::unpush): Defref target.
13836 (target_is_pushed): Return bool. Adjust to refer to the current
13837 inferior's target stack.
13838 (dispose_inferior): Delete, and inline parts ...
13839 (target_preopen): ... here. Only dispose of the current inferior.
13840 (target_detach): Hold strong target reference while detaching.
13841 Pass target down.
13842 (target_thread_name): Add assertion.
13843 (target_resume): Pass down target.
13844 (target_ops::beneath, find_target_at): Adjust to refer to the
13845 current inferior's target stack.
13846 (get_dummy_target): New.
13847 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13848 has a thread running.
13849 (initialize_targets): Rename to ...
13850 (_initialize_target): ... this.
13851 * target.h: Include "gdbsupport/refcounted-object.h".
13852 (struct target_ops): Inherit refcounted_object.
13853 (target_ops::shortname, target_ops::longname): Make const.
13854 (target_ops::async_wait_fd): New method.
13855 (decref_target): Declare.
13856 (struct target_ops_ref_policy): New.
13857 (target_ops_ref): New typedef.
13858 (get_dummy_target): Declare function.
13859 (target_is_pushed): Return bool.
13860 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
13861 (all_matching_threads_iterator::all_matching_threads_iterator):
13862 Handle filter target.
13863 * thread-iter.h (struct all_matching_threads_iterator, struct
13864 all_matching_threads_range, class all_non_exited_threads_range):
13865 Filter by target too. Remove explicit.
13866 * thread.c (threads_executing): Delete.
13867 (inferior_thread): Pass down current inferior.
13868 (clear_thread_inferior_resources): Pass down thread pointer
13869 instead of ptid_t.
13870 (add_thread_silent, add_thread_with_info, add_thread): Add
13871 process_stratum_target parameter. Use it for thread and inferior
13872 searches.
13873 (is_current_thread): New.
13874 (thread_info::deletable): Use it.
13875 (find_thread_ptid, thread_count, in_thread_list)
13876 (thread_change_ptid, set_resumed, set_running): New
13877 process_stratum_target parameter. Pass it down.
13878 (set_executing): New process_stratum_target parameter. Pass it
13879 down. Adjust reference to 'threads_executing'.
13880 (threads_are_executing): New process_stratum_target parameter.
13881 Adjust reference to 'threads_executing'.
13882 (set_stop_requested, finish_thread_state): New
13883 process_stratum_target parameter. Pass it down.
13884 (switch_to_thread): Also match inferior.
13885 (switch_to_thread): New process_stratum_target parameter. Pass it
13886 down.
13887 (update_threads_executing): Reimplement.
13888 * top.c (quit_force): Pop targets from all inferior.
13889 (gdb_init): Don't call initialize_targets.
13890 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13891 Declare.
13892 (windows_add_thread, windows_delete_thread): Adjust.
13893 (get_windows_debug_event): Rename to ...
13894 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13895 * tracefile-tfile.c (tfile_target_open): Pass down target.
13896 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13897 Forward declare.
13898 (switch_to_thread): Add process_stratum_target parameter.
13899 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13900 parameter. Use it.
13901 (mi_on_resume): Pass target down.
13902 * nat/fork-inferior.c (startup_inferior): Add
13903 process_stratum_target parameter. Pass it down.
13904 * nat/fork-inferior.h (startup_inferior): Add
13905 process_stratum_target parameter.
13906 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13907
75c6c844
PA
139082020-01-10 Pedro Alves <palves@redhat.com>
13909
13910 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13911 directly. Instead find the first thread in the thread list and
13912 use switch_to_thread.
13913
78f2c40a
PA
139142020-01-10 Pedro Alves <palves@redhat.com>
13915
13916 * remote.c (remote_target::remote_add_inferior): Don't bind a
13917 process to the current inferior if the current inferior is already
13918 bound to a process.
13919
e7af6c70
TBA
139202020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13921 Pedro Alves <palves@redhat.com>
13922
13923 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13924 If no process is specified, return null_ptid instead of
13925 inferior_ptid.
13926 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13927 TARGET_WAITKIND_SIGNALLED with no pid.
13928
31ba933e
PA
139292020-01-10 Pedro Alves <palves@redhat.com>
13930
13931 * remote.c (first_remote_resumed_thread): New.
13932 (remote_target::wait_as): Use it as default event_ptid instead of
13933 inferior_ptid.
13934
735fc2ca
PA
139352020-01-10 Pedro Alves <palves@redhat.com>
13936
13937 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13938
c17e02e1
PA
139392020-01-10 Pedro Alves <palves@redhat.com>
13940
13941 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13942 not -1.
13943
ab1ddbcf
PA
139442020-01-10 Pedro Alves <palves@redhat.com>
13945
13946 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13947 ptid to get_last_target_status.
13948 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13949 ptid to get_last_target_status.
13950 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13951 get_last_target_status.
13952 (info_program_command): Don't pass a target_waitstatus to
13953 get_last_target_status.
13954 * infrun.c (init_wait_for_inferior): Use
13955 nullify_last_target_wait_ptid.
13956 (get_last_target_status): Handle nullptr arguments.
13957 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13958 (print_stop_event): Don't pass a ptid to get_last_target_status.
13959 (normal_stop): Don't pass a ptid to get_last_target_status.
13960 * infrun.h (get_last_target_status, set_last_target_status): Move
13961 comments here and update.
13962 (nullify_last_target_wait_ptid): Declare.
13963 * linux-fork.c (fork_load_infrun_state): Remove local extern
13964 declaration of nullify_last_target_wait_ptid.
13965 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13966 to get_last_target_status.
13967
f3f8ece4
PA
139682020-01-10 Pedro Alves <palves@redhat.com>
13969
13970 * gdbthread.h (scoped_restore_current_thread)
13971 <dont_restore, restore, m_dont_restore>: Declare.
13972 * thread.c (thread_alive): Add assertion. Return bool.
13973 (switch_to_thread_if_alive): New.
13974 (prune_threads): Switch inferior/thread.
13975 (print_thread_info_1): Switch thread before calling target methods.
13976 (scoped_restore_current_thread::restore): New, factored out from
13977 ...
13978 (scoped_restore_current_thread::~scoped_restore_current_thread):
13979 ... this.
13980 (scoped_restore_current_thread::scoped_restore_current_thread):
13981 Add assertion.
13982 (thread_apply_all_command, thread_select): Use
13983 switch_to_thread_if_alive.
13984 * infrun.c (proceed, restart_threads, handle_signal_stop)
13985 (switch_back_to_stepped_thread): Switch current thread before
13986 calling target methods.
13987
db2d40f7
PA
139882020-01-10 Pedro Alves <palves@redhat.com>
13989
13990 * inferior.c (switch_to_inferior_no_thread): New function,
13991 factored out from ...
13992 (inferior_command): ... here.
13993 * inferior.h (switch_to_inferior_no_thread): Declare.
13994 * mi/mi-main.c (run_one_inferior): Use
13995 switch_to_inferior_no_thread.
13996
bd420a2d
PA
139972020-01-10 Pedro Alves <palves@redhat.com>
13998
13999 * infcmd.c (kill_command): Remove dead code.
14000
ddf5db90
PA
140012020-01-10 Pedro Alves <palves@redhat.com>
14002
14003 * remote.c (remote_target::mourn_inferior): No longer check
14004 whether the target is running.
14005
5018ce90
PA
140062020-01-10 Pedro Alves <palves@redhat.com>
14007
14008 * corelow.c (core_target::has_execution): Change parameter type to
14009 inferior pointer.
14010 * inferior.c (number_of_live_inferiors): Use
14011 inferior::has_execution instead of target_has_execution_1.
14012 * inferior.h (inferior::has_execution): New.
14013 * linux-thread-db.c (thread_db_target::update_thread_list): Use
14014 inferior::has_execution instead of target_has_execution_1.
14015 * process-stratum-target.c
14016 (process_stratum_target::has_execution): Change parameter type to
14017 inferior pointer. Check the inferior's PID instead of
14018 inferior_ptid.
14019 * process-stratum-target.h
14020 (process_stratum_target::has_execution): Change parameter type to
14021 inferior pointer.
14022 * record-full.c (record_full_core_target::has_execution): Change
14023 parameter type to inferior pointer.
14024 * target.c (target_has_execution_1): Change parameter type to
14025 inferior pointer.
14026 (target_has_execution_current): Adjust.
14027 * target.h (target_ops::has_execution): Change parameter type to
14028 inferior pointer.
14029 (target_has_execution_1): Change parameter type to inferior
14030 pointer. Change return type to bool.
14031 * tracefile.h (tracefile_target::has_execution): Change parameter
14032 type to inferior pointer.
14033
74375d18
PA
140342020-01-10 Pedro Alves <palves@redhat.com>
14035
14036 * exceptions.c (print_flush): Remove current_top_target() check.
14037
acdf84a6
PA
140382020-01-10 Pedro Alves <palves@redhat.com>
14039
14040 * remote.c (show_remote_exec_file): Show the current inferior's
14041 exec-file instead of the command variable's value.
14042
ec506636
PA
140432020-01-10 Pedro Alves <palves@redhat.com>
14044
14045 * record-full.c (record_full_resume_ptid): New global.
14046 (record_full_target::resume): Set it.
14047 (record_full_wait_1): Use record_full_resume_ptid instead of
14048 inferior_ptid.
14049
873657b9
PA
140502020-01-10 Pedro Alves <palves@redhat.com>
14051
14052 * gdbthread.h (scoped_restore_current_thread)
14053 <dont_restore, restore, m_dont_restore>: Declare.
14054 * thread.c (thread_alive): Add assertion. Return bool.
14055 (switch_to_thread_if_alive): New.
14056 (prune_threads): Switch inferior/thread.
14057 (print_thread_info_1): Switch thread before calling target methods.
14058 (scoped_restore_current_thread::restore): New, factored out from
14059 ...
14060 (scoped_restore_current_thread::~scoped_restore_current_thread):
14061 ... this.
14062 (scoped_restore_current_thread::scoped_restore_current_thread):
14063 Add assertion.
14064 (thread_apply_all_command, thread_select): Use
14065 switch_to_thread_if_alive.
14066
7f0ae84c
GB
140672020-01-10 George Barrett <bob@bob131.so>
14068
14069 * stap-probe.c (stap_modify_semaphore): Don't check for null
14070 semaphores.
14071 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
14072 for null semaphores.
14073
f5a7c406
AB
140742020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14075
14076 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
14077 all source windows, and maintain horizontal scroll status while
14078 doing so.
14079
9ae6bf64
TT
140802020-01-09 Tom Tromey <tom@tromey.com>
14081
14082 PR tui/18932:
14083 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
14084 update_source_window, not print_source_lines.
14085
b2efe70c
AB
140862020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14087
14088 * tui/tui.c (tui_enable): Register tui hooks after calling
14089 tui_display_main.
14090
5f23a082
CB
140912020-01-09 Christian Biesinger <cbiesinger@google.com>
14092
14093 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
14094
3061113b
SM
140952020-01-08 Simon Marchi <simon.marchi@efficios.com>
14096
14097 * thread.c (print_thread_info_1): Fix indentation.
14098
57d75002
CB
140992020-01-09 Christian Biesinger <cbiesinger@google.com>
14100
14101 * symtab.c (general_symbol_info::compute_and_set_names): Move the
14102 unique_xmalloc_ptr outside the if to always free the demangled name.
14103
6a053cb1
TT
141042020-01-08 Tom Tromey <tromey@adacore.com>
14105
14106 * xcoffread.c (enter_line_range, read_xcoff_symtab)
14107 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
14108 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
14109 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
14110 Remove.
14111 (section_offsets): New typedef.
14112 * symtab.c (fixup_section, get_msymbol_address): Update.
14113 * symmisc.c (dump_msymbols): Update.
14114 * symfile.h (relative_addr_info_to_section_offsets)
14115 (symfile_map_offsets_to_segments): Update.
14116 * symfile.c (build_section_addr_info_from_objfile)
14117 (init_objfile_sect_indices): Update.
14118 (struct place_section_arg): Change type of "offsets".
14119 (place_section): Update.
14120 (relative_addr_info_to_section_offsets): Change type of
14121 "section_offsets". Remove "num_sections" parameter.
14122 (default_symfile_offsets, syms_from_objfile_1)
14123 (set_objfile_default_section_offset): Update.
14124 (reread_symbols): No need to preserve section offsets by hand.
14125 (symfile_map_offsets_to_segments): Change type of "offsets".
14126 * stap-probe.c (relocate_address): Update.
14127 * stabsread.h (process_one_symbol): Update.
14128 * solib-target.c (struct lm_info_target) <offsets>: Change type.
14129 (solib_target_relocate_section_addresses): Update.
14130 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
14131 Update.
14132 * solib-frv.c (frv_relocate_main_executable): Update.
14133 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
14134 * solib-aix.c (solib_aix_get_section_offsets): Change return
14135 type.
14136 (solib_aix_solib_create_inferior_hook): Update.
14137 * remote.c (remote_target::get_offsets): Update.
14138 * psymtab.c (find_pc_sect_psymtab): Update.
14139 * psympriv.h (struct partial_symbol) <address, text_low,
14140 text_high>: Update.
14141 * objfiles.h (obj_section_offset): Update.
14142 (struct objfile) <section_offsets>: Change type.
14143 <num_sections>: Remove.
14144 (objfile_relocate): Update.
14145 * objfiles.c (entry_point_address_query): Update
14146 (relocate_one_symbol): Change type of "section_offsets".
14147 (objfile_relocate1, objfile_relocate1): Change type of
14148 "new_offsets".
14149 (objfile_rebase1): Update.
14150 * mipsread.c (mipscoff_symfile_read): Update.
14151 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
14152 parameter.
14153 * mdebugread.c (parse_symbol): Change type of "section_offsets".
14154 (parse_external, psymtab_to_symtab_1): Update.
14155 * machoread.c (macho_symfile_offsets): Update.
14156 * ia64-tdep.c (ia64_find_unwind_table): Update.
14157 * hppa-tdep.c (read_unwind_info): Update.
14158 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
14159 * dwarf2read.c (create_addrmap_from_index)
14160 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14161 (process_psymtab_comp_unit_reader, add_partial_symbol)
14162 (add_partial_subprogram, process_full_comp_unit)
14163 (read_file_scope, read_func_scope, read_lexical_block_scope)
14164 (read_call_site_scope, dwarf2_rnglists_process)
14165 (dwarf2_ranges_process, dwarf2_ranges_read)
14166 (dwarf_decode_lines_1, var_decode_location, new_symbol)
14167 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
14168 Update.
14169 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14170 Update.
14171 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14172 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14173 (process_one_symbol): Change type of "section_offsets".
14174 * ctfread.c (get_objfile_text_range): Update.
14175 * coffread.c (coff_symtab_read, enter_linenos)
14176 (process_coff_symbol): Update.
14177 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14178 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14179
456e800a
TT
141802020-01-08 Tom Tromey <tromey@adacore.com>
14181
14182 * dwarf2read.c (parse_macro_definition): Use std::string.
14183 (parse_macro_definition): Likewise.
14184
6dfa2fc2
TT
141852020-01-08 Tom Tromey <tromey@adacore.com>
14186
14187 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14188 (ATTR_ALLOC_CHUNK): Remove.
14189
421d1616
TT
141902020-01-08 Tom Tromey <tromey@adacore.com>
14191
14192 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14193
43816ebc
TT
141942020-01-08 Tom Tromey <tromey@adacore.com>
14195
14196 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14197 (dwarf2_compute_name, open_dwo_file): Likewise.
14198 (process_enumeration_scope): Use std::vector.
14199 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14200 (partial_die_info::fixup, dwarf2_start_subfile)
14201 (guess_full_die_structure_name, dwarf2_name): Likewise.
14202 (determine_prefix): Update.
14203 (guess_full_die_structure_name): Make return type const.
14204 (partial_die_full_name): Return unique_xmalloc_ptr.
14205 (DW_FIELD_ALLOC_CHUNK): Remove.
14206
4212d509
TT
142072020-01-07 Tom Tromey <tromey@adacore.com>
14208
14209 PR build/24937:
14210 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14211
06a6207a
JT
142122020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14213
14214 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14215
153d79c4
AB
142162020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14217
14218 * stack.c (print_frame_info): Move disassemble_next_line code
14219 inside source_print block.
14220
66182876
EZ
142212020-01-06 Eli Zaretskii <eliz@gnu.org>
14222
14223 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14224 gdb/signals.h, as we are now using native signal symbols.
14225
cbfa8581
SV
142262020-01-06 Shahab Vahedi <shahab@synopsys.com>
14227
14228 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14229 overflow by an early check of content vs threshold.
aac66a4c 14230 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
14231 Likewise.
14232
3f602821
EZ
142332020-01-06 Eli Zaretskii <eliz@gnu.org>
14234
14235 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14236
a08c904d
JT
142372020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14238
14239 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14240 export table if no section contains it's RVA.
14241
89a65580
EZ
142422020-01-06 Eli Zaretskii <eliz@gnu.org>
14243
14244 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14245
8b7fcda2
HD
142462020-01-06 Hannes Domani <ssbssa@yahoo.de>
14247
14248 * source.c (print_source_lines_base): Set last_line_listed.
14249
a61b4f69
SV
142502020-01-06 Shahab Vahedi <shahab@synopsys.com>
14251
14252 * tui/tui-disasm.c: Remove trailing spaces.
14253
559e7e50
EZ
142542020-01-06 Eli Zaretskii <eliz@gnu.org>
14255 Pedro Alves <palves@redhat.com>
14256
14257 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14258 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14259 (windows_gdb_signal_to_target): New function, uses the above
14260 enumeration to convert GDB internal signal codes to equivalent
14261 Windows codes.
14262 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14263 * windows-nat.c: Include "gdb_wait.h".
14264 (get_windows_debug_event): Extract the fatal exception from the
14265 exit status and convert to the equivalent Posix signal number.
14266 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14267 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14268 * gdbsupport/gdb_wait.c: New file, implements
14269 windows_status_to_termsig.
14270 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14271 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14272
f2302a34
AB
142732020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14274
14275 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14276 show_layout.
14277
6a5206eb
LM
142782020-01-05 Luis Machado <luis.machado@linaro.org>
14279
14280 * aarch64-linux-nat.c
14281 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14282 and bfd_mach_aarch64.
14283
6ec1d75e
PW
142842020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14285
14286 * ui-file.c (stdio_file::can_emit_style_escape)
14287 (tee_file::can_emit_style_escape): Ensure style is used also on
14288 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14289 to gdb_stdout.
14290 * main.c (set_gdb_data_directory): Use file style to output the
14291 warning that the given pathname is not a directory.
14292 * top.c (show_history_filename, gdb_safe_append_history)
14293 (show_gdb_datadir): Use file style.
14294
44f81a76
HD
142952020-01-03 Hannes Domani <ssbssa@yahoo.de>
14296
14297 * solib-target.c (struct lm_info_target):
14298 Change offsets to be a unique_xmalloc_ptr.
14299 (solib_target_relocate_section_addresses): Update.
14300
25057eb0
HD
143012020-01-03 Hannes Domani <ssbssa@yahoo.de>
14302
14303 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14304
6e2118f5
BE
143052020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14306
14307 * MAINTAINERS (Write After Approval): Add myself.
14308
8133c7dc
LM
143092020-01-02 Luis Machado <luis.machado@linaro.org>
14310
14311 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14312 Cell BE architecture.
14313 * target.h (struct target_ops) <thread_architecture>: Likewise.
14314
48189bec
HD
143152020-01-01 Hannes Domani <ssbssa@yahoo.de>
14316
14317 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14318
ead1063b
HD
143192020-01-01 Hannes Domani <ssbssa@yahoo.de>
14320
14321 * MAINTAINERS (Write After Approval): Add myself.
14322
e5d78223
JB
143232020-01-01 Joel Brobecker <brobecker@adacore.com>
14324
14325 * gdbarch.sh: Update copyright year range of generated files.
14326
b811d2c2
JB
143272020-01-01 Joel Brobecker <brobecker@adacore.com>
14328
14329 Update copyright year range in all GDB files.
14330
5f4def5c
JB
143312020-01-01 Joel Brobecker <brobecker@adacore.com>
14332
14333 * copyright.py: Convert to Python 3.
14334
51fd4002
JB
143352020-01-01 Joel Brobecker <brobecker@adacore.com>
14336
14337 * copyright.py: Adapt after move of gnulib directory from gdb
14338 directory to toplevel directory.
14339
5fb651f2
JB
143402020-01-01 Joel Brobecker <brobecker@adacore.com>
14341
14342 * copyright.py (main): Exit if run from the wrong directory.
14343
5dd8bf88
JB
143442020-01-01 Joel Brobecker <brobecker@adacore.com>
14345
14346 * top.c (print_gdb_version): Change copyright year to 2020.
14347
9f71dacb 143482020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 14349
9f71dacb 14350 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 14351
9f71dacb 14352For older changes see ChangeLog-2019.
c906108c
SS
14353\f
14354Local Variables:
14355mode: change-log
14356left-margin: 8
14357fill-column: 74
14358version-control: never
57da7796 14359coding: utf-8
c906108c 14360End:
This page took 3.171685 seconds and 4 git commands to generate.