]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Automatic date update in version.in
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
bd356ec6
SM
12020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * ser-base.c: Adjust comments formatting.
4
2c72d5e5
TT
52020-09-27 Tom Tromey <tom@tromey.com>
6
7 PR tui/25342:
8 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
9
35a98237
TT
102020-09-27 Tom Tromey <tom@tromey.com>
11
12 PR tui/25342:
13 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
14
9e820dec
TT
152020-09-27 Tom Tromey <tom@tromey.com>
16
17 * unittests/tui-selftests.c: Update.
18 * tui/tui-winsource.h (struct tui_source_window_base)
19 <extra_margin, show_line_number, refresh_pad>: New methods.
20 <m_max_length, m_pad>: New members.
21 (tui_copy_source_line): Update.
22 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
23 first_col, line_width, ndigits parameters. Add length.
24 (tui_source_window_base::show_source_line): Write to pad. Line
25 number now 0-based.
26 (tui_source_window_base::refresh_pad): New method.
27 (tui_source_window_base::show_source_content): Write to pad. Call
28 refresh_pad.
29 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
30 not refill.
31 (tui_source_window_base::update_exec_info): Call
32 show_line_number.
33 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
34 method.
35 <m_digits>: New member.
36 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
37 and m_max_length.
38 (tui_source_window::show_line_number): New method.
39 * tui/tui-io.h (tui_puts): Fix comment.
40 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
41 m_max_length.
42
c15c15c8
TT
432020-09-27 Tom Tromey <tom@tromey.com>
44
45 * tui/tui-winsource.c
46 (tui_source_window_base::set_is_exec_point_at): Don't call
47 show_source_line.
48
149830c1
TT
492020-09-27 Tom Tromey <tom@tromey.com>
50
51 * python/py-tui.c (class tui_py_window) <refresh_window>: New
52 method.
53 <erase>: Update.
54 <cursor_x, cursor_y>: Remove.
55 <m_inner_window>: New member.
56 (tui_py_window::rerender): Create inner window.
57 (tui_py_window::output): Write to inner window.
58
8f9929bb
GR
592020-09-26 Gareth Rees <grees@undo.io> (tiny change)
60
61 PR python/26586
62 * cli/cli-script.c (execute_control_commands): don't set
63 instream to nullptr here as this breaks the from_tty argument
64 to gdb.execute in Python.
65 (execute_user_command): set instream to nullptr here instead.
66
956bdb59
SM
672020-09-25 Simon Marchi <simon.marchi@efficios.com>
68
69 * infrun.h (infrun_debug_printf): Fix formatting.
70 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
71
3b93626b
SJ
722020-09-25 Saagar Jha <saagar@saagarjha.com>
73
74 * compile/compile-object-load.h (struct munmap_list): Add
75 explicitly-defined move constructor.
76
b551a89f
TT
772020-09-24 Tom Tromey <tromey@adacore.com>
78
79 PR tui/26638:
80 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
81 method.
82 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
83 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
84 (tui_prev_win): Rewrite.
85
99bb393f
HD
862020-09-23 Hannes Domani <ssbssa@yahoo.de>
87
88 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
89 in WOW64 processes as SIGINT.
90 * nat/windows-nat.h: Make wow64_process a shared variable.
91 * windows-nat.c: Remove static wow64_process variable.
92
20a5fcbd
TT
932020-09-23 Tom Tromey <tom@tromey.com>
94
95 PR symtab/25470:
96 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
97 offset and bit size.
98 * printcmd.c (print_scalar_formatted): Handle zero-length
99 integer.
100 (print_scalar_formatted): Use bit_size_differs_p.
101 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
102 constant.
103 (union type_specific): <int_stuff>: New member.
104 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
105 methods.
106 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
107 TYPE_SPECIFIC_FIELD.
108 (recursive_dump_type, copy_type_recursive): Update.
109 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
110 DW_AT_data_bit_offset.
111
bac51ab7
TT
1122020-09-23 Tom Tromey <tom@tromey.com>
113
114 * utils.h (class gdb_argv): Add move operators.
115 <append>: New methods.
116 * compile/compile.c (build_argc_argv): Remove.
117 (compile_args_argc): Remove.
118 (compile_args_argv): Change type.
119 (set_compile_args): Simplify.
120 (append_args): Remove.
121 (filter_args): Remove argcp parameter.
122 (get_args): Return gdb_argv. Simplify.
123 (compile_to_object): Update.
124
92677124
TT
1252020-09-23 Tom Tromey <tom@tromey.com>
126
127 * compile/compile-object-run.c (do_module_cleanup)
128 <~do_module_cleanup> :Remove.
129 (do_module_cleanup): Update.
130 * compile/compile-object-load.h (struct munmap_list): Add move
131 assignment operator.
132 <source_file>: Now a std::string.
133 <munmap_list>: Rename. No longer a pointer.
134 * compile/compile-object-load.c (struct setup_sections_data): Add
135 constructor.
136 <setup_one_section>: Declare.
137 <munmap_list>: Move earlier.
138 <m_bfd>: New member.
139 <m_last_size, m_last_section_first, m_last_prot,
140 m_last_max_alignment>: Rename, add initializers where needed.
141 (setup_sections_data::setup_one_section): Rename from
142 setup_sections. Update.
143 (compile_object_load): Update. Don't use bfd_map_over_sections.
144
e616f60a
TT
1452020-09-23 Tom Tromey <tom@tromey.com>
146
147 * compile/compile-object-run.c (struct do_module_cleanup): Add
148 parameters to constructor. Update destructor.
149 <source_file, scope, scope_data, out_value_type, out_value_addr,
150 munmap_list_head, objfile_name_string>: Remove.
151 <module>: New member.
152 (do_module_cleanup): Update.
153 (compile_object_run): Update.
154
e947a848
TT
1552020-09-23 Tom Tromey <tom@tromey.com>
156
157 * compile/compile.c (eval_compile_command): Update.
158 * compile/compile-object-run.h (compile_object_run): Take a
159 compile_module_up.
160 * compile/compile-object-run.c (compile_object_run): Take a
161 compile_module_up.
162 * compile/compile-object-load.h (struct compile_module): Add
163 constructor, destructor.
164 (compile_module_up): New typedef.
165 (compile_object_load): Return compile_object_up.
166 * compile/compile-object-load.c (compile_object_load): Return
167 compile_module_up.
168
0dbf6ee6
TT
1692020-09-23 Tom Tromey <tom@tromey.com>
170
171 * compile/compile-object-run.c (struct do_module_cleanup): Add
172 constructor, destructor.
173 <objfile_name_string>: Don't use struct hack.
174 (do_module_cleanup): Use delete.
175 (compile_object_run): Use new.
176
ebe824f5
TT
1772020-09-23 Tom Tromey <tom@tromey.com>
178
179 * compile/compile-cplus-types.c
180 (compile_cplus_convert_struct_or_union): Use std::vector.
181 (compile_cplus_convert_func): Likewise.
182 * compile/compile-c-types.c (convert_func): Use std::vector.
183
5dd918d9
TT
1842020-09-21 Tom Tromey <tromey@adacore.com>
185
186 * sparc-tdep.c (sparc32_skip_prologue): Use
187 skip_prologue_using_sal.
188
5486c517
TT
1892020-09-19 Tom Tromey <tom@tromey.com>
190
191 * symfile.c (add_section_size_callback): Remove.
192 (load_one_section): Rename from load_section_callback. Change
193 parameters.
194 (generic_load): Use foreach.
195
8a6bb1d1
TT
1962020-09-19 Tom Tromey <tom@tromey.com>
197
198 * exec.c (add_to_section_table): Remove.
199 (build_section_table): Use foreach.
200
08f93a1a
TT
2012020-09-19 Tom Tromey <tom@tromey.com>
202
203 * elfread.c (elf_locate_sections): Change parameters.
204 (elf_symfile_read): Use foreach.
205
03cd72b8
TT
2062020-09-19 Tom Tromey <tom@tromey.com>
207
208 * cli/cli-dump.c (struct callback_data): Remove.
209 (restore_one_section): Rename from restore_section_callback.
210 Change parameters.
211 (restore_binary_file): Change parameters.
212 (restore_command): Use foreach.
213
f4f2b85f
TT
2142020-09-19 Tom Tromey <tom@tromey.com>
215
216 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
217 (gcore_copy_callback): Likewise.
218 (gcore_memory_sections): Use foreach.
219
b35c1d1c
TT
2202020-09-19 Tom Tromey <tom@tromey.com>
221
222 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
223 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
224 parameters.
225 (generic_elf_osabi_sniffer): Use foreach.
226 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
227 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
228
5bb6e9dd
TT
2292020-09-19 Tom Tromey <tom@tromey.com>
230
231 * dwarf2/read.c (locate_dwz_sections): Change parameters.
232 (dwarf2_get_dwz_file): Use foreach.
233 (dwarf2_locate_dwo_sections): Change parameters.
234 (open_and_init_dwo_file): Use foreach.
235 (dwarf2_locate_common_dwp_sections): Change parameters.
236 (open_and_init_dwp_file): Use foreach.
237
ad7277da
TT
2382020-09-19 Tom Tromey <tom@tromey.com>
239
240 * symfile.h: (find_lowest_section): Don't declare.
241 * symfile.c (find_lowest_section): Now static. Change
242 parameters.
243 (struct place_section_arg): Remove.
244 (place_section): Change parameters.
245 (addr_info_make_relative): Use foreach.
246 (symfile_dummy_outputs): Remove.
247 (default_symfile_relocate): Use foreach.
248
cb814f2e
TT
2492020-09-19 Tom Tromey <tom@tromey.com>
250
251 * objfiles.c (add_to_objfile_sections): Rename from
252 add_to_objfile_sections_full.
253 (add_to_objfile_sections): Remove.
254 (build_objfile_section_table): Use foreach.
255
3cabfd26
TT
2562020-09-19 Tom Tromey <tom@tromey.com>
257
258 * stap-probe.c (get_stap_base_address_1): Remove.
259 (get_stap_base_address): Use foreach.
260
1ce51eb5
TT
2612020-09-19 Tom Tromey <tom@tromey.com>
262
263 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
264 parameters.
265 (gdb_bfd_close_or_warn): Use foreach.
266
a190fabb
TT
2672020-09-19 Tom Tromey <tom@tromey.com>
268
269 * corelow.c (add_to_thread_list): Change parameters.
270 (core_target_open): Use foreach.
271
cafb0d81
TT
2722020-09-19 Tom Tromey <tom@tromey.com>
273
274 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
275 existing function.
276
c8d5abea
AB
2772020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
278
279 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
280 for arrays.
281
6d816919
AB
2822020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
283
284 * eval.c: Remove 'f-lang.h' include.
285 (value_f90_subarray): Moved to f-lang.c.
286 (eval_call): Renamed to...
287 (evaluate_subexp_do_call): ...this, is no longer static, header
288 comment moved into header file.
289 (evaluate_funcall): Update call to eval_call.
290 (skip_undetermined_arglist): Moved to f-lang.c.
291 (fortran_value_subarray): Likewise.
292 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
293 moved to evaluate_subexp_f.
294 (calc_f77_array_dims): Moved to f-lang.c
295 * expprint.c (print_subexp_funcall): New function.
296 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
297 moved to print_subexp_f, OP_FUNCALL uses new function.
298 (dump_subexp_body_funcall): New function.
299 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
300 moved to dump_subexp_f, OP_FUNCALL uses new function.
301 * expression.h (evaluate_subexp_do_call): Declare.
302 * f-lang.c (value_f90_subarray): Moved from eval.c.
303 (skip_undetermined_arglist): Likewise.
304 (calc_f77_array_dims): Likewise.
305 (fortran_value_subarray): Likewise.
306 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
307 (operator_length_f): Likewise.
308 (print_subexp_f): Likewise.
309 (dump_subexp_body_f): Likewise.
310 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
311 declaration of this operation to here.
312 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
313 support moved to operator_length_f.
314 * parser-defs.h (dump_subexp_body_funcall): Declare.
315 (print_subexp_funcall): Declare.
316 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
317 fortran-operator.def.
318
8c37706a
AB
3192020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
320
321 * eval.c (fortran_value_subarray): New function, content is taken
322 from...
323 (evaluate_subexp_standard): ...here, in two places. Now arrays
324 and strings both call the new function.
325 (calc_f77_array_dims): Add header comment, handle strings.
326
14f9473c
VC
3272020-09-18 Victor Collod <vcollod@nvidia.com>
328
329 PR gdb/26635
330 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
331 (i386_analyze_prologue): Call i386_skip_endbr.
332
b60cea74
TT
3332020-09-18 Tom Tromey <tromey@adacore.com>
334
335 * windows-nat.c (struct windows_nat_target) <wait>: Update.
336 (windows_nat_target::wait): Update.
337 * target/wait.h (enum target_wait_flag): New. Use
338 DEF_ENUM_FLAGS_TYPE.
339 * target/target.h (target_wait): Change type of options.
340 * target.h (target_options_to_string, default_target_wait):
341 Update.
342 (struct target_ops) <wait>: Change type of options.
343 * target.c (target_wait, default_target_wait, do_option): Change
344 type of "options".
345 (target_options_to_string): Likewise.
346 * target-delegates.c: Rebuild.
347 * target-debug.h (target_debug_print_target_wait_flags): Rename
348 from target_debug_print_options.
349 * sol-thread.c (class sol_thread_target) <wait>: Update.
350 (sol_thread_target::wait): Update.
351 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
352 (rs6000_nat_target::wait): Update.
353 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
354 Update.
355 (remote_target::wait_ns, remote_target::wait_as): Change type of
356 "options".
357 (remote_target::wait): Update.
358 * remote-sim.c (struct gdbsim_target) <wait>: Update.
359 (gdbsim_target::wait): Update.
360 * record-full.c (class record_full_base_target) <wait>: Update.
361 (record_full_wait_1): Change type of "options".
362 (record_full_base_target::wait): Update.
363 * record-btrace.c (class record_btrace_target) <wait>: Update.
364 (record_btrace_target::wait): Update.
365 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
366 Update.
367 (ravenscar_thread_target::wait): Update.
368 * procfs.c (class procfs_target) <wait>: Update.
369 (procfs_target::wait): Update.
370 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
371 * obsd-nat.c (obsd_nat_target::wait): Update.
372 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
373 (nto_procfs_target::wait): Update.
374 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
375 * nbsd-nat.c (nbsd_wait): Change type of "options".
376 (nbsd_nat_target::wait): Update.
377 * linux-thread-db.c (class thread_db_target) <wait>: Update.
378 (thread_db_target::wait): Update.
379 * linux-nat.h (class linux_nat_target) <wait>: Update.
380 * linux-nat.c (linux_nat_target::wait): Update.
381 (linux_nat_wait_1): Update.
382 * infrun.c (do_target_wait_1, do_target_wait): Change type of
383 "options".
384 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
385 * inf-ptrace.c (inf_ptrace_target::wait): Update.
386 * go32-nat.c (struct go32_nat_target) <wait>: Update.
387 (go32_nat_target::wait): Update.
388 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
389 * gnu-nat.c (gnu_nat_target::wait): Update.
390 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
391 * fbsd-nat.c (fbsd_nat_target::wait): Update.
392 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
393 * darwin-nat.c (darwin_nat_target::wait): Update.
394 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
395 (bsd_uthread_target::wait): Update.
396 * aix-thread.c (class aix_thread_target) <wait>: Update.
397 (aix_thread_target::wait): Update.
398
0295dde6
AB
3992020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
400
401 * compile/compile-object-run.c (create_copied_type_recursive): New
402 function.
403 (compile_object_run): Use new function.
404
d3483b43
JT
4052020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
406
407 * NEWS: Mention x86_64 Cygwin core file support.
408
e7d612ad
JT
4092020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
410
411 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
412 (core_process_module_section): Handle NOTE_INFO_MODULE64.
413
aff9d387
JT
4142020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
415
62a5151b
JT
416 * windows-tdep.h: Add prototypes.
417 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
418 (i386_windows_core_pid_to_str): Move and rename ...
419 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
420 (windows_core_pid_to_str): ... and here.
421 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
422
4232020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
424 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
425 (amd64_windows_init_abi_common): ... and register.
426
7d155da3
JT
4272020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
428
429 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
430 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
431
e8ef12b9
PA
4322020-09-18 Pedro Alves <pedro@palves.net>
433
434 PR gdb/26631
435 * thread.c (thread_find_command): Switch inferior before calling
436 target methods.
437
c1e1314d
TT
4382020-09-17 Tom Tromey <tromey@adacore.com>
439
440 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
441 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
442 (tdesc_arch_data_up): New typedef.
443 (tdesc_use_registers, tdesc_data_alloc): Update.
444 (tdesc_data_cleanup): Don't declare.
445 * target-descriptions.c (tdesc_data_alloc): Return a
446 tdesc_arch_data_up.
447 (tdesc_arch_data_deleter::operator()): Rename from
448 tdesc_data_cleanup. Change argument type.
449 (tdesc_use_registers): Change early_data to an rvalue reference.
450 (tdesc_use_registers): Don't use delete.
451 * sparc-tdep.c (sparc32_gdbarch_init): Update.
452 * s390-tdep.c (s390_gdbarch_init): Update.
453 * rx-tdep.c (rx_gdbarch_init): Update.
454 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
455 * riscv-tdep.c (riscv_gdbarch_init): Update.
456 * or1k-tdep.c (or1k_gdbarch_init): Update.
457 * nios2-tdep.c (nios2_gdbarch_init): Update.
458 * nds32-tdep.c (nds32_gdbarch_init): Update.
459 * mips-tdep.c (mips_gdbarch_init): Update.
460 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
461 * m68k-tdep.c (m68k_gdbarch_init): Update.
462 * i386-tdep.c (i386_gdbarch_init): Update.
463 * arm-tdep.c (arm_gdbarch_init): Update.
464 * arc-tdep.c (arc_tdesc_init): Update.
465 (arc_gdbarch_init): Update.
466 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
467
0363df3d
HD
4682020-09-17 Hannes Domani <ssbssa@yahoo.de>
469
470 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
471 for WOW64 processes.
472
280a9412
TT
4732020-09-17 Tom Tromey <tom@tromey.com>
474
475 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
476
6108fd18
TT
4772020-09-17 Tom Tromey <tom@tromey.com>
478
479 * value.c (preserve_values): Update.
480 * python/py-type.c (save_objfile_types): Update.
481 * guile/scm-type.c (save_objfile_types): Update.
482 * gdbtypes.h (create_copied_types_hash): Return htab_up.
483 * gdbtypes.c (create_copied_types_hash): Return htab_up.
484 * compile/compile-object-run.c (compile_object_run): Update.
485
fa9b1164
TT
4862020-09-17 Tom Tromey <tom@tromey.com>
487
488 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
489 Remove.
490 <m_table>: Now htab_up.
491 * typeprint.c (typedef_hash_table::recursively_update)
492 (typedef_hash_table::add_template_parameters)
493 (typedef_hash_table::typedef_hash_table): Update.
494 (typedef_hash_table::~typedef_hash_table): Remove.
495 (typedef_hash_table::typedef_hash_table)
496 (typedef_hash_table::find_global_typedef)
497 (typedef_hash_table::find_typedef): Update.
498
eb53f105
TT
4992020-09-17 Tom Tromey <tom@tromey.com>
500
501 * target-descriptions.c (tdesc_use_registers): Use htab_up.
502
7a8a5d47
TT
5032020-09-17 Tom Tromey <tom@tromey.com>
504
505 * linespec.c (class decode_compound_collector)
506 <~decode_compound_collector>: Remove.
507 <m_unique_syms>: Now htab_up.
508 (decode_compound_collector::operator ()): Update.
509 (class symtab_collector) <~symtab_collector>: Remove.
510 <m_symtab_table>: Now htab_up.
511 (symtab_collector::operator ()): Update.
512
99032cfc
TT
5132020-09-17 Tom Tromey <tom@tromey.com>
514
515 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
516 (filename_seen_cache::clear): Update.
517 (~filename_seen_cache): Remove.
518 (filename_seen_cache::seen): Update.
519 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
520 htab_up.
521 <~filename_seen_cache>: Remove.
522 <traverse>: Update.
523
32580f6d
TT
5242020-09-17 Tom Tromey <tom@tromey.com>
525
526 * completer.c (completion_tracker::discard_completions)
527 (completion_tracker::~completion_tracker)
528 (completion_tracker::maybe_add_completion)
529 (completion_tracker::remove_completion)
530 (completion_tracker::recompute_lowest_common_denominator)
531 (completion_tracker::build_completion_result): Update.
532 * completer.h (class completion_tracker) <have_completions>:
533 Update.
534 <m_entries_hash>: Now htab_up.
535
c1fb9836
TT
5362020-09-17 Tom Tromey <tom@tromey.com>
537
538 * breakpoint.c (ambiguous_names_p): Use htab_up.
539
88f07206
TT
5402020-09-17 Tom Tromey <tom@tromey.com>
541
542 * auto-load.c (struct auto_load_pspace_info)
543 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
544 <loaded_script_files, loaded_script_texts>: Change type to
545 htab_up.
546 (~auto_load_pspace_info) Remove.
547 (init_loaded_scripts_info, maybe_add_script_file)
548 (maybe_add_script_text, auto_load_info_scripts): Update.
549
9519b2ee
TT
5502020-09-17 Tom Tromey <tromey@adacore.com>
551
552 * c-exp.y (name_obstack): Now static.
553
d2cd4113
CC
5542020-09-17 Chungyi Chi <demonic@csie.io>
555
556 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
557
b650a282
SM
5582020-09-16 Simon Marchi <simon.marchi@efficios.com>
559
560 * breakpoint.h (init_catchpoint): Change int parameter to bool.
561 (add_solib_catchpoint): Likewise.
562 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
563 to bool.
564 (add_solib_catchpoint): Change int parameter/variable to bool.
565 (catch_load_or_unload): Likewise.
566 (init_catchpoint): Likewise.
567 (create_fork_vfork_event_catchpoint): Likewise.
568 (catch_fork_command_1): Likewise.
569 (catch_exec_command_1): Likewise.
570
4d0bcfcf
SM
5712020-09-16 Simon Marchi <simon.marchi@efficios.com>
572
573 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
574 Change instance_flags to m_instance_flags.
575
fe830662
TT
5762020-09-16 Tom Tromey <tromey@adacore.com>
577
578 PR gdb/26598:
579 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
580
fe5ddfc3
JB
5812020-09-16 John Baldwin <jhb@FreeBSD.org>
582
583 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
584 PL_FLAG_EXEC.
585 (fbsd_nat_target::insert_exec_catchpoint)
586 (fbsd_nat_target::remove_exec_catchpoint): Always define.
587 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
588 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
589
e911c666
JB
5902020-09-16 John Baldwin <jhb@FreeBSD.org>
591
592 * configure.ac: Remove check for kinfo_getvmmap().
593 * configure, config.in: Regenerate.
594 * fbsd-nat.c (fbsd_read_mapping): Remove
595 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
596 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
597 kinfo_get_vmmap() are always present.
598
1f17d372
JB
5992020-09-16 John Baldwin <jhb@FreeBSD.org>
600
601 * fbsd-nat.c: Always include support for
602 TARGET_OBJECT_SIGNAL_INFO.
603
bcb1da7f
JB
6042020-09-16 John Baldwin <jhb@FreeBSD.org>
605
606 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
607 sysctl and remove procfs fallback.
608
5515f729
JB
6092020-09-16 John Baldwin <jhb@FreeBSD.org>
610
611 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
612 * fbsd-nat.h: Likewise.
613
da1df1db
TBA
6142020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
615
616 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
617 argument.
618
0e25e767
AB
6192020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
620
621 * ada-lang.c (ada_language_data): Delete.
622 (ada_language): Remove references to ada_language_data.
623 * c-lang.c (c_language_data): Delete.
624 (c_language): Remove references to c_language_data.
625 (cplus_language_data): Delete.
626 (cplus_language): Remove references to cplus_language_data.
627 (asm_language_data): Delete.
628 (asm_language): Remove references to asm_language_data.
629 (minimal_language_data): Delete.
630 (minimal_language): Remove references to minimal_language_data.
631 * d-lang.c (d_language_data): Delete.
632 (d_language): Remove references to d_language_data.
633 * f-lang.c (f_language_data): Delete.
634 (f_language): Remove references to f_language_data.
635 * go-lang.c (go_language_data): Delete.
636 (go_language): Remove references to go_language_data.
637 * language.c (unknown_language_data): Delete.
638 (unknown_language): Remove references to unknown_language_data.
639 (auto_language_data): Delete.
640 (auto_language): Remove references to auto_language_data.
641 * language.h (language_data): Delete struct.
642 (language_defn): No longer inherit from language_data.
643 * m2-lang.c (m2_language_data): Delete.
644 (m2_language): Remove references to m2_language_data.
645 * objc-lang.c (objc_language_data): Delete.
646 (objc_language): Remove references to objc_language_data.
647 * opencl-lang.c (opencl_language_data): Delete.
648 (opencl_language): Remove references to opencl_language_data.
649 * p-lang.c (pascal_language_data): Delete.
650 (pascal_language): Remove references to pascal_language_data.
651 * rust-lang.c (rust_language_data): Delete.
652 (rust_language): Remove references to rust_language_data.
653
b7c6e27d
AB
6542020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
655
656 * ada-lang.c (ada_language_data): Remove la_op_print_tab
657 initializer.
658 (ada_language::opcode_print_table): New member function.
659 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
660 (c_language::opcode_print_table): New member function.
661 (cplus_language_data): Remove la_op_print_tab initializer.
662 (cplus_language::opcode_print_table): New member function.
663 (asm_language_data): Remove la_op_print_tab initializer.
664 (asm_language::opcode_print_table): New member function.
665 (minimal_language_data): Remove la_op_print_tab initializer.
666 (minimal_language::opcode_print_table): New member function.
667 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
668 (d_language::opcode_print_table): New member function.
669 * expprint.c (print_subexp_standard): Update call to
670 opcode_print_table.
671 (op_string): Likewise.
672 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
673 (f_language::opcode_print_table): New member function.
674 * go-lang.c (go_language_data): Remove la_op_print_tab
675 initializer.
676 (go_language::opcode_print_table): New member function.
677 * language.c (unknown_language_data): Remove la_op_print_tab
678 initializer.
679 (unknown_language::opcode_print_table): New member function.
680 (auto_language_data): Remove la_op_print_tab initializer.
681 (auto_language::opcode_print_table): New member function.
682 * language.h (language_data): Remove la_op_print_tab field.
683 (language_defn::opcode_print_table): Declare new member function.
684 * m2-lang.c (m2_language_data): Remove la_op_print_tab
685 initializer.
686 (m2_language::opcode_print_table): New member function.
687 * objc-lang.c (objc_language_data): Remove la_op_print_tab
688 initializer.
689 (objc_language::opcode_print_table): New member function.
690 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
691 initializer.
692 (opencl_language::opcode_print_table): New member function.
693 * p-lang.c (pascal_language_data): Remove la_op_print_tab
694 initializer.
695 (pascal_language::opcode_print_table): New member function.
696 * rust-lang.c (rust_language_data): Remove la_op_print_tab
697 initializer.
698 (rust_language::opcode_print_table): New member function.
699
5aba6ebe
AB
7002020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
701
702 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
703 (ada_language::expression_ops): New member function.
704 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
705 (c_language::expression_ops): New member function.
706 (cplus_language_data): Remove la_exp_desc initializer.
707 (cplus_language::expression_ops): New member function.
708 (asm_language_data): Remove la_exp_desc initializer.
709 (asm_language::expression_ops): New member function.
710 (minimal_language_data): Remove la_exp_desc initializer.
711 (minimal_language::expression_ops): New member function.
712 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
713 (d_language::expression_ops): New member function.
714 * eval.c (evaluate_subexp): Update call to expression_ops.
715 * expprint.c (print_subexp): Likewise.
716 (op_name): Likewise.
717 (dump_subexp_body): Likewise.
718 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
719 (f_language::expression_ops): New member function.
720 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
721 (go_language::expression_ops): New member function.
722 * language.c (language_defn::expression_ops): New function.
723 (unknown_language_data): Remove la_exp_desc initializer.
724 (auto_language_data): Likewise.
725 * language.h (language_data): Remove la_exp_desc field.
726 (language_defn::expression_ops): Declare new member function.
727 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
728 (m2_language::expression_ops): New member function.
729 * objc-lang.c (objc_language_data): Remove la_exp_desc
730 initializer.
731 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
732 initializer.
733 (opencl_language::expression_ops): New member function.
734 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
735 * parse.c (operator_length): Update call to expression_ops.
736 (exp_iterate): Likewise.
737 * rust-lang.c (rust_language_data): Remove la_exp_desc
738 initializer.
739 (ruse_language::expression_ops): New member function.
740
b63a3f3f
AB
7412020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
742
743 * ada-lang.c (ada_language_data): Remove la_varobj_ops
744 initializer.
745 (ada_language::varobj_ops): New member function.
746 * c-lang.c (c_language_data): Remove la_varobj_ops
747 initializer.
748 (cplus_language_data): Likewise.
749 (cplus_language::varobj_ops): New member function.
750 (asm_language_data): Remove la_varobj_ops initializer.
751 (minimal_language_data): Likewise.
752 * d-lang.c (d_language_data): Likewise.
753 * f-lang.c (f_language_data): Likewise.
754 * go-lang.c (go_language_data): Likewise.
755 * language.c (language_defn::varobj_ops): New function.
756 (unknown_language_data): Remove la_varobj_ops
757 initializer.
758 (auto_language_data): Likewise.
759 * language.h (language_data): Remove la_varobj_ops field.
760 (language_defn::varobj_ops): Declare new member function.
761 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
762 * objc-lang.c (objc_language_data): Likewise.
763 * opencl-lang.c (opencl_language_data): Likewise.
764 * p-lang.c (pascal_language_data): Likewise.
765 * rust-lang.c (rust_language_data): Likewise.
766 * varobj.c (varobj_create): Update call to varobj_ops.
767 * varobj.h (default_varobj_ops): Delete define.
768
1ac14a04
AB
7692020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
770
771 * ada-lang.c (ada_language_data): Remove la_macro_expansion
772 initializer.
773 * c-lang.c (c_language_data): Likewise.
774 (c_language::macro_expansion): New member function.
775 (cplus_language_data): Likewise.
776 (cplus_language::macro_expansion): New member function.
777 (asm_language_data): Likewise.
778 (asm_language::macro_expansion): New member function.
779 (minimal_language_data): Likewise.
780 (minimal_language::macro_expansion): New member function.
781 * d-lang.c (d_language_data): Remove la_macro_expansion
782 initializer.
783 * f-lang.c (f_language_data): Likewise.
784 * go-lang.c (go_language_data): Likewise.
785 * language.c (unknown_language_data): Likewise.
786 (auto_language_data): Likewise.
787 * language.h (language_data): Remove la_macro_expansion field.
788 (language_defn::macro_expansion): New member function.
789 * m2-lang.c (m2_language_data): Remove la_macro_expansion
790 initializer.
791 * objc-lang.c (objc_language_data): Likewise.
792 (objc_language::macro_expansion): New member function.
793 * opencl-lang.c (opencl_language_data): Likewise.
794 (opencl_language::macro_expansion): New member function.
795 * p-lang.c (pascal_language_data): Remove la_macro_expansion
796 initializer.
797 * rust-lang.c (rust_language_data): Likewise.
798 * symtab.c (default_collect_symbol_completion_matches_break_on):
799 Update call to macro_expansion.
800
3a3440fb
AB
8012020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
802
803 * ada-lang.c (ada_language_data): Remove la_array_ordering
804 initializer.
805 * c-lang.c (c_language_data): Likewise.
806 (cplus_language_data): Likewise.
807 (asm_language_data): Likewise.
808 (minimal_language_data): Likewise.
809 * d-lang.c (d_language_data): Likewise.
810 * dwarf2/read.c (read_array_order): Update for call to
811 array_ordering.
812 * f-lang.c (f_language_data): Remove la_array_ordering
813 initializer.
814 (f_language::array_ordering): New member function.
815 * go-lang.c (go_language_data): Remove la_array_ordering
816 initializer.
817 * language.c (unknown_language_data): Likewise.
818 (auto_language_data): Likewise.
819 * language.h (language_data): Delete la_array_ordering field.
820 (language_defn::array_ordering): New member function.
821 * m2-lang.c (m2_language_data): Remove la_array_ordering
822 initializer.
823 * objc-lang.c (objc_language_data): Likewise.
824 * opencl-lang.c (opencl_language_data): Likewise.
825 * p-lang.c (pascal_language_data): Likewise.
826 * rust-lang.c (rust_language_data): Likewise.
827
0d201fa4
AB
8282020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
829
830 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
831 initializer.
832 * c-lang.c (c_language_data): Likewise.
833 (cplus_language_data): Likewise.
834 (asm_language_data): Likewise.
835 (minimal_language_data): Likewise.
836 * d-lang.c (d_language_data): Likewise.
837 * f-lang.c (f_language_data): Likewise.
838 (f_language::case_sensitivity): New member function.
839 * go-lang.c (go_language_data): Remove la_case_sensitivity
840 initializer.
841 * language.c (enum case_mode): Moved here from language.h.
842 (case_mode): Make static.
843 (show_case_command): Update for case_sensitivity being a method.
844 (set_case_command): Likewise.
845 (set_range_case): Likewise.
846 (unknown_language_data): Remove la_case_sensitivity initializer.
847 (auto_language_data): Likewise.
848 * language.h (case_mode): Delete, move enum declaration to
849 language.c.
850 (language_data): Delete la_case_sensitivity field.
851 (language_defn::case_sensitivity): New member function.
852 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
853 initializer.
854 * objc-lang.c (objc_language_data): Likewise.
855 * opencl-lang.c (opencl_language_data): Likewise.
856 * p-lang.c (pascal_language_data): Likewise.
857 * rust-lang.c (rust_language_data): Likewise.
858
efdf6a73
AB
8592020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
860
861 * ada-lang.c (ada_language_data): Remove la_range_check
862 initializer.
863 * c-lang.c (c_language_data): Likewise.
864 (cplus_language_data): Likewise.
865 (asm_language_data): Likewise.
866 (minimal_language_data): Likewise.
867 * d-lang.c (d_language_data): Likewise.
868 * f-lang.c (f_language_data): Likewise.
869 (f_language::range_checking_on_by_default): New member function.
870 * go-lang.c (go_language_data): Remove la_range_check initializer.
871 * language.c (enum range_mode): Moved here from language.h.
872 (range_mode): Made static.
873 (show_range_command): Update to use
874 range_checking_on_by_default.
875 (set_range_command): Likewise.
876 (set_range_case): Likewise.
877 (unknown_language_data): Remove la_range_check initializer.
878 (auto_language_data): Likewise.
879 * language.h (range_mode): Delete. Enum definition moved to
880 language.c.
881 (language_data): Remove la_range_check field.
882 (language_defn::range_checking_on_by_default): New member
883 function.
884 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
885 (m2_language::range_checking_on_by_default): New member function.
886 * objc-lang.c (objc_language_data): Remove la_range_check
887 initializer.
888 * opencl-lang.c (opencl_language_data): Likewise.
889 * p-lang.c (pascal_language_data): Likewise.
890 (pascal_language::range_checking_on_by_default): New member
891 function.
892 * rust-lang.c (rust_language_data): Remove la_range_check
893 initializer.
894 (rust_language::range_checking_on_by_default): New member
895 function.
896
bf92aec5
AB
8972020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
898
899 * dwarf2/read.c (dwarf2_physname): Remove special case for
900 language_go.
901 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
902 member function.
903
d3355e4d
AB
9042020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
905
906 * ada-lang.c (ada_language_data): Remove
907 la_store_sym_names_in_linkage_form_p initializer.
908 (ada_language::store_sym_names_in_linkage_form_p): New member
909 function.
910 * c-lang.c (c_language_data): Remove
911 la_store_sym_names_in_linkage_form_p initializer.
912 (c_language::store_sym_names_in_linkage_form_p): New member
913 function.
914 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
915 initializer.
916 (asm_language_data): Likewise.
917 (asm_language::store_sym_names_in_linkage_form_p): New member
918 function.
919 (minimal_language_data): Remove
920 la_store_sym_names_in_linkage_form_p initializer.
921 (minimal_language::store_sym_names_in_linkage_form_p): New member
922 function.
923 * d-lang.c (d_language_data): Remove
924 la_store_sym_names_in_linkage_form_p initializer.
925 * dwarf2/read.c (dwarf2_physname): Update call to
926 store_sym_names_in_linkage_form_p.
927 * f-lang.c (f_language_data): Remove
928 la_store_sym_names_in_linkage_form_p initializer.
929 * go-lang.c (go_language_data): Remove
930 la_store_sym_names_in_linkage_form_p initializer.
931 * language.c (unknown_language_data): Remove
932 la_store_sym_names_in_linkage_form_p initializer.
933 (unknown_language::store_sym_names_in_linkage_form_p): New member
934 function.
935 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
936 initializer.
937 (auto_language::store_sym_names_in_linkage_form_p): New member
938 function.
939 * language.h (language_data): Remove
940 la_store_sym_names_in_linkage_form_p member variable.
941 (language_defn::store_sym_names_in_linkage_form_p): New member
942 function.
943 * m2-lang.c (m2_language_data): Remove
944 la_store_sym_names_in_linkage_form_p initializer.
945 * objc-lang.c (objc_language_data): Likewise.
946 * opencl-lang.c (opencl_language_data): Likewise.
947 * p-lang.c (pascal_language_data): Likewise.
948 * rust-lang.c (rust_language_data): Likewise.
949
22c12a6c
AB
9502020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
951
952 * ada-lang.c (ada_language_data): Remove string_lower_bound
953 initializer.
954 * c-lang.c (c_language_data): Likewise.
955 (cplus_language_data): Likewise.
956 (asm_language_data): Likewise.
957 (minimal_language_data): Likewise.
958 * d-lang.c (d_language_data): Likewise.
959 * f-lang.c (f_language_data): Likewise.
960 * go-lang.c (go_language_data): Likewise.
961 * language.c (unknown_language_data): Likewise.
962 (auto_language_data): Likewise.
963 * language.h (language_data): Remove string_lower_bound field.
964 (language_defn::string_lower_bound): New member function.
965 * m2-lang.c (m2_language_data): Remove string_lower_bound
966 initializer.
967 (m2_language::string_lower_bound): New member function.
968 * objc-lang.c (objc_language_data): Remove string_lower_bound
969 initializer.
970 * opencl-lang.c (opencl_language_data): Likewise.
971 * p-lang.c (pascal_language_data): Likewise.
972 * rust-lang.c (rust_language_data): Likewise.
973 * valops.c (value_cstring): Update call to string_lower_bound.
974 (value_string): Likewise.
975 * value.c (allocate_repeated_value): Likewise.
976
1c236ddd
AB
9772020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
978
979 * valops.c (value_repeat): Fix incorrect argument name in comment.
980
67bd3fd5
AB
9812020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
982
983 * ada-lang.c (ada_language_data): Remove c_style_arrays
984 initializer.
985 (ada_language::c_style_arrays_p): New member fuction.
986 * c-lang.c (c_language_data): Remove c_style_arrays
987 initializer.
988 (cplus_language_data): Likewise.
989 (asm_language_data): Likewise.
990 (minimal_language_data): Likewise.
991 * d-lang.c (d_language_data): Likewise.
992 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
993 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
994 (f_language::c_style_arrays_p): New member function.
995 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
996 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
997 * language.c (unknown_language_data): Remove c_style_arrays
998 initializer.
999 (auto_language_data): Likewise.
1000 * language.h (language_data): Remove c_style_arrays field.
1001 (language_defn::c_style_arrays_p): New member function.
1002 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
1003 (m2_language::c_style_arrays_p): New member function.
1004 * objc-lang.c (objc_language_data): Remove c_style_arrays
1005 initializer.
1006 * opencl-lang.c (opencl_language_data): Likewise.
1007 * p-lang.c (pascal_language_data): Likewise.
1008 * rust-lang.c (rust_language_data): Likewise.
1009 * valarith.c (value_subscript): Update call to c_style_arrays_p,
1010 and update local variable to a bool.
1011 * valops.c (value_cast): Update call to c_style_arrays_p.
1012 (value_array): Likewise.
1013 * value.c (coerce_array): Likewise.
1014
85967615
AB
10152020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1016
1017 * ada-lang.c (ada_language_data): Remove la_language initializer.
1018 * c-lang.c (c_language_data): Likewise.
1019 (cplus_language_data): Likewise.
1020 (asm_language_data): Likewise.
1021 (minimal_language_data): Likewise.
1022 * d-lang.c (d_language_data): Likewise.
1023 * f-lang.c (f_language_data): Likewise.
1024 * go-lang.c (go_language_data): Likewise.
1025 * language.c (unknown_language_data): Likewise.
1026 (auto_language_data): Likewise.
1027 * language.h (language_data): Remove la_language field.
1028 (language_defn::language_defn): Initialise la_language field.
1029 (language_defn::la_language): New member variable.
1030 * m2-lang.c (m2_language_data): Remove la_language field.
1031 * objc-lang.c (objc_language_data): Likewise.
1032 * opencl-lang.c (opencl_language_data): Likewise.
1033 * p-lang.c (pascal_language_data): Likewise.
1034 * rust-lang.c (rust_language_data): Likewise.
1035
e171d6f1
AB
10362020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1037
1038 * ada-lang.c (ada_extensions): Delete, moved into
1039 ada_language::filename_extensions.
1040 (ada_language_data): Remove la_filename_extensions initializer.
1041 (ada_language::filename_extensions): New member function.
1042 * c-lang.c (c_extensions): Delete, moved into
1043 c_language::filename_extensions.
1044 (c_language_data): Remove la_filename_extensions initializer.
1045 (c_language::filename_extensions): New member function.
1046 (cplus_extensions): Delete, moved into
1047 cplus_language::filename_extensions.
1048 (cplus_language_data): Remove la_filename_extensions initializer.
1049 (cplus_language::filename_extensions): New member function.
1050 (asm_extensions): Delete, moved into
1051 asm_language::filename_extensions.
1052 (asm_language_data): Remove la_filename_extensions initializer.
1053 (asm_language::filename_extensions): New member function.
1054 (minimal_language_data): Remove la_filename_extensions
1055 initializer.
1056 * d-lang.c (d_extensions): Delete, moved into
1057 d_language::filename_extensions.
1058 (d_language_data): Remove la_filename_extensions initializer.
1059 (d_language::filename_extensions): New member function.
1060 * f-lang.c (f_extensions): Delete, moved into
1061 f_language::filename_extensions.
1062 (f_language_data): Remove la_filename_extensions initializer.
1063 (f_language::filename_extensions): New member function.
1064 * go-lang.c (go_language_data): Remove la_filename_extensions
1065 initializer.
1066 * language.c (add_set_language_command): Update now that
1067 filename_extensions returns a vector.
1068 (unknown_language_data): Remove la_filename_extensions
1069 initializer.
1070 (auto_language_data): Likewise.
1071 * language.h (language_data): Remove la_filename_extensions field.
1072 (language_defn::filename_extensions): New member function.
1073 * m2-lang.c (m2_language_data): Remove la_filename_extensions
1074 initializer.
1075 * objc-lang.c (objc_extensions): Delete, moved into
1076 objc_language::filename_extensions.
1077 (objc_language_data): Remove la_filename_extensions initializer.
1078 (objc_language::filename_extensions): New member function.
1079 * opencl-lang.c (opencl_language_data): Remove
1080 la_filename_extensions initializer.
1081 * p-lang.c (pascal_extensions): Delete, moved into
1082 pascal_language::filename_extensions.
1083 (pascal_language_data): Remove la_filename_extensions initializer.
1084 (pascal_language::filename_extensions): New member function.
1085 * rust-lang.c (rust_extensions): Delete, moved into
1086 rust_language::filename_extensions.
1087 (rust_language_data): Remove la_filename_extensions initializer.
1088 (rust_language::filename_extensions): New member function.
1089 * symfile.c (add_filename_language): Add new assert.
1090
6f7664a9
AB
10912020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1092
1093 * ada-lang.c (ada_language_data): Remove la_name and
1094 la_natural_name initializers.
1095 (ada_language::name): New member function.
1096 (ada_language::natural_name): New member function.
1097 * c-lang.c (c_language_data): Remove la_name and
1098 la_natural_name initializers.
1099 (c_language::name): New member function.
1100 (c_language::natural_name): New member function.
1101 (cplus_language_data): Remove la_name and
1102 la_natural_name initializers.
1103 (cplus_language::name): New member function.
1104 (cplus_language::natural_name): New member function.
1105 (asm_language_data): Remove la_name and
1106 la_natural_name initializers.
1107 (asm_language::name): New member function.
1108 (asm_language::natural_name): New member function.
1109 (minimal_language_data): Remove la_name and
1110 la_natural_name initializers.
1111 (minimal_language::name): New member function.
1112 (minimal_language::natural_name): New member function.
1113 * compile/compile.c (compile_to_object): Update call to
1114 lanugage_defn::name.
1115 * d-lang.c (d_language_data): Remove la_name and
1116 la_natural_name initializers.
1117 (d_language::name): New member function.
1118 (d_language::natural_name): New member function.
1119 * expprint.c (print_subexp_standard): Update call to
1120 language_defn::name.
1121 (dump_raw_expression): Likewise
1122 (dump_prefix_expression): Likewise.
1123 * f-lang.c (f_language_data): Remove la_name and
1124 la_natural_name initializers.
1125 (f_language::name): New member function.
1126 (f_language::natural_name): New member function.
1127 * go-lang.c (go_language_data): Remove la_name and
1128 la_natural_name initializers.
1129 (go_language::name): New member function.
1130 (go_language::natural_name): New member function.
1131 * language.c (show_language_command): Update call to
1132 language_defn::name.
1133 (set_language_command): Likewise.
1134 (language_enum): Likewise.
1135 (language_str): Likewise.
1136 (add_set_language_command): Likewise, use
1137 language_defn::natural_name in the doc string.
1138 (unknown_language_data): Remove la_name and
1139 la_natural_name initializers.
1140 (unknown_language::name): New member function.
1141 (unknown_language::natural_name): New member function.
1142 (auto_language_data): Remove la_name and
1143 la_natural_name initializers.
1144 (auto_language::name): New member function.
1145 (auto_language::natural_name): New member function.
1146 (language_lookup_primitive_type_as_symbol): Update call to
1147 language_defn::name.
1148 * language.h (language_data): Remove la_name and la_natural_name
1149 member variables.
1150 (language_defn::name): New member function.
1151 (language_defn::natural_name): New member function.
1152 * m2-lang.c (m2_language_data): Remove la_name and
1153 la_natural_name initializers.
1154 (m2_language::name): New member function.
1155 (m2_language::natural_name): New member function.
1156 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
1157 language_defn::natural_name.
1158 * objc-lang.c (objc_language_data): Remove la_name and
1159 la_natural_name initializers.
1160 (objc_language::name): New member function.
1161 (objc_language::natural_name): New member function.
1162 * opencl-lang.c (opencl_language_data): Remove la_name and
1163 la_natural_name initializers.
1164 (opencl_language::name): New member function.
1165 (opencl_language::natural_name): New member function.
1166 * p-lang.c (pascal_language_data): Remove la_name and
1167 la_natural_name initializers.
1168 (pascal_language::name): New member function.
1169 (pascal_language::natural_name): New member function.
1170 * rust-lang.c (rust_language_data): Remove la_name and
1171 la_natural_name initializers.
1172 (rust_language::name): New member function.
1173 (rust_language::natural_name): New member function.
1174 * symtab.c (lookup_language_this): Update call to
1175 language_defn::name.
1176
5bae7c4e
AB
11772020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1178
1179 * ada-lang.c (ada_language_data): Remove la_name_of_this
1180 initializer.
1181 * ax-gdb.c (gen_expr): Update call to name_of_this.
1182 * c-exp.y (classify_name): Likewise.
1183 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1184 (cplus_language_data): Likewise.
1185 (cplus_language::name_of_this): New member function.
1186 (asm_language_data): Remove la_name_of_this initializer.
1187 (minimal_language_data): Likewise.
1188 * d-lang.c (d_language_data): Likewise.
1189 (d_language::name_of_this): New member function.
1190 * expprint.c (print_subexp_standard): Update call to name_of_this.
1191 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1192 * go-lang.c (go_language_data): Likewise.
1193 * language.c (unknown_language_data): Likewise.
1194 (unknown_language::name_of_this): New member function.
1195 (auto_language_data): Remove la_name_of_this initializer.
1196 (auto_language::name_of_this): New member function.
1197 * language.h (language_data): Delete la_name_of_this member
1198 variable.
1199 (language_defn::name_of_this): New member function.
1200 * m2-lang.c (m2_language_data): Remove la_name_of_this
1201 initializer.
1202 * objc-lang.c (objc_language_data): Likewise.
1203 (objc_language::name_of_this): New member function.
1204 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1205 initializer.
1206 * p-lang.c (pascal_language_data): Likewise.
1207 (pascal_language::name_of_this): New member function.
1208 * rust-lang.c (rust_language_data): Remove la_name_of_this
1209 initializer.
1210 * symtab.c (lookup_language_this): Update call to name_of_this.
1211 (lookup_symbol_aux): Likewise.
1212 * valops.c (value_of_this): Likewise.
1213
22e3f3ed
AB
12142020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1215
1216 * ada-lang.c (ada_language_data): Remove
1217 la_struct_too_deep_ellipsis initializer.
1218 (ada_language::struct_too_deep_ellipsis): New member function.
1219 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1220 initializer.
1221 (cplus_language_data): Likewise.
1222 (asm_language_data): Likewise.
1223 (minimal_language_data): Likewise.
1224 * cp-valprint.c (cp_print_value): Update call to
1225 struct_too_deep_ellipsis.
1226 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1227 initializer.
1228 * f-lang.c (f_language_data): Likewise.
1229 (f_language::struct_too_deep_ellipsis): New member function.
1230 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1231 initializer.
1232 * language.c (unknown_language_data): Likewise.
1233 (auto_language_data): Likewise.
1234 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1235 member variable.
1236 (language_defn::struct_too_deep_ellipsis): New member function.
1237 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1238 initializer.Q
1239 * objc-lang.c (objc_language_data): Likewise.
1240 * opencl-lang.c (opencl_language_data): Likewise.
1241 * p-lang.c (pascal_language_data): Likewise.
1242 * rust-lang.c (rust_language_data): Likewise.
1243 * valprint.c (val_print_check_max_depth): Update call to
1244 struct_too_deep_ellipsis.
1245
ed29e1c7
FW
12462020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1247
1248 * MAINTAINERS (Write After Approval): Add myself.
1249
12d8f940
TT
12502020-09-15 Tom Tromey <tom@tromey.com>
1251
1252 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1253 Remove.
1254
6b5a7bc7
TT
12552020-09-15 Tom Tromey <tom@tromey.com>
1256
1257 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1258 and TYPE_CODE_METHODPTR cases.
1259 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1260 (c_value_print_inner): Update.
1261 * valprint.c (generic_value_print_memberptr): New function, from
1262 c_value_print_memberptr.
1263 (generic_value_print): Use it. Call cplus_print_method_ptr.
1264
47f0e2ff
TT
12652020-09-15 Tom Tromey <tromey@adacore.com>
1266
1267 * python/python-internal.h (PyInt_FromLong): Remove define.
1268 * python/py-value.c (convert_value_from_python): Use
1269 gdb_py_object_from_longest.
1270 * python/py-type.c (typy_get_code): Use
1271 gdb_py_object_from_longest.
1272 * python/py-symtab.c (salpy_get_line): Use
1273 gdb_py_object_from_longest.
1274 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1275 gdb_py_object_from_longest.
1276 * python/py-record.c (recpy_gap_reason_code): Use
1277 gdb_py_object_from_longest.
1278 * python/py-record-btrace.c (recpy_bt_insn_size)
1279 (recpy_bt_func_level, btpy_list_count): Use
1280 gdb_py_object_from_longest.
1281 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1282 gdb_py_object_from_longest. Fix error handling.
1283 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1284 gdb_py_object_from_longest.
1285 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1286 gdb_py_object_from_longest.
1287 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1288 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1289 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1290
512116ce
TT
12912020-09-15 Tom Tromey <tromey@adacore.com>
1292
1293 * python/python.c (gdbpy_parameter_value): Use
1294 gdb_py_object_from_ulongest.
1295
4ab1029c
TT
12962020-09-15 Tom Tromey <tromey@adacore.com>
1297
1298 * python/py-infevents.c (create_register_changed_event_object):
1299 Use gdb_py_object_from_longest.
1300 * python/py-exitedevent.c (create_exited_event_object): Use
1301 gdb_py_object_from_longest.
1302
062534d4
TT
13032020-09-15 Tom Tromey <tromey@adacore.com>
1304
1305 * python/python.c (gdbpy_parameter_value): Use
1306 gdb_py_object_from_longest.
1307 * python/py-type.c (convert_field, typy_range): Use
1308 gdb_py_object_from_longest.
1309 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1310 gdb_py_object_from_longest.
1311 * python/py-lazy-string.c (stpy_get_length): Use
1312 gdb_py_object_from_longest.
1313 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1314 gdb_py_object_from_longest.
1315 * python/py-infevents.c (create_memory_changed_event_object): Use
1316 gdb_py_object_from_longest.
1317 * python/py-inferior.c (infpy_get_num): Use
1318 gdb_py_object_from_longest.
1319 (infpy_get_pid): Likewise.
1320
d1cab987
TT
13212020-09-15 Tom Tromey <tromey@adacore.com>
1322
1323 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1324 defines.
1325 * python/py-value.c (valpy_long): Use
1326 gdb_py_object_from_ulongest.
1327 * python/py-symtab.c (salpy_get_pc): Use
1328 gdb_py_object_from_ulongest.
1329 (salpy_get_last): Likewise.
1330 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1331 gdb_py_object_from_ulongest.
1332 * python/py-lazy-string.c (stpy_get_address): Use
1333 gdb_py_object_from_ulongest.
1334 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1335 * python/py-arch.c (archpy_disassemble): Use
1336 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1337 error handling.
1338
4bde49dc
TT
13392020-09-15 Tom Tromey <tromey@adacore.com>
1340
1341 * python/python-internal.h (gdb_py_long_from_longest): Remove
1342 defines.
1343 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1344 * python/py-type.c (convert_field, typy_get_sizeof): Use
1345 gdb_py_object_from_longest.
1346 * python/py-record-btrace.c (btpy_list_index): Use
1347 gdb_py_object_from_longest.
1348
37431074
TT
13492020-09-15 Tom Tromey <tromey@adacore.com>
1350
1351 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1352 * python/py-record.c (recpy_element_number): Use
1353 gdb_py_object_from_longest.
1354 (recpy_gap_number): Likewise.
1355
cbe25684
TT
13562020-09-15 Tom Tromey <tromey@adacore.com>
1357
1358 * top.c (ui::ui): Update.
1359 (highest_ui_num): Remove.
1360 * top.h (struct ui) <num>: Remove.
1361
db92ac45
TT
13622020-09-15 Tom Tromey <tromey@adacore.com>
1363
1364 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1365 * ui-style.c (ansi_regex_text): Now array.
1366 * rust-exp.y (number_regex_text): Now array.
1367 * linespec.c (linespec_quote_characters): Now array.
1368 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1369 Now arrays.
1370
d2b31b67
SM
13712020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1372
1373 * debuginfod-support.c (debuginfod_client_deleter): New.
1374 (debuginfod_client_up): New.
1375 (debuginfod_init): Return debuginfod_client_up.
1376 (debuginfod_source_query): Adjust.
1377 (debuginfod_debuginfo_query): Adjust.
1378
3246bd8e
SM
13792020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1380
1381 * debuginfod-support.c (debuginfod_source_query): Use
1382 make_unique_xstrdup.
1383
10242f36
SM
13842020-09-14 Simon Marchi <simon.marchi@efficios.com>
1385
1386 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1387 with `type::instance_flags`.
1388
e1044e6a
MM
13892020-09-14 Michael Mullin <masmullin@gmail.com>
1390
1391 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1392 Remove baton parameter.
1393
04902b09
PA
13942020-09-14 Pedro Alves <pedro@palves.net>
1395
1396 * Makefile.in (SELFTESTS_SRCS): Add
1397 unittests/enum-flags-selftests.c.
1398 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1399 btrace_function_flags instead of enum btrace_function_flag.
1400 * compile/compile-c-types.c (convert_qualified): Use
1401 enum_flags::raw.
1402 * compile/compile-cplus-symbols.c (convert_one_symbol)
1403 (convert_symbol_bmsym):
1404 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1405 (compile_cplus_convert_struct_or_union_methods)
1406 (compile_cplus_instance::convert_qualified_base):
1407 * go-exp.y (parse_string_or_char): Add cast to int.
1408 * unittests/enum-flags-selftests.c: New file.
1409 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1410 type to btrace_thread_flags from btrace_thread_flag.
1411 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1412 local's type to btrace_thread_flags from btrace_thread_flag. Add
1413 cast in DEBUG call.
1414
69896a2c
PA
14152020-09-14 Pedro Alves <pedro@palves.net>
1416
1417 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1418 * gdbtypes.c (address_space_name_to_int): Rename to ...
1419 (address_space_name_to_type_instance_flags): ... this.
1420 (address_space_int_to_name): Rename to ...
1421 (address_space_type_instance_flags_to_name): ... this.
1422 * gdbtypes.h (address_space_name_to_int): Rename to ...
1423 (address_space_name_to_type_instance_flags): ... this.
1424 (address_space_int_to_name): Rename to ...
1425 (address_space_type_instance_flags_to_name): ... this.
1426 * type-stack.c (type_stack::insert): Adjust to rename.
1427 * type-stack.h (type_stack::insert): Likewise.
1428
314ad88d
PA
14292020-09-14 Pedro Alves <pedro@palves.net>
1430 Andrew Burgess <andrew.burgess@embecosm.com>
1431
1432 * avr-tdep.c (avr_address_class_type_flags): Return
1433 type_instance_flags.
1434 (avr_address_class_type_flags_to_name): Take a
1435 type_instance_flags.
1436 (avr_address_class_name_to_type_flags): Return bool and take a
1437 type_instance_flags.
1438 * d-lang.c (build_d_types): Use type::set_instance_flags.
1439 * ft32-tdep.c (ft32_address_class_type_flags): Return
1440 type_instance_flags.
1441 (ft32_address_class_type_flags_to_name): Take a
1442 type_instance_flags.
1443 (ft32_address_class_name_to_type_flags): Return bool and take a
1444 type_instance_flags.
1445 (ft32_gdbarch_init): Use type::set_instance_flags.
1446 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1447 * gdbarch.h, gdbarch.c: Regenerate.
1448 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1449 (address_class_name_to_type_flags): Use type_instance_flags and
1450 bool.
1451 * gdbtypes.c (address_space_name_to_int)
1452 (address_space_int_to_name, make_qualified_type): Use
1453 type_instance_flags.
1454 (make_qualified_type): Use type_instance_flags and
1455 type::set_instance_flags.
1456 (make_type_with_address_space, make_cv_type, make_vector_type)
1457 (check_typedef): Use type_instance_flags.
1458 (recursive_dump_type): Cast type_instance_flags to unsigned for
1459 printing.
1460 (copy_type_recursive): Use type::set_instance_flags.
1461 (gdbtypes_post_init): Use type::set_instance_flags.
1462 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1463 <m_instance_flags>: ... this.
1464 <instance_flags, set_instance_flags>: New methods.
1465 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1466 (SET_TYPE_INSTANCE_FLAGS): New.
1467 (address_space_name_to_int, address_space_int_to_name)
1468 (make_type_with_address_space): Pass flags using
1469 type_instance_flags instead of int.
1470 * stabsread.c (cleanup_undefined_types_noname): Use
1471 type::set_instance_flags.
1472 * s390-tdep.c (s390_address_class_type_flags): Return
1473 type_instance_flags.
1474 (s390_address_class_type_flags_to_name): Take a
1475 type_instance_flags.
1476 (s390_address_class_name_to_type_flags): Return bool and take a
1477 type_instance_flags.
1478 * type-stack.c (type_stack::follow_types): Use
1479 type_instance_flags.
1480 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1481
27087b7f
TT
14822020-09-14 Tom Tromey <tromey@adacore.com>
1483
1484 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1485 * x86-tdep.c (x86_is_thunk_register_name)
1486 (x86_in_indirect_branch_thunk): Update.
1487 * sparc64-tdep.c (sparc64_fpu_register_names)
1488 (sparc64_cp0_register_names, sparc64_register_names)
1489 (sparc64_pseudo_register_names): Now const.
1490 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1491 cp0_registers_num>: Now const.
1492 * sparc-tdep.c (sparc_core_register_names)
1493 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1494 (sparc32_pseudo_register_names): Now const.
1495 (validate_tdesc_registers): Update.
1496 * rust-lang.c (rust_extensions): Now const.
1497 * p-lang.c (p_extensions): Now const.
1498 * objc-lang.c (objc_extensions): Now const.
1499 * nto-tdep.c (nto_thread_state_str): Now const.
1500 * moxie-tdep.c (moxie_register_names): Now const.
1501 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1502 Now const.
1503 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1504 (mips_linux_reg_names): Now const.
1505 (mips_gdbarch_init): Update.
1506 * microblaze-tdep.c (microblaze_register_names): Now const.
1507 * m68k-tdep.c (m68k_register_names): Now const.
1508 * m32r-tdep.c (m32r_register_names): Now const.
1509 * ia64-tdep.c (ia64_register_names): Now const.
1510 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1511 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1512 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1513 ymm_avx512_register_names, pkeys_register_names>: Now const.
1514 * i386-tdep.c (i386_register_names, i386_zmm_names)
1515 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1516 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1517 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1518 * f-lang.c (f_extensions): Now const.
1519 * d-lang.c (d_extensions): Now const.
1520 * csky-tdep.c (csky_register_names): Now const.
1521 * charset.c (default_charset_names, charset_enum): Now const.
1522 (_initialize_charset): Update.
1523 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1524 const.
1525 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1526 (bsd_uthread_solib_loaded): Update.
1527 (bsd_uthread_state): Now const.
1528 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1529 (amd64_ymm_avx512_names, amd64_ymmh_names)
1530 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1531 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1532 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1533 (amd64_dword_names): Now const.
1534 * agent.c (can_use_agent_enum): Now const.
1535 * ada-tasks.c (task_states, long_task_states): Now const.
1536 * ada-lang.c (known_runtime_file_name_patterns)
1537 (known_auxiliary_function_name_patterns, attribute_names)
1538 (standard_exc, ada_extensions): Now const.
1539
89806626
SM
15402020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1541
1542 * bcache.h (struct bcache) <bcache>: Remove constructor.
1543 <m_hash_function, m_compare_function>: Remove.
1544 <~bcache>: Make virtual.
1545 <compare>: Remove static method, introduce virtual method.
1546 <default_hash>: Remove.
1547 <hash>: New virtual method.
1548 * bcache.c (bcache::expand_hash_table): Update.
1549 (bcache::insert): Update.
1550 (bcache::hash): New.
1551 (bcache::compare): Update comment and parameter names.
1552 * gdbtypes.c (types_deeply_equal): Update.
1553 * psymtab.h (struct psymbol_bcache): New struct.
1554 (class psymtab_storage) <psymtab_storage>: Make default.
1555 <psymbol_cache>: Change type to psymbol_bcache.
1556 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1557 (psymbol_hash): Change to...
1558 (psymbol_bcache::hash): ... this.
1559 (psymbol_compare): Change to...
1560 (psymbol_bcache::compare): ... this.
1561
677c92fe
SM
15622020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1563
1564 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1565 checking for initial lwp.
1566
3eba3a01
TT
15672020-09-14 Tom Tromey <tromey@adacore.com>
1568
1569 * m68k-tdep.c (m68k_extract_return_value): Use
1570 pointer_result_regnum.
1571 (m68k_store_return_value): Likewise.
1572 (m68k_reg_struct_return_p): Handle vectors and arrays.
1573 (m68k_return_value): Handle arrays.
1574 (m68k_svr4_return_value): Fix single-element aggregate handling.
1575 Handle long double. Adjust for embedded ABI.
1576 (m68k_svr4_init_abi): Set pointer_result_regnum.
1577 (m68k_embedded_init_abi): New function.
1578 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1579 (m68k_osabi_sniffer): New function.
1580 (_initialize_m68k_tdep): Register osabi sniffer.
1581 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1582 member.
1583
33f4dd48
SM
15842020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1585
1586 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1587 with gdb::unique_xmalloc_ptr<char>.
1588
8400a90d
SM
15892020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1590
1591 * xml-support.h (xml_fetch_another): Change type to be a
1592 function_view.
1593 (xml_process_xincludes): Remove baton parameter.
1594 (xml_fetch_content_from_file): Change baton parameter to
1595 dirname.
1596 * xml-support.c (struct xinclude_parsing_data)
1597 <xinclude_parsing_data>: Remove baton parameter.
1598 <fetcher_baton>: Remove.
1599 (xinclude_start_include): Adjust.
1600 (xml_process_xincludes): Adjust.
1601 (xml_fetch_content_from_file): Replace baton parameter with
1602 dirname.
1603 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1604 (xml_init_syscalls_info): Use a lambda.
1605 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1606 (file_read_description_xml): Use a lambda.
1607 (fetch_available_features_from_target): Change baton parameter
1608 to target_ops.
1609 (target_read_description_xml): Use a lambda.
1610 (target_fetch_description_xml): Use a lambda.
1611 (string_read_description_xml): Update.
1612
04f5bab2
SM
16132020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1614
1615 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1616 uses with type::endianity_is_not_default.
1617
db558e34
SM
16182020-09-14 Simon Marchi <simon.marchi@efficios.com>
1619
1620 * gdbtypes.h (struct type) <endianity_is_not_default,
1621 set_endianity_is_not_default>: New methods.
1622 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1623 type::endianity_is_not_default, change all write call sites to
1624 use type::set_endianity_is_not_default.
1625
22c4c60c
SM
16262020-09-14 Simon Marchi <simon.marchi@efficios.com>
1627
1628 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1629 uses with type::is_fixed_instance.
1630
9cdd0d12
SM
16312020-09-14 Simon Marchi <simon.marchi@efficios.com>
1632
1633 * gdbtypes.h (struct type) <is_fixed_instance,
1634 set_is_fixed_instance>: New methods.
1635 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1636 write call sites to use type::set_is_fixed_instance.
1637
0becda7a
SM
16382020-09-14 Simon Marchi <simon.marchi@efficios.com>
1639
1640 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1641 uses with type::is_gnu_ifunc.
1642
03cc7249
SM
16432020-09-14 Simon Marchi <simon.marchi@efficios.com>
1644
1645 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1646 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1647 use type::set_is_gnu_ifunc.
1648
3f46044c
SM
16492020-09-14 Simon Marchi <simon.marchi@efficios.com>
1650
1651 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1652 uses with type::stub_is_supported.
1653
9baccff6
SM
16542020-09-14 Simon Marchi <simon.marchi@efficios.com>
1655
1656 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1657 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1658 use type::set_stub_is_supported.
1659
bd63c870
SM
16602020-09-14 Simon Marchi <simon.marchi@efficios.com>
1661
1662 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1663 uses with type::is_vector.
1664
2062087b
SM
16652020-09-14 Simon Marchi <simon.marchi@efficios.com>
1666
1667 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1668 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1669 use type::set_is_vector.
1670
a409645d
SM
16712020-09-14 Simon Marchi <simon.marchi@efficios.com>
1672
1673 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1674 uses with type::has_varargs.
1675
1d6286ed
SM
16762020-09-14 Simon Marchi <simon.marchi@efficios.com>
1677
1678 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1679 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1680 use type::set_has_varargs.
1681
7f9f399b
SM
16822020-09-14 Simon Marchi <simon.marchi@efficios.com>
1683
1684 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1685 uses with type::is_prototyped.
1686
27e69b7a
SM
16872020-09-14 Simon Marchi <simon.marchi@efficios.com>
1688
1689 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1690 New methods.
1691 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1692 call sites to use type::set_is_prototyped.
1693
d2183968
SM
16942020-09-14 Simon Marchi <simon.marchi@efficios.com>
1695
1696 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1697 uses with type::target_is_stub.
1698
8f53807e
SM
16992020-09-14 Simon Marchi <simon.marchi@efficios.com>
1700
1701 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1702 New methods.
1703 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1704 sites to use type::set_target_is_stub.
1705
e46d3488
SM
17062020-09-14 Simon Marchi <simon.marchi@efficios.com>
1707
1708 * gdbtypes.h (TYPE_STUB): Remove, replace all
1709 uses with type::is_stub.
1710
b4b73759
SM
17112020-09-14 Simon Marchi <simon.marchi@efficios.com>
1712
1713 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1714 (TYPE_STUB): Use type::is_stub, change all write call sites to
1715 use type::set_is_stub.
1716
20ce4123
SM
17172020-09-14 Simon Marchi <simon.marchi@efficios.com>
1718
1719 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1720 type::has_no_signedness.
1721
15152a54
SM
17222020-09-14 Simon Marchi <simon.marchi@efficios.com>
1723
1724 * gdbtypes.h (struct type) <has_no_signedness,
1725 set_has_no_signedness>: New methods.
1726 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1727 call sites to use type::set_has_no_signedness.
1728
c6d940a9
SM
17292020-09-14 Simon Marchi <simon.marchi@efficios.com>
1730
1731 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1732 type::is_unsigned.
1733
653223d3
SM
17342020-09-14 Simon Marchi <simon.marchi@efficios.com>
1735
1736 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1737 methods.
1738 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1739 sites to use type::set_is_unsigned.
1740
55ea94da 17412020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 1742 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 1743
e851246a
SM
1744 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1745 pointer and stack frame offset when unwinding.
55ea94da 1746
6791b117
PA
17472020-09-13 Pedro Alves <pedro@palves.net>
1748
1749 * NEWS: Document "-break-insert --qualified".
1750 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1751
77f2120b
PA
17522020-09-13 Pedro Alves <pedro@palves.net>
1753
1754 * linespec.c (classify_mtype, compare_msyms): Delete.
1755 (search_minsyms_for_name): Remove classification logic. Instead
1756 filter out trampoline symbols if we also found an external
1757 function of the same name.
1758
ed6a896c
JB
17592020-09-13 Joel Brobecker <brobecker@adacore.com>
1760
1761 * NEWS: Create a new section for the next release branch.
1762 Rename the section of the current branch, now that it has
1763 been cut.
1764
32aea73e
JB
17652020-09-13 Joel Brobecker <brobecker@adacore.com>
1766
1767 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1768 * version.in: Bump version to 11.0.50.DATE-git.
1769
8087c3fa
JB
17702020-09-12 Joel Brobecker <brobecker@adacore.com>
1771
1772 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1773
2a67f09d
FW
17742020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1775 Felix Willgerodt <Felix.Willgerodt@intel.com>
1776
1777 * gdbarch.sh: Added bfloat16 type.
1778 * gdbarch.c: Regenerated.
1779 * gdbarch.h: Regenerated.
1780 * gdbtypes.c (floatformats_bfloat16): New struct.
1781 (gdbtypes_post_init): Add builtin_bfloat16.
1782 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1783 (floatformats_bfloat16): New struct.
1784 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1785 (i386_ymm_type): Add field "v16_bfloat16"
1786 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1787 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1788 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1789 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1790 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1791 * features/i386/64bit-avx512.c: Regenerated.
1792 * features/i386/64bit-sse.xml: Add bfloat16 type.
1793 * features/i386/64bit-sse.c: Regenerated.
1794
1347d111
FW
17952020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1796
1797 * i386-tdep.c (i386_zmm_type): Fix field names.
1798 (i386_ymm_type): Fix field names.
1799
7a4e8e7d
TBA
18002020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1801
1802 * breakpoint.c: Fix typo in the help message of the
1803 "set breakpoint condition-evaluation" command.
1804
cf4ac4be
KR
18052020-09-10 Kamil Rytarowski <n54@gmx.com>
1806
1807 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1808 * (nbsd_nat_target::pid_to_exec_file)
1809 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1810 (nbsd_nat_target::post_startup_inferior)
1811 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1812 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1813 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1814 * (nbsd_thread_lister): Remove.
1815
f404573e
KR
18162020-09-10 Kamil Rytarowski <n54@gmx.com>
1817
1818 * fork-inferior.c (startup_inferior): Avoid double free.
1819
1ccb2c17
KR
18202020-09-10 Kamil Rytarowski <n54@gmx.com>
1821
1822 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1823 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1824
feedfcc7
KR
18252020-09-10 Kamil Rytarowski <n54@gmx.com>
1826
1827 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1828 * netbsd-nat.c: Include <sys/ptrace.h>.
1829 * (netbsd_nat::enable_proc_events): Add.
1830
c489f8c6
KR
18312020-09-10 Kamil Rytarowski <n54@gmx.com>
1832
1833 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1834 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1835 (netbsd_nat::for_each_thread): Add.
1836 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1837 "gdbsupport/common-debug.h".
1838 * (netbsd_nat::netbsd_thread_lister)
1839 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1840 (netbsd_nat::for_each_thread): Add.
1841
330662f6
KR
18422020-09-10 Kamil Rytarowski <n54@gmx.com>
1843
1844 * netbsd-nat.h: Include <unistd.h>.
1845 * (netbsd_nat::pid_to_exec_file): Add.
1846 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1847 * (netbsd_nat::pid_to_exec_file) Add.
1848
70b67307
KR
18492020-09-10 Kamil Rytarowski <n54@gmx.com>
1850
1851 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
1852
99cf6da6
KR
18532020-09-10 Kamil Rytarowski <n54@gmx.com>
1854
1855 * netbsd-nat.h: New file.
1856 * netbsd-nat.c: Likewise.
1857
1b788fb6
TT
18582020-09-09 Tom Tromey <tromey@adacore.com>
1859
1860 * ada-lang.c (remove_extra_symbols): Do not increment when
1861 removing an element
1862
03b0a45f
TT
18632020-09-08 Tom Tromey <tromey@adacore.com>
1864
1865 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
1866
3cae4447
TT
18672020-09-08 Tom Tromey <tromey@adacore.com>
1868
1869 PR win32/25302:
1870 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
1871 (gdb_bfd_init_data): New function.
1872 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
1873
7f08fd51
TBA
18742020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1875
1876 * infrun.c (fetch_inferior_event): Use
1877 `switch_to_target_no_thread` to switch the target.
1878
3e6ff933
TT
18792020-09-06 Tom Tromey <tom@tromey.com>
1880
1881 * symfile.h (dwarf2_free_objfile): Don't declare.
1882
e56798df
AKS
18832020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1884
1885 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
1886 to match 16 byte real/complex type generated by Flang compiler.
1887
8f5c6526
TV
18882020-09-03 Tom de Vries <tdevries@suse.de>
1889
1890 PR breakpoint/26546
1891 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
1892 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
1893
c5065df0
SM
18942020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
1895
1896 * maint.c (index_digits): New function.
1897 (struct maint_print_section_data): Remove.
1898 (print_bfd_section_info): Remove print_data parameter, add arg
1899 and index_digits.
1900 (print_objfile_section_info): Likewise.
1901 (print_bfd_section_info_maybe_relocated): Likewise (plus
1902 objfile).
1903 (maintenance_info_sections): Adjust calls.
1904
02c6f3f1
TT
19052020-09-02 Tom Tromey <tromey@adacore.com>
1906
1907 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1908 for null pointers.
1909 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1910
ef5e5b0b
SM
19112020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1912
1913 * bcache.h (struct bcache) <insert>: Change type of `added` to
1914 pointer to bool.
1915 * bcache.c (bcache::insert): Likewise.
1916 * gdbtypes.c (check_types_worklist): Adjust.
1917 * psymtab.c (add_psymbol_to_bcache): Adjust.
1918
973695d6
KB
19192020-08-31 Kevin Buettner <kevinb@redhat.com>
1920
1921 * corelow.c (unordered_set): Include.
1922 (class core_target): Add field 'm_core_unavailable_mappings'.
1923 (core_target::build_file_mappings): Print only one warning
1924 per inaccessible file. Add unavailable/broken mappings
1925 to m_core_unavailable_mappings.
1926 (core_target::xfer_partial): Call...
1927 (core_target::xfer_memory_via_mappings): New method.
1928
264fc0e2
SM
19292020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1930
1931 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1932 type to bool.
1933
2de01bdb
SM
19342020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1935
1936 * dwarf2/read.c (struct field_info): Fix indentation.
1937
f3bd50f1
SM
19382020-08-31 Simon Marchi <simon.marchi@efficios.com>
1939
1940 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1941 ordering in comment.
1942 * frame.c (frame_id_eq): Fix indentation.
1943
22b9b4b0
SL
19442020-08-31 Scott Linder <scott@scottlinder.com>
1945 Simon Marchi <simon.marchi@efficios.com>
1946
1947 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1948 inline frame ids in outer frame.
1949
84154d16
SM
19502020-08-31 Simon Marchi <simon.marchi@efficios.com>
1951
1952 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1953 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1954 (outer_frame_id): Use FID_STACK_OUTER instead of
1955 FID_STACK_INVALID.
1956 (frame_id_p): Don't check for outer_frame_id.
1957
8efaf6b3
SM
19582020-08-31 Simon Marchi <simon.marchi@efficios.com>
1959
1960 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1961 regnum/frame in value. Call allocate_value_lazy.
1962 * frame.c (frame_unwind_register_value): Use
1963 val_print_not_saved.
1964
fe1fe7ea
SM
19652020-08-31 Simon Marchi <simon.marchi@efficios.com>
1966
1967 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1968
f7c7700d
PA
19692020-08-29 Pedro Alves <pedro@palves.net>
1970
1971 * progspace.c (print_program_space): Use all_inferiors. Switch to
1972 the inferior before calling target_pid_to_str.
1973
e0814aae
TT
19742020-08-28 Tom Tromey <tom@tromey.com>
1975
1976 * xcoffread.c (xcoff_end_psymtab): Update comment.
1977 * dbxread.c (dbx_end_psymtab): Update comment.
1978
626d2320
TV
19792020-08-28 Tom de Vries <tdevries@suse.de>
1980
1981 PR breakpoint/26544
1982 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1983 event_location.
1984 (create_breakpoint): Same.
1985 (base_breakpoint_decode_location): Same.
1986 (bkpt_create_sals_from_location): Same.
1987 (bkpt_decode_location): Same.
1988 (bkpt_probe_create_sals_from_location): Same.
1989 (bkpt_probe_decode_location): Same.
1990 (tracepoint_create_sals_from_location): Same.
1991 (tracepoint_decode_location): Same.
1992 (tracepoint_probe_decode_location): Same.
1993 (strace_marker_create_sals_from_location): Same.
1994 (strace_marker_decode_location): Same.
1995 (create_sals_from_location_default): Same.
1996 (decode_location_default): Same.
1997 * breakpoint.h (struct breakpoint_ops): Same.
1998 (create_breakpoint): Same.
1999 * linespec.h (decode_line_full): Same.
2000 * linespec.c (decode_line_full): Same. Throw error if
2001 result.size () == 0.
2002
df631783
PA
20032020-08-27 Pedro Alves <pedro@palves.net>
2004
2005 PR gdb/26524
2006 * breakpoint.c (until_break_fsm) <location_breakpoint,
2007 caller_breakpoint>: Delete fields.
2008 <breakpoints>: New field.
2009 <until_break_fsm>: Adjust to save a breakpoint vector instead of
2010 two individual breakpoints.
2011 (until_break_fsm::should_stop): Loop over breakpoints in the
2012 breakpoint vector.
2013 (until_break_fsm::clean_up): Adjust to clear the breakpoints
2014 vector.
2015 (until_break_command): Handle location expanding into multiple
2016 sals.
2017
b2b38aa4
PA
20182020-08-27 Pedro Alves <pedro@palves.net>
2019
2020 PR gdb/26523
2021 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
2022 bp_until breakpoints user-specified locations. Update intro
2023 comment.
2024
b886559f
SM
20252020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
2026
2027 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
2028 gdb_bfd_sections): New.
2029 * maint.c (print_bfd_section_info): Change param type to
2030 maint_print_section_data.
2031 (print_objfile_section_info): Likewise.
2032 (print_bfd_section_info_maybe_relocated): Likewise.
2033 (maintenance_info_sections): Use gdb_bfd_sections.
2034
4c6e63bf
SV
20352020-08-25 Shahab Vahedi <shahab@synopsys.com>
2036
2037 * MAINTAINERS: Add ARC target and maintainer.
2038
8d7f0635
AK
20392020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
2040
2041 * configure.tgt: ARC support for GNU/Linux.
2042 * Makefile.in (ALL_TARGET_OBJS): Likewise.
2043 * arc-linux-tdep.c: New file.
2044 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
2045 * arc-tdep.c (arc_write_pc): Use it.
2046
fdd8731b
SV
20472020-08-25 Shahab Vahedi <shahab@synopsys.com>
2048
2049 * arc-tdep.c (arc_check_for_hardware_loop): New.
2050 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
2051
22459524
SV
20522020-08-25 Shahab Vahedi <shahab@synopsys.com>
2053
2054 * arc-tdep.h: Include "gdbarch.h".
2055
995d3a19
SV
20562020-08-25 Shahab Vahedi <shahab@synopsys.com>
2057
2058 * arch/arc.h
2059 (arc_gdbarch_features): New class to stir the selection of target XML.
2060 (arc_create_target_description): Use FEATURES to choose XML target.
2061 (arc_lookup_target_description): Use arc_create_target_description
2062 to create _new_ target descriptions or return the already created
2063 ones if the FEATURES is the same.
2064 * arch/arc.c: Implementation of prototypes described above.
2065 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
2066 (arc_gdbarch_features_init): Initialize the FEATURES struct.
2067 * arc-tdep.c (*_feature_name): Make feature names consistent.
2068 (arc_register_feature): A new struct to hold information about
2069 registers of a particular target/feature.
2070 (arc_check_tdesc_feature): Check if XML provides registers in
2071 compliance with ARC_REGISTER_FEATURE structs.
2072 (arc_update_acc_reg_names): Add aliases for r58 and r59.
2073 (determine_*_reg_feature_set): Which feature name to look for.
2074 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
2075 (mach_type_to_arc_isa): Convert from a set of binutils machine types
2076 to expected ISA enums to be used in arc_gdbarch_features structs.
2077 * features/Makefile (FEATURE_XMLFILES): Add new files.
2078 * gdb/features/arc/v1-aux.c: New file.
2079 * gdb/features/arc/v1-aux.xml: Likewise.
2080 * gdb/features/arc/v1-core.c: Likewise.
2081 * gdb/features/arc/v1-core.xml: Likewise.
2082 * gdb/features/arc/v2-aux.c: Likewise.
2083 * gdb/features/arc/v2-aux.xml: Likewise.
2084 * gdb/features/arc/v2-core.c: Likewise.
2085 * gdb/features/arc/v2-core.xml: Likewise.
2086 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
2087
3945d2d7
GM
20882020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
2089 Andrew Burgess <andrew.burgess@embecosm.com>
2090
2091 PR m2/26372
fc5d6901 2092 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
2093 an assert. Remove single element array indexing pattern as the
2094 MULTI_SUBSCRIPT support will handle this case too.
2095
2677f2d3
SM
20962020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
2097
2098 * value.h (valprint_check_validity): Move declaration from
2099 here...
2100 * valprint.h (valprint_check_validity): ... to here.
2101
c426fddb
SM
21022020-08-24 Simon Marchi <simon.marchi@efficios.com>
2103
2104 * debug.h: New file.
2105 * debug.c (debug_prefixed_vprintf): New function.
2106 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
2107 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
2108
1eb8556f
SM
21092020-08-24 Simon Marchi <simon.marchi@efficios.com>
2110
2111 * infrun.h (infrun_debug_printf_1): New function declaration.
2112 (infrun_debug_printf): New macro.
2113 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
2114 throughout.
2115 (infrun_debug_printf): New function.
2116 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
2117 (handle_jit_event): Likewise.
2118
b8fff44e
MW
21192020-08-21 Mark Wielaard <mark@klomp.org>
2120
2121 * ada-lex.l: Extend register warnings diagnostics comment for g++.
2122
d19c3068
SM
21232020-08-22 Simon Marchi <simon.marchi@efficios.com>
2124
2125 * frame.c (enum class frame_id_status): New.
2126 (struct frame_info) <this_id::p>: Change type to frame_id_status.
2127 (fprintf_frame): Update.
2128 (compute_frame_id): Set frame id status to "computing" on entry.
2129 Set it back to "not_computed" on failure and to "computed" on
2130 success.
2131 (get_frame_id): Assert the frame id is not being computed.
2132 (create_sentinel_frame): Use frame_id_status::COMPUTED.
2133 (create_new_frame): Likewise.
2134 (frame_cleanup_after_sniffer): Update assert.
2135
b70e516e
SM
21362020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2137
2138 * regcache.c (pid_ptid_regcache_map): New type.
2139 (target_ptid_regcache_map): Remove.
2140 (target_pid_ptid_regcache_map): New type.
2141 (regcaches): Change type to target_pid_ptid_regcache_map.
2142 (get_thread_arch_aspace_regcache): Update.
2143 (regcache_thread_ptid_changed): Update, handle pid-like ptid
2144 case.
2145 (regcaches_size): Update.
2146 (regcache_count): Update.
2147 (registers_changed_ptid_target_pid_test): New.
2148 (_initialize_regcache): Register new test.
2149
cdd9148a
SM
21502020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2151
2152 * regcache.c (regcache_count): New.
2153 (struct regcache_test_data): New.
2154 (regcache_test_data_up): New.
2155 (populate_regcaches_for_test): New.
2156 (regcaches_test): Remove.
2157 (get_thread_arch_aspace_regcache_test): New.
2158 (registers_changed_ptid_all_test): New.
2159 (registers_changed_ptid_target_test): New.
2160 (registers_changed_ptid_target_ptid_test): New.
2161 (regcache_thread_ptid_changed): Remove regcache_count lambda.
2162 (_initialize_regcache): Register new tests.
2163
dd125343
SM
21642020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2165
2166 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
2167 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
2168 gdbarch and aspace parameter. Use current inferior's aspace.
2169 Validate regcache's arch value.
2170 (regcaches_test): Update.
2171
3ee93972
SM
21722020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2173
2174 * regcache.c (regcaches_test): Call registers_changed.
2175
33bf4c5c
TBA
21762020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2177
2178 * infrun.c (process_event_stop_test): Fix typo "breapoint".
2179
c2fd7fae
AKS
21802020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2181
2182 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2183 to find the end of prologue for flang compiled binaries.
2184 * arm-tdep.c (arm_skip_prologue): Likewise.
2185 * i386-tdep.c (i386_skip_prologue): Likewise.
2186 * producer.c (producer_is_llvm): New function.
2187 (producer_parsing_tests): Added new tests for clang/flang.
2188 * producer.h (producer_is_llvm): New declaration.
2189
9327494e
SM
21902020-08-18 Simon Marchi <simon.marchi@efficios.com>
2191
2192 * linux-nat.c (linux_nat_debug_printf): New function.
2193 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2194
d138725a
AM
21952020-08-18 Aaron Merey <amerey@redhat.com>
2196
2197 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2198 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2199 (CLIBS): Add DEBUGINFOD_LIBS.
2200
f9b11e6b
ST
22012020-08-17 Sergei Trofimovich <siarheit@google.com>
2202
2203 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2204 'gdbarch_num_regs'.
2205
3ae7ab99
TT
22062020-08-17 Tom Tromey <tromey@adacore.com>
2207
2208 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2209 ada_get_decoded_value returns NULL.
2210
b017825f
TT
22112020-08-17 Tom Tromey <tromey@adacore.com>
2212
2213 * python/py-inferior.c (infpy_search_memory): Use
2214 gdb_py_object_from_ulongest.
2215 * python/py-infevents.c (create_inferior_call_event_object)
2216 (create_memory_changed_event_object): Use
2217 gdb_py_object_from_ulongest.
2218 * python/py-linetable.c (ltpy_entry_get_pc): Use
2219 gdb_py_object_from_ulongest.
2220
7635cf79
SM
22212020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2222
2223 * loc.c (class symbol_needs_eval_context): Fix indentation.
2224
f54be24b
SM
22252020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2226
2227 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2228 bool.
2229
53d5a2a5
TV
22302020-08-17 Tom de Vries <tdevries@suse.de>
2231
2232 PR gdb/26393
2233 * gdbtypes.c (dump_dynamic_prop): New function.
2234 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2235
547ce8f0
TV
22362020-08-15 Tom de Vries <tdevries@suse.de>
2237
2238 PR backtrace/26390
2239 * stack.c (print_frame_args): Temporarily set the selected
2240 frame to FRAME while printing the frame's arguments.
2241
6ea815e7
PFC
22422020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2243
2244 PR breakpoints/26385
2245 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2246 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2247
6e562fa3
PFC
22482020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2249
2250 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2251 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2252 and >= to check return value instead of == -1 and != -1.
2253
d369b608
SM
22542020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2255
2256 * utils.h (class gdb_argv) <as_array_view>: New method.
2257 * utils.c (gdb_argv_as_array_view_test): New.
2258 (_initialize_utils): Register selftest.
2259 * maint.c (maintenance_selftest): Use the new method.
2260
b31488a3
KR
22612020-08-13 Kamil Rytarowski <n54@gmx.com>
2262
2263 * target.h (supports_dumpcore, dumpcore): New
2264 function declarations.
2265 * target.c (supports_dumpcore, dumpcore): New
2266 functions.
2267 * target-delegates.c: Rebuild.
2268 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2269 and target_dumpcore ().
2270
002a3166
AM
22712020-08-13 Aaron Merey <amerey@redhat.com>
2272
2273 * debuginfod-support.c: Replace global variables with user_data.
2274
ece5bc8a
SM
22752020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2276
2277 * maint.c (maintenance_selftest): Split args and pass array_view
2278 to run_tests.
2279
6d8a0a5e
LM
22802020-08-12 Luis Machado <luis.machado@linaro.org>
2281
2282 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2283 type's length.
2284 Use %s and pulongest to print the length.
2285
7cf663a9
PA
22862020-08-12 Pedro Alves <palves@redhat.com>
2287
2288 * NEWS: Move "Multi-target debugging support" item to the
2289 "Changes since GDB 9" section.
2290
27c7b875
PA
22912020-08-12 Pedro Alves <palves@redhat.com>
2292
2293 PR gdb/26336
2294 * progspace.c (program_space::remove_objfile): Invalidate the
2295 frame cache.
2296
1796a2a1
TV
22972020-08-11 Tom de Vries <tdevries@suse.de>
2298
2299 * MAINTAINERS: Mark ms1 as deleted.
2300
f8e3fe0d
LM
23012020-08-10 Luis Machado <luis.machado@linaro.org>
2302
2303 PR gdb/26310
2304
2305 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2306 act accordingly.
2307 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2308 movz/str/stur/stp skipping behavior.
2309
cc308722
LM
23102020-08-10 Luis Machado <luis.machado@linaro.org>
2311
2312 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2313 struct user_sve_header instead of struct sve_context.
2314
041d9819
SM
23152020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2316
2317 * read.h (dwarf2_fetch_die_loc_sect_off,
2318 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2319 `void *` parameter with function_view.
2320 * read.c (dwarf2_fetch_die_loc_sect_off,
2321 dwarf2_fetch_die_loc_cu_off): Likewise.
2322 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2323 (per_cu_dwarf_call): Adjust.
2324 (get_frame_address_in_block_wrapper): Remove.
2325 (indirect_synthetic_pointer): Adjust.
2326 (get_ax_pc): Remove.
2327 (dwarf2_compile_expr_to_ax): Adjust.
2328
38f8aa06
TV
23292020-08-08 Tom de Vries <tdevries@suse.de>
2330
2331 PR build/26344
2332 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2333 constructor.
2334 * regcache.c (get_thread_arch_aspace_regcache): Same.
2335
a52b3ae2
TT
23362020-08-07 Tom Tromey <tromey@adacore.com>
2337
2338 * ravenscar-thread.c
2339 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2340 New method.
2341 (ravenscar_thread_target::wait): Check
2342 runtime_initialized.
2343 (ravenscar_thread_target::prepare_to_store)
2344 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2345 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2346 (ravenscar_thread_target::stopped_by_watchpoint)
2347 (ravenscar_thread_target::stopped_data_address)
2348 (ravenscar_thread_target::core_of_thread): Use
2349 scoped_restore_current_thread and
2350 set_base_thread_from_ravenscar_task.
2351
0e29517d
TT
23522020-08-07 Tom Tromey <tromey@adacore.com>
2353
2354 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2355
592f9bd7
TT
23562020-08-07 Tom Tromey <tromey@adacore.com>
2357
2358 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2359 update_inferior_ptid before update_thread_list.
2360 (temporarily_change_regcache_ptid): New class.
2361 (ravenscar_thread_target::fetch_registers)
2362 (ravenscar_thread_target::store_registers)
2363 (ravenscar_thread_target::prepare_to_store): Use base thread when
2364 forwarding operation.
2365
39e2018a
TT
23662020-08-07 Tom Tromey <tromey@adacore.com>
2367
2368 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2369 "is_pid" case.
2370
2080266b
TT
23712020-08-07 Tom Tromey <tromey@adacore.com>
2372
2373 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2374 New methods.
2375 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2376 first.
2377 (ravenscar_thread_target::add_thread): Rename from
2378 ravenscar_add_thread.
2379 (ravenscar_thread_target::update_thread_list): Use a lambda.
2380 (ravenscar_thread_target::xfer_partial): New method.
2381
78c02f21
TT
23822020-08-07 Tom Tromey <tromey@adacore.com>
2383
2384 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2385 gdb::function_view.
2386 (iterate_over_live_ada_tasks): Change type of argument.
2387 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2388 of argument.
2389
d5d833af
TT
23902020-08-07 Tom Tromey <tromey@adacore.com>
2391
2392 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2393 Remove.
2394 (ravenscar_thread_target::extra_thread_info): Remove.
2395 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2396 defer to target beneath for non-Ravenscar threads.
2397
a8ac85bb
TT
23982020-08-07 Tom Tromey <tromey@adacore.com>
2399
2400 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2401 get_base_thread_from_ravenscar_task>: Now methods.
2402 <m_cpu_map>: New member.
2403 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2404 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2405 (ravenscar_thread_target::task_is_currently_active): Update.
2406 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2407 Now a method.
2408 (ravenscar_thread_target::add_active_thread): Put initial thread
2409 into the m_cpu_map.
2410
550ab58d
TT
24112020-08-07 Tom Tromey <tromey@adacore.com>
2412
2413 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2414 event_ptid.
2415
e9546579
TT
24162020-08-07 Tom Tromey <tromey@adacore.com>
2417
2418 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2419 runtime_initialized.
2420
3d4470e5
TT
24212020-08-07 Tom Tromey <tromey@adacore.com>
2422
2423 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2424 add_active_thread.
2425 (ravenscar_thread_target::add_active_thread): Now public.
2426 (ravenscar_inferior_created): Call add_active_thread after pushing
2427 the target.
2428
888bdb2b
SM
24292020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2430
2431 * regcache.c (ptid_regcache_map): New type.
2432 (target_ptid_regcache_map): New type.
2433 (regcaches): Change type to target_ptid_regcache_map.
2434 (get_thread_arch_aspace_regcache): Update to regcaches' new
2435 type.
2436 (regcache_thread_ptid_changed): Likewise.
2437 (registers_changed_ptid): Likewise.
2438 (regcaches_size): Likewise.
2439 (regcaches_test): Update.
2440 (regcache_thread_ptid_changed): Update.
2441 * regcache.h (regcache_up): New type.
2442 * gdbsupport/ptid.h (hash_ptid): New struct.
2443
b161a60d
SM
24442020-08-07 Simon Marchi <simon.marchi@efficios.com>
2445
2446 * observable.h (thread_ptid_changed): Add parameter
2447 `process_stratum_target *`.
2448 * infrun.c (infrun_thread_ptid_changed): Add parameter
2449 `process_stratum_target *` and use it.
2450 (selftests): New namespace.
2451 (infrun_thread_ptid_changed): New function.
2452 (_initialize_infrun): Register selftest.
2453 * regcache.c (regcache_thread_ptid_changed): Add parameter
2454 `process_stratum_target *` and use it.
2455 (regcache_thread_ptid_changed): New function.
2456 (_initialize_regcache): Register selftest.
2457 * thread.c (thread_change_ptid): Pass target to
2458 thread_ptid_changed observable.
2459
d2854d8d
CT
24602020-08-06 Caroline Tice <cmtice@google.com>
2461
fe4c3d43
SM
2462 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2463 (struct dwp_sections): Update field comments. Add loclists and
2464 rnglists fields.
2465 (struct virtual_v2_dwo_sections): Rename struct to
2466 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2467 size & offset fields for loclists and rnglists.
2468 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2469 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2470 skipping dummy type units.
2471 (create_dwp_hash_table): Update the large comment above the function to
2472 discuss Version 5 DWP files as well, with references. Update all the
2473 version checks in the function to check for version 5 as well. Add new
2474 section at the end to create dwp hash table for version 5.
2475 (create_dwp_v2_section): Rename function to
2476 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2477 Add V5 to error message text.
2478 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2479 into calls to create_dwp_v2_or_v5_section.
2480 (create_dwo_unit_in_dwp_v5): New function.
2481 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2482 check for version2; add else clause to handle version 5.
2483 (open_and_init_dwo_file): Add code to check dwarf version & only call
2484 create_debug_types_hash_table (with sections.types) if version is not 5;
2485 else call create_debug_type_hash_table, with sections.info.
2486 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2487 version 5.
2488 (dwarf2_locate_v5_dwp_sections): New function.
2489 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2490 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 2491
159ed7d9
SM
24922020-08-06 Simon Marchi <simon.marchi@efficios.com>
2493
2494 * regcache.h (class regcache): Remove friend
2495 registers_changed_ptid.
2496 <regcache_thread_ptid_changed>: Remove.
2497 <regcaches>: Remove.
2498 * regcache.c (regcache::regcaches): Rename to...
2499 (regcaches): ... this. Make static.
2500 (get_thread_arch_aspace_regcache): Update.
2501 (regcache::regcache_thread_ptid_changed): Rename to...
2502 (regcache_thread_ptid_changed): ... this. Update.
2503 (class regcache_access): Remove.
2504 (regcaches_test): Update.
2505 (_initialize_regcache): Update.
2506 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2507 <forward_list>.
2508
174981ae
SM
25092020-08-06 Simon Marchi <simon.marchi@efficios.com>
2510
2511 * regcache.h (class regcache) <current_regcache>: Rename to...
2512 <regcaches>: ... this. Move doc here.
2513 * regcache.c (regcache::current_regcache) Rename to...
2514 (regcache::regcaches): ... this. Move doc to header.
2515 (get_thread_arch_aspace_regcache): Update.
2516 (regcache::regcache_thread_ptid_changed): Update.
2517 (registers_changed_ptid): Update.
2518 (class regcache_access) <current_regcache_size>: Rename to...
2519 <regcaches_size>: ... this.
2520 (current_regcache_test): Rename to...
2521 (regcaches_test): ... this.
2522 (_initialize_regcache): Update.
2523
ed908db6
VC
25242020-08-06 Victor Collod <vcollod@nvidia.com>
2525
2526 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2527
b5582ab7
KB
25282020-08-05 Kevin Buettner <kevinb@redhat.com>
2529
2530 * corelow.c (core_target::build_file_mappings): Don't output
2531 null pathname in warning.
2532
ea946b86
SM
25332020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2534
2535 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2536 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2537 gdb.dwarf2/dw2-single-line-discriminators.exp,
2538 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2539
57d02173
TT
25402020-08-05 Tom Tromey <tromey@adacore.com>
2541
2542 PR rust/26197:
2543 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2544 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2545 Fix off-by-one and type size errors in ordinary case.
2546
5555c86d
TV
25472020-08-05 Tom de Vries <tdevries@suse.de>
2548
2549 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2550 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2551
97916bfe
SM
25522020-08-04 Simon Marchi <simon.marchi@efficios.com>
2553
2554 * frame.h (frame_id_p): Return bool.
2555 (frame_id_artificial_p): Return bool.
2556 (frame_id_eq): Return bool.
2557 (has_stack_frames): Return bool.
2558 (get_selected_frame): Fix typo in comment.
2559 (get_frame_pc_if_available): Return bool.
2560 (get_frame_address_in_block_if_available): Return bool.
2561 (get_frame_func_if_available): Return bool.
2562 (read_frame_register_unsigned): Return bool.
2563 (get_frame_register_bytes): Return bool.
2564 (safe_frame_unwind_memory): Return bool.
2565 (deprecated_frame_register_read): Return bool.
2566 (frame_unwinder_is): Return bool.
2567 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2568 bool.
2569 <this_id::p>: Likewise.
2570 <prev_p>: Likewise.
2571 (frame_stash_add): Return bool.
2572 (get_frame_id): Use bool.
2573 (frame_id_build_special) Use bool.
2574 (frame_id_build_unavailable_stack): Use bool.
2575 (frame_id_build): Use bool.
2576 (frame_id_p): Return bool, use true/false instead of 1/0.
2577 (frame_id_artificial_p): Likewise.
2578 (frame_id_eq): Likewise.
2579 (frame_id_inner): Likewise.
2580 (get_frame_func_if_available): Likewise.
2581 (read_frame_register_unsigned): Likewise.
2582 (deprecated_frame_register_read): Likewise.
2583 (get_frame_register_bytes): Likewise.
2584 (has_stack_frames): Likewise.
2585 (inside_main_func): Likewise.
2586 (inside_entry_func): Likewise.
2587 (get_frame_pc_if_available): Likewise.
2588 (get_frame_address_in_block_if_available): Likewise.
2589 (frame_unwinder_is): Likewise.
2590 (safe_frame_unwind_memory): Likewise.
2591 (frame_unwind_arch): Likewise.
2592
fedfee88
SM
25932020-08-04 Simon Marchi <simon.marchi@efficios.com>
2594
2595 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2596 type to cached_copy_status.
2597 (fprintf_frame): Adjust.
2598 (get_frame_func_if_available): Adjust.
2599 (frame_cleanup_after_sniffer): Adjust.
2600
6cfa9b59
MW
26012020-08-04 Mark Wielaard <mark@klomp.org>
2602
2603 * MAINTAINERS (Write After Approval): Update email address.
2604
66d6346b
SM
26052020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2606
2607 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2608 dynamic_prop::const_val.
2609
8a6d5e35
SM
26102020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2611
2612 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2613 dynamic_prop::kind.
2614
51d6067d
SM
26152020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2616
2617 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2618
b26e2ae7
JM
26192020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2620
2621 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2622
39791af2
JM
26232020-08-04 Weimin Pan <weimin.pan@oracle.com>
2624 Jose E. Marchesi <jose.marchesi@oracle.com>
2625
2626 * configure.tgt: Add entry for bpf-*-*.
2627 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2628 (ALLDEPFILES): Add bpf-tdep.c.
2629 * bpf-tdep.c: New file.
2630 * MAINTAINERS: Add bpf target and maintainer.
2631 * NEWS: Mention the support for the new target.
2632
521894aa
TV
26332020-08-04 Tom de Vries <tdevries@suse.de>
2634
2635 PR symtab/23270
2636 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2637 Error.
2638
5d6356e9
JB
26392020-08-03 John Baldwin <jhb@FreeBSD.org>
2640
2641 * syscalls/freebsd.xml: Regenerate.
2642
0cf82b81
JB
26432020-08-03 John Baldwin <jhb@FreeBSD.org>
2644
2645 * syscalls/update-freebsd.sh: Fix usage and year range.
2646
8f34b746
TV
26472020-08-03 Tom de Vries <tdevries@suse.de>
2648
2649 PR symtab/26333
2650 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2651 DW_LNE_lo_user/DW_LNE_hi_user range.
2652
5e500d33
SM
26532020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2654
2655 PR ada/26318
2656 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2657 kind.
2658
78319c15
TBA
26592020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2660
2661 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2662
4c55e970
TBA
26632020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2664
2665 * breakpoint.c (set_breakpoint_condition): Update the condition
2666 expressions after checking that the input condition string parses
2667 successfully and does not contain junk at the end.
2668
1e620590
TBA
26692020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2670
2671 * breakpoint.c (set_breakpoint_condition): Update the
2672 condition string after parsing the new condition successfully.
2673
c8693053
RO
26742020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2675
2676 * proc-api.c (_STRUCTURED_PROC): Don't define.
2677 * proc-events.c: Likewise.
2678 * proc-flags.c: Likewise.
2679 * proc-why.c: Likewise.
2680 * procfs.c: Likewise.
2681
2682 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2683 * configure, config.in: Regenerate.
2684
5a99adb8
TV
26852020-07-30 Tom de Vries <tdevries@suse.de>
2686
2687 PR build/26320
2688 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2689 m_red/m_green/m_blue in a union.
2690
8ba83e91
TV
26912020-07-29 Tom de Vries <tdevries@suse.de>
2692
2693 PR tdep/26280
2694 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2695
f75a0693
AB
26962020-07-28 Tom Tromey <tromey@adacore.com>
2697
2698 PR symtab/26270:
2699 * symtab.h (find_pc_partial_function_sym): Declare.
2700 * cli/cli-cmds.c (disassemble_command): Use
2701 find_pc_partial_function_sym. Check asm_demangle.
2702 * blockframe.c (cache_pc_function_sym): New global.
2703 (cache_pc_function_name): Remove.
2704 (clear_pc_function_cache): Update.
2705 (find_pc_partial_function_sym): New function, from
2706 find_pc_partial_function.
2707 (find_pc_partial_function): Rewrite using
2708 find_pc_partial_function_sym.
2709
16f3242c
TT
27102020-07-28 Tom Tromey <tromey@adacore.com>
2711
2712 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2713 help. Add usage.
2714
4888741a
TT
27152020-07-28 Tom Tromey <tromey@adacore.com>
2716
2717 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2718 <DW_OP_GNU_variable_value>: Cast to address type.
2719
4d46f402
KR
27202020-07-28 Kamil Rytarowski <n54@gmx.com>
2721
2722 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2723 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2724 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2725 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2726 (nbsd_get_siginfo_type): New.
2727 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2728 (_initialize_nbsd_tdep): New.
2729
d70f978b
L
27302020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2731
2732 PR binutils/26301
2733 * configure: Regenerated.
2734
377170fa
L
27352020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2736
2737 PR binutils/26301
2738 * configure: Regenerated.
2739
43d5901d
AB
27402020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2741
2742 * python/py-frame.c: Remove 'user-regs.h' include.
2743 (frapy_read_register): Rewrite to make use of
2744 gdbpy_parse_register_id.
2745 * python/py-registers.c (gdbpy_parse_register_id): New function,
2746 moved here from python/py-unwind.c. Updated the return type, and
2747 also accepts register descriptor objects.
2748 * python/py-unwind.c: Remove 'user-regs.h' include.
2749 (pyuw_parse_register_id): Moved to python/py-registers.c.
2750 (unwind_infopy_add_saved_register): Update to use
2751 gdbpy_parse_register_id.
2752 (pending_framepy_read_register): Likewise.
2753 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2754
14fa8fb3
AB
27552020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2756
2757 * python/py-registers.c: Add 'user-regs.h' include.
2758 (register_descriptor_iter_find): New function.
2759 (register_descriptor_iterator_object_methods): New static global
2760 methods array.
2761 (register_descriptor_iterator_object_type): Add pointer to methods
2762 array.
2763
ddce1758
JB
27642020-07-27 John Baldwin <jhb@FreeBSD.org>
2765
2766 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2767 for all architectures on FreeBSD 11.3 and later.
2768
a4089f52
TT
27692020-07-27 Tom Tromey <tromey@adacore.com>
2770
2771 * gcore.h (load_corefile): Don't declare.
2772
95420d30
TV
27732020-07-27 Tom de Vries <tdevries@suse.de>
2774
2775 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2776 * config.in: Regenerate.
2777 * configure: Regenerate.
2778
05a6b8c2
EZ
27792020-07-26 Eli Zaretskii <eliz@gnu.org>
2780
2781 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2782 ws2tcpip.h. When checking whether socklen_t type is defined, use
2783 ws2tcpip.h if it is available and sys/socket.h isn't.
2784 * configure: Regenerate.
2785 * config.in: Regenerate.
2786
e79eb02f
AB
27872020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2788
2789 PR fortran/23051
2790 PR fortran/26139
2791 * valops.c (value_ind): Pass address to
2792 readjust_indirect_value_type.
2793 * value.c (readjust_indirect_value_type): Make parameter
2794 non-const, and add extra address parameter. Resolve original type
2795 before using it.
2796 * value.h (readjust_indirect_value_type): Update function
2797 signature and comment.
2798
876518dd
TV
27992020-07-25 Tom de Vries <tdevries@suse.de>
2800
2801 PR symtab/26243
2802 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2803 entries.
2804
f6720b1c
AM
28052020-07-24 Aaron Merey <amerey@redhat.com>
2806
2807 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2808 * configure: Rebuild.
2809
513487e1
KB
28102020-07-23 Kevin Buettner <kevinb@redhat.com>
2811
2812 PR corefiles/26294
2813 * corelow.c (_initialize_corelow): Add period to help text
2814 for "maintenance print core-file-backed-mappings".
2815
e7bc9db8
PA
28162020-07-23 Pedro Alves <pedro@palves.net>
2817
2818 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2819 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2820 meanwhile.
2821 * frame.c (frame_cache_generation, get_frame_cache_generation):
2822 New.
2823 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2824 (get_prev_frame_if_no_cycle): On exception, don't touch
2825 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2826 * frame.h (get_frame_cache_generation): Declare.
2827
90fcc466
TV
28282020-07-23 Tom de Vries <tdevries@suse.de>
2829
2830 PR tui/26282
2831 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2832 New default constructor.
2833
78344df7
AB
28342020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2835
2836 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2837 exclude non-statement entries.
2838
b089853a
KB
28392020-07-22 Kevin Buettner <kevinb@redhat.com>
2840
2841 * NEWS (New commands): Mention new command
2842 "maintenance print core-file-backed-mappings".
2843
09c2f5d4
KB
28442020-07-22 Kevin Buettner <kevinb@redhat.com>
2845
2846 * corelow.c (gdbcmd.h): Include.
2847 (core_target::info_proc_mappings): New method.
2848 (get_current_core_target): New function.
2849 (maintenance_print_core_file_backed_mappings): New function.
2850 (_initialize_corelow): Add core-file-backed-mappings to
2851 "maint print" commands.
2852
9c5ec5c2 28532020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 2854
9c5ec5c2
KB
2855 * linux-tdep.c (dump_note_entry_p): New function.
2856 (linux_dump_mapping_p_ftype): New typedef.
2857 (linux_find_memory_regions_full): Add new parameter,
2858 should_dump_mapping_p.
2859 (linux_find_memory_regions): Adjust call to
2860 linux_find_memory_regions_full.
2861 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2862 call to linux_find_memory_regions_full.
2863
db082f59
KB
28642020-07-22 Kevin Buettner <kevinb@redhat.com>
2865
2866 * corelow.c (solist.h, unordered_map): Include.
2867 (class core_target): Add field m_core_file_mappings and
2868 method build_file_mappings.
2869 (core_target::core_target): Call build_file_mappings.
2870 (core_target::~core_target): Free memory associated with
2871 m_core_file_mappings.
2872 (core_target::build_file_mappings): New method.
2873 (core_target::xfer_partial): Use m_core_file_mappings
2874 for memory transfers.
2875 * linux-tdep.c (linux_read_core_file_mappings): New
2876 function.
2877 (linux_core_info_proc_mappings): Rewrite to use
2878 linux_read_core_file_mappings.
2879 (linux_init_abi): Register linux_read_core_file_mappings.
2880
7e183d27
KB
28812020-07-22 Kevin Buettner <kevinb@redhat.com>
2882
2883 * arch-utils.c (default_read_core_file_mappings): New function.
2884 * arch-utils.c (default_read_core_file_mappings): Declare.
2885 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
2886 * gdbarch.h, gdbarch.c: Regenerate.
2887
2735d421
KB
28882020-07-22 Kevin Buettner <kevinb@redhat.com>
2889
2890 PR corefiles/25631
2891 * corelow.c (core_target:xfer_partial): Revise
2892 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
2893 case after first checking the stratum beneath the core
2894 target.
2895 (has_all_memory): Return true.
2896 * target.c (raw_memory_xfer_partial): Revise comment
2897 regarding use of has_all_memory.
2898
e56cb451
KB
28992020-07-22 Kevin Buettner <kevinb@redhat.com>
2900
2901 * exec.h (section_table_xfer_memory): Revise declaration,
2902 replacing section name parameter with an optional callback
2903 predicate.
2904 * exec.c (section_table_xfer_memory): Likewise.
2905 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2906 of section_table_xfer_memory.
2907
32fa152e
TT
29082020-07-22 Tom Tromey <tromey@adacore.com>
2909
2910 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2911 lookup_symbol_search_name.
2912
a67a1c41
AB
29132020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2914
2915 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2916 redundant local variable.
2917 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2918 reference, not pointer, update code accordingly.
2919
a7b4ff4f
SM
29202020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2921 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2922
2923 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2924 * jit.c (jit_breakpoint_re_set_internal): Use the
2925 `skip_jit_symbol_lookup` field.
2926
2340e834
SM
29272020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2928 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2929
2930 * jit.c (jit_read_descriptor): Define the descriptor address once,
2931 use twice.
2932 (jit_breakpoint_deleted): Move the declaration of the loop variable
2933 `iter` into the loop header.
2934 (jit_breakpoint_re_set_internal): Move the declaration of the local
2935 variable `objf_data` to the first point of definition.
2936 (jit_event_handler): Move the declaration of local variables
2937 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2938 Rename `objf` to `jited`.
2939
c1072906
SM
29402020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2941
2942 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2943 Remove.
2944 * jit.c (get_jiter_objfile_data): Update.
2945
c8474dc3
TBA
29462020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2947 Simon Marchi <simon.marchi@polymtl.ca>
2948
2949 * jit.c (struct jit_program_space_data): Remove.
2950 (jit_program_space_key): Remove.
2951 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2952 stuff.
2953 (get_jit_program_space_data): Remove.
2954 (jit_breakpoint_deleted): Iterate on all of the program space's
2955 objfiles.
2956 (jit_inferior_init): Likewise.
2957 (jit_breakpoint_re_set_internal): Likewise. Also change return
2958 type to void.
2959 (jit_breakpoint_re_set): Pass current_program_space to
2960 jit_breakpoint_re_set_internal.
2961
77208eb7
SM
29622020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2963
2964 * jit.h (struct jiter_objfile_data) <cached_code_address,
2965 jit_breakpoint>: Move to here from ...
2966 * jit.c (jit_program_space_data): ... here.
2967 (jiter_objfile_data::~jiter_objfile_data): Update.
2968 (jit_breakpoint_deleted): Update.
2969 (jit_breakpoint_re_set_internal): Update.
2970
8c1c720f
SM
29712020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2972
2973 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2974 checks.
2975 (jit_read_descriptor): Remove NULL check.
2976 (jit_event_handler): Add an assertion.
2977
0e74a041
SM
29782020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2979
2980 * jit.h (struct jit_objfile_data): Split into...
2981 (struct jiter_objfile_data): ... this ...
2982 (struct jited_objfile_data): ... and this.
2983 * objfiles.h (struct objfile) <jit_data>: Remove.
2984 <jiter_data, jited_data>: New fields.
2985 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2986 (jiter_objfile_data::~jiter_objfile_data): ... this.
2987 (get_jit_objfile_data): Rename to ...
2988 (get_jiter_objfile_data): ... this.
2989 (add_objfile_entry): Update.
2990 (jit_read_descriptor): Use get_jiter_objfile_data.
2991 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2992 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2993 (jit_inferior_exit_hook): Use objfile's jited_data field.
2994
238b5c9f
SM
29952020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2996
2997 * jit.h: Forward-declare `struct minimal_symbol`.
2998 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2999 constructor, destructor, and an objfile* field.
3000 * jit.c (jit_objfile_data): Remove.
3001 (struct jit_objfile_data): Migrate from here to jit.h.
3002 (jit_objfile_data::~jit_objfile_data): New destructor
3003 implementation with code moved from free_objfile_data.
3004 (free_objfile_data): Delete.
3005 (get_jit_objfile_data): Update to use the jit_data field of objfile.
3006 (jit_find_objf_with_entry_addr): Ditto.
3007 (jit_inferior_exit_hook): Ditto.
3008 (_initialize_jit): Remove the call to
3009 register_objfile_data_with_cleanup.
3010 * objfiles.h (struct objfile) <jit_data>: New field.
3011
fe053b9e
TBA
30122020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3013
3014 * jit.h: Forward-declare `struct objfile`.
3015 (jit_event_handler): Add a second parameter, the JITer objfile.
3016 * jit.c (jit_read_descriptor): Change the signature to take the
3017 JITer objfile as an argument instead of the jit_program_space_data.
3018 (jit_inferior_init): Update the call to jit_read_descriptor.
3019 (jit_event_handler): Use the new JITer objfile argument when calling
3020 jit_read_descriptor.
3021 * breakpoint.c (handle_jit_event): Update the call to
3022 jit_event_handler to pass the JITer objfile.
3023
4cec0c66
JB
30242020-07-21 John Baldwin <jhb@FreeBSD.org>
3025
3026 * gdbarch.c: Regenerate.
3027 * gdbarch.h: Regenerate.
3028 * gdbarch.sh (handle_segmentation_fault): Remove method.
3029 * infrun.c (handle_segmentation_fault): Remove.
3030 (print_signal_received_reason): Remove call to
3031 handle_segmentation_fault.
3032
0e42f66a
JB
30332020-07-21 John Baldwin <jhb@FreeBSD.org>
3034
3035 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3036 Rename to sparc64_linux_report_signal_info and add siggnal
3037 argument.
3038 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
3039 instead of sparc64_linux_handle_segmentation_fault.
3040
77bdfeb2
JB
30412020-07-21 John Baldwin <jhb@FreeBSD.org>
3042
3043 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
3044 i386_linux_report_signal_info instead of
3045 i386_linux_handle_segmentation_fault.
3046 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
3047 to i386_linux_report_signal_info and add siggnal argument.
3048 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
3049 of i386_linux_handle_segmentation_fault.
3050 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
3051 to i386_linux_report_signal_info and add siggnal argument.
3052
ad97bfc5
JB
30532020-07-21 John Baldwin <jhb@FreeBSD.org>
3054
3055 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
3056 hook if present.
3057
272bb05c
JB
30582020-07-21 John Baldwin <jhb@FreeBSD.org>
3059
3060 * gdbarch.c: Regenerate.
3061 * gdbarch.h: Regenerate.
3062 * gdbarch.sh (report_signal_info): New method.
3063 * infrun.c (print_signal_received_reason): Invoke gdbarch
3064 report_signal_info hook if present.
3065
baf8791e
AB
30662020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3067
3068 * python/py-registers.c : Add 'unordered_map' include.
3069 (gdbpy_new_reggroup): Renamed to...
3070 (gdbpy_get_reggroup): ...this. Update to only create register
3071 group descriptors when needed.
3072 (gdbpy_reggroup_iter_next): Update.
3073
f7306dac
AB
30742020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3075
3076 * python/py-registers.c (gdbpy_register_object_data): New static
3077 global.
3078 (gdbpy_register_object_data_init): New function.
3079 (gdbpy_new_register_descriptor): Renamed to...
3080 (gdbpy_get_register_descriptor): ...this, and update to reuse
3081 existing register descriptors where possible.
3082 (gdbpy_register_descriptor_iter_next): Update.
3083 (gdbpy_initialize_registers): Register new gdbarch data.
3084
05c309a8
SM
30852020-07-21 Simon Marchi <simon.marchi@efficios.com>
3086
3087 * linux-nat.c (stopped_pids): Make static.
3088
d1fd641e
SM
30892020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3090
3091 PR ada/26235
3092 * gdbtypes.c (ada_discrete_type_low_bound,
3093 ada_discrete_type_high_bound): Handle undefined bounds.
3094
1de14d77
KR
30952020-07-21 Kamil Rytarowski <n54@gmx.com>
3096
3097 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
3098 declaration.
3099 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
3100 function.
3101
ed810cc7
JB
31022020-07-20 John Baldwin <jhb@FreeBSD.org>
3103
3104 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
3105 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
3106 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
3107 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
3108 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
3109 method.
3110
ae5369e7
LC
31112020-07-20 Ludovic Courtès <ludo@gnu.org>
3112
3113 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
3114 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
3115 which are deprecated in Guile 3.0.
3116 * configure.ac (try_guile_versions): Add "guile-3.0".
3117 * configure (try_guile_versions): Regenerate.
3118 * NEWS: Update entry.
3119
68cf161c
LC
31202020-07-20 Ludovic Courtès <ludo@gnu.org>
3121 Doug Evans <dje@google.com>
3122
3123 PR gdb/21104
3124 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
3125 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
3126 USING_GUILE_BEFORE_2_2.
3127 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
3128 Change type to 'scm_t_port_type *'.
3129 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
3130 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
3131 parameter and honor it. Update callers.
3132 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
3133 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
3134 functions.
3135 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
3136 USING_GUILE_BEFORE_2_2.
3137 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
3138 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
3139 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
3140 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
3141 and 'SCM_PORT_TYPE'.
3142 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
3143 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
3144 (gdbscm_memory_port_read, gdbscm_memory_port_write)
3145 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
3146 [!USING_GUILE_BEFORE_2_2]: New functions.
3147 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
3148 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
3149 'gdbscm_memory_port_read'.
3150 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
3151 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
3152 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
3153 function.
3154 (ioscm_init_memory_port): Remove.
3155 (ioscm_init_memory_port_stream): New function
3156 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
3157 function.
3158 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3159 Return scm_from_uint (0).
3160 (gdbscm_set_memory_port_read_buffer_size_x)
3161 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3162 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3163 Return scm_from_uint (0).
3164 (gdbscm_set_memory_port_write_buffer_size_x)
3165 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3166 * configure.ac (try_guile_versions): Add "guile-2.2".
3167 * configure: Regenerate.
3168 * NEWS: Add entry.
3169
aee91db3
TT
31702020-07-18 Tom Tromey <tom@tromey.com>
3171
3172 * linux-nat.c (linux_multi_process): Remove.
3173 (linux_nat_target::supports_multi_process): Return true.
3174
0e267416
AB
31752020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3176
3177 * arch/riscv.c (riscv_tdesc_cache): Change map type.
3178 (riscv_lookup_target_description): Return pointer out of
3179 unique_ptr.
3180 * target-descriptions.c (allocate_target_description): Add
3181 comment.
3182 (target_desc_deleter::operator()): Likewise.
3183 * target-descriptions.h (struct target_desc_deleter): Moved to
3184 gdbsupport/tdesc.h.
3185 (target_desc_up): Likewise.
3186
f80c8ec4
TT
31872020-07-17 Tom Tromey <tromey@adacore.com>
3188
3189 * linux-nat.c (linux_nat_target::supports_non_stop)
3190 (linux_nat_target::always_non_stop_p): Use "true".
3191 (linux_nat_target::supports_disable_randomization): Use "true" and
3192 "false".
3193
d0ce17d8
CT
31942020-07-16 Caroline Tice <cmtice@google.com>
3195
3196 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3197 (RNGLIST_HEADER_SIZE64): New constant definition.
3198 (struct dwop_section_names): Add rnglists_dwo.
3199 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3200 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3201 (struct dwo_sections): Add rnglists field.
3202 (read_attribut_reprocess): Add tag parameter.
3203 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3204 (cu_debug_rnglists_section): New function (decl & definition).
3205 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3206 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3207 die whose range is being checked; get rnglist section from
3208 cu_debug_rnglists_section, to get from either objfile or dwo file as
3209 appropriate. Add cases for DW_RLE_base_addressx,
3210 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3211 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3212 test inside if-condition and updating complaint message.
3213 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3214 dwarf2_rnglists_process.
3215 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3216 dwarf2_ranges_process.
3217 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3218 need_ranges_base and update comment appropriately. Also pass die tag
3219 to dwarf2_ranges_read.
3220 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3221 need_ranges_base and update comment appropriately. Also pass die tag
3222 to dwarf2_ranges_process.
3223 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3224 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3225 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3226 need_ranges_base and update comment appropriately. Also pass die tag
3227 to read_attribute_reprocess and dwarf2_ranges_read.
3228 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3229 and update function comment appropriately.
3230 (read_loclist_index): Call read_loclists_rnglists_header instead of
3231 read_loclist_header.
3232 (read_rnglist_index): New function.
3233 (read_attribute_reprocess): Add tag parameter. Add code for
3234 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3235 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3236
3dcc261c
AB
32372020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3238
3239 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3240 being resolved.
3241
ccb9eba6
AB
32422020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3243
3244 * arch-utils.c (show_architecture): Update formatting of messages.
3245
cf88be68
SM
32462020-07-12 Simon Marchi <simon.marchi@efficios.com>
3247
3248 * gdbtypes.h (struct type) <bounds>: Handle array and string
3249 types.
3250 * ada-lang.c (assign_aggregate): Use type::bounds on
3251 array/string type.
3252 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3253 * c-varobj.c (c_number_of_children): Likewise.
3254 (c_describe_child): Likewise.
3255 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3256 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3257 (f_type_print_base): Likewise.
3258 * f-valprint.c (f77_array_offset_tbl): Likewise.
3259 (f77_get_upperbound): Likewise.
3260 (f77_print_array_1): Likewise.
3261 * guile/scm-type.c (gdbscm_type_range): Likewise.
3262 * m2-typeprint.c (m2_array): Likewise.
3263 (m2_is_long_set_of_type): Likewise.
3264 * m2-valprint.c (get_long_set_bounds): Likewise.
3265 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3266 * python/py-type.c (typy_range): Likewise.
3267 * rust-lang.c (rust_internal_print_type): Likewise.
3268 * type-stack.c (type_stack::follow_types): Likewise.
3269 * valarith.c (value_subscripted_rvalue): Likewise.
3270 * valops.c (value_cast): Likewise.
3271
509971ae
SM
32722020-07-12 Simon Marchi <simon.marchi@efficios.com>
3273
3274 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3275 callers to use the equivalent accessor methods.
3276
107406b7
SM
32772020-07-12 Simon Marchi <simon.marchi@efficios.com>
3278
3279 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3280 (struct type) <bit_stride>: New method.
3281 (TYPE_BIT_STRIDE): Remove.
3282 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3283
bb789949
SM
32842020-07-12 Simon Marchi <simon.marchi@efficios.com>
3285
3286 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3287 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3288 callers to use the equivalent accessor methods instead.
3289
39498edb
SM
32902020-07-12 Simon Marchi <simon.marchi@efficios.com>
3291
3292 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3293 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3294 callers to use the equivalent accessor methods instead.
3295
3b606f38
SM
32962020-07-12 Simon Marchi <simon.marchi@efficios.com>
3297
3298 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3299 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3300 to use dynamic_prop::kind.
3301
064d9cb9
SM
33022020-07-12 Simon Marchi <simon.marchi@efficios.com>
3303
3304 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3305 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3306 to get the bound property's kind and check against
3307 PROP_UNDEFINED.
3308
5537ddd0
SM
33092020-07-12 Simon Marchi <simon.marchi@efficios.com>
3310
3311 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3312 all callers to use type::range_bounds followed by
3313 dynamic_prop::{low,high}.
3314
8c2e4e06
SM
33152020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3316
3317 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3318 const_val, set_const_val, baton, set_locexpr, set_loclist,
3319 set_addr_offset, variant_parts, set_variant_parts,
3320 original_type, set_original_type>: New methods.
3321 <kind>: Rename to...
3322 <m_kind>: ... this. Update all users to use the new methods
3323 instead.
3324 <data>: Rename to...
3325 <m_data>: ... this. Update all users to use the new methods
3326 instead.
3327
7c6f2712
SM
33282020-07-12 Simon Marchi <simon.marchi@efficios.com>
3329
3330 * gdbtypes.c (get_discrete_bounds): Return failure if
3331 the range type's bounds are not both defined and constant
3332 values.
3333 (get_array_bounds): Update comment. Remove undefined bound check.
3334
599088e3
SM
33352020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3336
3337 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3338 the type::bounds method directly.
3339
c4dfcb36
SM
33402020-07-12 Simon Marchi <simon.marchi@efficios.com>
3341
3342 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3343 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3344 are used to set the range type's bounds to use set_bounds.
3345
0a278aa7
PW
33462020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3347
3348 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3349
cce20f10
PA
33502020-07-10 Pedro Alves <pedro@palves.net>
3351
3352 * gdbthread.h (inferior_ref): Define.
3353 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3354 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3355 * thread.c
3356 (scoped_restore_current_thread::restore):
3357 Adjust to gdb::ref_ptr.
3358 (scoped_restore_current_thread::~scoped_restore_current_thread):
3359 Remove manual decref handling.
3360 (scoped_restore_current_thread::scoped_restore_current_thread):
3361 Adjust to use
3362 inferior_ref::new_reference/thread_info_ref::new_reference.
3363 Incref the thread before calling get_frame_id instead of after.
3364 Let TARGET_CLOSE_ERROR propagate.
3365
6d7aa592
PA
33662020-07-10 Pedro Alves <pedro@palves.net>
3367
3368 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3369 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3370 NOT_AVAILABLE_ERROR.
3371 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3372 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3373
b3e3a4c1
SM
33742020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3375 Pedro Alves <pedro@palves.net>
3376
3377 PR gdb/26199
3378 * infrun.c (threads_are_resumed_pending_p): Delete.
3379 (do_target_wait): Remove threads_are_executing and
3380 threads_are_resumed_pending_p checks from the inferior_matches
3381 lambda. Update comments.
3382
d6cc5d98
PA
33832020-07-10 Pedro Alves <pedro@palves.net>
3384
3385 PR gdb/26199
3386 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3387 executing threads.
3388
7d3badc6
PA
33892020-07-10 Pedro Alves <pedro@palves.net>
3390
3391 PR gdb/26199
3392 * infrun.c (handle_no_resumed): Handle multiple targets.
3393
42bd97a6
PA
33942020-07-10 Pedro Alves <pedro@palves.net>
3395
3396 PR gdb/26199
3397 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3398 target_is_async_p.
3399
43667cc6
PA
34002020-07-10 Pedro Alves <pedro@palves.net>
3401
3402 PR gdb/26199
3403 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3404 threads, not all threads.
3405
96118d11
PA
34062020-07-10 Pedro Alves <pedro@palves.net>
3407
3408 PR gdb/26199
3409 * remote.c (remote_target::open_1): Pass remote target pointer as
3410 data to create_async_event_handler.
3411 (remote_async_inferior_event_handler): Mark async event handler
3412 before returning if the remote target still has either pending
3413 events or unacknowledged notifications.
3414
54904d81
JB
34152020-07-10 John Baldwin <jhb@FreeBSD.org>
3416
3417 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3418 declaration.
3419 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3420 function.
3421
f37e5866
JB
34222020-07-09 John Baldwin <jhb@FreeBSD.org>
3423
3424 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3425 inferior_ptid.
3426
fc238d4a
JB
34272020-07-09 John Baldwin <jhb@FreeBSD.org>
3428
3429 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3430 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3431 AT_FREEBSD_PS_STRINGS.
3432
6e2469ff
HD
34332020-07-08 Hannes Domani <ssbssa@yahoo.de>
3434
3435 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3436 of debugfile path on Windows.
3437
d1076c41
JB
34382020-07-08 John Baldwin <jhb@FreeBSD.org>
3439
3440 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3441 argument to 'data'.
3442
15f3b077
TT
34432020-07-08 Tom Tromey <tromey@adacore.com>
3444
3445 * ada-lang.c (ada_exception_message_1): Use read_memory.
3446
9fc501fd
AB
34472020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3448
3449 PR python/22748
3450 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3451 special handling for inline frames.
3452 * findvar.c (value_of_register_lazy): Skip inline frames when
3453 creating lazy register values.
3454 * frame.c (frame_id_computed_p): Delete definition.
3455 * frame.h (frame_id_computed_p): Delete declaration.
3456
64cb3757
AB
34572020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3458
3459 * NEWS: Mention additions to Python API.
3460 * python/py-arch.c (archpy_register_groups): New function.
3461 (arch_object_methods): Add 'register_groups' method.
3462 * python/py-registers.c (reggroup_iterator_object): New struct.
3463 (reggroup_object): New struct.
3464 (gdbpy_new_reggroup): New function.
3465 (gdbpy_reggroup_to_string): New function.
3466 (gdbpy_reggroup_name): New function.
3467 (gdbpy_reggroup_iter): New function.
3468 (gdbpy_reggroup_iter_next): New function.
3469 (gdbpy_new_reggroup_iterator): New function
3470 (gdbpy_initialize_registers): Register new types.
3471 (reggroup_iterator_object_type): Define new Python type.
3472 (gdbpy_reggroup_getset): New static global.
3473 (reggroup_object_type): Define new Python type.
3474 * python/python-internal.h
3475
0f767f94
AB
34762020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3477
3478 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3479 * python/py-arch.c (archpy_registers): New function.
3480 (arch_object_methods): Add 'registers' method.
3481 * python/py-registers.c: New file.
3482 * python/python-internal.h
3483 (gdbpy_new_register_descriptor_iterator): Declare.
3484 (gdbpy_initialize_registers): Declare.
3485 * python/python.c (do_start_initialization): Call
3486 gdbpy_initialize_registers.
3487 * NEWS: Mention additions to the Python API.
3488
87dbc774
AB
34892020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3490
3491 * NEWS: Mention new Python API method.
3492 * python/py-unwind.c (pending_framepy_architecture): New function.
3493 (pending_frame_object_methods): Add architecture method.
3494
3bc98c0c
AB
34952020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3496
3497 * gdbarch.c: Regenerate.
3498 * gdbarch.h: Regenerate.
3499 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3500 (gdbarch_data): Use internal_error for the case where
3501 deprecated_set_gdbarch_data was originally needed.
3502 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3503 and use passed in obstack.
3504 (libunwind_frame_set_descr): Should no longer get back NULL from
3505 gdbarch_data.
3506 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3507 type.
3508 * user-regs.c (user_regs_init): Update parameters, and use passed
3509 in obstack.
3510 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3511 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3512
d8cc8af6
TV
35132020-07-06 Tom de Vries <tdevries@suse.de>
3514
3515 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3516 End-Of-Sequence in lte_is_less_than.
3517 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3518 "gdb: Don't reorder line table entries too much when sorting".
3519
947f7597
TV
35202020-07-06 Tom de Vries <tdevries@suse.de>
3521
3522 PR tui/26205
3523 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3524
1e7c1b22
TV
35252020-07-05 Tom de Vries <tdevries@suse.de>
3526
3527 PR build/26187
3528 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3529 std::uncaught_exceptions instead of deprecated
3530 std::uncaught_exception.
3531
a36158ec
SM
35322020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3533
3534 * macroexp.h (macro_stringify): Return
3535 gdb::unique_xmalloc_ptr<char>.
3536 * macroexp.c (macro_stringify): Likewise.
3537 * macrotab.c (fixup_definition): Update.
3538
14d960c8
SM
35392020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3540
3541 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3542 (lex_one_token): Update.
3543 * macroexp.c (struct macro_buffer) <release>: Return
3544 gdb::unique_xmalloc_ptr<char>.
3545 (macro_stringify): Update.
3546 (macro_expand): Update.
3547 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3548 * macroexp.h (macro_expand_next): Likewise.
3549
211d5b1c
SM
35502020-07-02 Simon Marchi <simon.marchi@efficios.com>
3551
3552 * macroexp.h (macro_lookup_ftype): Remove.
3553 (macro_expand, macro_expand_once, macro_expand_next): Remove
3554 lookup function parameters, add scope parameter.
3555 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3556 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3557 * macroscope.h (standard_macro_lookup): Change parameter type
3558 to macro_scope.
3559 * macroscope.c (standard_macro_lookup): Likewise.
3560 * c-exp.y (lex_one_token): Update.
3561 * macrocmd.c (macro_expand_command): Likewise.
3562 (macro_expand_once_command): Likewise.
3563
b1a35af2
SM
35642020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3565
3566 * inf-loop.c (inferior_event_handler): Remove client_data param.
3567 * inf-loop.h (inferior_event_handler): Likewise.
3568 * infcmd.c (step_1): Adjust.
3569 * infrun.c (proceed): Adjust.
3570 (fetch_inferior_event): Remove client_data param.
3571 (infrun_async_inferior_event_handler): Adjust.
3572 * infrun.h (fetch_inferior_event): Remove `void *` param.
3573 * linux-nat.c (handle_target_event): Adjust.
3574 * record-btrace.c (record_btrace_handle_async_inferior_event):
3575 Adjust.
3576 * record-full.c (record_full_async_inferior_event_handler):
3577 Adjust.
3578 * remote.c (remote_async_inferior_event_handler): Adjust.
3579
1cdf9e33
TT
35802020-07-01 Tom Tromey <tom@tromey.com>
3581
3582 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3583 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3584
32c1e210
TT
35852020-07-01 Tom Tromey <tom@tromey.com>
3586
3587 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3588 tui_gen_win_info.
3589 (tui_win_info::make_window): Merge with
3590 tui_gen_win_info::make_window.
3591 (tui_win_info::make_visible): Move from tui_gen_win_info.
3592 * tui/tui-win.c (tui_win_info::max_width): Move from
3593 tui_gen_win_info.
3594 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3595 type.
3596 <window_factory>: Likewise.
3597 * tui/tui-layout.c (tui_win_info::resize): Move from
3598 tui_gen_win_info.
3599 (make_standard_window): Change return type.
3600 (get_locator_window, tui_get_window_by_name): Likewise.
3601 (tui_layout_window::apply): Remove a cast.
3602 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3603 (struct tui_win_info): Merge with tui_gen_win_info.
3604 (struct tui_gen_win_info): Remove.
3605
a30cb6da
TT
36062020-07-01 Tom Tromey <tom@tromey.com>
3607
3608 * tui/tui-stack.h (struct tui_locator_window): Derive from
3609 tui_win_info.
3610 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3611 <can_box>: New method.
3612
1eb2161f
TT
36132020-07-01 Tom Tromey <tom@tromey.com>
3614
3615 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3616
7134f2eb
TT
36172020-07-01 Tom Tromey <tom@tromey.com>
3618
3619 * tui/tui-regs.c (tui_data_window::display_registers_from)
3620 (tui_data_window::display_registers_from)
3621 (tui_data_window::first_data_item_displayed)
3622 (tui_data_window::delete_data_content_windows): Update.
3623 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3624 Remove.
3625 (tui_data_window::check_register_values): Update.
3626 (tui_data_item_window::rerender): Add parameters. Update.
3627 (tui_data_item_window::refresh_window): Remove.
3628 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3629 virtual.
3630 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3631 tui_gen_win_info.
3632 <refresh_window, max_height, min_height>: Remove.
3633 <rerender>: Add parameters.
3634 <x, y, visible>: New members.
3635 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3636 <m_item_width>: New member.
3637
22b7b041
TT
36382020-07-01 Tom Tromey <tom@tromey.com>
3639
3640 * tui/tui-regs.c (tui_data_window::show_register_group)
3641 (tui_data_window::check_register_values): Update.
3642 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3643 from item_no.
3644
c9753adb
TT
36452020-07-01 Tom Tromey <tom@tromey.com>
3646
3647 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3648 useless "if".
3649
9ab26b4a
TT
36502020-07-01 Tom Tromey <tom@tromey.com>
3651
3652 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3653 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3654
e555083f
TT
36552020-07-01 Tom Tromey <tom@tromey.com>
3656
3657 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3658 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3659 (struct tui_line_or_address): Move from tui-data.h.
3660 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3661 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3662 (tui_cmd_window, tui_source_window_base, tui_source_window)
3663 (tui_disasm_window): Don't declare.
3664 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3665 to tui-winsource.h.
3666 (SINGLE_KEY): Move to tui-stack.c.
3667
7a02bab7
TT
36682020-07-01 Tom Tromey <tom@tromey.com>
3669
3670 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3671 std::string.
3672 * tui/tui-regs.c (class tab_expansion_file): New.
3673 (tab_expansion_file::write): New method.
3674 (tui_register_format): Change return type. Use
3675 tab_expansion_file.
3676 (tui_get_register, tui_data_window::display_registers_from)
3677 (tui_data_item_window::rerender): Update.
3678 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3679 * tui/tui-io.c (tui_expand_tabs): Remove.
3680
ea68593b
TT
36812020-07-01 Tom Tromey <tom@tromey.com>
3682
3683 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3684
a8caed5d
FS
36852020-07-01 Fangrui Song <maskray@google.com>
3686
3687 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3688
9cdf9820
AKS
36892020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3690
3691 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3692 forms for DW_AT_associated and DW_AT_allocated attributes,
3693 which is already checked in function attr_to_dynamic_prop.
3694
a1520ad8
TT
36952020-06-30 Tom Tromey <tromey@adacore.com>
3696
3697 * dwarf2/read.c (quirk_rust_enum): Correctly call
3698 alloc_rust_variant for default-less enum.
3699
5ac58899
TT
37002020-06-30 Tom Tromey <tromey@adacore.com>
3701
3702 PR build/26183:
3703 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3704 gdb::to_string.
3705
19b187a9
SM
37062020-06-29 Simon Marchi <simon.marchi@efficios.com>
3707
3708 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3709 * gdbarch.h: Re-generate.
3710
cd4c4c07
TT
37112020-06-28 Tom Tromey <tom@tromey.com>
3712
3713 * command.h (cmd_types): Remove.
3714 (cmd_type): Don't declare.
3715 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3716 typedef.
3717 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3718 * cli/cli-decode.c (cmd_type): Remove.
3719
05779d57
PA
37202020-06-27 Pedro Alves <palves@redhat.com>
3721
3722 * fork-child.c (prefork_hook): Adjust.
3723 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3724 Delete.
3725 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3726 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3727 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3728 Remove declarations.
3729 (struct inferior) <set_tty, tty>: New methods.
3730 (struct inferior) <terminal>: Rename to ...
3731 (struct inferior) <m_terminal>: ... this and make private.
3732 * main.c (captured_main_1): Adjust.
3733 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3734 (mi_cmd_inferior_tty_show): Adjust.
3735 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3736 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3737
1776e3e5
NA
37382020-06-26 Nick Alcock <nick.alcock@oracle.com>
3739
3740 * configure.ac: Add --enable-libctf: handle --disable-static
3741 properly.
3742 * acinclude.m4: sinclude ../config/enable.m4.
3743 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3744 (LIBCTF): Substitute in.
3745 (CTF_DEPS): New, likewise.
3746 (CLIBS): libctf needs symbols from libbfd: move earlier.
3747 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3748 flags.
3749 * ctfread.c: Surround in ENABLE_LIBCTF.
3750 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3751 * configure: Regenerate.
3752 * config.in: Likewise.
3753
58373b80
SM
37542020-06-25 Simon Marchi <simon.marchi@efficios.com>
3755
3756 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3757
277474ee
SM
37582020-06-25 Simon Marchi <simon.marchi@efficios.com>
3759
3760 * inferior.h (struct inferior) <terminal>: Change type to
3761 gdb::unique_xmalloc_ptr<char>.
3762 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3763 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3764 field, adjust to unique pointer.
3765 (get_inferior_io_terminal): Adjust to unique pointer.
3766
6d74da72
AB
37672020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3768
3769 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3770 registers, not just the known core set of registers.
3771
2e52d038
AB
37722020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3773
3774 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3775 fflags, frm, and fcsr registers.
3776 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3777 restore groups.
3778 (riscv_tdesc_unknown_reg): New function.
3779 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3780 tdesc_use_registers.
3781 * riscv-tdep.h (struct gdbarch_tdep): Add
3782 unknown_csrs_first_regnum, unknown_csrs_count,
3783 duplicate_fflags_regnum, duplicate_frm_regnum, and
3784 duplicate_fcsr_regnum fields.
3785
be64fd07
AB
37862020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3787
3788 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3789 callback, use the callback (when not null) to help number unknown
3790 registers.
3791 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3792 (tdesc_use_registers): Add extra parameter to declaration.
3793
3b9fce96
AB
37942020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3795
3796 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3797 in the file.
3798 (class riscv_pending_register_alias): Likewise.
3799 (riscv_register_feature::register_info): Change 'required_p' field
3800 to 'required', and change its type. Add 'check' member function.
3801 (riscv_register_feature::register_info::check): Define new member
3802 function.
3803 (riscv_xreg_feature): Change initialisation of 'required' field.
3804 (riscv_freg_feature): Likewise.
3805 (riscv_virtual_feature): Likewise.
3806 (riscv_csr_feature): Likewise.
3807 (riscv_check_tdesc_feature): Take extra parameter, the csr
3808 tdesc_feature, rewrite the function to use the new
3809 riscv_register_feature::register_info::check function.
3810 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3811
865bad26
AB
38122020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3813
3814 * features/Makefile: Remove all references to the deleted files
3815 below.
3816 * features/riscv/32bit-csr.c: Deleted.
3817 * features/riscv/32bit-csr.xml: Deleted.
3818 * features/riscv/64bit-csr.c: Deleted.
3819 * features/riscv/64bit-csr.xml: Deleted.
3820 * features/riscv/rebuild-csr-xml.sh: Deleted.
3821
ed69cbc8
AB
38222020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3823
3824 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3825 whitespace error for declaration of names member variable.
3826 (struct riscv_register_feature): Add new prefer_first_name member
3827 variable, and fix whitespace error in declaration of registers.
3828 (riscv_xreg_feature): Initialize prefer_first_name field.
3829 (riscv_freg_feature): Likewise.
3830 (riscv_virtual_feature): Likewise.
3831 (riscv_csr_feature): Likewise.
3832 (riscv_register_name): Expand on comments. Remove register name
3833 modifications for CSR and virtual registers.
3834
4445e8f5
AB
38352020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3836
3837 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3838 errors.
3839
767a879e
AB
38402020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3841
3842 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3843 riscv-opc.h.
3844 (class riscv_pending_register_alias): New class.
3845 (riscv_check_tdesc_feature): Take vector of pending aliases and
3846 populate it as appropriate.
3847 (riscv_setup_register_aliases): Delete.
3848 (riscv_gdbarch_init): Create vector of pending aliases and pass it
3849 to riscv_check_tdesc_feature in all cases. Use the vector to
3850 create the register aliases.
3851
bb6e55f3
RO
38522020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3853
3854 * sol2-tdep.c (sol2_static_transform_name): Remove.
3855 (sol2_init_abi): Don't register it.
3856 * gdbarch.sh (static_transform_name): Remove.
3857 * gdbarch.c, gdbarch.h: Regenerate.
3858
3859 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3860 gdbarch_static_transform_name.
3861 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3862 * stabsread.c (define_symbol) <'X'>: Remove.
3863 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
3864 handling.
3865 <'V'>: Likewise.
3866 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
3867 <'S'>: Remove call to gdbarch_static_transform_name.
3868
c6d36836
RO
38692020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3870
3871 * procfs.c (procfs_pre_trace): New function.
3872 (procfs_target::create_inferior): Pass it to fork_inferior.
3873
a7e6196b
RO
38742020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3875
3876 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
3877 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
3878 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
3879 sol2-tdep.o, sparc-sol2-tdep.o.
3880 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
3881 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
3882 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
3883 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
3884
d412e696
RO
38852020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3886
3887 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
3888 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
3889 Call sol2_init_abi.
3890 Remove calls to set_gdbarch_skip_solib_resolver,
3891 set_gdbarch_core_pid_to_str.
3892 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
3893 (i386_sol2_static_transform_name): Remove.
3894 (i386_sol2_init_abi): Call sol2_init_abi.
3895 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3896 set_gdbarch_static_transform_name,
3897 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3898 Use sol2_sigtramp_p.
3899 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
3900 (sol2_sigtramp_p): New function.
3901 (sol2_static_transform_name): New function.
3902 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3903 (sol2_init_abi): New function.
3904 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3905 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3906 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3907 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3908 (sparc_sol2_static_transform_name): Remove.
3909 (sparc32_sol2_init_abi): Call sol2_init_abi.
3910 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3911 set_gdbarch_static_transform_name,
3912 set_gdbarch_skip_solib_resolver,
3913 set_gdbarch_core_pid_to_str.
3914 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3915 (sparc_sol2_static_transform_name): Remove
3916 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3917 call sol2_sigtramp_p.
3918 (sparc64_sol2_init_abi): Call sol2_init_abi.
3919 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3920 set_gdbarch_static_transform_name,
3921 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3922
a8654e7d
PW
39232020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3924
3925 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3926 * exec.c (validate_exec_file): If from_tty, set both
3927 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3928 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3929 and from_tty, unconditionally ask a confirmation.
3930
caa7fd04
AB
39312020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3932
3933 * target-descriptions.c (tdesc_architecture_name): Protect against
3934 NULL pointer dereference.
3935 (maint_print_xml_tdesc_cmd): New function.
3936 (_initialize_target_descriptions): Register new 'maint print
3937 xml-tdesc' command and give it the filename completer.
3938 * NEWS: Mention new 'maint print xml-tdesc' command.
3939
fbf42f4e
AB
39402020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3941
3942 * target-descriptions.c (class tdesc_compatible_info): New class.
3943 (struct target_desc): Change type of compatible vector.
3944 (tdesc_compatible_p): Update for change in type of
3945 target_desc::compatible.
3946 (tdesc_compatible_info_list): New function.
3947 (tdesc_compatible_info_arch_name): New function.
3948 (tdesc_add_compatible): Update for change in type of
3949 target_desc::compatible.
3950 (print_c_tdesc::visit_pre): Likewise.
3951
20821f4e
AB
39522020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3953
3954 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3955 whitespace to underscore.
3956 (maint_print_c_tdesc_cmd): Use fake filename for target
3957 descriptions that came from the target.
3958 (_initialize_target_descriptions): Add filename command completion
3959 for 'maint print c-tdesc'.
3960
1fb5ee62
SM
39612020-06-23 Simon Marchi <simon.marchi@efficios.com>
3962
3963 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3964 lines.
3965
fc3ecb3e
SM
39662020-06-23 Simon Marchi <simon.marchi@efficios.com>
3967
3968 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3969 lines.
3970 (dwarf2_find_location_expression): Likewise.
3971 (call_site_parameter_matches): Likewise.
3972 (dwarf2_compile_expr_to_ax): Likewise.
3973 (disassemble_dwarf_expression): Likewise.
3974 (loclist_describe_location): Likewise.
3975
236ef034
PA
39762020-06-23 Pedro Alves <palves@redhat.com>
3977
3978 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3979 progspace-and-thread.h. Include scoped-mock-context.h instead.
3980 (register_to_value_test): Use scoped_mock_context.
3981 * regcache.c: Include "scoped-mock-context.h".
3982 (cooked_read_test): Don't error out if a target is already pushed.
3983 Use scoped_mock_context. Adjust.
3984 * scoped-mock-context.h: New file.
3985
39e7ecca
AB
39862020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3987
3988 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3989 initializer.
3990 (ada_language::is_string_type_p): New member function.
3991 * c-lang.c (c_language_data): Delete la_is_string_type_p
3992 initializer.
3993 (cplus_language_data): Likewise.
3994 (asm_language_data): Likewise.
3995 (minimal_language_data): Likewise.
3996 * d-lang.c (d_language_data): Likewise.
3997 * f-lang.c (f_is_string_type_p): Delete function, implementation
3998 moved to f_language::is_string_type_p.
3999 (f_language_data): Delete la_is_string_type_p initializer.
4000 (f_language::is_string_type_p): New member function,
4001 implementation from f_is_string_type_p.
4002 * go-lang.c (go_is_string_type_p): Delete function, implementation
4003 moved to go_language::is_string_type_p.
4004 (go_language_data): Delete la_is_string_type_p initializer.
4005 (go_language::is_string_type_p): New member function,
4006 implementation from go_is_string_type_p.
4007 * language.c (language_defn::is_string_type_p): Define new member
4008 function.
4009 (default_is_string_type_p): Make static, add comment copied from
4010 header file.
4011 (unknown_language_data): Delete la_is_string_type_p initializer.
4012 (unknown_language::is_string_type_p): New member function.
4013 (auto_language_data): Delete la_is_string_type_p initializer.
4014 (auto_language::is_string_type_p): New member function.
4015 * language.h (language_data): Delete la_is_string_type_p field.
4016 (language_defn::is_string_type_p): Declare new function.
4017 (default_is_string_type_p): Delete desclaration, move comment to
4018 definition.
4019 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
4020 moved to m2_language::is_string_type_p.
4021 (m2_language_data): Delete la_is_string_type_p initializer.
4022 (m2_language::is_string_type_p): New member function,
4023 implementation from m2_is_string_type_p.
4024 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
4025 initializer.
4026 * opencl-lang.c (opencl_language_data): Likewise.
4027 * p-lang.c (pascal_is_string_type_p): Delete function,
4028 implementation moved to pascal_language::is_string_type_p.
4029 (pascal_language_data): Delete la_is_string_type_p initializer.
4030 (pascal_language::is_string_type_p): New member function,
4031 implementation from pascal_is_string_type_p.
4032 * rust-lang.c (rust_is_string_type_p): Delete function,
4033 implementation moved to rust_language::is_string_type_p.
4034 (rust_language_data): Delete la_is_string_type_p initializer.
4035 (rust_language::is_string_type_p): New member function,
4036 implementation from rust_is_string_type_p.
4037 * valprint.c (val_print_scalar_or_string_type_p): Update call to
4038 is_string_type_p.
4039
4ffc13fb
AB
40402020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4041
4042 * ada-lang.c (ada_language_data): Delete la_print_typedef
4043 initializer.
4044 (ada_language::print_typedef): New member function.
4045 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
4046 (cplus_language_data): Likewise.
4047 (asm_language_data): Likewise.
4048 (minimal_language_data): Likewise.
4049 * d-lang.c (d_language_data): Likewise.
4050 * f-lang.c (f_language_data): Likewise.
4051 (f_language::print_typedef): New member function.
4052 * go-lang.c (go_language_data): Delete la_print_typedef
4053 initializer.
4054 * language.c (language_defn::print_typedef): Define member
4055 function.
4056 (unknown_language_data): Delete la_print_typedef initializer.
4057 (unknown_language::print_typedef): New member function.
4058 (auto_language_data): Delete la_print_typedef initializer.
4059 (auto_language::print_typedef): New member function.
4060 * language.h (language_data): Delete la_print_typedef field.
4061 (language_defn::print_typedef): Declare new member function.
4062 (LA_PRINT_TYPEDEF): Update call to print_typedef.
4063 (default_print_typedef): Delete declaration.
4064 * m2-lang.c (m2_language_data): Delete la_print_typedef
4065 initializer.
4066 (m2_language::print_typedef): New member function.
4067 * objc-lang.c (objc_language_data): Delete la_print_typedef
4068 initializer.
4069 * opencl-lang.c (opencl_language_data): Likewise.
4070 * p-lang.c (pascal_language_data): Likewise.
4071 (pascal_language::print_typedef): New member function.
4072 * rust-lang.c (rust_print_typedef): Delete function,
4073 implementation moved to rust_language::print_typedef.
4074 (rust_language): Delete la_print_typedef initializer.
4075 (rust_language::print_typedef): New member function,
4076 implementation from rust_print_typedef.
4077 * typeprint.c (default_print_typedef): Delete.
4078
d711ee67
AB
40792020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4080
4081 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
4082 (ada_language::printstr): New member function.
4083 * c-lang.c (c_language_data): Delete la_printstr initializer.
4084 (cplus_language_data): Likewise.
4085 (asm_language_data): Likewise.
4086 (minimal_language_data): Likewise.
4087 * d-lang.c (d_language_data): Likewise.
4088 * f-lang.c (f_printstr): Rename to f_language::printstr.
4089 (f_language_data): Delete la_printstr initializer.
4090 (f_language::printstr): New member function, implementation from
4091 f_printstr.
4092 * go-lang.c (go_language_data): Delete la_printstr initializer.
4093 * language.c (language_defn::printstr): Define new member
4094 function.
4095 (unk_lang_printstr): Delete.
4096 (unknown_language_data): Delete la_printstr initializer.
4097 (unknown_language::printstr): New member function.
4098 (auto_language_data): Delete la_printstr initializer.
4099 (auto_language::printstr): New member function.
4100 * language.h (language_data): Delete la_printstr field.
4101 (language_defn::printstr): Declare new member function.
4102 (LA_PRINT_STRING): Update call to printstr.
4103 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
4104 (m2_language_data): Delete la_printstr initializer.
4105 (m2_language::printstr): New member function, implementation from
4106 m2_printstr.
4107 * objc-lang.c (objc_language_data): Delete la_printstr
4108 initializer.
4109 * opencl-lang.c (opencl_language_data): Likewise.
4110 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
4111 (pascal_language_data): Delete la_printstr initializer.
4112 (pascal_language::printstr): New member function, implementation
4113 from pascal_printstr.
4114 * p-lang.h (pascal_printstr): Delete declaration.
4115 * rust-lang.c (rust_printstr): Update header comment.
4116 (rust_language_data): Delete la_printstr initializer.
4117 (rust_language::printstr): New member function.
4118
52b50f2c
AB
41192020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4120
4121 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
4122 (ada_language::printchar): New member function.
4123 * c-lang.c (c_language_data): Delete la_printchar initializer.
4124 (cplus_language_data): Likewise.
4125 (asm_language_data): Likewise.
4126 (minimal_language_data): Likewise.
4127 * d-lang.c (d_language_data): Likewise.
4128 * f-lang.c (f_printchar): Rename to f_language::printchar.
4129 (f_language_data): Delete la_printchar initializer.
4130 (f_language::printchar): New member function, implementation from
4131 f_printchar.
4132 * go-lang.c (go_language_data): Delete la_printchar initializer.
4133 * language.c (unk_lang_printchar): Delete.
4134 (language_defn::printchar): Define new member function.
4135 (unknown_language_data): Delete la_printchar initializer.
4136 (unknown_language::printchar): New member function.
4137 (auto_language_data): Delete la_printchar initializer.
4138 (auto_language::printchar): New member function.
4139 * language.h (language_data): Delete la_printchar field.
4140 (language_defn::printchar): Declare new member function.
4141 (LA_PRINT_CHAR): Update call to printchar.
4142 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
4143 (m2_language::printchar): New member function.
4144 * objc-lang.c (objc_language_data): Delete la_printchar
4145 initializer.
4146 * opencl-lang.c (opencl_language_data): Likewise.
4147 * p-lang.c (pascal_language_data): Delete la_printchar
4148 initializer.
4149 (pascal_language::printchar): New member function.
4150 * rust-lang.c (rust_printchar): Rename to
4151 rust_language::printchar.
4152 (rust_language_data): Delete la_printchar initializer.
4153 (rust_language::printchar): New member function, implementation
4154 from rust_printchar.
4155
ec8cec5b
AB
41562020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4157
4158 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
4159 (ada_language_data): Delete la_emitchar initializer.
4160 (ada_language::emitchar): New member function, implementation from
4161 emit_char.
4162 * c-lang.c (c_language_data): Delete la_emitchar initializer.
4163 (cplus_language_data): Likewise.
4164 (asm_language_data): Likewise.
4165 (minimal_language_data): Likewise.
4166 * d-lang.c (d_language_data): Likewise.
4167 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
4168 (f_language_data): Delete la_emitchar initializer.
4169 (f_language::emitchar): New member function, implementation from
4170 f_emit_char.
4171 * go-lang.c (go_language_data): Delete la_emitchar initializer.
4172 * language.c (unk_lang_emit_char): Delete.
4173 (language_defn::emitchar): New member function definition.
4174 (unknown_language_data): Delete la_emitchar initializer.
4175 (unknown_language::emitchar): New member function.
4176 (auto_language_data): Delete la_emitchar initializer.
4177 (auto_language::emitchar): New member function.
4178 * language.h (language_data): Delete la_emitchar field.
4179 (language_defn::emitchar): New member field declaration.
4180 (LA_EMIT_CHAR): Update call to emitchar.
4181 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
4182 (m2_language_data): Delete la_emitchar initializer.
4183 (m2_language::emitchar): New member function, implementation from
4184 m2_emit_char.
4185 * objc-lang.c (objc_language_data): Delete la_emitchar
4186 initializer.
4187 * opencl-lang.c (opencl_language_data): Likewise.
4188 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4189 (pascal_language_data): Delete la_emitchar initializer.
4190 (pascal_language::emitchar): New member function, implementation
4191 from pascal_emit_char.
4192 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4193 (rust_language_data): Delete la_emitchar initializer.
4194 (rust_language::emitchar): New member function, implementation
4195 from rust_emitchar.
4196
1bf9c363
AB
41972020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4198
4199 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4200 (ada_language_data): Delete la_post_parser initializer.
4201 (ada_language::post_parser): New member function.
4202 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4203 (cplus_language_data): Likewise.
4204 (asm_language_data): Likewise.
4205 (minimal_language_data): Likewise.
4206 * d-lang.c (d_language_data): Likewise.
4207 * f-lang.c (f_language_data): Likewise.
4208 * go-lang.c (go_language_data): Likewise.
4209 * language.c (unknown_language_data): Likewise.
4210 (auto_language_data): Likewise.
4211 * language.h (language_data): Delete la_post_parser field.
4212 (language_defn::post_parser): New member function.
4213 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4214 * objc-lang.c (objc_language_data): Likewise.
4215 * opencl-lang.c (opencl_language_data): Likewise.
4216 * p-lang.c (pascal_language_data): Likewise.
4217 * parse.c (parse_exp_in_context): Update call to post_parser.
4218 (null_post_parser): Delete definition.
4219 * parser-defs.h (null_post_parser): Delete declaration.
4220 * rust-lang.c (rust_language_data): Delete la_post_parser
4221 initializer.
4222
87afa652
AB
42232020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4224
4225 * ada-lang.c (parse): Rename to ada_language::parser.
4226 (ada_language_data): Delete la_parser initializer.
4227 (ada_language::parser): New member function, implementation from
4228 parse.
4229 * c-lang.c (c_language_data): Delete la_parser initializer.
4230 (cplus_language_data): Likewise.
4231 (asm_language_data): Likewise.
4232 (minimal_language_data): Likewise.
4233 * d-lang.c (d_language_data): Likewise.
4234 (d_language::parser): New member function.
4235 * f-lang.c (f_language_data): Delete la_parser initializer.
4236 (f_language::parser): New member function.
4237 * go-lang.c (go_language_data): Delete la_parser initializer.
4238 (go_language::parser): New member function.
4239 * language.c (unk_lang_parser): Delete.
4240 (language_defn::parser): Define new member function.
4241 (unknown_language_data): Delete la_parser initializer.
4242 (unknown_language::parser): New member function.
4243 (auto_language_data): Delete la_parser initializer.
4244 (auto_language::parser): New member function.
4245 * language.h (language_data): Delete la_parser field.
4246 (language_defn::parser): Declare new member function.
4247 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4248 (m2_language::parser): New member function.
4249 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4250 * opencl-lang.c (opencl_language_data): Likewise.
4251 * p-lang.c (pascal_language_data): Likewise.
4252 (pascal_language::parser): New member function.
4253 * parse.c (parse_exp_in_context): Update call to parser.
4254 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4255 (rust_language::parser): New member function.
4256
37825800
AB
42572020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4258
4259 * top.c (print_gdb_configuration): Print --with-python-libdir
4260 configuration value.
4261
5b860c93
PW
42622020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4263
4264 * NEWS: Mention change to the alias command.
4265
cf00cd6f
PW
42662020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4267
4268 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4269 (alias_command_completer)
4270 (make_alias_options_def_group): New functions.
4271 (alias_opts, alias_option_defs): New struct and array.
4272 (alias_usage_error): Update usage.
4273 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4274 Use option framework.
4275 (_initialize_cli_cmds): Update alias command help.
4276 Update aliases command help.
4277 (show_user):
4278 Add NULL for new default_args lookup_cmd argument.
4279 (valid_command_p): Rename to validate_aliased_command.
4280 Add NULL for new default_args lookup_cmd argument. Verify that the
4281 aliased_command has no default args.
4282 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4283 (lookup_cmd_1, lookup_cmd): New argument default_args.
4284 (add_alias_cmd):
4285 Add NULL for new default_args lookup_cmd argument.
4286 (print_help_for_command): Show default args under the layout
4287 alias some_alias = some_aliased_cmd some_alias_default_arg.
4288 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4289 xfree default_args in destructor.
4290 * cli/cli-script.c (process_next_line, do_define_command):
4291 Add NULL for new default_args lookup_cmd argument.
4292 * command.h: Declare new default_args argument in lookup_cmd
4293 and lookup_cmd_1.
4294 * completer.c (complete_line_internal_1):
4295 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4296 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4297 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4298 Likewise.
4299 * infcmd.c (_initialize_infcmd): Likewise.
4300 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4301 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4302 * python/py-param.c (add_setshow_generic): Likewise.
4303 * remote.c (_initialize_remote): Likewise.
4304 * top.c (execute_command): Prepend default_args if command has some.
4305 (set_verbose):
4306 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4307 * tracepoint.c (validate_actionline, encode_actions_1):
4308 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4309
bd920864
TBA
43102020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4311
4312 * jit.c (jit_read_descriptor): Use bool as the return type.
4313 (jit_breakpoint_re_set_internal): Use bool as the return type.
4314 Invert the return value logic; return true if the jit breakpoint
4315 has been successfully initialized.
4316 (jit_inferior_init): Update the call to
4317 jit_breakpoint_re_set_internal.
4318
f8098322
PA
43192020-06-22 Pedro Alves <palves@redhat.com>
4320
4321 PR gdb/25939
4322 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4323 Use the current inferior instead. Don't return
4324 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4325 wait again.
4326 * sol-thread.c (sol_thread_target::wait): Don't reference
4327 inferior_ptid.
4328 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4329 (sol_update_thread_list_callback): Use the current inferior's pid
4330 instead of inferior_ptid.
4331
196535a6
RO
43322020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4333
4334 * procfs.c: Cleanup many comments.
4335
4336 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4337 (AFTER_WATCHFLAG): Replace by value.
4338
4339 (MAIN_PROC_NAME_FORMAT): Inline ...
4340 (create_procinfo): ... here.
4341
4342 (procfs_debug_inferior): Remove SYS_exec handling.
4343 (syscall_is_exec): Likewise.
4344 (procfs_set_exec_trap): Likewise.
4345
4346 (syscall_is_lwp_exit): Inline in callers.
4347 (syscall_is_exit): Likewise.
4348 (syscall_is_exec): Likewise.
4349 (syscall_is_lwp_create): Likewise.
4350
4351 (invalidate_cache): Remove #if 0 code.
4352
4353 (make_signal_thread_runnable): Remove.
4354 (procfs_target::resume): Remove #if 0 code.
4355
cf6f3e86
RO
43562020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4357
4358 PR gdb/25939
4359 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4360 call ...
4361 (procfs_target::create_inferior): ... here.
4362
48e9cc84
PW
43632020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4364
4365 * exec.c (validate_exec_file): Ensure the build-id is up to
4366 date by calling reopen_exec_file (that checks file timestamp
4367 to decide to re-read the file).
4368
3922b302
PA
43692020-06-18 Pedro Alves <palves@redhat.com>
4370
4371 PR gdb/25412
4372 * gdbthread.h (delete_thread, delete_thread_silent)
4373 (find_thread_ptid): Update comments.
4374 * thread.c (current_thread_): New global.
4375 (is_current_thread): Move higher, and reimplement.
4376 (inferior_thread): Reimplement.
4377 (set_thread_exited): Use bool. Add assertions.
4378 (add_thread_silent): Simplify thread-reuse handling by always
4379 calling delete_thread.
4380 (delete_thread): Remove intro comment.
4381 (find_thread_ptid): Skip exited threads.
4382 (switch_to_thread_no_regs): Write to current_thread_.
4383 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4384 INFERIOR_PTID. Clear current_thread_.
4385
6dbdab44
PA
43862020-06-18 Pedro Alves <palves@redhat.com>
4387
4388 * aix-thread.c (pd_update): Use switch_to_thread.
4389
2da4b788
PA
43902020-06-18 Pedro Alves <palves@redhat.com>
4391
4392 * ravenscar-thread.c (ravenscar_thread_target): Update.
4393 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4394 (ravenscar_thread_target::add_active_thread): ... this. Don't
4395 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4396 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4397
50838d1b
PA
43982020-06-18 Pedro Alves <palves@redhat.com>
4399
4400 * nat/windows-nat.c (current_windows_thread): Remove.
4401 * nat/windows-nat.h (current_windows_thread): Remove.
4402 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4403 Adjust.
4404 (display_selectors): Adjust to fetch the current
4405 windows_thread_info based on inferior_ptid.
4406 (fake_create_process): No longer write to current_windows_thread.
4407 (windows_nat_target::get_windows_debug_event):
4408 Don't set inferior_ptid or current_windows_thread.
4409 (windows_nat_target::wait): Adjust to not rely on
4410 current_windows_thread.
4411 (do_initial_windows_stuff): Now a method of windows_nat_target.
4412 Switch to the last_ptid thread.
4413 (windows_nat_target::attach): Adjust.
4414 (windows_nat_target::detach): Use switch_to_no_thread instead of
4415 writing to inferior_ptid directly.
4416 (windows_nat_target::create_inferior): Adjust.
4417
31ce04e9
PA
44182020-06-18 Pedro Alves <palves@redhat.com>
4419
4420 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4421
1ee1a363
PA
44222020-06-18 Pedro Alves <palves@redhat.com>
4423
4424 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4425 after creating it, instead of writing to inferior_ptid. Don't
4426 write to inferior_ptid.
4427
6d350754
PA
44282020-06-18 Pedro Alves <palves@redhat.com>
4429
4430 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4431
5d971d48
PA
44322020-06-18 Pedro Alves <palves@redhat.com>
4433
4434 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4435 it, instead of writing to inferior_ptid.
4436
86e57d1b
PA
44372020-06-18 Pedro Alves <palves@redhat.com>
4438
4439 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4440 to inferior_ptid.
4441
f2e1c129
PA
44422020-06-18 Pedro Alves <palves@redhat.com>
4443
4444 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4445 instead of writing to inferior_ptid directly.
4446
60db1b85
PA
44472020-06-18 Pedro Alves <palves@redhat.com>
4448
4449 * corelow.c (core_target::close): Use switch_to_no_thread instead
4450 of writing to inferior_ptid directly.
4451 (add_to_thread_list, core_target_open): Use switch_to_thread
4452 instead of writing to inferior_ptid directly.
4453
fe7d6a8d
PA
44542020-06-18 Pedro Alves <palves@redhat.com>
4455
4456 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4457 inferior_ptid.
4458 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4459 inferior_ptid.
4460 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4461 inferior_ptid directly.
4462 (darwin_nat_target::init_thread_list): Switch to thread, instead
4463 of writing to inferior_ptid.
4464 (darwin_nat_target::attach): Don't write to inferior_ptid.
4465 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4466
975f8708
PA
44672020-06-18 Pedro Alves <palves@redhat.com>
4468
4469 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4470 thread.
4471 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4472 Instead use switch_to_thread.
4473 (gnu_nat_target::detach): Use switch_to_no_thread
4474 instead of writing to inferior_ptid directly. Used passed-in
4475 inferior instead of looking up the inferior by pid.
4476
1a204730
PA
44772020-06-18 Pedro Alves <palves@redhat.com>
4478
4479 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4480 inferior_ptid.
4481
ebe84f23
PA
44822020-06-18 Pedro Alves <palves@redhat.com>
4483
4484 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4485 inferior_ptid.
4486 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4487 thread.
4488 (nto_procfs_target::detach): Avoid referencing
4489 inferior_ptid. Use switch_to_no_thread instead of writing to
4490 inferior_ptid directly.
4491 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4492 instead of writing to inferior_ptid directly.
4493 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4494 to thread.
4495
191f02e5
PA
44962020-06-18 Pedro Alves <palves@redhat.com>
4497
4498 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4499 after creating it, instead of writing to inferior_ptid.
4500 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4501 to inferior_ptid directly.
4502 (gdbsim_target::wait): Don't write to inferior_ptid.
4503
0ac55310
PA
45042020-06-18 Pedro Alves <palves@redhat.com>
4505
4506 * remote.c (remote_target::remote_notice_new_inferior): Use
4507 switch_to_thread instead of writing to inferior_ptid directly.
4508 (remote_target::add_current_inferior_and_thread): Use
4509 switch_to_no_thread instead of writing to inferior_ptid directly.
4510 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4511 and switch_to_thread instead of using set_current_inferior or
4512 writing to inferior_ptid directly.
4513
5233f39b
PA
45142020-06-18 Pedro Alves <palves@redhat.com>
4515
4516 * tracectf.c (ctf_target_open): Switch to added thread instead of
4517 writing to inferior_ptid directly.
4518 (ctf_target::close): Use switch_to_no_thread instead of writing to
4519 inferior_ptid directly.
4520
087e161b
PA
45212020-06-18 Pedro Alves <palves@redhat.com>
4522
4523 * tracefile-tfile.c (tfile_target_open): Don't write to
4524 inferior_ptid directly, instead switch to added thread.
4525 (tfile_target::close): Use switch_to_no_thread instead of writing
4526 to inferior_ptid directly.
4527
7fb43e53
PA
45282020-06-18 Pedro Alves <palves@redhat.com>
4529
4530 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4531 (procfs_target::detach): Use switch_to_no_thread
4532 instead of writing to inferior_ptid directly.
4533 (do_attach): Change return type to void. Switch to the added
4534 thread.
4535 (procfs_target::create_inferior): Switch to the added thread.
4536 (procfs_do_thread_registers): Don't write to inferior_ptid.
4537
18493a00
PA
45382020-06-18 Pedro Alves <palves@redhat.com>
4539
4540 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4541 of writing to inferior_ptid.
4542 (scoped_restore_exited_inferior): Delete.
4543 (handle_vfork_child_exec_or_exit): Simplify using
4544 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4545 instead of writing to inferior_ptid.
4546 (THREAD_STOPPED_BY): Delete.
4547 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4548 (thread_stopped_by_hw_breakpoint): Delete.
4549 (save_waitstatus): Use
4550 scoped_restore_current_thread+switch_to_thread, and call
4551 target_stopped_by_watchpoint instead of
4552 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4553 instead of thread_stopped_by_sw_breakpoint, and
4554 target_stopped_by_hw_breakpoint instead of
4555 thread_stopped_by_hw_breakpoint.
4556 (handle_inferior_event)
4557 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4558 inferior_ptid directly, nor
4559 set_current_inferior/set_current_program_space. Use
4560 switch_to_thread / switch_to_inferior_no_thread instead.
4561
a0776b13
PA
45622020-06-18 Pedro Alves <palves@redhat.com>
4563
4564 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4565 instead of writing to inferior_ptid.
4566
6155c136
PA
45672020-06-18 Pedro Alves <palves@redhat.com>
4568
4569 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4570 added thread.
4571 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4572 to the added thread.
4573 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4574 instead of writing to inferior_ptid.
4575
c5316fc6
PA
45762020-06-18 Pedro Alves <palves@redhat.com>
4577
4578 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4579 (register_to_value_test): Mock a program_space too. Heap-allocate
4580 the address space. Don't write to inferior_ptid. Use
4581 switch_to_thread instead.
4582
8df01799
PA
45832020-06-18 Pedro Alves <palves@redhat.com>
4584
4585 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4586 Delete.
4587 (find_signalled_thread()): New, factored out from
4588 linux_make_corefile_notes and adjusted to handle exited threads.
4589 (linux_make_corefile_notes): Adjust to use the new
4590 find_signalled_thread.
4591
41792d68
PA
45922020-06-18 Pedro Alves <palves@redhat.com>
4593
4594 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4595 of saving/restoring inferior_ptid.
4596
612f258a
TT
45972020-06-17 Tom Tromey <tom@tromey.com>
4598
4599 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4600 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4601 declare.
4602 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4603
efb763a5
SM
46042020-06-15 Simon Marchi <simon.marchi@efficios.com>
4605
4606 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4607 of partial symtabs.
4608
2951f6c0
SM
46092020-06-17 Simon Marchi <simon.marchi@efficios.com>
4610
4611 * regformats/reg-arm.dat: Remove.
4612 * regformats/reg-bfin.dat: Remove.
4613 * regformats/reg-cris.dat: Remove.
4614 * regformats/reg-crisv32.dat: Remove.
4615 * regformats/reg-m32r.dat: Remove.
4616 * regformats/reg-tilegx.dat: Remove.
4617 * regformats/reg-tilegx32.dat: Remove.
4618
7d458ea5
SM
46192020-06-17 Simon Marchi <simon.marchi@efficios.com>
4620
4621 * features/Makefile (WHICH): Remove arm files.
4622 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4623 * regformats/arm/arm-with-neon.dat: Remove.
4624 * regformats/arm/arm-with-vfpv2.dat: Remove.
4625 * regformats/arm/arm-with-vfpv3.dat: Remove.
4626
3af96c0d
SM
46272020-06-17 Simon Marchi <simon.marchi@efficios.com>
4628
4629 * features/Makefile (XMLTOC): Remove rx.xml.
4630
b25e22fd
PA
46312020-06-17 Pedro Alves <palves@redhat.com>
4632
4633 * gdbthread.h (thread_control_state) <trap_expected> Update
4634 comments.
4635
a78a19b1
AB
46362020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4637
4638 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4639 ada_language::lookup_symbol_nonlocal.
4640 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4641 (ada_language::lookup_symbol_nonlocal): New member function,
4642 implementation from ada_lookup_symbol_nonlocal.
4643 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4644 initializer.
4645 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4646 initializer.
4647 (cplus_language::lookup_symbol_nonlocal): New member function.
4648 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4649 (minimal_language_data) Likewise.
4650 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4651 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4652 initializer.
4653 (d_language::lookup_symbol_nonlocal): New member function.
4654 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4655 initializer.
4656 (f_language::lookup_symbol_nonlocal): New member function.
4657 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4658 initializer.
4659 * language.c (unknown_language_data): Likewise.
4660 (auto_language_data): Likewise.
4661 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4662 field.
4663 (language_defn::lookup_symbol_nonlocal): New member function.
4664 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4665 initializer.
4666 * objc-lang.c (objc_language_data): Likewise.
4667 * opencl-lang.c (opencl_language_data): Likewise.
4668 * p-lang.c (pascal_language_data): Likewise.
4669 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4670 rust_language::lookup_symbol_nonlocal.
4671 (rust_language_data): Delete la_lookup_symbol_nonlocal
4672 initializer.
4673 (rust_language::lookup_symbol_nonlocal): New member function,
4674 implementation from rust_lookup_symbol_nonlocal.
4675 * symtab.c (lookup_symbol_aux): Update call to
4676 lookup_symbol_nonlocal.
4677 (basic_lookup_symbol_nonlocal): Rename to...
4678 (language_defn::lookup_symbol_nonlocal): ...this, and update
4679 header comment. Remove language_defn parameter, and replace with
4680 uses of `this'.
4681 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4682
ebe2334e
AB
46832020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4684
4685 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4686 initializer.
4687 (ada_language::value_print_inner): New member function.
4688 * c-lang.c (c_language_data): Delete la_value_print_inner
4689 initializer.
4690 (cplus_language_data): Likewise.
4691 (asm_language_data): Likewise.
4692 (minimal_language_data): Likewise.
4693 * d-lang.c (d_language_data): Likewise.
4694 (d_language::value_print_inner): New member function.
4695 * f-lang.c (f_language_data): Delete la_value_print_inner
4696 initializer.
4697 (f_language::value_print_inner): New member function.
4698 * f-lang.h (f_value_print_innner): Rename to...
4699 (f_value_print_inner): ...this (note spelling of 'inner').
4700 * f-valprint.c (f_value_print_innner): Rename to...
4701 (f_value_print_inner): ...this (note spelling of 'inner').
4702 * go-lang.c (go_language_data): Delete la_value_print_inner
4703 initializer.
4704 (go_language::value_print_inner): New member function.
4705 * language.c (language_defn::value_print_inner): Define new member
4706 function.
4707 (unk_lang_value_print_inner): Delete.
4708 (unknown_language_data): Delete la_value_print_inner initializer.
4709 (unknown_language::value_print_inner): New member function.
4710 (auto_language_data): Delete la_value_print_inner initializer.
4711 (auto_language::value_print_inner): New member function.
4712 * language.h (language_data): Delete la_value_print_inner field.
4713 (language_defn::value_print_inner): Delcare new member function.
4714 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4715 initializer.
4716 (m2_language::value_print_inner): New member function.
4717 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4718 initializer.
4719 * opencl-lang.c (opencl_language_data): Likewise.
4720 * p-lang.c (pascal_language_data): Likewise.
4721 (pascal_language::value_print_inner): New member function.
4722 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4723 initializer.
4724 (rust_language::value_print_inner): New member function.
4725 * valprint.c (do_val_print): Update call to value_print_inner.
4726
a1d1fa3e
AB
47272020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4728
4729 * ada-lang.c (ada_language_data): Delete la_value_print
4730 initializer.
4731 (ada_language::value_print): New member function.
4732 * c-lang.c (c_language_data): Delete la_value_print initializer.
4733 (cplus_language_data): Likewise.
4734 (asm_language_data): Likewise.
4735 (minimal_language_data): Likewise.
4736 * d-lang.c (d_language_data): Likewise.
4737 * f-lang.c (f_language_data): Likewise.
4738 * go-lang.c (go_language_data): Likewise.
4739 * language.c (unk_lang_value_print): Delete.
4740 (language_defn::value_print): Define new member function.
4741 (unknown_language_data): Delete la_value_print initializer.
4742 (unknown_language::value_print): New member function.
4743 (auto_language_data): Delete la_value_print initializer.
4744 (auto_language::value_print): New member function.
4745 * language.h (language_data): Delete la_value_print field.
4746 (language_defn::value_print): Declare new member function.
4747 (LA_VALUE_PRINT): Update call to value_print.
4748 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4749 * objc-lang.c (objc_language_data): Likewise.
4750 * opencl-lang.c (opencl_language_data): Likewise.
4751 * p-lang.c (pascal_language_data): Likewise.
4752 (pascal_language::value_print): New member function.
4753 * rust-lang.c (rust_language_data): Delete la_value_print
4754 initializer.
4755
f16a9f57
AB
47562020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4757
4758 * ada-lang.c (ada_watch_location_expression): Rename to
4759 ada_language::watch_location_expression.
4760 (ada_language_data): Delete la_watch_location_expression
4761 initializer.
4762 (ada_language::watch_location_expression): New member function,
4763 implementation from ada_watch_location_expression.
4764 * breakpoint.c (watch_command_1): Update call to
4765 watch_location_expression.
4766 * c-lang.c (c_watch_location_expression): Rename to
4767 language_defn::watch_location_expression.
4768 (c_language_data): Delete la_watch_location_expression
4769 initializer.
4770 (cplus_language_data): Likewise.
4771 (asm_language_data): Likewise.
4772 (minimal_language_data): Likewise.
4773 * c-lang.h (c_watch_location_expression): Delete declaration.
4774 * d-lang.c (d_language_data): Delete la_watch_location_expression
4775 initializer.
4776 * f-lang.c (f_language_data): Likewise.
4777 * go-lang.c (go_language_data): Likewise.
4778 * language.c (language_defn::watch_location_expression): Member
4779 function implementation from c_watch_location_expression.
4780 (unknown_language_data): Delete la_watch_location_expression
4781 initializer.
4782 (auto_language_data): Likewise.
4783 * language.h (language_data): Delete la_watch_location_expression
4784 field.
4785 (language_defn::watch_location_expression): Declare new member
4786 function.
4787 * m2-lang.c (m2_language_data): Delete
4788 la_watch_location_expression initializer.
4789 * objc-lang.c (objc_language_data): Likewise.
4790 * opencl-lang.c (opencl_language_data): Likewise.
4791 * p-lang.c (pascal_language_data): Likewise.
4792 * rust-lang.c (rust_watch_location_expression): Rename to
4793 rust_language::watch_location_expression.
4794 (rust_language_data): Delete la_watch_location_expression
4795 initializer.
4796 (rust_language::watch_location_expression): New member function,
4797 implementation from rust_watch_location_expression.
4798
7e56227d
AB
47992020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4800
4801 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4802 ada_language::collect_symbol_completion_matches.
4803 (ada_language_data): Delete la_collect_symbol_completion_matches
4804 initializer.
4805 (ada_language::collect_symbol_completion_matches): New member
4806 function, implementation from
4807 ada_collect_symbol_completion_matches.
4808 * c-lang.c (c_language_data): Delete
4809 la_collect_symbol_completion_matches initializer.
4810 (cplus_language_data): Likewise.
4811 (asm_language_data): Likewise.
4812 (minimal_language_data): Likewise.
4813 * d-lang.c (d_language_data): Likewise.
4814 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4815 f_language::collect_symbol_completion_matches.
4816 (f_language_data): Delete la_collect_symbol_completion_matches
4817 initializer.
4818 (f_language::collect_symbol_completion_matches) New member
4819 function, implementation from f_collect_symbol_completion_matches.
4820 * go-lang.c (go_language_data): Delete
4821 la_collect_symbol_completion_matches initializer.
4822 * language.c (unknown_language_data): Likewise.
4823 (auto_language_data): Likewise.
4824 * language.h (language_data): Delete
4825 la_collect_symbol_completion_matches field.
4826 (language_defn::collect_symbol_completion_matches): New member
4827 function.
4828 * m2-lang.c (m2_language_data): Delete
4829 la_collect_symbol_completion_matches initializer.
4830 * objc-lang.c (objc_language_data): Likewise.
4831 * opencl-lang.c (opencl_language_data): Likewise.
4832 * p-lang.c (pascal_language_data): Likewise.
4833 * rust-lang.c (rust_language_data): Likewise.
4834 * symtab.c (default_collect_symbol_completion_matches): Delete.
4835 (collect_symbol_completion_matches): Update call to
4836 collect_symbol_completion_matches.
4837 (collect_symbol_completion_matches_type): Likewise.
4838 * symtab.h (default_collect_symbol_completion_matches): Delete
4839 declaration.
4840
53fc67f8
AB
48412020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4842
4843 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4844 (ada_language_data): Delete la_word_break_characters initializer.
4845 (ada_language::word_break_characters): New member function.
4846 * c-lang.c (c_language_data): Delete la_word_break_characters
4847 initializer.
4848 (cplus_language_data): Likewise.
4849 (asm_language_data): Likewise.
4850 (minimal_language_data): Likewise.
4851 * completer.c: Update global comment.
4852 (advance_to_expression_complete_word_point): Update call to
4853 word_break_characters.
4854 (complete_files_symbols): Likewise.
4855 (complete_line_internal_1): Likewise.
4856 (default_completer_handle_brkchars): Likewise.
4857 (skip_quoted_chars): Likewise.
4858 * d-lang.c (d_language_data): Delete la_word_break_characters
4859 initializer.
4860 * f-lang.c (f_word_break_characters): Delete.
4861 (f_language_data): Delete la_word_break_characters initializer.
4862 (f_language::word_break_characters): New member function.
4863 * go-lang.c (go_language_data): Delete la_word_break_characters
4864 initializer.
4865 * language.c (unknown_language_data): Likewise.
4866 (auto_language_data): Likewise.
4867 * language.h (default_word_break_characters): Move declaration to
4868 earlier in the file.
4869 (language_data): Delete la_word_break_characters field.
4870 (language_defn::word_break_characters): New member function.
4871 * m2-lang.c (m2_language_data): Delete la_word_break_characters
4872 initializer.
4873 * objc-lang.c (objc_language_data): Likewise.
4874 * opencl-lang.c (opencl_language_data): Likewise.
4875 * p-lang.c (pascal_language_data): Likewise.
4876 * rust-lang.c (rust_language_data): Likewise.
4877
c9debfb9
AB
48782020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4879
4880 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
4881 (ada_language_data): Delete la_get_symbol_name_matcher
4882 initializer.
4883 (language_defn::get_symbol_name_matcher_inner): New member
4884 function.
4885 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
4886 initializer.
4887 (cplus_language_data): Likewise.
4888 (cplus_language::get_symbol_name_matcher_inner): New member
4889 function.
4890 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
4891 (minimal_language_data): Likewise.
4892 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
4893 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
4894 initializer.
4895 * dictionary.c (iter_match_first_hashed): Update call to
4896 get_symbol_name_matcher.
4897 (iter_match_next_hashed): Likewise.
4898 (iter_match_next_linear): Likewise.
4899 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
4900 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
4901 initializer.
4902 (f_language::get_symbol_name_matcher_inner): New member function.
4903 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4904 initializer.
4905 * language.c (default_symbol_name_matcher): Update header comment,
4906 make static.
4907 (language_defn::get_symbol_name_matcher): New definition.
4908 (language_defn::get_symbol_name_matcher_inner): Likewise.
4909 (get_symbol_name_matcher): Delete.
4910 (unknown_language_data): Delete la_get_symbol_name_matcher
4911 initializer.
4912 (auto_language_data): Likewise.
4913 * language.h (language_data): Delete la_get_symbol_name_matcher
4914 field.
4915 (language_defn::get_symbol_name_matcher): New member function.
4916 (language_defn::get_symbol_name_matcher_inner): Likewise.
4917 (default_symbol_name_matcher): Delete declaration.
4918 * linespec.c (find_methods): Update call to
4919 get_symbol_name_matcher.
4920 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4921 initializer.
4922 * minsyms.c (lookup_minimal_symbol): Update call to
4923 get_symbol_name_matcher.
4924 (iterate_over_minimal_symbols): Likewise.
4925 * objc-lang.c (objc_language_data): Delete
4926 la_get_symbol_name_matcher initializer.
4927 * opencl-lang.c (opencl_language_data): Likewise.
4928 * p-lang.c (pascal_language_data): Likewise.
4929 * psymtab.c (psymbol_name_matches): Update call to
4930 get_symbol_name_matcher.
4931 * rust-lang.c (rust_language_data): Delete
4932 la_get_symbol_name_matcher initializer.
4933 * symtab.c (symbol_matches_search_name): Update call to
4934 get_symbol_name_matcher.
4935 (compare_symbol_name): Likewise.
4936
9a49ad8c
AB
49372020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4938
4939 * ada-lang.c (ada_language_data): Delete la_compute_program
4940 initializer.
4941 * c-lang.c (c_language_data): Likewise.
4942 (c_language::compute_program): New member function.
4943 (cplus_language_data): Delete la_compute_program initializer.
4944 (cplus_language::compute_program): New member function.
4945 (asm_language_data): Delete la_compute_program initializer.
4946 (minimal_language_data): Likewise.
4947 * c-lang.h (c_compute_program): Update comment.
4948 (cplus_compute_program): Likewise.
4949 * compile/compile-c-support.c (c_compute_program): Likewise.
4950 (cplus_compute_program): Likewise.
4951 * compile/compile.c (compile_to_object): Update call to
4952 la_compute_program.
4953 * d-lang.c (d_language_data): Delete la_compute_program
4954 initializer.
4955 * f-lang.c (f_language_data): Likewise.
4956 * go-lang.c (go_language_data): Likewise.
4957 * language.c (unknown_language_data): Likewise.
4958 (auto_language_data): Likewise.
4959 * language.h (language_data): Delete la_compute_program field.
4960 (language_defn::compute_program): New member function.
4961 * m2-lang.c (m2_language_data): Delete la_compute_program
4962 initializer.
4963 * objc-lang.c (objc_language_data): Likewise.
4964 * opencl-lang.c (opencl_language_data): Likewise.
4965 * p-lang.c (pascal_language_data): Likewise.
4966 * rust-lang.c (rust_language_data): Likewise.
4967
eff93b4d
AB
49682020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4969
4970 * ada-lang.c (ada_language_data) Delete
4971 la_class_name_from_physname initializer.
4972 * c-lang.c (c_language_data): Likewise.
4973 (cplus_language_data): Likewise.
4974 (cplus_language::class_name_from_physname): New member function.
4975 (asm_language_data): Delete la_class_name_from_physname
4976 initializer.
4977 (minimal_language_data): Likewise.
4978 * d-lang.c (d_language_data): Likewise.
4979 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4980 method on language_defn class.
4981 (guess_full_die_structure_name): Likewise.
4982 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4983 initializer.
4984 * go-lang.c (go_language_data): Likewise.
4985 * language.c (language_class_name_from_physname): Delete.
4986 (unk_lang_class_name): Delete.
4987 (unknown_language_data): Delete la_class_name_from_physname
4988 initializer.
4989 (auto_language_data): Likewise.
4990 * language.h (language_data): Delete la_class_name_from_physname
4991 field.
4992 (language_defn::class_name_from_physname): New function.
4993 (language_class_name_from_physname): Delete declaration.
4994 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4995 initializer.
4996 * objc-lang.c (objc_language_data): Likewise.
4997 * opencl-lang.c (opencl_language_data): Likewise.
4998 * p-lang.c (pascal_language_data): Likewise.
4999 * rust-lang.c (rust_language_data): Likewise.
5000
de543742
TT
50012020-06-16 Tom Tromey <tom@tromey.com>
5002
5003 * tui/tui-data.h (STATUS_NAME): New macro.
5004 * tui/tui-layout.c (tui_remove_some_windows)
5005 (initialize_known_windows, tui_register_window)
5006 (tui_layout_split::remove_windows, initialize_layouts)
5007 (tui_new_layout_command): Don't use hard-coded window names.
5008
a350efd4
TT
50092020-06-16 Tom Tromey <tom@tromey.com>
5010
5011 PR tui/25348:
5012 * tui/tui.c (tui_ensure_readline_initialized): Rename from
5013 tui_initialize_readline. Only run once. Call rl_initialize.
5014 * tui/tui.h (tui_ensure_readline_initialized): Rename from
5015 tui_initialize_readline.
5016 * tui/tui-io.c (tui_setup_io): Call
5017 tui_ensure_readline_initialized.
5018 * tui/tui-interp.c (tui_interp::init): Update.
5019
39ec0490
TT
50202020-06-16 Tom Tromey <tom@tromey.com>
5021
5022 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
5023 Also preserve the status window.
5024
d2d1ea20
TT
50252020-06-16 Tom Tromey <tom@tromey.com>
5026
5027 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
5028 where m_window==nullptr.
5029
66920317
TT
50302020-06-15 Tom Tromey <tromey@adacore.com>
5031
5032 * windows-nat.c (windows_nat::handle_output_debug_string):
5033 Update.
5034 (windows_nat::handle_ms_vc_exception): Update.
5035 * target.h (target_read_string): Change API.
5036 * target.c (target_read_string): Change API.
5037 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
5038 Update.
5039 * solib-frv.c (frv_current_sos): Update.
5040 * solib-dsbt.c (dsbt_current_sos): Update.
5041 * solib-darwin.c (darwin_current_sos): Update.
5042 * linux-thread-db.c (inferior_has_bug): Update.
5043 * expprint.c (print_subexp_standard): Update.
5044 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
5045 (ada_exception_message_1): Update.
5046
a5d871dd
TT
50472020-06-15 Tom Tromey <tromey@adacore.com>
5048
5049 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
5050
670e35fa
TT
50512020-06-15 Tom Tromey <tromey@adacore.com>
5052
5053 * valprint.c (read_string): Update comment.
5054 * target.c (MIN): Remove.
5055 (target_read_string): Rewrite.
5056
f5272a3b
TT
50572020-06-15 Tom Tromey <tromey@adacore.com>
5058
5059 * corefile.c (read_memory_string): Remove.
5060 * ada-valprint.c (ada_value_print_ptr): Update.
5061 * ada-lang.h (ada_tag_name): Change return type.
5062 * ada-lang.c (type_from_tag): Update.
5063 (ada_tag_name_from_tsd): Change return type. Use
5064 target_read_string.
5065 (ada_tag_name): Likewise.
5066 * gdbcore.h (read_memory_string): Don't declare.
5067
2c074f49
HD
50682020-06-14 Hannes Domani <ssbssa@yahoo.de>
5069
5070 * symtab.c (rbreak_command): Ignore Windows drive colon.
5071
6a17d503
SM
50722020-06-12 Simon Marchi <simon.marchi@efficios.com>
5073
5074 * NEWS: Mention removed GDBserver host support.
5075
453c733f
NC
50762020-06-12 Nelson Chu <nelson.chu@sifive.com>
5077
5078 * features/riscv/rebuild-csr-xml.sh: Updated.
5079
2b4e6a3f
TT
50802020-06-11 Tom Tromey <tom@tromey.com>
5081
5082 PR gdb/18318:
5083 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
5084
4412332f
JG
50852020-06-09 Jonny Grant <jg@jguk.org>
50862020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
5087
5088 * main.c (captured_main_1): Don't print new line after help.
5089 (print_gdb_help): add mailing list and IRC channel information
5090 to --help. Add new lines between items in the footer. Remove
5091 quotes around bug url.
5092
2f33032a
KS
50932020-06-11 Keith Seitz <keiths@redhat.com>
5094
5095 PR gdb/21356
5096 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
5097 Resolve typedefs for type length calculations.
5098
7ab96794
TV
50992020-06-10 Tom de Vries <tdevries@suse.de>
5100
5101 PR ada/24713
5102 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
5103 (write_psymbols): Enable .gdb_index for ada.
5104 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
5105 ada.
5106
e5f3ece2
TV
51072020-06-10 Tom de Vries <tdevries@suse.de>
5108
5109 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
5110 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
5111 namei" instead of "const char *name" argument.
5112 (dw2_map_matching_symbols): Use "offset_type namei" variant of
5113 dw2_symtab_iter_init.
5114
940da03e
SM
51152020-06-08 Simon Marchi <simon.marchi@efficios.com>
5116
5117 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
5118 to use type::field and field::type instead.
5119
b6cdac4b
SM
51202020-06-08 Simon Marchi <simon.marchi@efficios.com>
5121
5122 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
5123 to use field::type instead.
5124
5d14b6e5
SM
51252020-06-08 Simon Marchi <simon.marchi@efficios.com>
5126
5127 * gdbtypes.h (struct field) <type, set_type>: New methods.
5128 Rename `type` field to...
5129 <m_type>: ... this. Change references throughout to use type or
5130 set_type methods.
5131 (FIELD_TYPE): Use field::type. Change call sites that modify
5132 the field's type to use field::set_type instead.
5133
3d967001
SM
51342020-06-08 Simon Marchi <simon.marchi@efficios.com>
5135
5136 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
5137 to use type::index_type instead.
5138
262abc0d
SM
51392020-06-08 Simon Marchi <simon.marchi@efficios.com>
5140
5141 * gdbtypes.h (struct type) <index_type, set_index_type>: New
5142 methods.
5143 (TYPE_INDEX_TYPE): Use type::index_type.
5144 * gdbtypes.c (create_array_type_with_stride): Likewise.
5145
82836c92
TT
51462020-06-07 Tom Tromey <tom@tromey.com>
5147
5148 * valprint.c (generic_val_print_float): Remove "embedded_offset"
5149 parameter.
5150 (generic_value_print): Update.
5151
940dace9
AB
51522020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5153
5154 Revert commit 982a38f60b0.
5155 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
5156
982a38f6
AB
51572020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5158
5159 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
5160 avoid use after free.
5161
82f06518
TV
51622020-06-05 Tom de Vries <tdevries@suse.de>
5163
5164 * NEWS: Fix typos.
5165
f8c41851
SM
51662020-06-04 Simon Marchi <simon.marchi@efficios.com>
5167
5168 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
5169 the per_bfd object.
5170 (dwarf2_read_debug_names): Likewise.
5171 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
5172 object when re-using a per_bfd object with an index.
5173
f9b5d5ea
TV
51742020-06-03 Tom de Vries <tdevries@suse.de>
5175
5176 PR symtab/26046
5177 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
5178 children for C++.
5179 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
5180 DW_TAG_subprogram.
5181
f6eee2d0
AB
51822020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5183
5184 * ada-lang.c (ada_language_data): Delete skip_trampoline
5185 initializer.
5186 * c-lang.c (c_language_data): Likewise.
5187 (cplus_language_data): Likewise.
5188 (cplus_language::skip_trampoline): New member function.
5189 (asm_language_data): Delete skip_trampoline initializer.
5190 (minimal_language_data): Likewise.
5191 * d-lang.c (d_language_data): Likewise.
5192 * f-lang.c (f_language_data): Likewise.
5193 * go-lang.c (go_language_data): Likewise.
5194 * language.c (unk_lang_trampoline): Delete function.
5195 (skip_language_trampoline): Update.
5196 (unknown_language_data): Delete skip_trampoline initializer.
5197 (auto_language_data): Likewise.
5198 * language.h (language_data): Delete skip_trampoline field.
5199 (language_defn::skip_trampoline): New function.
5200 * m2-lang.c (m2_language_data): Delete skip_trampoline
5201 initializer.
5202 * objc-lang.c (objc_skip_trampoline): Delete function, move
5203 implementation to objc_language::skip_trampoline.
5204 (objc_language_data): Delete skip_trampoline initializer.
5205 (objc_language::skip_trampoline): New member function with
5206 implementation from objc_skip_trampoline.
5207 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5208 initializer.
5209 * p-lang.c (pascal_language_data): Likewise.
5210 * rust-lang.c (rust_language_data): Likewise.
5211
0a50df5d
AB
52122020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5213
5214 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5215 (ada_language::demangle): New member function.
5216 * c-lang.c (c_language_data): Delete la_demangle initializer.
5217 (cplus_language_data): Delete la_demangle initializer.
5218 (cplus_language::demangle): New member function.
5219 (asm_language_data): Delete la_demangle initializer.
5220 (minimal_language_data): Delete la_demangle initializer.
5221 * d-lang.c (d_language_data): Delete la_demangle initializer.
5222 (d_language::demangle): New member function.
5223 * f-lang.c (f_language_data): Delete la_demangle initializer.
5224 (f_language::demangle): New member function.
5225 * go-lang.c (go_language_data): Delete la_demangle initializer.
5226 (go_language::demangle): New member function.
5227 * language.c (language_demangle): Update.
5228 (unk_lang_demangle): Delete.
5229 (unknown_language_data): Delete la_demangle initializer.
5230 (unknown_language::demangle): New member function.
5231 (auto_language_data): Delete la_demangle initializer.
5232 (auto_language::demangle): New member function.
5233 * language.h (language_data): Delete la_demangle field.
5234 (language_defn::demangle): New function.
5235 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5236 * objc-lang.c (objc_language_data): Delete la_demangle
5237 initializer.
5238 (objc_language::demangle): New member function.
5239 * opencl-lang.c (opencl_language_data): Delete la_demangle
5240 initializer.
5241 * p-lang.c (pascal_language_data): Likewise.
5242 * rust-lang.c (rust_language_data): Likewise.
5243 (rust_language::demangle): New member function.
5244
fbfb0a46
AB
52452020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5246
5247 * ada-lang.c (ada_language_data): Delete la_print_type
5248 initializer.
5249 (ada_language::print_type): New member function.
5250 * c-lang.c (c_language_data): Delete la_print_type initializer.
5251 (c_language::print_type): New member function.
5252 (cplus_language_data): Delete la_print_type initializer.
5253 (cplus_language::print_type): New member function.
5254 (asm_language_data): Delete la_print_type initializer.
5255 (asm_language::print_type): New member function.
5256 (minimal_language_data): Delete la_print_type initializer.
5257 (minimal_language::print_type): New member function.
5258 * d-lang.c (d_language_data): Delete la_print_type initializer.
5259 (d_language::print_type): New member function.
5260 * f-lang.c (f_language_data): Delete la_print_type initializer.
5261 (f_language::print_type): New member function.
5262 * go-lang.c (go_language_data): Delete la_print_type initializer.
5263 (go_language::print_type): New member function.
5264 * language.c (unk_lang_print_type): Delete.
5265 (unknown_language_data): Delete la_print_type initializer.
5266 (unknown_language::print_type): New member function.
5267 (auto_language_data): Delete la_print_type initializer.
5268 (auto_language::print_type): New member function.
5269 * language.h (language_data): Delete la_print_type field.
5270 (language_defn::print_type): New function.
5271 (LA_PRINT_TYPE): Update.
5272 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5273 (m2_language::print_type): New member function.
5274 * objc-lang.c (objc_language_data): Delete la_print_type
5275 initializer.
5276 (objc_language::print_type): New member function.
5277 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5278 to opencl_language::print_type.
5279 (opencl_language_data): Delete la_print_type initializer.
5280 (opencl_language::print_type): New member function, implementation
5281 from opencl_print_type.
5282 * p-lang.c (pascal_language_data): Delete la_print_type
5283 initializer.
5284 (pascal_language::print_type): New member function.
5285 * rust-lang.c (rust_print_type): Delete, implementation moved to
5286 rust_language::print_type.
5287 (rust_language_data): Delete la_print_type initializer.
5288 (rust_language::print_type): New member function, implementation
5289 from rust_print_type.
5290
6f827019
AB
52912020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5292
5293 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5294 implementation moves to...
5295 (ada_language::sniff_from_mangled_name): ...here. Update return
5296 type.
5297 (ada_language_data): Delete la_sniff_from_mangled_name
5298 initializer.
5299 * c-lang.c (c_language_data): Likewise.
5300 (cplus_language_data): Likewise.
5301 (cplus_language::sniff_from_mangled_name): New member function,
5302 implementation taken from gdb_sniff_from_mangled_name.
5303 (asm_language_data): Delete la_sniff_from_mangled_name
5304 initializer.
5305 (minimal_language_data): Likewise.
5306 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5307 implementation moves to cplus_language::sniff_from_mangled_name.
5308 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5309 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5310 moves to...
5311 (d_language::sniff_from_mangled_name): ...here.
5312 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5313 * f-lang.c (f_language_data): Likewise.
5314 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5315 moves to...
5316 (go_language::sniff_from_mangled_name): ...here.
5317 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5318 * language.c (language_sniff_from_mangled_name): Delete.
5319 (unknown_language_data): Delete la_sniff_from_mangled_name
5320 initializer.
5321 (auto_language_data): Likewise.
5322 * language.h (language_data): Delete la_sniff_from_mangled_name
5323 field.
5324 (language_defn::sniff_from_mangled_name): New function.
5325 (language_sniff_from_mangled_name): Delete declaration.
5326 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5327 field.
5328 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5329 implementation moves to...
5330 (objc_language::sniff_from_mangled_name): ...here.
5331 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5332 * opencl-lang.c (opencl_language_data): Likewise.
5333 * p-lang.c (pascal_language_data): Likewise.
5334 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5335 implementation moves to...
5336 (rust_language::sniff_from_mangled_name): ...here.
5337 (rust_language_data): Delete la_sniff_from_mangled_name
5338 initializer.
5339 * symtab.c (symbol_find_demangled_name): Call
5340 sniff_from_mangled_name member function.
5341
fb8006fd
AB
53422020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5343
5344 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5345 initializer.
5346 * c-lang.c (c_language_data): Likewise.
5347 (cplus_language_data): Likewise.
5348 (cplus_language::search_name_hash): New member function.
5349 (asm_language_data): Delete la_search_name_hash initializer.
5350 (minimal_language_data): Likewise.
5351 * d-lang.c (d_language_data): Likewise.
5352 * dictionary.c (default_search_name_hash): Rename to...
5353 (language_defn::search_name_hash): ...this.
5354 * f-lang.c (f_language_data): Likewise.
5355 (f_language::search_name_hash): New member function.
5356 * go-lang.c (go_language_data): Delete la_search_name_hash
5357 initializer.
5358 * language.c (unknown_language_data): Likewise.
5359 (auto_language_data): Likewise.
5360 * language.h (struct language_data): Delete la_search_name_hash
5361 field.
5362 (language_defn::search_name_hash): Declare new member function.
5363 (default_search_name_hash): Delete declaration.
5364 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5365 initializer.
5366 * objc-lang.c (objc_language_data): Likewise.
5367 * opencl-lang.c (opencl_language_data): Likewise.
5368 * p-lang.c (pascal_language_data): Likewise.
5369 * rust-lang.c (rust_language_data): Likewise.
5370 * symtab.c (search_name_hash): Update call.
5371
8e25bafe
AB
53722020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5373
5374 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5375 initializer.
5376 * c-lang.c (class compile_instance): Declare.
5377 (c_language_data): Delete la_get_compile_instance initializer.
5378 (c_language::get_compile_instance): New member function.
5379 (cplus_language_data): Delete la_get_compile_instance initializer.
5380 (cplus_language::get_compile_instance): New member function.
5381 (asm_language_data): Delete la_get_compile_instance initializer.
5382 (minimal_language_data): Likewise.
5383 * c-lang.h (c_get_compile_context): Update comment.
5384 (cplus_get_compile_context): Update comment.
5385 * compile/compile.c (compile_to_object): Update calls, don't rely
5386 on function pointer being NULL.
5387 * d-lang.c (d_language_data): Delete la_get_compile_instance
5388 initializer.
5389 * f-lang.c (f_language_data): Likewise.
5390 * go-lang.c (go_language_data): Likewise.
5391 * language.c (unknown_language_data): Likewise.
5392 (auto_language_data): Likewise.
5393 * language.h (language_data): Delete la_get_compile_instance field.
5394 (language_defn::get_compile_instance): New member function.
5395 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5396 initializer.
5397 * objc-lang.c (objc_language_data): Likewise.
5398 * opencl-lang.c (opencl_language_data): Likewise.
5399 * p-lang.c (pascal_language_data): Likewise.
5400 * rust-lang.c (rust_language_data): Likewise.
5401
4009ee92
AB
54022020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5403
5404 * ada-lang.c (ada_add_all_symbols): Update comment.
5405 (ada_iterate_over_symbols): Delete, move implementation to...
5406 (ada_language::iterate_over_symbols): ...here, a new member
5407 function, rewrite to use range based for loop.
5408 (ada_language_data): Delete la_iterate_over_symbols initializer.
5409 * c-lang.c (c_language_data): Likewise.
5410 (cplus_language_data): Likewise.
5411 (asm_language_data): Likewise.
5412 (minimal_language_data): Likewise.
5413 * d-lang.c (d_language_data): Likewise.
5414 * f-lang.c (f_language_data): Likewise.
5415 * go-lang.c (go_language_data): Likewise.
5416 * language.c (unknown_language_data): Likewise.
5417 (auto_language_data): Likewise.
5418 * language.h (language_data): Delete la_iterate_over_symbols field.
5419 (language_defn::iterate_over_symbols): New member function.
5420 (LA_ITERATE_OVER_SYMBOLS): Update.
5421 * linespec.c (iterate_over_all_matching_symtabs): Update.
5422 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5423 initializer.
5424 * objc-lang.c (objc_language_data): Likewise.
5425 * opencl-lang.c (opencl_language_data): Likewise.
5426 * p-lang.c (pascal_language_data): Likewise.
5427 * rust-lang.c (rust_language_data): Likewise.
5428
54f4ca46
AB
54292020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5430
5431 * ada-lang.c (ada_language_data): Delete
5432 la_lookup_transparent_type initializer.
5433 * c-lang.c (c_language_data): Likewise.
5434 (cplus_language_data): Likewise.
5435 (cplus_language::lookup_transparent_type): New member function.
5436 (asm_language_data): Delete la_lookup_transparent_type
5437 initializer.
5438 (minimal_language_data): Likewise.
5439 * d-lang.c (d_language_data): Likewise.
5440 * f-lang.c (f_language_data): Likewise.
5441 * go-lang.c (go_language_data): Likewise.
5442 * language.c (unknown_language_data): Likewise.
5443 (auto_language_data): Likewise.
5444 * language.h (struct language_data): Delete
5445 la_lookup_transparent_type field.
5446 (language_defn::lookup_transparent_type): New member function.
5447 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5448 initializer.
5449 * objc-lang.c (objc_language_data): Likewise.
5450 * opencl-lang.c (opencl_language_data): Likewise.
5451 * p-lang.c (pascal_language_data): Likewise.
5452 * rust-lang.c (rust_language_data): Likewise.
5453 * symtab.c (symbol_matches_domain): Update call.
5454
1fb314aa
AB
54552020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5456
5457 * ada-lang.c (ada_language_arch_info): Delete function, move
5458 implementation to...
5459 (ada_language::language_arch_info): ...here, a new member
5460 function.
5461 (ada_language_data): Delete la_language_arch_info.
5462 * c-lang.c (c_language_data): Likewise.
5463 (c_language::language_arch_info): New member function.
5464 (cplus_language_arch_info): Delete function, move
5465 implementation to...
5466 (cplus_language::language_arch_info): ...here, a new member
5467 function.
5468 (cplus_language_data): Delete la_language_arch_info.
5469 (asm_language_data): Likewise.
5470 (asm_language::language_arch_info): New member function.
5471 (minimal_language_data): Delete la_language_arch_info.
5472 (minimal_language::language_arch_info): New member function.
5473 * d-lang.c (d_language_arch_info): Delete function, move
5474 implementation to...
5475 (d_language::language_arch_info): ...here, a new member
5476 function.
5477 (d_language_data): Delete la_language_arch_info.
5478 * f-lang.c (f_language_arch_info): Delete function, move
5479 implementation to...
5480 (f_language::language_arch_info): ...here, a new member
5481 function.
5482 (f_language_data): Delete la_language_arch_info.
5483 * go-lang.c (go_language_arch_info): Delete function, move
5484 implementation to...
5485 (go_language::language_arch_info): ...here, a new member
5486 function.
5487 (go_language_data): Delete la_language_arch_info.
5488 * language.c (unknown_language_data): Likewise.
5489 (unknown_language::language_arch_info): New member function.
5490 (auto_language_data): Delete la_language_arch_info.
5491 (auto_language::language_arch_info): New member function.
5492 (language_gdbarch_post_init): Update call to
5493 la_language_arch_info.
5494 * language.h (language_data): Delete la_language_arch_info
5495 function pointer.
5496 (language_defn::language_arch_info): New function.
5497 * m2-lang.c (m2_language_arch_info): Delete function, move
5498 implementation to...
5499 (m2_language::language_arch_info): ...here, a new member
5500 function.
5501 (m2_language_data): Delete la_language_arch_info.
5502 * objc-lang.c (objc_language_arch_info): Delete function, move
5503 implementation to...
5504 (objc_language::language_arch_info): ...here, a new member
5505 function.
5506 (objc_language_data): Delete la_language_arch_info.
5507 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5508 implementation to...
5509 (opencl_language::language_arch_info): ...here, a new member
5510 function.
5511 (opencl_language_data): Delete la_language_arch_info.
5512 * p-lang.c (pascal_language_arch_info): Delete function, move
5513 implementation to...
5514 (pascal_language::language_arch_info): ...here, a new member
5515 function.
5516 (pascal_language_data): Delete la_language_arch_info.
5517 * rust-lang.c (rust_language_arch_info): Delete function, move
5518 implementation to...
5519 (rust_language::language_arch_info): ...here, a new member
5520 function.
5521 (rust_language_data): Delete la_language_arch_info.
5522
48448202
AB
55232020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5524
5525 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5526 initializer.
5527 * c-lang.c (c_language_data): Likewise.
5528 (cplus_language_data): Likewise.
5529 (cplus_language::pass_by_reference_info): New method.
5530 (asm_language_data): Delete la_pass_by_reference initializer.
5531 (minimal_language_data): Likewise.
5532 * cp-abi.c (cp_pass_by_reference): Remove use of
5533 default_pass_by_reference.
5534 * d-lang.c (d_language_data): Likewise.
5535 * f-lang.c (f_language_data): Likewise.
5536 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5537 default_pass_by_reference.
5538 * go-lang.c (go_language_data): Likewise.
5539 * language.c (language_pass_by_reference): Update.
5540 (default_pass_by_reference): Delete.
5541 (unknown_language_data): Delete la_pass_by_reference
5542 initializer.
5543 (auto_language_data): Likewise.
5544 * language.h (struct language_data): Delete la_pass_by_reference
5545 field.
5546 (language_defn::pass_by_reference_info): New member function.
5547 (default_pass_by_reference): Delete declaration.
5548 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5549 initializer.
5550 * objc-lang.c (objc_language_data): Likewise.
5551 * opencl-lang.c (opencl_language_data): Likewise.
5552 * p-lang.c (pascal_language_data): Likewise.
5553 * rust-lang.c (rust_language_data): Likewise.
5554
15e5fd35
AB
55552020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5556
5557 * ada-lang.c (ada_read_var_value): Delete function, move
5558 implementation to...
5559 (ada_language::read_var_value): ...here.
5560 (ada_language_data): Delete la_read_var_value initializer.
5561 * c-lang.c (c_language_data): Likewise.
5562 (cplus_language_data): Likewise.
5563 (minimal_language_data): Likewise.
5564 * d-lang.c (d_language_data): Likewise.
5565 * f-lang.c (f_language_data): Likewise.
5566 * findvar.c (default_read_var_value): Rename to...
5567 (language_defn::read_var_value): ...this.
5568 * findvar.c (read_var_value): Update header comment, and change to
5569 call member function instead of function pointer.
5570 * go-lang.c (go_language_data): Likewise.
5571 * language.c (unknown_language_data): Delete la_read_var_value
5572 initializer.
5573 (auto_language_data): Likewise.
5574 * language.h (struct language_data): Delete la_read_var_value
5575 field.
5576 (language_defn::read_var_value): New member function.
5577 (default_read_var_value): Delete declaration.
5578 * m2-lang.c (m2_language_data): Delete la_read_var_value
5579 initializer.
5580 * objc-lang.c (objc_language_data): Likewise.
5581 * opencl-lang.c (opencl_language_data): Likewise.
5582 * p-lang.c (pascal_language_data): Likewise.
5583 * rust-lang.c (rust_language_data): Likewise.
5584 * value.h (default_read_var_value): Delete declaration.
5585
5bd40f2a
AB
55862020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5587
5588 * ada-lang.c (ada_print_array_index): Delete function, move
5589 implementation to...
5590 (ada_language::print_array_index): ...here.
5591 (ada_language_data): Delete la_print_array_index initializer.
5592 * c-lang.c (c_language_data): Likewise.
5593 (cplus_language_data): Likewise.
5594 (minimal_language_data): Likewise.
5595 * d-lang.c (d_language_data): Likewise.
5596 * f-lang.c (f_language_data): Likewise.
5597 * go-lang.c (go_language_data): Likewise.
5598 * language.c (default_print_array_index): Delete function, move
5599 implementation to...
5600 (language_defn::print_array_index): ...here.
5601 (unknown_language_data): Delete la_print_array_index initializer.
5602 (auto_language_data): Likewise.
5603 * language.h (struct language_data): Delete la_print_array_index
5604 field.
5605 (language_defn::print_array_index): New member function.
5606 (LA_PRINT_ARRAY_INDEX): Update.
5607 (default_print_array_index): Delete declaration.
5608 * m2-lang.c (m2_language_data): Delete la_print_array_index
5609 initializer.
5610 * objc-lang.c (objc_language_data): Likewise.
5611 * opencl-lang.c (opencl_language_data): Likewise.
5612 * p-lang.c (pascal_language_data): Likewise.
5613 * rust-lang.c (rust_language_data): Likewise.
5614
0874fd07
AB
56152020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5616
5617 * gdb/ada-lang.c (ada_language_defn): Convert to...
5618 (ada_language_data): ...this.
5619 (class ada_language): New class.
5620 (ada_language_defn): New static global.
5621 * gdb/c-lang.c (c_language_defn): Convert to...
5622 (c_language_data): ...this.
5623 (class c_language): New class.
5624 (c_language_defn): New static global.
5625 (cplus_language_defn): Convert to...
5626 (cplus_language_data): ...this.
5627 (class cplus_language): New class.
5628 (cplus_language_defn): New static global.
5629 (asm_language_defn): Convert to...
5630 (asm_language_data): ...this.
5631 (class asm_language): New class.
5632 (asm_language_defn): New static global.
5633 (minimal_language_defn): Convert to...
5634 (minimal_language_data): ...this.
5635 (class minimal_language): New class.
5636 (minimal_language_defn): New static global.
5637 * gdb/d-lang.c (d_language_defn): Convert to...
5638 (d_language_data): ...this.
5639 (class d_language): New class.
5640 (d_language_defn): New static global.
5641 * gdb/f-lang.c (f_language_defn): Convert to...
5642 (f_language_data): ...this.
5643 (class f_language): New class.
5644 (f_language_defn): New static global.
5645 * gdb/go-lang.c (go_language_defn): Convert to...
5646 (go_language_data): ...this.
5647 (class go_language): New class.
5648 (go_language_defn): New static global.
5649 * gdb/language.c (unknown_language_defn): Remove declaration.
5650 (current_language): Initialize to nullptr, real initialization is
5651 moved to _initialize_language.
5652 (languages): Delete global.
5653 (language_defn::languages): Define.
5654 (set_language_command): Use language_defn::languages.
5655 (set_language): Likewise.
5656 (range_error): Likewise.
5657 (language_enum): Likewise.
5658 (language_def): Likewise.
5659 (add_set_language_command): Use language_def::languages for the
5660 language list, and language_def to lookup language pointers.
5661 (skip_language_trampoline): Use language_defn::languages.
5662 (unknown_language_defn): Convert to...
5663 (unknown_language_data): ...this.
5664 (class unknown_language): New class.
5665 (unknown_language_defn): New static global.
5666 (auto_language_defn): Convert to...
5667 (auto_language_data): ...this.
5668 (class auto_language): New class.
5669 (auto_language_defn): New static global.
5670 (language_gdbarch_post_init): Use language_defn::languages.
5671 (_initialize_language): Initialize current_language.
5672 * gdb/language.h (struct language_defn): Rename to...
5673 (struct language_data): ...this.
5674 (struct language_defn): New.
5675 (auto_language_defn): Delete.
5676 (unknown_language_defn): Delete.
5677 (minimal_language_defn): Delete.
5678 (ada_language_defn): Delete.
5679 (asm_language_defn): Delete.
5680 (c_language_defn): Delete.
5681 (cplus_language_defn): Delete.
5682 (d_language_defn): Delete.
5683 (f_language_defn): Delete.
5684 (go_language_defn): Delete.
5685 (m2_language_defn): Delete.
5686 (objc_language_defn): Delete.
5687 (opencl_language_defn): Delete.
5688 (pascal_language_defn): Delete.
5689 (rust_language_defn): Delete.
5690 * gdb/m2-lang.c (m2_language_defn): Convert to...
5691 (m2_language_data): ...this.
5692 (class m2_language): New class.
5693 (m2_language_defn): New static global.
5694 * gdb/objc-lang.c (objc_language_defn): Convert to...
5695 (objc_language_data): ...this.
5696 (class objc_language): New class.
5697 (objc_language_defn): New static global.
5698 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5699 (opencl_language_data): ...this.
5700 (class opencl_language): New class.
5701 (opencl_language_defn): New static global.
5702 * gdb/p-lang.c (pascal_language_defn): Convert to...
5703 (pascal_language_data): ...this.
5704 (class pascal_language): New class.
5705 (pascal_language_defn): New static global.
5706 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5707 language pointer, update comment format.
5708 * gdb/rust-lang.c (rust_language_defn): Convert to...
5709 (rust_language_data): ...this.
5710 (class rust_language): New class.
5711 (rust_language_defn): New static global.
5712
1313c56e
AB
57132020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5714
5715 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5716 member variable.
5717 <m_stmt_at_address>: New member variable.
5718 (lnp_state_machine::record_line): Don't record some lines, update
5719 tracking of is_stmt at the same address.
5720 (lnp_state_machine::lnp_state_machine): Initialise new member
5721 variables.
5722
b7ed9f3d
ST
57232020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5724
5725 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5726 "-include gnu-nat-mig.h".
5727 * gnu-nat-mig.h: New file.
5728 * gnu-nat.c: Include "gnu-nat-mig.h".
5729 (exc_server, msg_reply_server, notify_server,
5730 process_reply_server): Remove declarations.
5731
14a8ad62
ST
57322020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5733
5734 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5735 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5736 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5737 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5738 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5739 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5740 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5741 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5742 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5743 to gnu_nat_target class.
5744 * gnu-nat.c: Likewise.
5745 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5746 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5747 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5748 object.
5749 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5750 instead of `gnu_target'.
5751
0af5e106
ST
57522020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5753
5754 * i386-gnu-tdep.c: Include "gdbcore.h"
5755 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5756 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5757 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5758 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5759 i386_gnu_sigcontext_addr): New functions
5760 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5761 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5762 tdep.
5763
078f2fc9
ST
57642020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5765
5766 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5767 before fork_inferior call. Avoid calling it if target_is_pushed returns
5768 true.
5769
53dff92c
ST
57702020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5771
5772 * gnu-nat.h (gnu_target): New variable declaration.
5773 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5774 gnu_target.
5775 * gnu-nat.c (gnu_target): New variable.
5776 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5777 add_thread_silent, and add_thread calls.
5778 (gnu_nat_target::create_inferior): Pass gnu_target to
5779 add_thread_silent, thread_change_ptid call.
5780 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5781 call.
5782
5a8b8627
ST
57832020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5784
5785 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5786 (gnu_nat_target::find_memory_regions): Remove unused
5787 `old_address' variable.
5788
366f550a
ST
57892020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5790
5791 * gnu-nat.c: Include "gdbarch.h".
5792
f14871bf
ST
57932020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5794
5795 * reply_mig_hack.awk (Error return): Cast function through
5796 void *, to bypass compiler function call check.
5797
c6887cfb
ST
57982020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5799
5800 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5801 $(srcdir)/reply_mig_hack.awk.
5802
6930bffe
ST
58032020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5804
5805 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5806
112c22ed
JG
58072020-05-30 Jonny Grant <jg@jguk.org>
5808
5809 * configure.ac (ACX_BUGURL): change bug URL to https.
5810
f68f85b5
PA
58112020-05-30 Pedro Alves <palves@redhat.com>
5812
5813 * cp-support.c (replace_typedefs_template): New.
5814 (replace_typedefs_qualified_name): Handle
5815 DEMANGLE_COMPONENT_TEMPLATE.
5816
976ca316
SM
58172020-05-29 Simon Marchi <simon.marchi@efficios.com>
5818
5819 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5820 dwarf2/index-cache.h, dwarf2/index-write.c,
5821 dwarf2/index-write.h, dwarf2/line-header.c,
5822 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5823 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5824 variables and fields from `dwarf2_per_objfile` to just
5825 `per_objfile` throughout.
5826
989ade05
SM
58272020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5828
5829 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5830 <push_dwarf_reg_entry_value>: Add comment.
5831
c47bae85
KB
58322020-05-28 Kevin Buettner <kevinb@redhat.com>
5833 Keith Seitz <keiths@redhat.com>
5834
5835 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5836 instead of PyEval_ReleaseLock.
5837 (class gdbpy_gil): Move to earlier in file.
5838 (finalize_python): Set gdb_python_initialized.
5839 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5840 when not initialized.
5841
44486dcf
SM
58422020-05-28 Simon Marchi <simon.marchi@efficios.com>
5843
5844 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5845 <push_dwarf_reg_entry_value>: Remove assert. Override
5846 per_objfile with caller_per_objfile.
5847
f030440d
TV
58482020-05-28 Tom de Vries <tdevries@suse.de>
5849
5850 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
5851 PR gold/15646 workaround to symbol kind "type".
5852
f0fbb768
TT
58532020-05-27 Tom Tromey <tromey@adacore.com>
5854
5855 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
5856
af0b2a3e
TT
58572020-05-27 Tom Tromey <tromey@adacore.com>
5858
5859 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5860 Use htab_find_with_hash.
5861 <add_abbrev>: Remove "abbrev_number" parameter.
5862 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
5863 "abbrev_number" parameter. Use htab_find_slot_with_hash.
5864 (hash_abbrev): Add comment.
5865 (abbrev_table::lookup_abbrev): Move to header file.
5866 (abbrev_table::read): Update.
5867
7d00ffec
TT
58682020-05-27 Tom Tromey <tromey@adacore.com>
5869
5870 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
5871 method.
5872 <canonical_name>: New member.
5873 <raw_name>: Rename from "name".
5874 (partial_die_info): Initialize canonical_name.
5875 (scan_partial_symbols): Check raw_name.
5876 (partial_die_parent_scope, partial_die_full_name)
5877 (add_partial_symbol, add_partial_subprogram)
5878 (add_partial_enumeration, load_partial_dies): Use "name" method.
5879 (partial_die_info::name): New method.
5880 (partial_die_info::read, guess_partial_die_structure_name)
5881 (partial_die_info::fixup): Update.
5882
697bba18
TT
58832020-05-27 Tom Tromey <tromey@adacore.com>
5884
5885 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
5886 <get_ref_die_offset>: Inline.
5887 <get_ref_die_offset_complaint>: New method.
5888 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
5889 (attribute::get_ref_die_offset_complaint): Rename from
5890 get_ref_die_offset. Just issue complaint.
5891
c17ace43
HD
58922020-05-27 Hannes Domani <ssbssa@yahoo.de>
5893
5894 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
5895
96445f0b
HD
58962020-05-27 Hannes Domani <ssbssa@yahoo.de>
5897
5898 * exec.c (exec_file_attach): Use errno value of first openp failure.
5899
ac637ec3
HD
59002020-05-27 Hannes Domani <ssbssa@yahoo.de>
5901
5902 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5903 Don't close thread handle.
5904
17ee85fc
TT
59052020-05-27 Tom Tromey <tom@tromey.com>
5906 Simon Marchi <simon.marchi@efficios.com>
5907
5908 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5909 shared_ptr.
5910 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5911 member.
5912 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5913 dwarf2_per_bfd_objfile_data_key>: New globals.
5914 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5915 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5916 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5917 shared.
5918 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5919 short-circuit when sharing.
5920 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5921 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5922
39b16f87
SM
59232020-05-27 Simon Marchi <simon.marchi@efficios.com>
5924
5925 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5926 to...
5927 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5928 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5929
fcf23d5b
SM
59302020-05-27 Simon Marchi <simon.marchi@efficios.com>
5931
5932 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5933 build_name_components, find_name_components_bounds>:
5934 Add per_objfile parameter.
5935 (struct mapped_index) <symbol_name_at>: Likewise.
5936 (struct mapped_debug_names): Remove constructor.
5937 <dwarf2_per_objfile>: Remove field.
5938 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5939 (mapped_index_base::find_name_components_bounds,
5940 mapped_index_base::build_name_components,
5941 dw2_expand_symtabs_matching_symbol): Likewise.
5942 (class mock_mapped_index) <symbol_name_at>: Likewise.
5943 (check_match): Likewise.
5944 (check_find_bounds_finds): Likewise.
5945 (test_mapped_index_find_name_component_bounds): Update.
5946 (CHECK_MATCH): Update.
5947 (dw2_expand_symtabs_matching): Update.
5948 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5949 per_objfile parameter.
5950 <find_vec_in_debug_names>: Likewise.
5951 <m_per_objfile>: New field.
5952 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5953 parameter.
5954 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5955 (dw2_debug_names_iterator::next): Update.
5956 (dw2_debug_names_lookup_symbol): Update.
5957 (dw2_debug_names_expand_symtabs_for_function): Update.
5958 (dw2_debug_names_map_matching_symbols): Update.
5959 (dw2_debug_names_expand_symtabs_matching): Update.
5960 (dwarf2_read_debug_names): Update.
5961
7188ed02
SM
59622020-05-27 Simon Marchi <simon.marchi@efficios.com>
5963
5964 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5965 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5966 move to dwarf2_per_objfile.
5967 <read_in_chain>: Remove.
5968 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5969 remove_all_cus, age_comp_units>: New methods.
5970 <m_dwarf2_cus>: New member.
5971 (struct dwarf2_per_cu_data) <cu>: Remove.
5972 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5973 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5974 moved to methods of dwarf2_per_objfile.
5975 (dwarf2_clear_marks): Remove.
5976 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5977 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5978 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5979 (dwarf2_per_objfile::remove_all_cus): New.
5980 (class free_cached_comp_units) <~free_cached_comp_units>:
5981 Update.
5982 (load_cu): Update.
5983 (dw2_do_instantiate_symtab): Adjust.
5984 (fill_in_sig_entry_from_dwo_entry): Adjust.
5985 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5986 (cutu_reader::cutu_reader): Likewise.
5987 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5988 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5989 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5990 and dwarf2_per_objfile::age_comp_units.
5991 (load_partial_comp_unit): Update.
5992 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5993 (process_queue): Likewise.
5994 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5995 backlink.
5996 (dwarf2_read_addr_index): Likewise.
5997 (follow_die_offset): Likewise.
5998 (dwarf2_fetch_die_loc_sect_off): Likewise.
5999 (dwarf2_fetch_constant_bytes): Likewise.
6000 (dwarf2_fetch_die_type_sect_off): Likewise.
6001 (follow_die_sig_1): Likewise.
6002 (load_full_type_unit): Likewise.
6003 (read_signatured_type): Likewise.
6004 (dwarf2_cu::dwarf2_cu): Don't set cu field.
6005 (dwarf2_cu::~dwarf2_cu): Remove.
6006 (dwarf2_per_objfile::get_cu): New.
6007 (dwarf2_per_objfile::set_cu): New.
6008 (age_cached_comp_units): Rename to...
6009 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
6010 to std::unordered_map.
6011 (free_one_cached_comp_unit): Rename to...
6012 (dwarf2_per_objfile::remove_cu): ... this. Adjust
6013 to std::unordered_map.
6014 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
6015 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
6016 a dwarf2_per_objfile in data.
6017 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
6018 (dwarf2_clear_marks): Remove.
6019
2e671100
SM
60202020-05-27 Simon Marchi <simon.marchi@efficios.com>
6021
6022 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
6023 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
6024 (init_tu_and_read_dwo_dies): Likewise.
6025 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
6026 (cutu_reader::cutu_reader): Likewise.
6027 (load_partial_comp_unit): Likewise.
6028 (process_psymtab_comp_unit): Update.
6029 (build_type_psymtabs_1): Update.
6030 (process_skeletonless_type_unit): Update.
6031 (load_full_comp_unit): Update.
6032 (find_partial_die): Update.
6033 (dwarf2_read_addr_index): Update.
6034 (read_signatured_type): Update.
6035
2e6a9f79
SM
60362020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6037
6038 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
6039 m_header_read_in>: New fields.
6040 <get_header>: New method.
6041 * dwarf2/read.c (per_cu_header_read_in): Remove.
6042 (dwarf2_per_cu_data::get_header): New.
6043 (dwarf2_per_cu_data::addr_size): Update.
6044 (dwarf2_per_cu_data::offset_size): Update.
6045 (dwarf2_per_cu_data::ref_addr_size): Update.
6046
1b555f17
SM
60472020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6048
6049 * dwarf2/read.c (load_cu): Return dwarf2_cu.
6050 (dw2_do_instantiate_symtab): Update.
6051 (queue_and_load_all_dwo_tus): Change parameter from
6052 dwarf2_per_cu_data to dwarf2_cu.
6053 (dwarf2_fetch_die_loc_sect_off): Update.
6054 (dwarf2_fetch_constant_bytes): Update.
6055 (dwarf2_fetch_die_type_sect_off): Update.
6056
8fc0b21d
SM
60572020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6058
6059 * dwarf2/read.c (process_full_comp_unit,
6060 process_full_type_unit): Remove per_cu, per_objfile paramters.
6061 Add dwarf2_cu parameter.
6062 (process_queue): Update.
6063
168c9250
SM
60642020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6065
6066 * dwarf2/read.c (create_cu_from_index_list): Replace
6067 dwarf2_per_objfile parameter with dwarf2_per_bfd.
6068 (create_cus_from_index_list): Likewise.
6069 (create_cus_from_index): Likewise.
6070 (create_signatured_type_table_from_index): Likewise.
6071 (create_cus_from_debug_names_list): Likewise.
6072 (create_cus_from_debug_names): Likewise.
6073 (dwarf2_read_gdb_index): Update.
6074 (dwarf2_read_debug_names): Update.
6075
e286671b
TT
60762020-05-27 Tom Tromey <tom@tromey.com>
6077 Simon Marchi <simon.marchi@efficios.com>
6078
6079 * dwarf2/read.h (struct dwarf2_per_objfile)
6080 <get_type_for_signatured_type, set_type_for_signatured_type>:
6081 New methods.
6082 <m_type_map>: New member.
6083 (struct signatured_type) <type>: Remove.
6084 * dwarf2/read.c
6085 (dwarf2_per_objfile::get_type_for_signatured_type,
6086 dwarf2_per_objfile::set_type_for_signatured_type): New.
6087 (get_signatured_type): Use new methods.
6088
8adb8487
TT
60892020-05-27 Tom Tromey <tom@tromey.com>
6090 Simon Marchi <simon.marchi@efficios.com>
6091
6092 * dwarf2/read.h (struct type_unit_group_unshareable): New.
6093 (struct dwarf2_per_objfile) <type_units>: New member.
6094 <get_type_unit_group_unshareable>: New method.
6095 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
6096 num_symtabs, symtabs>: Remove; move to
6097 type_unit_group_unshareable.
6098 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
6099 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
6100 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
6101
127bbf4b
SM
61022020-05-27 Simon Marchi <simon.marchi@efficios.com>
6103
6104 * dwarf2/read.h (struct dwarf2_per_cu_data):
6105 <dwarf2_per_objfile>: Remove.
6106 * dwarf2/read.c (create_cu_from_index_list): Don't assign
6107 dwarf2_per_objfile.
6108 (create_signatured_type_table_from_index): Likewise.
6109 (create_signatured_type_table_from_debug_names): Likewise.
6110 (create_debug_type_hash_table): Likewise.
6111 (fill_in_sig_entry_from_dwo_entry): Likewise.
6112 (create_type_unit_group): Likewise.
6113 (read_comp_units_from_section): Likewise.
6114 (create_cus_hash_table): Likewise.
6115
f6e649dd
SM
61162020-05-27 Simon Marchi <simon.marchi@efficios.com>
6117
6118 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
6119 dwarf2_per_cu_data::dwarf2_per_objfile.
6120 (compute_compunit_symtab_includes): Likewise.
6121 (dwarf2_cu::start_symtab): Likewise.
6122
aa66c379
SM
61232020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6124
6125 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
6126 parameter.
6127 * dwarf2/read.c (get_die_type_at_offset): Likewise.
6128 (read_namespace_alias): Update.
6129 (lookup_die_type): Update.
6130 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
6131 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
6132 Update.
6133 (disassemble_dwarf_expression): Update.
6134
120ce1b5
SM
61352020-05-27 Simon Marchi <simon.marchi@efficios.com>
6136
6137 * dwarf2/read.h (struct dwarf2_queue_item): Add
6138 dwarf2_per_objfile parameter, assign new parameter.
6139 <per_objfile>: New field.
6140 * dwarf2/read.c (free_one_cached_comp_unit): Add
6141 dwarf2_per_objfile parameter.
6142 (queue_comp_unit): Likewise.
6143 (dw2_do_instantiate_symtab): Update.
6144 (process_psymtab_comp_unit): Update.
6145 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
6146 (process_imported_unit_die): Update.
6147 (queue_and_load_dwo_tu): Update.
6148 (follow_die_offset): Update.
6149 (follow_die_sig_1): Update.
6150
9f47c707
SM
61512020-05-27 Simon Marchi <simon.marchi@efficios.com>
6152
6153 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
6154 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
6155 (read_call_site_scope): Assign per_objfile.
6156 (dwarf2_per_cu_data::objfile): Remove.
6157 * gdbtypes.h (struct call_site) <per_objfile>: New member.
6158 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
6159 dwarf2_per_objfile parameter.
6160 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
6161 dwarf2_per_objfile parameter.
6162 (dwarf_expr_reg_to_entry_parameter): Add output
6163 dwarf2_per_objfile parameter.
6164 (locexpr_get_frame_base): Update.
6165 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
6166 <push_dwarf_reg_entry_value>: Update.
6167 <call_site_to_target_addr>: Update.
6168 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
6169 parameter.
6170 (value_of_dwarf_reg_entry): Update.
6171 (rw_pieced_value): Update.
6172 (indirect_synthetic_pointer): Update.
6173 (dwarf2_evaluate_property): Update.
6174 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
6175 parameter.
6176 (locexpr_read_variable): Update.
6177 (locexpr_get_symbol_read_needs): Update.
6178 (loclist_read_variable): Update.
6179
14095eb3
SM
61802020-05-27 Simon Marchi <simon.marchi@efficios.com>
6181
6182 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6183 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6184 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6185 parameter.
6186 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6187 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6188 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6189 parameter.
6190 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6191 sect_variable_value): Add dwarf2_per_objfile parameter.
6192 (class dwarf_evaluate_loc_desc) <dwarf_call,
6193 dwarf_variable_value>: Update.
6194 (fetch_const_value_from_synthetic_pointer): Add
6195 dwarf2_per_objfile parameter.
6196 (fetch_const_value_from_synthetic_pointer): Update.
6197 (coerced_pieced_ref): Update.
6198 (class symbol_needs_eval_context) <dwarf_call,
6199 dwarf_variable_value>: Update.
6200 (dwarf2_compile_expr_to_ax): Update.
6201
3c3cd3d4
SM
62022020-05-27 Simon Marchi <simon.marchi@efficios.com>
6203
6204 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6205 parameter.
6206 (dwarf2_evaluate_loc_desc_full): Update.
6207
82ca3f51
SM
62082020-05-27 Simon Marchi <simon.marchi@efficios.com>
6209
6210 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6211 parameter.
6212 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6213 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6214 dwarf2_per_objfile parameter.
6215 (decode_debug_loc_dwo_addresses): Likewise.
6216 (dwarf2_find_location_expression): Update.
6217 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6218 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6219 parameter.
6220 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6221 parameter.
6222 (locexpr_describe_location_1): Likewise.
6223 (locexpr_describe_location): Update.
6224
4b167ea1
SM
62252020-05-27 Simon Marchi <simon.marchi@efficios.com>
6226
6227 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6228 Remove.
6229 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6230 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6231 (dwarf2_compile_property_to_c): Update.
6232 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6233 use text offset from objfile.
6234 (locexpr_tracepoint_var_ref): Update.
6235 (locexpr_generate_c_location): Update.
6236 (loclist_describe_location): Update.
6237 (loclist_tracepoint_var_ref): Update.
6238 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6239 dwarf2_per_objfile parameter.
6240 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6241 use text offset from objfile.
6242 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6243
89b07335
SM
62442020-05-27 Simon Marchi <simon.marchi@efficios.com>
6245
6246 * dwarf2/expr.h (struct dwarf_expr_context)
6247 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6248 <offset>: Remove.
6249 <per_objfile>: New member.
6250 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6251 dwarf2_per_objfile parameter. Don't set offset, set
6252 per_objfile.
6253 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6254 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6255 a dwarf2_per_objfile object instead of an offset.
6256 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6257 constructor.
6258 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6259 to dwarf2_expr_executor constructor. Don't set offset.
6260 (dwarf2_fetch_cfa_info): Update.
6261 (struct dwarf2_frame_cache) <text_offset>: Remove.
6262 <per_objfile>: New field.
6263 (dwarf2_frame_cache): Update.
6264 (dwarf2_frame_prev_register): Update.
6265 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6266 <dwarf_evaluate_loc_desc>: Add constructor.
6267 (dwarf2_evaluate_loc_desc_full): Update.
6268 (dwarf2_locexpr_baton_eval): Update.
6269 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6270 Add constructor.
6271 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6272
293e7e51
SM
62732020-05-27 Simon Marchi <simon.marchi@efficios.com>
6274
6275 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6276 addr_sized_int_type>: Move to dwarf2_cu.
6277 <int_type>: Move to dwarf2_per_objfile.
6278 (struct dwarf2_per_objfile) <int_type>: Move here.
6279 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6280 addr_sized_int_type>: Move here.
6281 (read_func_scope): Update.
6282 (read_array_type): Update.
6283 (read_tag_string_type): Update.
6284 (attr_to_dynamic_prop): Update.
6285 (dwarf2_per_cu_data::int_type): Rename to...
6286 (dwarf2_per_objfile::int_type): ... this.
6287 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6288 (dwarf2_cu::addr_sized_int_type): ... this.
6289 (read_subrange_type): Update.
6290 (dwarf2_per_cu_data::addr_type): Rename to...
6291 (dwarf2_cu::addr_type): ... this.
6292 (set_die_type): Update.
6293
64874a40
SM
62942020-05-27 Simon Marchi <simon.marchi@efficios.com>
6295
6296 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6297 data through per_cu->cu.
6298
4ab09049
SM
62992020-05-27 Simon Marchi <simon.marchi@efficios.com>
6300
6301 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6302 dwarf2_per_cu_data parameter fo dwarf2_cu.
6303 (lookup_dwo_type_unit): Likewise.
6304 (read_cutu_die_from_dwo): Likewise.
6305 (lookup_dwo_unit): Likewise.
6306 (open_and_init_dwo_file): Likewise.
6307 (lookup_dwo_cutu): Likewise.
6308 (lookup_dwo_comp_unit): Likewise.
6309 (lookup_dwo_type_unit): Likewise.
6310 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6311 (cutu_reader::cutu_reader): Update.
6312
47b14e86
SM
63132020-05-27 Simon Marchi <simon.marchi@efficios.com>
6314
6315 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6316 parameter.
6317 (process_full_type_unit): Likewise.
6318 (process_queue): Update.
6319
43182c09
SM
63202020-05-27 Simon Marchi <simon.marchi@efficios.com>
6321
6322 * dwarf2/read.c (recursively_compute_inclusions): Add
6323 dwarf2_per_objfile parameter.
6324 (compute_compunit_symtab_includes): Likewise.
6325 (process_cu_includes): Update.
6326
7aa104c4
SM
63272020-05-27 Simon Marchi <simon.marchi@efficios.com>
6328
6329 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6330 parameter.
6331 (create_type_unit_group): Update.
6332 (process_psymtab_comp_unit_reader): Update.
6333 (build_type_psymtabs_reader): Update.
6334
e3beb21d
SM
63352020-05-27 Simon Marchi <simon.marchi@efficios.com>
6336
6337 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6338 object through m_this_cu->cu.
6339
d460f660
SM
63402020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6341
6342 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6343 the info parameter.
6344 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6345
ab432490
SM
63462020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6347
6348 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6349 per_objfile parameter.
6350 (load_full_type_unit): Add per_objfile parameter.
6351 (read_signatured_type): Likewise.
6352 (load_full_comp_unit): Likewise.
6353 (load_cu): Likewise.
6354 (dw2_do_instantiate_symtab): Likewise.
6355 (dw2_get_file_names): Likewise.
6356 (dw2_map_symtabs_matching_filename): Update.
6357 (dw_expand_symtabs_matching_file_matcher): Update.
6358 (dw2_map_symbol_filenames): Update.
6359 (process_psymtab_comp_unit): Add per_objfile parameter.
6360 (build_type_psymtabs_1): Update.
6361 (process_skeletonless_type_unit): Update.
6362 (dwarf2_build_psymtabs_hard): Update.
6363 (load_partial_comp_unit): Add per_objfile parameter.
6364 (scan_partial_symbols): Update.
6365 (load_full_comp_unit): Add per_objfile parameter.
6366 (process_imported_unit_die): Update.
6367 (create_cus_hash_table): Update.
6368 (find_partial_die): Update.
6369 (dwarf2_read_addr_index): Update.
6370 (follow_die_offset): Update.
6371 (dwarf2_fetch_die_loc_sect_off): Update.
6372 (dwarf2_fetch_constant_bytes): Update.
6373 (dwarf2_fetch_die_type_sect_off): Update.
6374 (follow_die_sig_1): Update.
6375 (load_full_type_unit): Add per_objfile parameter.
6376 (read_signatured_type): Likewise.
6377
313bad1b
SM
63782020-05-27 Simon Marchi <simon.marchi@efficios.com>
6379
6380 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6381 of objfile_name.
6382
c3699833
SM
63832020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6384
6385 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6386 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6387 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6388 field.
6389 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6390 (create_cus_from_index): Update.
6391 (dwarf2_read_gdb_index): Update.
6392 (create_cus_from_debug_names): Update.
6393 (dwarf2_read_debug_names): Update.
6394 (get_abbrev_section_for_cu): Update.
6395 (create_all_comp_units): Update.
6396 (read_attribute_value): Update.
6397 (get_debug_line_section): Update.
6398 * dwarf2/index-cache.c (index_cache::store): Update.
6399 * dwarf2/index-write.c (save_gdb_index_command): Update.
6400 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6401
1859c670
SM
64022020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6403
6404 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6405 member.
6406 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6407 dwarf2_per_cu_data::per_bfd.
6408 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6409 (create_type_unit_group): Likewise.
6410 (queue_comp_unit): Remove reference to
6411 per_cu->dwarf2_per_objfile.
6412 (maybe_queue_comp_unit): Likewise.
6413 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6414 (create_cus_hash_table): Assign new field.
6415
5e22e966
SM
64162020-05-27 Simon Marchi <simon.marchi@efficios.com>
6417
6418 * dwarf2/read.c: Replace
6419 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6420 dwarf2_cu->per_objfile throughout.
6421
97a1449a
SM
64222020-05-27 Simon Marchi <simon.marchi@efficios.com>
6423
6424 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6425 parameter, don't use per_cu->dwarf2_per_objfile.
6426 (dw2_instantiate_symtab): Likewise.
6427 (dw2_find_last_source_symtab): Update.
6428 (dw2_map_expand_apply): Update.
6429 (dw2_lookup_symbol): Update.
6430 (dw2_expand_symtabs_for_function): Update.
6431 (dw2_expand_all_symtabs): Update.
6432 (dw2_expand_symtabs_with_fullname): Update.
6433 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6434 don't use per_cu->dwarf2_per_objfile.
6435 (dw2_expand_marked_cus): Update.
6436 (dw2_find_pc_sect_compunit_symtab): Update.
6437 (dw2_debug_names_lookup_symbol): Update.
6438 (dw2_debug_names_expand_symtabs_for_function): Update.
6439 (dw2_debug_names_map_matching_symbols): Update.
6440 (dwarf2_psymtab::expand_psymtab): Update.
6441
9e021579
SM
64422020-05-27 Simon Marchi <simon.marchi@efficios.com>
6443
6444 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6445 <per_objfile>: New member.
6446 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6447 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6448 call to dwarf2_cu.
6449 (cutu_reader::cutu_reader): Update.
6450 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6451
ae090bdb
SM
64522020-05-27 Simon Marchi <simon.marchi@efficios.com>
6453
6454 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6455 struct dwarf2_per_objfile.
6456 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6457 dwarf2_per_bfd.
6458 * dwarf2/read.c (set_die_type): Update.
6459 (get_die_type_at_offset): Update.
6460
af758d11
SM
64612020-05-27 Tom Tromey <tom@tromey.com>
6462 Simon Marchi <simon.marchi@efficios.com>
6463
6464 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6465 method.
6466 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6467 get_symtab, set_symtab>: New methods.
6468 <m_symtabs>: New field.
6469 (struct dwarf2_psymtab): Derive from partial_symtab.
6470 <readin_p, get_compunit_symtab>: Declare methods.
6471 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6472 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6473 New methods.
6474 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6475 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6476 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6477 (dw2_symtab_iter_next, dw2_print_stats)
6478 (dw2_expand_symtabs_with_fullname)
6479 (dw2_expand_symtabs_matching_one)
6480 (dw_expand_symtabs_matching_file_matcher)
6481 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6482 (dw2_debug_names_iterator::next)
6483 (dw2_debug_names_map_matching_symbols)
6484 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6485 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6486 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6487 New methods.
6488 (get_compunit_symtab, process_full_comp_unit)
6489 (process_full_type_unit): Update.
6490 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6491
5989a64e
SM
64922020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6493
6494 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6495 then introduce a new dwarf2_per_objfile type.
6496 <read_line_string>: Move to the new dwarf2_per_objfile type.
6497 <objfile>: Likewise.
6498 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6499 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6500 dwarf2_per_objfile->per_bfd.
6501 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6502 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6503 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6504 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6505 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6506 (dwarf2_per_objfile::locate_sections): Rename to...
6507 (dwarf2_per_bfd::locate_sections): ... this.
6508 (dwarf2_per_objfile::get_cutu): Rename to...
6509 (dwarf2_per_bfd::get_cutu): ... this.
6510 (dwarf2_per_objfile::get_cu): Rename to...
6511 (dwarf2_per_bfd::get_cu): ... this.
6512 (dwarf2_per_objfile::get_tu): Rename to...
6513 (dwarf2_per_bfd::get_tu): ... this.
6514 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6515 (dwarf2_per_bfd::allocate_per_cu): ... this.
6516 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6517 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6518 (get_gdb_index_contents_ftype): Change parameter from
6519 dwarf2_per_objfile to dwarf2_per_bfd.
6520 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6521 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6522
a50264ba
TT
65232020-05-27 Tom Tromey <tom@tromey.com>
6524 Simon Marchi <simon.marchi@efficios.com>
6525
6526 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6527 (allocate_piece_closure): Set "per_objfile" member.
6528 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6529 (locexpr_describe_location, loclist_describe_location): Use new
6530 member.
6531 * dwarf2/read.c (read_call_site_scope)
6532 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6533 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6534 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6535 handle_data_member_location): Set per_objfile member.
6536 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6537 member.
6538 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6539
d3473f0c
TT
65402020-05-27 Tom Tromey <tom@tromey.com>
6541
6542 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6543 allocate_signatured_type>: Declare new methods.
6544 <m_num_psymtabs>: New member.
6545 (struct dwarf2_per_cu_data) <index>: New member.
6546 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6547 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6548 (create_cu_from_index_list): Use allocate_per_cu.
6549 (create_signatured_type_table_from_index)
6550 (create_signatured_type_table_from_debug_names)
6551 (create_debug_type_hash_table, add_type_unit)
6552 (read_comp_units_from_section): Use allocate_signatured_type.
6553
5717c425
TT
65542020-05-27 Tom Tromey <tom@tromey.com>
6555
6556 * psymtab.c (partial_map_expand_apply)
6557 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6558 (psym_lookup_global_symbol_language)
6559 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6560 (psym_print_stats, psym_expand_symtabs_for_function)
6561 (psym_map_symbol_filenames, psym_map_matching_symbols)
6562 (psym_expand_symtabs_matching)
6563 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6564 (maintenance_check_psymtabs): Update.
6565 * psympriv.h (struct partial_symtab) <readin_p,
6566 get_compunit_symtab>: Add objfile parameter.
6567 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6568 Likewise.
6569 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6570 get_compunit_symtab>: Likewise.
6571 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6572
45940949
TT
65732020-05-27 Tom Tromey <tom@tromey.com>
6574
6575 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6576 member.
6577 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6578 (create_cu_from_index_list)
6579 (create_signatured_type_table_from_index)
6580 (create_signatured_type_table_from_debug_names)
6581 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6582 (dwarf2_create_include_psymtab)
6583 (create_debug_type_hash_table, add_type_unit)
6584 (create_type_unit_group, read_comp_units_from_section)
6585 (dwarf2_compute_name, create_cus_hash_table)
6586 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6587 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6588 obstack.
6589 (dw2_get_real_path): Likewise. Change argument to
6590 dwarf2_per_objfile.
6591
f8c6d152
LM
65922020-05-27 Luis Machado <luis.machado@linaro.org>
6593
6594 PR tdep/26000
6595 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6596 for ldrd (immediate).
6597
e98d2e6d
PW
65982020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6599
6600 * command.h: Add comment giving the name of class_tui.
6601 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6602 create the fake command for the help for class_tui.
6603
53a47a3e
TT
66042020-05-26 Tom Tromey <tromey@adacore.com>
6605
6606 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6607 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6608 (val_atr): New function.
6609 (value_val_atr): Use it.
6610 * ada-valprint.c (print_optional_low_bound): Change low bound
6611 handling for enums.
6612 (val_print_packed_array_elements): Don't call discrete_position.
6613 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6614 discrete_position for enum types.
6615 * language.c (default_print_array_index): Change type.
6616 * language.h (struct language_defn) <la_print_array_index>: Add
6617 index_type parameter, change type of index_value.
6618 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6619 (default_print_array_index): Update.
6620 * valprint.c (maybe_print_array_index): Don't call
6621 value_from_longest. Update.
6622 (value_print_array_elements): Don't call discrete_position.
6623
0bc2354b
TT
66242020-05-26 Tom Tromey <tromey@adacore.com>
6625
6626 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6627 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6628
1218a4bf
CDA
66292020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6630
6631 PR gdb/13519
6632 * avr-tdep.c (avr_integer_to_address): Return data or code
6633 address accordingly to the second 'type' argument of the
6634 function.
6635
92651b1d
MW
66362020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6637
6638 * infcmd.c, inferior.h: (construct_inferior_arguments):
6639 Moved function from here to gdbsupport/common-inferior.{h,cc}
6640
0a4f5f8c
TT
66412020-05-23 Tom Tromey <tom@tromey.com>
6642
6643 Revert commit eca1f90c:
6644 * NEWS: Remove entry for completion styling.
6645 * completer.c (_rl_completion_prefix_display_length): Move
6646 declaration later.
6647 (gdb_fnprint): Revert.
6648 (gdb_display_match_list_1): Likewise.
6649 * cli/cli-style.c (completion_prefix_style)
6650 (completion_difference_style, completion_suffix_style): Remove.
6651 (_initialize_cli_style): Revert.
6652 * cli/cli-style.h (completion_prefix_style)
6653 (completion_difference_style, completion_suffix_style): Don't
6654 declare.
6655
e08bd6c5
PA
66562020-05-24 Pedro Alves <palves@redhat.com>
6657
6658 * symtab.c (completion_list_add_name): Return boolean indication
6659 of whether the symbol matched.
6660 (completion_list_add_symbol): Don't try to remove C++ aliases if
6661 the symbol didn't match in the first place.
6662 * symtab.h (completion_list_add_name): Return bool.
6663
ceacbf6e
SM
66642020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6665
6666 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6667 type::field.
6668
26f16254
JB
66692020-05-23 Joel Brobecker <brobecker@adacore.com>
6670
6671 GDB 9.2 released.
6672
eca1f90c
TT
66732020-05-23 Tom Tromey <tom@tromey.com>
6674
6675 * NEWS: Add entry for completion styling.
6676 * completer.c (_rl_completion_prefix_display_length): Move
6677 declaration earlier.
6678 (gdb_fnprint): Use completion_style.
6679 (gdb_display_match_list_1): Likewise.
6680 * cli/cli-style.c (completion_prefix_style)
6681 (completion_difference_style, completion_suffix_style): New
6682 globals.
6683 (_initialize_cli_style): Register new globals.
6684 * cli/cli-style.h (completion_prefix_style)
6685 (completion_difference_style, completion_suffix_style): Declare.
6686
51e2cfa2
PA
66872020-05-23 Pedro Alves <palves@redhat.com>
6688
6689 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6690 (parse_escape): Use ISDIGIT instead of isdigit.
6691 (puts_debug): Use gdb_isprint instead of isprint.
6692 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6693 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6694 ISSPACE instead of isspace.
6695 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6696 instead of isspace.
6697 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6698 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6699 instead of isxdigit and ISDIGIT instead of isdigit.
6700
80fc5e77
SM
67012020-05-22 Simon Marchi <simon.marchi@efficios.com>
6702
6703 * gdbtypes.h (struct type) <field>: New method.
6704 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6705 or type::field.
6706
3cabb6b0
SM
67072020-05-22 Simon Marchi <simon.marchi@efficios.com>
6708
6709 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6710 (TYPE_FIELDS): Use type::fields. Change all call sites that
6711 modify the propery to use type::set_fields instead.
6712
1f704f76
SM
67132020-05-22 Simon Marchi <simon.marchi@efficios.com>
6714
6715 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6716 type::num_fields instead.
6717
5e33d5f4
SM
67182020-05-22 Simon Marchi <simon.marchi@efficios.com>
6719
6720 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6721 methods.
6722 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6723 that modify the number of fields to use type::set_num_fields
6724 instead.
6725
9392ebb3
TT
67262020-05-22 Tom Tromey <tromey@adacore.com>
6727
6728 * compile/compile-object-load.h (munmap_list_free): Don't
6729 declare.
6730
7c13f4e8
AB
67312020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6732
6733 * annotate.c (annotate_source_line): Update return type, add call
6734 to update current symtab and line.
6735 * annotate.h (annotate_source_line): Update return type, and
6736 extend header comment.
6737 * source.c (info_line_command): Check annotation_level before
6738 calling annotate_source_line.
6739 * stack.c (print_frame_info): If calling annotate_source_line
6740 returns true, then don't print any other source line information.
6741
aa370940
SM
67422020-05-21 Simon Marchi <simon.marchi@efficios.com>
6743
6744 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6745
84d53fa9
SM
67462020-05-21 Simon Marchi <simon.marchi@efficios.com>
6747
6748 * coffread.c (patch_type): Remove NULL check before xfree.
6749 * corefile.c (set_gnutarget): Likewise.
6750 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6751 * exec.c (build_section_table): Likewise.
6752 * remote.c (remote_target::pass_signals): Likewise.
6753 * utils.c (n_spaces): Likewise.
6754 * cli/cli-script.c (document_command): Likewise.
6755 * i386-windows-tdep.c (core_process_module_section): Likewise.
6756 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6757
9d428aae
SM
67582020-05-20 Simon Marchi <simon.marchi@efficios.com>
6759
6760 * symfile.c (reread_symbols): Clear objfile's section_offsets
6761 vector and section indices, re-compute them by calling
6762 sym_offsets.
6763
250106a7
TT
67642020-05-20 Tom Tromey <tromey@adacore.com>
6765
6766 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 6767 (desc_one_bound, desc_index_type): Compute field name.
250106a7 6768
9a0bacfb
TV
67692020-05-20 Tom de Vries <tdevries@suse.de>
6770
6771 PR symtab/25833
6772 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6773
7b958a48
AM
67742020-05-20 Alan Modra <amodra@gmail.com>
6775
6776 PR 25993
6777 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6778 bfd_set_filename.
6779 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6780 passed to bfd_set_filename.
6781 * symfile-mem.c (add_vsyscall_page): Likewise for string
6782 passed to symbol_file_add_from_memory.
6783 (symbol_file_add_from_memory): Make name param a const char* and
6784 don't strdup.
6785
c7e97679
AM
67862020-05-20 Alan Modra <amodra@gmail.com>
6787
6788 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6789 rather than accessing bfd->filename directly.
6790 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6791 and use bfd_section_name.
6792 * dwarf2/frame.c (decode_frame_entry): Likewise.
6793 * exec.c (exec_set_section_address): Likewise.
6794 * solib-aix.c (solib_aix_bfd_open): Likewise.
6795 * stap-probe.c (get_stap_base_address): Likewise.
6796 * symfile.c (reread_symbols): Likewise.
6797
563c591b
TT
67982020-05-19 Tom Tromey <tromey@adacore.com>
6799
6800 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6801
f408d82c
SM
68022020-05-19 Simon Marchi <simon.marchi@efficios.com>
6803
6804 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6805
98c59b52
PA
68062020-05-19 Pedro Alves <palves@redhat.com>
6807
6808 * NEWS (set exec-file-mismatch): Adjust entry.
6809 * exec.c: Include "build-id.h".
6810 (validate_exec_file): Try to match build IDs instead of filenames.
6811 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6812 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6813 and pass down 'warn_if_slow'.
6814 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6815 gdb_bfd_open_closure to pass it down.
6816 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6817
4111f652
PA
68182020-05-19 Pedro Alves <palves@redhat.com>
6819
6820 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6821 * target.c (target_fileio_open_1): Rename to target_fileio_open
6822 and make extern. Use bool.
6823 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6824 (target_fileio_read_alloc_1): Adjust.
6825 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6826 (target_fileio_open_warn_if_slow): Delete declaration.
6827
ad80db5b
PA
68282020-05-19 Pedro Alves <palves@redhat.com>
6829
6830 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6831 Adjust all callers.
6832
1d6ce4d3
YS
68332020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6834
6835 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6836 whether disp is negative.
6837
9005fbbb
SM
68382020-05-19 Simon Marchi <simon.marchi@efficios.com>
6839
6840 * symfile.h (struct symfile_segment_data)
6841 <~symfile_segment_data>: Remove.
6842 <segment_info>: Change to std::vector.
6843 * symfile.c (default_symfile_segments): Update.
6844 * elfread.c (elf_symfile_segments): Update.
6845
68b888ff
SM
68462020-05-19 Simon Marchi <simon.marchi@efficios.com>
6847
6848 * symfile.h (struct symfile_segment_data) <struct segment>: New.
6849 <segments>: New.
6850 <segment_bases, segment_sizes>: Remove.
6851 * symfile.c (default_symfile_segments): Update.
6852 * elfread.c (elf_symfile_segments): Update.
6853 * remote.c (remote_target::get_offsets): Update.
6854 * solib-target.c (solib_target_relocate_section_addresses):
6855 Update.
6856
62982abd
SM
68572020-05-19 Simon Marchi <simon.marchi@efficios.com>
6858
6859 * symfile.h (struct symfile_segment_data): Initialize fields.
6860 <~symfile_segment_data>: Add.
6861 (symfile_segment_data_up): New.
6862 (struct sym_fns) <sym_segments>: Return a
6863 symfile_segment_data_up.
6864 (default_symfile_segments): Return a symfile_segment_data_up.
6865 (free_symfile_segment_data): Remove.
6866 (get_symfile_segment_data): Return a symfile_segment_data_up.
6867 * symfile.c (default_symfile_segments): Likewise.
6868 (get_symfile_segment_data): Likewise.
6869 (free_symfile_segment_data): Remove.
6870 (symfile_find_segment_sections): Update.
6871 * elfread.c (elf_symfile_segments): Return a
6872 symfile_segment_data_up.
6873 * remote.c (remote_target::get_offsets): Update.
6874 * solib-target.c (solib_target_relocate_section_addresses):
6875 Update.
6876 * symfile-debug.c (debug_sym_segments): Return a
6877 symfile_segment_data_up.
6878
7f204339
RO
68792020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6880
e52a0f1b
RO
6881 PR build/25981
6882 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
6883 Hardcode register numbers.
6884
7f204339
RO
6885 PR build/25981
6886 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
6887 procfs_find_LDT_entry): Remove.
6888 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
6889 procfs_find_LDT_entry): Remove.
6890 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
6891 Remove.
6892
7f32a4d5
PA
68932020-05-17 Pedro Alves <palves@redhat.com>
6894 Andrew Burgess <andrew.burgess@embecosm.com>
6895 Keno Fischer <keno@juliacomputing.com>
6896
6897 PR gdb/25741
6898 * breakpoint.c (build_target_condition_list): Update comments.
6899 (build_target_command_list): Update comments and skip matching
6900 locations.
6901 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
6902 a separate function. Simplify "set breakpoint auto-hw off"
6903 handling.
6904 (insert_breakpoints): Update comment.
6905 (tracepoint_locations_match): New parameter. For breakpoints,
6906 compare location types too, if the caller wants to.
6907 (handle_automatic_hardware_breakpoints): New functions.
6908 (bp_location_is_less_than): Also sort by location type and
6909 hardware breakpoint length.
6910 (update_global_location_list): Handle "set breakpoint auto-hw on"
6911 here.
6912 (update_breakpoint_locations): Ask breakpoint_locations_match to
6913 ignore location types.
6914
7d93a1e0
SM
69152020-05-16 Simon Marchi <simon.marchi@efficios.com>
6916
6917 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6918 type::name instead.
6919
d0e39ea2
SM
69202020-05-16 Simon Marchi <simon.marchi@efficios.com>
6921
6922 * gdbtypes.h (struct type) <name, set_name>: New methods.
6923 (TYPE_CODE): Use type::name. Change all call sites used to set
6924 the name to use type::set_name instead.
6925
2dab0c7b
TT
69262020-05-16 Tom Tromey <tom@tromey.com>
6927
6928 * top.c (quit_force): Update.
6929 * infrun.c (handle_no_resumed): Update.
6930 * top.h (all_uis): New function.
6931 (ALL_UIS): Remove.
6932
59f7bd8d
SM
69332020-05-16 Simon Marchi <simon.marchi@efficios.com>
6934
6935 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6936
9bf058f0
PA
69372020-05-16 Pedro Alves <palves@redhat.com>
6938
6939 * ia64-linux-nat.c
6940 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6941 Declare method.
6942 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6943
8f86ae1a
SM
69442020-05-15 Simon Marchi <simon.marchi@efficios.com>
6945
6946 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6947 (sparc64_adi_info): Likewise.
6948
d6bc0792
TT
69492020-05-15 Tom Tromey <tom@tromey.com>
6950
6951 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6952 block_objfile.
6953 (lookup_objfile_from_block): Remove.
6954 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6955 (lookup_global_symbol): Use block_objfile.
6956 * symtab.h (lookup_objfile_from_block): Don't declare.
6957 * printcmd.c (clear_dangling_display_expressions): Use
6958 block_objfile.
6959 * parse.c (operator_check_standard): Use block_objfile.
6960
8c14c3a3
TT
69612020-05-15 Tom Tromey <tom@tromey.com>
6962
6963 * language.c (language_alloc_type_symbol): Set
6964 SYMBOL_SECTION.
6965 * symtab.c (initialize_objfile_symbol): Remove.
6966 (allocate_symbol): Remove.
6967 (allocate_template_symbol): Remove.
6968 * dwarf2/read.c (fixup_go_packaging): Use "new".
6969 (new_symbol): Use "new".
6970 (read_variable): Don't call initialize_objfile_symbol. Use
6971 "new".
6972 (read_func_scope): Use "new".
6973 * xcoffread.c (process_xcoff_symbol): Don't call
6974 initialize_objfile_symbol.
6975 (SYMBOL_DUP): Remove.
6976 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6977 "new".
6978 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6979 (allocate_template_symbol): Don't declare.
6980 (struct symbol): Add copy constructor. Change defaults.
6981 * jit.c (finalize_symtab): Use "new".
6982 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6983 Use "new".
6984 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6985 (common_block_end): Use "new".
6986 * mdebugread.c (parse_symbol): Use "new".
6987 (new_symbol): Likewise.
6988
5b4a1a8d
PW
69892020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6990
6991 * NEWS: Mention changes to help and apropos.
6992
57b4f16e
PW
69932020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6994
6995 * command.h (enum command_class): Improve comments, document
6996 that class_alias is for user-defined aliases, give the class
6997 name for each class, remove unused class_xdb.
6998 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6999 * breakpoint.c (_initialize_breakpoint): Replace class_alias
7000 by a precise class.
7001 * infcmd.c (_initialize_infcmd): Likewise.
7002 * reverse.c (_initialize_reverse): Likewise.
7003 * stack.c (_initialize_stack): Likewise.
7004 * symfile.c (_initialize_symfile): Likewise.
7005 * tracepoint.c (_initialize_tracepoint): Likewise.
7006
7c05caf7
PW
70072020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7008
7009 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
7010 when their aliased command is traversed.
7011 (help_cmd): Add fput_command_names_styled call to
7012 output command name and aliases when command has an alias.
7013
3b3aaacb
PW
70142020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7015
7016 * cli/cli-decode.h (help_cmd_list): Remove declaration.
7017 * cli/cli-decode.c (help_cmd_list): Declare as static,
7018 remove prefix argument, use bool for recurse arg, rework to show the aliases of
7019 a command together with the command.
7020 (fput_command_name_styled, fput_command_names_styled): New functions.
7021 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
7022 fput_command_name_styled.
7023 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
7024 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
7025
7aa1b46f
PW
70262020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7027
7028 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
7029 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
7030 * command.h (cmd_show_list): Likewise.
7031 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
7032 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
7033
89bcba74
PW
70342020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7035
7036 * unittests/command-def-selftests.c (traverse_command_structure):
7037 Verify all commands of a list have the same prefix command and
7038 that only the top cmdlist commands have a null prefix.
7039
3f4d92eb
PW
70402020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7041
7042 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
7043 as prefix, not one of its aliases.
7044 (set_cmd_prefix): Remove.
7045 (do_add_cmd): Centralize the setting of the prefix of a command, when
7046 command is defined after its full chain of prefix commands.
7047 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
7048 (add_setshow_cmd_full): Likewise.
7049 (update_prefix_field_of_prefixed_commands): New function.
7050 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
7051 update_prefix_field_of_prefixed_commands.
7052 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
7053 addresses of remote_set_cmdlist and remote_show_cmdlist given
7054 as argument, not the address of an argument.
7055 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
7056 * gdb/remote.c (_initialize_remote): Likewise.
7057
0605465f
PW
70582020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7059
7060 * cli/cli-cmds.c (alias_command): Check for an existing alias
7061 using lookup_cmd_composition, as valid_command_p is too strict
7062 and forbids aliases that are the prefix of an existing alias
7063 or command.
7064 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
7065 command is properly recognised as a valid command.
7066
58e6ac70
PW
70672020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7068
7069 * unittests/help-doc-selftests.c: Rename to
7070 unittests/command-def-selftests.c
7071 * unittests/command-def-selftests.c (help_doc_tests): Update some
7072 comments.
7073 (command_structure_tests, traverse_command_structure): New namespace
7074 and function.
7075 (command_structure_invariants_tests): New function.
7076 (_initialize_command_def_selftests) Renamed from
7077 _initialize_help_doc_selftests, register command_structure_invariants
7078 selftest.
7079
a7b9ceb8
PW
70802020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7081
7082 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
7083 an alias of 'show'.
7084
b2188a06
JB
70852020-05-15 Joel Brobecker <brobecker@adacore.com>
7086
7087 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
7088 ada_is_fixed_point_type. Update all callers.
7089 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
7090 all callers.
7091 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
7092 Update all callers.
7093 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
7094 print_fixed_point_type. Update all callers.
7095 * ada-valprint.c (ada_value_print_num): Replace call to
7096 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
7097
a51951c2
KB
70982020-05-14 Kevin Buettner <kevinb@redhat.com>
7099
7100 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
7101 processors.
7102 (cpu_supports_bts): Add CV_AMD case.
7103
29d6859f
LM
71042020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
7105 Simon Marchi <simon.marchi@efficios.com>
7106
7107 * infrun.c (stop_all_threads): Collect multiple wait events at
7108 each pass.
7109
78134374
SM
71102020-05-14 Simon Marchi <simon.marchi@efficios.com>
7111
7112 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
7113 type::code instead.
7114
67607e24
SM
71152020-05-14 Simon Marchi <simon.marchi@efficios.com>
7116
7117 * gdbtypes.h (struct type) <code, set_code>: New methods.
7118 (TYPE_CODE): Use type::code. Change all call sites used to set
7119 the code to use type::set_code instead.
7120
a05575d3
TBA
71212020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7122 Tom de Vries <tdevries@suse.de>
7123 Pedro Alves <palves@redhat.com>
7124
7125 PR threads/25478
7126 * infrun.c (stop_all_threads): Do NOT ignore
7127 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
7128 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
7129 received.
7130 (handle_no_resumed): Remove code handling a live inferior with no
7131 threads.
7132 * remote.c (has_single_non_exited_thread): New.
7133 (remote_target::update_thread_list): Do not delete a thread if is
7134 the last thread of the process.
7135 * thread.c (thread_select): Call delete_exited_threads instead of
7136 prune_threads.
7137
6ad82919
TBA
71382020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7139
7140 * infrun.c (stop_all_threads): Enable/disable thread events of all
7141 targets. Move a debug message denoting the end of the function
7142 into the SCOPED_EXIT block.
7143
d890404b
TBA
71442020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7145
7146 * process-stratum-target.h: Include <set>.
7147 (all_non_exited_process_targets, switch_to_target_no_thread): New
7148 function declarations.
7149 * process-stratum-target.c (all_non_exited_process_targets)
7150 (switch_to_target_no_thread): New function implementations.
7151
293b3ebc
TBA
71522020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7153
7154 * infrun.c (handle_inferior_event): Extract out a piece of code
7155 into...
7156 (mark_non_executing_threads): ...this new function.
7157
7ca9b62a
TBA
71582020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7159
7160 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
7161 use.
7162
fc75c28b
TBA
71632020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7164
7165 * regcache.c (regcache_read_pc_protected): New function
7166 implementation that returns 0 if the PC cannot read via
7167 'regcache_read_pc'.
7168 * infrun.c (proceed): Call 'regcache_read_pc_protected'
7169 instead of 'regcache_read_pc'.
7170 (keep_going_pass_signal): Ditto.
7171
a89febbd
TT
71722020-05-13 Tom Tromey <tromey@adacore.com>
7173
7174 * ada-lang.c (align_value): Remove.
7175 (ada_template_to_fixed_record_type_1): Use align_up.
7176
f7e23710
TBA
71772020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7178
7179 * async-event.c: Update the copyright year.
7180 * async-event.h: Update the copyright year.
7181
02ff80c2
SM
71822020-05-12 Simon Marchi <simon.marchi@efficios.com>
7183
7184 * objfiles.h (is_addr_in_objfile,
7185 shared_objfile_contains_address_p): Return bool.
7186 * objfile.c (is_addr_in_objfile,
7187 shared_objfile_contains_address_p): Return bool.
7188
4fd6c7e8
TT
71892020-05-11 Tom Tromey <tromey@adacore.com>
7190
7191 * cli/cli-cmds.c (info_command): Restore.
7192 (_initialize_cli_cmds): Use add_prefix_command for "info".
7193 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7194
5eb68a39
TT
71952020-05-11 Tom Tromey <tromey@adacore.com>
7196
7197 * ada-lang.c (ada_value_primitive_field): Now public.
7198 * ada-lang.h (ada_value_primitive_field): Declare.
7199 * ada-valprint.c (print_field_values): Use
7200 ada_value_primitive_field for wrapper fields.
7201
7666722f
TV
72022020-05-11 Tom de Vries <tdevries@suse.de>
7203
7204 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7205 MODULE_DOMAIN.
7206
3ee6bb11
TV
72072020-05-11 Tom de Vries <tdevries@suse.de>
7208
7209 PR symtab/25941
7210 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7211 with length 0, if not gdb-produced.
7212 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7213
43434996
TV
72142020-05-09 Tom de Vries <tdevries@suse.de>
7215
7216 PR gdb/25955
7217 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7218 calculation.
7219
2f78cffc
TT
72202020-05-09 Tom Tromey <tom@tromey.com>
7221
7222 * top.c (server_command): Now bool.
7223 * top.h (server_command): Now bool.
7224
4f7bc5ed
TT
72252020-05-08 Tom Tromey <tromey@adacore.com>
7226
7227 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7228 already being processed.
7229
8be4b118
TT
72302020-05-08 Tom Tromey <tom@tromey.com>
7231
7232 * printcmd.c (struct display) <next>: Remove.
7233 <display>: New constructor.
7234 <exp_string>: Now a std::string.
7235 <enabled_p>: Now a bool.
7236 (display_number): Move definition earlier.
7237 (displays): Rename from display_chain. Now a std::vector.
7238 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7239 (display_command): Update.
7240 (do_one_display, disable_display)
7241 (enable_disable_display_command, do_enable_disable_display):
7242 Update.
7243 (free_display): Remove.
7244 (clear_displays): Rewrite.
7245 (delete_display): Update.
7246 (map_display_numbers): Use function_view. Remove "data"
7247 parameter. Update.
7248 (do_delete_display): Remove.
7249 (undisplay_command): Update.
7250 (do_one_display, do_displays, disable_display)
7251 (info_display_command): Update.
7252 (do_enable_disable_display): Remove.
7253 (enable_disable_display_command)
7254 (clear_dangling_display_expressions): Update.
7255
94c93c35
TT
72562020-05-08 Tom Tromey <tom@tromey.com>
7257
7258 * symtab.c (set_symbol_cache_size)
7259 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7260 (maintenance_print_symbol_cache_statistics): Update.
7261 * symmisc.c (print_symbol_bcache_statistics)
7262 (print_objfile_statistics, maintenance_print_objfiles)
7263 (maintenance_info_symtabs, maintenance_check_symtabs)
7264 (maintenance_expand_symtabs, maintenance_info_line_tables):
7265 Update.
7266 * symfile-debug.c (set_debug_symfile): Update.
7267 * source.c (forget_cached_source_info): Update.
7268 * python/python.c (gdbpy_progspaces): Update.
7269 * psymtab.c (maintenance_info_psymtabs): Update.
7270 * probe.c (parse_probes): Update.
7271 * linespec.c (iterate_over_all_matching_symtabs)
7272 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7273 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7274 * exec.c (exec_target::close): Update.
7275 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7276 * breakpoint.c (print_one_breakpoint_location)
7277 (create_longjmp_master_breakpoint)
7278 (create_std_terminate_master_breakpoint): Update.
7279 * progspace.c (program_spaces): Now a std::vector.
7280 (maybe_new_address_space): Update.
7281 (add_program_space): Remove.
7282 (program_space::program_space): Update.
7283 (remove_program_space): Update.
7284 (number_of_program_spaces): Remove.
7285 (print_program_space, update_address_spaces): Update.
7286 * progspace.h (program_spaces): Change type.
7287 (ALL_PSPACES): Remove.
7288 (number_of_program_spaces): Don't declare.
7289 (struct program_space) <next>: Remove.
7290
a1fd1ac9
TT
72912020-05-08 Tom Tromey <tom@tromey.com>
7292
7293 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7294 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7295 (enable_break): Update.
7296 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7297 (frv_fdpic_find_canonical_descriptor): Update.
7298 (frv_fetch_objfile_link_map): Update.
7299 * progspace.c (program_space::free_all_objfiles): Update.
7300 (program_space::solibs): New method.
7301 * progspace.h (struct program_space) <solibs>: New method.
7302 * solist.h (master_so_list): Don't declare.
7303 (ALL_SO_LIBS): Remove.
7304 * solib.h (so_list_head): Remove.
7305 (update_solib_list): Update comment.
7306 * solib.c (master_so_list): Remove.
7307 (solib_used, update_solib_list, solib_add)
7308 (info_sharedlibrary_command, clear_solib)
7309 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7310
38eae084
TT
73112020-05-08 Tom Tromey <tom@tromey.com>
7312
7313 * extension.c (extension_languages): Now a std::array.
7314 (ALL_EXTENSION_LANGUAGES): Remove.
7315 (get_ext_lang_defn, get_ext_lang_of_file)
7316 (eval_ext_lang_from_control_command): Update.
7317 (finish_ext_lang_initialization)
7318 (auto_load_ext_lang_scripts_for_objfile)
7319 (ext_lang_type_printers::ext_lang_type_printers)
7320 (apply_ext_lang_type_printers)
7321 (ext_lang_type_printers::~ext_lang_type_printers)
7322 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7323 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7324 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7325 (get_matching_xmethod_workers, ext_lang_colorize)
7326 (ext_lang_before_prompt): Update.
7327 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7328
596dc4ad
TT
73292020-05-08 Tom Tromey <tom@tromey.com>
7330
7331 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7332 overload.
7333 <swap_string, m_string>: Remove.
7334 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7335 Update.
7336 * stabsread.c (define_symbol, read_type): Update.
7337 * linespec.c (find_linespec_symbols): Update.
7338 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7339 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7340 * dbxread.c (read_dbx_symtab): Update.
7341 * cp-support.h (cp_canonicalize_string_full)
7342 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7343 Return unique_xmalloc_ptr.
7344 * cp-support.c (inspect_type): Update.
7345 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7346 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7347 Likewise.
7348 * c-typeprint.c (print_name_maybe_canonical): Update.
7349 * break-catch-throw.c (check_status_exception_catchpoint):
7350 Update.
7351
bf4cb9be
TV
73522020-05-08 Tom de Vries <tdevries@suse.de>
7353
7354 * infrun.c (follow_fork): Copy current_line and current_symtab to
7355 child thread.
7356
a1b68f28
SM
73572020-05-07 Simon Marchi <simon.marchi@efficios.com>
7358
7359 * async-event.c (struct async_signal_handler, struct
7360 async_event_handler): Reformat, remove typedef.
7361
98d48915
SM
73622020-05-07 Simon Marchi <simon.marchi@efficios.com>
7363
7364 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7365 access thistype->main_type->dyn_prop_list directly.
7366
7aa91313
SM
73672020-05-07 Simon Marchi <simon.marchi@efficios.com>
7368
7369 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7370 (remove_dyn_prop): Remove. Update all users to use
7371 type::remove_dyn_prop.
7372 * gdbtypes.c (remove_dyn_prop): Rename to...
7373 (type::remove_dyn_prop): ... this.
7374
5c54719c
SM
73752020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7376
7377 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7378 (add_dyn_prop): Remove. Update all users to use
7379 type::add_dyn_prop.
7380 * gdbtypes.c (add_dyn_prop): Rename to...
7381 (type::add_dyn_prop): ... this.
7382
24e99c6c
SM
73832020-05-07 Simon Marchi <simon.marchi@efficios.com>
7384
7385 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7386 (get_dyn_prop): Remove. Update all users to use
7387 type::dyn_prop.
7388 * gdbtypes.c (get_dyn_prop): Rename to...
7389 (type::dyn_prop): ... this.
7390
0d4bf016
SM
73912020-05-06 Simon Marchi <simon.marchi@efficios.com>
7392
7393 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7394
ac4a4f1c
SM
73952020-05-06 Simon Marchi <simon.marchi@efficios.com>
7396
7397 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7398 instruction, skip it if it's there.
7399
a3bbacc1
SM
74002020-05-05 Simon Marchi <simon.marchi@efficios.com>
7401
7402 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7403
c3236f84
SM
74042020-05-04 Simon Marchi <simon.marchi@efficios.com>
7405
7406 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7407 * gdbtypes.c (recursive_dump_type): Remove use of
7408 TYPE_INCOMPLETE.
7409
3b6acaee
TT
74102020-05-03 Tom Tromey <tom@tromey.com>
7411
7412 * breakpoint.c (catch_command, tcatch_command): Remove.
7413 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7414 add_show_prefix_cmd.
7415 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7416 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7417 Remove.
7418 (add_internal_problem_command): Use add_basic_prefix_cmd,
7419 add_show_prefix_cmd.
7420 * mips-tdep.c (set_mipsfpu_command): Remove.
7421 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7422 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7423 (_initialize_index_cache): Use add_basic_prefix_cmd.
7424 * memattr.c (dummy_cmd): Remove.
7425 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7426 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7427 (_initialize_tui_win): Use add_basic_prefix_cmd,
7428 add_show_prefix_cmd.
7429 * cli/cli-logging.c (set_logging_command): Remove.
7430 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7431 add_show_prefix_cmd.
7432 (show_logging_command): Remove.
7433 * target.c (target_command): Remove.
7434 (add_target): Use add_basic_prefix_cmd.
7435
a51119cd
HD
74362020-05-02 Hannes Domani <ssbssa@yahoo.de>
7437
7438 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7439
652fc23a 74402020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7441
652fc23a
PW
7442 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7443 info_command.
7444
117539e6
KR
74452020-04-30 Kamil Rytarowski <n54@gmx.com>
7446
7447 * nbsd-nat.c (nbsd_enable_proc_events)
7448 (nbsd_nat_target::post_startup_inferior): Add.
7449 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7450 (nbsd_nat_target::update_thread_list): Rewrite.
7451 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7452 "PTRACE_LWP_CREATE".
7453 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7454
102e38eb 74552020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7456
102e38eb
PW
7457 * stack.c (_initialize_stack): Remove duplicated creation
7458 of "frame" command and "f" alias.
7459
ee9d1e5f
HD
74602020-04-30 Hannes Domani <ssbssa@yahoo.de>
7461
7462 PR gdb/18706
7463 * gdbtypes.c (check_typedef): Calculate size of array of
7464 stubbed type.
7465
627c7fb8
HD
74662020-04-30 Hannes Domani <ssbssa@yahoo.de>
7467
7468 PR gdb/15559
7469 * i386-tdep.c (i386_push_dummy_call): Call
7470 i386_thiscall_push_dummy_call.
7471 (i386_thiscall_push_dummy_call): New function.
7472 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7473 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7474 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7475
ffc2844e
SM
74762020-04-29 Simon Marchi <simon.marchi@efficios.com>
7477
7478 * gdbarch.sh (do_read): Add shellcheck disable directive for
7479 warning SC2162.
7480
1207375d
SM
74812020-04-29 Simon Marchi <simon.marchi@efficios.com>
7482
7483 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7484 "referenced but not assigned" warning.
7485
9fdb2916
SM
74862020-04-29 Simon Marchi <simon.marchi@efficios.com>
7487
7488 * gdbarch.sh: Remove code that sets fallbackdefault.
7489
759cea5e
SM
74902020-04-29 Simon Marchi <simon.marchi@efficios.com>
7491
7492 * gdbarch.sh: Use shell operators && and || instead of
7493 -a and -o.
7494
cb02ab24
SM
74952020-04-29 Simon Marchi <simon.marchi@efficios.com>
7496
7497 * gdbarch.sh: Use $(...) instead of `...`.
7498
a6fc5ffc
SM
74992020-04-29 Simon Marchi <simon.marchi@efficios.com>
7500
7501 * gdbarch.sh: Use double quotes around variables.
7502
8d113d13
SM
75032020-04-29 Simon Marchi <simon.marchi@efficios.com>
7504
7505 * gdbarch.sh: Use %s with printf, instead of variables in the
7506 format string.
7507
ed6acedd
TT
75082020-04-29 Tom Tromey <tromey@adacore.com>
7509
7510 PR ada/25875:
7511 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7512 type fields here.
7513 (read_enumeration_type): Call
7514 update_enumeration_type_from_children later. Update comments.
7515 (process_enumeration_scope): Don't create type fields.
7516
b68b1b58
KR
75172020-04-29 Kamil Rytarowski <n54@gmx.com>
7518
7519 * nbsd-tdep.c: Include "xml-syscall.h".
7520 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7521
f94b2e03
KR
75222020-04-29 Kamil Rytarowski <n54@gmx.com>
7523
7524 * nbsd-nat.c: Include "sys/wait.h".
7525 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7526 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7527 (nbsd_nat_target::remove_exec_catchpoint)
7528 (nbsd_nat_target::set_syscall_catchpoint): Add.
7529 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7530 (nbsd_nat_target::insert_exec_catchpoint)
7531 (nbsd_nat_target::remove_exec_catchpoint)
7532 (nbsd_nat_target::set_syscall_catchpoint): Add.
7533 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7534 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7535 `nbsd_get_syscall_number'.
7536
fc49bc72
TT
75372020-04-29 Tom Tromey <tom@tromey.com>
7538
7539 * stack.c (print_block_frame_labels): Remove.
7540
d642b692
HD
75412020-04-29 Hannes Domani <ssbssa@yahoo.de>
7542
7543 PR gdb/17320
7544 * ada-valprint.c (val_print_packed_array_elements): Move array
7545 end bracket to new line.
7546 (ada_val_print_string): Remove extra spaces before first array
7547 element.
7548 * c-valprint.c (c_value_print_array): Likewise.
7549 * m2-valprint.c (m2_print_array_contents): Likewise.
7550 (m2_value_print_inner): Likewise.
7551 * p-valprint.c (pascal_value_print_inner): Likewise.
7552 * valprint.c (generic_val_print_array): Likewise.
7553 (value_print_array_elements): Move first array element and array
7554 end bracket to new line.
7555
ea90f227
TV
75562020-04-29 Tom de Vries <tdevries@suse.de>
7557
7558 PR symtab/25889
7559 * linespec.c (find_method): Fix ix calculation.
7560
4498ef4f
KR
75612020-04-28 Kamil Rytarowski <n54@gmx.com>
7562
7563 * syscalls/update-netbsd.sh: New file.
7564 * syscalls/netbsd.xml: Regenerate.
7565 * data-directory/Makefile.in: Register `netbsd.xml' in
7566 `SYSCALLS_FILES'.
7567
a55e30b5
SM
75682020-04-28 Simon Marchi <simon.marchi@efficios.com>
7569
7570 * syscalls/update-freebsd.sh: Add double quotes.
7571
2b2fbab8
TT
75722020-04-28 Tom Tromey <tom@tromey.com>
7573
7574 * NEWS: Update.
7575 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7576 (cmdpy_init): Allow class_tui.
7577
a65189c9
TV
75782020-04-28 Mark Williams <mark@myosotissp.com>
7579
7580 PR gdb/24480
7581 * dwarf2read.c: Add missing assingments to list_in_scope when
7582 start_symtab was already called.
7583
1b95cdb7
SM
75842020-04-28 Simon Marchi <simon.marchi@efficios.com>
7585
7586 PR gdb/25881
7587 * dwarf2/read.c (offset_map_type): Use
7588 gdb:hash_enum<sect_offset> as hash function.
7589
15cd93d0
TV
75902020-04-28 Tom de Vries <tdevries@suse.de>
7591
7592 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7593 with DW_AT_signature.
7594
1eb39914
SM
75952020-04-27 Simon Marchi <simon.marchi@efficios.com>
7596
7597 * configure.ac: Remove check for fs_base/gs_base in
7598 user_regs_struct.
7599 * configure: Re-generate.
7600 * config.in: Re-generate.
7601 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7602 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7603 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7604
991a3e2e
LM
76052020-04-27 Luis Machado <luis.machado@linaro.org>
7606
7607 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7608 problematic inline frame unwinding situation.
7609 * frame.c (frame_id_computed_p): New function.
7610 * frame.h (frame_id_computed_p): New prototype.
7611
361ba0e8
TT
76122020-04-26 Tom Tromey <tom@tromey.com>
7613
7614 * command.h (enum command_class) <class_pseudo>: Remove.
7615
bc3609fd
PW
76162020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7617
7618 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7619 and whitespace.
7620
b9771db7
KR
76212020-04-25 Kamil Rytarowski <n54@gmx.com>
7622
ec16513e
SM
7623 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7624 `PT_GET_PROCESS_STATE' block.
b9771db7 7625
7151c1af
TT
76262020-04-24 Tom Tromey <tom@tromey.com>
7627
7628 * symtab.h (symbol_get_demangled_name): Don't declare.
7629 * symtab.c (symbol_get_demangled_name): Remove.
7630 (general_symbol_info::natural_name)
7631 (general_symbol_info::demangled_name): Update.
7632
906bb4c5
TT
76332020-04-24 Tom Tromey <tom@tromey.com>
7634
7635 PR rust/25025:
7636 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7637
bcfe6157
TT
76382020-04-24 Tom Tromey <tom@tromey.com>
7639
7640 PR symtab/12707:
7641 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7642 exists.
7643 (new_symbol): Likewise.
7644 * compile/compile-object-load.c (get_out_value_type): Use
7645 symbol_matches_search_name.
7646
f049a313
TT
76472020-04-24 Tom Tromey <tom@tromey.com>
7648
7649 * dwarf2/read.c (add_partial_symbol): Do not call
7650 compute_and_set_names.
7651
76e288d1
TT
76522020-04-24 Tom Tromey <tom@tromey.com>
7653
7654 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7655 overload.
7656
2467f4f6
TT
76572020-04-24 Tom Tromey <tom@tromey.com>
7658
7659 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7660 (add_psymbol_to_list): New overload. Make old overload call new
7661 one.
7662 * psympriv.h (add_psymbol_to_list): New overload.
7663
e61108c9
TT
76642020-04-24 Tom Tromey <tom@tromey.com>
7665
7666 * dwarf2/read.c (partial_die_info::read) <case
7667 DW_AT_linkage_name>: Use value_as_string.
7668 (dwarf2_string_attr): Use value_as_string.
7669 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7670 method.
7671 * dwarf2/attribute.c (attribute::value_as_string): New method.
7672
8c87a452
TT
76732020-04-24 Tom Tromey <tom@tromey.com>
7674
7675 * symtab.c (general_symbol_info::natural_name)
7676 (general_symbol_info::demangled_name): Check for language_rust.
7677
787de330
TT
76782020-04-24 Tom Tromey <tom@tromey.com>
7679
7680 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7681 (dwarf2_physname): ... from here.
7682 (partial_die_info::read): Add Rust "{" hack.
7683
ff985671
TT
76842020-04-24 Tom Tromey <tom@tromey.com>
7685
7686 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7687 method.
7688 (symbol_set_demangled_name): Don't declare.
7689 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7690 symbol_set_demangled_name.
7691 (general_symbol_info::set_language)
7692 (general_symbol_info::compute_and_set_names): Update.
7693 * minsyms.c (minimal_symbol_reader::install): Update.
7694 * dwarf2/read.c (new_symbol): Update.
7695
1acda803
TT
76962020-04-24 Tom Tromey <tromey@adacore.com>
7697
7698 PR python/23662:
7699 * python/py-type.c (convert_field): Handle
7700 FIELD_LOC_KIND_DWARF_BLOCK.
7701 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7702 (typy_get_dynamic): Nw function.
7703 (type_object_getset): Add "dynamic".
7704 * NEWS: Add entry.
7705
d656f129
TT
77062020-04-24 Tom Tromey <tromey@adacore.com>
7707
7708 * ada-typeprint.c (print_choices, print_variant_part)
7709 (print_record_field_types_dynamic): New functions.
7710 (print_record_field_types): Use print_record_field_types_dynamic.
7711
7d79de9a
TT
77122020-04-24 Tom Tromey <tromey@adacore.com>
7713
7714 * dwarf2/read.c (handle_data_member_location): New overload.
7715 (dwarf2_add_field): Use it.
7716 (decode_locdesc): Add "computed" parameter. Update comment.
7717 * gdbtypes.c (is_dynamic_type_internal): Also look for
7718 FIELD_LOC_KIND_DWARF_BLOCK.
7719 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7720 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7721 virtual base classes.
7722 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7723 FIELD_LOC_KIND_DWARF_BLOCK.
7724
f8e89861
TT
77252020-04-24 Tom Tromey <tromey@adacore.com>
7726
7727 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7728 * gdbtypes.c (is_dynamic_type_internal): Check
7729 TYPE_HAS_DYNAMIC_LENGTH.
7730 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7731 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7732 New macros.
7733 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7734 constant.
7735
9c6a1327
TT
77362020-04-24 Tom Tromey <tromey@adacore.com>
7737
7738 * dwarf2/read.c (struct variant_field): Rewrite.
7739 (struct variant_part_builder): New.
7740 (struct nextfield): Remove "variant" field. Add "offset".
7741 (struct field_info): Add "current_variant_part" and
7742 "variant_parts".
7743 (alloc_discriminant_info): Remove.
7744 (alloc_rust_variant): New function.
7745 (quirk_rust_enum): Update.
7746 (dwarf2_add_field): Set "offset" member. Don't handle
7747 DW_TAG_variant_part.
7748 (offset_map_type): New typedef.
7749 (convert_variant_range, create_one_variant)
7750 (create_one_variant_part, create_variant_parts)
7751 (add_variant_property): New functions.
7752 (dwarf2_attach_fields_to_type): Call add_variant_property.
7753 (read_structure_type): Don't handle DW_TAG_variant_part.
7754 (handle_variant_part, handle_variant): New functions.
7755 (handle_struct_member_die): Use them.
7756 (process_structure_scope): Don't handle variant parts.
7757 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7758 (struct discriminant_info): Remove.
7759 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7760 (struct main_type) <flag_discriminated_union>: Remove.
7761 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7762 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7763 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7764 Update.
7765 * valops.c (value_union_variant): Remove.
7766 * value.h (value_union_variant): Don't declare.
7767
b249d2c2
TT
77682020-04-24 Tom Tromey <tromey@adacore.com>
7769
7770 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7771 (ada_value_primitive_packed_val): Update.
7772 * ada-valprint.c (ada_value_print_1): Update.
7773 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7774 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7775 just an address. Use evaluate_for_locexpr_baton.
7776 (dwarf2_evaluate_property): Update.
7777 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7778 array_view.
7779 * findvar.c (default_read_var_value): Update.
7780 * gdbtypes.c (compute_variant_fields_inner)
7781 (resolve_dynamic_type_internal): Update.
7782 (resolve_dynamic_type): Change type of valaddr parameter.
7783 * gdbtypes.h (resolve_dynamic_type): Update.
7784 * valarith.c (value_subscripted_rvalue): Update.
7785 * value.c (value_from_contents_and_address): Update.
7786
61122aa9
TT
77872020-04-24 Tom Tromey <tromey@adacore.com>
7788
7789 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7790 "push_initial_value" parameter.
7791 (dwarf2_evaluate_property): Likewise.
7792 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7793
ef83a141
TT
77942020-04-24 Tom Tromey <tromey@adacore.com>
7795
7796 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7797 (variant::matches, compute_variant_fields_recurse)
7798 (compute_variant_fields_inner, compute_variant_fields): New
7799 functions.
7800 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7801 Use resolved_type after type is made.
7802 (operator==): Add new cases.
7803 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7804 (struct discriminant_range, struct variant, struct variant_part):
7805 New.
7806 (union dynamic_prop_data) <variant_parts, original_type>: New
7807 members.
7808 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7809 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7810 constants.
7811 * value.c (unpack_bits_as_long): Now public.
7812 * value.h (unpack_bits_as_long): Declare.
7813
675127ec
TT
78142020-04-24 Tom Tromey <tromey@adacore.com>
7815
7816 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7817 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7818
9852ceef
HD
78192020-04-24 Hannes Domani <ssbssa@yahoo.de>
7820
7821 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7822
7632c6ce
KR
78232020-04-24 Kamil Rytarowski <n54@gmx.com>
7824
7825 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7826 (remove_fork_catchpoint, post_startup_inferior)
7827 (post_attach): Move...
7828 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7829 (remove_fork_catchpoint, post_startup_inferior)
7830 (post_attach): ...here.
7831 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7832 (remove_fork_catchpoint, post_startup_inferior)
7833 (post_attach): Move...
7834 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7835 (remove_fork_catchpoint, post_startup_inferior)
7836 (post_attach): ...here.
7837
7be2bb4f
TT
78382020-04-24 Tom Tromey <tromey@adacore.com>
7839
7840 * nat/windows-nat.h (struct windows_thread_info)
7841 <pc_adjusted>: New member.
7842 * windows-nat.c (windows_fetch_one_register): Check
7843 pc_adjusted.
7844 (windows_nat_target::get_windows_debug_event)
7845 (windows_nat_target::wait): Set pc_adjusted.
7846
f80cb3b4
TV
78472020-04-24 Tom de Vries <tdevries@suse.de>
7848
7849 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
7850 Run gdb-add-index inside temp dir.
7851
29514b87
TT
78522020-04-23 Tom Tromey <tromey@adacore.com>
7853
7854 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
7855 in loop.
7856
5939967b
LM
78572020-04-23 Luis Machado <luis.machado@linaro.org>
7858
7859 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7860 get_frame_register instead of gdbarch_unwind_pc.
7861
70bc38f5
TV
78622020-04-23 Tom de Vries <tdevries@suse.de>
7863
7864 * symtab.c (lookup_global_symbol): Prefer def over decl.
7865
de82891c
TV
78662020-04-23 Tom de Vries <tdevries@suse.de>
7867
7868 PR symtab/25807
7869 * block.c (best_symbol, better_symbol): Promote to external.
7870 * block.h (best_symbol, better_symbol): Declare.
7871 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
7872 decl.
7873
ecc6c606
TT
78742020-04-23 Tom Tromey <tromey@adacore.com>
7875
7876 PR ada/25837:
7877 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
7878 "const char *", not a "const std::string &".
7879 <name_and_matcher::operator==>: Update.
7880 * unittests/lookup_name_info-selftests.c: Change type of
7881 "result".
7882
740480b8
TT
78832020-04-23 Tom Tromey <tom@tromey.com>
7884
7885 * inferior.h (iterate_over_inferiors): Don't declare.
7886 * inferior.c (iterate_over_inferiors): Remove.
7887 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
7888 Remove.
7889 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
7890 use iterate_over_inferiors.
7891 (darwin_resume_inferior_it)
7892 (struct resume_inferior_threads_param)
7893 (darwin_resume_inferior_threads_it): Remove.
7894 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
7895
ae3ab1f0
TV
78962020-04-23 Tom de Vries <tdevries@suse.de>
7897
7898 * blockframe.c (find_pc_partial_function): Use
7899 find_pc_sect_compunit_symtab rather than
7900 objfile->sf->qf->find_pc_sect_compunit_symtab.
7901
317d2668
TV
79022020-04-22 Tom de Vries <tdevries@suse.de>
7903
7904 PR symtab/25764
7905 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7906 in psymtabs.
7907
eea9e357
TV
79082020-04-22 Tom de Vries <tdevries@suse.de>
7909
7910 PR symtab/25801
7911 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7912 symtabs.
7913
3d5afab3
TV
79142020-04-22 Tom de Vries <tdevries@suse.de>
7915
7916 PR symtab/25700
7917 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7918 CU if already created.
7919
d43b7a2d
TBA
79202020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7921
7922 * infrun.c (displaced_step_fixup): Switch to the event_thread
7923 before calling displaced_step_restore, not after.
7924
d89edf9b
MM
79252020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7926
7927 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7928 its inferior is not recorded by us.
7929 (record_btrace_target_open): Replace call to
7930 all_non_exited_threads () with call to current_inferior
7931 ()->non_exited_threads ().
7932 (record_btrace_target::stop_recording): Likewise.
7933 (record_btrace_target::close): Likewise.
7934 (record_btrace_target::wait): Likewise.
7935 (record_btrace_target::record_stop_replaying): Likewise.
7936
5897fd49
MM
79372020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7938
7939 * btrace.c (btrace_enable): Throw an error on double enables and
7940 when enabling recording fails.
7941 (btrace_disable): Throw an error if the thread is not recorded.
7942
1a476b6d
MM
79432020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7944
7945 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7946 request if we do not have a thread_info.
7947
4778a5f8
TV
79482020-04-21 Tom de Vries <tdevries@suse.de>
7949
7950 PR gdb/25471
7951 * thread.c
7952 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7953 exception in get_frame_id.
7954
0fa7617d
TT
79552020-04-20 Tom Tromey <tromey@adacore.com>
7956
7957 * python/python.c (struct gdbpy_event): Mark move constructor as
7958 noexcept.
7959 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7960 constructor as noexcept.
7961 * completer.h (struct completion_result): Mark move constructor as
7962 noexcept.
7963 * completer.c (completion_result::completion_result): Use
7964 initialization style. Don't call reset_match_list.
7965
ad23bda0
MS
79662020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7967
7968 * MAINTAINERS (Write After Approval): Add myself.
7969
45e1f031
TT
79702020-04-18 Tom Tromey <tom@tromey.com>
7971
7972 * windows-tdep.c (init_w32_command_list)
7973 (w32_prefix_command_valid): Restore.
7974 (_initialize_windows_tdep): Call init_w32_command_list.
7975
08feed99
TT
79762020-04-18 Tom Tromey <tom@tromey.com>
7977
7978 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7979 * value.c (value_fn_field): Update.
7980 * valops.c (find_function_in_inferior)
7981 (value_allocate_space_in_inferior): Update.
7982 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7983 Update.
7984 * tui/tui-source.c (tui_source_window::set_contents): Update.
7985 * symtab.c (lookup_global_or_static_symbol)
7986 (find_function_start_sal_1, skip_prologue_sal)
7987 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7988 * symmisc.c (dump_msymbols, dump_symtab_1)
7989 (maintenance_print_one_line_table): Update.
7990 * symfile.c (init_entry_point_info, section_is_mapped)
7991 (list_overlays_command, simple_read_overlay_table)
7992 (simple_overlay_update_1): Update.
7993 * stap-probe.c (handle_stap_probe): Update.
7994 * stabsread.c (dbx_init_float_type, define_symbol)
7995 (read_one_struct_field, read_enum_type, read_range_type): Update.
7996 * source.c (info_line_command): Update.
7997 * python/python.c (gdbpy_source_objfile_script)
7998 (gdbpy_execute_objfile_script): Update.
7999 * python/py-type.c (save_objfile_types): Update.
8000 * python/py-objfile.c (py_free_objfile): Update.
8001 * python/py-inferior.c (python_new_objfile): Update.
8002 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
8003 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
8004 (maintenance_check_psymtabs): Update.
8005 * printcmd.c (info_address_command): Update.
8006 * objfiles.h (struct objfile) <arch>: New method, from
8007 get_objfile_arch.
8008 (get_objfile_arch): Don't declare.
8009 * objfiles.c (get_objfile_arch): Remove.
8010 (filter_overlapping_sections): Update.
8011 * minsyms.c (msymbol_is_function): Update.
8012 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
8013 (output_nondebug_symbol): Update.
8014 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
8015 (mdebug_expand_psymtab): Update.
8016 * machoread.c (macho_add_oso_symfile): Update.
8017 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
8018 Update.
8019 * linux-fork.c (checkpoint_command): Update.
8020 * linespec.c (convert_linespec_to_sals): Update.
8021 * jit.c (finalize_symtab): Update.
8022 * infrun.c (insert_exception_resume_from_probe): Update.
8023 * ia64-tdep.c (ia64_find_unwind_table): Update.
8024 * hppa-tdep.c (internalize_unwinds): Update.
8025 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
8026 Update.
8027 * gcore.c (call_target_sbrk): Update.
8028 * elfread.c (record_minimal_symbol, elf_symtab_read)
8029 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
8030 (elf_gnu_ifunc_resolve_by_got): Update.
8031 * dwarf2/read.c (create_addrmap_from_index)
8032 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
8033 (read_debug_names_from_section)
8034 (process_psymtab_comp_unit_reader, add_partial_symbol)
8035 (add_partial_subprogram, process_full_comp_unit)
8036 (read_file_scope, read_func_scope, read_lexical_block_scope)
8037 (read_call_site_scope, dwarf2_ranges_read)
8038 (dwarf2_record_block_ranges, dwarf2_add_field)
8039 (mark_common_block_symbol_computed, read_tag_pointer_type)
8040 (read_tag_string_type, dwarf2_init_float_type)
8041 (dwarf2_init_complex_target_type, read_base_type)
8042 (partial_die_info::read, partial_die_info::read)
8043 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
8044 (dwarf2_fetch_die_loc_sect_off): Update.
8045 * dwarf2/loc.c (dwarf2_find_location_expression)
8046 (class dwarf_evaluate_loc_desc, rw_pieced_value)
8047 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
8048 (dwarf2_loc_desc_get_symbol_read_needs)
8049 (locexpr_describe_location_piece, locexpr_describe_location_1)
8050 (loclist_describe_location): Update.
8051 * dwarf2/index-write.c (write_debug_names): Update.
8052 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
8053 * dtrace-probe.c (dtrace_process_dof): Update.
8054 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
8055 (process_one_symbol): Update.
8056 * ctfread.c (ctf_init_float_type, read_base_type): Update.
8057 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
8058 (coff_read_enum_type): Update.
8059 * cli/cli-cmds.c (edit_command, list_command): Update.
8060 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
8061 * breakpoint.c (create_overlay_event_breakpoint)
8062 (create_longjmp_master_breakpoint)
8063 (create_std_terminate_master_breakpoint)
8064 (create_exception_master_breakpoint, get_sal_arch): Update.
8065 * block.c (block_gdbarch): Update.
8066 * annotate.c (annotate_source_line): Update.
8067
0743fc83
TT
80682020-04-17 Tom Tromey <tromey@adacore.com>
8069
8070 * auto-load.c (show_auto_load_cmd): Remove.
8071 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
8072 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
8073 (maintenance_print_arc_command): Remove.
8074 * tui/tui-win.c (tui_command): Remove.
8075 (tui_get_cmd_list): Use add_basic_prefix_cmd.
8076 * tui/tui-layout.c (tui_layout_command): Remove.
8077 (_initialize_tui_layout): Use add_basic_prefix_cmd.
8078 * python/python.c (user_set_python, user_show_python): Remove.
8079 (_initialize_python): Use add_basic_prefix_cmd,
8080 add_show_prefix_cmd.
8081 * guile/guile.c (set_guile_command, show_guile_command): Remove.
8082 (install_gdb_commands): Use add_basic_prefix_cmd,
8083 add_show_prefix_cmd.
8084 (info_guile_command): Remove.
8085 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
8086 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
8087 add_show_prefix_cmd.
8088 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
8089 Remove do_set and do_show parameters.
8090 * cli/cli-style.c (set_style, show_style): Remove.
8091 (_initialize_cli_style): Use add_basic_prefix_cmd,
8092 add_show_prefix_cmd.
8093 (cli_style_option::add_setshow_commands): Remove do_set and
8094 do_show parameters.
8095 (cli_style_option::add_setshow_commands): Use
8096 add_basic_prefix_cmd, add_show_prefix_cmd.
8097 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
8098 (set_style_name): Remove.
8099 * cli/cli-dump.c (dump_command, append_command): Remove.
8100 (srec_dump_command, ihex_dump_command, verilog_dump_command)
8101 (tekhex_dump_command, binary_dump_command)
8102 (binary_append_command): Remove.
8103 (_initialize_cli_dump): Use add_basic_prefix_cmd.
8104 * windows-tdep.c (w32_prefix_command_valid): Remove global.
8105 (init_w32_command_list): Remove; move into ...
8106 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
8107 * valprint.c (set_print, show_print, set_print_raw)
8108 (show_print_raw): Remove.
8109 (_initialize_valprint): Use add_basic_prefix_cmd,
8110 add_show_prefix_cmd.
8111 * typeprint.c (set_print_type, show_print_type): Remove.
8112 (_initialize_typeprint): Use add_basic_prefix_cmd,
8113 add_show_prefix_cmd.
8114 * record.c (set_record_command, show_record_command): Remove.
8115 (_initialize_record): Use add_basic_prefix_cmd,
8116 add_show_prefix_cmd.
8117 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
8118 add_show_prefix_cmd.
8119 (info_command, show_command, set_debug, show_debug): Remove.
8120 * top.h (set_history, show_history): Don't declare.
8121 * top.c (set_history, show_history): Remove.
8122 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
8123 (unset_tdesc_cmd): Remove.
8124 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
8125 add_show_prefix_cmd.
8126 * symtab.c (info_module_command): Remove.
8127 (_initialize_symtab): Use add_basic_prefix_cmd.
8128 * symfile.c (overlay_command): Remove.
8129 (_initialize_symfile): Use add_basic_prefix_cmd.
8130 * sparc64-tdep.c (info_adi_command): Remove.
8131 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
8132 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
8133 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
8134 add_show_prefix_cmd.
8135 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
8136 (_initialize_serial): Use add_basic_prefix_cmd,
8137 add_show_prefix_cmd.
8138 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
8139 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
8140 add_show_prefix_cmd.
8141 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
8142 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
8143 add_show_prefix_cmd.
8144 * riscv-tdep.c (show_riscv_command, set_riscv_command)
8145 (show_debug_riscv_command, set_debug_riscv_command): Remove.
8146 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
8147 add_show_prefix_cmd.
8148 * remote.c (remote_command, set_remote_cmd): Remove.
8149 (_initialize_remote): Use add_basic_prefix_cmd.
8150 * record-full.c (set_record_full_command)
8151 (show_record_full_command): Remove.
8152 (_initialize_record_full): Use add_basic_prefix_cmd,
8153 add_show_prefix_cmd.
8154 * record-btrace.c (cmd_set_record_btrace)
8155 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
8156 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
8157 (cmd_show_record_btrace_pt): Remove.
8158 (_initialize_record_btrace): Use add_basic_prefix_cmd,
8159 add_show_prefix_cmd.
8160 * ravenscar-thread.c (set_ravenscar_command)
8161 (show_ravenscar_command): Remove.
8162 (_initialize_ravenscar): Use add_basic_prefix_cmd,
8163 add_show_prefix_cmd.
8164 * mips-tdep.c (show_mips_command, set_mips_command)
8165 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
8166 add_show_prefix_cmd.
8167 * maint.c (maintenance_command, maintenance_info_command)
8168 (maintenance_check_command, maintenance_print_command)
8169 (maintenance_set_cmd, maintenance_show_cmd): Remove.
8170 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
8171 add_show_prefix_cmd.
8172 (show_per_command_cmd): Remove.
8173 * maint-test-settings.c (maintenance_set_test_settings_cmd):
8174 Remove.
8175 (maintenance_show_test_settings_cmd): Remove.
8176 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
8177 add_show_prefix_cmd.
8178 * maint-test-options.c (maintenance_test_options_command):
8179 Remove.
8180 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
8181 * macrocmd.c (macro_command): Remove
8182 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8183 * language.c (set_check, show_check): Remove.
8184 (_initialize_language): Use add_basic_prefix_cmd,
8185 add_show_prefix_cmd.
8186 * infcmd.c (unset_command): Remove.
8187 (_initialize_infcmd): Use add_basic_prefix_cmd.
8188 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8189 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8190 add_show_prefix_cmd.
8191 * go32-nat.c (go32_info_dos_command): Remove.
8192 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8193 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8194 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8195 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8196 (_initialize_frame): Use add_basic_prefix_cmd,
8197 add_show_prefix_cmd.
8198 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8199 (_initialize_dcache): Use add_basic_prefix_cmd,
8200 add_show_prefix_cmd.
8201 * cp-support.c (maint_cplus_command): Remove.
8202 (_initialize_cp_support): Use add_basic_prefix_cmd.
8203 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8204 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8205 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8206 add_basic_prefix_cmd, add_show_prefix_cmd.
8207 * breakpoint.c (save_command): Remove.
8208 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8209 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8210 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8211 add_show_prefix_cmd.
8212 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8213 (set_ada_command, show_ada_command): Remove.
8214 (_initialize_ada_language): Use add_basic_prefix_cmd,
8215 add_show_prefix_cmd.
8216 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8217
3557f442
KR
82182020-04-16 Kamil Rytarowski <n54@gmx.com>
8219
8220 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8221 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8222
16197208
SM
82232020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8224
8225 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8226 warning messages.
8227
00ac85d3
SM
82282020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8229
8230 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8231 import table is not at beginning of .idata section.
8232
381ce63f
PA
82332020-04-16 Pedro Alves <palves@redhat.com>
8234
8235 * inferior.c (delete_inferior): Use delete operator directly
8236 instead of delete_program_space.
8237 * progspace.c (add_program_space): New, factored out from
8238 program_space::program_space.
8239 (remove_program_space): New, factored out from
8240 delete_program_space.
8241 (program_space::program_space): Remove intro comment. Rewrite.
8242 (program_space::~program_space): Remove intro comment. Call
8243 remove_program_space.
8244 (delete_program_space): Delete.
8245 * progspace.h (program_space::program_space): Make explicit. Move
8246 intro comment here, adjusted.
8247 (program_space::~program_space): Move intro comment here,
8248 adjusted.
8249 (delete_program_space): Remove.
8250
a010605f
TT
82512020-04-16 Tom Tromey <tromey@adacore.com>
8252
8253 * windows-nat.c (windows_nat::handle_access_violation): New
8254 function.
8255 * nat/windows-nat.h (handle_access_violation): Declare.
8256 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8257 windows-nat.c. Call handle_access_violation.
8258
efba5c23
TV
82592020-04-16 Tom de Vries <tdevries@suse.de>
8260
8261 PR symtab/25791
8262 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8263 CUs without psymtab.
8264
97ed802d
KB
82652020-04-16 Kevin Buettner <kevinb@redhat.com>
8266
8267 * python/python.c (do_start_initialization): Don't call
8268 PyEval_InitThreads for Python 3.9 and beyond.
8269
c7d64809
KR
82702020-04-15 Kamil Rytarowski <n54@gmx.com>
8271
8272 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8273 thread functions.
8274 (obsd_nat_target::wait): Likewise.
8275
ce127a96
TT
82762020-04-15 Tom Tromey <tromey@adacore.com>
8277
8278 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8279 (DEBUG_EXCEPT): Use debug_printf.
8280
99f1bc6a
AB
82812020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8282
8283 * completer.c (class completion_tracker::completion_hash_entry)
8284 <hash_name>: New member function.
8285 (completion_tracker::discard_completions): New callback to hash a
8286 completion_hash_entry, pass this to htab_create_alloc.
8287
a0e9b532
JT
82882016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8289
8290 * windows-nat.c (windows_make_so): Warn rather than stopping with
8291 an error if realpath() fails.
8292
06ca5dd4
KR
82932020-04-14 Kamil Rytarowski <n54@gmx.com>
8294
8295 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8296 (nbsd_nat_target::info_proc): Add do_status.
8297
194d088f
TV
82982020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8299 Tom de Vries <tdevries@suse.de>
8300
8301 PR symtab/25718
8302 * psympriv.h (struct partial_symtab::read_symtab)
8303 (struct partial_symtab::expand_psymtab)
8304 (struct partial_symtab::read_dependencies): Update comments.
8305 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8306 read_symtab for includer.
8307 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8308 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8309 (struct dwarf2_include_psymtab::m_readin): Remove.
8310 (struct dwarf2_include_psymtab::includer): New member function.
8311 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8312
c1a66c06
TV
83132020-04-14 Tom de Vries <tdevries@suse.de>
8314
8315 PR symtab/25720
8316 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8317 with NULL symbol_matcher and lookup_name.
8318 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8319 and lookup_name.
8320 * dwarf2/read.c (dw2_expand_symtabs_matching)
8321 (dw2_debug_names_expand_symtabs_matching): Same.
8322 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8323 Make lookup_name a pointer. Update comment.
8324 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8325 lookup_name being a pointer.
8326 * symfile.c (expand_symtabs_matching): Same.
8327 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8328 * linespec.c (iterate_over_all_matching_symtabs): Same.
8329
400b5eca
TT
83302020-04-13 Tom Tromey <tom@tromey.com>
8331
8332 * run-on-main-thread.c: Update include.
8333 * unittests/main-thread-selftests.c: Update include.
8334 * tui/tui-win.c: Update include.
8335 * tui/tui-io.c: Update include.
8336 * tui/tui-interp.c: Update include.
8337 * tui/tui-hooks.c: Update include.
8338 * top.h: Update include.
8339 * top.c: Update include.
8340 * ser-base.c: Update include.
8341 * remote.c: Update include.
8342 * remote-notif.c: Update include.
8343 * remote-fileio.c: Update include.
8344 * record-full.c: Update include.
8345 * record-btrace.c: Update include.
8346 * python/python.c: Update include.
8347 * posix-hdep.c: Update include.
8348 * mingw-hdep.c: Update include.
8349 * mi/mi-main.c: Update include.
8350 * mi/mi-interp.c: Update include.
8351 * main.c: Update include.
8352 * linux-nat.c: Update include.
8353 * interps.c: Update include.
8354 * infrun.c: Update include.
8355 * inf-loop.c: Update include.
8356 * event-top.c: Update include.
8357 * event-loop.c: Move to ../gdbsupport/.
8358 * event-loop.h: Move to ../gdbsupport/.
8359 * async-event.h: Update include.
8360 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8361
93b54c8e
TT
83622020-04-13 Tom Tromey <tom@tromey.com>
8363
8364 * tui/tui-win.c: Include async-event.h.
8365 * remote.c: Include async-event.h.
8366 * remote-notif.c: Include async-event.h.
8367 * record-full.c: Include async-event.h.
8368 * record-btrace.c: Include async-event.h.
8369 * infrun.c: Include async-event.h.
8370 * event-top.c: Include async-event.h.
8371 * event-loop.h: Move some declarations to async-event.h.
8372 * event-loop.c: Don't include ser-event.h or top.h. Move some
8373 code to async-event.c.
8374 * async-event.h: New file.
8375 * async-event.c: New file.
8376 * Makefile.in (COMMON_SFILES): Add async-event.c.
8377 (HFILES_NO_SRCDIR): Add async-event.h.
8378
c1cd3163
TT
83792020-04-13 Tom Tromey <tom@tromey.com>
8380
8381 * utils.c (flush_streams): New function.
8382 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8383
29f2bf4f
TT
83842020-04-13 Tom Tromey <tom@tromey.com>
8385
8386 * event-loop.c (handle_file_event): Use warning, not
8387 printf_unfiltered.
8388
98029d02
TT
83892020-04-13 Tom Tromey <tom@tromey.com>
8390
8391 * event-loop.c: Include <chrono>.
8392
06cc9596
TT
83932020-04-13 Tom Tromey <tom@tromey.com>
8394
8395 * gdb_select.h: Move to ../gdbsupport/.
8396 * event-loop.c: Update include path.
8397 * top.c: Update include path.
8398 * ser-base.c: Update include path.
8399 * ui-file.c: Update include path.
8400 * ser-tcp.c: Update include path.
8401 * guile/scm-ports.c: Update include path.
8402 * posix-hdep.c: Update include path.
8403 * ser-unix.c: Update include path.
8404 * gdb_usleep.c: Update include path.
8405 * mingw-hdep.c: Update include path.
8406 * inflow.c: Update include path.
8407 * infrun.c: Update include path.
8408 * event-top.c: Update include path.
8409
8ae8e197
TT
84102020-04-13 Tom Tromey <tom@tromey.com>
8411
8412 * configure: Rebuild.
8413 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8414
58cf28e8
TT
84152020-04-13 Tom Tromey <tom@tromey.com>
8416
8417 * event-loop.h (start_event_loop): Don't declare.
8418 * event-loop.c (start_event_loop): Move...
8419 * main.c (start_event_loop): ...here. Now static.
8420
b7f999ae
SDJ
84212020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8422
8423 * MAINTAINERS: Update my email address.
8424
1085dfd4
KR
84252020-04-12 Kamil Rytarowski <n54@gmx.com>
8426
8427 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8428 IP_ALL.
8429
49d1d1f5
KR
84302020-04-12 Kamil Rytarowski <n54@gmx.com>
8431
8432 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 8433 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 8434
b4848d2a
KR
84352020-04-12 Kamil Rytarowski <n54@gmx.com>
8436
8437 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 8438 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 8439
51c133d5
KR
84402020-04-12 Kamil Rytarowski <n54@gmx.com>
8441
8442 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8443
54b8cbd0
KR
84442020-04-11 Kamil Rytarowski <n54@gmx.com>
8445
8446 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8447 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8448 (nbsd_nat_target::info_proc): New functions.
8449 * nbsd-nat.c (kinfo_get_vmmap): New function.
8450 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8451 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8452 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8453 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8454 functions.
8455 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8456 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8457 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8458 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8459 (KINFO_VME_FLAG_GROWS_DOWN): New.
8460
cf83625d
AS
84612020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8462
8463 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8464 bit shift.
8465
0c4311ab
TT
84662020-04-10 Tom Tromey <tromey@adacore.com>
8467
8468 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8469
3e65b3e9
TT
84702020-04-10 Tom Tromey <tromey@adacore.com>
8471
8472 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8473 separate debug files.
8474
13302e95
HD
84752020-04-10 Hannes Domani <ssbssa@yahoo.de>
8476
8477 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8478 Move to...
8479 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8480 ... here.
8481 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8482 Check for STATUS_WX86_BREAKPOINT.
8483 (windows_nat_target::wait): Same.
8484
bdfc1e8a
TV
84852020-04-10 Tom de Vries <tdevries@suse.de>
8486
8487 PR cli/25808
8488 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8489
f4460aec
SM
84902020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8491
8492 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8493 (Write After Approval): Remove Tom de Vries.
8494
a25198bb
BE
84952020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8496
8497 revert partially:
8498 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8499
aac66a4c
SM
8500 * buildsym.c (record_line): Fix undefined behavior and preserve
8501 lines at eof.
a25198bb 8502
206c98a6
KR
85032020-04-09 Kamil Rytarowski <n54@gmx.com>
8504
8505 * auxv.h (svr4_auxv_parse): New.
8506 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8507 and generic_auxv_parse.
8508 (svr4_auxv_parse): Add.
8509 * obsd-tdep.c: Include "auxv.h".
8510 (obsd_auxv_parse): Remove.
8511 (obsd_init_abi): Remove comment.
8512 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8513 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8514 * nbsd-tdep.c: Include "auxv.h".
8515 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8516
71fbdbaf
TT
85172020-04-08 Tom Tromey <tromey@adacore.com>
8518
8519 * nat/windows-nat.h (last_wait_event): Don't declare.
8520 (wait_for_debug_event): Update comment.
8521 * nat/windows-nat.c (last_wait_event): Now static.
8522
2c1d95e8
TT
85232020-04-08 Tom Tromey <tromey@adacore.com>
8524
8525 * windows-nat.c (wait_for_debug_event): Move to
8526 nat/windows-nat.c.
8527 * nat/windows-nat.h (wait_for_debug_event): Declare.
8528 * nat/windows-nat.c (wait_for_debug_event): Move from
8529 windows-nat.c. No longer static.
8530
d2977bc4
TT
85312020-04-08 Tom Tromey <tromey@adacore.com>
8532
8533 * windows-nat.c (get_windows_debug_event): Use
8534 fetch_pending_stop.
8535 * nat/windows-nat.h (fetch_pending_stop): Declare.
8536 * nat/windows-nat.c (fetch_pending_stop): New function.
8537
e758e19c
TT
85382020-04-08 Tom Tromey <tromey@adacore.com>
8539
8540 * windows-nat.c (windows_continue): Use matching_pending_stop and
8541 continue_last_debug_event.
8542 * nat/windows-nat.h (matching_pending_stop)
8543 (continue_last_debug_event): Declare.
8544 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8545 (matching_pending_stop, continue_last_debug_event): New
8546 functions.
8547
8d30e395
TT
85482020-04-08 Tom Tromey <tromey@adacore.com>
8549
8550 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8551 (handle_exception_result): Move to nat/windows-nat.h.
8552 (DEBUG_EXCEPTION_SIMPLE): Remove.
8553 (windows_nat::handle_ms_vc_exception): New function.
8554 (handle_exception): Move to nat/windows-nat.c.
8555 (get_windows_debug_event): Update.
8556 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8557 nat/windows-nat.c.
8558 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8559 (handle_exception_result): Move from windows-nat.c.
8560 (handle_exception): Declare.
8561 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8562 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8563 windows-nat.c.
8564
29de418d
TT
85652020-04-08 Tom Tromey <tromey@adacore.com>
8566
8567 * windows-nat.c (exception_count, event_count): Remove.
8568 (handle_exception, get_windows_debug_event)
8569 (do_initial_windows_stuff): Update.
8570
a816ba18
TT
85712020-04-08 Tom Tromey <tromey@adacore.com>
8572
8573 * windows-nat.c (windows_nat::handle_load_dll)
8574 (windows_nat::handle_unload_dll): Rename. No longer static.
8575 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8576 Declare.
8577
a00caa12
TT
85782020-04-08 Tom Tromey <tromey@adacore.com>
8579
8580 * complaints.h (stop_whining): Declare at top-level.
8581 (complaint): Don't declare stop_whining.
8582
d41b524f
TT
85832020-04-08 Tom Tromey <tromey@adacore.com>
8584
8585 * windows-nat.c (windows_nat::handle_output_debug_string):
8586 Rename. No longer static.
8587 * nat/windows-nat.h (handle_output_debug_string): Declare.
8588
3c76026d
TT
85892020-04-08 Tom Tromey <tromey@adacore.com>
8590
8591 * windows-nat.c (current_process_handle, current_process_id)
8592 (main_thread_id, last_sig, current_event, last_wait_event)
8593 (current_windows_thread, desired_stop_thread_id, pending_stops)
8594 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8595 (display_selectors, fake_create_process)
8596 (get_windows_debug_event): Update.
8597 * nat/windows-nat.h (current_process_handle, current_process_id)
8598 (main_thread_id, last_sig, current_event, last_wait_event)
8599 (current_windows_thread, desired_stop_thread_id, pending_stops)
8600 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8601 * nat/windows-nat.c (current_process_handle, current_process_id)
8602 (main_thread_id, last_sig, current_event, last_wait_event)
8603 (current_windows_thread, desired_stop_thread_id, pending_stops)
8604 (siginfo_er): New globals. Move from windows-nat.c.
8605
9d8679cc
TT
86062020-04-08 Tom Tromey <tromey@adacore.com>
8607
8608 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8609 (handle_load_dll): Update.
8610 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8611
28688adf
TT
86122020-04-08 Tom Tromey <tromey@adacore.com>
8613
8614 * windows-nat.c (enum thread_disposition_type): Move to
8615 nat/windows-nat.h.
8616 (windows_nat::thread_rec): Rename from thread_rec. No longer
8617 static.
8618 (windows_add_thread, windows_nat_target::fetch_registers)
8619 (windows_nat_target::store_registers, handle_exception)
8620 (windows_nat_target::resume, get_windows_debug_event)
8621 (windows_nat_target::get_tib_address)
8622 (windows_nat_target::thread_name)
8623 (windows_nat_target::thread_alive): Update.
8624 * nat/windows-nat.h (enum thread_disposition_type): Move from
8625 windows-nat.c.
8626 (thread_rec): Declare.
8627
4834dad0
TT
86282020-04-08 Tom Tromey <tromey@adacore.com>
8629
8630 * windows-nat.c: Add "using namespace".
8631 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8632 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8633
65bafd5b
TT
86342020-04-08 Tom Tromey <tromey@adacore.com>
8635
8636 * nat/windows-nat.h (struct windows_thread_info): Declare
8637 destructor.
8638 * nat/windows-nat.c (~windows_thread_info): New.
8639
0a4afda3
TT
86402020-04-08 Tom Tromey <tromey@adacore.com>
8641
8642 PR gdb/22992
8643 * windows-nat.c (current_event): Update comment.
8644 (last_wait_event, desired_stop_thread_id): New globals.
8645 (struct pending_stop): New.
8646 (pending_stops): New global.
8647 (windows_nat_target) <stopped_by_sw_breakpoint>
8648 <supports_stopped_by_sw_breakpoint>: New methods.
8649 (windows_fetch_one_register): Add assertions. Adjust PC.
8650 (windows_continue): Handle pending stops. Suspend other threads
8651 when stepping. Use last_wait_event
8652 (wait_for_debug_event): New function.
8653 (get_windows_debug_event): Use wait_for_debug_event. Handle
8654 pending stops. Queue spurious stops.
8655 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8656 (windows_nat_target::kill): Use wait_for_debug_event.
8657 * nat/windows-nat.h (struct windows_thread_info)
8658 <stopped_at_software_breakpoint>: New field.
8659 * nat/windows-nat.c (windows_thread_info::resume): Clear
8660 stopped_at_software_breakpoint.
8661
8e61ebec
TT
86622020-04-08 Tom Tromey <tromey@adacore.com>
8663
8664 * windows-nat.c (enum thread_disposition_type): New.
8665 (thread_rec): Replace "get_context" parameter with "disposition";
8666 change type.
8667 (windows_add_thread, windows_nat_target::fetch_registers)
8668 (windows_nat_target::store_registers, handle_exception)
8669 (windows_nat_target::resume, get_windows_debug_event)
8670 (windows_nat_target::get_tib_address)
8671 (windows_nat_target::thread_name)
8672 (windows_nat_target::thread_alive): Update.
8673
98a03287
TT
86742020-04-08 Tom Tromey <tromey@adacore.com>
8675
8676 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8677 (windows_continue): Use windows_continue::resume.
8678 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8679 resume>: Declare new methods.
8680 * nat/windows-nat.c: New file.
8681 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8682
7c7411bc
TT
86832020-04-08 Tom Tromey <tromey@adacore.com>
8684
8685 * windows-nat.c (windows_add_thread, windows_delete_thread)
8686 (windows_nat_target::fetch_registers)
8687 (windows_nat_target::store_registers, fake_create_process)
8688 (windows_nat_target::resume, windows_nat_target::resume)
8689 (get_windows_debug_event, windows_nat_target::wait)
8690 (windows_nat_target::pid_to_str)
8691 (windows_nat_target::get_tib_address)
8692 (windows_nat_target::get_ada_task_ptid)
8693 (windows_nat_target::thread_name)
8694 (windows_nat_target::thread_alive): Use lwp, not tid.
8695
2950fdf7
TT
86962020-04-08 Tom Tromey <tromey@adacore.com>
8697
8698 * windows-nat.c (handle_exception)
8699 (windows_nat_target::thread_name): Update.
8700 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8701 <name>: Now unique_xmalloc_ptr.
8702
62fe396b
TT
87032020-04-08 Tom Tromey <tromey@adacore.com>
8704
8705 * windows-nat.c (thread_rec)
8706 (windows_nat_target::fetch_registers): Update.
8707 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8708 Update comment.
8709 <debug_registers_changed, reload_context>: Now bool.
8710
e9534bd2
TT
87112020-04-08 Tom Tromey <tromey@adacore.com>
8712
8713 * windows-nat.c (windows_add_thread): Use new.
8714 (windows_init_thread_list, windows_delete_thread): Use delete.
8715 (get_windows_debug_event): Update.
8716 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8717 destructor, and initializers.
8718
ae1f8880
TT
87192020-04-08 Tom Tromey <tromey@adacore.com>
8720
8721 * windows-nat.c (struct windows_thread_info): Remove.
8722 * nat/windows-nat.h: New file.
8723
55a1e039
TT
87242020-04-08 Tom Tromey <tromey@adacore.com>
8725
8726 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8727 (thread_rec, windows_add_thread, windows_delete_thread)
8728 (windows_continue): Update.
8729
93366324
TT
87302020-04-08 Tom Tromey <tromey@adacore.com>
8731
8732 * windows-nat.c (struct windows_thread_info): Remove typedef.
8733 (thread_head): Remove.
8734 (thread_list): New global.
8735 (thread_rec, windows_add_thread, windows_init_thread_list)
8736 (windows_delete_thread, windows_continue): Update.
8737
0f2265e2
SM
87382020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8739
8740 * windows-tdep.h (windows_init_abi): Add comment.
8741 (cygwin_init_abi): New declaration.
8742 * windows-tdep.c: Split signal enumeration in two, one for
8743 Windows and one for Cygwin.
8744 (windows_gdb_signal_to_target): Only deal with signal of the
8745 Windows OS ABI.
8746 (cygwin_gdb_signal_to_target): New function.
8747 (windows_init_abi): Rename to windows_init_abi_common, don't set
8748 gdb_signal_to_target gdbarch method. Add new new function with
8749 this name.
8750 (cygwin_init_abi): New function.
8751 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8752 comment. Don't call windows_init_abi.
8753 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8754 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8755 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8756 i386_windows_init_abi_common, don't call windows_init_abi. Add
8757 a new function of this name.
8758 (i386_cygwin_init_abi): New function.
8759 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8760 OS ABI Cygwin.
8761
3810f182
SM
87622020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8763
8764 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8765 parameter.c.
8766 (dwarf2_read_gdb_index): Update.
8767
063f8e80
KR
87682020-04-07 Kamil Rytarowski <n54@gmx.com>
8769
8770 * nbsd-tdep.c: Include "objfiles.h".
8771 (nbsd_skip_solib_resolver): New.
8772 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8773
85a9510c 87742020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8775
8776 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8777 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8778 with DW_LLE_base_addressx are being emitted in DWARFv5.
8779 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8780 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8781 unsigned integer.
8782
9fc3eaae 87832020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8784
8785 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8786 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8787 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8788 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8789 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8790 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8791 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8792
8793
41144253 87942020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8795
8796 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8797 (read_loclist_index): New function definition.
8798 (lookup_loclist_base): New function definition.
8799 (read_loclist_header): New function definition.
8800 (dwarf2_cu): Add loclist_base and loclist_header field.
8801 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8802 (read_full_die_1): Read the value of DW_AT_loclists_base.
8803 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8804 (read_attribute_value): Handle DW_FORM_loclistx.
8805 (skip_one_die): Handle DW_FORM_loclistx.
8806 (loclist_header): New structure declaration.
8807 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8808
9f4e76a4
SM
88092020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8810
8811 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8812 constructor. Remove `addr` parameter from other constructor and
8813 add `per_cu` parameter.
8814 * dwarf2/read.c (create_partial_symtab): Update.
8815
25c11aca
TV
88162020-04-07 Tom de Vries <tdevries@suse.de>
8817
8818 PR symtab/25796
8819 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8820 (partial_die_info::fixup): Inherit has_const_value.
8821
5707e24b
TV
88222020-04-07 Tom de Vries <tdevries@suse.de>
8823
8824 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8825 symbols without address.
8826
05f00e22
KR
88272020-04-06 Kamil Rytarowski <n54@gmx.com>
8828
8829 * nbsd-nat.h (struct thread_info): Add forward declaration.
8830 (nbsd_nat_target::thread_alive): Add.
8831 (nbsd_nat_target::thread_name): Likewise.
8832 (nbsd_nat_target::update_thread_list): Likewise.
8833 (update_thread_list::post_attach): Likewise.
8834 (post_attach::pid_to_str): Likewise.
8835 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8836 (nbsd_thread_lister): Add.
8837 (nbsd_nat_target::thread_alive): Likewise.
8838 (nbsd_nat_target::thread_name): Likewise.
8839 (nbsd_add_threads): Likewise.
8840 (update_thread_list::post_attach): Likewise.
8841 (nbsd_nat_target::update_thread_list): Likewise.
8842 (post_attach::pid_to_str): Likewise.
8843
6ee448cc
TT
88442020-04-06 Tom Tromey <tromey@adacore.com>
8845
8846 * ada-valprint.c (print_variant_part): Extract the variant field.
8847 (print_field_values): Use the field as the outer value when
8848 recursing.
8849
dea34e8c
TT
88502020-04-06 Tom Tromey <tromey@adacore.com>
8851
8852 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
8853 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
8854 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
8855 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
8856 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
8857
93689ce9
TT
88582020-04-06 Tom Tromey <tromey@adacore.com>
8859
8860 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8861 TYPE_CODE_ERROR.
8862
79743962
KR
88632020-04-06 Kamil Rytarowski <n54@gmx.com>
8864
8865 * nbsd-tdep.c: Include "gdbarch.h".
8866 Define enum with NetBSD signal numbers.
8867 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
8868 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
8869 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
8870 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
8871 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
8872 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
8873 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
8874 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8875 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
8876 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8877 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8878 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
8879
9e7c9a03
HD
88802020-04-03 Hannes Domani <ssbssa@yahoo.de>
8881
8882 PR gdb/25325
8883 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
8884
d9e49b61
TT
88852020-04-03 Tom Tromey <tromey@adacore.com>
8886
8887 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
8888 Read constant block.
8889
e0fc5c3f
SM
88902020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8891
8892 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
8893 (gdb_bfd_get_full_section_contents): New declaration.
8894 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
8895 * windows-tdep.c (is_linked_with_cygwin_dll): Use
8896 gdb_bfd_get_full_section_contents.
8897
e2ff18a0
SM
88982020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8899
8900 * exec.c (build_section_table): Replace internal_error with
8901 gdb_assert.
8902 (section_table_xfer_memory_partial): Likewise.
8903 * mdebugread.c (parse_partial_symbols): Likewise.
8904 * psymtab.c (lookup_partial_symbol): Likewise.
8905 * utils.c (wrap_here): Likewise.
8906
0830d301
TT
89072020-04-02 Tom Tromey <tromey@adacore.com>
8908
8909 * f-lang.c (build_fortran_types): Use arch_type to initialize
8910 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8911
e7da7f8f
TT
89122020-04-02 Tom Tromey <tromey@adacore.com>
8913
8914 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8915 of attributes.
8916
c90d28ac
AB
89172020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8918 Bernd Edlinger <bernd.edlinger@hotmail.de>
8919 Tom Tromey <tromey@adacore.com>
8920
8921 * buildsym.c (buildsym_compunit::record_line): Remove
8922 deduplication code.
8923
1aa98955
TV
89242020-04-02 Tom de Vries <tdevries@suse.de>
8925
8926 PR ada/24671
8927 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8928
d3214198
TV
89292020-04-02 Tom de Vries <tdevries@suse.de>
8930
8931 * dwarf2/read.c (dwarf2_gdb_index_functions,
8932 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8933 NULL.
8934 * psymtab.c (psym_lookup_global_symbol_language): New function.
8935 (psym_functions): Init psym_lookup_global_symbol_language with
8936 psym_lookup_global_symbol_language.
8937 * symfile-debug.c (debug_sym_quick_functions): Init
8938 lookup_global_symbol_language with NULL.
8939 * symfile.c (set_initial_language): Remove fixme comment.
8940 * symfile.h (struct quick_symbol_functions): Add
8941 lookup_global_symbol_language.
8942 * symtab.c (find_quick_global_symbol_language): New function.
8943 (find_main_name): Use find_quick_global_symbol_language.
8944
2836752f
SM
89452020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8946
8947 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8948
64dc2d4b
BE
89492020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8950
8951 * buildsym.c (record_line): Fix undefined behavior and preserve
8952 lines at eof.
8953
bbe3dc41
BE
89542020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8955
8956 * buildsym.c (record_line): Fix the resizing condition.
8957
6b4a335b
TT
89582020-04-01 Tom Tromey <tom@tromey.com>
8959
8960 * value.h (value_literal_complex): Add comment.
8961 * valops.c (value_literal_complex): Refer to value.h.
8962
3638a098
TT
89632020-04-01 Tom Tromey <tom@tromey.com>
8964
8965 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8966 (scalar_type): New rule, from typebase.
8967 (typebase): Use scalar_type. Recognize complex types.
8968 (field_name): Handle FLOAT_KEYWORD.
8969 (ident_tokens): Add _Complex and __complex__.
8970
c34e8714
TT
89712020-04-01 Tom Tromey <tom@tromey.com>
8972
8973 PR exp/25299:
8974 * valarith.c (promotion_type, complex_binop): New functions.
8975 (scalar_binop): Handle complex numbers. Use promotion_type.
8976 (value_pos, value_neg, value_complement): Handle complex numbers.
8977
fa649bb7
TT
89782020-04-01 Tom Tromey <tom@tromey.com>
8979
8980 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8981 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8982 (parse_number): Handle complex numbers.
8983
981c08ce
TT
89842020-04-01 Tom Tromey <tom@tromey.com>
8985
8986 * c-valprint.c (c_decorations): Change complex suffix to "i".
8987
4c99290d
TT
89882020-04-01 Tom Tromey <tom@tromey.com>
8989
8990 * valprint.c (generic_value_print_complex): Use accessors.
8991 * value.h (value_real_part, value_imaginary_part): Declare.
8992 * valops.c (value_real_part, value_imaginary_part): New
8993 functions.
8994 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8995
5b930b45
TT
89962020-04-01 Tom Tromey <tom@tromey.com>
8997
8998 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8999 (read_range_type): Update.
9000 * mdebugread.c (basic_type): Update.
9001 * go-lang.c (build_go_types): Use init_complex_type.
9002 * gdbtypes.h (struct main_type) <complex_type>: New member.
9003 (init_complex_type): Update.
9004 (arch_complex_type): Don't declare.
9005 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
9006 Make name if none given. Use alloc_type_copy. Look for cached
9007 complex type.
9008 (arch_complex_type): Remove.
9009 (gdbtypes_post_init): Use init_complex_type.
9010 * f-lang.c (build_fortran_types): Use init_complex_type.
9011 * dwarf2/read.c (read_base_type): Update.
9012 * d-lang.c (build_d_types): Use init_complex_type.
9013 * ctfread.c (read_base_type): Update.
9014
53cccef1
TBA
90152020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9016
9017 * infrun.c (stop_all_threads): Update assertion, plus when
9018 stopping threads, take into account that we might be trying
9019 to stop an all-stop target.
9020 (stop_waiting): Call 'stop_all_threads' if there exists a
9021 non-stop target.
9022
a0714d30
TBA
90232020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9024
9025 * target.h (exists_non_stop_target): New function declaration.
9026 * target.c (exists_non_stop_target): New function.
9027
60e22c1e
HD
90282020-04-01 Hannes Domani <ssbssa@yahoo.de>
9029
9030 PR gdb/24789
9031 * eval.c (is_integral_or_integral_reference): New function.
9032 (evaluate_subexp_standard): Allow integer references in
9033 pointer arithmetic.
9034
e139a727
TBA
90352020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9036
9037 * remote.c (remote_target::remote_parse_stop_reply): Remove the
9038 check for no ptid in the stop reply when the target is non-stop.
9039
e0802d59
TT
90402020-04-01 Tom Tromey <tromey@adacore.com>
9041
9042 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
9043 "name" parameter to rvalue reference. Initialize m_name_holder.
9044 <lookup_name_info>: New overloads.
9045 <name>: Return gdb::string_view.
9046 <c_str>: New method.
9047 <make_ignore_params>: Update.
9048 <search_name_hash>: Update.
9049 <language_lookup_name>: Return const char *.
9050 <m_name>: Change type.
9051 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
9052 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
9053 (lookup_name_info::match_any): Update.
9054 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
9055 Update.
9056 * minsyms.c (linkage_name_str): Update.
9057 * language.c (default_symbol_name_matcher): Update.
9058 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
9059 Update.
9060 * ada-lang.c (ada_fold_name): Change parameter to string_view.
9061 (ada_lookup_name_info::ada_lookup_name_info): Update.
9062 (literal_symbol_name_matcher): Update.
9063
8c072cb6
TT
90642020-04-01 Tom Tromey <tromey@adacore.com>
9065
9066 * psymtab.c (psymtab_search_name): Remove function.
9067 (psym_lookup_symbol): Create search name and lookup name here.
9068 (lookup_partial_symbol): Remove "name" parameter; add
9069 lookup_name.
9070 (psym_expand_symtabs_for_function): Update.
9071
6f29a534
TT
90722020-03-31 Joel Jones <joelkevinjones@gmail.com>
9073
9074 PR tui/25597:
9075 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
9076
af62665e
TT
90772020-03-31 Tom Tromey <tromey@adacore.com>
9078
9079 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
9080 memcpy.
9081
d1a89da5
NC
90822020-03-30 Nelson Chu <nelson.chu@sifive.com>
9083
9084 * features/riscv/32bit-csr.xml: Regenerated.
9085 * features/riscv/64bit-csr.xml: Regenerated.
9086
d8af9068
TT
90872020-03-30 Tom Tromey <tromey@adacore.com>
9088
9089 * ada-valprint.c (print_variant_part): Update.
9090 * ada-lang.h (ada_which_variant_applies): Update.
9091 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
9092 outer_valaddr parameters; replace with "outer" value parameter.
9093 (to_fixed_variant_branch_type): Update.
9094
227c0bf4
PFC
90952020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9096
9097 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
9098 <list>. Remove inclusion of observable.h.
9099 (PPC_DEBUG_CURRENT_VERSION): Move up define.
9100 (struct arch_lwp_info): New struct.
9101 (class ppc_linux_dreg_interface): New class.
9102 (struct ppc_linux_process_info): New struct.
9103 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
9104 <low_new_clone, low_forget_process, low_prepare_to_resume>
9105 <copy_thread_dreg_state, mark_thread_stale>
9106 <mark_debug_registers_changed, register_hw_breakpoint>
9107 <clear_hw_breakpoint, register_wp, clear_wp>
9108 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
9109 <num_memory_accesses, get_trigger_type>
9110 <create_watchpoint_request, hwdebug_point_cmp>
9111 <init_arch_lwp_info, get_arch_lwp_info>
9112 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
9113 methods.
9114 <struct ptid_hash>: New inner struct.
9115 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
9116 members.
9117 (saved_dabr_value, hwdebug_info, max_slots_number)
9118 (struct hw_break_tuple, struct thread_points, ppc_threads)
9119 (have_ptrace_hwdebug_interface)
9120 (hwdebug_find_thread_points_by_tid)
9121 (hwdebug_insert_point, hwdebug_remove_point): Remove.
9122 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
9123 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
9124 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
9125 use m_dreg_interface.
9126 (hwdebug_point_cmp): Change to...
9127 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
9128 reference arguments instead of pointers.
9129 (ppc_linux_nat_target::ranged_break_num_registers): Use
9130 m_dreg_interface.
9131 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
9132 m_dreg_interface. Call register_hw_breakpoint.
9133 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
9134 m_dreg_interface. Call clear_hw_breakpoint.
9135 (get_trigger_type): Change to...
9136 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
9137 comment.
9138 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
9139 use m_dreg_interface. Call register_hw_breakpoint.
9140 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
9141 use m_dreg_interface. Call clear_hw_breakpoint.
9142 (can_use_watchpoint_cond_accel): Change to...
9143 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
9144 method. Update comment, use m_dreg_interface and
9145 m_process_info.
9146 (calculate_dvc): Change to...
9147 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
9148 m_dreg_interface.
9149 (num_memory_accesses): Change to...
9150 (ppc_linux_nat_target::num_memory_accesses): ...this method.
9151 (check_condition): Change to...
9152 (ppc_linux_nat_target::check_condition): ...this method.
9153 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
9154 comment, use m_dreg_interface.
9155 (create_watchpoint_request): Change to...
9156 (ppc_linux_nat_target::create_watchpoint_request): ...this
9157 method. Use m_dreg_interface.
9158 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
9159 m_dreg_interface. Call register_hw_breakpoint or register_wp.
9160 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
9161 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
9162 (ppc_linux_nat_target::low_forget_process)
9163 (ppc_linux_nat_target::low_new_fork)
9164 (ppc_linux_nat_target::low_new_clone)
9165 (ppc_linux_nat_target::low_delete_thread)
9166 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
9167 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
9168 only call mark_thread_stale.
9169 (ppc_linux_thread_exit): Remove.
9170 (ppc_linux_nat_target::stopped_data_address): Change to...
9171 (ppc_linux_nat_target::low_stopped_data_address): This. Add
9172 comment, use m_dreg_interface and m_thread_hw_breakpoints.
9173 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
9174 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
9175 comment. Call low_stopped_data_address.
9176 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
9177 m_dreg_interface.
9178 (ppc_linux_nat_target::masked_watch_num_registers): Use
9179 m_dreg_interface.
9180 (ppc_linux_nat_target::copy_thread_dreg_state)
9181 (ppc_linux_nat_target::mark_thread_stale)
9182 (ppc_linux_nat_target::mark_debug_registers_changed)
9183 (ppc_linux_nat_target::register_hw_breakpoint)
9184 (ppc_linux_nat_target::clear_hw_breakpoint)
9185 (ppc_linux_nat_target::register_wp)
9186 (ppc_linux_nat_target::clear_wp)
9187 (ppc_linux_nat_target::init_arch_lwp_info)
9188 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9189 (_initialize_ppc_linux_nat): Remove observer callback.
9190
4db10d8f
PFC
91912020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9192
9193 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9194 (ppc_linux_nat_target::auxv_parse)
9195 (ppc_linux_nat_target::read_description)
9196 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9197 Move up.
9198
1310c1b0
PFC
91992020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9200
9201 * linux-nat.h (low_new_clone): New method.
9202 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9203
69b037c3
SM
92042020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9205
9206 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9207 (dbx_expand_psymtab): ... this.
9208 (start_psymtab): Update.
9209 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9210 (mdebug_expand_psymtab): ... this.
9211 (parse_partial_symbols): Update.
9212 (new_psymtab): Update.
9213 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9214 (xcoff_expand_psymtab): ... this.
9215 (xcoff_start_psymtab): Update.
9216
48993951
SM
92172020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9218
9219 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9220 <expand_dependencies>: ... this.
9221 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9222 (partial_symtab::expand_dependencies): ... this.
9223 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9224 Update.
9225 (dwarf2_psymtab::expand_psymtab): Update.
9226 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9227 * mdebugread.c (psymtab_to_symtab_1): Update.
9228 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9229
3ad83046
SM
92302020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9231
9232 * psympriv.h (discard_psymtab): Remove.
9233 * dbxread.c (dbx_end_psymtab): Update.
9234 * xcoffread.c (xcoff_end_psymtab): Update.
9235
4d1b9ab6
TT
92362020-03-28 Tom Tromey <tom@tromey.com>
9237
9238 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9239 comment.
9240
f1749218
TT
92412020-03-28 Tom Tromey <tom@tromey.com>
9242
9243 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9244
ebea7626
HD
92452020-03-27 Hannes Domani <ssbssa@yahoo.de>
9246
9247 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9248
a879b4d5
JB
92492020-03-26 John Baldwin <jhb@FreeBSD.org>
9250
9251 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9252
0826b30a
TT
92532020-03-26 Tom Tromey <tom@tromey.com>
9254
9255 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9256 (mark_common_block_symbol_computed, read_tag_string_type)
9257 (attr_to_dynamic_prop, read_subrange_type): Update.
9258 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9259 to be methods on struct attribute.
9260 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9261 (read_call_site_scope, partial_die_info::read)
9262 (partial_die_info::read, lookup_die_type, follow_die_ref):
9263 Update.
9264 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9265 from dwarf2_get_ref_die_offset.
9266 (attribute::constant_value): New method, from
9267 dwarf2_get_attr_constant_value.
9268 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9269 Declare method.
9270 <constant_value>: New method.
9271
2b2558bf
TT
92722020-03-26 Tom Tromey <tom@tromey.com>
9273
9274 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9275 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9276 (dwarf_type_encoding_name): Move to stringify.c.
9277 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9278 * dwarf2/stringify.c: New file.
9279 * dwarf2/stringify.h: New file.
9280
eeb64781
TT
92812020-03-26 Tom Tromey <tom@tromey.com>
9282
9283 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9284 Rewrite.
9285
a39fdb41
TT
92862020-03-26 Tom Tromey <tom@tromey.com>
9287
9288 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9289 methods.
9290 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9291 (lookup_ranges_base): Likewise.
9292 (read_cutu_die_from_dwo, read_full_die_1): Update.
9293
436c571c
TT
92942020-03-26 Tom Tromey <tom@tromey.com>
9295
9296 * dwarf2/read.c (read_import_statement, read_file_scope)
9297 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9298 (read_lexical_block_scope, read_call_site_scope)
9299 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9300 (handle_struct_member_die, process_structure_scope)
9301 (update_enumeration_type_from_children)
9302 (process_enumeration_scope, read_array_type, read_common_block)
9303 (read_namespace, read_module, read_subroutine_type): Update.
9304 (sibling_die): Remove.
9305
052c8bb8
TT
93062020-03-26 Tom Tromey <tom@tromey.com>
9307
9308 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9309 (build_type_psymtabs_reader, read_structure_type)
9310 (read_enumeration_type, read_full_die_1): Update.
9311 (dwarf2_attr_no_follow): Move to die.h.
9312 * dwarf2/die.h (struct die_info) <attr>: New method.
9313
2b24b6e4
TT
93142020-03-26 Tom Tromey <tom@tromey.com>
9315
9316 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9317 <base_address>: Now an optional.
9318 (dwarf2_find_base_address, dwarf2_rnglists_process)
9319 (dwarf2_ranges_process, fill_in_loclist_baton)
9320 (dwarf2_symbol_mark_computed): Update.
9321
c2d50fd0
TT
93222020-03-26 Tom Tromey <tom@tromey.com>
9323
9324 * dwarf2/read.c (struct die_info): Move to die.h.
9325 * dwarf2/die.h: New file.
9326
0df7ad3a
TT
93272020-03-26 Tom Tromey <tom@tromey.com>
9328
9329 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9330 * dwarf2/read.c
9331 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9332 Move to line-header.c.
9333 (read_checked_initial_length_and_offset, read_formatted_entries):
9334 Likewise.
9335 (dwarf_decode_line_header): Split into two.
9336 * dwarf2/line-header.c
9337 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9338 Move from read.c.
9339 (read_checked_initial_length_and_offset, read_formatted_entries):
9340 Likewise.
9341 (dwarf_decode_line_header): New function, split from read.c.
9342
86c0bb4c
TT
93432020-03-26 Tom Tromey <tom@tromey.com>
9344
9345 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9346 Declare method.
9347 * dwarf2/read.c (read_attribute_value): Update.
9348 (dwarf2_per_objfile::read_line_string): Rename from
9349 read_indirect_line_string.
9350 (read_formatted_entries): Update.
9351
2ef46c2f
TT
93522020-03-26 Tom Tromey <tom@tromey.com>
9353
9354 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9355 variable.
9356
4f9c1eda
TT
93572020-03-26 Tom Tromey <tom@tromey.com>
9358
9359 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9360 const.
9361 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9362 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9363 parameter const.
9364
5a0e026f
TT
93652020-03-26 Tom Tromey <tom@tromey.com>
9366
9367 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9368 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9369 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9370 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9371
8844c11b
TT
93722020-03-26 Tom Tromey <tom@tromey.com>
9373
9374 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9375 file_names_size, file_full_name, file_file_name>: Use const.
9376 <file_name_at, file_names>: Add const overload.
9377 * dwarf2/line-header.c (line_header::file_file_name)
9378 (line_header::file_full_name): Update.
9379
c90ec28a
TT
93802020-03-26 Tom Tromey <tom@tromey.com>
9381
9382 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9383 (macro_start_file, consume_improper_spaces)
9384 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9385 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9386 (dwarf_decode_macros): Move to macro.c.
9387 * dwarf2/macro.c: New file.
9388 * dwarf2/macro.h: New file.
9389 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9390
4f44ae6c
TT
93912020-03-26 Tom Tromey <tom@tromey.com>
9392
9393 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9394 method.
9395 * dwarf2/section.c: New method. From
9396 read_indirect_string_at_offset_from.
9397 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9398 (read_indirect_string_at_offset_from): Move to section.c.
9399 (read_indirect_string_at_offset): Rewrite.
9400 (read_indirect_line_string_at_offset): Remove.
9401 (read_indirect_string, read_indirect_line_string)
9402 (dwarf_decode_macro_bytes): Update.
9403
a0194fa8
TT
94042020-03-26 Tom Tromey <tom@tromey.com>
9405
9406 * dwarf2/section.h (struct dwarf2_section_info)
9407 <overload_complaint>: Declare.
9408 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9409 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9410 Rename from dwarf2_section_buffer_overflow_complaint.
9411 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9412 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9413
3d27bbdb
TT
94142020-03-26 Tom Tromey <tom@tromey.com>
9415
9416 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9417 Declare.
9418 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9419 Move from read.c.
9420 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9421 to section.c.
9422
9eac9650
TT
94232020-03-26 Tom Tromey <tom@tromey.com>
9424
9425 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9426
bf80d710
TT
94272020-03-26 Tom Tromey <tom@tromey.com>
9428
9429 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9430 "builder".
9431 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9432 parameter.
9433 (dwarf_decode_macros): Update.
9434
0314b390
TT
94352020-03-26 Tom Tromey <tom@tromey.com>
9436
9437 * dwarf2/read.c (read_attribute_value): Update.
9438 (read_indirect_string_from_dwz): Move to dwz.c; change into
9439 method.
9440 (dwarf_decode_macro_bytes): Update.
9441 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9442 * dwarf2/dwz.c: New file.
9443 * Makefile.in (COMMON_SFILES): Add dwz.c.
9444
9fda78b6
TT
94452020-03-26 Tom Tromey <tom@tromey.com>
9446
9447 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9448 * dwarf2/read.c: Add include.
9449 * dwarf2/index-write.c: Add include.
9450 * dwarf2/index-cache.c: Add include.
9451 * dwarf2/dwz.h: New file.
9452
33aa3c10
TT
94532020-03-25 Tom Tromey <tom@tromey.com>
9454
9455 * compile/compile-object-load.c (get_out_value_type): Mention
9456 correct symbol name in error message.
9457
d503b685
HD
94582020-03-25 Hannes Domani <ssbssa@yahoo.de>
9459
9460 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9461
7b1eff95
TV
94622020-03-25 Tom de Vries <tdevries@suse.de>
9463
9464 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9465 * symmisc.c (dump_symtab_1): Print user and includes fields.
9466 (maintenance_info_symtabs): Same.
9467
dd895392
AB
94682020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9469
9470 PR gdb/25534
9471 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9472 (riscv_regcache_cooked_write): New function.
9473 (riscv_push_dummy_call): Use new function.
9474 (riscv_return_value): Likewise.
9475
5ab2fbf1
SM
94762020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9477
9478 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9479 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9480 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9481 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9482 * infrun.c (follow_fork): Likewise.
9483 (follow_fork_inferior): Likewise.
9484 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9485 * linux-nat.h (class linux_nat_target): Likewise.
9486 * remote.c (class remote_target) <follow_fork>: Likewise.
9487 (remote_target::follow_fork): Likewise.
9488 * target-delegates.c: Re-generate.
9489 * target.c (default_follow_fork): Likewise.
9490 (target_follow_fork): Likewise.
9491 * target.h (struct target_ops) <follow_fork>: Likewise.
9492 (target_follow_fork): Likewise.
9493
a64fafb5
TV
94942020-03-24 Tom de Vries <tdevries@suse.de>
9495
9496 * psymtab.c (maintenance_info_psymtabs): Print user field.
9497
fe26d3a3
TT
94982020-03-20 Tom Tromey <tromey@adacore.com>
9499
9500 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9501 const.
9502 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9503 const.
9504
c884cc46
SM
95052020-03-20 Simon Marchi <simon.marchi@efficios.com>
9506
9507 * ptrace.m4: Don't check for ptrace declaration.
9508 * config.in: Re-generate.
9509 * configure: Re-generate.
9510 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9511 not defined.
9512
1ff700c2
KR
95132020-03-20 Kamil Rytarowski <n54@gmx.com>
9514
9515 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9516 `PTRACE_TYPE_RET'.
9517 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9518 * sparc-nat.c (gdb_ptrace): Likewise.
9519 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9520
f7d4f0b1
TT
95212020-03-20 Tom Tromey <tromey@adacore.com>
9522
9523 * c-exp.y (lex_one_token): Fix assert.
9524
f67210ff
TT
95252020-03-20 Tom Tromey <tromey@adacore.com>
9526
9527 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9528 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9529 strncpy call.
9530
1773be9e
TT
95312020-03-20 Tom Tromey <tromey@adacore.com>
9532
9533 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9534
70304be9
TT
95352020-03-20 Tom Tromey <tromey@adacore.com>
9536
9537 * ada-valprint.c (print_variant_part): Remove parameters; switch
9538 to value-based API.
9539 (print_field_values): Likewise.
9540 (ada_val_print_struct_union): Likewise.
9541 (ada_value_print_1): Update.
9542
9faa006d
KR
95432020-03-20 Kamil Rytarowski <n54@gmx.com>
9544
9545 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9546 nbsd_nat_target instead of inf_ptrace_target.
9547 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9548 nbsd_nat_target.
9549
4a90f062
KR
95502020-03-20 Kamil Rytarowski <n54@gmx.com>
9551
9552 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9553 it to the ptrace call.
9554 * (store_registers): Likewise.
9555
95562020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
9557
9558 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9559 it to the ptrace call.
9560 * (store_registers): Likewise.
9561
2d07da27
LM
95622020-03-19 Luis Machado <luis.machado@linaro.org>
9563
9564 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9565 valid, fetch vg value from ptrace.
9566
f09db380
KR
95672020-03-19 Kamil Rytarowski <n54@gmx.com>
9568 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9569 * inf-ptrace.c: Likewise.
9570 * (gdb_ptrace): Add.
9571 * (inf_ptrace_target::resume): Update.
9572 * (inf_ptrace_target::xfer_partial): Likewise.
9573 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9574 * (inf_ptrace_peek_poke): Update.
9575
fcc7376e
KR
95762020-03-19 Kamil Rytarowski <n54@gmx.com>
9577
9578 * x86-bsd-nat.c (gdb_ptrace): New.
9579 * (x86bsd_dr_set): Add new argument `ptid'.
9580 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9581 x86bsd_dr_set_addr): Update.
9582
cada5fc9
AB
95832020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9584
9585 * remote.c (remote_target::process_stop_reply): Handle events for
9586 all threads differently.
9587
19a2740f
AB
95882020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9589
9590 * completer.c (completion_tracker::remove_completion): Define new
9591 function.
9592 * completer.h (completion_tracker::remove_completion): Declare new
9593 function.
9594 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9595 when adding a C++ function symbol.
9596
724fd9ba
AB
95972020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9598
9599 * completer.c (completion_tracker::completion_hash_entry): Define
9600 new class.
9601 (advance_to_filename_complete_word_point): Call
9602 recompute_lowest_common_denominator.
9603 (completion_tracker::completion_tracker): Call discard_completions
9604 to setup the hash table.
9605 (completion_tracker::discard_completions): Allow for being called
9606 from the constructor, pass new equal function, and element deleter
9607 when constructing the hash table. Initialise new class member
9608 variables.
9609 (completion_tracker::maybe_add_completion): Remove use of
9610 m_entries_vec, and store more information into m_entries_hash.
9611 (completion_tracker::recompute_lcd_visitor): New function, most
9612 content taken from...
9613 (completion_tracker::recompute_lowest_common_denominator):
9614 ...here, this now just visits each item in the hash calling the
9615 above visitor.
9616 (completion_tracker::build_completion_result): Remove use of
9617 m_entries_vec, call recompute_lowest_common_denominator.
9618 * completer.h (completion_tracker::have_completions): Remove use
9619 of m_entries_vec.
9620 (completion_tracker::completion_hash_entry): Declare new class.
9621 (completion_tracker::recompute_lowest_common_denominator): Change
9622 function signature.
9623 (completion_tracker::recompute_lcd_visitor): Declare new function.
9624 (completion_tracker::m_entries_vec): Delete.
9625 (completion_tracker::m_entries_hash): Initialize to NULL.
9626 (completion_tracker::m_lowest_common_denominator_valid): New
9627 member variable.
9628 (completion_tracker::m_lowest_common_denominator_max_length): New
9629 member variable.
9630
5a82b8a1
KR
96312020-03-17 Kamil Rytarowski <n54@gmx.com>
9632
9633 * regformats/regdef.h: Put reg in gdb namespace.
9634
fb516a69
KR
96352020-03-17 Kamil Rytarowski <n54@gmx.com>
9636
9637 * i386-bsd-nat.c (gdb_ptrace): New.
9638 * (i386bsd_fetch_inferior_registers,
9639 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9640 * (i386bsd_fetch_inferior_registers,
9641 i386bsd_store_inferior_registers) Use gdb_ptrace.
9642
1c0aa1fb
KR
96432020-03-17 Kamil Rytarowski <n54@gmx.com>
9644
9645 * amd64-bsd-nat.c (gdb_ptrace): New.
9646 * (amd64bsd_fetch_inferior_registers,
9647 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9648 * (amd64bsd_fetch_inferior_registers,
9649 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9650
5ccd2fb7
KR
96512020-03-17 Kamil Rytarowski <n54@gmx.com>
9652
9653 * user-regs.c (user_reg::read): Rename to...
9654 (user_reg::xread): ...this.
9655 * (append_user_reg): Rename argument `read' to `xread'.
9656 * (user_reg_add_builtin): Likewise.
9657 * (user_reg_add): Likewise.
9658 * (value_of_user_reg): Likewise.
9659
2108a63a
KR
96602020-03-17 Kamil Rytarowski <n54@gmx.com>
9661
9662 * sparc-nat.c (gdb_ptrace): New.
9663 * sparc-nat.c (sparc_fetch_inferior_registers)
9664 (sparc_store_inferior_registers) Remove obsolete comment.
9665 * sparc-nat.c (sparc_fetch_inferior_registers)
9666 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9667 * sparc-nat.c (sparc_fetch_inferior_registers)
9668 (sparc_store_inferior_registers) Use gdb_ptrace.
9669
a225c9a8
KR
96702020-03-17 Kamil Rytarowski <n54@gmx.com>
9671
9672 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9673 it to the ptrace call.
9674 * sh-nbsd-nat.c (store_registers): Likewise.
9675
98097623
KR
96762020-03-17 Kamil Rytarowski <n54@gmx.com>
9677
9678 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9679 nbsd_nat_target instead of inf_ptrace_target.
9680 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9681 nbsd_nat_target.
9682
9e38d619
KR
96832020-03-17 Kamil Rytarowski <n54@gmx.com>
9684
9685 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9686
a2ecbe9f
KR
96872020-03-17 Kamil Rytarowski <n54@gmx.com>
9688
9689 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9690 <sys/sysctl.h>.
9691 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9692
58990295
TV
96932020-03-17 Tom de Vries <tdevries@suse.de>
9694
9695 PR gdb/23710
9696 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9697 fields.
9698 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9699 fields.
9700 (process_imported_unit_die): Skip import of c++ CUs.
9701
771dd3a8
TT
97022020-03-16 Tom Tromey <tom@tromey.com>
9703
9704 * p-valprint.c (pascal_object_print_value): Initialize
9705 base_value.
9706
817a7585
AK
97072020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9708 Shahab Vahedi <shahab@synopsys.com>
9709
9710 * Makefile.in: Add arch/arc.o
9711 * configure.tgt: Likewise.
9712 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9713 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 9714 (arc_read_description): New function to cache target descriptions.
817a7585
AK
9715 * arc-tdep.h (arc_read_description): Add proto type.
9716 * arch/arc.c: New file.
9717 * arch/arc.h: Likewise.
9718 * features/Makefile: Replace old target descriptions with new.
9719 * features/arc-arcompact.c: Remove.
9720 * features/arc-arcompact.xml: Likewise.
9721 * features/arc-v2.c: Likewise
9722 * features/arc-v2.xml: Likewise
9723 * features/arc/aux-arcompact.xml: New file.
9724 * features/arc/aux-v2.xml: Likewise.
9725 * features/arc/core-arcompact.xml: Likewise.
9726 * features/arc/core-v2.xml: Likewise.
9727 * features/arc/aux-arcompact.c: Generate.
9728 * features/arc/aux-v2.c: Likewise.
9729 * features/arc/core-arcompact.c: Likewise.
9730 * features/arc/core-v2.c: Likewise.
9731 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9732
67430cd0
TT
97332020-03-16 Tom Tromey <tromey@adacore.com>
9734
9735 PR gdb/25663:
9736 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9737 putting value into bcache.
9738
30efb6c7
SM
97392020-03-16 Simon Marchi <simon.marchi@efficios.com>
9740
9741 PR gdb/21500
9742 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9743 to...
9744 (amd64_windows_init_abi_common): ... this. Don't set size of
9745 long type.
9746 (amd64_windows_init_abi): New function.
9747 (amd64_cygwin_init_abi): New function.
9748 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9749 the Cygwin OS ABI.
9750 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9751 comment.
9752
8db52437
SM
97532020-03-16 Simon Marchi <simon.marchi@efficios.com>
9754
9755 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9756 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9757 (pe_import_directory_entry): New struct type.
9758 (is_linked_with_cygwin_dll): New function.
9759 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9760 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9761 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9762
5982a56a
SM
97632020-03-16 Simon Marchi <simon.marchi@efficios.com>
9764
9765 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9766 i386_cygwin_core_osabi_sniffer.
9767
7a1998df
SM
97682020-03-16 Simon Marchi <simon.marchi@efficios.com>
9769
9770 * i386-cygwin-tdep.c: Rename to...
9771 * i386-windows-tdep.c: ... this.
9772 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9773 i386-windows-tdep.c.
9774 * configure.tgt: Likewise.
9775
053205cc
SM
97762020-03-16 Simon Marchi <simon.marchi@efficios.com>
9777
9778 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9779 * osabi.c (gdb_osabi_names): Add "Windows".
9780 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9781 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9782 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9783 i386_cygwin_osabi_sniffer.
9784 (_initialize_i386_cygwin_tdep): Register OS ABI
9785 GDB_OSABI_WINDOWS for i386.
9786 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9787 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9788 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9789 for x86-64.
9790 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9791 when the target matches '*-*-mingw*'.
9792
fe4b2ee6
SM
97932020-03-16 Simon Marchi <simon.marchi@efficios.com>
9794
9795 * defs.h (enum gdb_osabi): Move to...
9796 * osabi.h (enum gdb_osabi): ... here.
9797 * gdbarch.sh: Include osabi.h in gdbarch.h.
9798 * gdbarch.h: Re-generate.
9799
cb9b645d
SM
98002020-03-16 Simon Marchi <simon.marchi@efficios.com>
9801
9802 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9803 function.
9804 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9805
3293bbaf
TT
98062020-03-14 Tom Tromey <tom@tromey.com>
9807
9808 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9809 for C++.
9810 (c_type_print_modifier): Likewise. Add "language" parameter.
9811 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9812 (c_type_print_base_1): Update.
9813 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9814 constants.
9815 * type-stack.c (type_stack::insert): Handle tp_atomic and
9816 tp_restrict.
9817 (type_stack::follow_type_instance_flags): Likewise.
9818 (type_stack::follow_types): Likewise. Merge type-following code.
9819 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9820 (space_identifier, cv_with_space_id)
9821 (const_or_volatile_or_space_identifier_noopt)
9822 (const_or_volatile_or_space_identifier): Remove.
9823 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9824 rules.
9825 (ptr_operator, typebase): Update.
9826 (enum token_flag) <FLAG_C>: New constant.
9827 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9828 "_Atomic".
9829 (lex_one_token): Handle FLAG_C.
9830
154151a6
KR
98312020-03-14 Kamil Rytarowski <n54@gmx.com>
9832
9833 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9834 it to the ptrace call.
9835 * m68k-bsd-nat.c (store_registers): Likewise.
9836
bc107784
KR
98372020-03-14 Kamil Rytarowski <n54@gmx.com>
9838
9839 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9840 gdb_byte *.
9841 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9842 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9843 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9844
01a80117
KR
98452020-03-14 Kamil Rytarowski <n54@gmx.com>
9846
9847 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
9848 nbsd_nat_target instead of inf_ptrace_target.
9849 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9850 nbsd_nat_target.
9851
f90280ca
KR
98522020-03-14 Kamil Rytarowski <n54@gmx.com>
9853
9854 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
9855 register_t.
9856
6def66f1
KR
98572020-03-14 Kamil Rytarowski <n54@gmx.com>
9858
9859 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9860 it to the ptrace call.
9861 * alpha-bsd-nat.c (store_registers): Likewise.
9862
66eaca97
KR
98632020-03-14 Kamil Rytarowski <n54@gmx.com>
9864
9865 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
9866 includes.
9867 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
9868 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
9869 fill_fpregset): Likewise.
9870
4fed520b
KR
98712020-03-14 Kamil Rytarowski <n54@gmx.com>
9872
9873 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
9874 nbsd_nat_target instead of inf_ptrace_target.
9875 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9876 nbsd_nat_target.
9877
2190cf06
KR
98782020-03-14 Kamil Rytarowski <n54@gmx.com>
9879
9880 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
9881 register_t.
9882
75c56d3d
KR
98832020-03-14 Kamil Rytarowski <n54@gmx.com>
9884
9885 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
9886 it to the ptrace call.
9887 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
9888 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
9889 * arm-nbsd-nat.c (store_register): Likewise.
9890 * arm-nbsd-nat.c (store_regs): Likewise.
9891 * arm-nbsd-nat.c (store_fp_register): Likewise.
9892 * arm-nbsd-nat.c (store_fp_regs): Likewise.
9893
6018d381
KR
98942020-03-14 Kamil Rytarowski <n54@gmx.com>
9895
9896 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
9897 nbsd_nat_target instead of inf_ptrace_target.
9898 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9899 nbsd_nat_target.
9900
013f99f0
KR
99012020-03-14 Kamil Rytarowski <n54@gmx.com>
9902
9903 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9904 it to the ptrace call.
9905 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9906
12753073
KR
99072020-03-14 Kamil Rytarowski <n54@gmx.com>
9908
6227b330
KR
9909 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9910 it to the ptrace call.
9911 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9912
99132020-03-14 Kamil Rytarowski <n54@gmx.com>
9914
9915 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9916 gdb_byte *.
12753073
KR
9917 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9918
d5be5fa4
KR
99192020-03-14 Kamil Rytarowski <n54@gmx.com>
9920
9921 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9922 instead of inf_ptrace_target.
9923 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9924 nbsd_nat_target.
9925
8110f842
KR
99262020-03-14 Kamil Rytarowski <n54@gmx.com>
9927
9928 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9929 register_t.
9930
52feded7
KR
99312020-03-14 Kamil Rytarowski <n54@gmx.com>
9932
9933 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9934 register_t.
9935
25567eee
KR
99362020-03-14 Kamil Rytarowski <n54@gmx.com>
9937
9938 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9939 register_t.
9940
426a9c18
TT
99412020-03-13 Tom Tromey <tom@tromey.com>
9942
9943 * value.h (val_print): Don't declare.
9944 * valprint.h (val_print_array_elements)
9945 (val_print_scalar_formatted, generic_val_print): Don't declare.
9946 * valprint.c (generic_val_print_array): Take a struct value.
9947 (generic_val_print_ptr, generic_val_print_memberptr)
9948 (generic_val_print_bool, generic_val_print_int)
9949 (generic_val_print_char, generic_val_print_complex)
9950 (generic_val_print): Remove.
9951 (generic_value_print): Update.
9952 (do_val_print): Remove unused parameters. Don't call
9953 la_val_print.
9954 (val_print): Remove.
9955 (common_val_print): Update. Don't call value_check_printable.
9956 (val_print_scalar_formatted, val_print_array_elements): Remove.
9957 * rust-lang.c (rust_val_print): Remove.
9958 (rust_language_defn): Update.
9959 * p-valprint.c (pascal_val_print): Remove.
9960 (pascal_value_print_inner): Update.
9961 (pascal_object_print_val_fields, pascal_object_print_val):
9962 Remove.
9963 (pascal_object_print_static_field): Update.
9964 * p-lang.h (pascal_val_print): Don't declare.
9965 * p-lang.c (pascal_language_defn): Update.
9966 * opencl-lang.c (opencl_language_defn): Update.
9967 * objc-lang.c (objc_language_defn): Update.
9968 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9969 * m2-lang.h (m2_val_print): Don't declare.
9970 * m2-lang.c (m2_language_defn): Update.
9971 * language.h (struct language_defn) <la_val_print>: Remove.
9972 * language.c (unk_lang_value_print_inner): Rename. Change
9973 argument types.
9974 (unknown_language_defn, auto_language_defn): Update.
9975 * go-valprint.c (go_val_print): Remove.
9976 * go-lang.h (go_val_print): Don't declare.
9977 * go-lang.c (go_language_defn): Update.
9978 * f-valprint.c (f_val_print): Remove.
9979 * f-lang.h (f_value_print): Don't declare.
9980 * f-lang.c (f_language_defn): Update.
9981 * d-valprint.c (d_val_print): Remove.
9982 * d-lang.h (d_value_print): Don't declare.
9983 * d-lang.c (d_language_defn): Update.
9984 * cp-valprint.c (cp_print_value_fields)
9985 (cp_print_value_fields_rtti, cp_print_value): Remove.
9986 (cp_print_static_field): Update.
9987 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9988 (c_val_print_struct, c_val_print_union, c_val_print_int)
9989 (c_val_print_memberptr, c_val_print): Remove.
9990 * c-lang.h (c_val_print_array, cp_print_value_fields)
9991 (cp_print_value_fields_rtti): Don't declare.
9992 * c-lang.c (c_language_defn, cplus_language_defn)
9993 (asm_language_defn, minimal_language_defn): Update.
9994 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9995 (ada_val_print_enum): Take a struct value.
9996 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9997 (ada_val_print): Remove.
9998 (ada_value_print_1): Update.
9999 (printable_val_type): Remove.
10000 * ada-lang.h (ada_val_print): Don't declare.
10001 * ada-lang.c (ada_language_defn): Update.
10002
42331a1e
TT
100032020-03-13 Tom Tromey <tom@tromey.com>
10004
10005 * valprint.c (do_val_print): Update.
10006 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
10007 a struct value.
10008 (value_to_value_object_no_release): Declare.
10009 * python/py-value.c (value_to_value_object_no_release): New
10010 function.
10011 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
10012 struct value.
10013 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
10014 function.
10015 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
10016 a struct value.
10017 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
10018 Declare.
10019 (gdbscm_apply_val_pretty_printer): Take a struct value.
10020 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
10021 value.
10022 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
10023 value.
10024 * extension-priv.h (struct extension_language_ops)
10025 <apply_val_pretty_printer>: Take a struct value.
10026 * cp-valprint.c (cp_print_value): Create a struct value.
10027 (cp_print_value): Update.
10028
3a916a97
TT
100292020-03-13 Tom Tromey <tom@tromey.com>
10030
10031 * ada-valprint.c (print_field_values): Call common_val_print.
10032
b59eac37
TT
100332020-03-13 Tom Tromey <tom@tromey.com>
10034
10035 * ada-valprint.c (val_print_packed_array_elements): Remove
10036 bitoffset and val parameters. Call common_val_print.
10037 (ada_val_print_string): Remove offset, address, and original_value
10038 parameters.
10039 (ada_val_print_array): Update.
10040 (ada_value_print_array): New function.
10041 (ada_value_print_1): Call it.
10042
03371129
TT
100432020-03-13 Tom Tromey <tom@tromey.com>
10044
10045 * ada-valprint.c (ada_value_print): Use common_val_print.
10046
2e088f8b
TT
100472020-03-13 Tom Tromey <tom@tromey.com>
10048
10049 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
10050
39ef85a8
TT
100512020-03-13 Tom Tromey <tom@tromey.com>
10052
10053 * ada-valprint.c (ada_value_print_num): New function.
10054 (ada_value_print_1): Use it.
10055
b9fa6e07
TT
100562020-03-13 Tom Tromey <tom@tromey.com>
10057
10058 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
10059
416595d6
TT
100602020-03-13 Tom Tromey <tom@tromey.com>
10061
10062 * ada-valprint.c (ada_value_print_ptr): New function.
10063 (ada_value_print_1): Use it.
10064
5b5e15ec
TT
100652020-03-13 Tom Tromey <tom@tromey.com>
10066
10067 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
10068 call common_val_print.
10069 (ada_val_print_1): Update.
10070 (ada_value_print_1): New function.
10071 (ada_value_print_inner): Rewrite.
10072
fbf54e75
TT
100732020-03-13 Tom Tromey <tom@tromey.com>
10074
10075 * cp-valprint.c (cp_print_value_fields): Update.
10076 (cp_print_value): New function.
10077
64b653ca
TT
100782020-03-13 Tom Tromey <tom@tromey.com>
10079
10080 * m2-valprint.c (m2_value_print_inner): Use
10081 cp_print_value_fields.
10082 * cp-valprint.c (cp_print_value_fields): New function.
10083 * c-valprint.c (c_value_print_struct): New function.
10084 (c_value_print_inner): Use c_value_print_struct.
10085 * c-lang.h (cp_print_value_fields): Declare.
10086
6999f067
TT
100872020-03-13 Tom Tromey <tom@tromey.com>
10088
10089 * c-valprint.c (c_value_print_array): New function.
10090 (c_value_print_inner): Use it.
10091
ce80b8bd
TT
100922020-03-13 Tom Tromey <tom@tromey.com>
10093
10094 * c-valprint.c (c_value_print_memberptr): New function.
10095 (c_value_print_inner): Use it.
10096
2faac269
TT
100972020-03-13 Tom Tromey <tom@tromey.com>
10098
10099 * c-valprint.c (c_value_print_int): New function.
10100 (c_value_print_inner): Use it.
10101
da3e2c29
TT
101022020-03-13 Tom Tromey <tom@tromey.com>
10103
10104 * c-valprint.c (c_value_print_ptr): New function.
10105 (c_value_print_inner): Use it.
10106
50836231
TT
101072020-03-13 Tom Tromey <tom@tromey.com>
10108
10109 * c-valprint.c (c_value_print_inner): Rewrite.
10110
4f412b6e
TT
101112020-03-13 Tom Tromey <tom@tromey.com>
10112
10113 * valprint.c (generic_value_print_complex): New function.
10114 (generic_value_print): Use it.
10115
f5354008
TT
101162020-03-13 Tom Tromey <tom@tromey.com>
10117
10118 * valprint.c (generic_val_print_float): Don't call
10119 val_print_scalar_formatted.
10120 (generic_val_print, generic_value_print): Update.
10121
3eec3b05
TT
101222020-03-13 Tom Tromey <tom@tromey.com>
10123
10124 * valprint.c (generic_value_print_char): New function
10125 (generic_value_print): Use it.
10126
fdddfccb
TT
101272020-03-13 Tom Tromey <tom@tromey.com>
10128
10129 * valprint.c (generic_value_print_int): New function.
10130 (generic_value_print): Use it.
10131
6dde7521
TT
101322020-03-13 Tom Tromey <tom@tromey.com>
10133
10134 * valprint.c (generic_value_print_bool): New function.
10135 (generic_value_print): Use it.
10136
4112d2e6
TT
101372020-03-13 Tom Tromey <tom@tromey.com>
10138
10139 * valprint.c (generic_val_print_func): Simplify.
10140 (generic_val_print, generic_value_print): Update.
10141
65786af6
TT
101422020-03-13 Tom Tromey <tom@tromey.com>
10143
10144 * valprint.c (generic_val_print_flags): Remove.
10145 (generic_val_print, generic_value_print): Update.
10146 (val_print_type_code_flags): Add original_value parameter.
10147
40f3ce18
TT
101482020-03-13 Tom Tromey <tom@tromey.com>
10149
10150 * valprint.c (generic_val_print): Update.
10151 (generic_value_print): Update.
10152 * valprint.c (generic_val_print_enum): Don't call
10153 val_print_scalar_formatted.
10154
2a5b130b
TT
101552020-03-13 Tom Tromey <tom@tromey.com>
10156
10157 * valprint.c (generic_value_print): Call generic_value_print_ptr.
10158 * valprint.c (generic_value_print_ptr): New function.
10159
abc66ce9
TT
101602020-03-13 Tom Tromey <tom@tromey.com>
10161
10162 * valprint.c (generic_value_print): Rewrite.
10163
07a32858
TT
101642020-03-13 Tom Tromey <tom@tromey.com>
10165
10166 * p-valprint.c (pascal_object_print_value_fields)
10167 (pascal_object_print_value): New functions.
10168
64d64d3a
TT
101692020-03-13 Tom Tromey <tom@tromey.com>
10170
10171 * p-valprint.c (pascal_value_print_inner): Rewrite.
10172
6a95a1f5
TT
101732020-03-13 Tom Tromey <tom@tromey.com>
10174
10175 * f-valprint.c (f_value_print_innner): Rewrite.
10176
59fcdac6
TT
101772020-03-13 Tom Tromey <tom@tromey.com>
10178
10179 * m2-valprint.c (m2_print_unbounded_array): New overload.
10180 (m2_print_unbounded_array): Update.
10181 (m2_print_array_contents): Take a struct value.
10182 (m2_value_print_inner): Rewrite.
10183
d133c3e1
TT
101842020-03-13 Tom Tromey <tom@tromey.com>
10185
10186 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10187 (d_value_print_inner): New function.
10188 * d-lang.h (d_value_print_inner): Declare.
10189 * d-lang.c (d_language_defn): Use d_value_print_inner.
10190
23b0f06b
TT
101912020-03-13 Tom Tromey <tom@tromey.com>
10192
10193 * go-valprint.c (go_value_print_inner): New function.
10194 * go-lang.h (go_value_print_inner): Declare.
10195 * go-lang.c (go_language_defn): Use go_value_print_inner.
10196
5f56f7cb
TT
101972020-03-13 Tom Tromey <tom@tromey.com>
10198
10199 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10200 API.
10201 (rust_val_print): Rewrite.
10202 (rust_value_print_inner): New function, from rust_val_print.
10203 (rust_language_defn): Use rust_value_print_inner.
10204
26792ee0
TT
102052020-03-13 Tom Tromey <tom@tromey.com>
10206
10207 * ada-valprint.c (ada_value_print_inner): New function.
10208 * ada-lang.h (ada_value_print_inner): Declare.
10209 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10210
24051bbe
TT
102112020-03-13 Tom Tromey <tom@tromey.com>
10212
10213 * f-valprint.c (f_value_print_innner): New function.
10214 * f-lang.h (f_value_print_innner): Declare.
10215 * f-lang.c (f_language_defn): Use f_value_print_innner.
10216
c0941be6
TT
102172020-03-13 Tom Tromey <tom@tromey.com>
10218
10219 * p-valprint.c (pascal_value_print_inner): New function.
10220 * p-lang.h (pascal_value_print_inner): Declare.
10221 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10222
62c4663d
TT
102232020-03-13 Tom Tromey <tom@tromey.com>
10224
10225 * m2-valprint.c (m2_value_print_inner): New function.
10226 * m2-lang.h (m2_value_print_inner): Declare.
10227 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10228
62182190
TT
102292020-03-13 Tom Tromey <tom@tromey.com>
10230
10231 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10232 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10233 * c-valprint.c (c_value_print_inner): New function.
10234 * c-lang.h (c_value_print_inner): Declare.
10235 * c-lang.c (c_language_defn, cplus_language_defn)
10236 (asm_language_defn, minimal_language_defn): Use
10237 c_value_print_inner.
10238
1e592a8a
TT
102392020-03-13 Tom Tromey <tom@tromey.com>
10240
10241 * p-valprint.c (pascal_object_print_value_fields): Now static.
10242 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10243
7fe471e9
TT
102442020-03-13 Tom Tromey <tom@tromey.com>
10245
10246 * c-valprint.c (c_val_print_array): Simplify.
10247
d121c6ce
TT
102482020-03-13 Tom Tromey <tom@tromey.com>
10249
10250 * valprint.c (value_print_array_elements): New function.
10251 * valprint.h (value_print_array_elements): Declare.
10252
4dba70ee
TT
102532020-03-13 Tom Tromey <tom@tromey.com>
10254
10255 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10256 * mips-tdep.c (mips_print_register): Use
10257 value_print_scalar_formatted.
10258
4f9ae810
TT
102592020-03-13 Tom Tromey <tom@tromey.com>
10260
10261 * valprint.h (value_print_scalar_formatted): Declare.
10262 * valprint.c (value_print_scalar_formatted): New function.
10263
156bfec9
TT
102642020-03-13 Tom Tromey <tom@tromey.com>
10265
10266 * valprint.h (generic_value_print): Declare.
10267 * valprint.c (generic_value_print): New function.
10268
2b4e573d
TT
102692020-03-13 Tom Tromey <tom@tromey.com>
10270
10271 * valprint.c (do_val_print): Call la_value_print_inner, if
10272 available.
10273 * rust-lang.c (rust_language_defn): Update.
10274 * p-lang.c (pascal_language_defn): Update.
10275 * opencl-lang.c (opencl_language_defn): Update.
10276 * objc-lang.c (objc_language_defn): Update.
10277 * m2-lang.c (m2_language_defn): Update.
10278 * language.h (struct language_defn) <la_value_print_inner>: New
10279 member.
10280 * language.c (unknown_language_defn, auto_language_defn): Update.
10281 * go-lang.c (go_language_defn): Update.
10282 * f-lang.c (f_language_defn): Update.
10283 * d-lang.c (d_language_defn): Update.
10284 * c-lang.c (c_language_defn, cplus_language_defn)
10285 (asm_language_defn, minimal_language_defn): Update.
10286 * ada-lang.c (ada_language_defn): Update.
10287
a1f6a07c
TT
102882020-03-13 Tom Tromey <tom@tromey.com>
10289
10290 * c-valprint.c (c_value_print): Use common_val_print.
10291
410cf315
TT
102922020-03-13 Tom Tromey <tom@tromey.com>
10293
10294 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10295
72a45c93
TT
102962020-03-13 Tom Tromey <tom@tromey.com>
10297
10298 * f-valprint.c (f77_print_array_1, f_val_print): Use
10299 common_val_print.
10300
040f66bd
TT
103012020-03-13 Tom Tromey <tom@tromey.com>
10302
10303 * riscv-tdep.c (riscv_print_one_register_info): Use
10304 common_val_print.
10305
a6e05a6c
TT
103062020-03-13 Tom Tromey <tom@tromey.com>
10307
10308 * mi/mi-main.c (output_register): Use common_val_print.
10309
3444c526
TT
103102020-03-13 Tom Tromey <tom@tromey.com>
10311
10312 * infcmd.c (default_print_one_register_info): Use
10313 common_val_print.
10314
c2a44efe
TT
103152020-03-13 Tom Tromey <tom@tromey.com>
10316
10317 * valprint.h (common_val_print_checked): Declare.
10318 * valprint.c (common_val_print_checked): New function.
10319 * stack.c (print_frame_arg): Use common_val_print_checked.
10320
b0c26e99
TT
103212020-03-13 Tom Tromey <tom@tromey.com>
10322
10323 * valprint.c (do_val_print): New function, from val_print.
10324 (val_print): Use do_val_print.
10325 (common_val_print): Use do_val_print.
10326
ce3acbe9
TT
103272020-03-13 Tom Tromey <tom@tromey.com>
10328
10329 * valprint.c (value_print): Use scoped_value_mark.
10330
96c7f873
TV
103312020-03-13 Tom de Vries <tdevries@suse.de>
10332
10333 PR symtab/25646
10334 * psymtab.c (partial_symtab::partial_symtab): Don't set
10335 globals_offset and statics_offset. Push element onto
10336 current_global_psymbols and current_static_psymbols stacks.
10337 (concat): New function.
10338 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10339 element from current_global_psymbols and current_static_psymbols
10340 stacks. Concat popped elements to global_psymbols and
10341 static_symbols.
10342 (add_psymbol_to_list): Use current_global_psymbols and
10343 current_static_psymbols stacks.
10344 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10345 current_static_psymbols fields.
10346
6ba0a321
CB
103472020-03-12 Christian Biesinger <cbiesinger@google.com>
10348
10349 * corelow.c (sniff_core_bfd): Remove.
10350 (class core_target) <m_core_vec>: Remove.
10351 (core_target::core_target): Update.
10352 (core_file_fns): Remove.
10353 (deprecated_add_core_fns): Remove.
10354 (default_core_sniffer): Remove.
10355 (sniff_core_bfd): Remove.
10356 (default_check_format): Remove.
10357 (gdb_check_format): Remove.
10358 (core_target_open): Update.
10359 (core_target::get_core_register_section): Update.
10360 (get_core_registers_cb): Update.
10361 (core_target::fetch_registers): Update.
10362 * gdbcore.h (struct core_fns): Remove.
10363 (deprecated_add_core_fns): Remove.
10364 (default_core_sniffer): Remove.
10365 (default_check_format): Remove.
10366
227031b2
TT
103672020-03-12 Tom Tromey <tom@tromey.com>
10368
10369 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10370 CORE_ADDR.
10371 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10372
53807e9f
TT
103732020-03-12 Tom Tromey <tom@tromey.com>
10374
10375 * remote.c (remote_target::download_tracepoint)
10376 (remote_target::enable_tracepoint)
10377 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10378 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10379 sprintf_vma.
10380
64f25102
TT
103812020-03-12 Tom Tromey <tom@tromey.com>
10382
10383 * symfile-mem.c: Update CORE_ADDR size assert.
10384
272cd5a3
SM
103852020-03-12 Simon Marchi <simon.marchi@efficios.com>
10386
10387 * selftest.m4: Move to gdbsupport/.
10388 * acinclude.m4: Update path to selftest.m4.
10389
74cd3f9d
SM
103902020-03-12 Simon Marchi <simon.marchi@efficios.com>
10391
10392 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10393 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10394 gdbarch-selfselftests.c and selftest-arch.c.
10395 (SUBDIR_UNITTESTS_OBS): Rename to...
10396 (SELFTESTS_OBS): ... this.
10397 (COMMON_SFILES): Remove disasm-selftests.c and
10398 gdbarch-selftests.c.
10399 * configure.ac: Don't add selftest-arch.{c,o} to
10400 CONFIG_{SRCS,OBS}.
10401 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10402 preprocessor conditions.
10403
db6878ac
SM
104042020-03-12 Simon Marchi <simon.marchi@efficios.com>
10405
10406 * configure.ac: Don't source bfd/development.sh.
10407 * selftest.m4: Modify comment.
10408 * configure: Re-generate.
10409
4d696a5c
SM
104102020-03-12 Simon Marchi <simon.marchi@efficios.com>
10411
10412 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10413 not "true" or "false".
10414 * configure: Re-generate.
10415
8dd8e1c7
CB
104162020-03-12 Christian Biesinger <cbiesinger@google.com>
10417
10418 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10419 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10420 renamed to arm_nbsd_supply_gregset.
10421 (fetch_register): Update to call arm_nbsd_supply_gregset.
10422 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10423 (arm_netbsd_nat_target::fetch_registers): Update.
10424 (fetch_elfcore_registers): Removed.
10425 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10426 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10427 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10428 not require NetBSD system headers.
10429 (arm_nbsd_regset): New struct.
10430 (arm_nbsd_iterate_over_regset_sections): New function.
10431 (arm_netbsd_init_abi_common): Updated to call
10432 set_gdbarch_iterate_over_regset_sections.
10433 * arm-nbsd-tdep.h: New file.
10434
dd69bf7a
KB
104352020-03-11 Kevin Buettner <kevinb@redhat.com>
10436
10437 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10438 recursion.
10439
a0761e34
SM
104402020-03-11 Simon Marchi <simon.marchi@efficios.com>
10441
10442 * configure: Re-generate.
10443
e7a82140
TT
104442020-03-11 Tom Tromey <tromey@adacore.com>
10445
10446 * ada-typeprint.c (print_choices): Fix comment.
10447
dcc050c8
AB
104482020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10449
10450 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10451 previous item in the list, when the list has no items.
10452
1c33af77
TV
104532020-03-11 Tom de Vries <tdevries@suse.de>
10454
10455 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10456 PROP_LOCLIST handling code.
10457
8c95582d
AB
104582020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10459
10460 * buildsym-legacy.c (record_line): Pass extra parameter to
10461 record_line.
10462 * buildsym.c (buildsym_compunit::record_line): Take an extra
10463 parameter, reduce duplication in the line table, and record the
10464 is_stmt flag in the line table.
10465 * buildsym.h (buildsym_compunit::record_line): Add extra
10466 parameter.
10467 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10468 non-statement lines.
10469 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10470 this to the symtab builder.
10471 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10472 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10473 through to dwarf_record_line_1.
10474 * infrun.c (process_event_stop_test): When stepping, don't stop at
10475 a non-statement instruction, and only refresh the step info when
10476 we land in the middle of a line's range. Also add an extra
10477 comment.
10478 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10479 field.
10480 * record-btrace.c (btrace_find_line_range): Only record lines
10481 marked as is-statement.
10482 * stack.c (frame_show_address): Show the frame address if we are
10483 in a non-statement sal.
10484 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10485 (maintenance_print_one_line_table): Print a header for the is_stmt
10486 column, and include is_stmt information in the output.
10487 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10488 preference to non-statements.
10489 (find_pcs_for_symtab_line): Prefer is-statement entries.
10490 (find_line_common): Likewise.
10491 * symtab.h (struct linetable_entry): Add is_stmt field.
10492 (struct symtab_and_line): Likewise.
10493 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10494 arranging the line table.
10495
e4003a34
TV
104962020-03-07 Tom de Vries <tdevries@suse.de>
10497
10498 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10499 DIE.
10500
e8932576
TT
105012020-03-07 Tom Tromey <tom@tromey.com>
10502
10503 * valops.c (value_literal_complex): Remove obsolete comment.
10504 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10505 comment.
10506
29734269
SM
105072020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10508
10509 * infrun.h: Forward-declare thread_info.
10510 (set_step_info): Add thread_info parameter, add doc.
10511 * infrun.c (set_step_info): Add thread_info parameter, move doc
10512 to header.
10513 * infrun.c (process_event_stop_test): Pass thread to
10514 set_step_info call.
10515 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10516 set_step_info.
10517 (prepare_one_step): Add thread_info parameter, pass it to
10518 set_step_frame and prepare_one_step (recursive) call.
10519 (step_1): Pass thread to prepare_one_step call.
10520 (step_command_fsm::should_stop): Pass thread to
10521 prepare_one_step.
10522 (until_next_fsm): Pass thread to set_step_frame call.
10523 (finish_command): Pass thread to set_step_info call.
10524
b7d64b29
HD
105252020-03-06 Hannes Domani <ssbssa@yahoo.de>
10526
10527 * windows-tdep.c (windows_solib_create_inferior_hook):
10528 Check if inferior is running.
10529
09f2921c
TV
105302020-03-06 Tom de Vries <tdevries@suse.de>
10531
10532 * NEWS: Fix "the the".
10533 * ctfread.c: Same.
10534
fd760e79
TV
105352020-03-06 Tom de Vries <tdevries@suse.de>
10536
10537 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10538
20ea4a60
AB
105392020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10540
10541 * .dir-locals.el: Add a comment referencing the other copies of
10542 this file.
10543
0afbabf0
JB
105442020-03-05 John Baldwin <jhb@FreeBSD.org>
10545
10546 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10547 psargs.
10548
842806cb
TBA
105492020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10550
10551 * .gitattributes: New file.
10552
be1e3d3e
TT
105532020-03-04 Tom Tromey <tom@tromey.com>
10554
10555 * symmisc.c (print_symbol_bcache_statistics)
10556 (print_objfile_statistics): Update.
10557 * symfile.c (allocate_symtab): Use intern.
10558 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10559 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10560 macro_cache>: Remove.
10561 <string_cache>: New member.
10562 (struct objfile) <intern>: New methods.
10563 * elfread.c (elf_symtab_read): Use intern.
10564 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10565 (dwarf2_compute_name, dwarf2_physname)
10566 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10567 names.
10568 (guess_partial_die_structure_name): Update.
10569 (partial_die_info::fixup): Intern name.
10570 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10571 name.
10572 (dwarf2_name): Intern name. Update.
10573 * buildsym.c (buildsym_compunit::get_macro_table): Use
10574 string_cache.
10575
4e7625fd
TT
105762020-03-04 Tom Tromey <tom@tromey.com>
10577
10578 * jit.c (bfd_open_from_target_memory): Make "target" const.
10579 * corefile.c (gnutarget): Now const.
10580 * gdbcore.h (gnutarget): Now const.
10581
46f9f931
HD
105822020-03-04 Hannes Domani <ssbssa@yahoo.de>
10583
10584 * NEWS: Mention support for WOW64 processes.
10585 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10586 (amd64_windows_segment_register_p): Remove static.
10587 (_initialize_amd64_windows_nat): Update.
10588 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10589 * i386-windows-nat.c (context_offset): Update.
10590 (i386_mappings): Rename and remove static.
10591 (i386_windows_segment_register_p): Remove static.
10592 (_initialize_i386_windows_nat): Update.
10593 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10594 (STATUS_WX86_SINGLE_STEP): New macro.
10595 (EnumProcessModulesEx): New macro.
10596 (Wow64SuspendThread): New macro.
10597 (Wow64GetThreadContext): New macro.
10598 (Wow64SetThreadContext): New macro.
10599 (Wow64GetThreadSelectorEntry): New macro.
10600 (windows_set_context_register_offsets): Add static.
10601 (windows_set_segment_register_p): Likewise.
10602 (windows_add_thread): Adapt for WOW64 processes.
10603 (windows_fetch_one_register): Likewise.
10604 (windows_nat_target::fetch_registers): Likewise.
10605 (windows_store_one_register): Likewise.
10606 (display_selector): Likewise.
10607 (display_selectors): Likewise.
10608 (handle_exception): Likewise.
10609 (windows_continue): Likewise.
10610 (windows_nat_target::resume): Likewise.
10611 (windows_add_all_dlls): Likewise.
10612 (do_initial_windows_stuff): Likewise.
10613 (windows_nat_target::attach): Likewise.
10614 (windows_get_exec_module_filename): Likewise.
10615 (windows_nat_target::create_inferior): Likewise.
10616 (windows_xfer_siginfo): Likewise.
10617 (_initialize_loadable): Initialize Wow64SuspendThread,
10618 Wow64GetThreadContext, Wow64SetThreadContext,
10619 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10620 * windows-nat.h (windows_set_context_register_offsets):
10621 Remove declaration.
10622 (windows_set_segment_register_p): Likewise.
10623 (i386_windows_segment_register_p): Add declaration.
10624 (amd64_windows_segment_register_p): Likewise.
10625
440cf44e
LM
106262020-03-04 Luis Machado <luis.machado@linaro.org>
10627
10628 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10629 in "info registers" for AArch64/ARM.
10630
10631 The change caused "info registers" to not print GPR's.
10632
10633 gdb/ChangeLog:
10634
10635 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10636
10637 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10638 when reg->group is empty and reggroup is not.
10639
1009d92f
TT
106402020-03-03 Tom Tromey <tromey@adacore.com>
10641
10642 * dwarf2/frame.c (struct dwarf2_frame_cache)
10643 <checked_tailcall_bottom, entry_cfa_sp_offset,
10644 entry_cfa_sp_offset_p>: Remove members.
10645 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10646 (dwarf2_frame_prev_register): Don't call
10647 dwarf2_tailcall_sniffer_first.
10648 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10649 * frame-unwind.c (add_unwinder): New fuction.
10650 (frame_unwind_init): Use it. Add tailcall unwinder.
10651
5e5d66b6
AB
106522020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10653 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10654
10655 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10656 value should be printed as true.
10657
584cf46d
HD
106582020-03-03 Hannes Domani <ssbssa@yahoo.de>
10659
10660 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10661 (windows_init_abi): Set and use windows_so_ops.
10662
7b973adc
SDJ
106632020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10664
10665 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10666 when verifying if dealing with a convenience variable.
10667
bb7b70ab
LM
106682020-03-03 Luis Machado <luis.machado@linaro.org>
10669
10670 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10671
9822cb57
SM
106722020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10673
10674 * infrun.c (gdbarch_supports_displaced_stepping): New.
10675 (use_displaced_stepping): Break up conditions in smaller pieces.
10676 Use gdbarch_supports_displaced_stepping.
10677 (displaced_step_prepare_throw): Use
10678 gdbarch_supports_displaced_stepping.
10679
63e163f2
AB
106802020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10681
10682 * NEWS: Mention new behaviour of the history filename.
10683 * top.c (write_history_p): Add comment.
10684 (show_write_history_p): Add header comment, give a different
10685 message when history writing is on, but the history filename is
10686 empty.
10687 (history_filename): Add comment.
10688 (history_filename_empty): New function.
10689 (show_history_filename): Add header comment, give a different
10690 message when the filename is empty.
10691 (init_history): Compare history_filename against nullptr, and only
10692 read history if the filename is not empty.
10693 (set_history_filename): Add header comment, and only make
10694 non-empty filenames absolute.
10695 (init_main): Make the filename argument to 'set history filename'
10696 optional.
10697
81b86b97
CB
106982020-03-02 Christian Biesinger <cbiesinger@google.com>
10699
10700 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10701 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10702 (fetch_fp_register): Update.
10703 (fetch_fp_regs): Update.
10704 (store_fp_register): Update.
10705 (store_fp_regs): Update.
10706 (arm_netbsd_nat_target::read_description): New function.
10707 (fetch_elfcore_registers): Update.
10708
24ed6739
AB
107092020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10710
10711 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10712 general_thread if the stop reply is missing a thread-id.
10713 (remote_target::process_stop_reply): Use the first non-exited
10714 thread if the target didn't pass a thread-id.
10715 * infrun.c (do_target_wait): Move call to
10716 switch_to_inferior_no_thread to ....
10717 (do_target_wait_1): ... here.
10718
a84bb2a0
JT
107192020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10720
10721 * debuginfod-support.c: Include defs.h first.
10722
658dadf0
TV
107232020-02-28 Tom de Vries <tdevries@suse.de>
10724
10725 * symfile.c (set_initial_language): Use default language for lookup.
10726
4ebe4877
SM
107272020-02-28 Simon Marchi <simon.marchi@efficios.com>
10728
10729 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10730 reader variable, pass `this` to read_cutu_die_from_dwo.
10731
e5da1139
AM
107322020-02-27 Aaron Merey <amerey@redhat.com>
10733
10734 * source.c (open_source_file): Check for nullptr when computing
10735 srcpath.
10736
317f7127
TT
107372020-02-27 Tom Tromey <tromey@adacore.com>
10738
10739 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10740 member.
10741 (dwarf2_add_field): Don't update nfields.
10742 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10743
3104d9ee
AB
107442020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10745
10746 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10747 abs.
10748
b83470bf
TT
107492020-02-26 Tom Tromey <tom@tromey.com>
10750
10751 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10752 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10753 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10754 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10755 per_cu_data.
10756
edfe0a0c
TT
107572020-02-26 Tom Tromey <tom@tromey.com>
10758
10759 * dwarf2/index-write.c (psym_index_map): Change type.
10760 (add_address_entry_worker, write_one_signatured_type)
10761 (recursively_count_psymbols, recursively_write_psymbols)
10762 (class debug_names, psyms_seen_size, write_gdbindex)
10763 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10764
0d79cdc4
AM
107652020-02-26 Aaron Merey <amerey@redhat.com>
10766
10767 * Makefile.in: Handle optional debuginfod support.
10768 * NEWS: Update.
10769 * README: Add --with-debuginfod summary.
10770 * config.in: Regenerate.
10771 * configure: Regenerate.
10772 * configure.ac: Handle optional debuginfod support.
10773 * debuginfod-support.c: debuginfod helper functions.
10774 * debuginfod-support.h: Ditto.
10775 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10776 summary.
10777 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10778 when a dwz file cannot be found.
10779 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10780 debuginfo file cannot be found.
10781 * source.c (open_source_file): Query debuginfod servers when a
10782 source file cannot be found.
10783 * top.c (print_gdb_configuration): Include
10784 --{with,without}-debuginfod in the output.
10785
b65ce565
JG
107862020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10787
10788 * thread.c (thr_try_catch_cmd): Print thread name.
10789
d4c9a4f8
SM
107902020-02-26 Simon Marchi <simon.marchi@efficios.com>
10791
10792 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10793 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10794 dwarf2_fetch_die_type_sect_off): Move to...
10795 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10796 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10797 dwarf2_fetch_die_type_sect_off): ... here.
10798 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10799 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10800 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10801
0dce4280
TV
108022020-02-26 Tom de Vries <tdevries@suse.de>
10803
10804 PR gdb/25603
10805 * symfile.c (set_initial_language): Exit-early if
10806 language_mode == language_mode_manual.
10807
450a1bfc
SM
108082020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10809
10810 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10811 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10812 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10813
9e80cfa1
AB
108142020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10815
10816 * gdbtypes.c (create_array_type_with_stride): Handle negative
10817 array strides.
10818 * valarith.c (value_subscripted_rvalue): Likewise.
10819
09624f1f
LM
108202020-02-25 Luis Machado <luis.machado@linaro.org>
10821
10822 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10823
8cb5117c
SM
108242020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10825
10826 * loc.h (dwarf2_get_die_type): Move to...
10827 * read.h (dwarf2_get_die_type): ... here.
10828 * read.c (dwarf2_get_die_type): Move doc to header.
10829
c325c44e
JB
108302020-02-25 Joel Brobecker <brobecker@adacore.com>
10831
10832 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10833 'gnulib/Makefile.in' to the list.
10834
4ac93832
TT
108352020-02-24 Tom Tromey <tom@tromey.com>
10836
10837 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10838 Remove.
10839 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10840 XOBNEWVEC.
10841
197400e8
TT
108422020-02-24 Tom Tromey <tom@tromey.com>
10843
10844 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10845 New method.
10846 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10847 (dw2_do_instantiate_symtab, dw2_get_file_names)
10848 (build_type_psymtab_dependencies, load_full_type_unit): Update.
10849
76935768
TT
108502020-02-24 Tom Tromey <tom@tromey.com>
10851
10852 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
10853 make_scoped_restore.
10854 (dwarf2_psymtab::read_symtab): Don't clear
10855 reading_partial_symbols.
10856
a88ef40d
TV
108572020-02-24 Tom de Vries <tdevries@suse.de>
10858
10859 PR gdb/25592
10860 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10861
c9af6521
TV
108622020-02-24 Tom de Vries <tdevries@suse.de>
10863
10864 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
10865 commands layout next/prev/regs.
10866
5707a07a
TT
108672020-02-22 Tom Tromey <tom@tromey.com>
10868
10869 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
10870 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
10871
3b0fb49e
TT
108722020-02-22 Tom Tromey <tom@tromey.com>
10873
10874 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
10875
283be8bf
TT
108762020-02-22 Tom Tromey <tom@tromey.com>
10877
10878 * tui/tui-win.c (_initialize_tui_win): Add usage text.
10879 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
10880 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
10881 * tui/tui.c (_initialize_tui): Add usage text.
10882
ca793b96
TT
108832020-02-22 Tom Tromey <tom@tromey.com>
10884
10885 * tui/tui-win.c (tui_set_focus_command)
10886 (tui_set_win_height_command): Use error_no_arg.
10887 (_initialize_tui_win): Update help text.
10888 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
10889
432b5c40
TT
108902020-02-22 Tom Tromey <tom@tromey.com>
10891
10892 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
10893 * tui/tui-disasm.h (struct tui_disasm_window)
10894 <display_start_addr>: Declare.
10895 * tui/tui-source.h (struct tui_source_window)
10896 <display_start_addr>: Declare.
10897 * tui/tui-winsource.h (struct tui_source_window_base)
10898 <show_source_line, display_start_addr>: New methods.
10899 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
10900 Rename and move to protected section.
10901 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
10902 (tui_source_window_base::do_erase_source_content): Update.
10903 (tui_source_window_base::show_source_line): Now a method.
10904 (tui_source_window_base::show_source_content)
10905 (tui_source_window_base::tui_source_window_base)
10906 (tui_source_window_base::rerender)
10907 (tui_source_window_base::refill)
10908 (tui_source_window_base::do_scroll_horizontal)
10909 (tui_source_window_base::set_is_exec_point_at)
10910 (tui_source_window_base::update_breakpoint_info)
10911 (tui_source_window_base::update_exec_info): Update.
10912 * tui/tui-source.c (tui_source_window::set_contents)
10913 (tui_source_window::showing_source_p)
10914 (tui_source_window::do_scroll_vertical)
10915 (tui_source_window::location_matches_p)
10916 (tui_source_window::line_is_displayed): Update.
10917 (tui_source_window::display_start_addr): New method.
10918 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10919 (tui_disasm_window::do_scroll_vertical)
10920 (tui_disasm_window::location_matches_p): Update.
10921 (tui_disasm_window::display_start_addr): New method.
10922
01b1af32
TT
109232020-02-22 Tom Tromey <tom@tromey.com>
10924
10925 * NEWS: Add entry for gdb.register_window_type.
10926 * tui/tui-layout.h (window_factory): New typedef.
10927 (tui_register_window): Declare.
10928 * tui/tui-layout.c (saved_tui_windows): New global.
10929 (tui_apply_current_layout): Use it.
10930 (tui_register_window): New function.
10931 * python/python.c (do_start_initialization): Call
10932 gdbpy_initialize_tui.
10933 (python_GdbMethods): Add "register_window_type" function.
10934 * python/python-internal.h (gdbpy_register_tui_window)
10935 (gdbpy_initialize_tui): Declare.
10936 * python/py-tui.c: New file.
10937 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10938
fc96d20b
TT
109392020-02-22 Tom Tromey <tom@tromey.com>
10940
10941 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10942
935c78c0
TT
109432020-02-22 Tom Tromey <tom@tromey.com>
10944
10945 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10946 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10947 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10948 (tui_set_win_focus_to): Move from tui-win.c.
10949
0240c8f1
TT
109502020-02-22 Tom Tromey <tom@tromey.com>
10951
10952 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10953 functions.
10954 (known_window_types): New global.
10955 (tui_get_window_by_name): Reimplement.
10956 (initialize_known_windows): New function.
10957 (validate_window_name): Rewrite.
10958 (_initialize_tui_layout): Call initialize_known_windows.
10959
fdb01f0c
TT
109602020-02-22 Tom Tromey <tom@tromey.com>
10961
10962 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10963 Remove constants.
10964 * tui/tui-winsource.h (struct tui_source_window_base)
10965 <tui_source_window_base>: Remove parameter.
10966 * tui/tui-winsource.c
10967 (tui_source_window_base::tui_source_window_base): Remove
10968 parameter.
10969 (tui_source_window_base::refill): Update.
10970 * tui/tui-stack.h (struct tui_locator_window)
10971 <tui_locator_window>: Update.
10972 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10973 Default the constructor.
10974 * tui/tui-regs.h (struct tui_data_item_window)
10975 <tui_data_item_window>: Default the constructor.
10976 (struct tui_data_window) <tui_data_window>: Likewise.
10977 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10978 Default the constructor.
10979 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10980 Default the constructor.
10981 <type>: Remove.
10982 (struct tui_win_info) <tui_win_info>: Default the constructor.
10983 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10984 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10985 Default the constructor.
10986
865a5aec
TT
109872020-02-22 Tom Tromey <tom@tromey.com>
10988
10989 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10990 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10991 * tui/tui-win.c (tui_resize_all): Don't call
10992 tui_delete_invisible_windows.
10993 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10994 done.
10995 (tui_set_layout): Update.
10996 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10997 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10998 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10999
e098d18c
TT
110002020-02-22 Tom Tromey <tom@tromey.com>
11001
11002 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
11003 correctly.
11004
eb9c8874
TT
110052020-02-22 Tom Tromey <tom@tromey.com>
11006
11007 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
11008
7eed1a8e
TT
110092020-02-22 Tom Tromey <tom@tromey.com>
11010
11011 * tui/tui-winsource.h (struct tui_source_window_iterator)
11012 <inner_iterator>: New etytypedef.
11013 <tui_source_window_iterator>: Take "end" parameter.
11014 <tui_source_window_iterator>: Take iterator.
11015 <operator*, advance>: Update.
11016 <m_iter>: Change type.
11017 <m_end>: New field.
11018 (struct tui_source_windows) <begin, end>: Update.
11019 * tui/tui-layout.c (tui_windows): New global.
11020 (tui_apply_current_layout): Clear tui_windows.
11021 (tui_layout_window::apply): Update tui_windows.
11022 * tui/tui-data.h (tui_windows): Declare.
11023 (all_tui_windows): Now inline function.
11024 (class tui_window_iterator, struct all_tui_windows): Remove.
11025
7c043ba6
TT
110262020-02-22 Tom Tromey <tom@tromey.com>
11027
11028 PR tui/17850:
11029 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
11030 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
11031 "height" argument.
11032 (class tui_layout_window) <get_sizes>: Likewise.
11033 (class tui_layout_split) <tui_layout_split>: Add "vertical"
11034 argument.
11035 <get_sizes>: Add "height" argument.
11036 <m_vertical>: New field.
11037 * tui/tui-layout.c (tui_layout_split::clone): Update.
11038 (tui_layout_split::get_sizes): Add "height" argument.
11039 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
11040 (tui_new_layout_command): Parse "-horizontal".
11041 (_initialize_tui_layout): Update help string.
11042 (tui_layout_split::specification): Add "-horizontal" when needed.
11043 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
11044 argument.
11045 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
11046 New methods.
11047
6bc56648
TT
110482020-02-22 Tom Tromey <tom@tromey.com>
11049
11050 * tui/tui-layout.h (enum tui_adjust_result): New.
11051 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
11052 (class tui_layout_window) <adjust_size>: Return
11053 tui_adjust_result. Rewrite.
11054 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
11055 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
11056
c22fef7e
TT
110572020-02-22 Tom Tromey <tom@tromey.com>
11058
11059 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
11060 parameter and return types.
11061 (class tui_layout_base) <specification>: Add "depth".
11062 (class tui_layout_window) <specification>: Add "depth".
11063 (class tui_layout_split) <specification>: Add "depth".
11064 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
11065 and return types.
11066 (tui_new_layout_command): Parse sub-layouts.
11067 (_initialize_tui_layout): Update help string.
11068 (tui_layout_window::specification): Add "depth".
11069 (add_layout_command): Update.
11070
ee325b61
TT
110712020-02-22 Tom Tromey <tom@tromey.com>
11072
11073 * NEWS: Add "tui new-layout" item.
11074 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
11075 Add new-layout command to help text.
11076 (validate_window_name): New function.
11077 (tui_new_layout_command): New function.
11078 (_initialize_tui_layout): Register "new-layout".
11079 (tui_layout_window::specification): New method.
11080 (tui_layout_window::specification): New method.
11081 * tui/tui-layout.h (class tui_layout_base) <specification>: New
11082 method.
11083 (class tui_layout_window) <specification>: New method.
11084 (class tui_layout_split) <specification>: New method.
11085
416eb92d
TT
110862020-02-22 Tom Tromey <tom@tromey.com>
11087
11088 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
11089 * tui/tui-win.c (window_name_completer): Update comment.
11090 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
11091 Declare method.
11092 (class tui_layout_window) <replace_window>: Likewise.
11093 (class tui_layout_split) <replace_window>: Likewise.
11094 (tui_set_layout): Don't declare.
11095 (tui_set_initial_layout): Declare function.
11096 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
11097 (asm_regs_layout): New globals.
11098 (tui_current_layout, show_layout): Remove.
11099 (tui_set_layout, tui_add_win_to_layout): Rewrite.
11100 (find_layout, tui_apply_layout): New function.
11101 (layout_completer): Remove.
11102 (tui_next_layout): Reimplement.
11103 (tui_next_layout_command): New function.
11104 (tui_set_initial_layout, tui_prev_layout_command): New functions.
11105 (tui_regs_layout): Reimplement.
11106 (tui_regs_layout_command): New function.
11107 (extract_display_start_addr): Rewrite.
11108 (next_layout, prev_layout): Remove.
11109 (tui_layout_window::replace_window): New method.
11110 (tui_layout_split::replace_window): New method.
11111 (destroy_layout): New function.
11112 (layout_list): New global.
11113 (add_layout_command): New function.
11114 (initialize_layouts): Update.
11115 (tui_layout_command): New function.
11116 (_initialize_tui_layout): Install "layout" commands.
11117 * tui/tui-data.h (enum tui_layout_type): Remove.
11118 (tui_current_layout): Don't declare.
11119
0dbc2fc7
TT
111202020-02-22 Tom Tromey <tom@tromey.com>
11121
11122 * tui/tui-regs.c (tui_reg_layout): Remove.
11123 (tui_reg_command): Use tui_regs_layout.
11124 * tui/tui-layout.h (tui_reg_command): Declare.
11125 * tui/tui-layout.c (tui_reg_command): New function.
11126
5afe342e
TT
111272020-02-22 Tom Tromey <tom@tromey.com>
11128
11129 * tui/tui.c (tui_rl_delete_other_windows): Call
11130 tui_remove_some_windows.
11131 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
11132 Declare method.
11133 (class tui_layout_window) <remove_windows>: New method.
11134 (class tui_layout_split) <remove_windows>: Declare.
11135 (tui_remove_some_windows): Declare.
11136 * tui/tui-layout.c (tui_remove_some_windows): New function.
11137 (tui_layout_split::remove_windows): New method.
11138
427326a8
TT
111392020-02-22 Tom Tromey <tom@tromey.com>
11140
11141 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
11142 * tui/tui-layout.h (tui_next_layout): Declare.
11143 * tui/tui-layout.c (tui_next_layout): New function.
11144
3fe12b6d
TT
111452020-02-22 Tom Tromey <tom@tromey.com>
11146
11147 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
11148 correct coordinates.
11149
59b8b5d2
TT
111502020-02-22 Tom Tromey <tom@tromey.com>
11151
11152 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
11153 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
11154 DATA_WIN case.
11155
2a3d458b
TT
111562020-02-22 Tom Tromey <tom@tromey.com>
11157
11158 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
11159 TUI_DISASM_WIN, not tui_win_list.
11160
3f0cbb04
TT
111612020-02-22 Tom Tromey <tom@tromey.com>
11162
11163 * valprint.c (generic_val_print_enum_1)
11164 (val_print_type_code_flags): Style member names.
11165 * rust-lang.c (val_print_struct, rust_print_enum)
11166 (rust_print_struct_def, rust_internal_print_type): Style member
11167 names.
11168 * p-valprint.c (pascal_object_print_value_fields): Style member
11169 names. Only call fprintf_symbol_filtered for static members.
11170 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
11171 * f-valprint.c (f_val_print): Style member names.
11172 * f-typeprint.c (f_type_print_base): Style member names.
11173 * cp-valprint.c (cp_print_value_fields): Style member names. Only
11174 call fprintf_symbol_filtered for static members.
11175 (cp_print_class_member): Style member names.
11176 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
11177 member names.
11178 * ada-valprint.c (ada_print_scalar): Style enum names.
11179 (ada_val_print_enum): Likewise.
11180 * ada-typeprint.c (print_enum_type): Style enum names.
11181
d4d947ae
TT
111822020-02-21 Tom Tromey <tom@tromey.com>
11183
11184 * psympriv.h (struct partial_symtab): Update comment.
11185
e94e944b
TT
111862020-02-21 Tom Tromey <tromey@adacore.com>
11187
11188 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11189 type is CORE_ADDR.
11190
1eb73179
TV
111912020-02-21 Tom de Vries <tdevries@suse.de>
11192
11193 PR gdb/25534
11194 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11195 if dependencies[i]->user != NULL.
11196
4f180d53
AT
111972020-02-21 Ali Tamur <tamur@google.com>
11198
11199 * dwarf2/read.c (dwarf2_name): Add null check.
11200
22b6cd70
TT
112012020-02-20 Tom Tromey <tom@tromey.com>
11202
11203 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11204 ">=", in binary search.
11205 (dwarf2_find_containing_comp_unit): New overload.
11206 (run_test): New self-test.
11207 (_initialize_dwarf2_read): Register new test.
11208
bd0cf5a6
NC
112092020-02-20 Nelson Chu <nelson.chu@sifive.com>
11210
11211 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11212 * riscv-tdep.h: Likewise.
11213 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11214 rv32-only CSR.
11215 * features/riscv/64bit-csr.xml: Regenerated.
11216
3f702acd
SDJ
112172020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11218 Tom Tromey <tom@tromey.com>
11219
11220 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11221 of 'fputc_unfiltered'.
11222 (putchar_unfiltered): Call 'fputc_unfiltered'.
11223 (fputc_unfiltered): Call 'fputs_unfiltered'.
11224
d13c7322
AB
112252020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11226
11227 * config.in: Regenerate.
11228 * configure: Regenerate.
11229 * configure.ac: Add --with-python-libdir option.
11230 * main.c: Use WITH_PYTHON_LIBDIR.
11231
869d8950
TT
112322020-02-19 Tom Tromey <tom@tromey.com>
11233
11234 * symtab.c (general_symbol_info::compute_and_set_names): Use
11235 obstack_strndup. Simplify call to symbol_set_demangled_name.
11236
298e9637
SM
112372020-02-19 Simon Marchi <simon.marchi@efficios.com>
11238
11239 * dwarf2/read.c (allocate_signatured_type_table,
11240 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11241 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11242 Remove objfile parameter, update all callers.
11243
08410482
DE
112442020-02-19 Doug Evans <dje@google.com>
11245
11246 PR rust/25535
11247 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11248 rust_enum_variant calculation.
11249
dfdeeca1
TT
112502020-02-19 Tom Tromey <tromey@adacore.com>
11251
11252 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11253
2ef5453b
TT
112542020-02-19 Tom Tromey <tromey@adacore.com>
11255
11256 * ada-lang.c (cache_symbol): Use obstack_strdup.
11257
9f1528a1
AB
112582020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11259
11260 * configure: Regenerate.
11261
d3c22fa8
TT
112622020-02-19 Tom Tromey <tromey@adacore.com>
11263
11264 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11265 NULL check.
11266
bf84f706
MR
112672020-02-19 Maciej W. Rozycki <macro@wdc.com>
11268
11269 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11270
d1c9b20f
AB
112712020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11272
11273 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11274 if GDBSERVER is not defined.
11275 (riscv_tdesc_cache): Likewise, also store const target_desc.
11276 (STATIC_IN_GDB): Define.
11277 (riscv_create_target_description): Update declaration with
11278 STATIC_IN_GDB.
11279 (riscv_lookup_target_description): New function, only define if
11280 GDBSERVER is not defined.
11281 * arch/riscv.h (riscv_create_target_description): Declare only
11282 when GDBSERVER is defined.
11283 (riscv_lookup_target_description): New declaration when GDBSERVER
11284 is not defined.
11285 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11286 (riscv_linux_read_features): ...this, and return
11287 riscv_gdbarch_features instead of target_desc.
11288 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11289 (riscv_linux_read_description): Rename to...
11290 (riscv_linux_read_features): ...this.
11291 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11292 Update to use riscv_gdbarch_features and
11293 riscv_lookup_target_description.
11294 * riscv-tdep.c (riscv_find_default_target_description): Use
11295 riscv_lookup_target_description instead of
11296 riscv_create_target_description.
11297
373d7ac0
SM
112982020-02-18 Simon Marchi <simon.marchi@efficios.com>
11299
11300 * valprint.c (generic_val_print_enum_1): When printing a flag
11301 enum with value 0 and there is no enumerator with value 0, print
11302 just "0" instead of "(unknown: 0x0)".
11303
b29a2df0
SM
113042020-02-18 Simon Marchi <simon.marchi@efficios.com>
11305
11306 * valprint.c (generic_val_print_enum_1): Print unknown part of
11307 flag enum in hex.
11308
6740f0cc
SM
113092020-02-18 Simon Marchi <simon.marchi@efficios.com>
11310
11311 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11312 flag enums to contain duplicate enumerators.
11313 * valprint.c (generic_val_print_enum_1): Update comment.
11314
edd45eb0
SM
113152020-02-18 Simon Marchi <simon.marchi@efficios.com>
11316
11317 * dwarf2/read.c: Include "count-one-bits.h".
11318 (update_enumeration_type_from_children): If an enumerator has
11319 multiple bits set, don't treat the enumeration as a "flag enum".
11320 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11321 of flag enums have 0 or 1 bit set.
11322
6d0cf446
BE
113232020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11324
11325 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11326 conversion.
11327 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11328 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11329 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11330 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11331 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11332
7001c1b7
SM
113332020-02-18 Simon Marchi <simon.marchi@efficios.com>
11334
11335 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11336
fdb61c6c
SM
113372020-02-14 Simon Marchi <simon.marchi@efficios.com>
11338
11339 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11340 displaced_step_closure_up.
11341 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11342 (struct displaced_step_closure_up):
11343 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11344 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11345 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11346 Likewise.
11347 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11348 * gdbarch.c, gdbarch.h: Re-generate.
11349 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11350 displaced_step_closure_up.
11351 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11352 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11353 * infrun.h (displaced_step_closure_up): New type alias.
11354 (struct displaced_step_inferior_state) <step_closure>: Change
11355 type to displaced_step_closure_up.
11356 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11357 displaced_step_closure_up.
11358 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11359
a4a38eb4
TT
113602020-02-14 Tom Tromey <tom@tromey.com>
11361
11362 * minidebug.c (gnu_debug_key): New global.
11363 (find_separate_debug_file_in_section): Use it.
11364
e8217e61
SM
113652020-02-14 Simon Marchi <simon.marchi@efficios.com>
11366
11367 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11368 std::unique_ptr.
11369 * gdbarch.c: Re-generate.
11370 * gdbarch.h: Re-generate.
11371 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11372 change.
11373 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11374 type to std::unique_ptr.
11375 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11376 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11377 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11378 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11379 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11380 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11381 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11382 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11383 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11384
d8d83535
SM
113852020-02-14 Simon Marchi <simon.marchi@efficios.com>
11386
11387 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11388 std::unique_ptr.
11389 (displaced_step_clear): Rename to...
11390 (displaced_step_reset): ... this. Just call displaced->reset ().
11391 (displaced_step_clear_cleanup): Rename to...
11392 (displaced_step_reset_cleanup): ... this.
11393 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11394 (displaced_step_fixup): Likewise.
11395 (resume_1): Likewise.
11396 (handle_inferior_event): Restore child's memory before calling
11397 displaced_step_fixup on the parent.
11398 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11399 to std::unique_ptr.
11400 <step_closure>: Change type to std::unique_ptr.
11401
5f661e03
SM
114022020-02-14 Simon Marchi <simon.marchi@efficios.com>
11403
11404 * arm-tdep.c: Include count-one-bits.h.
11405 (cleanup_block_store_pc): Use count_one_bits.
11406 (cleanup_block_load_pc): Use count_one_bits.
11407 (arm_copy_block_xfer): Use count_one_bits.
11408 (thumb2_copy_block_xfer): Use count_one_bits.
11409 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11410 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11411 (thumb_get_next_pcs_raw): Use count_one_bits.
11412 (arm_get_next_pcs_raw): Use count_one_bits_l.
11413 * arch/arm.c (bitcount): Remove.
11414 * arch/arm.h (bitcount): Remove.
11415
8084e579
TT
114162020-02-14 Tom Tromey <tromey@adacore.com>
11417
11418 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11419 Update.
11420 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11421 * dwarf2/loc.c (call_site_find_chain_1): Return
11422 unique_xmalloc_ptr.
11423 (call_site_find_chain): Likewise.
11424
258bf0ee
RB
114252020-02-14 Richard Biener <rguenther@suse.de>
11426
11427 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11428 on expression with division operators.
11429
f98a8458
AKS
114302020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11431
11432 * MAINTAINERS (Write After Approval): Adding myself.
11433
d1437c0e
TT
114342020-02-12 Tom Tromey <tom@tromey.com>
11435
11436 * event-loop.c (event_data, gdb_event, event_handler_func):
11437 Remove.
11438
3d4560f7
TT
114392020-02-12 Tom Tromey <tom@tromey.com>
11440
11441 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11442 (dwarf2_frame_objfile_data): Add comment.
11443 (find_comp_unit, set_comp_unit): New functions.
11444 (dwarf2_frame_find_fde): Use find_comp_unit.
11445 (dwarf2_build_frame_info): Use set_comp_unit.
11446
21982304
TT
114472020-02-12 Tom Tromey <tom@tromey.com>
11448
11449 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11450 (comp_unit): Don't initialize objfile.
11451 (execute_cfa_program): Add text_offset parameter.
11452 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11453 (dwarf2_frame_cache): Update.
11454 (dwarf2_build_frame_info): Don't set "objfile" member.
11455
4debb237
TT
114562020-02-12 Tom Tromey <tom@tromey.com>
11457
11458 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11459 (decode_frame_entry): Likewise.
11460 (dwarf2_build_frame_info): Update.
11461
0d404d44
TT
114622020-02-12 Tom Tromey <tom@tromey.com>
11463
11464 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11465 (decode_frame_entry_1): Use the comp_unit obstack.
11466
a7a3ae5c
TT
114672020-02-12 Tom Tromey <tom@tromey.com>
11468
11469 * dwarf2/frame.c (struct comp_unit): Add initializers and
11470 constructor.
11471 (dwarf2_frame_objfile_data): Store a comp_unit.
11472 (dwarf2_frame_find_fde): Update.
11473 (dwarf2_build_frame_info): Use "new".
11474
a9d65418
TT
114752020-02-12 Tom Tromey <tom@tromey.com>
11476
11477 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11478 (dwarf2_fde_table): Typedef for std::vector.
11479 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11480 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11481 (decode_frame_entry): Update.
11482 (dwarf2_build_frame_info): Use "new".
11483
7559c217
CB
114842020-02-12 Christian Biesinger <cbiesinger@google.com>
11485
11486 * arm-tdep.c (arm_gdbarch_init): Update.
11487 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11488 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11489 have_neon, is_m>: Change to bool.
11490
aeefc73c
CB
114912020-02-12 Christian Biesinger <cbiesinger@google.com>
11492
11493 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11494
d27b8e5f
TT
114952020-02-12 Tom Tromey <tom@tromey.com>
11496
11497 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11498
cd5900f3
HD
114992020-02-12 Hannes Domani <ssbssa@yahoo.de>
11500
11501 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11502 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11503
f056b22b
TT
115042020-02-11 Tom Tromey <tom@tromey.com>
11505
11506 * psymtab.h: Update comment.
11507
f92ff6b5
TT
115082020-02-11 Tom Tromey <tom@tromey.com>
11509
11510 * gdb_obstack.h (struct auto_obstack): Use
11511 DISABLE_COPY_AND_ASSIGN.
11512
3fd6912b
TT
115132020-02-11 Tom Tromey <tom@tromey.com>
11514
11515 * dwarf2/frame.h (struct objfile): Don't forward declare.
11516
69ed9b74
CB
115172020-02-11 Christian Biesinger <cbiesinger@google.com>
11518
11519 * cris-tdep.c (cris_supply_gregset): Change signature to match
11520 what struct regset expects.
11521 (cris_regset): New struct.
11522 (fetch_core_registers): Remove.
11523 (cris_iterate_over_regset_sections): New function.
11524 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11525 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11526
bda874f6
CB
115272020-02-11 Christian Biesinger <cbiesinger@google.com>
11528
11529 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11530 registers.
11531
754e1564
CB
115322020-02-11 Christian Biesinger <cbiesinger@google.com>
11533
11534 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11535
8ddd8e0e
SM
115362020-02-11 Simon Marchi <simon.marchi@efficios.com>
11537
11538 * configure: Re-generate.
11539
898e7f60
SM
115402020-02-11 Simon Marchi <simon.marchi@efficios.com>
11541
11542 * configure: Re-generate.
11543
58df732b
SM
115442020-02-11 Simon Marchi <simon.marchi@efficios.com>
11545
11546 * acinclude: Update warning.m4 path.
11547 * warning.m4: Move to gdbsupport.
11548
da5bd37e
TT
115492020-02-11 Tom Tromey <tromey@adacore.com>
11550
11551 * remote.c (remote_console_output): Update.
11552 * printcmd.c (printf_command): Update.
11553 * event-loop.c (gdb_wait_for_event): Update.
11554 * linux-nat.c (sigchld_handler): Update.
11555 * remote-sim.c (gdb_os_write_stdout): Update.
11556 (gdb_os_flush_stdout): Update.
11557 (gdb_os_flush_stderr): Update.
11558 (gdb_os_write_stderr): Update.
11559 * exceptions.c (print_exception): Update.
11560 * remote-fileio.c (remote_fileio_func_read): Update.
11561 (remote_fileio_func_write): Update.
11562 * tui/tui.c (tui_enable): Update.
11563 * tui/tui-interp.c (tui_interp::init): Update.
11564 * utils.c (init_page_info): Update.
11565 (putchar_unfiltered, fputc_unfiltered): Update.
11566 (gdb_flush): Update.
11567 (emit_style_escape): Update.
11568 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11569 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11570 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11571 (stderr_file::write): Update.
11572 (stderr_file::puts): Update.
11573 * ui-file.h (ui_file_isatty, ui_file_write)
11574 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11575 (ui_file_puts): Don't declare.
11576
85f0dd3c
TV
115772020-02-10 Tom de Vries <tdevries@suse.de>
11578
11579 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11580 sentinel to char *.
11581
2e927613
TV
115822020-02-09 Tom de Vries <tdevries@suse.de>
11583
11584 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11585 filename if it matches "<artificial>".
11586
6bafc845
HD
115872020-02-09 Hannes Domani <ssbssa@yahoo.de>
11588
11589 * windows-tdep.c (struct enum_value_name): New struct.
11590 (create_enum): New function.
11591 (windows_get_siginfo_type): Create and use enum types.
11592
7928d571
HD
115932020-02-09 Hannes Domani <ssbssa@yahoo.de>
11594
11595 * NEWS: Mention $_siginfo support for Windows.
11596 * windows-nat.c (handle_exception): Set siginfo_er.
11597 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11598 (windows_xfer_siginfo): New function.
11599 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11600 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11601 (init_windows_gdbarch_data): New function.
11602 (get_windows_gdbarch_data): New function.
11603 (windows_get_siginfo_type): New function.
11604 (windows_init_abi): Register windows_get_siginfo_type.
11605 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11606
6751ebae
TT
116072020-02-08 Tom Tromey <tom@tromey.com>
11608
11609 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11610 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11611 <keep>: Declare method.
11612 <m_keep>: Remove member.
11613 <~cutu_reader>: Remove.
11614 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11615 (cutu_reader::cutu_reader): Update.
11616 (cutu_reader::keep): Rename from ~cutu_reader.
11617 (process_psymtab_comp_unit, build_type_psymtabs_1)
11618 (process_skeletonless_type_unit, load_partial_comp_unit)
11619 (load_full_comp_unit, dwarf2_read_addr_index)
11620 (read_signatured_type): Update.
11621
135f5437
TT
116222020-02-08 Tom Tromey <tom@tromey.com>
11623
11624 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11625 "want_partial_unit" parameter.
11626 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11627 Inline check for DW_TAG_partial_unit.
11628 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11629
9f66ff1c
TT
116302020-02-08 Tom Tromey <tom@tromey.com>
11631
11632 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11633 read.c.
11634 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11635 read.c.
11636
c8a7a66f
TT
116372020-02-08 Tom Tromey <tom@tromey.com>
11638
11639 * dwarf2/read.c (read_address): Move to comp-unit.c.
11640 (dwarf2_rnglists_process, dwarf2_ranges_process)
11641 (read_attribute_value, dwarf_decode_lines_1)
11642 (var_decode_location, decode_locdesc): Update.
11643 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11644 read.c. Remove "cu" parameter.
11645 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11646 method.
11647
8266302d
TT
116482020-02-08 Tom Tromey <tom@tromey.com>
11649
11650 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11651 (read_indirect_line_string): Update.
11652 * dwarf2/comp-unit.c (read_offset): Remove.
11653 (read_comp_unit_head): Update.
11654 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11655 method.
11656 (read_offset): Don't declare.
11657
4057dfde
TT
116582020-02-08 Tom Tromey <tom@tromey.com>
11659
11660 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11661 * dwarf2/read.c (struct comp_unit_head): Move to
11662 dwarf2/comp-unit.h.
11663 (enum class rcuh_kind): Move to comp-unit.h.
11664 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11665 (read_comp_unit_head, error_check_comp_unit_head)
11666 (read_and_check_comp_unit_head): Move to comp-unit.c.
11667 (read_offset, dwarf_unit_type_name): Likewise.
11668 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11669 (cutu_reader::cutu_reader, read_call_site_scope)
11670 (find_partial_die, follow_die_offset): Update.
11671 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11672
24aa364d
TT
116732020-02-08 Tom Tromey <tom@tromey.com>
11674
11675 * dwarf2/read.c (read_offset_1): Move to leb.c.
11676 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11677 (dwarf_decode_macro_bytes): Update.
11678 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11679 * dwarf2/leb.h (read_offset): Declare.
11680
2c7d5afc
TT
116812020-02-08 Tom Tromey <tom@tromey.com>
11682
11683 * dwarf2/read.c (dwarf2_section_size): Remove.
11684 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11685 Update.
11686 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11687
4075cb26
TT
116882020-02-08 Tom Tromey <tom@tromey.com>
11689
11690 * dwarf2/read.c (read_initial_length): Move to leb.c.
11691 * dwarf2/leb.h (read_initial_length): Declare.
11692 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11693 handle_nonstd parameter.
11694 * dwarf2/frame.c (read_initial_length): Remove.
11695 (decode_frame_entry_1): Update.
11696
09ba997f
TT
116972020-02-08 Tom Tromey <tom@tromey.com>
11698
11699 * dwarf2/loc.c (dwarf2_find_location_expression)
11700 (dwarf_evaluate_loc_desc::get_tls_address)
11701 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11702 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11703 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11704 (dwarf2_compile_property_to_c)
11705 (dwarf2_loc_desc_get_symbol_read_needs)
11706 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11707 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11708 (loclist_describe_location, loclist_tracepoint_var_ref)
11709 (loclist_generate_c_location): Update.
11710 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11711 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11712 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11713 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11714 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11715 (dwarf2_per_cu_data::addr_size)
11716 (dwarf2_per_cu_data::ref_addr_size)
11717 (dwarf2_per_cu_data::text_offset)
11718 (dwarf2_per_cu_data::addr_type): Now methods.
11719 (per_cu_header_read_in): Make per_cu "const".
11720 (dwarf2_version): Remove.
11721 (dwarf2_per_cu_data::int_type): Now a method.
11722 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11723 (set_die_type, read_array_type, read_subrange_index_type)
11724 (read_tag_string_type, read_subrange_type): Update.
11725 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11726 offset_size, ref_addr_size, text_offset, addr_type, version,
11727 objfile, int_type, addr_sized_int_type>: Declare methods.
11728
96c738c0
TT
117292020-02-08 Tom Tromey <tom@tromey.com>
11730
11731 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11732 Move earlier.
11733
8fdd972c
TT
117342020-02-08 Tom Tromey <tom@tromey.com>
11735
11736 * dwarf2/read.h (dwarf_line_debug): Declare.
11737 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11738 * dwarf2/read.c: Move line_header code to new files.
11739 (dwarf_line_debug): No longer static.
11740 * dwarf2/line-header.c: New file.
11741 * dwarf2/line-header.h: New file.
11742
03075812
TT
117432020-02-08 Tom Tromey <tom@tromey.com>
11744
11745 * dwarf2/read.c (struct line_header) <file_full_name,
11746 file_file_name>: Return unique_xmalloc_ptr.
11747 (line_header::file_file_name): Update.
11748 (line_header::file_full_name): Update.
11749 (dw2_get_file_names_reader): Update.
11750 (macro_start_file): Update.
11751
bb822404
TT
117522020-02-08 Tom Tromey <tom@tromey.com>
11753
11754 * dwarf2/read.c (struct line_header) <file_full_name,
11755 file_file_name>: Declare methods.
11756 (dw2_get_file_names_reader): Update.
11757 (file_file_name): Now a method.
11758 (file_full_name): Likewise.
11759 (macro_start_file): Update.
11760
009b64fc
TT
117612020-02-08 Tom Tromey <tom@tromey.com>
11762
11763 * dwarf2/read.c (dwarf_always_disassemble)
11764 (show_dwarf_always_disassemble): Move to loc.c.
11765 (_initialize_dwarf2_read): Move "always-disassemble" registration
11766 to loc.c.
11767 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11768 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11769 static.
11770 (show_dwarf_always_disassemble): Move from read.c.
11771 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11772
5895093f
TT
117732020-02-08 Tom Tromey <tom@tromey.com>
11774
11775 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11776 (create_quick_file_names_table): Return htab_up.
11777 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11778 Update.
11779 * dwarf2/read.h (struct dwarf2_per_objfile)
11780 <quick_file_names_table>: Now htab_up.
11781
b3b32279
TT
117822020-02-08 Tom Tromey <tom@tromey.com>
11783
11784 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11785
1d33d811
TT
117862020-02-08 Tom Tromey <tom@tromey.com>
11787
11788 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11789 Rewrite.
11790 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11791 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11792 (abbrev_table::abbrev_table): No longer inline.
11793 (ABBREV_HASH_SIZE): Remove.
11794 (abbrev_table::m_abbrevs): Now an htab_up.
11795
86de1d91
TT
117962020-02-08 Tom Tromey <tom@tromey.com>
11797
11798 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11799 (cutu_reader): Update.
11800 (build_type_psymtabs_1): Update.
11801 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11802 (abbrev_table::alloc_abbrev): Update.
11803 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11804 (abbrev_table::read): New static method, renamed from
11805 abbrev_table_read_table.
11806 (abbrev_table::alloc_abbrev)
11807 (abbrev_table::add_abbrev): Now private.
11808 (abbrev_table::abbrev_table): Now private.
11809 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11810
0335378b
TT
118112020-02-08 Tom Tromey <tom@tromey.com>
11812
11813 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11814 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11815 htab_up.
11816
48b490f2
TT
118172020-02-08 Tom Tromey <tom@tromey.com>
11818
11819 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11820 htab_up.
11821 (lookup_dwo_unit_in_dwp): Update.
11822 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11823 on obstack.
11824
bc68fb19
TT
118252020-02-08 Tom Tromey <tom@tromey.com>
11826
11827 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11828 obstack.
11829
d15acc42
TT
118302020-02-08 Tom Tromey <tom@tromey.com>
11831
11832 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11833 line_header_hash.
11834 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11835 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11836 Change type to htab_up.
11837
eaa5fa8b
TT
118382020-02-08 Tom Tromey <tom@tromey.com>
11839
11840 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11841 htab_up. Don't allocate on obstack.
11842 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11843 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11844 Change type to htab_up.
11845
b0b6a987
TT
118462020-02-08 Tom Tromey <tom@tromey.com>
11847
11848 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
11849 Change type to htab_up.
11850 * dwarf2/read.c (create_signatured_type_table_from_index)
11851 (create_signatured_type_table_from_debug_names)
11852 (create_all_type_units, add_type_unit)
11853 (lookup_dwo_signatured_type, lookup_signatured_type)
11854 (process_skeletonless_type_unit): Update.
11855 (create_debug_type_hash_table, create_debug_types_hash_table):
11856 Change type of types_htab.
11857 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11858 htab_up. Don't allocate on obstack.
11859 (create_cus_hash_table): Change type of cus_htab parameter.
11860 (struct dwo_file) <cus, tus>: Now htab_up.
11861 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11862 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
11863 (queue_and_load_all_dwo_tus): Update.
11864 * dwarf2/index-write.c (write_gdbindex): Update.
11865 (write_debug_names): Update.
11866
39856def
TT
118672020-02-08 Tom Tromey <tom@tromey.com>
11868
11869 * dwarf2/read.h (struct dwarf2_queue_item): Move from
11870 dwarf2/read.c. Remove "next" member. Add constructor ntad
11871 destructor.
11872 (struct dwarf2_per_objfile) <queue>: New member.
11873 * dwarf2/read.c (struct dwarf2_queue_item): Move to
11874 dwarf2/read.h.
11875 (dwarf2_queue, dwarf2_queue_tail): Remove.
11876 (class dwarf2_queue_guard): Add parameter to constructor. Use
11877 DISABLE_COPY_AND_ASSIGN.
11878 <m_per_objfile>: New member.
11879 <~dwarf2_queue_guard>: Rewrite.
11880 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
11881 Update.
11882 (~dwarf2_queue_item): New.
11883
3e225074
TT
118842020-02-08 Tom Tromey <tom@tromey.com>
11885
11886 * dwarf2/read.c (struct die_info) <has_children>: New member.
11887 (dw2_get_file_names_reader): Remove has_children.
11888 (dw2_get_file_names): Update.
11889 (read_cutu_die_from_dwo): Remove has_children.
11890 (cutu_reader::init_tu_and_read_dwo_dies)
11891 (cutu_reader::cutu_reader): Update.
11892 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
11893 Remove has_children.
11894 (build_type_psymtabs_1, process_skeletonless_type_unit)
11895 (load_partial_comp_unit, load_full_comp_unit): Update.
11896 (create_dwo_cu_reader): Remove has_children.
11897 (create_cus_hash_table, read_die_and_children): Update.
11898 (read_full_die_1,read_full_die): Remove has_children.
11899 (read_signatured_type): Update.
11900 (class cutu_reader) <has_children>: Remove.
11901
82ca8957
TT
119022020-02-08 Tom Tromey <tom@tromey.com>
11903
11904 * dwarf2/expr.c: Rename from dwarf2expr.c.
11905 * dwarf2/expr.h: Rename from dwarf2expr.h.
11906 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11907 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11908 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11909 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11910 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11911 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11912 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11913 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11914 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11915 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11916 * dwarf2/loc.c: Rename from dwarf2loc.c.
11917 * dwarf2/loc.h: Rename from dwarf2loc.h.
11918 * dwarf2/read.c: Rename from dwarf2read.c.
11919 * dwarf2/read.h: Rename from dwarf2read.h.
11920 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11921 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11922 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11923 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11924 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11925 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11926 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11927 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11928 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11929 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11930 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11931 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11932 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11933 Update.
11934 * Makefile.in (COMMON_SFILES): Update.
11935 (HFILES_NO_SRCDIR): Update.
11936
9e35d499
TT
119372020-02-08 Tom Tromey <tom@tromey.com>
11938
11939 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11940 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11941
1eba2311
TT
119422020-02-08 Tom Tromey <tom@tromey.com>
11943
11944 * dwarf2read.h (struct die_info): Don't declare.
11945
e41c2da2
TT
119462020-02-08 Tom Tromey <tom@tromey.com>
11947
11948 * dwarf2read.h (die_info_ptr): Remove typedef.
11949
4fc6c0d5
TT
119502020-02-08 Tom Tromey <tom@tromey.com>
11951
11952 * dwarf2read.c (read_call_site_scope)
11953 (handle_data_member_location, dwarf2_add_member_fn)
11954 (mark_common_block_symbol_computed, read_common_block)
11955 (attr_to_dynamic_prop, partial_die_info::read)
11956 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11957 (dwarf2_symbol_mark_computed, set_die_type): Update.
11958 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11959 method.
11960 (attr_form_is_block): Don't declare.
11961 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11962
cd6c91b4
TT
119632020-02-08 Tom Tromey <tom@tromey.com>
11964
11965 * dwarf2read.c (dwarf2_find_base_address, )
11966 (read_call_site_scope, rust_containing_type)
11967 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11968 (handle_data_member_location, dwarf2_add_member_fn)
11969 (get_alignment, read_structure_type, process_structure_scope)
11970 (mark_common_block_symbol_computed, read_common_block)
11971 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11972 (partial_die_info::read, read_attribute_value, new_symbol)
11973 (lookup_die_type, dwarf2_get_ref_die_offset)
11974 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11975 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11976 (dwarf2_symbol_mark_computed): Update.
11977 * dwarf2/attribute.h (struct attribute) <value_as_address,
11978 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11979 methods.
11980 (value_as_address, attr_form_is_section_offset)
11981 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11982 * dwarf2/attribute.c (attribute::value_as_address)
11983 (attribute::form_is_section_offset, attribute::form_is_constant)
11984 (attribute::form_is_ref): Now methods.
11985
162dce55
TT
119862020-02-08 Tom Tromey <tom@tromey.com>
11987
11988 * dwarf2read.c (struct attribute, DW_STRING)
11989 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11990 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11991 (attr_form_is_block, attr_form_is_section_offset)
11992 (attr_form_is_constant, attr_form_is_ref): Move.
11993 * dwarf2/attribute.h: New file.
11994 * dwarf2/attribute.c: New file, from dwarf2read.c.
11995 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11996
3054dd54
TT
119972020-02-08 Tom Tromey <tom@tromey.com>
11998
11999 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
12000 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
12001 Move.
12002 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
12003 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
12004 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
12005 abbrev.c.
12006 * dwarf2/abbrev.h: New file.
12007 * dwarf2/abbrev.c: New file, from dwarf2read.c.
12008 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
12009
96b79293
TT
120102020-02-08 Tom Tromey <tom@tromey.com>
12011
12012 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
12013 (dwarf2_section_size, dwarf2_get_section_info)
12014 (create_signatured_type_table_from_debug_names)
12015 (create_addrmap_from_aranges, read_debug_names_from_section)
12016 (get_gdb_index_contents_from_section, read_comp_unit_head)
12017 (error_check_comp_unit_head, read_abbrev_offset)
12018 (create_debug_type_hash_table, init_cu_die_reader)
12019 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
12020 (read_comp_units_from_section, create_cus_hash_table)
12021 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
12022 (create_dwp_v2_section, dwarf2_rnglists_process)
12023 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
12024 (abbrev_table_read_table, read_indirect_string_at_offset_from)
12025 (read_indirect_string_from_dwz, read_addr_index_1)
12026 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
12027 (dwarf_decode_macro_bytes, dwarf_decode_macros)
12028 (fill_in_loclist_baton): Update.
12029 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
12030 get_containing_section, get_bfd_owner, get_bfd_section,
12031 get_file_name, get_id, get_flags, empty, read>: Declare methods.
12032 (dwarf2_read_section, get_section_name, get_section_file_name)
12033 (get_containing_section, get_section_bfd_owner)
12034 (get_section_bfd_section, get_section_name, get_section_file_name)
12035 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
12036 declare.
12037 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
12038 (dwarf2_section_info::get_bfd_owner)
12039 (dwarf2_section_info::get_bfd_section)
12040 (dwarf2_section_info::get_name)
12041 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
12042 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
12043 (dwarf2_section_info::read): Now methods.
12044 * dwarf-index-write.c (class debug_names): Update.
12045
2c86cff9
TT
120462020-02-08 Tom Tromey <tom@tromey.com>
12047
12048 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
12049 Move to dwarf2/section.h.
12050 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
12051 (get_section_bfd_section, get_section_name)
12052 (get_section_file_name, get_section_id, get_section_flags)
12053 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
12054 dwarf2/section.c.
12055 * dwarf2/section.h: New file.
12056 * dwarf2/section.c: New file, from dwarf2read.c.
12057 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
12058
f4382c45
TT
120592020-02-08 Tom Tromey <tom@tromey.com>
12060
12061 * dwarf2read.h (read_unsigned_leb128): Don't declare.
12062 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
12063 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
12064 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
12065 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
12066 * dwarf2/leb.h: New file, from dwarf2read.c.
12067 * dwarf2/leb.c: New file, from dwarf2read.c.
12068 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
12069 Remove.
12070 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
12071 (COMMON_SFILES): Add dwarf2/leb.c.
12072
01840b7a
JB
120732020-02-08 Joel Brobecker <brobecker@adacore.com>
12074
12075 GDB 9.1 released.
12076
dfcb27e4
IB
120772020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12078
12079 PR gdb/25190:
aac66a4c
SM
12080 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
12081 * gdb/remote.c (remote_console_output): Update.
12082 * gdb/ui-file.c (fputs_unfiltered): Rename to...
12083 (ui_file_puts): ...this.
12084 * gdb/ui-file.h (ui_file_puts): Add declaration.
12085 * gdb/utils.c (emit_style_escape): Update.
12086 (flush_wrap_buffer): Update.
12087 (fputs_maybe_filtered): Update.
12088 (fputs_unfiltered): Add function.
dfcb27e4 12089
faa17681
IB
120902020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12091
aac66a4c
SM
12092 * gdb/event-loop.c (gdb_wait_for_event): Update.
12093 * gdb/printcmd.c (printf_command): Update.
12094 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
12095 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
12096 (gdb_os_flush_stderr): Update.
12097 * gdb/remote.c (remote_console_output): Update.
12098 * gdb/ui-file.c (gdb_flush): Rename to...
12099 (ui_file_flush): ...this.
12100 (stderr_file::write): Update.
12101 (stderr_file::puts): Update.
12102 * gdb/ui-file.h (gdb_flush): Rename to...
12103 (ui_file_flush): ...this.
12104 * gdb/utils.c (gdb_flush): Add function.
12105 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 12106
5abbbe1d
TT
121072020-02-07 Tom Tromey <tromey@adacore.com>
12108
12109 PR breakpoints/24915:
12110 * source.c (find_and_open_source): Do not check basenames_may_differ.
12111
919adfe8
TT
121122020-02-07 Tom Tromey <tom@tromey.com>
12113
12114 * README: Update gdbserver documentation.
12115 * gdbserver: Move to top level.
12116 * configure.tgt (build_gdbserver): Remove.
12117 * configure.ac: Remove --enable-gdbserver.
12118 * configure: Rebuild.
12119 * Makefile.in (distclean): Don't mention gdbserver.
12120
1d5d29e7
SV
121212020-02-06 Shahab Vahedi <shahab@synopsys.com>
12122
12123 * source-cache.c (source_cache::ensure): Surround
12124 get_plain_source_lines with a try/catch.
12125 (source_cache::get_line_charpos): Get rid of try/catch
12126 and only check for the return value of "ensure".
12127 * tui/tui-source.c (tui_source_window::set_contents):
12128 Simplify "nlines" calculation.
12129
6eb1129c
SV
121302020-02-06 Shahab Vahedi <shahab@synopsys.com>
12131
12132 * MAINTAINERS (Write After Approval): Add myself.
12133
c6a42d11
CB
121342020-02-05 Christian Biesinger <cbiesinger@google.com>
12135
12136 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
12137 function call.
12138
c8ecdda6
CB
121392020-02-05 Christian Biesinger <cbiesinger@google.com>
12140
12141 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
12142
f6480e70
MR
121432020-02-05 Maciej W. Rozycki <macro@wdc.com>
12144
12145 * nat/riscv-linux-tdesc.h: New file.
12146 * nat/riscv-linux-tdesc.c: New file, taking code from...
12147 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12148 ... here.
12149 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
12150 NATDEPFILES.
12151
dcc9fbc6
AB
121522020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
12153
12154 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
12155 we don't set the fake simulator ptid to the null_ptid.
12156
719546c4
SM
121572020-02-03 Simon Marchi <simon.marchi@efficios.com>
12158
12159 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
12160 * gdbthread.h (class thread_info) <resumed>: Likewise.
12161 * infrun.c (resume_1): Likewise.
12162 (proceed): Likewise.
12163 (infrun_thread_stop_requested): Likewise.
12164 (stop_all_threads): Likewise.
12165 (handle_inferior_event): Likewise.
12166 (restart_threads): Likewise.
12167 (finish_step_over): Likewise.
12168 (keep_going_stepped_thread): Likewise.
12169 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
12170 (linux_handle_extended_wait): Likewise.
12171 * record-btrace.c (get_thread_current_frame_id): Likewise.
12172 * record-full.c (record_full_wait_1): Likewise.
12173 * remote.c (remote_target::process_initial_stop_replies): Likewise.
12174 * target.c (target_resume): Likewise.
12175 * thread.c (set_running_thread): Likewise.
12176
e409c542
AKS
121772020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12178
12179 * f-valprint.c (f77_print_array_1): Changed datatype of index
12180 variable to LONGEST from int to enable it to contain bound
12181 values correctly.
12182
ee98c0da
MR
121832020-02-03 Maciej W. Rozycki <macro@wdc.com>
12184
12185 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12186 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12187 offsets according to FLEN determined.
12188 (riscv_linux_nat_target::read_description): Determine FLEN
12189 dynamically.
12190 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12191 according to FLEN determined.
12192 (riscv_linux_nat_target::store_registers): Likewise.
12193
aa66aac4
SV
121942020-02-01 Shahab Vahedi <shahab@synopsys.com>
12195
12196 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12197 when reg->group is empty and reggroup is not.
12198
fd9faca8
TT
121992020-01-31 Tom Tromey <tromey@adacore.com>
12200
12201 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12202 Call beneath target's mourn_inferior after unpushing.
12203
42330a68
AB
122042020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12205
12206 PR tui/9765
12207 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12208 have enough lines to fill the screen, still return the lowest
12209 address we found.
12210
7a27a45b
AB
122112020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12212
12213 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12214 '-', '<', and '>' commands.
12215
c47f70e2
PA
122162020-01-29 Pedro Alves <palves@redhat.com>
12217 Sergio Durigan Junior <sergiodj@redhat.com>
12218
12219 * infcmd.c (construct_inferior_arguments): Assert that
12220 'argc' is greater than 0.
12221
5133a315
LM
122222020-01-29 Luis Machado <luis.machado@linaro.org>
12223
12224 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12225 (BRK_INSN_MASK): Define to 0xd4200000.
12226 (aarch64_program_breakpoint_here_p): New function.
12227 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12228 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12229 breakpoint.c.
12230 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12231 breakpoint.h
12232 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12233 call gdbarch_program_breakpoint_here_p.
12234 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12235 default_program_breakpoint_here_p, changed return type to bool and
12236 simplified.
12237 * breakpoint.h (program_breakpoint_here): Moved prototype to
12238 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12239 return type to bool.
12240 * gdbarch.c: Regenerate.
12241 * gdbarch.h: Regenerate.
12242 * gdbarch.sh (program_breakpoint_here_p): New method.
12243 * infrun.c (handle_signal_stop): Call
12244 gdbarch_program_breakpoint_here_p.
12245
168f8c6b
TT
122462020-01-26 Tom Tromey <tom@tromey.com>
12247
12248 * ctfread.c (struct ctf_fp_info): Reindent.
12249 (_initialize_ctfread): Remove.
12250
128a391f
TT
122512020-01-26 Tom Tromey <tom@tromey.com>
12252
12253 * psymtab.c (partial_map_expand_apply)
12254 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12255 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12256 (psym_print_stats, psym_expand_symtabs_for_function)
12257 (psym_map_symbol_filenames, psym_map_matching_symbols)
12258 (psym_expand_symtabs_matching)
12259 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12260 (maintenance_check_psymtabs): Use new methods.
12261 * psympriv.h (struct partial_symtab) <readin_p,
12262 get_compunit_symtab>: New methods.
12263 <readin, compunit_symtab>: Remove members.
12264 (struct standard_psymtab): New.
12265 (struct legacy_psymtab): Derive from standard_psymtab.
12266 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12267 standard_psymtab.
12268 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12269
0494dbec
TT
122702020-01-26 Tom Tromey <tom@tromey.com>
12271
12272 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12273 read_dependencies. Add assert.
12274 * psymtab.c (partial_symtab::read_dependencies): New method.
12275 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12276 method.
12277 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12278 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12279 read_dependencies.
12280 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12281 Add assert.
12282
8566b89b
TT
122832020-01-26 Tom Tromey <tom@tromey.com>
12284
12285 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12286 Call expand_psymtab.
12287 (xcoff_read_symtab): Call expand_psymtab.
12288 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12289 legacy_expand_psymtab.
12290 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12291 method.
12292 (struct legacy_psymtab) <expand_psymtab>: Implement.
12293 <legacy_expand_psymtab>: New member.
12294 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12295 (parse_partial_symbols): Set legacy_expand_psymtab.
12296 (psymtab_to_symtab_1): Change argument order. Call
12297 expand_psymtab.
12298 (new_psymtab): Set legacy_expand_psymtab.
12299 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12300 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12301 expand_psymtab.
12302 (dwarf2_psymtab::expand_psymtab): Rename from
12303 psymtab_to_symtab_1. Call expand_psymtab.
12304 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12305 (dbx_end_psymtab): Likewise.
12306 (dbx_psymtab_to_symtab_1): Change argument order. Call
12307 expand_psymtab.
12308 (dbx_read_symtab): Call expand_psymtab.
12309 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12310 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12311 (ctf_psymtab::read_symtab): Call expand_psymtab.
12312
077cbab2
TT
123132020-01-26 Tom Tromey <tom@tromey.com>
12314
12315 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12316 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12317 messages.
12318 * mdebugread.c (mdebug_read_symtab): Remove prints.
12319 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12320 assert.
12321 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12322
891813be
TT
123232020-01-26 Tom Tromey <tom@tromey.com>
12324
12325 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12326 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12327 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12328 legacy_symtab.
12329 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12330 * psymtab.c (psymtab_to_symtab): Call method.
12331 (dump_psymtab): Update.
12332 * psympriv.h (struct partial_symtab): Add virtual destructor.
12333 <read_symtab>: New method.
12334 (struct legacy_symtab): New.
12335 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12336 (struct pst_map) <pst>: Now a legacy_psymtab.
12337 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12338 (new_psymtab): Use legacy_psymtab.
12339 * dwarf2read.h (struct dwarf2_psymtab): New.
12340 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12341 * dwarf2read.c (dwarf2_create_include_psymtab)
12342 (dwarf2_build_include_psymtabs, create_type_unit_group)
12343 (create_partial_symtab, process_psymtab_comp_unit_reader)
12344 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12345 (set_partial_user): Use dwarf2_psymtab.
12346 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12347 (psymtab_to_symtab_1, process_full_comp_unit)
12348 (process_full_type_unit, dwarf2_ranges_read)
12349 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12350 (dwarf_decode_lines): Use dwarf2_psymtab.
12351 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12352 (add_address_entry_worker, write_one_signatured_type)
12353 (recursively_count_psymbols, recursively_write_psymbols)
12354 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12355 (write_debug_names): Likewise.
12356 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12357 <pst>: Now a legacy_psymtab.
12358 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12359 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12360 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12361 * ctfread.c (struct ctf_psymtab): New.
12362 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12363 ctf_psymtab.
12364 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12365 (create_partial_symtab): Return a ctf_psymtab.
12366 (scan_partial_symbols): Update.
12367
c3693a1d
TT
123682020-01-26 Tom Tromey <tom@tromey.com>
12369
12370 * xcoffread.c (xcoff_start_psymtab): Use new.
12371 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12372 renamed from start_psymtab_common.
12373 * psympriv.h (struct partial_symtab): Add new constructor.
12374 (start_psymtab_common): Don't declare.
12375 * mdebugread.c (parse_partial_symbols): Use new.
12376 * dwarf2read.c (create_partial_symtab): Use new.
12377 * dbxread.c (start_psymtab): Use new.
12378 * ctfread.c (create_partial_symtab): Use new.
12379
32caafd0
TT
123802020-01-26 Tom Tromey <tom@tromey.com>
12381
12382 * xcoffread.c (xcoff_end_psymtab): Use new.
12383 * psymtab.c (start_psymtab_common): Use new.
12384 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12385 Update.
12386 * psympriv.h (struct partial_symtab): Add parameters to
12387 constructor. Don't inline.
12388 (allocate_psymtab): Don't declare.
12389 * mdebugread.c (new_psymtab): Use new.
12390 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12391 * dbxread.c (dbx_end_psymtab): Use new.
12392
abaa2f23
TT
123932020-01-26 Tom Tromey <tom@tromey.com>
12394
12395 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12396 allocate_psymtab. Update documentation.
12397 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12398 allocate_psymtab. Do not use new.
12399 (allocate_psymtab): Use new. Update.
12400
6d94535f
TT
124012020-01-26 Tom Tromey <tom@tromey.com>
12402
12403 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12404 * psymtab.c (psym_print_stats): Update.
12405 * psympriv.h (struct partial_symtab) <readin,
12406 psymtabs_addrmap_supported, anonymous>: Now bool.
12407 * mdebugread.c (psymtab_to_symtab_1): Update.
12408 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12409 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12410 (process_full_comp_unit, process_full_type_unit): Update.
12411 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12412 * ctfread.c (psymtab_to_symtab): Update.
12413
6f17252b
TT
124142020-01-26 Tom Tromey <tom@tromey.com>
12415
12416 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12417 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12418 * psymtab.c (psymtab_storage): Delete psymtabs.
12419 (psymtab_storage::allocate_psymtab): Use new.
12420 (psymtab_storage::discard_psymtab): Use delete.
12421 * psympriv.h (struct partial_symtab): Add constructor and
12422 initializers.
12423
f6f1cebc
TT
124242020-01-26 Tom Tromey <tom@tromey.com>
12425
12426 * machoread.c: Do not include psympriv.h.
12427
e47e48f6
PW
124282020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12429
12430 * NEWS: Mention the new option and the set/show commands.
12431
a2fedca9
PW
124322020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12433
12434 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12435 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12436 (validate_exec_file): New variables, enums, functions.
12437 (exec_file_locate_attach, print_section_info): Style the filenames.
12438 (_initialize_exec): Install show_exec_file_mismatch_command and
12439 set_exec_file_mismatch_command.
12440 * gdbcore.h (validate_exec_file): Declare.
12441 * infcmd.c (attach_command): Call validate_exec_file.
12442 * remote.c ( remote_target::remote_add_inferior): Likewise.
12443
7ffa82e1
AB
124442020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12445
12446 * frame.c (find_frame_sal): Move call to get_next_frame into more
12447 inner scope.
12448 * inline-frame.c (inilne_state) <inline_state>: Update argument
12449 types.
12450 (inilne_state) <skipped_symbol>: Rename to...
12451 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12452 (skip_inline_frames): Build vector of skipped symbols and use this
12453 to reate the inline_state.
12454 (inline_skipped_symbol): Add a comment and some assertions, fetch
12455 skipped symbol from the list.
12456
3d92a3e3
AB
124572020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12458
12459 * buildsym.c (lte_is_less_than): Delete.
12460 (buildsym_compunit::end_symtab_with_blockvector): Create local
12461 lambda function to sort line table entries, and use
12462 std::stable_sort instead of std::sort.
12463 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12464 markers when looking for a previous line.
12465
94a72be7
AB
124662020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12467
12468 * dwarf2read.c (lnp_state_machine::record_line): Include
12469 end_sequence parameter in debug print out. Record the line if we
12470 are at an end_sequence marker even if it's not the start of a
12471 statement.
12472 * symmisc.c (maintenance_print_one_line_table): Print end of
12473 sequence markers with 'END' not '0'.
12474
53af73bf
PA
124752020-01-24 Pedro Alves <palves@redhat.com>
12476
12477 PR gdb/25410
12478 * thread.c (scoped_restore_current_thread::restore): Use
12479 switch_to_inferior_no_thread.
12480 * exec.c: Include "progspace-and-thread.h".
12481 (add_target_sections, remove_target_sections):
12482 scoped_restore_current_pspace_and_thread instead of
12483 scoped_restore_current_thread.
12484 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12485 and aspace to the inferior before calling clone_program_space.
12486 Remove stale comment.
12487
3050c6f4
CB
124882020-01-24 Christian Biesinger <cbiesinger@google.com>
12489
12490 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12491 (arm_netbsd_nat_target::fetch_registers): ...this.
12492 (arm_nbsd_nat_target::store_registers): Rename to...
12493 (arm_netbsd_nat_target::store_registers): ...this.
12494
73685c7e
CB
124952020-01-24 Christian Biesinger <cbiesinger@google.com>
12496
12497 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12498 register_t.
12499
89203d40
CB
125002020-01-24 Christian Biesinger <cbiesinger@google.com>
12501
12502 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12503 Update comment.
12504 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12505 Likewise.
12506 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12507 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12508 the correct replacement (iterate_over_regset_sections).
12509 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12510 Update comment.
12511
1ba1ac88
AB
125122020-01-24 Graham Markall <graham.markall@embecosm.com>
12513
12514 PR gdb/23718
12515 * gdb/python/python.c (execute_gdb_command): Call
12516 async_enable_stdin in catch block.
12517
f3364a6d
AB
125182020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12519
12520 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12521 SWITCH_THRU_ALL_UIS.
12522
733d0a67
AB
125232020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12524
12525 PR tui/9765
12526 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12527 comment, add extra parameter, and update to store previous symbol
12528 when appropriate.
12529 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12530 add extra parameter.
12531 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12532 remove unneeded parameter, add try/catch around gdb_print_insn,
12533 rewrite to add items to asm_lines vector.
12534 (tui_find_backward_disassembly_start_address): New function.
12535 (tui_find_disassembly_address): Updated throughout.
12536 (tui_disasm_window::set_contents): Update for changes to
12537 tui_disassemble.
12538 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12539 number of lines to scroll.
12540
b3b3bada
SM
125412020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12542
12543 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12544 (SECT_OFF_DATA): Likewise.
12545 (SECT_OFF_RODATA): Likewise.
12546 (SECT_OFF_TEXT): Likewise.
12547 (SECT_OFF_BSS): Likewise.
12548 (struct objfile) <text_section_offset, data_section_offset>: New
12549 methods.
12550 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12551 objfile::text_section_offset.
12552 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12553 * coffread.c (coff_symtab_read): Likewise.
12554 (enter_linenos): Likewise.
12555 (process_coff_symbol): Likewise.
12556 * ctfread.c (get_objfile_text_range): Likewise.
12557 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12558 Use objfile::data_section_offset.
12559 * dwarf2-frame.c (execute_cfa_program): Use
12560 objfile::text_section_offset.
12561 (dwarf2_frame_find_fde): Likewise.
12562 * dwarf2read.c (create_addrmap_from_index): Likewise.
12563 (create_addrmap_from_aranges): Likewise.
12564 (dw2_find_pc_sect_compunit_symtab): Likewise.
12565 (process_psymtab_comp_unit_reader): Likewise.
12566 (add_partial_symbol): Likewise.
12567 (add_partial_subprogram): Likewise.
12568 (process_full_comp_unit): Likewise.
12569 (read_file_scope): Likewise.
12570 (read_func_scope): Likewise.
12571 (read_lexical_block_scope): Likewise.
12572 (read_call_site_scope): Likewise.
12573 (dwarf2_rnglists_process): Likewise.
12574 (dwarf2_ranges_process): Likewise.
12575 (dwarf2_ranges_read): Likewise.
12576 (dwarf_decode_lines_1): Likewise.
12577 (new_symbol): Likewise.
12578 (dwarf2_fetch_die_loc_sect_off): Likewise.
12579 (dwarf2_per_cu_text_offset): Likewise.
12580 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12581 * hppa-tdep.c (read_unwind_info): Likewise.
12582 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12583 * psympriv.h (struct partial_symtab): Likewise.
12584 * psymtab.c (find_pc_sect_psymtab): Likewise.
12585 * solib-svr4.c (enable_break): Likewise.
12586 * stap-probe.c (relocate_address): Use
12587 objfile::data_section_offset.
12588 * xcoffread.c (enter_line_range): Use
12589 objfile::text_section_offset.
12590 (read_xcoff_symtab): Likewise.
12591
ab53f382
SM
125922020-01-23 Simon Marchi <simon.marchi@efficios.com>
12593
12594 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12595 declaration to narrower scopes.
12596
e7eee665
SM
125972020-01-23 Simon Marchi <simon.marchi@efficios.com>
12598
12599 * darwin-nat.h (struct darwin_exception_msg, enum
12600 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12601 Move up.
12602 (class darwin_nat_target) <wait_1, check_new_threads,
12603 decode_exception_message, decode_message, stop_inferior,
12604 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12605 * darwin-nat.c (darwin_check_new_threads): Rename to...
12606 (darwin_nat_target::check_new_threads): ... this.
12607 (darwin_suspend_inferior_it): Remove.
12608 (darwin_decode_exception_message): Rename to...
12609 (darwin_nat_target::decode_exception_message): ... this.
12610 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12611 (darwin_decode_message): Rename to...
12612 (darwin_nat_target::decode_message): ... this.
12613 (cancel_breakpoint): Rename to...
12614 (darwin_nat_target::cancel_breakpoint): ... this.
12615 (darwin_wait): Rename to...
12616 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12617 instead of iterate_over_inferiors.
12618 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12619 (darwin_stop_inferior): Rename to...
12620 (darwin_nat_target::stop_inferior): ... this.
12621 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12622 (darwin_init_thread_list): Rename to...
12623 (darwin_nat_target::init_thread_list): ... this.
12624 (darwin_ptrace_him): Rename to...
12625 (darwin_nat_target::ptrace_him): ... this.
12626 (darwin_nat_target::create_inferior): Pass lambda function to
12627 fork_inferior.
12628 (darwin_nat_target::detach): Call stop_inferior instead of
12629 darwin_stop_inferior.
12630 * fork-inferior.h (fork_inferior): Change init_trace_fun
12631 parameter to gdb::function_view.
12632 * fork-inferior.c (fork_inferior): Likewise.
12633
c162ed3e
HD
126342020-01-23 Hannes Domani <ssbssa@yahoo.de>
12635
12636 * i386-cygwin-tdep.c (core_process_module_section): Update.
12637 * windows-nat.c (struct lm_info_windows): Add text_offset.
12638 (windows_xfer_shared_libraries): Update.
12639 * windows-tdep.c (windows_xfer_shared_library):
12640 Add text_offset_cached argument.
12641 * windows-tdep.h (windows_xfer_shared_library): Update.
12642
a1237872
SM
126432020-01-21 Simon Marchi <simon.marchi@efficios.com>
12644
12645 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12646
b3ee6dd9
SM
126472020-01-21 Simon Marchi <simon.marchi@efficios.com>
12648
12649 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12650 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12651 replace with range-based for.
12652 (gdbsim_interrupt_inferior): Remove.
12653 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12654 with a range-based for. Inline code from
12655 gdbsim_interrupt_inferior.
12656
f9fac3c8
SM
126572020-01-21 Simon Marchi <simon.marchi@efficios.com>
12658
12659 * infrun.c (proceed): Fix indentation.
12660
f6474de9
TT
126612020-01-21 Tom Tromey <tromey@adacore.com>
12662
12663 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12664 * python/python.c (python_extension_ops): Update.
12665 (gdbpy_colorize): New function.
12666 * python/lib/gdb/__init__.py (colorize): New function.
12667 * extension.h (ext_lang_colorize): Declare.
12668 * extension.c (ext_lang_colorize): New function.
12669 * extension-priv.h (struct extension_language_ops) <colorize>: New
12670 member.
12671 * cli/cli-style.c (_initialize_cli_style): Update help text.
12672
f0c702d4
LM
126732020-01-21 Luis Machado <luis.machado@linaro.org>
12674
12675 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12676 <cond>: Change type to bool.
12677 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12678 (aarch64_displaced_step_cb): Likewise.
12679 (aarch64_displaced_step_tb): Likewise.
12680
1ab139e5
LM
126812020-01-21 Luis Machado <luis.machado@linaro.org>
12682
12683 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12684 output.
12685
0c271889
LM
126862020-01-21 Luis Machado <luis.machado@linaro.org>
12687
12688 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12689 <pc_adjust>: Adjust the documentation.
12690 (aarch64_displaced_step_fixup): Check if PC really moved before
12691 adjusting it.
12692
4d89c1c7
TT
126932020-01-19 Tom Tromey <tom@tromey.com>
12694
12695 * disasm.c (~gdb_disassembler): New destructor.
12696 (gdb_buffered_insn_length): Call disassemble_free_target.
12697 * disasm.h (class gdb_disassembler): Declare destructor. Use
12698 DISABLE_COPY_AND_ASSIGN.
12699
c0ab21c2
TT
127002020-01-19 Tom Tromey <tom@tromey.com>
12701
12702 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12703 (die_reader_func_ftype): Remove.
12704 (cutu_reader): New class.
12705 (dw2_get_file_names_reader): Remove "data" parameter.
12706 (dw2_get_file_names): Use cutu_reader.
12707 (create_debug_type_hash_table): Update.
12708 (read_cutu_die_from_dwo): Update comment.
12709 (lookup_dwo_unit): Add dwo_name parameter.
12710 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12711 die_reader_func_ftype and data parameters.
12712 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12713 Remove die_reader_func_ftype and data parameters.
12714 (~cutu_reader): New; from init_cutu_and_read_dies.
12715 (cutu_reader::cutu_reader): Rename from
12716 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12717 and data parameters.
12718 (init_cutu_and_read_dies_simple): Remove.
12719 (struct process_psymtab_comp_unit_data): Remove.
12720 (process_psymtab_comp_unit_reader): Remove data parameter; add
12721 want_partial_unit and pretend_language parameters.
12722 (process_psymtab_comp_unit): Use cutu_reader.
12723 (build_type_psymtabs_reader): Remove data parameter.
12724 (build_type_psymtabs_1): Use cutu_reader.
12725 (process_skeletonless_type_unit): Likewise.
12726 (load_partial_comp_unit_reader): Remove.
12727 (load_partial_comp_unit): Use cutu_reader.
12728 (load_full_comp_unit_reader): Remove.
12729 (load_full_comp_unit): Use cutu_reader.
12730 (struct create_dwo_cu_data): Remove.
12731 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12732 dwo_unit parameters.
12733 (create_cus_hash_table): Use cutu_reader.
12734 (struct dwarf2_read_addr_index_data): Remove.
12735 (dwarf2_read_addr_index_reader): Remove.
12736 (dwarf2_read_addr_index): Use cutu_reader.
12737 (read_signatured_type_reader): Remove.
12738 (read_signatured_type): Use cutu_reader.
12739
45bbae5c
TT
127402020-01-19 Tom Tromey <tom@tromey.com>
12741
12742 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12743 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12744 (tui_wrefresh): Declare.
12745 * tui/tui-wingeneral.c (suppress_output): New global.
12746 (tui_suppress_output, ~tui_suppress_output): New constructor and
12747 destructor.
12748 (tui_wrefresh): New function.
12749 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12750 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12751 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12752 method.
12753 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12754 tui_wrefresh.
12755 (tui_data_window::no_refresh): New method.
12756 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12757 (tui_reg_command): Use tui_suppress_output
12758 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12759 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12760 method.
12761 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12762
4f13c1c0
TT
127632020-01-19 Tom Tromey <tom@tromey.com>
12764
12765 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12766 Handle case where symtab is null.
12767
fa47e446
SM
127682020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12769
12770 * linux-fork.c (one_fork_p): Simplify.
12771
26f42329
SM
127722020-01-17 Simon Marchi <simon.marchi@efficios.com>
12773
12774 * top.c (struct qt_args): Remove.
12775 (kill_or_detach): Change return type to void, replace `void *`
12776 parameter with a proper one.
12777 (print_inferior_quit_action): Likewise.
12778 (quit_confirm): Use range-based for loop to iterate over inferiors.
12779 (quit_force): Likewise.
12780
a9ac81b1
SM
127812020-01-17 Simon Marchi <simon.marchi@efficios.com>
12782
12783 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12784 `void *` parameter with proper parameters.
12785 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12786 (print_one_inferior): Change return type to void, replace `void *`
12787 parameter with proper parameters.
12788 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12789 inferiors.
12790 (get_other_inferior): Remove.
12791 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12792 inferiors.
12793
788eca49
SM
127942020-01-17 Simon Marchi <simon.marchi@efficios.com>
12795
12796 * mi/mi-interp.c (report_initial_inferior): Remove.
12797 (mi_interp::init): Use range-based for to iterate over inferiors.
12798
d9bc85b6
SM
127992020-01-17 Simon Marchi <simon.marchi@efficios.com>
12800
12801 * python/py-inferior.c (build_inferior_list): Remove.
12802 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12803
40c94099
CB
128042020-01-16 Christian Biesinger <cbiesinger@google.com>
12805
12806 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12807 (btrace_stitch_trace): Likewise.
12808 * charset.c (intermediate_encoding): Likewise (vaild).
12809 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12810 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12811 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12812
e0cdfe3c
HD
128132020-01-16 Hannes Domani <ssbssa@yahoo.de>
12814
12815 * windows-tdep.c (windows_get_tlb_type):
12816 Add rtl_user_process_parameters type.
12817
790f1718 128182020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 12819 Norbert Lange <nolange79@gmail.com>
790f1718
PA
12820
12821 PR build/24805
12822 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12823 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12824 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12825 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12826 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12827 (ps_plog): Redeclare exported functions with default visibility.
12828
3112ed97
NA
128292020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12830
12831 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12832 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12833
8dc3273e
SM
128342020-01-15 Simon Marchi <simon.marchi@efficios.com>
12835
12836 * infcmd.c (post_create_inferior): Use get_thread_regcache
12837 instead of get_current_regcache.
12838
ff47f4f0
TT
128392020-01-14 Tom Tromey <tom@tromey.com>
12840
12841 PR symtab/12535:
12842 * python/python.c (gdbpy_decode_line): Treat empty string the same
12843 as no argument.
12844
975f45b7
TT
128452020-01-14 Tom Tromey <tom@tromey.com>
12846
12847 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
12848
25e57356
TT
128492020-01-14 Tom Tromey <tom@tromey.com>
12850
12851 * nat/linux-btrace.c: Don't include <config.h>.
12852 * nat/linux-ptrace.c: Don't include <config.h>.
12853 * nat/x86-linux-dregs.c: Don't include <config.h>.
12854
05ea2a05
TT
128552020-01-14 Tom Tromey <tom@tromey.com>
12856
12857 * configure: Rebuild.
12858 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12859
01027315
TT
128602020-01-14 Tom Tromey <tom@tromey.com>
12861
12862 * nat/x86-linux-dregs.c: Include configh.h.
12863 * nat/linux-ptrace.c: Include configh.h.
12864 * nat/linux-btrace.c: Include configh.h.
12865 * defs.h: Include config.h, bfd.h.
12866 * configure.ac: Don't source common.host.
12867 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
12868 * configure: Rebuild.
12869 * acinclude.m4: Update path.
12870 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
12871 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
12872 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
12873 (CLIBS): Add LIBSUPPORT.
12874 (CDEPS): Likewise.
12875 (COMMON_SFILES): Remove gdbsupport files.
12876 (HFILES_NO_SRCDIR): Likewise.
12877 (stamp-version): Update path to create-version.sh.
12878 (ALLDEPFILES): Remove gdbsupport files.
12879
b2ceabe8
TT
128802020-01-14 Tom Tromey <tom@tromey.com>
12881
12882 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
12883 USE_WIN32API when needed.
12884 * configure.ac (USE_WIN32API): Don't define.
12885 (WIN32LIBS): Use WIN32APILIBS.
12886 * configure: Rebuild.
12887
25c51f71
TT
128882020-01-14 Tom Tromey <tom@tromey.com>
12889
12890 * configure: Rebuild.
12891 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
12892
717c684d
BE
128932020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12894
12895 * skip.c (skip_function_command): Make skip w/o arguments use the
12896 name of the inlined function if pc is inside any inlined function.
12897
7da6a5b9
LM
128982020-01-14 Luis Machado <luis.machado@linaro.org>
12899
12900 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
12901 * infrun.c (resume_1): Likewise.
12902 (handle_inferior_event): Remove stale comment.
12903 * linux-nat.c (linux_nat_target::resume): Update comments.
12904 (save_stop_reason): Likewise.
12905 (linux_nat_filter_event): Likewise.
12906 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12907
44e4c775
AB
129082020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12909
12910 * elfread.c (record_minimal_symbol): Set section index to 0 for
12911 non-allocatable sections.
12912
18a8505e
AT
12913
129142020-01-13 Ali Tamur <tamur@google.com>
12915
12916 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12917 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12918 to gdb::optional. Update comments.
12919 (dwo_file): Update comments.
12920 (read_attribute): Update API to take an additional out parameter,
12921 need_reprocess. This is used to mark attributes that need other
12922 attributes (e.g. str_offsets_base) for correct computation which may not
12923 have been read yet.
12924 (read_attribute_reprocess): New function declaration.
12925 (read_addr_index): Likewise.
12926 (read_dwo_str_index): Likewise.
12927 (read_stub_str_index): Likewise.
12928 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12929 (lookup_addr_base): New function definition.
12930 (lookup_ranges_base): Likewise.
12931 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12932 lookup_ranges_base.
12933 (init_cutu_and_read_dies): Update comments.
12934 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12935 unit. This is used to inherit parent's str_offsets_base and addr_base.
12936 Update comments.
12937 (init_cutu_and_read_dies_simple): Reflect API changes.
12938 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12939 (create_cus_hash_table): Change API to take parent compile unit.
12940 Reflect API changes.
12941 (open_and_init_dwo_file): Reflect API changes.
12942 (dwarf2_get_pc_bounds): Update comments.
12943 (dwarf2_record_block_ranges): Likewise.
12944 (read_full_die_1): Change implementation to reprocess attributes that
12945 need str_offsets_base and addr_base.
12946 (partial_die_info::read): Likewise.
12947 (read_attribute_reprocess): New function definition.
12948 (read_attribute_value): Change API to take an additional out parameter,
12949 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12950 when a non-dwo compile unit has index based attributes.
12951 (read_attribute): Reflect API changes.
12952 (read_addr_index_1): Reflect API changes. Update comments.
12953 (dwarf2_read_addr_index_data): Reflect API changes.
12954 (dwarf2_read_addr_index): Likewise.
12955 (read_str_index): Change API and implementation. This becomes a helper
12956 to be used by the new string index related methods. Update error
12957 message and comments.
12958 (read_dwo_str_index): New function definition.
12959 (read_stub_str_index): Likewise.
12960 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12961 * symfile.h (dwarf2_debug_sections): Likewise.
12962 * xcoffread.c (dwarf2_debug_sections): Likewise.
12963
0cac9354
SM
129642020-01-13 Simon Marchi <simon.marchi@efficios.com>
12965
12966 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12967 core_reg_sect type to gdb_byte *.
12968 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12969 * cris-tdep.c (fetch_core_registers): Likewise.
12970 * corelow.c (core_target::get_core_register_section): Change
12971 type of `contents` to gdb::byte_vector.
12972
9a6d629c
AB
129732020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12974
12975 * tui/tui-wingeneral.c (box_win): Position the title in the center
12976 of the border.
12977
d8b2f9e3
SM
129782020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12979
12980 * corelow.c (core_target::get_core_register_section): Use
12981 std::vector instead of alloca.
12982
bb564c58
SM
129832020-01-13 Simon Marchi <simon.marchi@efficios.com>
12984
12985 * warning.m4: Add -Wmissing-declarations to build_warnings.
12986 * configure: Re-generate.
12987
6b366111
SM
129882020-01-13 Simon Marchi <simon.marchi@efficios.com>
12989
12990 * python/python.c (init__gdb_module): Add declaration.
12991
6c265988
SM
129922020-01-13 Simon Marchi <simon.marchi@efficios.com>
12993
12994 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12995 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12996 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12997 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12998 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12999 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
13000 * ada-exp.y (_initialize_ada_exp): Add declaration.
13001 * ada-lang.c (_initialize_ada_language): Add declaration.
13002 * ada-tasks.c (_initialize_tasks): Add declaration.
13003 * agent.c (_initialize_agent): Add declaration.
13004 * aix-thread.c (_initialize_aix_thread): Add declaration.
13005 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
13006 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
13007 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
13008 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
13009 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
13010 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
13011 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
13012 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
13013 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
13014 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
13015 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
13016 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
13017 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
13018 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
13019 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
13020 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
13021 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
13022 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
13023 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
13024 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
13025 * annotate.c (_initialize_annotate): Add declaration.
13026 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
13027 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
13028 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
13029 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
13030 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
13031 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
13032 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
13033 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
13034 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
13035 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
13036 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
13037 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
13038 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
13039 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
13040 * auto-load.c (_initialize_auto_load): Add declaration.
13041 * auxv.c (_initialize_auxv): Add declaration.
13042 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
13043 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
13044 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
13045 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
13046 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
13047 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
13048 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
13049 * breakpoint.c (_initialize_breakpoint): Add declaration.
13050 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
13051 * btrace.c (_initialize_btrace): Add declaration.
13052 * charset.c (_initialize_charset): Add declaration.
13053 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
13054 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
13055 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
13056 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
13057 * cli/cli-script.c (_initialize_cli_script): Add declaration.
13058 * cli/cli-style.c (_initialize_cli_style): Add declaration.
13059 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
13060 * coffread.c (_initialize_coffread): Add declaration.
13061 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
13062 * compile/compile.c (_initialize_compile): Add declaration.
13063 * complaints.c (_initialize_complaints): Add declaration.
13064 * completer.c (_initialize_completer): Add declaration.
13065 * copying.c (_initialize_copying): Add declaration.
13066 * corefile.c (_initialize_core): Add declaration.
13067 * corelow.c (_initialize_corelow): Add declaration.
13068 * cp-abi.c (_initialize_cp_abi): Add declaration.
13069 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
13070 * cp-support.c (_initialize_cp_support): Add declaration.
13071 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
13072 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
13073 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
13074 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
13075 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
13076 * ctfread.c (_initialize_ctfread): Add declaration.
13077 * d-lang.c (_initialize_d_language): Add declaration.
13078 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
13079 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
13080 * dbxread.c (_initialize_dbxread): Add declaration.
13081 * dcache.c (_initialize_dcache): Add declaration.
13082 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
13083 * disasm.c (_initialize_disasm): Add declaration.
13084 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
13085 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
13086 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
13087 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
13088 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
13089 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
13090 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
13091 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
13092 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
13093 * elfread.c (_initialize_elfread): Add declaration.
13094 * exec.c (_initialize_exec): Add declaration.
13095 * extension.c (_initialize_extension): Add declaration.
13096 * f-lang.c (_initialize_f_language): Add declaration.
13097 * f-valprint.c (_initialize_f_valprint): Add declaration.
13098 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
13099 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
13100 * filesystem.c (_initialize_filesystem): Add declaration.
13101 * findcmd.c (_initialize_mem_search): Add declaration.
13102 * findvar.c (_initialize_findvar): Add declaration.
13103 * fork-child.c (_initialize_fork_child): Add declaration.
13104 * frame-base.c (_initialize_frame_base): Add declaration.
13105 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
13106 * frame.c (_initialize_frame): Add declaration.
13107 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
13108 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
13109 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
13110 * gcore.c (_initialize_gcore): Add declaration.
13111 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
13112 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
13113 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
13114 * gdbarch.c (_initialize_gdbarch): Add declaration.
13115 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
13116 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
13117 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
13118 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
13119 * go-lang.c (_initialize_go_language): Add declaration.
13120 * go32-nat.c (_initialize_go32_nat): Add declaration.
13121 * guile/guile.c (_initialize_guile): Add declaration.
13122 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
13123 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
13124 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
13125 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
13126 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
13127 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
13128 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
13129 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
13130 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
13131 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
13132 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
13133 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
13134 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
13135 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
13136 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
13137 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
13138 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
13139 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
13140 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
13141 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
13142 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
13143 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
13144 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
13145 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
13146 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
13147 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
13148 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
13149 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
13150 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
13151 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
13152 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
13153 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
13154 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
13155 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
13156 * infcall.c (_initialize_infcall): Add declaration.
13157 * infcmd.c (_initialize_infcmd): Add declaration.
13158 * inflow.c (_initialize_inflow): Add declaration.
13159 * infrun.c (_initialize_infrun): Add declaration.
13160 * interps.c (_initialize_interpreter): Add declaration.
13161 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
13162 * jit.c (_initialize_jit): Add declaration.
13163 * language.c (_initialize_language): Add declaration.
13164 * linux-fork.c (_initialize_linux_fork): Add declaration.
13165 * linux-nat.c (_initialize_linux_nat): Add declaration.
13166 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
13167 * linux-thread-db.c (_initialize_thread_db): Add declaration.
13168 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
13169 * m2-lang.c (_initialize_m2_language): Add declaration.
13170 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
13171 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
13172 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
13173 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
13174 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
13175 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
13176 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
13177 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
13178 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
13179 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
13180 * machoread.c (_initialize_machoread): Add declaration.
13181 * macrocmd.c (_initialize_macrocmd): Add declaration.
13182 * macroscope.c (_initialize_macroscope): Add declaration.
13183 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13184 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13185 * maint.c (_initialize_maint_cmds): Add declaration.
13186 * mdebugread.c (_initialize_mdebugread): Add declaration.
13187 * memattr.c (_initialize_mem): Add declaration.
13188 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13189 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13190 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13191 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13192 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13193 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13194 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13195 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13196 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13197 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13198 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13199 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13200 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13201 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13202 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13203 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13204 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13205 * mipsread.c (_initialize_mipsread): Add declaration.
13206 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13207 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13208 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13209 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13210 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13211 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13212 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13213 * nto-procfs.c (_initialize_procfs): Add declaration.
13214 * objc-lang.c (_initialize_objc_language): Add declaration.
13215 * observable.c (_initialize_observer): Add declaration.
13216 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13217 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13218 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13219 * osabi.c (_initialize_gdb_osabi): Add declaration.
13220 * osdata.c (_initialize_osdata): Add declaration.
13221 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13222 * parse.c (_initialize_parse): Add declaration.
13223 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13224 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13225 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13226 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13227 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13228 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13229 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13230 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13231 * printcmd.c (_initialize_printcmd): Add declaration.
13232 * probe.c (_initialize_probe): Add declaration.
13233 * proc-api.c (_initialize_proc_api): Add declaration.
13234 * proc-events.c (_initialize_proc_events): Add declaration.
13235 * proc-service.c (_initialize_proc_service): Add declaration.
13236 * procfs.c (_initialize_procfs): Add declaration.
13237 * producer.c (_initialize_producer): Add declaration.
13238 * psymtab.c (_initialize_psymtab): Add declaration.
13239 * python/python.c (_initialize_python): Add declaration.
13240 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13241 * record-btrace.c (_initialize_record_btrace): Add declaration.
13242 * record-full.c (_initialize_record_full): Add declaration.
13243 * record.c (_initialize_record): Add declaration.
13244 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13245 * regcache.c (_initialize_regcache): Add declaration.
13246 * reggroups.c (_initialize_reggroup): Add declaration.
13247 * remote-notif.c (_initialize_notif): Add declaration.
13248 * remote-sim.c (_initialize_remote_sim): Add declaration.
13249 * remote.c (_initialize_remote): Add declaration.
13250 * reverse.c (_initialize_reverse): Add declaration.
13251 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13252 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13253 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13254 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13255 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13256 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13257 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13258 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13259 Add declaration.
13260 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13261 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13262 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13263 * rust-exp.y (_initialize_rust_exp): Add declaration.
13264 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13265 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13266 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13267 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13268 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13269 * score-tdep.c (_initialize_score_tdep): Add declaration.
13270 * ser-go32.c (_initialize_ser_dos): Add declaration.
13271 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13272 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13273 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13274 * ser-uds.c (_initialize_ser_socket): Add declaration.
13275 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13276 * serial.c (_initialize_serial): Add declaration.
13277 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13278 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13279 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13280 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13281 * skip.c (_initialize_step_skip): Add declaration.
13282 * sol-thread.c (_initialize_sol_thread): Add declaration.
13283 * solib-aix.c (_initialize_solib_aix): Add declaration.
13284 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13285 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13286 * solib-frv.c (_initialize_frv_solib): Add declaration.
13287 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13288 * solib-target.c (_initialize_solib_target): Add declaration.
13289 * solib.c (_initialize_solib): Add declaration.
13290 * source-cache.c (_initialize_source_cache): Add declaration.
13291 * source.c (_initialize_source): Add declaration.
13292 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13293 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13294 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13295 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13296 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13297 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13298 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13299 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13300 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13301 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13302 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13303 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13304 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13305 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13306 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13307 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13308 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13309 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13310 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13311 * stabsread.c (_initialize_stabsread): Add declaration.
13312 * stack.c (_initialize_stack): Add declaration.
13313 * stap-probe.c (_initialize_stap_probe): Add declaration.
13314 * std-regs.c (_initialize_frame_reg): Add declaration.
13315 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13316 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13317 * symfile.c (_initialize_symfile): Add declaration.
13318 * symmisc.c (_initialize_symmisc): Add declaration.
13319 * symtab.c (_initialize_symtab): Add declaration.
13320 * target.c (_initialize_target): Add declaration.
13321 * target-connection.c (_initialize_target_connection): Add
13322 declaration.
13323 * target-dcache.c (_initialize_target_dcache): Add declaration.
13324 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13325 * thread.c (_initialize_thread): Add declaration.
13326 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13327 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13328 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13329 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13330 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13331 * tracectf.c (_initialize_ctf): Add declaration.
13332 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13333 * tracefile.c (_initialize_tracefile): Add declaration.
13334 * tracepoint.c (_initialize_tracepoint): Add declaration.
13335 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13336 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13337 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13338 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13339 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13340 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13341 * tui/tui.c (_initialize_tui): Add declaration.
13342 * typeprint.c (_initialize_typeprint): Add declaration.
13343 * ui-style.c (_initialize_ui_style): Add declaration.
13344 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13345 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13346 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13347 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13348 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13349 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13350 * unittests/filtered_iterator-selftests.c
13351 (_initialize_filtered_iterator_selftests): Add declaration.
13352 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13353 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13354 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13355 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13356 * unittests/main-thread-selftests.c
13357 (_initialize_main_thread_selftests): Add declaration.
13358 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13359 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13360 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13361 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13362 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13363 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13364 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13365 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13366 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13367 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13368 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13369 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13370 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13371 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13372 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13373 declaration.
13374 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13375 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13376 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13377 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13378 * user-regs.c (_initialize_user_regs): Add declaration.
13379 * utils.c (_initialize_utils): Add declaration.
13380 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13381 * valops.c (_initialize_valops): Add declaration.
13382 * valprint.c (_initialize_valprint): Add declaration.
13383 * value.c (_initialize_values): Add declaration.
13384 * varobj.c (_initialize_varobj): Add declaration.
13385 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13386 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13387 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13388 * windows-nat.c (_initialize_windows_nat): Add declaration.
13389 (_initialize_check_for_gdb_ini): Add declaration.
13390 (_initialize_loadable): Add declaration.
13391 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13392 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13393 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13394 * xcoffread.c (_initialize_xcoffread): Add declaration.
13395 * xml-support.c (_initialize_xml_support): Add declaration.
13396 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13397 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13398 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13399 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13400
e2de1eec
SM
134012020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13402
13403 * regformats/regdat.sh: Generate declaration for init function.
13404
e0037b4c
SM
134052020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13406
13407 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13408 up.
13409 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13410 close_one_inferior>: New methods.
13411 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13412 pass down target to find_inferior_pid.
13413 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13414 Pass down target to find_inferior_ptid.
13415 (gdbsim_target::create_inferior): Pass down target to
13416 add_thread_silent.
13417 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13418 target down to find_inferior_ptid and switch_to_thread.
13419 (gdbsim_target::close): Update to call close_one_inferior.
13420 (struct resume_data): Remove.
13421 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13422 directly, rather than through a void pointer.
13423 (gdbsim_target::resume): Update to call resume_one_inferior.
13424
58920b5b
SM
134252020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13426
13427 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13428
4ec89149
PA
134292020-01-12 Pedro Alves <palves@redhat.com>
13430
13431 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13432 directly for the current inferior instead of
13433 discard_all_inferiors.
13434 (discard_all_inferiors): Delete.
13435
7c392d1d
TT
134362020-01-11 Tom Tromey <tom@tromey.com>
13437
13438 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13439 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13440 deprecated_safe_get_selected_frame.
13441
d9ebdab7
TBA
134422020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13443
13444 * inferior.c (print_inferior): Switch inferior before printing it.
13445
f3c469b9
PA
134462020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13447 Pedro Alves <palves@redhat.com>
13448
13449 * progspace-and-thread.c (switch_to_program_space_and_thread):
13450 Assert there's an inferior for PSPACE. Use
13451 switch_to_inferior_no_thread to switch the inferior too.
13452 * progspace.c (program_space::~program_space): Call
13453 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13454 (program_space::free_all_objfiles): Don't call clear_symtab_users
13455 here.
13456 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13457
65c574f6
PA
134582020-01-10 Pedro Alves <palves@redhat.com>
13459
13460 * NEWS: Mention multi-target debugging, "info connections", and
13461 "add-inferior -no-connection".
13462
2f4fcf00
PA
134632020-01-10 Pedro Alves <palves@redhat.com>
13464
13465 * infrun.c: Include "target-connection.h".
13466 (check_multi_target_resumption): New.
13467 (proceed): Call it.
13468 * target-connection.c (make_target_connection_string): Make
13469 extern.
13470 * target-connection.h (make_target_connection_string): Declare.
13471
121b3efd
PA
134722020-01-10 Pedro Alves <palves@redhat.com>
13473
13474 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13475 * inferior.c (uiout_field_connection): New function.
13476 (print_inferior): Add new "connection-id" column.
13477 (add_inferior_command): Show connection number/string of added
13478 inferior.
13479 * process-stratum-target.h
13480 (process_stratum_target::connection_string): New virtual method.
13481 (process_stratum_target::connection_number): New field.
13482 * remote.c (remote_target::connection_string): New override.
13483 * target-connection.c: New file.
13484 * target-connection.h: New file.
13485 * target.c (decref_target): Remove process_stratum targets from
13486 the connection list.
13487 (target_stack::push): Add process_stratum targets to the
13488 connection list.
13489
4f837581
PA
134902020-01-10 Pedro Alves <palves@redhat.com>
13491
13492 Revert:
13493 2016-04-12 Pedro Alves <palves@redhat.com>
13494 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13495 Remove references to name.
13496 * serial.h (struct serial) <name>: Delete.
13497
f4ec508e
PA
134982020-01-10 Pedro Alves <palves@redhat.com>
13499
13500 * gdbarch-selftests.c (register_to_value_test): Remove "target
13501 already pushed" check.
13502
5b6d1e4f
PA
135032020-01-10 Pedro Alves <palves@redhat.com>
13504 John Baldwin <jhb@FreeBSD.org>
13505
13506 * aarch64-linux-nat.c
13507 (aarch64_linux_nat_target::thread_architecture): Adjust.
13508 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13509 (task_command_1): Likewise.
13510 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13511 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13512 (aix_thread_target::store_registers)
13513 (aix_thread_target::thread_alive): Adjust.
13514 * amd64-fbsd-tdep.c: Include "inferior.h".
13515 (amd64fbsd_get_thread_local_address): Pass down target.
13516 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13517 thread's gdbarch instead of target_gdbarch.
13518 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13519 get_last_target_status.
13520 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13521 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13522 inferiors.
13523 (update_inserted_breakpoint_locations): Skip if inferiors with no
13524 execution.
13525 (update_global_location_list): When handling moribund locations,
13526 find representative inferior for location's pspace, and use thread
13527 count of its process_stratum target.
13528 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13529 * bsd-uthread.c (bsd_uthread_target::wait): Use
13530 as_process_stratum_target and adjust thread_change_ptid and
13531 add_thread calls.
13532 (bsd_uthread_target::update_thread_list): Use
13533 as_process_stratum_target and adjust find_thread_ptid,
13534 thread_change_ptid and add_thread calls.
13535 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13536 find_thread_ptid call.
13537 * corelow.c (add_to_thread_list): Adjust add_thread call.
13538 (core_target_open): Adjust add_thread_silent and thread_count
13539 calls.
13540 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13541 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13542 * event-top.c (async_disconnect): Pop targets from all inferiors.
13543 * exec.c (add_target_sections): Push exec target on all inferiors
13544 sharing the program space.
13545 (remove_target_sections): Remove the exec target from all
13546 inferiors sharing the program space.
13547 (exec_on_vfork): New.
13548 * exec.h (exec_on_vfork): Declare.
13549 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13550 Pass it down.
13551 (fbsd_nat_target::update_thread_list): Adjust.
13552 (fbsd_nat_target::resume): Adjust.
13553 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13554 down.
13555 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13556 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13557 get_thread_arch_regcache call.
13558 * fork-child.c (gdb_startup_inferior): Pass target down to
13559 startup_inferior and set_executing.
13560 * gdbthread.h (struct process_stratum_target): Forward declare.
13561 (add_thread, add_thread_silent, add_thread_with_info)
13562 (in_thread_list): Add process_stratum_target parameter.
13563 (find_thread_ptid(inferior*, ptid_t)): New overload.
13564 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13565 parameter.
13566 (all_threads()): Delete overload.
13567 (all_threads, all_non_exited_threads): Add process_stratum_target
13568 parameter.
13569 (all_threads_safe): Use brace initialization.
13570 (thread_count): Add process_stratum_target parameter.
13571 (set_resumed, set_running, set_stop_requested, set_executing)
13572 (threads_are_executing, finish_thread_state): Add
13573 process_stratum_target parameter.
13574 (switch_to_thread): Use is_current_thread.
13575 * i386-fbsd-tdep.c: Include "inferior.h".
13576 (i386fbsd_get_thread_local_address): Pass down target.
13577 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13578 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13579 have_inferiors check.
13580 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13581 (inf_ptrace_target::attach): Adjust.
13582 * infcall.c (run_inferior_call): Adjust.
13583 * infcmd.c (run_command_1): Pass target to
13584 scoped_finish_thread_state.
13585 (proceed_thread_callback): Skip inferiors with no execution.
13586 (continue_command): Rename 'all_threads' local to avoid hiding
13587 'all_threads' function. Adjust get_last_target_status call.
13588 (prepare_one_step): Adjust set_running call.
13589 (signal_command): Use user_visible_resume_target. Compare thread
13590 pointers instead of inferior_ptid.
13591 (info_program_command): Adjust to pass down target.
13592 (attach_command): Mark target's 'thread_executing' flag.
13593 (stop_current_target_threads_ns): New, factored out from ...
13594 (interrupt_target_1): ... this. Switch inferior before making
13595 target calls.
13596 * inferior-iter.h
13597 (struct all_inferiors_iterator, struct all_inferiors_range)
13598 (struct all_inferiors_safe_range)
13599 (struct all_non_exited_inferiors_range): Filter on
13600 process_stratum_target too. Remove explicit.
13601 * inferior.c (inferior::inferior): Push dummy target on target
13602 stack.
13603 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13604 Add process_stratum_target parameter, and pass it down.
13605 (have_live_inferiors): Adjust.
13606 (switch_to_inferior_and_push_target): New.
13607 (add_inferior_command, clone_inferior_command): Handle
13608 "-no-connection" parameter. Use
13609 switch_to_inferior_and_push_target.
13610 (_initialize_inferior): Mention "-no-connection" option in
13611 the help of "add-inferior" and "clone-inferior" commands.
13612 * inferior.h: Include "process-stratum-target.h".
13613 (interrupt_target_1): Use bool.
13614 (struct inferior) <push_target, unpush_target, target_is_pushed,
13615 find_target_beneath, top_target, process_target, target_at,
13616 m_stack>: New.
13617 (discard_all_inferiors): Delete.
13618 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13619 (all_inferiors, all_non_exited_inferiors): Add
13620 process_stratum_target parameter.
13621 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13622 (target_last_proc_target): New global.
13623 (follow_fork_inferior): Push target on new inferior. Pass target
13624 to add_thread_silent. Call exec_on_vfork. Handle target's
13625 reference count.
13626 (follow_fork): Adjust get_last_target_status call. Also consider
13627 target.
13628 (follow_exec): Push target on new inferior.
13629 (struct execution_control_state) <target>: New field.
13630 (user_visible_resume_target): New.
13631 (do_target_resume): Call target_async.
13632 (resume_1): Set target's threads_executing flag. Consider resume
13633 target.
13634 (commit_resume_all_targets): New.
13635 (proceed): Also consider resume target. Skip threads of inferiors
13636 with no execution. Commit resumtion in all targets.
13637 (start_remote): Pass current inferior to wait_for_inferior.
13638 (infrun_thread_stop_requested): Consider target as well. Pass
13639 thread_info pointer to clear_inline_frame_state instead of ptid.
13640 (infrun_thread_thread_exit): Consider target as well.
13641 (random_pending_event_thread): New inferior parameter. Use it.
13642 (do_target_wait): Rename to ...
13643 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13644 down.
13645 (threads_are_resumed_pending_p, do_target_wait): New.
13646 (prepare_for_detach): Adjust calls.
13647 (wait_for_inferior): New inferior parameter. Handle it. Use
13648 do_target_wait_1 instead of do_target_wait.
13649 (fetch_inferior_event): Adjust. Switch to representative
13650 inferior. Pass target down.
13651 (set_last_target_status): Add process_stratum_target parameter.
13652 Save target in global.
13653 (get_last_target_status): Add process_stratum_target parameter and
13654 handle it.
13655 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13656 (context_switch): Check inferior_ptid == null_ptid before calling
13657 inferior_thread().
13658 (get_inferior_stop_soon): Pass down target.
13659 (wait_one): Rename to ...
13660 (poll_one_curr_target): ... this.
13661 (struct wait_one_event): New.
13662 (wait_one): New.
13663 (stop_all_threads): Adjust.
13664 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13665 event's target.
13666 (switch_back_to_stepped_thread): Also consider target.
13667 (print_stop_event): Update.
13668 (normal_stop): Update. Also consider the resume target.
13669 * infrun.h (wait_for_inferior): Remove declaration.
13670 (user_visible_resume_target): New declaration.
13671 (get_last_target_status, set_last_target_status): New
13672 process_stratum_target parameter.
13673 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13674 process_stratum_target parameter, and use it.
13675 (clear_inline_frame_state (thread_info*)): New.
13676 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13677 process_stratum_target parameter.
13678 (clear_inline_frame_state (thread_info*)): Declare.
13679 * linux-fork.c (delete_checkpoint_command): Pass target down to
13680 find_thread_ptid.
13681 (checkpoint_command): Adjust.
13682 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13683 instead of just tweaking inferior_ptid.
13684 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13685 (exit_lwp): Pass target down to find_thread_ptid.
13686 (attach_proc_task_lwp_callback): Pass target down to
13687 add_thread/set_running/set_executing.
13688 (linux_nat_target::attach): Pass target down to
13689 thread_change_ptid.
13690 (get_detach_signal): Pass target down to find_thread_ptid.
13691 Consider last target status's target.
13692 (linux_resume_one_lwp_throw, resume_lwp)
13693 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13694 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13695 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13696 (linux_nat_target::async_wait_fd): New.
13697 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13698 target down.
13699 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13700 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13701 * linux-thread-db.c (struct thread_db_info::process_target): New
13702 field.
13703 (add_thread_db_info): Save target.
13704 (get_thread_db_info): New process_stratum_target parameter. Also
13705 match target.
13706 (delete_thread_db_info): New process_stratum_target parameter.
13707 Also match target.
13708 (thread_from_lwp): Adjust to pass down target.
13709 (thread_db_notice_clone): Pass down target.
13710 (check_thread_db_callback): Pass down target.
13711 (try_thread_db_load_1): Always push the thread_db target.
13712 (try_thread_db_load, record_thread): Pass target down.
13713 (thread_db_target::detach): Pass target down. Always unpush the
13714 thread_db target.
13715 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13716 target down. Always unpush the thread_db target.
13717 (find_new_threads_callback, thread_db_find_new_threads_2)
13718 (thread_db_target::update_thread_list): Pass target down.
13719 (thread_db_target::pid_to_str): Pass current inferior down.
13720 (thread_db_target::get_thread_local_address): Pass target down.
13721 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13722 target down.
13723 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13724 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13725 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13726 (procfs_init_inferior): Rename to ...
13727 (procfs_target::procfs_init_inferior): ... this and adjust.
13728 (procfs_target::create_inferior, procfs_notice_thread)
13729 (procfs_do_thread_registers): Adjust.
13730 * ppc-fbsd-tdep.c: Include "inferior.h".
13731 (ppcfbsd_get_thread_local_address): Pass down target.
13732 * proc-service.c (ps_xfer_memory): Switch current inferior and
13733 program space as well.
13734 (get_ps_regcache): Pass target down.
13735 * process-stratum-target.c
13736 (process_stratum_target::thread_address_space)
13737 (process_stratum_target::thread_architecture): Pass target down.
13738 * process-stratum-target.h
13739 (process_stratum_target::threads_executing): New field.
13740 (as_process_stratum_target): New.
13741 * ravenscar-thread.c
13742 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13743 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13744 down.
13745 * record-btrace.c (record_btrace_target::info_record): Adjust.
13746 (record_btrace_target::record_method)
13747 (record_btrace_target::record_is_replaying)
13748 (record_btrace_target::fetch_registers)
13749 (get_thread_current_frame_id, record_btrace_target::resume)
13750 (record_btrace_target::wait, record_btrace_target::stop): Pass
13751 target down.
13752 * record-full.c (record_full_wait_1): Switch to event thread.
13753 Pass target down.
13754 * regcache.c (regcache::regcache)
13755 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13756 process_stratum_target parameter and handle it.
13757 (current_thread_target): New global.
13758 (get_thread_regcache): Add process_stratum_target parameter and
13759 handle it. Switch inferior before calling target method.
13760 (get_thread_regcache): Pass target down.
13761 (get_thread_regcache_for_ptid): Pass target down.
13762 (registers_changed_ptid): Add process_stratum_target parameter and
13763 handle it.
13764 (registers_changed_thread, registers_changed): Pass target down.
13765 (test_get_thread_arch_aspace_regcache): New.
13766 (current_regcache_test): Define a couple local test_target_ops
13767 instances and use them for testing.
13768 (readwrite_regcache): Pass process_stratum_target parameter.
13769 (cooked_read_test, cooked_write_test): Pass mock_target down.
13770 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13771 (get_thread_arch_aspace_regcache): Add process_stratum_target
13772 parameter.
13773 (regcache::target): New method.
13774 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13775 (regcache::registers_changed_ptid): Add process_stratum_target
13776 parameter.
13777 (regcache::m_target): New field.
13778 (registers_changed_ptid): Add process_stratum_target parameter.
13779 * remote.c (remote_state::supports_vCont_probed): New field.
13780 (remote_target::async_wait_fd): New method.
13781 (remote_unpush_and_throw): Add remote_target parameter.
13782 (get_current_remote_target): Adjust.
13783 (remote_target::remote_add_inferior): Push target.
13784 (remote_target::remote_add_thread)
13785 (remote_target::remote_notice_new_inferior)
13786 (get_remote_thread_info): Pass target down.
13787 (remote_target::update_thread_list): Skip threads of inferiors
13788 bound to other targets. (remote_target::close): Don't discard
13789 inferiors. (remote_target::add_current_inferior_and_thread)
13790 (remote_target::process_initial_stop_replies)
13791 (remote_target::start_remote)
13792 (remote_target::remote_serial_quit_handler): Pass down target.
13793 (remote_target::remote_unpush_target): New remote_target
13794 parameter. Unpush the target from all inferiors.
13795 (remote_target::remote_unpush_and_throw): New remote_target
13796 parameter. Pass it down.
13797 (remote_target::open_1): Check whether the current inferior has
13798 execution instead of checking whether any inferior is live. Pass
13799 target down.
13800 (remote_target::remote_detach_1): Pass down target. Use
13801 remote_unpush_target.
13802 (extended_remote_target::attach): Pass down target.
13803 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13804 (remote_target::append_resumption): Pass down target.
13805 (remote_target::append_pending_thread_resumptions)
13806 (remote_target::remote_resume_with_hc, remote_target::resume)
13807 (remote_target::commit_resume): Pass down target.
13808 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13809 (remote_target::interrupt_query)
13810 (remote_target::remove_new_fork_children)
13811 (remote_target::check_pending_events_prevent_wildcard_vcont)
13812 (remote_target::remote_parse_stop_reply)
13813 (remote_target::process_stop_reply): Pass down target.
13814 (first_remote_resumed_thread): New remote_target parameter. Pass
13815 it down.
13816 (remote_target::wait_as): Pass down target.
13817 (unpush_and_perror): New remote_target parameter. Pass it down.
13818 (remote_target::readchar, remote_target::remote_serial_write)
13819 (remote_target::getpkt_or_notif_sane_1)
13820 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13821 down target.
13822 (remote_target::mourn_inferior): Pass down target. Use
13823 remote_unpush_target.
13824 (remote_target::core_of_thread)
13825 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13826 (remote_target::pid_to_exec_file)
13827 (remote_target::thread_handle_to_thread_info): Pass down target.
13828 (remote_target::async_wait_fd): New.
13829 * riscv-fbsd-tdep.c: Include "inferior.h".
13830 (riscv_fbsd_get_thread_local_address): Pass down target.
13831 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13832 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13833 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13834 Adjust.
13835 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13836 * solib-svr4.c (enable_break): Pass down target.
13837 * spu-multiarch.c (parse_spufs_run): Pass down target.
13838 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13839 * target-delegates.c: Regenerate.
13840 * target.c (g_target_stack): Delete.
13841 (current_top_target): Return the current inferior's top target.
13842 (target_has_execution_1): Refer to the passed-in inferior's top
13843 target.
13844 (target_supports_terminal_ours): Check whether the initial
13845 inferior was already created.
13846 (decref_target): New.
13847 (target_stack::push): Incref/decref the target.
13848 (push_target, push_target, unpush_target): Adjust.
13849 (target_stack::unpush): Defref target.
13850 (target_is_pushed): Return bool. Adjust to refer to the current
13851 inferior's target stack.
13852 (dispose_inferior): Delete, and inline parts ...
13853 (target_preopen): ... here. Only dispose of the current inferior.
13854 (target_detach): Hold strong target reference while detaching.
13855 Pass target down.
13856 (target_thread_name): Add assertion.
13857 (target_resume): Pass down target.
13858 (target_ops::beneath, find_target_at): Adjust to refer to the
13859 current inferior's target stack.
13860 (get_dummy_target): New.
13861 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13862 has a thread running.
13863 (initialize_targets): Rename to ...
13864 (_initialize_target): ... this.
13865 * target.h: Include "gdbsupport/refcounted-object.h".
13866 (struct target_ops): Inherit refcounted_object.
13867 (target_ops::shortname, target_ops::longname): Make const.
13868 (target_ops::async_wait_fd): New method.
13869 (decref_target): Declare.
13870 (struct target_ops_ref_policy): New.
13871 (target_ops_ref): New typedef.
13872 (get_dummy_target): Declare function.
13873 (target_is_pushed): Return bool.
13874 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
13875 (all_matching_threads_iterator::all_matching_threads_iterator):
13876 Handle filter target.
13877 * thread-iter.h (struct all_matching_threads_iterator, struct
13878 all_matching_threads_range, class all_non_exited_threads_range):
13879 Filter by target too. Remove explicit.
13880 * thread.c (threads_executing): Delete.
13881 (inferior_thread): Pass down current inferior.
13882 (clear_thread_inferior_resources): Pass down thread pointer
13883 instead of ptid_t.
13884 (add_thread_silent, add_thread_with_info, add_thread): Add
13885 process_stratum_target parameter. Use it for thread and inferior
13886 searches.
13887 (is_current_thread): New.
13888 (thread_info::deletable): Use it.
13889 (find_thread_ptid, thread_count, in_thread_list)
13890 (thread_change_ptid, set_resumed, set_running): New
13891 process_stratum_target parameter. Pass it down.
13892 (set_executing): New process_stratum_target parameter. Pass it
13893 down. Adjust reference to 'threads_executing'.
13894 (threads_are_executing): New process_stratum_target parameter.
13895 Adjust reference to 'threads_executing'.
13896 (set_stop_requested, finish_thread_state): New
13897 process_stratum_target parameter. Pass it down.
13898 (switch_to_thread): Also match inferior.
13899 (switch_to_thread): New process_stratum_target parameter. Pass it
13900 down.
13901 (update_threads_executing): Reimplement.
13902 * top.c (quit_force): Pop targets from all inferior.
13903 (gdb_init): Don't call initialize_targets.
13904 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13905 Declare.
13906 (windows_add_thread, windows_delete_thread): Adjust.
13907 (get_windows_debug_event): Rename to ...
13908 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13909 * tracefile-tfile.c (tfile_target_open): Pass down target.
13910 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13911 Forward declare.
13912 (switch_to_thread): Add process_stratum_target parameter.
13913 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13914 parameter. Use it.
13915 (mi_on_resume): Pass target down.
13916 * nat/fork-inferior.c (startup_inferior): Add
13917 process_stratum_target parameter. Pass it down.
13918 * nat/fork-inferior.h (startup_inferior): Add
13919 process_stratum_target parameter.
13920 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13921
75c6c844
PA
139222020-01-10 Pedro Alves <palves@redhat.com>
13923
13924 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13925 directly. Instead find the first thread in the thread list and
13926 use switch_to_thread.
13927
78f2c40a
PA
139282020-01-10 Pedro Alves <palves@redhat.com>
13929
13930 * remote.c (remote_target::remote_add_inferior): Don't bind a
13931 process to the current inferior if the current inferior is already
13932 bound to a process.
13933
e7af6c70
TBA
139342020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13935 Pedro Alves <palves@redhat.com>
13936
13937 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13938 If no process is specified, return null_ptid instead of
13939 inferior_ptid.
13940 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13941 TARGET_WAITKIND_SIGNALLED with no pid.
13942
31ba933e
PA
139432020-01-10 Pedro Alves <palves@redhat.com>
13944
13945 * remote.c (first_remote_resumed_thread): New.
13946 (remote_target::wait_as): Use it as default event_ptid instead of
13947 inferior_ptid.
13948
735fc2ca
PA
139492020-01-10 Pedro Alves <palves@redhat.com>
13950
13951 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13952
c17e02e1
PA
139532020-01-10 Pedro Alves <palves@redhat.com>
13954
13955 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13956 not -1.
13957
ab1ddbcf
PA
139582020-01-10 Pedro Alves <palves@redhat.com>
13959
13960 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13961 ptid to get_last_target_status.
13962 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13963 ptid to get_last_target_status.
13964 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13965 get_last_target_status.
13966 (info_program_command): Don't pass a target_waitstatus to
13967 get_last_target_status.
13968 * infrun.c (init_wait_for_inferior): Use
13969 nullify_last_target_wait_ptid.
13970 (get_last_target_status): Handle nullptr arguments.
13971 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13972 (print_stop_event): Don't pass a ptid to get_last_target_status.
13973 (normal_stop): Don't pass a ptid to get_last_target_status.
13974 * infrun.h (get_last_target_status, set_last_target_status): Move
13975 comments here and update.
13976 (nullify_last_target_wait_ptid): Declare.
13977 * linux-fork.c (fork_load_infrun_state): Remove local extern
13978 declaration of nullify_last_target_wait_ptid.
13979 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13980 to get_last_target_status.
13981
f3f8ece4
PA
139822020-01-10 Pedro Alves <palves@redhat.com>
13983
13984 * gdbthread.h (scoped_restore_current_thread)
13985 <dont_restore, restore, m_dont_restore>: Declare.
13986 * thread.c (thread_alive): Add assertion. Return bool.
13987 (switch_to_thread_if_alive): New.
13988 (prune_threads): Switch inferior/thread.
13989 (print_thread_info_1): Switch thread before calling target methods.
13990 (scoped_restore_current_thread::restore): New, factored out from
13991 ...
13992 (scoped_restore_current_thread::~scoped_restore_current_thread):
13993 ... this.
13994 (scoped_restore_current_thread::scoped_restore_current_thread):
13995 Add assertion.
13996 (thread_apply_all_command, thread_select): Use
13997 switch_to_thread_if_alive.
13998 * infrun.c (proceed, restart_threads, handle_signal_stop)
13999 (switch_back_to_stepped_thread): Switch current thread before
14000 calling target methods.
14001
db2d40f7
PA
140022020-01-10 Pedro Alves <palves@redhat.com>
14003
14004 * inferior.c (switch_to_inferior_no_thread): New function,
14005 factored out from ...
14006 (inferior_command): ... here.
14007 * inferior.h (switch_to_inferior_no_thread): Declare.
14008 * mi/mi-main.c (run_one_inferior): Use
14009 switch_to_inferior_no_thread.
14010
bd420a2d
PA
140112020-01-10 Pedro Alves <palves@redhat.com>
14012
14013 * infcmd.c (kill_command): Remove dead code.
14014
ddf5db90
PA
140152020-01-10 Pedro Alves <palves@redhat.com>
14016
14017 * remote.c (remote_target::mourn_inferior): No longer check
14018 whether the target is running.
14019
5018ce90
PA
140202020-01-10 Pedro Alves <palves@redhat.com>
14021
14022 * corelow.c (core_target::has_execution): Change parameter type to
14023 inferior pointer.
14024 * inferior.c (number_of_live_inferiors): Use
14025 inferior::has_execution instead of target_has_execution_1.
14026 * inferior.h (inferior::has_execution): New.
14027 * linux-thread-db.c (thread_db_target::update_thread_list): Use
14028 inferior::has_execution instead of target_has_execution_1.
14029 * process-stratum-target.c
14030 (process_stratum_target::has_execution): Change parameter type to
14031 inferior pointer. Check the inferior's PID instead of
14032 inferior_ptid.
14033 * process-stratum-target.h
14034 (process_stratum_target::has_execution): Change parameter type to
14035 inferior pointer.
14036 * record-full.c (record_full_core_target::has_execution): Change
14037 parameter type to inferior pointer.
14038 * target.c (target_has_execution_1): Change parameter type to
14039 inferior pointer.
14040 (target_has_execution_current): Adjust.
14041 * target.h (target_ops::has_execution): Change parameter type to
14042 inferior pointer.
14043 (target_has_execution_1): Change parameter type to inferior
14044 pointer. Change return type to bool.
14045 * tracefile.h (tracefile_target::has_execution): Change parameter
14046 type to inferior pointer.
14047
74375d18
PA
140482020-01-10 Pedro Alves <palves@redhat.com>
14049
14050 * exceptions.c (print_flush): Remove current_top_target() check.
14051
acdf84a6
PA
140522020-01-10 Pedro Alves <palves@redhat.com>
14053
14054 * remote.c (show_remote_exec_file): Show the current inferior's
14055 exec-file instead of the command variable's value.
14056
ec506636
PA
140572020-01-10 Pedro Alves <palves@redhat.com>
14058
14059 * record-full.c (record_full_resume_ptid): New global.
14060 (record_full_target::resume): Set it.
14061 (record_full_wait_1): Use record_full_resume_ptid instead of
14062 inferior_ptid.
14063
873657b9
PA
140642020-01-10 Pedro Alves <palves@redhat.com>
14065
14066 * gdbthread.h (scoped_restore_current_thread)
14067 <dont_restore, restore, m_dont_restore>: Declare.
14068 * thread.c (thread_alive): Add assertion. Return bool.
14069 (switch_to_thread_if_alive): New.
14070 (prune_threads): Switch inferior/thread.
14071 (print_thread_info_1): Switch thread before calling target methods.
14072 (scoped_restore_current_thread::restore): New, factored out from
14073 ...
14074 (scoped_restore_current_thread::~scoped_restore_current_thread):
14075 ... this.
14076 (scoped_restore_current_thread::scoped_restore_current_thread):
14077 Add assertion.
14078 (thread_apply_all_command, thread_select): Use
14079 switch_to_thread_if_alive.
14080
7f0ae84c
GB
140812020-01-10 George Barrett <bob@bob131.so>
14082
14083 * stap-probe.c (stap_modify_semaphore): Don't check for null
14084 semaphores.
14085 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
14086 for null semaphores.
14087
f5a7c406
AB
140882020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14089
14090 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
14091 all source windows, and maintain horizontal scroll status while
14092 doing so.
14093
9ae6bf64
TT
140942020-01-09 Tom Tromey <tom@tromey.com>
14095
14096 PR tui/18932:
14097 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
14098 update_source_window, not print_source_lines.
14099
b2efe70c
AB
141002020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14101
14102 * tui/tui.c (tui_enable): Register tui hooks after calling
14103 tui_display_main.
14104
5f23a082
CB
141052020-01-09 Christian Biesinger <cbiesinger@google.com>
14106
14107 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
14108
3061113b
SM
141092020-01-08 Simon Marchi <simon.marchi@efficios.com>
14110
14111 * thread.c (print_thread_info_1): Fix indentation.
14112
57d75002
CB
141132020-01-09 Christian Biesinger <cbiesinger@google.com>
14114
14115 * symtab.c (general_symbol_info::compute_and_set_names): Move the
14116 unique_xmalloc_ptr outside the if to always free the demangled name.
14117
6a053cb1
TT
141182020-01-08 Tom Tromey <tromey@adacore.com>
14119
14120 * xcoffread.c (enter_line_range, read_xcoff_symtab)
14121 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
14122 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
14123 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
14124 Remove.
14125 (section_offsets): New typedef.
14126 * symtab.c (fixup_section, get_msymbol_address): Update.
14127 * symmisc.c (dump_msymbols): Update.
14128 * symfile.h (relative_addr_info_to_section_offsets)
14129 (symfile_map_offsets_to_segments): Update.
14130 * symfile.c (build_section_addr_info_from_objfile)
14131 (init_objfile_sect_indices): Update.
14132 (struct place_section_arg): Change type of "offsets".
14133 (place_section): Update.
14134 (relative_addr_info_to_section_offsets): Change type of
14135 "section_offsets". Remove "num_sections" parameter.
14136 (default_symfile_offsets, syms_from_objfile_1)
14137 (set_objfile_default_section_offset): Update.
14138 (reread_symbols): No need to preserve section offsets by hand.
14139 (symfile_map_offsets_to_segments): Change type of "offsets".
14140 * stap-probe.c (relocate_address): Update.
14141 * stabsread.h (process_one_symbol): Update.
14142 * solib-target.c (struct lm_info_target) <offsets>: Change type.
14143 (solib_target_relocate_section_addresses): Update.
14144 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
14145 Update.
14146 * solib-frv.c (frv_relocate_main_executable): Update.
14147 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
14148 * solib-aix.c (solib_aix_get_section_offsets): Change return
14149 type.
14150 (solib_aix_solib_create_inferior_hook): Update.
14151 * remote.c (remote_target::get_offsets): Update.
14152 * psymtab.c (find_pc_sect_psymtab): Update.
14153 * psympriv.h (struct partial_symbol) <address, text_low,
14154 text_high>: Update.
14155 * objfiles.h (obj_section_offset): Update.
14156 (struct objfile) <section_offsets>: Change type.
14157 <num_sections>: Remove.
14158 (objfile_relocate): Update.
14159 * objfiles.c (entry_point_address_query): Update
14160 (relocate_one_symbol): Change type of "section_offsets".
14161 (objfile_relocate1, objfile_relocate1): Change type of
14162 "new_offsets".
14163 (objfile_rebase1): Update.
14164 * mipsread.c (mipscoff_symfile_read): Update.
14165 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
14166 parameter.
14167 * mdebugread.c (parse_symbol): Change type of "section_offsets".
14168 (parse_external, psymtab_to_symtab_1): Update.
14169 * machoread.c (macho_symfile_offsets): Update.
14170 * ia64-tdep.c (ia64_find_unwind_table): Update.
14171 * hppa-tdep.c (read_unwind_info): Update.
14172 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
14173 * dwarf2read.c (create_addrmap_from_index)
14174 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14175 (process_psymtab_comp_unit_reader, add_partial_symbol)
14176 (add_partial_subprogram, process_full_comp_unit)
14177 (read_file_scope, read_func_scope, read_lexical_block_scope)
14178 (read_call_site_scope, dwarf2_rnglists_process)
14179 (dwarf2_ranges_process, dwarf2_ranges_read)
14180 (dwarf_decode_lines_1, var_decode_location, new_symbol)
14181 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
14182 Update.
14183 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14184 Update.
14185 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14186 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14187 (process_one_symbol): Change type of "section_offsets".
14188 * ctfread.c (get_objfile_text_range): Update.
14189 * coffread.c (coff_symtab_read, enter_linenos)
14190 (process_coff_symbol): Update.
14191 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14192 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14193
456e800a
TT
141942020-01-08 Tom Tromey <tromey@adacore.com>
14195
14196 * dwarf2read.c (parse_macro_definition): Use std::string.
14197 (parse_macro_definition): Likewise.
14198
6dfa2fc2
TT
141992020-01-08 Tom Tromey <tromey@adacore.com>
14200
14201 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14202 (ATTR_ALLOC_CHUNK): Remove.
14203
421d1616
TT
142042020-01-08 Tom Tromey <tromey@adacore.com>
14205
14206 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14207
43816ebc
TT
142082020-01-08 Tom Tromey <tromey@adacore.com>
14209
14210 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14211 (dwarf2_compute_name, open_dwo_file): Likewise.
14212 (process_enumeration_scope): Use std::vector.
14213 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14214 (partial_die_info::fixup, dwarf2_start_subfile)
14215 (guess_full_die_structure_name, dwarf2_name): Likewise.
14216 (determine_prefix): Update.
14217 (guess_full_die_structure_name): Make return type const.
14218 (partial_die_full_name): Return unique_xmalloc_ptr.
14219 (DW_FIELD_ALLOC_CHUNK): Remove.
14220
4212d509
TT
142212020-01-07 Tom Tromey <tromey@adacore.com>
14222
14223 PR build/24937:
14224 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14225
06a6207a
JT
142262020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14227
14228 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14229
153d79c4
AB
142302020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14231
14232 * stack.c (print_frame_info): Move disassemble_next_line code
14233 inside source_print block.
14234
66182876
EZ
142352020-01-06 Eli Zaretskii <eliz@gnu.org>
14236
14237 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14238 gdb/signals.h, as we are now using native signal symbols.
14239
cbfa8581
SV
142402020-01-06 Shahab Vahedi <shahab@synopsys.com>
14241
14242 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14243 overflow by an early check of content vs threshold.
aac66a4c 14244 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
14245 Likewise.
14246
3f602821
EZ
142472020-01-06 Eli Zaretskii <eliz@gnu.org>
14248
14249 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14250
a08c904d
JT
142512020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14252
14253 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14254 export table if no section contains it's RVA.
14255
89a65580
EZ
142562020-01-06 Eli Zaretskii <eliz@gnu.org>
14257
14258 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14259
8b7fcda2
HD
142602020-01-06 Hannes Domani <ssbssa@yahoo.de>
14261
14262 * source.c (print_source_lines_base): Set last_line_listed.
14263
a61b4f69
SV
142642020-01-06 Shahab Vahedi <shahab@synopsys.com>
14265
14266 * tui/tui-disasm.c: Remove trailing spaces.
14267
559e7e50
EZ
142682020-01-06 Eli Zaretskii <eliz@gnu.org>
14269 Pedro Alves <palves@redhat.com>
14270
14271 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14272 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14273 (windows_gdb_signal_to_target): New function, uses the above
14274 enumeration to convert GDB internal signal codes to equivalent
14275 Windows codes.
14276 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14277 * windows-nat.c: Include "gdb_wait.h".
14278 (get_windows_debug_event): Extract the fatal exception from the
14279 exit status and convert to the equivalent Posix signal number.
14280 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14281 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14282 * gdbsupport/gdb_wait.c: New file, implements
14283 windows_status_to_termsig.
14284 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14285 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14286
f2302a34
AB
142872020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14288
14289 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14290 show_layout.
14291
6a5206eb
LM
142922020-01-05 Luis Machado <luis.machado@linaro.org>
14293
14294 * aarch64-linux-nat.c
14295 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14296 and bfd_mach_aarch64.
14297
6ec1d75e
PW
142982020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14299
14300 * ui-file.c (stdio_file::can_emit_style_escape)
14301 (tee_file::can_emit_style_escape): Ensure style is used also on
14302 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14303 to gdb_stdout.
14304 * main.c (set_gdb_data_directory): Use file style to output the
14305 warning that the given pathname is not a directory.
14306 * top.c (show_history_filename, gdb_safe_append_history)
14307 (show_gdb_datadir): Use file style.
14308
44f81a76
HD
143092020-01-03 Hannes Domani <ssbssa@yahoo.de>
14310
14311 * solib-target.c (struct lm_info_target):
14312 Change offsets to be a unique_xmalloc_ptr.
14313 (solib_target_relocate_section_addresses): Update.
14314
25057eb0
HD
143152020-01-03 Hannes Domani <ssbssa@yahoo.de>
14316
14317 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14318
6e2118f5
BE
143192020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14320
14321 * MAINTAINERS (Write After Approval): Add myself.
14322
8133c7dc
LM
143232020-01-02 Luis Machado <luis.machado@linaro.org>
14324
14325 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14326 Cell BE architecture.
14327 * target.h (struct target_ops) <thread_architecture>: Likewise.
14328
48189bec
HD
143292020-01-01 Hannes Domani <ssbssa@yahoo.de>
14330
14331 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14332
ead1063b
HD
143332020-01-01 Hannes Domani <ssbssa@yahoo.de>
14334
14335 * MAINTAINERS (Write After Approval): Add myself.
14336
e5d78223
JB
143372020-01-01 Joel Brobecker <brobecker@adacore.com>
14338
14339 * gdbarch.sh: Update copyright year range of generated files.
14340
b811d2c2
JB
143412020-01-01 Joel Brobecker <brobecker@adacore.com>
14342
14343 Update copyright year range in all GDB files.
14344
5f4def5c
JB
143452020-01-01 Joel Brobecker <brobecker@adacore.com>
14346
14347 * copyright.py: Convert to Python 3.
14348
51fd4002
JB
143492020-01-01 Joel Brobecker <brobecker@adacore.com>
14350
14351 * copyright.py: Adapt after move of gnulib directory from gdb
14352 directory to toplevel directory.
14353
5fb651f2
JB
143542020-01-01 Joel Brobecker <brobecker@adacore.com>
14355
14356 * copyright.py (main): Exit if run from the wrong directory.
14357
5dd8bf88
JB
143582020-01-01 Joel Brobecker <brobecker@adacore.com>
14359
14360 * top.c (print_gdb_version): Change copyright year to 2020.
14361
9f71dacb 143622020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 14363
9f71dacb 14364 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 14365
9f71dacb 14366For older changes see ChangeLog-2019.
c906108c
SS
14367\f
14368Local Variables:
14369mode: change-log
14370left-margin: 8
14371fill-column: 74
14372version-control: never
57da7796 14373coding: utf-8
c906108c 14374End: