This patch adds support for Cortex-X1 for ARM.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
2c72d5e5
TT
12020-09-27 Tom Tromey <tom@tromey.com>
2
3 PR tui/25342:
4 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
5
35a98237
TT
62020-09-27 Tom Tromey <tom@tromey.com>
7
8 PR tui/25342:
9 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
10
9e820dec
TT
112020-09-27 Tom Tromey <tom@tromey.com>
12
13 * unittests/tui-selftests.c: Update.
14 * tui/tui-winsource.h (struct tui_source_window_base)
15 <extra_margin, show_line_number, refresh_pad>: New methods.
16 <m_max_length, m_pad>: New members.
17 (tui_copy_source_line): Update.
18 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
19 first_col, line_width, ndigits parameters. Add length.
20 (tui_source_window_base::show_source_line): Write to pad. Line
21 number now 0-based.
22 (tui_source_window_base::refresh_pad): New method.
23 (tui_source_window_base::show_source_content): Write to pad. Call
24 refresh_pad.
25 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
26 not refill.
27 (tui_source_window_base::update_exec_info): Call
28 show_line_number.
29 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
30 method.
31 <m_digits>: New member.
32 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
33 and m_max_length.
34 (tui_source_window::show_line_number): New method.
35 * tui/tui-io.h (tui_puts): Fix comment.
36 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
37 m_max_length.
38
c15c15c8
TT
392020-09-27 Tom Tromey <tom@tromey.com>
40
41 * tui/tui-winsource.c
42 (tui_source_window_base::set_is_exec_point_at): Don't call
43 show_source_line.
44
149830c1
TT
452020-09-27 Tom Tromey <tom@tromey.com>
46
47 * python/py-tui.c (class tui_py_window) <refresh_window>: New
48 method.
49 <erase>: Update.
50 <cursor_x, cursor_y>: Remove.
51 <m_inner_window>: New member.
52 (tui_py_window::rerender): Create inner window.
53 (tui_py_window::output): Write to inner window.
54
8f9929bb
GR
552020-09-26 Gareth Rees <grees@undo.io> (tiny change)
56
57 PR python/26586
58 * cli/cli-script.c (execute_control_commands): don't set
59 instream to nullptr here as this breaks the from_tty argument
60 to gdb.execute in Python.
61 (execute_user_command): set instream to nullptr here instead.
62
956bdb59
SM
632020-09-25 Simon Marchi <simon.marchi@efficios.com>
64
65 * infrun.h (infrun_debug_printf): Fix formatting.
66 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
67
3b93626b
SJ
682020-09-25 Saagar Jha <saagar@saagarjha.com>
69
70 * compile/compile-object-load.h (struct munmap_list): Add
71 explicitly-defined move constructor.
72
b551a89f
TT
732020-09-24 Tom Tromey <tromey@adacore.com>
74
75 PR tui/26638:
76 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
77 method.
78 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
79 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
80 (tui_prev_win): Rewrite.
81
99bb393f
HD
822020-09-23 Hannes Domani <ssbssa@yahoo.de>
83
84 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
85 in WOW64 processes as SIGINT.
86 * nat/windows-nat.h: Make wow64_process a shared variable.
87 * windows-nat.c: Remove static wow64_process variable.
88
20a5fcbd
TT
892020-09-23 Tom Tromey <tom@tromey.com>
90
91 PR symtab/25470:
92 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
93 offset and bit size.
94 * printcmd.c (print_scalar_formatted): Handle zero-length
95 integer.
96 (print_scalar_formatted): Use bit_size_differs_p.
97 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
98 constant.
99 (union type_specific): <int_stuff>: New member.
100 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
101 methods.
102 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
103 TYPE_SPECIFIC_FIELD.
104 (recursive_dump_type, copy_type_recursive): Update.
105 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
106 DW_AT_data_bit_offset.
107
bac51ab7
TT
1082020-09-23 Tom Tromey <tom@tromey.com>
109
110 * utils.h (class gdb_argv): Add move operators.
111 <append>: New methods.
112 * compile/compile.c (build_argc_argv): Remove.
113 (compile_args_argc): Remove.
114 (compile_args_argv): Change type.
115 (set_compile_args): Simplify.
116 (append_args): Remove.
117 (filter_args): Remove argcp parameter.
118 (get_args): Return gdb_argv. Simplify.
119 (compile_to_object): Update.
120
92677124
TT
1212020-09-23 Tom Tromey <tom@tromey.com>
122
123 * compile/compile-object-run.c (do_module_cleanup)
124 <~do_module_cleanup> :Remove.
125 (do_module_cleanup): Update.
126 * compile/compile-object-load.h (struct munmap_list): Add move
127 assignment operator.
128 <source_file>: Now a std::string.
129 <munmap_list>: Rename. No longer a pointer.
130 * compile/compile-object-load.c (struct setup_sections_data): Add
131 constructor.
132 <setup_one_section>: Declare.
133 <munmap_list>: Move earlier.
134 <m_bfd>: New member.
135 <m_last_size, m_last_section_first, m_last_prot,
136 m_last_max_alignment>: Rename, add initializers where needed.
137 (setup_sections_data::setup_one_section): Rename from
138 setup_sections. Update.
139 (compile_object_load): Update. Don't use bfd_map_over_sections.
140
e616f60a
TT
1412020-09-23 Tom Tromey <tom@tromey.com>
142
143 * compile/compile-object-run.c (struct do_module_cleanup): Add
144 parameters to constructor. Update destructor.
145 <source_file, scope, scope_data, out_value_type, out_value_addr,
146 munmap_list_head, objfile_name_string>: Remove.
147 <module>: New member.
148 (do_module_cleanup): Update.
149 (compile_object_run): Update.
150
e947a848
TT
1512020-09-23 Tom Tromey <tom@tromey.com>
152
153 * compile/compile.c (eval_compile_command): Update.
154 * compile/compile-object-run.h (compile_object_run): Take a
155 compile_module_up.
156 * compile/compile-object-run.c (compile_object_run): Take a
157 compile_module_up.
158 * compile/compile-object-load.h (struct compile_module): Add
159 constructor, destructor.
160 (compile_module_up): New typedef.
161 (compile_object_load): Return compile_object_up.
162 * compile/compile-object-load.c (compile_object_load): Return
163 compile_module_up.
164
0dbf6ee6
TT
1652020-09-23 Tom Tromey <tom@tromey.com>
166
167 * compile/compile-object-run.c (struct do_module_cleanup): Add
168 constructor, destructor.
169 <objfile_name_string>: Don't use struct hack.
170 (do_module_cleanup): Use delete.
171 (compile_object_run): Use new.
172
ebe824f5
TT
1732020-09-23 Tom Tromey <tom@tromey.com>
174
175 * compile/compile-cplus-types.c
176 (compile_cplus_convert_struct_or_union): Use std::vector.
177 (compile_cplus_convert_func): Likewise.
178 * compile/compile-c-types.c (convert_func): Use std::vector.
179
5dd918d9
TT
1802020-09-21 Tom Tromey <tromey@adacore.com>
181
182 * sparc-tdep.c (sparc32_skip_prologue): Use
183 skip_prologue_using_sal.
184
5486c517
TT
1852020-09-19 Tom Tromey <tom@tromey.com>
186
187 * symfile.c (add_section_size_callback): Remove.
188 (load_one_section): Rename from load_section_callback. Change
189 parameters.
190 (generic_load): Use foreach.
191
8a6bb1d1
TT
1922020-09-19 Tom Tromey <tom@tromey.com>
193
194 * exec.c (add_to_section_table): Remove.
195 (build_section_table): Use foreach.
196
08f93a1a
TT
1972020-09-19 Tom Tromey <tom@tromey.com>
198
199 * elfread.c (elf_locate_sections): Change parameters.
200 (elf_symfile_read): Use foreach.
201
03cd72b8
TT
2022020-09-19 Tom Tromey <tom@tromey.com>
203
204 * cli/cli-dump.c (struct callback_data): Remove.
205 (restore_one_section): Rename from restore_section_callback.
206 Change parameters.
207 (restore_binary_file): Change parameters.
208 (restore_command): Use foreach.
209
f4f2b85f
TT
2102020-09-19 Tom Tromey <tom@tromey.com>
211
212 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
213 (gcore_copy_callback): Likewise.
214 (gcore_memory_sections): Use foreach.
215
b35c1d1c
TT
2162020-09-19 Tom Tromey <tom@tromey.com>
217
218 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
219 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
220 parameters.
221 (generic_elf_osabi_sniffer): Use foreach.
222 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
223 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
224
5bb6e9dd
TT
2252020-09-19 Tom Tromey <tom@tromey.com>
226
227 * dwarf2/read.c (locate_dwz_sections): Change parameters.
228 (dwarf2_get_dwz_file): Use foreach.
229 (dwarf2_locate_dwo_sections): Change parameters.
230 (open_and_init_dwo_file): Use foreach.
231 (dwarf2_locate_common_dwp_sections): Change parameters.
232 (open_and_init_dwp_file): Use foreach.
233
ad7277da
TT
2342020-09-19 Tom Tromey <tom@tromey.com>
235
236 * symfile.h: (find_lowest_section): Don't declare.
237 * symfile.c (find_lowest_section): Now static. Change
238 parameters.
239 (struct place_section_arg): Remove.
240 (place_section): Change parameters.
241 (addr_info_make_relative): Use foreach.
242 (symfile_dummy_outputs): Remove.
243 (default_symfile_relocate): Use foreach.
244
cb814f2e
TT
2452020-09-19 Tom Tromey <tom@tromey.com>
246
247 * objfiles.c (add_to_objfile_sections): Rename from
248 add_to_objfile_sections_full.
249 (add_to_objfile_sections): Remove.
250 (build_objfile_section_table): Use foreach.
251
3cabfd26
TT
2522020-09-19 Tom Tromey <tom@tromey.com>
253
254 * stap-probe.c (get_stap_base_address_1): Remove.
255 (get_stap_base_address): Use foreach.
256
1ce51eb5
TT
2572020-09-19 Tom Tromey <tom@tromey.com>
258
259 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
260 parameters.
261 (gdb_bfd_close_or_warn): Use foreach.
262
a190fabb
TT
2632020-09-19 Tom Tromey <tom@tromey.com>
264
265 * corelow.c (add_to_thread_list): Change parameters.
266 (core_target_open): Use foreach.
267
cafb0d81
TT
2682020-09-19 Tom Tromey <tom@tromey.com>
269
270 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
271 existing function.
272
c8d5abea
AB
2732020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
274
275 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
276 for arrays.
277
6d816919
AB
2782020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
279
280 * eval.c: Remove 'f-lang.h' include.
281 (value_f90_subarray): Moved to f-lang.c.
282 (eval_call): Renamed to...
283 (evaluate_subexp_do_call): ...this, is no longer static, header
284 comment moved into header file.
285 (evaluate_funcall): Update call to eval_call.
286 (skip_undetermined_arglist): Moved to f-lang.c.
287 (fortran_value_subarray): Likewise.
288 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
289 moved to evaluate_subexp_f.
290 (calc_f77_array_dims): Moved to f-lang.c
291 * expprint.c (print_subexp_funcall): New function.
292 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
293 moved to print_subexp_f, OP_FUNCALL uses new function.
294 (dump_subexp_body_funcall): New function.
295 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
296 moved to dump_subexp_f, OP_FUNCALL uses new function.
297 * expression.h (evaluate_subexp_do_call): Declare.
298 * f-lang.c (value_f90_subarray): Moved from eval.c.
299 (skip_undetermined_arglist): Likewise.
300 (calc_f77_array_dims): Likewise.
301 (fortran_value_subarray): Likewise.
302 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
303 (operator_length_f): Likewise.
304 (print_subexp_f): Likewise.
305 (dump_subexp_body_f): Likewise.
306 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
307 declaration of this operation to here.
308 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
309 support moved to operator_length_f.
310 * parser-defs.h (dump_subexp_body_funcall): Declare.
311 (print_subexp_funcall): Declare.
312 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
313 fortran-operator.def.
314
8c37706a
AB
3152020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
316
317 * eval.c (fortran_value_subarray): New function, content is taken
318 from...
319 (evaluate_subexp_standard): ...here, in two places. Now arrays
320 and strings both call the new function.
321 (calc_f77_array_dims): Add header comment, handle strings.
322
14f9473c
VC
3232020-09-18 Victor Collod <vcollod@nvidia.com>
324
325 PR gdb/26635
326 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
327 (i386_analyze_prologue): Call i386_skip_endbr.
328
b60cea74
TT
3292020-09-18 Tom Tromey <tromey@adacore.com>
330
331 * windows-nat.c (struct windows_nat_target) <wait>: Update.
332 (windows_nat_target::wait): Update.
333 * target/wait.h (enum target_wait_flag): New. Use
334 DEF_ENUM_FLAGS_TYPE.
335 * target/target.h (target_wait): Change type of options.
336 * target.h (target_options_to_string, default_target_wait):
337 Update.
338 (struct target_ops) <wait>: Change type of options.
339 * target.c (target_wait, default_target_wait, do_option): Change
340 type of "options".
341 (target_options_to_string): Likewise.
342 * target-delegates.c: Rebuild.
343 * target-debug.h (target_debug_print_target_wait_flags): Rename
344 from target_debug_print_options.
345 * sol-thread.c (class sol_thread_target) <wait>: Update.
346 (sol_thread_target::wait): Update.
347 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
348 (rs6000_nat_target::wait): Update.
349 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
350 Update.
351 (remote_target::wait_ns, remote_target::wait_as): Change type of
352 "options".
353 (remote_target::wait): Update.
354 * remote-sim.c (struct gdbsim_target) <wait>: Update.
355 (gdbsim_target::wait): Update.
356 * record-full.c (class record_full_base_target) <wait>: Update.
357 (record_full_wait_1): Change type of "options".
358 (record_full_base_target::wait): Update.
359 * record-btrace.c (class record_btrace_target) <wait>: Update.
360 (record_btrace_target::wait): Update.
361 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
362 Update.
363 (ravenscar_thread_target::wait): Update.
364 * procfs.c (class procfs_target) <wait>: Update.
365 (procfs_target::wait): Update.
366 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
367 * obsd-nat.c (obsd_nat_target::wait): Update.
368 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
369 (nto_procfs_target::wait): Update.
370 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
371 * nbsd-nat.c (nbsd_wait): Change type of "options".
372 (nbsd_nat_target::wait): Update.
373 * linux-thread-db.c (class thread_db_target) <wait>: Update.
374 (thread_db_target::wait): Update.
375 * linux-nat.h (class linux_nat_target) <wait>: Update.
376 * linux-nat.c (linux_nat_target::wait): Update.
377 (linux_nat_wait_1): Update.
378 * infrun.c (do_target_wait_1, do_target_wait): Change type of
379 "options".
380 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
381 * inf-ptrace.c (inf_ptrace_target::wait): Update.
382 * go32-nat.c (struct go32_nat_target) <wait>: Update.
383 (go32_nat_target::wait): Update.
384 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
385 * gnu-nat.c (gnu_nat_target::wait): Update.
386 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
387 * fbsd-nat.c (fbsd_nat_target::wait): Update.
388 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
389 * darwin-nat.c (darwin_nat_target::wait): Update.
390 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
391 (bsd_uthread_target::wait): Update.
392 * aix-thread.c (class aix_thread_target) <wait>: Update.
393 (aix_thread_target::wait): Update.
394
0295dde6
AB
3952020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
396
397 * compile/compile-object-run.c (create_copied_type_recursive): New
398 function.
399 (compile_object_run): Use new function.
400
d3483b43
JT
4012020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
402
403 * NEWS: Mention x86_64 Cygwin core file support.
404
e7d612ad
JT
4052020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
406
407 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
408 (core_process_module_section): Handle NOTE_INFO_MODULE64.
409
aff9d387
JT
4102020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
411
62a5151b
JT
412 * windows-tdep.h: Add prototypes.
413 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
414 (i386_windows_core_pid_to_str): Move and rename ...
415 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
416 (windows_core_pid_to_str): ... and here.
417 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
418
4192020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
420 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
421 (amd64_windows_init_abi_common): ... and register.
422
7d155da3
JT
4232020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
424
425 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
426 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
427
e8ef12b9
PA
4282020-09-18 Pedro Alves <pedro@palves.net>
429
430 PR gdb/26631
431 * thread.c (thread_find_command): Switch inferior before calling
432 target methods.
433
c1e1314d
TT
4342020-09-17 Tom Tromey <tromey@adacore.com>
435
436 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
437 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
438 (tdesc_arch_data_up): New typedef.
439 (tdesc_use_registers, tdesc_data_alloc): Update.
440 (tdesc_data_cleanup): Don't declare.
441 * target-descriptions.c (tdesc_data_alloc): Return a
442 tdesc_arch_data_up.
443 (tdesc_arch_data_deleter::operator()): Rename from
444 tdesc_data_cleanup. Change argument type.
445 (tdesc_use_registers): Change early_data to an rvalue reference.
446 (tdesc_use_registers): Don't use delete.
447 * sparc-tdep.c (sparc32_gdbarch_init): Update.
448 * s390-tdep.c (s390_gdbarch_init): Update.
449 * rx-tdep.c (rx_gdbarch_init): Update.
450 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
451 * riscv-tdep.c (riscv_gdbarch_init): Update.
452 * or1k-tdep.c (or1k_gdbarch_init): Update.
453 * nios2-tdep.c (nios2_gdbarch_init): Update.
454 * nds32-tdep.c (nds32_gdbarch_init): Update.
455 * mips-tdep.c (mips_gdbarch_init): Update.
456 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
457 * m68k-tdep.c (m68k_gdbarch_init): Update.
458 * i386-tdep.c (i386_gdbarch_init): Update.
459 * arm-tdep.c (arm_gdbarch_init): Update.
460 * arc-tdep.c (arc_tdesc_init): Update.
461 (arc_gdbarch_init): Update.
462 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
463
0363df3d
HD
4642020-09-17 Hannes Domani <ssbssa@yahoo.de>
465
466 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
467 for WOW64 processes.
468
280a9412
TT
4692020-09-17 Tom Tromey <tom@tromey.com>
470
471 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
472
6108fd18
TT
4732020-09-17 Tom Tromey <tom@tromey.com>
474
475 * value.c (preserve_values): Update.
476 * python/py-type.c (save_objfile_types): Update.
477 * guile/scm-type.c (save_objfile_types): Update.
478 * gdbtypes.h (create_copied_types_hash): Return htab_up.
479 * gdbtypes.c (create_copied_types_hash): Return htab_up.
480 * compile/compile-object-run.c (compile_object_run): Update.
481
fa9b1164
TT
4822020-09-17 Tom Tromey <tom@tromey.com>
483
484 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
485 Remove.
486 <m_table>: Now htab_up.
487 * typeprint.c (typedef_hash_table::recursively_update)
488 (typedef_hash_table::add_template_parameters)
489 (typedef_hash_table::typedef_hash_table): Update.
490 (typedef_hash_table::~typedef_hash_table): Remove.
491 (typedef_hash_table::typedef_hash_table)
492 (typedef_hash_table::find_global_typedef)
493 (typedef_hash_table::find_typedef): Update.
494
eb53f105
TT
4952020-09-17 Tom Tromey <tom@tromey.com>
496
497 * target-descriptions.c (tdesc_use_registers): Use htab_up.
498
7a8a5d47
TT
4992020-09-17 Tom Tromey <tom@tromey.com>
500
501 * linespec.c (class decode_compound_collector)
502 <~decode_compound_collector>: Remove.
503 <m_unique_syms>: Now htab_up.
504 (decode_compound_collector::operator ()): Update.
505 (class symtab_collector) <~symtab_collector>: Remove.
506 <m_symtab_table>: Now htab_up.
507 (symtab_collector::operator ()): Update.
508
99032cfc
TT
5092020-09-17 Tom Tromey <tom@tromey.com>
510
511 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
512 (filename_seen_cache::clear): Update.
513 (~filename_seen_cache): Remove.
514 (filename_seen_cache::seen): Update.
515 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
516 htab_up.
517 <~filename_seen_cache>: Remove.
518 <traverse>: Update.
519
32580f6d
TT
5202020-09-17 Tom Tromey <tom@tromey.com>
521
522 * completer.c (completion_tracker::discard_completions)
523 (completion_tracker::~completion_tracker)
524 (completion_tracker::maybe_add_completion)
525 (completion_tracker::remove_completion)
526 (completion_tracker::recompute_lowest_common_denominator)
527 (completion_tracker::build_completion_result): Update.
528 * completer.h (class completion_tracker) <have_completions>:
529 Update.
530 <m_entries_hash>: Now htab_up.
531
c1fb9836
TT
5322020-09-17 Tom Tromey <tom@tromey.com>
533
534 * breakpoint.c (ambiguous_names_p): Use htab_up.
535
88f07206
TT
5362020-09-17 Tom Tromey <tom@tromey.com>
537
538 * auto-load.c (struct auto_load_pspace_info)
539 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
540 <loaded_script_files, loaded_script_texts>: Change type to
541 htab_up.
542 (~auto_load_pspace_info) Remove.
543 (init_loaded_scripts_info, maybe_add_script_file)
544 (maybe_add_script_text, auto_load_info_scripts): Update.
545
9519b2ee
TT
5462020-09-17 Tom Tromey <tromey@adacore.com>
547
548 * c-exp.y (name_obstack): Now static.
549
d2cd4113
CC
5502020-09-17 Chungyi Chi <demonic@csie.io>
551
552 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
553
b650a282
SM
5542020-09-16 Simon Marchi <simon.marchi@efficios.com>
555
556 * breakpoint.h (init_catchpoint): Change int parameter to bool.
557 (add_solib_catchpoint): Likewise.
558 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
559 to bool.
560 (add_solib_catchpoint): Change int parameter/variable to bool.
561 (catch_load_or_unload): Likewise.
562 (init_catchpoint): Likewise.
563 (create_fork_vfork_event_catchpoint): Likewise.
564 (catch_fork_command_1): Likewise.
565 (catch_exec_command_1): Likewise.
566
4d0bcfcf
SM
5672020-09-16 Simon Marchi <simon.marchi@efficios.com>
568
569 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
570 Change instance_flags to m_instance_flags.
571
fe830662
TT
5722020-09-16 Tom Tromey <tromey@adacore.com>
573
574 PR gdb/26598:
575 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
576
fe5ddfc3
JB
5772020-09-16 John Baldwin <jhb@FreeBSD.org>
578
579 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
580 PL_FLAG_EXEC.
581 (fbsd_nat_target::insert_exec_catchpoint)
582 (fbsd_nat_target::remove_exec_catchpoint): Always define.
583 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
584 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
585
e911c666
JB
5862020-09-16 John Baldwin <jhb@FreeBSD.org>
587
588 * configure.ac: Remove check for kinfo_getvmmap().
589 * configure, config.in: Regenerate.
590 * fbsd-nat.c (fbsd_read_mapping): Remove
591 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
592 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
593 kinfo_get_vmmap() are always present.
594
1f17d372
JB
5952020-09-16 John Baldwin <jhb@FreeBSD.org>
596
597 * fbsd-nat.c: Always include support for
598 TARGET_OBJECT_SIGNAL_INFO.
599
bcb1da7f
JB
6002020-09-16 John Baldwin <jhb@FreeBSD.org>
601
602 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
603 sysctl and remove procfs fallback.
604
5515f729
JB
6052020-09-16 John Baldwin <jhb@FreeBSD.org>
606
607 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
608 * fbsd-nat.h: Likewise.
609
da1df1db
TBA
6102020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
611
612 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
613 argument.
614
0e25e767
AB
6152020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
616
617 * ada-lang.c (ada_language_data): Delete.
618 (ada_language): Remove references to ada_language_data.
619 * c-lang.c (c_language_data): Delete.
620 (c_language): Remove references to c_language_data.
621 (cplus_language_data): Delete.
622 (cplus_language): Remove references to cplus_language_data.
623 (asm_language_data): Delete.
624 (asm_language): Remove references to asm_language_data.
625 (minimal_language_data): Delete.
626 (minimal_language): Remove references to minimal_language_data.
627 * d-lang.c (d_language_data): Delete.
628 (d_language): Remove references to d_language_data.
629 * f-lang.c (f_language_data): Delete.
630 (f_language): Remove references to f_language_data.
631 * go-lang.c (go_language_data): Delete.
632 (go_language): Remove references to go_language_data.
633 * language.c (unknown_language_data): Delete.
634 (unknown_language): Remove references to unknown_language_data.
635 (auto_language_data): Delete.
636 (auto_language): Remove references to auto_language_data.
637 * language.h (language_data): Delete struct.
638 (language_defn): No longer inherit from language_data.
639 * m2-lang.c (m2_language_data): Delete.
640 (m2_language): Remove references to m2_language_data.
641 * objc-lang.c (objc_language_data): Delete.
642 (objc_language): Remove references to objc_language_data.
643 * opencl-lang.c (opencl_language_data): Delete.
644 (opencl_language): Remove references to opencl_language_data.
645 * p-lang.c (pascal_language_data): Delete.
646 (pascal_language): Remove references to pascal_language_data.
647 * rust-lang.c (rust_language_data): Delete.
648 (rust_language): Remove references to rust_language_data.
649
b7c6e27d
AB
6502020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
651
652 * ada-lang.c (ada_language_data): Remove la_op_print_tab
653 initializer.
654 (ada_language::opcode_print_table): New member function.
655 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
656 (c_language::opcode_print_table): New member function.
657 (cplus_language_data): Remove la_op_print_tab initializer.
658 (cplus_language::opcode_print_table): New member function.
659 (asm_language_data): Remove la_op_print_tab initializer.
660 (asm_language::opcode_print_table): New member function.
661 (minimal_language_data): Remove la_op_print_tab initializer.
662 (minimal_language::opcode_print_table): New member function.
663 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
664 (d_language::opcode_print_table): New member function.
665 * expprint.c (print_subexp_standard): Update call to
666 opcode_print_table.
667 (op_string): Likewise.
668 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
669 (f_language::opcode_print_table): New member function.
670 * go-lang.c (go_language_data): Remove la_op_print_tab
671 initializer.
672 (go_language::opcode_print_table): New member function.
673 * language.c (unknown_language_data): Remove la_op_print_tab
674 initializer.
675 (unknown_language::opcode_print_table): New member function.
676 (auto_language_data): Remove la_op_print_tab initializer.
677 (auto_language::opcode_print_table): New member function.
678 * language.h (language_data): Remove la_op_print_tab field.
679 (language_defn::opcode_print_table): Declare new member function.
680 * m2-lang.c (m2_language_data): Remove la_op_print_tab
681 initializer.
682 (m2_language::opcode_print_table): New member function.
683 * objc-lang.c (objc_language_data): Remove la_op_print_tab
684 initializer.
685 (objc_language::opcode_print_table): New member function.
686 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
687 initializer.
688 (opencl_language::opcode_print_table): New member function.
689 * p-lang.c (pascal_language_data): Remove la_op_print_tab
690 initializer.
691 (pascal_language::opcode_print_table): New member function.
692 * rust-lang.c (rust_language_data): Remove la_op_print_tab
693 initializer.
694 (rust_language::opcode_print_table): New member function.
695
5aba6ebe
AB
6962020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
697
698 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
699 (ada_language::expression_ops): New member function.
700 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
701 (c_language::expression_ops): New member function.
702 (cplus_language_data): Remove la_exp_desc initializer.
703 (cplus_language::expression_ops): New member function.
704 (asm_language_data): Remove la_exp_desc initializer.
705 (asm_language::expression_ops): New member function.
706 (minimal_language_data): Remove la_exp_desc initializer.
707 (minimal_language::expression_ops): New member function.
708 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
709 (d_language::expression_ops): New member function.
710 * eval.c (evaluate_subexp): Update call to expression_ops.
711 * expprint.c (print_subexp): Likewise.
712 (op_name): Likewise.
713 (dump_subexp_body): Likewise.
714 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
715 (f_language::expression_ops): New member function.
716 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
717 (go_language::expression_ops): New member function.
718 * language.c (language_defn::expression_ops): New function.
719 (unknown_language_data): Remove la_exp_desc initializer.
720 (auto_language_data): Likewise.
721 * language.h (language_data): Remove la_exp_desc field.
722 (language_defn::expression_ops): Declare new member function.
723 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
724 (m2_language::expression_ops): New member function.
725 * objc-lang.c (objc_language_data): Remove la_exp_desc
726 initializer.
727 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
728 initializer.
729 (opencl_language::expression_ops): New member function.
730 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
731 * parse.c (operator_length): Update call to expression_ops.
732 (exp_iterate): Likewise.
733 * rust-lang.c (rust_language_data): Remove la_exp_desc
734 initializer.
735 (ruse_language::expression_ops): New member function.
736
b63a3f3f
AB
7372020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
738
739 * ada-lang.c (ada_language_data): Remove la_varobj_ops
740 initializer.
741 (ada_language::varobj_ops): New member function.
742 * c-lang.c (c_language_data): Remove la_varobj_ops
743 initializer.
744 (cplus_language_data): Likewise.
745 (cplus_language::varobj_ops): New member function.
746 (asm_language_data): Remove la_varobj_ops initializer.
747 (minimal_language_data): Likewise.
748 * d-lang.c (d_language_data): Likewise.
749 * f-lang.c (f_language_data): Likewise.
750 * go-lang.c (go_language_data): Likewise.
751 * language.c (language_defn::varobj_ops): New function.
752 (unknown_language_data): Remove la_varobj_ops
753 initializer.
754 (auto_language_data): Likewise.
755 * language.h (language_data): Remove la_varobj_ops field.
756 (language_defn::varobj_ops): Declare new member function.
757 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
758 * objc-lang.c (objc_language_data): Likewise.
759 * opencl-lang.c (opencl_language_data): Likewise.
760 * p-lang.c (pascal_language_data): Likewise.
761 * rust-lang.c (rust_language_data): Likewise.
762 * varobj.c (varobj_create): Update call to varobj_ops.
763 * varobj.h (default_varobj_ops): Delete define.
764
1ac14a04
AB
7652020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
766
767 * ada-lang.c (ada_language_data): Remove la_macro_expansion
768 initializer.
769 * c-lang.c (c_language_data): Likewise.
770 (c_language::macro_expansion): New member function.
771 (cplus_language_data): Likewise.
772 (cplus_language::macro_expansion): New member function.
773 (asm_language_data): Likewise.
774 (asm_language::macro_expansion): New member function.
775 (minimal_language_data): Likewise.
776 (minimal_language::macro_expansion): New member function.
777 * d-lang.c (d_language_data): Remove la_macro_expansion
778 initializer.
779 * f-lang.c (f_language_data): Likewise.
780 * go-lang.c (go_language_data): Likewise.
781 * language.c (unknown_language_data): Likewise.
782 (auto_language_data): Likewise.
783 * language.h (language_data): Remove la_macro_expansion field.
784 (language_defn::macro_expansion): New member function.
785 * m2-lang.c (m2_language_data): Remove la_macro_expansion
786 initializer.
787 * objc-lang.c (objc_language_data): Likewise.
788 (objc_language::macro_expansion): New member function.
789 * opencl-lang.c (opencl_language_data): Likewise.
790 (opencl_language::macro_expansion): New member function.
791 * p-lang.c (pascal_language_data): Remove la_macro_expansion
792 initializer.
793 * rust-lang.c (rust_language_data): Likewise.
794 * symtab.c (default_collect_symbol_completion_matches_break_on):
795 Update call to macro_expansion.
796
3a3440fb
AB
7972020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
798
799 * ada-lang.c (ada_language_data): Remove la_array_ordering
800 initializer.
801 * c-lang.c (c_language_data): Likewise.
802 (cplus_language_data): Likewise.
803 (asm_language_data): Likewise.
804 (minimal_language_data): Likewise.
805 * d-lang.c (d_language_data): Likewise.
806 * dwarf2/read.c (read_array_order): Update for call to
807 array_ordering.
808 * f-lang.c (f_language_data): Remove la_array_ordering
809 initializer.
810 (f_language::array_ordering): New member function.
811 * go-lang.c (go_language_data): Remove la_array_ordering
812 initializer.
813 * language.c (unknown_language_data): Likewise.
814 (auto_language_data): Likewise.
815 * language.h (language_data): Delete la_array_ordering field.
816 (language_defn::array_ordering): New member function.
817 * m2-lang.c (m2_language_data): Remove la_array_ordering
818 initializer.
819 * objc-lang.c (objc_language_data): Likewise.
820 * opencl-lang.c (opencl_language_data): Likewise.
821 * p-lang.c (pascal_language_data): Likewise.
822 * rust-lang.c (rust_language_data): Likewise.
823
0d201fa4
AB
8242020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
825
826 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
827 initializer.
828 * c-lang.c (c_language_data): Likewise.
829 (cplus_language_data): Likewise.
830 (asm_language_data): Likewise.
831 (minimal_language_data): Likewise.
832 * d-lang.c (d_language_data): Likewise.
833 * f-lang.c (f_language_data): Likewise.
834 (f_language::case_sensitivity): New member function.
835 * go-lang.c (go_language_data): Remove la_case_sensitivity
836 initializer.
837 * language.c (enum case_mode): Moved here from language.h.
838 (case_mode): Make static.
839 (show_case_command): Update for case_sensitivity being a method.
840 (set_case_command): Likewise.
841 (set_range_case): Likewise.
842 (unknown_language_data): Remove la_case_sensitivity initializer.
843 (auto_language_data): Likewise.
844 * language.h (case_mode): Delete, move enum declaration to
845 language.c.
846 (language_data): Delete la_case_sensitivity field.
847 (language_defn::case_sensitivity): New member function.
848 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
849 initializer.
850 * objc-lang.c (objc_language_data): Likewise.
851 * opencl-lang.c (opencl_language_data): Likewise.
852 * p-lang.c (pascal_language_data): Likewise.
853 * rust-lang.c (rust_language_data): Likewise.
854
efdf6a73
AB
8552020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
856
857 * ada-lang.c (ada_language_data): Remove la_range_check
858 initializer.
859 * c-lang.c (c_language_data): Likewise.
860 (cplus_language_data): Likewise.
861 (asm_language_data): Likewise.
862 (minimal_language_data): Likewise.
863 * d-lang.c (d_language_data): Likewise.
864 * f-lang.c (f_language_data): Likewise.
865 (f_language::range_checking_on_by_default): New member function.
866 * go-lang.c (go_language_data): Remove la_range_check initializer.
867 * language.c (enum range_mode): Moved here from language.h.
868 (range_mode): Made static.
869 (show_range_command): Update to use
870 range_checking_on_by_default.
871 (set_range_command): Likewise.
872 (set_range_case): Likewise.
873 (unknown_language_data): Remove la_range_check initializer.
874 (auto_language_data): Likewise.
875 * language.h (range_mode): Delete. Enum definition moved to
876 language.c.
877 (language_data): Remove la_range_check field.
878 (language_defn::range_checking_on_by_default): New member
879 function.
880 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
881 (m2_language::range_checking_on_by_default): New member function.
882 * objc-lang.c (objc_language_data): Remove la_range_check
883 initializer.
884 * opencl-lang.c (opencl_language_data): Likewise.
885 * p-lang.c (pascal_language_data): Likewise.
886 (pascal_language::range_checking_on_by_default): New member
887 function.
888 * rust-lang.c (rust_language_data): Remove la_range_check
889 initializer.
890 (rust_language::range_checking_on_by_default): New member
891 function.
892
bf92aec5
AB
8932020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
894
895 * dwarf2/read.c (dwarf2_physname): Remove special case for
896 language_go.
897 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
898 member function.
899
d3355e4d
AB
9002020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
901
902 * ada-lang.c (ada_language_data): Remove
903 la_store_sym_names_in_linkage_form_p initializer.
904 (ada_language::store_sym_names_in_linkage_form_p): New member
905 function.
906 * c-lang.c (c_language_data): Remove
907 la_store_sym_names_in_linkage_form_p initializer.
908 (c_language::store_sym_names_in_linkage_form_p): New member
909 function.
910 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
911 initializer.
912 (asm_language_data): Likewise.
913 (asm_language::store_sym_names_in_linkage_form_p): New member
914 function.
915 (minimal_language_data): Remove
916 la_store_sym_names_in_linkage_form_p initializer.
917 (minimal_language::store_sym_names_in_linkage_form_p): New member
918 function.
919 * d-lang.c (d_language_data): Remove
920 la_store_sym_names_in_linkage_form_p initializer.
921 * dwarf2/read.c (dwarf2_physname): Update call to
922 store_sym_names_in_linkage_form_p.
923 * f-lang.c (f_language_data): Remove
924 la_store_sym_names_in_linkage_form_p initializer.
925 * go-lang.c (go_language_data): Remove
926 la_store_sym_names_in_linkage_form_p initializer.
927 * language.c (unknown_language_data): Remove
928 la_store_sym_names_in_linkage_form_p initializer.
929 (unknown_language::store_sym_names_in_linkage_form_p): New member
930 function.
931 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
932 initializer.
933 (auto_language::store_sym_names_in_linkage_form_p): New member
934 function.
935 * language.h (language_data): Remove
936 la_store_sym_names_in_linkage_form_p member variable.
937 (language_defn::store_sym_names_in_linkage_form_p): New member
938 function.
939 * m2-lang.c (m2_language_data): Remove
940 la_store_sym_names_in_linkage_form_p initializer.
941 * objc-lang.c (objc_language_data): Likewise.
942 * opencl-lang.c (opencl_language_data): Likewise.
943 * p-lang.c (pascal_language_data): Likewise.
944 * rust-lang.c (rust_language_data): Likewise.
945
22c12a6c
AB
9462020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
947
948 * ada-lang.c (ada_language_data): Remove string_lower_bound
949 initializer.
950 * c-lang.c (c_language_data): Likewise.
951 (cplus_language_data): Likewise.
952 (asm_language_data): Likewise.
953 (minimal_language_data): Likewise.
954 * d-lang.c (d_language_data): Likewise.
955 * f-lang.c (f_language_data): Likewise.
956 * go-lang.c (go_language_data): Likewise.
957 * language.c (unknown_language_data): Likewise.
958 (auto_language_data): Likewise.
959 * language.h (language_data): Remove string_lower_bound field.
960 (language_defn::string_lower_bound): New member function.
961 * m2-lang.c (m2_language_data): Remove string_lower_bound
962 initializer.
963 (m2_language::string_lower_bound): New member function.
964 * objc-lang.c (objc_language_data): Remove string_lower_bound
965 initializer.
966 * opencl-lang.c (opencl_language_data): Likewise.
967 * p-lang.c (pascal_language_data): Likewise.
968 * rust-lang.c (rust_language_data): Likewise.
969 * valops.c (value_cstring): Update call to string_lower_bound.
970 (value_string): Likewise.
971 * value.c (allocate_repeated_value): Likewise.
972
1c236ddd
AB
9732020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
974
975 * valops.c (value_repeat): Fix incorrect argument name in comment.
976
67bd3fd5
AB
9772020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
978
979 * ada-lang.c (ada_language_data): Remove c_style_arrays
980 initializer.
981 (ada_language::c_style_arrays_p): New member fuction.
982 * c-lang.c (c_language_data): Remove c_style_arrays
983 initializer.
984 (cplus_language_data): Likewise.
985 (asm_language_data): Likewise.
986 (minimal_language_data): Likewise.
987 * d-lang.c (d_language_data): Likewise.
988 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
989 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
990 (f_language::c_style_arrays_p): New member function.
991 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
992 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
993 * language.c (unknown_language_data): Remove c_style_arrays
994 initializer.
995 (auto_language_data): Likewise.
996 * language.h (language_data): Remove c_style_arrays field.
997 (language_defn::c_style_arrays_p): New member function.
998 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
999 (m2_language::c_style_arrays_p): New member function.
1000 * objc-lang.c (objc_language_data): Remove c_style_arrays
1001 initializer.
1002 * opencl-lang.c (opencl_language_data): Likewise.
1003 * p-lang.c (pascal_language_data): Likewise.
1004 * rust-lang.c (rust_language_data): Likewise.
1005 * valarith.c (value_subscript): Update call to c_style_arrays_p,
1006 and update local variable to a bool.
1007 * valops.c (value_cast): Update call to c_style_arrays_p.
1008 (value_array): Likewise.
1009 * value.c (coerce_array): Likewise.
1010
85967615
AB
10112020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1012
1013 * ada-lang.c (ada_language_data): Remove la_language initializer.
1014 * c-lang.c (c_language_data): Likewise.
1015 (cplus_language_data): Likewise.
1016 (asm_language_data): Likewise.
1017 (minimal_language_data): Likewise.
1018 * d-lang.c (d_language_data): Likewise.
1019 * f-lang.c (f_language_data): Likewise.
1020 * go-lang.c (go_language_data): Likewise.
1021 * language.c (unknown_language_data): Likewise.
1022 (auto_language_data): Likewise.
1023 * language.h (language_data): Remove la_language field.
1024 (language_defn::language_defn): Initialise la_language field.
1025 (language_defn::la_language): New member variable.
1026 * m2-lang.c (m2_language_data): Remove la_language field.
1027 * objc-lang.c (objc_language_data): Likewise.
1028 * opencl-lang.c (opencl_language_data): Likewise.
1029 * p-lang.c (pascal_language_data): Likewise.
1030 * rust-lang.c (rust_language_data): Likewise.
1031
e171d6f1
AB
10322020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1033
1034 * ada-lang.c (ada_extensions): Delete, moved into
1035 ada_language::filename_extensions.
1036 (ada_language_data): Remove la_filename_extensions initializer.
1037 (ada_language::filename_extensions): New member function.
1038 * c-lang.c (c_extensions): Delete, moved into
1039 c_language::filename_extensions.
1040 (c_language_data): Remove la_filename_extensions initializer.
1041 (c_language::filename_extensions): New member function.
1042 (cplus_extensions): Delete, moved into
1043 cplus_language::filename_extensions.
1044 (cplus_language_data): Remove la_filename_extensions initializer.
1045 (cplus_language::filename_extensions): New member function.
1046 (asm_extensions): Delete, moved into
1047 asm_language::filename_extensions.
1048 (asm_language_data): Remove la_filename_extensions initializer.
1049 (asm_language::filename_extensions): New member function.
1050 (minimal_language_data): Remove la_filename_extensions
1051 initializer.
1052 * d-lang.c (d_extensions): Delete, moved into
1053 d_language::filename_extensions.
1054 (d_language_data): Remove la_filename_extensions initializer.
1055 (d_language::filename_extensions): New member function.
1056 * f-lang.c (f_extensions): Delete, moved into
1057 f_language::filename_extensions.
1058 (f_language_data): Remove la_filename_extensions initializer.
1059 (f_language::filename_extensions): New member function.
1060 * go-lang.c (go_language_data): Remove la_filename_extensions
1061 initializer.
1062 * language.c (add_set_language_command): Update now that
1063 filename_extensions returns a vector.
1064 (unknown_language_data): Remove la_filename_extensions
1065 initializer.
1066 (auto_language_data): Likewise.
1067 * language.h (language_data): Remove la_filename_extensions field.
1068 (language_defn::filename_extensions): New member function.
1069 * m2-lang.c (m2_language_data): Remove la_filename_extensions
1070 initializer.
1071 * objc-lang.c (objc_extensions): Delete, moved into
1072 objc_language::filename_extensions.
1073 (objc_language_data): Remove la_filename_extensions initializer.
1074 (objc_language::filename_extensions): New member function.
1075 * opencl-lang.c (opencl_language_data): Remove
1076 la_filename_extensions initializer.
1077 * p-lang.c (pascal_extensions): Delete, moved into
1078 pascal_language::filename_extensions.
1079 (pascal_language_data): Remove la_filename_extensions initializer.
1080 (pascal_language::filename_extensions): New member function.
1081 * rust-lang.c (rust_extensions): Delete, moved into
1082 rust_language::filename_extensions.
1083 (rust_language_data): Remove la_filename_extensions initializer.
1084 (rust_language::filename_extensions): New member function.
1085 * symfile.c (add_filename_language): Add new assert.
1086
6f7664a9
AB
10872020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1088
1089 * ada-lang.c (ada_language_data): Remove la_name and
1090 la_natural_name initializers.
1091 (ada_language::name): New member function.
1092 (ada_language::natural_name): New member function.
1093 * c-lang.c (c_language_data): Remove la_name and
1094 la_natural_name initializers.
1095 (c_language::name): New member function.
1096 (c_language::natural_name): New member function.
1097 (cplus_language_data): Remove la_name and
1098 la_natural_name initializers.
1099 (cplus_language::name): New member function.
1100 (cplus_language::natural_name): New member function.
1101 (asm_language_data): Remove la_name and
1102 la_natural_name initializers.
1103 (asm_language::name): New member function.
1104 (asm_language::natural_name): New member function.
1105 (minimal_language_data): Remove la_name and
1106 la_natural_name initializers.
1107 (minimal_language::name): New member function.
1108 (minimal_language::natural_name): New member function.
1109 * compile/compile.c (compile_to_object): Update call to
1110 lanugage_defn::name.
1111 * d-lang.c (d_language_data): Remove la_name and
1112 la_natural_name initializers.
1113 (d_language::name): New member function.
1114 (d_language::natural_name): New member function.
1115 * expprint.c (print_subexp_standard): Update call to
1116 language_defn::name.
1117 (dump_raw_expression): Likewise
1118 (dump_prefix_expression): Likewise.
1119 * f-lang.c (f_language_data): Remove la_name and
1120 la_natural_name initializers.
1121 (f_language::name): New member function.
1122 (f_language::natural_name): New member function.
1123 * go-lang.c (go_language_data): Remove la_name and
1124 la_natural_name initializers.
1125 (go_language::name): New member function.
1126 (go_language::natural_name): New member function.
1127 * language.c (show_language_command): Update call to
1128 language_defn::name.
1129 (set_language_command): Likewise.
1130 (language_enum): Likewise.
1131 (language_str): Likewise.
1132 (add_set_language_command): Likewise, use
1133 language_defn::natural_name in the doc string.
1134 (unknown_language_data): Remove la_name and
1135 la_natural_name initializers.
1136 (unknown_language::name): New member function.
1137 (unknown_language::natural_name): New member function.
1138 (auto_language_data): Remove la_name and
1139 la_natural_name initializers.
1140 (auto_language::name): New member function.
1141 (auto_language::natural_name): New member function.
1142 (language_lookup_primitive_type_as_symbol): Update call to
1143 language_defn::name.
1144 * language.h (language_data): Remove la_name and la_natural_name
1145 member variables.
1146 (language_defn::name): New member function.
1147 (language_defn::natural_name): New member function.
1148 * m2-lang.c (m2_language_data): Remove la_name and
1149 la_natural_name initializers.
1150 (m2_language::name): New member function.
1151 (m2_language::natural_name): New member function.
1152 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
1153 language_defn::natural_name.
1154 * objc-lang.c (objc_language_data): Remove la_name and
1155 la_natural_name initializers.
1156 (objc_language::name): New member function.
1157 (objc_language::natural_name): New member function.
1158 * opencl-lang.c (opencl_language_data): Remove la_name and
1159 la_natural_name initializers.
1160 (opencl_language::name): New member function.
1161 (opencl_language::natural_name): New member function.
1162 * p-lang.c (pascal_language_data): Remove la_name and
1163 la_natural_name initializers.
1164 (pascal_language::name): New member function.
1165 (pascal_language::natural_name): New member function.
1166 * rust-lang.c (rust_language_data): Remove la_name and
1167 la_natural_name initializers.
1168 (rust_language::name): New member function.
1169 (rust_language::natural_name): New member function.
1170 * symtab.c (lookup_language_this): Update call to
1171 language_defn::name.
1172
5bae7c4e
AB
11732020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1174
1175 * ada-lang.c (ada_language_data): Remove la_name_of_this
1176 initializer.
1177 * ax-gdb.c (gen_expr): Update call to name_of_this.
1178 * c-exp.y (classify_name): Likewise.
1179 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1180 (cplus_language_data): Likewise.
1181 (cplus_language::name_of_this): New member function.
1182 (asm_language_data): Remove la_name_of_this initializer.
1183 (minimal_language_data): Likewise.
1184 * d-lang.c (d_language_data): Likewise.
1185 (d_language::name_of_this): New member function.
1186 * expprint.c (print_subexp_standard): Update call to name_of_this.
1187 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1188 * go-lang.c (go_language_data): Likewise.
1189 * language.c (unknown_language_data): Likewise.
1190 (unknown_language::name_of_this): New member function.
1191 (auto_language_data): Remove la_name_of_this initializer.
1192 (auto_language::name_of_this): New member function.
1193 * language.h (language_data): Delete la_name_of_this member
1194 variable.
1195 (language_defn::name_of_this): New member function.
1196 * m2-lang.c (m2_language_data): Remove la_name_of_this
1197 initializer.
1198 * objc-lang.c (objc_language_data): Likewise.
1199 (objc_language::name_of_this): New member function.
1200 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1201 initializer.
1202 * p-lang.c (pascal_language_data): Likewise.
1203 (pascal_language::name_of_this): New member function.
1204 * rust-lang.c (rust_language_data): Remove la_name_of_this
1205 initializer.
1206 * symtab.c (lookup_language_this): Update call to name_of_this.
1207 (lookup_symbol_aux): Likewise.
1208 * valops.c (value_of_this): Likewise.
1209
22e3f3ed
AB
12102020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1211
1212 * ada-lang.c (ada_language_data): Remove
1213 la_struct_too_deep_ellipsis initializer.
1214 (ada_language::struct_too_deep_ellipsis): New member function.
1215 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1216 initializer.
1217 (cplus_language_data): Likewise.
1218 (asm_language_data): Likewise.
1219 (minimal_language_data): Likewise.
1220 * cp-valprint.c (cp_print_value): Update call to
1221 struct_too_deep_ellipsis.
1222 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1223 initializer.
1224 * f-lang.c (f_language_data): Likewise.
1225 (f_language::struct_too_deep_ellipsis): New member function.
1226 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1227 initializer.
1228 * language.c (unknown_language_data): Likewise.
1229 (auto_language_data): Likewise.
1230 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1231 member variable.
1232 (language_defn::struct_too_deep_ellipsis): New member function.
1233 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1234 initializer.Q
1235 * objc-lang.c (objc_language_data): Likewise.
1236 * opencl-lang.c (opencl_language_data): Likewise.
1237 * p-lang.c (pascal_language_data): Likewise.
1238 * rust-lang.c (rust_language_data): Likewise.
1239 * valprint.c (val_print_check_max_depth): Update call to
1240 struct_too_deep_ellipsis.
1241
ed29e1c7
FW
12422020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1243
1244 * MAINTAINERS (Write After Approval): Add myself.
1245
12d8f940
TT
12462020-09-15 Tom Tromey <tom@tromey.com>
1247
1248 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1249 Remove.
1250
6b5a7bc7
TT
12512020-09-15 Tom Tromey <tom@tromey.com>
1252
1253 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1254 and TYPE_CODE_METHODPTR cases.
1255 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1256 (c_value_print_inner): Update.
1257 * valprint.c (generic_value_print_memberptr): New function, from
1258 c_value_print_memberptr.
1259 (generic_value_print): Use it. Call cplus_print_method_ptr.
1260
47f0e2ff
TT
12612020-09-15 Tom Tromey <tromey@adacore.com>
1262
1263 * python/python-internal.h (PyInt_FromLong): Remove define.
1264 * python/py-value.c (convert_value_from_python): Use
1265 gdb_py_object_from_longest.
1266 * python/py-type.c (typy_get_code): Use
1267 gdb_py_object_from_longest.
1268 * python/py-symtab.c (salpy_get_line): Use
1269 gdb_py_object_from_longest.
1270 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1271 gdb_py_object_from_longest.
1272 * python/py-record.c (recpy_gap_reason_code): Use
1273 gdb_py_object_from_longest.
1274 * python/py-record-btrace.c (recpy_bt_insn_size)
1275 (recpy_bt_func_level, btpy_list_count): Use
1276 gdb_py_object_from_longest.
1277 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1278 gdb_py_object_from_longest. Fix error handling.
1279 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1280 gdb_py_object_from_longest.
1281 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1282 gdb_py_object_from_longest.
1283 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1284 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1285 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1286
512116ce
TT
12872020-09-15 Tom Tromey <tromey@adacore.com>
1288
1289 * python/python.c (gdbpy_parameter_value): Use
1290 gdb_py_object_from_ulongest.
1291
4ab1029c
TT
12922020-09-15 Tom Tromey <tromey@adacore.com>
1293
1294 * python/py-infevents.c (create_register_changed_event_object):
1295 Use gdb_py_object_from_longest.
1296 * python/py-exitedevent.c (create_exited_event_object): Use
1297 gdb_py_object_from_longest.
1298
062534d4
TT
12992020-09-15 Tom Tromey <tromey@adacore.com>
1300
1301 * python/python.c (gdbpy_parameter_value): Use
1302 gdb_py_object_from_longest.
1303 * python/py-type.c (convert_field, typy_range): Use
1304 gdb_py_object_from_longest.
1305 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1306 gdb_py_object_from_longest.
1307 * python/py-lazy-string.c (stpy_get_length): Use
1308 gdb_py_object_from_longest.
1309 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1310 gdb_py_object_from_longest.
1311 * python/py-infevents.c (create_memory_changed_event_object): Use
1312 gdb_py_object_from_longest.
1313 * python/py-inferior.c (infpy_get_num): Use
1314 gdb_py_object_from_longest.
1315 (infpy_get_pid): Likewise.
1316
d1cab987
TT
13172020-09-15 Tom Tromey <tromey@adacore.com>
1318
1319 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1320 defines.
1321 * python/py-value.c (valpy_long): Use
1322 gdb_py_object_from_ulongest.
1323 * python/py-symtab.c (salpy_get_pc): Use
1324 gdb_py_object_from_ulongest.
1325 (salpy_get_last): Likewise.
1326 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1327 gdb_py_object_from_ulongest.
1328 * python/py-lazy-string.c (stpy_get_address): Use
1329 gdb_py_object_from_ulongest.
1330 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1331 * python/py-arch.c (archpy_disassemble): Use
1332 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1333 error handling.
1334
4bde49dc
TT
13352020-09-15 Tom Tromey <tromey@adacore.com>
1336
1337 * python/python-internal.h (gdb_py_long_from_longest): Remove
1338 defines.
1339 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1340 * python/py-type.c (convert_field, typy_get_sizeof): Use
1341 gdb_py_object_from_longest.
1342 * python/py-record-btrace.c (btpy_list_index): Use
1343 gdb_py_object_from_longest.
1344
37431074
TT
13452020-09-15 Tom Tromey <tromey@adacore.com>
1346
1347 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1348 * python/py-record.c (recpy_element_number): Use
1349 gdb_py_object_from_longest.
1350 (recpy_gap_number): Likewise.
1351
cbe25684
TT
13522020-09-15 Tom Tromey <tromey@adacore.com>
1353
1354 * top.c (ui::ui): Update.
1355 (highest_ui_num): Remove.
1356 * top.h (struct ui) <num>: Remove.
1357
db92ac45
TT
13582020-09-15 Tom Tromey <tromey@adacore.com>
1359
1360 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1361 * ui-style.c (ansi_regex_text): Now array.
1362 * rust-exp.y (number_regex_text): Now array.
1363 * linespec.c (linespec_quote_characters): Now array.
1364 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1365 Now arrays.
1366
d2b31b67
SM
13672020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1368
1369 * debuginfod-support.c (debuginfod_client_deleter): New.
1370 (debuginfod_client_up): New.
1371 (debuginfod_init): Return debuginfod_client_up.
1372 (debuginfod_source_query): Adjust.
1373 (debuginfod_debuginfo_query): Adjust.
1374
3246bd8e
SM
13752020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1376
1377 * debuginfod-support.c (debuginfod_source_query): Use
1378 make_unique_xstrdup.
1379
10242f36
SM
13802020-09-14 Simon Marchi <simon.marchi@efficios.com>
1381
1382 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1383 with `type::instance_flags`.
1384
e1044e6a
MM
13852020-09-14 Michael Mullin <masmullin@gmail.com>
1386
1387 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1388 Remove baton parameter.
1389
04902b09
PA
13902020-09-14 Pedro Alves <pedro@palves.net>
1391
1392 * Makefile.in (SELFTESTS_SRCS): Add
1393 unittests/enum-flags-selftests.c.
1394 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1395 btrace_function_flags instead of enum btrace_function_flag.
1396 * compile/compile-c-types.c (convert_qualified): Use
1397 enum_flags::raw.
1398 * compile/compile-cplus-symbols.c (convert_one_symbol)
1399 (convert_symbol_bmsym):
1400 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1401 (compile_cplus_convert_struct_or_union_methods)
1402 (compile_cplus_instance::convert_qualified_base):
1403 * go-exp.y (parse_string_or_char): Add cast to int.
1404 * unittests/enum-flags-selftests.c: New file.
1405 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1406 type to btrace_thread_flags from btrace_thread_flag.
1407 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1408 local's type to btrace_thread_flags from btrace_thread_flag. Add
1409 cast in DEBUG call.
1410
69896a2c
PA
14112020-09-14 Pedro Alves <pedro@palves.net>
1412
1413 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1414 * gdbtypes.c (address_space_name_to_int): Rename to ...
1415 (address_space_name_to_type_instance_flags): ... this.
1416 (address_space_int_to_name): Rename to ...
1417 (address_space_type_instance_flags_to_name): ... this.
1418 * gdbtypes.h (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 * type-stack.c (type_stack::insert): Adjust to rename.
1423 * type-stack.h (type_stack::insert): Likewise.
1424
314ad88d
PA
14252020-09-14 Pedro Alves <pedro@palves.net>
1426 Andrew Burgess <andrew.burgess@embecosm.com>
1427
1428 * avr-tdep.c (avr_address_class_type_flags): Return
1429 type_instance_flags.
1430 (avr_address_class_type_flags_to_name): Take a
1431 type_instance_flags.
1432 (avr_address_class_name_to_type_flags): Return bool and take a
1433 type_instance_flags.
1434 * d-lang.c (build_d_types): Use type::set_instance_flags.
1435 * ft32-tdep.c (ft32_address_class_type_flags): Return
1436 type_instance_flags.
1437 (ft32_address_class_type_flags_to_name): Take a
1438 type_instance_flags.
1439 (ft32_address_class_name_to_type_flags): Return bool and take a
1440 type_instance_flags.
1441 (ft32_gdbarch_init): Use type::set_instance_flags.
1442 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1443 * gdbarch.h, gdbarch.c: Regenerate.
1444 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1445 (address_class_name_to_type_flags): Use type_instance_flags and
1446 bool.
1447 * gdbtypes.c (address_space_name_to_int)
1448 (address_space_int_to_name, make_qualified_type): Use
1449 type_instance_flags.
1450 (make_qualified_type): Use type_instance_flags and
1451 type::set_instance_flags.
1452 (make_type_with_address_space, make_cv_type, make_vector_type)
1453 (check_typedef): Use type_instance_flags.
1454 (recursive_dump_type): Cast type_instance_flags to unsigned for
1455 printing.
1456 (copy_type_recursive): Use type::set_instance_flags.
1457 (gdbtypes_post_init): Use type::set_instance_flags.
1458 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1459 <m_instance_flags>: ... this.
1460 <instance_flags, set_instance_flags>: New methods.
1461 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1462 (SET_TYPE_INSTANCE_FLAGS): New.
1463 (address_space_name_to_int, address_space_int_to_name)
1464 (make_type_with_address_space): Pass flags using
1465 type_instance_flags instead of int.
1466 * stabsread.c (cleanup_undefined_types_noname): Use
1467 type::set_instance_flags.
1468 * s390-tdep.c (s390_address_class_type_flags): Return
1469 type_instance_flags.
1470 (s390_address_class_type_flags_to_name): Take a
1471 type_instance_flags.
1472 (s390_address_class_name_to_type_flags): Return bool and take a
1473 type_instance_flags.
1474 * type-stack.c (type_stack::follow_types): Use
1475 type_instance_flags.
1476 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1477
27087b7f
TT
14782020-09-14 Tom Tromey <tromey@adacore.com>
1479
1480 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1481 * x86-tdep.c (x86_is_thunk_register_name)
1482 (x86_in_indirect_branch_thunk): Update.
1483 * sparc64-tdep.c (sparc64_fpu_register_names)
1484 (sparc64_cp0_register_names, sparc64_register_names)
1485 (sparc64_pseudo_register_names): Now const.
1486 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1487 cp0_registers_num>: Now const.
1488 * sparc-tdep.c (sparc_core_register_names)
1489 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1490 (sparc32_pseudo_register_names): Now const.
1491 (validate_tdesc_registers): Update.
1492 * rust-lang.c (rust_extensions): Now const.
1493 * p-lang.c (p_extensions): Now const.
1494 * objc-lang.c (objc_extensions): Now const.
1495 * nto-tdep.c (nto_thread_state_str): Now const.
1496 * moxie-tdep.c (moxie_register_names): Now const.
1497 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1498 Now const.
1499 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1500 (mips_linux_reg_names): Now const.
1501 (mips_gdbarch_init): Update.
1502 * microblaze-tdep.c (microblaze_register_names): Now const.
1503 * m68k-tdep.c (m68k_register_names): Now const.
1504 * m32r-tdep.c (m32r_register_names): Now const.
1505 * ia64-tdep.c (ia64_register_names): Now const.
1506 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1507 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1508 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1509 ymm_avx512_register_names, pkeys_register_names>: Now const.
1510 * i386-tdep.c (i386_register_names, i386_zmm_names)
1511 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1512 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1513 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1514 * f-lang.c (f_extensions): Now const.
1515 * d-lang.c (d_extensions): Now const.
1516 * csky-tdep.c (csky_register_names): Now const.
1517 * charset.c (default_charset_names, charset_enum): Now const.
1518 (_initialize_charset): Update.
1519 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1520 const.
1521 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1522 (bsd_uthread_solib_loaded): Update.
1523 (bsd_uthread_state): Now const.
1524 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1525 (amd64_ymm_avx512_names, amd64_ymmh_names)
1526 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1527 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1528 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1529 (amd64_dword_names): Now const.
1530 * agent.c (can_use_agent_enum): Now const.
1531 * ada-tasks.c (task_states, long_task_states): Now const.
1532 * ada-lang.c (known_runtime_file_name_patterns)
1533 (known_auxiliary_function_name_patterns, attribute_names)
1534 (standard_exc, ada_extensions): Now const.
1535
89806626
SM
15362020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1537
1538 * bcache.h (struct bcache) <bcache>: Remove constructor.
1539 <m_hash_function, m_compare_function>: Remove.
1540 <~bcache>: Make virtual.
1541 <compare>: Remove static method, introduce virtual method.
1542 <default_hash>: Remove.
1543 <hash>: New virtual method.
1544 * bcache.c (bcache::expand_hash_table): Update.
1545 (bcache::insert): Update.
1546 (bcache::hash): New.
1547 (bcache::compare): Update comment and parameter names.
1548 * gdbtypes.c (types_deeply_equal): Update.
1549 * psymtab.h (struct psymbol_bcache): New struct.
1550 (class psymtab_storage) <psymtab_storage>: Make default.
1551 <psymbol_cache>: Change type to psymbol_bcache.
1552 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1553 (psymbol_hash): Change to...
1554 (psymbol_bcache::hash): ... this.
1555 (psymbol_compare): Change to...
1556 (psymbol_bcache::compare): ... this.
1557
677c92fe
SM
15582020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1559
1560 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1561 checking for initial lwp.
1562
3eba3a01
TT
15632020-09-14 Tom Tromey <tromey@adacore.com>
1564
1565 * m68k-tdep.c (m68k_extract_return_value): Use
1566 pointer_result_regnum.
1567 (m68k_store_return_value): Likewise.
1568 (m68k_reg_struct_return_p): Handle vectors and arrays.
1569 (m68k_return_value): Handle arrays.
1570 (m68k_svr4_return_value): Fix single-element aggregate handling.
1571 Handle long double. Adjust for embedded ABI.
1572 (m68k_svr4_init_abi): Set pointer_result_regnum.
1573 (m68k_embedded_init_abi): New function.
1574 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1575 (m68k_osabi_sniffer): New function.
1576 (_initialize_m68k_tdep): Register osabi sniffer.
1577 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1578 member.
1579
33f4dd48
SM
15802020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1581
1582 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1583 with gdb::unique_xmalloc_ptr<char>.
1584
8400a90d
SM
15852020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1586
1587 * xml-support.h (xml_fetch_another): Change type to be a
1588 function_view.
1589 (xml_process_xincludes): Remove baton parameter.
1590 (xml_fetch_content_from_file): Change baton parameter to
1591 dirname.
1592 * xml-support.c (struct xinclude_parsing_data)
1593 <xinclude_parsing_data>: Remove baton parameter.
1594 <fetcher_baton>: Remove.
1595 (xinclude_start_include): Adjust.
1596 (xml_process_xincludes): Adjust.
1597 (xml_fetch_content_from_file): Replace baton parameter with
1598 dirname.
1599 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1600 (xml_init_syscalls_info): Use a lambda.
1601 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1602 (file_read_description_xml): Use a lambda.
1603 (fetch_available_features_from_target): Change baton parameter
1604 to target_ops.
1605 (target_read_description_xml): Use a lambda.
1606 (target_fetch_description_xml): Use a lambda.
1607 (string_read_description_xml): Update.
1608
04f5bab2
SM
16092020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1610
1611 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1612 uses with type::endianity_is_not_default.
1613
db558e34
SM
16142020-09-14 Simon Marchi <simon.marchi@efficios.com>
1615
1616 * gdbtypes.h (struct type) <endianity_is_not_default,
1617 set_endianity_is_not_default>: New methods.
1618 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1619 type::endianity_is_not_default, change all write call sites to
1620 use type::set_endianity_is_not_default.
1621
22c4c60c
SM
16222020-09-14 Simon Marchi <simon.marchi@efficios.com>
1623
1624 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1625 uses with type::is_fixed_instance.
1626
9cdd0d12
SM
16272020-09-14 Simon Marchi <simon.marchi@efficios.com>
1628
1629 * gdbtypes.h (struct type) <is_fixed_instance,
1630 set_is_fixed_instance>: New methods.
1631 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1632 write call sites to use type::set_is_fixed_instance.
1633
0becda7a
SM
16342020-09-14 Simon Marchi <simon.marchi@efficios.com>
1635
1636 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1637 uses with type::is_gnu_ifunc.
1638
03cc7249
SM
16392020-09-14 Simon Marchi <simon.marchi@efficios.com>
1640
1641 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1642 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1643 use type::set_is_gnu_ifunc.
1644
3f46044c
SM
16452020-09-14 Simon Marchi <simon.marchi@efficios.com>
1646
1647 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1648 uses with type::stub_is_supported.
1649
9baccff6
SM
16502020-09-14 Simon Marchi <simon.marchi@efficios.com>
1651
1652 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1653 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1654 use type::set_stub_is_supported.
1655
bd63c870
SM
16562020-09-14 Simon Marchi <simon.marchi@efficios.com>
1657
1658 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1659 uses with type::is_vector.
1660
2062087b
SM
16612020-09-14 Simon Marchi <simon.marchi@efficios.com>
1662
1663 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1664 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1665 use type::set_is_vector.
1666
a409645d
SM
16672020-09-14 Simon Marchi <simon.marchi@efficios.com>
1668
1669 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1670 uses with type::has_varargs.
1671
1d6286ed
SM
16722020-09-14 Simon Marchi <simon.marchi@efficios.com>
1673
1674 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1675 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1676 use type::set_has_varargs.
1677
7f9f399b
SM
16782020-09-14 Simon Marchi <simon.marchi@efficios.com>
1679
1680 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1681 uses with type::is_prototyped.
1682
27e69b7a
SM
16832020-09-14 Simon Marchi <simon.marchi@efficios.com>
1684
1685 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1686 New methods.
1687 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1688 call sites to use type::set_is_prototyped.
1689
d2183968
SM
16902020-09-14 Simon Marchi <simon.marchi@efficios.com>
1691
1692 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1693 uses with type::target_is_stub.
1694
8f53807e
SM
16952020-09-14 Simon Marchi <simon.marchi@efficios.com>
1696
1697 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1698 New methods.
1699 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1700 sites to use type::set_target_is_stub.
1701
e46d3488
SM
17022020-09-14 Simon Marchi <simon.marchi@efficios.com>
1703
1704 * gdbtypes.h (TYPE_STUB): Remove, replace all
1705 uses with type::is_stub.
1706
b4b73759
SM
17072020-09-14 Simon Marchi <simon.marchi@efficios.com>
1708
1709 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1710 (TYPE_STUB): Use type::is_stub, change all write call sites to
1711 use type::set_is_stub.
1712
20ce4123
SM
17132020-09-14 Simon Marchi <simon.marchi@efficios.com>
1714
1715 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1716 type::has_no_signedness.
1717
15152a54
SM
17182020-09-14 Simon Marchi <simon.marchi@efficios.com>
1719
1720 * gdbtypes.h (struct type) <has_no_signedness,
1721 set_has_no_signedness>: New methods.
1722 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1723 call sites to use type::set_has_no_signedness.
1724
c6d940a9
SM
17252020-09-14 Simon Marchi <simon.marchi@efficios.com>
1726
1727 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1728 type::is_unsigned.
1729
653223d3
SM
17302020-09-14 Simon Marchi <simon.marchi@efficios.com>
1731
1732 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1733 methods.
1734 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1735 sites to use type::set_is_unsigned.
1736
55ea94da 17372020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 1738 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 1739
e851246a
SM
1740 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1741 pointer and stack frame offset when unwinding.
55ea94da 1742
6791b117
PA
17432020-09-13 Pedro Alves <pedro@palves.net>
1744
1745 * NEWS: Document "-break-insert --qualified".
1746 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1747
77f2120b
PA
17482020-09-13 Pedro Alves <pedro@palves.net>
1749
1750 * linespec.c (classify_mtype, compare_msyms): Delete.
1751 (search_minsyms_for_name): Remove classification logic. Instead
1752 filter out trampoline symbols if we also found an external
1753 function of the same name.
1754
ed6a896c
JB
17552020-09-13 Joel Brobecker <brobecker@adacore.com>
1756
1757 * NEWS: Create a new section for the next release branch.
1758 Rename the section of the current branch, now that it has
1759 been cut.
1760
32aea73e
JB
17612020-09-13 Joel Brobecker <brobecker@adacore.com>
1762
1763 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1764 * version.in: Bump version to 11.0.50.DATE-git.
1765
8087c3fa
JB
17662020-09-12 Joel Brobecker <brobecker@adacore.com>
1767
1768 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1769
2a67f09d
FW
17702020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1771 Felix Willgerodt <Felix.Willgerodt@intel.com>
1772
1773 * gdbarch.sh: Added bfloat16 type.
1774 * gdbarch.c: Regenerated.
1775 * gdbarch.h: Regenerated.
1776 * gdbtypes.c (floatformats_bfloat16): New struct.
1777 (gdbtypes_post_init): Add builtin_bfloat16.
1778 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1779 (floatformats_bfloat16): New struct.
1780 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1781 (i386_ymm_type): Add field "v16_bfloat16"
1782 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1783 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1784 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1785 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1786 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1787 * features/i386/64bit-avx512.c: Regenerated.
1788 * features/i386/64bit-sse.xml: Add bfloat16 type.
1789 * features/i386/64bit-sse.c: Regenerated.
1790
1347d111
FW
17912020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1792
1793 * i386-tdep.c (i386_zmm_type): Fix field names.
1794 (i386_ymm_type): Fix field names.
1795
7a4e8e7d
TBA
17962020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1797
1798 * breakpoint.c: Fix typo in the help message of the
1799 "set breakpoint condition-evaluation" command.
1800
cf4ac4be
KR
18012020-09-10 Kamil Rytarowski <n54@gmx.com>
1802
1803 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1804 * (nbsd_nat_target::pid_to_exec_file)
1805 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1806 (nbsd_nat_target::post_startup_inferior)
1807 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1808 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1809 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1810 * (nbsd_thread_lister): Remove.
1811
f404573e
KR
18122020-09-10 Kamil Rytarowski <n54@gmx.com>
1813
1814 * fork-inferior.c (startup_inferior): Avoid double free.
1815
1ccb2c17
KR
18162020-09-10 Kamil Rytarowski <n54@gmx.com>
1817
1818 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1819 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1820
feedfcc7
KR
18212020-09-10 Kamil Rytarowski <n54@gmx.com>
1822
1823 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1824 * netbsd-nat.c: Include <sys/ptrace.h>.
1825 * (netbsd_nat::enable_proc_events): Add.
1826
c489f8c6
KR
18272020-09-10 Kamil Rytarowski <n54@gmx.com>
1828
1829 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1830 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1831 (netbsd_nat::for_each_thread): Add.
1832 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1833 "gdbsupport/common-debug.h".
1834 * (netbsd_nat::netbsd_thread_lister)
1835 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1836 (netbsd_nat::for_each_thread): Add.
1837
330662f6
KR
18382020-09-10 Kamil Rytarowski <n54@gmx.com>
1839
1840 * netbsd-nat.h: Include <unistd.h>.
1841 * (netbsd_nat::pid_to_exec_file): Add.
1842 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1843 * (netbsd_nat::pid_to_exec_file) Add.
1844
70b67307
KR
18452020-09-10 Kamil Rytarowski <n54@gmx.com>
1846
1847 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
1848
99cf6da6
KR
18492020-09-10 Kamil Rytarowski <n54@gmx.com>
1850
1851 * netbsd-nat.h: New file.
1852 * netbsd-nat.c: Likewise.
1853
1b788fb6
TT
18542020-09-09 Tom Tromey <tromey@adacore.com>
1855
1856 * ada-lang.c (remove_extra_symbols): Do not increment when
1857 removing an element
1858
03b0a45f
TT
18592020-09-08 Tom Tromey <tromey@adacore.com>
1860
1861 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
1862
3cae4447
TT
18632020-09-08 Tom Tromey <tromey@adacore.com>
1864
1865 PR win32/25302:
1866 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
1867 (gdb_bfd_init_data): New function.
1868 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
1869
7f08fd51
TBA
18702020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1871
1872 * infrun.c (fetch_inferior_event): Use
1873 `switch_to_target_no_thread` to switch the target.
1874
3e6ff933
TT
18752020-09-06 Tom Tromey <tom@tromey.com>
1876
1877 * symfile.h (dwarf2_free_objfile): Don't declare.
1878
e56798df
AKS
18792020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1880
1881 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
1882 to match 16 byte real/complex type generated by Flang compiler.
1883
8f5c6526
TV
18842020-09-03 Tom de Vries <tdevries@suse.de>
1885
1886 PR breakpoint/26546
1887 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
1888 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
1889
c5065df0
SM
18902020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
1891
1892 * maint.c (index_digits): New function.
1893 (struct maint_print_section_data): Remove.
1894 (print_bfd_section_info): Remove print_data parameter, add arg
1895 and index_digits.
1896 (print_objfile_section_info): Likewise.
1897 (print_bfd_section_info_maybe_relocated): Likewise (plus
1898 objfile).
1899 (maintenance_info_sections): Adjust calls.
1900
02c6f3f1
TT
19012020-09-02 Tom Tromey <tromey@adacore.com>
1902
1903 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1904 for null pointers.
1905 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1906
ef5e5b0b
SM
19072020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1908
1909 * bcache.h (struct bcache) <insert>: Change type of `added` to
1910 pointer to bool.
1911 * bcache.c (bcache::insert): Likewise.
1912 * gdbtypes.c (check_types_worklist): Adjust.
1913 * psymtab.c (add_psymbol_to_bcache): Adjust.
1914
973695d6
KB
19152020-08-31 Kevin Buettner <kevinb@redhat.com>
1916
1917 * corelow.c (unordered_set): Include.
1918 (class core_target): Add field 'm_core_unavailable_mappings'.
1919 (core_target::build_file_mappings): Print only one warning
1920 per inaccessible file. Add unavailable/broken mappings
1921 to m_core_unavailable_mappings.
1922 (core_target::xfer_partial): Call...
1923 (core_target::xfer_memory_via_mappings): New method.
1924
264fc0e2
SM
19252020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1926
1927 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1928 type to bool.
1929
2de01bdb
SM
19302020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1931
1932 * dwarf2/read.c (struct field_info): Fix indentation.
1933
f3bd50f1
SM
19342020-08-31 Simon Marchi <simon.marchi@efficios.com>
1935
1936 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1937 ordering in comment.
1938 * frame.c (frame_id_eq): Fix indentation.
1939
22b9b4b0
SL
19402020-08-31 Scott Linder <scott@scottlinder.com>
1941 Simon Marchi <simon.marchi@efficios.com>
1942
1943 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1944 inline frame ids in outer frame.
1945
84154d16
SM
19462020-08-31 Simon Marchi <simon.marchi@efficios.com>
1947
1948 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1949 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1950 (outer_frame_id): Use FID_STACK_OUTER instead of
1951 FID_STACK_INVALID.
1952 (frame_id_p): Don't check for outer_frame_id.
1953
8efaf6b3
SM
19542020-08-31 Simon Marchi <simon.marchi@efficios.com>
1955
1956 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1957 regnum/frame in value. Call allocate_value_lazy.
1958 * frame.c (frame_unwind_register_value): Use
1959 val_print_not_saved.
1960
fe1fe7ea
SM
19612020-08-31 Simon Marchi <simon.marchi@efficios.com>
1962
1963 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1964
f7c7700d
PA
19652020-08-29 Pedro Alves <pedro@palves.net>
1966
1967 * progspace.c (print_program_space): Use all_inferiors. Switch to
1968 the inferior before calling target_pid_to_str.
1969
e0814aae
TT
19702020-08-28 Tom Tromey <tom@tromey.com>
1971
1972 * xcoffread.c (xcoff_end_psymtab): Update comment.
1973 * dbxread.c (dbx_end_psymtab): Update comment.
1974
626d2320
TV
19752020-08-28 Tom de Vries <tdevries@suse.de>
1976
1977 PR breakpoint/26544
1978 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1979 event_location.
1980 (create_breakpoint): Same.
1981 (base_breakpoint_decode_location): Same.
1982 (bkpt_create_sals_from_location): Same.
1983 (bkpt_decode_location): Same.
1984 (bkpt_probe_create_sals_from_location): Same.
1985 (bkpt_probe_decode_location): Same.
1986 (tracepoint_create_sals_from_location): Same.
1987 (tracepoint_decode_location): Same.
1988 (tracepoint_probe_decode_location): Same.
1989 (strace_marker_create_sals_from_location): Same.
1990 (strace_marker_decode_location): Same.
1991 (create_sals_from_location_default): Same.
1992 (decode_location_default): Same.
1993 * breakpoint.h (struct breakpoint_ops): Same.
1994 (create_breakpoint): Same.
1995 * linespec.h (decode_line_full): Same.
1996 * linespec.c (decode_line_full): Same. Throw error if
1997 result.size () == 0.
1998
df631783
PA
19992020-08-27 Pedro Alves <pedro@palves.net>
2000
2001 PR gdb/26524
2002 * breakpoint.c (until_break_fsm) <location_breakpoint,
2003 caller_breakpoint>: Delete fields.
2004 <breakpoints>: New field.
2005 <until_break_fsm>: Adjust to save a breakpoint vector instead of
2006 two individual breakpoints.
2007 (until_break_fsm::should_stop): Loop over breakpoints in the
2008 breakpoint vector.
2009 (until_break_fsm::clean_up): Adjust to clear the breakpoints
2010 vector.
2011 (until_break_command): Handle location expanding into multiple
2012 sals.
2013
b2b38aa4
PA
20142020-08-27 Pedro Alves <pedro@palves.net>
2015
2016 PR gdb/26523
2017 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
2018 bp_until breakpoints user-specified locations. Update intro
2019 comment.
2020
b886559f
SM
20212020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
2022
2023 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
2024 gdb_bfd_sections): New.
2025 * maint.c (print_bfd_section_info): Change param type to
2026 maint_print_section_data.
2027 (print_objfile_section_info): Likewise.
2028 (print_bfd_section_info_maybe_relocated): Likewise.
2029 (maintenance_info_sections): Use gdb_bfd_sections.
2030
4c6e63bf
SV
20312020-08-25 Shahab Vahedi <shahab@synopsys.com>
2032
2033 * MAINTAINERS: Add ARC target and maintainer.
2034
8d7f0635
AK
20352020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
2036
2037 * configure.tgt: ARC support for GNU/Linux.
2038 * Makefile.in (ALL_TARGET_OBJS): Likewise.
2039 * arc-linux-tdep.c: New file.
2040 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
2041 * arc-tdep.c (arc_write_pc): Use it.
2042
fdd8731b
SV
20432020-08-25 Shahab Vahedi <shahab@synopsys.com>
2044
2045 * arc-tdep.c (arc_check_for_hardware_loop): New.
2046 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
2047
22459524
SV
20482020-08-25 Shahab Vahedi <shahab@synopsys.com>
2049
2050 * arc-tdep.h: Include "gdbarch.h".
2051
995d3a19
SV
20522020-08-25 Shahab Vahedi <shahab@synopsys.com>
2053
2054 * arch/arc.h
2055 (arc_gdbarch_features): New class to stir the selection of target XML.
2056 (arc_create_target_description): Use FEATURES to choose XML target.
2057 (arc_lookup_target_description): Use arc_create_target_description
2058 to create _new_ target descriptions or return the already created
2059 ones if the FEATURES is the same.
2060 * arch/arc.c: Implementation of prototypes described above.
2061 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
2062 (arc_gdbarch_features_init): Initialize the FEATURES struct.
2063 * arc-tdep.c (*_feature_name): Make feature names consistent.
2064 (arc_register_feature): A new struct to hold information about
2065 registers of a particular target/feature.
2066 (arc_check_tdesc_feature): Check if XML provides registers in
2067 compliance with ARC_REGISTER_FEATURE structs.
2068 (arc_update_acc_reg_names): Add aliases for r58 and r59.
2069 (determine_*_reg_feature_set): Which feature name to look for.
2070 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
2071 (mach_type_to_arc_isa): Convert from a set of binutils machine types
2072 to expected ISA enums to be used in arc_gdbarch_features structs.
2073 * features/Makefile (FEATURE_XMLFILES): Add new files.
2074 * gdb/features/arc/v1-aux.c: New file.
2075 * gdb/features/arc/v1-aux.xml: Likewise.
2076 * gdb/features/arc/v1-core.c: Likewise.
2077 * gdb/features/arc/v1-core.xml: Likewise.
2078 * gdb/features/arc/v2-aux.c: Likewise.
2079 * gdb/features/arc/v2-aux.xml: Likewise.
2080 * gdb/features/arc/v2-core.c: Likewise.
2081 * gdb/features/arc/v2-core.xml: Likewise.
2082 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
2083
3945d2d7
GM
20842020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
2085 Andrew Burgess <andrew.burgess@embecosm.com>
2086
2087 PR m2/26372
fc5d6901 2088 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
2089 an assert. Remove single element array indexing pattern as the
2090 MULTI_SUBSCRIPT support will handle this case too.
2091
2677f2d3
SM
20922020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
2093
2094 * value.h (valprint_check_validity): Move declaration from
2095 here...
2096 * valprint.h (valprint_check_validity): ... to here.
2097
c426fddb
SM
20982020-08-24 Simon Marchi <simon.marchi@efficios.com>
2099
2100 * debug.h: New file.
2101 * debug.c (debug_prefixed_vprintf): New function.
2102 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
2103 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
2104
1eb8556f
SM
21052020-08-24 Simon Marchi <simon.marchi@efficios.com>
2106
2107 * infrun.h (infrun_debug_printf_1): New function declaration.
2108 (infrun_debug_printf): New macro.
2109 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
2110 throughout.
2111 (infrun_debug_printf): New function.
2112 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
2113 (handle_jit_event): Likewise.
2114
b8fff44e
MW
21152020-08-21 Mark Wielaard <mark@klomp.org>
2116
2117 * ada-lex.l: Extend register warnings diagnostics comment for g++.
2118
d19c3068
SM
21192020-08-22 Simon Marchi <simon.marchi@efficios.com>
2120
2121 * frame.c (enum class frame_id_status): New.
2122 (struct frame_info) <this_id::p>: Change type to frame_id_status.
2123 (fprintf_frame): Update.
2124 (compute_frame_id): Set frame id status to "computing" on entry.
2125 Set it back to "not_computed" on failure and to "computed" on
2126 success.
2127 (get_frame_id): Assert the frame id is not being computed.
2128 (create_sentinel_frame): Use frame_id_status::COMPUTED.
2129 (create_new_frame): Likewise.
2130 (frame_cleanup_after_sniffer): Update assert.
2131
b70e516e
SM
21322020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2133
2134 * regcache.c (pid_ptid_regcache_map): New type.
2135 (target_ptid_regcache_map): Remove.
2136 (target_pid_ptid_regcache_map): New type.
2137 (regcaches): Change type to target_pid_ptid_regcache_map.
2138 (get_thread_arch_aspace_regcache): Update.
2139 (regcache_thread_ptid_changed): Update, handle pid-like ptid
2140 case.
2141 (regcaches_size): Update.
2142 (regcache_count): Update.
2143 (registers_changed_ptid_target_pid_test): New.
2144 (_initialize_regcache): Register new test.
2145
cdd9148a
SM
21462020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2147
2148 * regcache.c (regcache_count): New.
2149 (struct regcache_test_data): New.
2150 (regcache_test_data_up): New.
2151 (populate_regcaches_for_test): New.
2152 (regcaches_test): Remove.
2153 (get_thread_arch_aspace_regcache_test): New.
2154 (registers_changed_ptid_all_test): New.
2155 (registers_changed_ptid_target_test): New.
2156 (registers_changed_ptid_target_ptid_test): New.
2157 (regcache_thread_ptid_changed): Remove regcache_count lambda.
2158 (_initialize_regcache): Register new tests.
2159
dd125343
SM
21602020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2161
2162 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
2163 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
2164 gdbarch and aspace parameter. Use current inferior's aspace.
2165 Validate regcache's arch value.
2166 (regcaches_test): Update.
2167
3ee93972
SM
21682020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2169
2170 * regcache.c (regcaches_test): Call registers_changed.
2171
33bf4c5c
TBA
21722020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2173
2174 * infrun.c (process_event_stop_test): Fix typo "breapoint".
2175
c2fd7fae
AKS
21762020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2177
2178 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2179 to find the end of prologue for flang compiled binaries.
2180 * arm-tdep.c (arm_skip_prologue): Likewise.
2181 * i386-tdep.c (i386_skip_prologue): Likewise.
2182 * producer.c (producer_is_llvm): New function.
2183 (producer_parsing_tests): Added new tests for clang/flang.
2184 * producer.h (producer_is_llvm): New declaration.
2185
9327494e
SM
21862020-08-18 Simon Marchi <simon.marchi@efficios.com>
2187
2188 * linux-nat.c (linux_nat_debug_printf): New function.
2189 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2190
d138725a
AM
21912020-08-18 Aaron Merey <amerey@redhat.com>
2192
2193 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2194 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2195 (CLIBS): Add DEBUGINFOD_LIBS.
2196
f9b11e6b
ST
21972020-08-17 Sergei Trofimovich <siarheit@google.com>
2198
2199 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2200 'gdbarch_num_regs'.
2201
3ae7ab99
TT
22022020-08-17 Tom Tromey <tromey@adacore.com>
2203
2204 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2205 ada_get_decoded_value returns NULL.
2206
b017825f
TT
22072020-08-17 Tom Tromey <tromey@adacore.com>
2208
2209 * python/py-inferior.c (infpy_search_memory): Use
2210 gdb_py_object_from_ulongest.
2211 * python/py-infevents.c (create_inferior_call_event_object)
2212 (create_memory_changed_event_object): Use
2213 gdb_py_object_from_ulongest.
2214 * python/py-linetable.c (ltpy_entry_get_pc): Use
2215 gdb_py_object_from_ulongest.
2216
7635cf79
SM
22172020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2218
2219 * loc.c (class symbol_needs_eval_context): Fix indentation.
2220
f54be24b
SM
22212020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2222
2223 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2224 bool.
2225
53d5a2a5
TV
22262020-08-17 Tom de Vries <tdevries@suse.de>
2227
2228 PR gdb/26393
2229 * gdbtypes.c (dump_dynamic_prop): New function.
2230 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2231
547ce8f0
TV
22322020-08-15 Tom de Vries <tdevries@suse.de>
2233
2234 PR backtrace/26390
2235 * stack.c (print_frame_args): Temporarily set the selected
2236 frame to FRAME while printing the frame's arguments.
2237
6ea815e7
PFC
22382020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2239
2240 PR breakpoints/26385
2241 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2242 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2243
6e562fa3
PFC
22442020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2245
2246 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2247 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2248 and >= to check return value instead of == -1 and != -1.
2249
d369b608
SM
22502020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2251
2252 * utils.h (class gdb_argv) <as_array_view>: New method.
2253 * utils.c (gdb_argv_as_array_view_test): New.
2254 (_initialize_utils): Register selftest.
2255 * maint.c (maintenance_selftest): Use the new method.
2256
b31488a3
KR
22572020-08-13 Kamil Rytarowski <n54@gmx.com>
2258
2259 * target.h (supports_dumpcore, dumpcore): New
2260 function declarations.
2261 * target.c (supports_dumpcore, dumpcore): New
2262 functions.
2263 * target-delegates.c: Rebuild.
2264 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2265 and target_dumpcore ().
2266
002a3166
AM
22672020-08-13 Aaron Merey <amerey@redhat.com>
2268
2269 * debuginfod-support.c: Replace global variables with user_data.
2270
ece5bc8a
SM
22712020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2272
2273 * maint.c (maintenance_selftest): Split args and pass array_view
2274 to run_tests.
2275
6d8a0a5e
LM
22762020-08-12 Luis Machado <luis.machado@linaro.org>
2277
2278 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2279 type's length.
2280 Use %s and pulongest to print the length.
2281
7cf663a9
PA
22822020-08-12 Pedro Alves <palves@redhat.com>
2283
2284 * NEWS: Move "Multi-target debugging support" item to the
2285 "Changes since GDB 9" section.
2286
27c7b875
PA
22872020-08-12 Pedro Alves <palves@redhat.com>
2288
2289 PR gdb/26336
2290 * progspace.c (program_space::remove_objfile): Invalidate the
2291 frame cache.
2292
1796a2a1
TV
22932020-08-11 Tom de Vries <tdevries@suse.de>
2294
2295 * MAINTAINERS: Mark ms1 as deleted.
2296
f8e3fe0d
LM
22972020-08-10 Luis Machado <luis.machado@linaro.org>
2298
2299 PR gdb/26310
2300
2301 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2302 act accordingly.
2303 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2304 movz/str/stur/stp skipping behavior.
2305
cc308722
LM
23062020-08-10 Luis Machado <luis.machado@linaro.org>
2307
2308 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2309 struct user_sve_header instead of struct sve_context.
2310
041d9819
SM
23112020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2312
2313 * read.h (dwarf2_fetch_die_loc_sect_off,
2314 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2315 `void *` parameter with function_view.
2316 * read.c (dwarf2_fetch_die_loc_sect_off,
2317 dwarf2_fetch_die_loc_cu_off): Likewise.
2318 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2319 (per_cu_dwarf_call): Adjust.
2320 (get_frame_address_in_block_wrapper): Remove.
2321 (indirect_synthetic_pointer): Adjust.
2322 (get_ax_pc): Remove.
2323 (dwarf2_compile_expr_to_ax): Adjust.
2324
38f8aa06
TV
23252020-08-08 Tom de Vries <tdevries@suse.de>
2326
2327 PR build/26344
2328 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2329 constructor.
2330 * regcache.c (get_thread_arch_aspace_regcache): Same.
2331
a52b3ae2
TT
23322020-08-07 Tom Tromey <tromey@adacore.com>
2333
2334 * ravenscar-thread.c
2335 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2336 New method.
2337 (ravenscar_thread_target::wait): Check
2338 runtime_initialized.
2339 (ravenscar_thread_target::prepare_to_store)
2340 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2341 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2342 (ravenscar_thread_target::stopped_by_watchpoint)
2343 (ravenscar_thread_target::stopped_data_address)
2344 (ravenscar_thread_target::core_of_thread): Use
2345 scoped_restore_current_thread and
2346 set_base_thread_from_ravenscar_task.
2347
0e29517d
TT
23482020-08-07 Tom Tromey <tromey@adacore.com>
2349
2350 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2351
592f9bd7
TT
23522020-08-07 Tom Tromey <tromey@adacore.com>
2353
2354 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2355 update_inferior_ptid before update_thread_list.
2356 (temporarily_change_regcache_ptid): New class.
2357 (ravenscar_thread_target::fetch_registers)
2358 (ravenscar_thread_target::store_registers)
2359 (ravenscar_thread_target::prepare_to_store): Use base thread when
2360 forwarding operation.
2361
39e2018a
TT
23622020-08-07 Tom Tromey <tromey@adacore.com>
2363
2364 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2365 "is_pid" case.
2366
2080266b
TT
23672020-08-07 Tom Tromey <tromey@adacore.com>
2368
2369 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2370 New methods.
2371 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2372 first.
2373 (ravenscar_thread_target::add_thread): Rename from
2374 ravenscar_add_thread.
2375 (ravenscar_thread_target::update_thread_list): Use a lambda.
2376 (ravenscar_thread_target::xfer_partial): New method.
2377
78c02f21
TT
23782020-08-07 Tom Tromey <tromey@adacore.com>
2379
2380 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2381 gdb::function_view.
2382 (iterate_over_live_ada_tasks): Change type of argument.
2383 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2384 of argument.
2385
d5d833af
TT
23862020-08-07 Tom Tromey <tromey@adacore.com>
2387
2388 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2389 Remove.
2390 (ravenscar_thread_target::extra_thread_info): Remove.
2391 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2392 defer to target beneath for non-Ravenscar threads.
2393
a8ac85bb
TT
23942020-08-07 Tom Tromey <tromey@adacore.com>
2395
2396 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2397 get_base_thread_from_ravenscar_task>: Now methods.
2398 <m_cpu_map>: New member.
2399 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2400 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2401 (ravenscar_thread_target::task_is_currently_active): Update.
2402 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2403 Now a method.
2404 (ravenscar_thread_target::add_active_thread): Put initial thread
2405 into the m_cpu_map.
2406
550ab58d
TT
24072020-08-07 Tom Tromey <tromey@adacore.com>
2408
2409 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2410 event_ptid.
2411
e9546579
TT
24122020-08-07 Tom Tromey <tromey@adacore.com>
2413
2414 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2415 runtime_initialized.
2416
3d4470e5
TT
24172020-08-07 Tom Tromey <tromey@adacore.com>
2418
2419 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2420 add_active_thread.
2421 (ravenscar_thread_target::add_active_thread): Now public.
2422 (ravenscar_inferior_created): Call add_active_thread after pushing
2423 the target.
2424
888bdb2b
SM
24252020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2426
2427 * regcache.c (ptid_regcache_map): New type.
2428 (target_ptid_regcache_map): New type.
2429 (regcaches): Change type to target_ptid_regcache_map.
2430 (get_thread_arch_aspace_regcache): Update to regcaches' new
2431 type.
2432 (regcache_thread_ptid_changed): Likewise.
2433 (registers_changed_ptid): Likewise.
2434 (regcaches_size): Likewise.
2435 (regcaches_test): Update.
2436 (regcache_thread_ptid_changed): Update.
2437 * regcache.h (regcache_up): New type.
2438 * gdbsupport/ptid.h (hash_ptid): New struct.
2439
b161a60d
SM
24402020-08-07 Simon Marchi <simon.marchi@efficios.com>
2441
2442 * observable.h (thread_ptid_changed): Add parameter
2443 `process_stratum_target *`.
2444 * infrun.c (infrun_thread_ptid_changed): Add parameter
2445 `process_stratum_target *` and use it.
2446 (selftests): New namespace.
2447 (infrun_thread_ptid_changed): New function.
2448 (_initialize_infrun): Register selftest.
2449 * regcache.c (regcache_thread_ptid_changed): Add parameter
2450 `process_stratum_target *` and use it.
2451 (regcache_thread_ptid_changed): New function.
2452 (_initialize_regcache): Register selftest.
2453 * thread.c (thread_change_ptid): Pass target to
2454 thread_ptid_changed observable.
2455
d2854d8d
CT
24562020-08-06 Caroline Tice <cmtice@google.com>
2457
fe4c3d43
SM
2458 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2459 (struct dwp_sections): Update field comments. Add loclists and
2460 rnglists fields.
2461 (struct virtual_v2_dwo_sections): Rename struct to
2462 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2463 size & offset fields for loclists and rnglists.
2464 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2465 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2466 skipping dummy type units.
2467 (create_dwp_hash_table): Update the large comment above the function to
2468 discuss Version 5 DWP files as well, with references. Update all the
2469 version checks in the function to check for version 5 as well. Add new
2470 section at the end to create dwp hash table for version 5.
2471 (create_dwp_v2_section): Rename function to
2472 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2473 Add V5 to error message text.
2474 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2475 into calls to create_dwp_v2_or_v5_section.
2476 (create_dwo_unit_in_dwp_v5): New function.
2477 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2478 check for version2; add else clause to handle version 5.
2479 (open_and_init_dwo_file): Add code to check dwarf version & only call
2480 create_debug_types_hash_table (with sections.types) if version is not 5;
2481 else call create_debug_type_hash_table, with sections.info.
2482 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2483 version 5.
2484 (dwarf2_locate_v5_dwp_sections): New function.
2485 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2486 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 2487
159ed7d9
SM
24882020-08-06 Simon Marchi <simon.marchi@efficios.com>
2489
2490 * regcache.h (class regcache): Remove friend
2491 registers_changed_ptid.
2492 <regcache_thread_ptid_changed>: Remove.
2493 <regcaches>: Remove.
2494 * regcache.c (regcache::regcaches): Rename to...
2495 (regcaches): ... this. Make static.
2496 (get_thread_arch_aspace_regcache): Update.
2497 (regcache::regcache_thread_ptid_changed): Rename to...
2498 (regcache_thread_ptid_changed): ... this. Update.
2499 (class regcache_access): Remove.
2500 (regcaches_test): Update.
2501 (_initialize_regcache): Update.
2502 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2503 <forward_list>.
2504
174981ae
SM
25052020-08-06 Simon Marchi <simon.marchi@efficios.com>
2506
2507 * regcache.h (class regcache) <current_regcache>: Rename to...
2508 <regcaches>: ... this. Move doc here.
2509 * regcache.c (regcache::current_regcache) Rename to...
2510 (regcache::regcaches): ... this. Move doc to header.
2511 (get_thread_arch_aspace_regcache): Update.
2512 (regcache::regcache_thread_ptid_changed): Update.
2513 (registers_changed_ptid): Update.
2514 (class regcache_access) <current_regcache_size>: Rename to...
2515 <regcaches_size>: ... this.
2516 (current_regcache_test): Rename to...
2517 (regcaches_test): ... this.
2518 (_initialize_regcache): Update.
2519
ed908db6
VC
25202020-08-06 Victor Collod <vcollod@nvidia.com>
2521
2522 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2523
b5582ab7
KB
25242020-08-05 Kevin Buettner <kevinb@redhat.com>
2525
2526 * corelow.c (core_target::build_file_mappings): Don't output
2527 null pathname in warning.
2528
ea946b86
SM
25292020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2530
2531 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2532 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2533 gdb.dwarf2/dw2-single-line-discriminators.exp,
2534 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2535
57d02173
TT
25362020-08-05 Tom Tromey <tromey@adacore.com>
2537
2538 PR rust/26197:
2539 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2540 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2541 Fix off-by-one and type size errors in ordinary case.
2542
5555c86d
TV
25432020-08-05 Tom de Vries <tdevries@suse.de>
2544
2545 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2546 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2547
97916bfe
SM
25482020-08-04 Simon Marchi <simon.marchi@efficios.com>
2549
2550 * frame.h (frame_id_p): Return bool.
2551 (frame_id_artificial_p): Return bool.
2552 (frame_id_eq): Return bool.
2553 (has_stack_frames): Return bool.
2554 (get_selected_frame): Fix typo in comment.
2555 (get_frame_pc_if_available): Return bool.
2556 (get_frame_address_in_block_if_available): Return bool.
2557 (get_frame_func_if_available): Return bool.
2558 (read_frame_register_unsigned): Return bool.
2559 (get_frame_register_bytes): Return bool.
2560 (safe_frame_unwind_memory): Return bool.
2561 (deprecated_frame_register_read): Return bool.
2562 (frame_unwinder_is): Return bool.
2563 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2564 bool.
2565 <this_id::p>: Likewise.
2566 <prev_p>: Likewise.
2567 (frame_stash_add): Return bool.
2568 (get_frame_id): Use bool.
2569 (frame_id_build_special) Use bool.
2570 (frame_id_build_unavailable_stack): Use bool.
2571 (frame_id_build): Use bool.
2572 (frame_id_p): Return bool, use true/false instead of 1/0.
2573 (frame_id_artificial_p): Likewise.
2574 (frame_id_eq): Likewise.
2575 (frame_id_inner): Likewise.
2576 (get_frame_func_if_available): Likewise.
2577 (read_frame_register_unsigned): Likewise.
2578 (deprecated_frame_register_read): Likewise.
2579 (get_frame_register_bytes): Likewise.
2580 (has_stack_frames): Likewise.
2581 (inside_main_func): Likewise.
2582 (inside_entry_func): Likewise.
2583 (get_frame_pc_if_available): Likewise.
2584 (get_frame_address_in_block_if_available): Likewise.
2585 (frame_unwinder_is): Likewise.
2586 (safe_frame_unwind_memory): Likewise.
2587 (frame_unwind_arch): Likewise.
2588
fedfee88
SM
25892020-08-04 Simon Marchi <simon.marchi@efficios.com>
2590
2591 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2592 type to cached_copy_status.
2593 (fprintf_frame): Adjust.
2594 (get_frame_func_if_available): Adjust.
2595 (frame_cleanup_after_sniffer): Adjust.
2596
6cfa9b59
MW
25972020-08-04 Mark Wielaard <mark@klomp.org>
2598
2599 * MAINTAINERS (Write After Approval): Update email address.
2600
66d6346b
SM
26012020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2602
2603 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2604 dynamic_prop::const_val.
2605
8a6d5e35
SM
26062020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2607
2608 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2609 dynamic_prop::kind.
2610
51d6067d
SM
26112020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2612
2613 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2614
b26e2ae7
JM
26152020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2616
2617 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2618
39791af2
JM
26192020-08-04 Weimin Pan <weimin.pan@oracle.com>
2620 Jose E. Marchesi <jose.marchesi@oracle.com>
2621
2622 * configure.tgt: Add entry for bpf-*-*.
2623 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2624 (ALLDEPFILES): Add bpf-tdep.c.
2625 * bpf-tdep.c: New file.
2626 * MAINTAINERS: Add bpf target and maintainer.
2627 * NEWS: Mention the support for the new target.
2628
521894aa
TV
26292020-08-04 Tom de Vries <tdevries@suse.de>
2630
2631 PR symtab/23270
2632 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2633 Error.
2634
5d6356e9
JB
26352020-08-03 John Baldwin <jhb@FreeBSD.org>
2636
2637 * syscalls/freebsd.xml: Regenerate.
2638
0cf82b81
JB
26392020-08-03 John Baldwin <jhb@FreeBSD.org>
2640
2641 * syscalls/update-freebsd.sh: Fix usage and year range.
2642
8f34b746
TV
26432020-08-03 Tom de Vries <tdevries@suse.de>
2644
2645 PR symtab/26333
2646 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2647 DW_LNE_lo_user/DW_LNE_hi_user range.
2648
5e500d33
SM
26492020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2650
2651 PR ada/26318
2652 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2653 kind.
2654
78319c15
TBA
26552020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2656
2657 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2658
4c55e970
TBA
26592020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2660
2661 * breakpoint.c (set_breakpoint_condition): Update the condition
2662 expressions after checking that the input condition string parses
2663 successfully and does not contain junk at the end.
2664
1e620590
TBA
26652020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2666
2667 * breakpoint.c (set_breakpoint_condition): Update the
2668 condition string after parsing the new condition successfully.
2669
c8693053
RO
26702020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2671
2672 * proc-api.c (_STRUCTURED_PROC): Don't define.
2673 * proc-events.c: Likewise.
2674 * proc-flags.c: Likewise.
2675 * proc-why.c: Likewise.
2676 * procfs.c: Likewise.
2677
2678 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2679 * configure, config.in: Regenerate.
2680
5a99adb8
TV
26812020-07-30 Tom de Vries <tdevries@suse.de>
2682
2683 PR build/26320
2684 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2685 m_red/m_green/m_blue in a union.
2686
8ba83e91
TV
26872020-07-29 Tom de Vries <tdevries@suse.de>
2688
2689 PR tdep/26280
2690 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2691
f75a0693
AB
26922020-07-28 Tom Tromey <tromey@adacore.com>
2693
2694 PR symtab/26270:
2695 * symtab.h (find_pc_partial_function_sym): Declare.
2696 * cli/cli-cmds.c (disassemble_command): Use
2697 find_pc_partial_function_sym. Check asm_demangle.
2698 * blockframe.c (cache_pc_function_sym): New global.
2699 (cache_pc_function_name): Remove.
2700 (clear_pc_function_cache): Update.
2701 (find_pc_partial_function_sym): New function, from
2702 find_pc_partial_function.
2703 (find_pc_partial_function): Rewrite using
2704 find_pc_partial_function_sym.
2705
16f3242c
TT
27062020-07-28 Tom Tromey <tromey@adacore.com>
2707
2708 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2709 help. Add usage.
2710
4888741a
TT
27112020-07-28 Tom Tromey <tromey@adacore.com>
2712
2713 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2714 <DW_OP_GNU_variable_value>: Cast to address type.
2715
4d46f402
KR
27162020-07-28 Kamil Rytarowski <n54@gmx.com>
2717
2718 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2719 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2720 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2721 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2722 (nbsd_get_siginfo_type): New.
2723 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2724 (_initialize_nbsd_tdep): New.
2725
d70f978b
L
27262020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2727
2728 PR binutils/26301
2729 * configure: Regenerated.
2730
377170fa
L
27312020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2732
2733 PR binutils/26301
2734 * configure: Regenerated.
2735
43d5901d
AB
27362020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2737
2738 * python/py-frame.c: Remove 'user-regs.h' include.
2739 (frapy_read_register): Rewrite to make use of
2740 gdbpy_parse_register_id.
2741 * python/py-registers.c (gdbpy_parse_register_id): New function,
2742 moved here from python/py-unwind.c. Updated the return type, and
2743 also accepts register descriptor objects.
2744 * python/py-unwind.c: Remove 'user-regs.h' include.
2745 (pyuw_parse_register_id): Moved to python/py-registers.c.
2746 (unwind_infopy_add_saved_register): Update to use
2747 gdbpy_parse_register_id.
2748 (pending_framepy_read_register): Likewise.
2749 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2750
14fa8fb3
AB
27512020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2752
2753 * python/py-registers.c: Add 'user-regs.h' include.
2754 (register_descriptor_iter_find): New function.
2755 (register_descriptor_iterator_object_methods): New static global
2756 methods array.
2757 (register_descriptor_iterator_object_type): Add pointer to methods
2758 array.
2759
ddce1758
JB
27602020-07-27 John Baldwin <jhb@FreeBSD.org>
2761
2762 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2763 for all architectures on FreeBSD 11.3 and later.
2764
a4089f52
TT
27652020-07-27 Tom Tromey <tromey@adacore.com>
2766
2767 * gcore.h (load_corefile): Don't declare.
2768
95420d30
TV
27692020-07-27 Tom de Vries <tdevries@suse.de>
2770
2771 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2772 * config.in: Regenerate.
2773 * configure: Regenerate.
2774
05a6b8c2
EZ
27752020-07-26 Eli Zaretskii <eliz@gnu.org>
2776
2777 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2778 ws2tcpip.h. When checking whether socklen_t type is defined, use
2779 ws2tcpip.h if it is available and sys/socket.h isn't.
2780 * configure: Regenerate.
2781 * config.in: Regenerate.
2782
e79eb02f
AB
27832020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2784
2785 PR fortran/23051
2786 PR fortran/26139
2787 * valops.c (value_ind): Pass address to
2788 readjust_indirect_value_type.
2789 * value.c (readjust_indirect_value_type): Make parameter
2790 non-const, and add extra address parameter. Resolve original type
2791 before using it.
2792 * value.h (readjust_indirect_value_type): Update function
2793 signature and comment.
2794
876518dd
TV
27952020-07-25 Tom de Vries <tdevries@suse.de>
2796
2797 PR symtab/26243
2798 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2799 entries.
2800
f6720b1c
AM
28012020-07-24 Aaron Merey <amerey@redhat.com>
2802
2803 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2804 * configure: Rebuild.
2805
513487e1
KB
28062020-07-23 Kevin Buettner <kevinb@redhat.com>
2807
2808 PR corefiles/26294
2809 * corelow.c (_initialize_corelow): Add period to help text
2810 for "maintenance print core-file-backed-mappings".
2811
e7bc9db8
PA
28122020-07-23 Pedro Alves <pedro@palves.net>
2813
2814 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2815 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2816 meanwhile.
2817 * frame.c (frame_cache_generation, get_frame_cache_generation):
2818 New.
2819 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2820 (get_prev_frame_if_no_cycle): On exception, don't touch
2821 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2822 * frame.h (get_frame_cache_generation): Declare.
2823
90fcc466
TV
28242020-07-23 Tom de Vries <tdevries@suse.de>
2825
2826 PR tui/26282
2827 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2828 New default constructor.
2829
78344df7
AB
28302020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2831
2832 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2833 exclude non-statement entries.
2834
b089853a
KB
28352020-07-22 Kevin Buettner <kevinb@redhat.com>
2836
2837 * NEWS (New commands): Mention new command
2838 "maintenance print core-file-backed-mappings".
2839
09c2f5d4
KB
28402020-07-22 Kevin Buettner <kevinb@redhat.com>
2841
2842 * corelow.c (gdbcmd.h): Include.
2843 (core_target::info_proc_mappings): New method.
2844 (get_current_core_target): New function.
2845 (maintenance_print_core_file_backed_mappings): New function.
2846 (_initialize_corelow): Add core-file-backed-mappings to
2847 "maint print" commands.
2848
9c5ec5c2 28492020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 2850
9c5ec5c2
KB
2851 * linux-tdep.c (dump_note_entry_p): New function.
2852 (linux_dump_mapping_p_ftype): New typedef.
2853 (linux_find_memory_regions_full): Add new parameter,
2854 should_dump_mapping_p.
2855 (linux_find_memory_regions): Adjust call to
2856 linux_find_memory_regions_full.
2857 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2858 call to linux_find_memory_regions_full.
2859
db082f59
KB
28602020-07-22 Kevin Buettner <kevinb@redhat.com>
2861
2862 * corelow.c (solist.h, unordered_map): Include.
2863 (class core_target): Add field m_core_file_mappings and
2864 method build_file_mappings.
2865 (core_target::core_target): Call build_file_mappings.
2866 (core_target::~core_target): Free memory associated with
2867 m_core_file_mappings.
2868 (core_target::build_file_mappings): New method.
2869 (core_target::xfer_partial): Use m_core_file_mappings
2870 for memory transfers.
2871 * linux-tdep.c (linux_read_core_file_mappings): New
2872 function.
2873 (linux_core_info_proc_mappings): Rewrite to use
2874 linux_read_core_file_mappings.
2875 (linux_init_abi): Register linux_read_core_file_mappings.
2876
7e183d27
KB
28772020-07-22 Kevin Buettner <kevinb@redhat.com>
2878
2879 * arch-utils.c (default_read_core_file_mappings): New function.
2880 * arch-utils.c (default_read_core_file_mappings): Declare.
2881 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
2882 * gdbarch.h, gdbarch.c: Regenerate.
2883
2735d421
KB
28842020-07-22 Kevin Buettner <kevinb@redhat.com>
2885
2886 PR corefiles/25631
2887 * corelow.c (core_target:xfer_partial): Revise
2888 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
2889 case after first checking the stratum beneath the core
2890 target.
2891 (has_all_memory): Return true.
2892 * target.c (raw_memory_xfer_partial): Revise comment
2893 regarding use of has_all_memory.
2894
e56cb451
KB
28952020-07-22 Kevin Buettner <kevinb@redhat.com>
2896
2897 * exec.h (section_table_xfer_memory): Revise declaration,
2898 replacing section name parameter with an optional callback
2899 predicate.
2900 * exec.c (section_table_xfer_memory): Likewise.
2901 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2902 of section_table_xfer_memory.
2903
32fa152e
TT
29042020-07-22 Tom Tromey <tromey@adacore.com>
2905
2906 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2907 lookup_symbol_search_name.
2908
a67a1c41
AB
29092020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2910
2911 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2912 redundant local variable.
2913 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2914 reference, not pointer, update code accordingly.
2915
a7b4ff4f
SM
29162020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2917 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2918
2919 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2920 * jit.c (jit_breakpoint_re_set_internal): Use the
2921 `skip_jit_symbol_lookup` field.
2922
2340e834
SM
29232020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2924 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2925
2926 * jit.c (jit_read_descriptor): Define the descriptor address once,
2927 use twice.
2928 (jit_breakpoint_deleted): Move the declaration of the loop variable
2929 `iter` into the loop header.
2930 (jit_breakpoint_re_set_internal): Move the declaration of the local
2931 variable `objf_data` to the first point of definition.
2932 (jit_event_handler): Move the declaration of local variables
2933 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2934 Rename `objf` to `jited`.
2935
c1072906
SM
29362020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2937
2938 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2939 Remove.
2940 * jit.c (get_jiter_objfile_data): Update.
2941
c8474dc3
TBA
29422020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2943 Simon Marchi <simon.marchi@polymtl.ca>
2944
2945 * jit.c (struct jit_program_space_data): Remove.
2946 (jit_program_space_key): Remove.
2947 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2948 stuff.
2949 (get_jit_program_space_data): Remove.
2950 (jit_breakpoint_deleted): Iterate on all of the program space's
2951 objfiles.
2952 (jit_inferior_init): Likewise.
2953 (jit_breakpoint_re_set_internal): Likewise. Also change return
2954 type to void.
2955 (jit_breakpoint_re_set): Pass current_program_space to
2956 jit_breakpoint_re_set_internal.
2957
77208eb7
SM
29582020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2959
2960 * jit.h (struct jiter_objfile_data) <cached_code_address,
2961 jit_breakpoint>: Move to here from ...
2962 * jit.c (jit_program_space_data): ... here.
2963 (jiter_objfile_data::~jiter_objfile_data): Update.
2964 (jit_breakpoint_deleted): Update.
2965 (jit_breakpoint_re_set_internal): Update.
2966
8c1c720f
SM
29672020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2968
2969 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2970 checks.
2971 (jit_read_descriptor): Remove NULL check.
2972 (jit_event_handler): Add an assertion.
2973
0e74a041
SM
29742020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2975
2976 * jit.h (struct jit_objfile_data): Split into...
2977 (struct jiter_objfile_data): ... this ...
2978 (struct jited_objfile_data): ... and this.
2979 * objfiles.h (struct objfile) <jit_data>: Remove.
2980 <jiter_data, jited_data>: New fields.
2981 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2982 (jiter_objfile_data::~jiter_objfile_data): ... this.
2983 (get_jit_objfile_data): Rename to ...
2984 (get_jiter_objfile_data): ... this.
2985 (add_objfile_entry): Update.
2986 (jit_read_descriptor): Use get_jiter_objfile_data.
2987 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2988 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2989 (jit_inferior_exit_hook): Use objfile's jited_data field.
2990
238b5c9f
SM
29912020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2992
2993 * jit.h: Forward-declare `struct minimal_symbol`.
2994 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2995 constructor, destructor, and an objfile* field.
2996 * jit.c (jit_objfile_data): Remove.
2997 (struct jit_objfile_data): Migrate from here to jit.h.
2998 (jit_objfile_data::~jit_objfile_data): New destructor
2999 implementation with code moved from free_objfile_data.
3000 (free_objfile_data): Delete.
3001 (get_jit_objfile_data): Update to use the jit_data field of objfile.
3002 (jit_find_objf_with_entry_addr): Ditto.
3003 (jit_inferior_exit_hook): Ditto.
3004 (_initialize_jit): Remove the call to
3005 register_objfile_data_with_cleanup.
3006 * objfiles.h (struct objfile) <jit_data>: New field.
3007
fe053b9e
TBA
30082020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3009
3010 * jit.h: Forward-declare `struct objfile`.
3011 (jit_event_handler): Add a second parameter, the JITer objfile.
3012 * jit.c (jit_read_descriptor): Change the signature to take the
3013 JITer objfile as an argument instead of the jit_program_space_data.
3014 (jit_inferior_init): Update the call to jit_read_descriptor.
3015 (jit_event_handler): Use the new JITer objfile argument when calling
3016 jit_read_descriptor.
3017 * breakpoint.c (handle_jit_event): Update the call to
3018 jit_event_handler to pass the JITer objfile.
3019
4cec0c66
JB
30202020-07-21 John Baldwin <jhb@FreeBSD.org>
3021
3022 * gdbarch.c: Regenerate.
3023 * gdbarch.h: Regenerate.
3024 * gdbarch.sh (handle_segmentation_fault): Remove method.
3025 * infrun.c (handle_segmentation_fault): Remove.
3026 (print_signal_received_reason): Remove call to
3027 handle_segmentation_fault.
3028
0e42f66a
JB
30292020-07-21 John Baldwin <jhb@FreeBSD.org>
3030
3031 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3032 Rename to sparc64_linux_report_signal_info and add siggnal
3033 argument.
3034 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
3035 instead of sparc64_linux_handle_segmentation_fault.
3036
77bdfeb2
JB
30372020-07-21 John Baldwin <jhb@FreeBSD.org>
3038
3039 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
3040 i386_linux_report_signal_info instead of
3041 i386_linux_handle_segmentation_fault.
3042 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
3043 to i386_linux_report_signal_info and add siggnal argument.
3044 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
3045 of i386_linux_handle_segmentation_fault.
3046 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
3047 to i386_linux_report_signal_info and add siggnal argument.
3048
ad97bfc5
JB
30492020-07-21 John Baldwin <jhb@FreeBSD.org>
3050
3051 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
3052 hook if present.
3053
272bb05c
JB
30542020-07-21 John Baldwin <jhb@FreeBSD.org>
3055
3056 * gdbarch.c: Regenerate.
3057 * gdbarch.h: Regenerate.
3058 * gdbarch.sh (report_signal_info): New method.
3059 * infrun.c (print_signal_received_reason): Invoke gdbarch
3060 report_signal_info hook if present.
3061
baf8791e
AB
30622020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3063
3064 * python/py-registers.c : Add 'unordered_map' include.
3065 (gdbpy_new_reggroup): Renamed to...
3066 (gdbpy_get_reggroup): ...this. Update to only create register
3067 group descriptors when needed.
3068 (gdbpy_reggroup_iter_next): Update.
3069
f7306dac
AB
30702020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3071
3072 * python/py-registers.c (gdbpy_register_object_data): New static
3073 global.
3074 (gdbpy_register_object_data_init): New function.
3075 (gdbpy_new_register_descriptor): Renamed to...
3076 (gdbpy_get_register_descriptor): ...this, and update to reuse
3077 existing register descriptors where possible.
3078 (gdbpy_register_descriptor_iter_next): Update.
3079 (gdbpy_initialize_registers): Register new gdbarch data.
3080
05c309a8
SM
30812020-07-21 Simon Marchi <simon.marchi@efficios.com>
3082
3083 * linux-nat.c (stopped_pids): Make static.
3084
d1fd641e
SM
30852020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3086
3087 PR ada/26235
3088 * gdbtypes.c (ada_discrete_type_low_bound,
3089 ada_discrete_type_high_bound): Handle undefined bounds.
3090
1de14d77
KR
30912020-07-21 Kamil Rytarowski <n54@gmx.com>
3092
3093 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
3094 declaration.
3095 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
3096 function.
3097
ed810cc7
JB
30982020-07-20 John Baldwin <jhb@FreeBSD.org>
3099
3100 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
3101 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
3102 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
3103 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
3104 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
3105 method.
3106
ae5369e7
LC
31072020-07-20 Ludovic Courtès <ludo@gnu.org>
3108
3109 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
3110 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
3111 which are deprecated in Guile 3.0.
3112 * configure.ac (try_guile_versions): Add "guile-3.0".
3113 * configure (try_guile_versions): Regenerate.
3114 * NEWS: Update entry.
3115
68cf161c
LC
31162020-07-20 Ludovic Courtès <ludo@gnu.org>
3117 Doug Evans <dje@google.com>
3118
3119 PR gdb/21104
3120 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
3121 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
3122 USING_GUILE_BEFORE_2_2.
3123 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
3124 Change type to 'scm_t_port_type *'.
3125 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
3126 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
3127 parameter and honor it. Update callers.
3128 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
3129 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
3130 functions.
3131 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
3132 USING_GUILE_BEFORE_2_2.
3133 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
3134 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
3135 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
3136 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
3137 and 'SCM_PORT_TYPE'.
3138 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
3139 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
3140 (gdbscm_memory_port_read, gdbscm_memory_port_write)
3141 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
3142 [!USING_GUILE_BEFORE_2_2]: New functions.
3143 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
3144 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
3145 'gdbscm_memory_port_read'.
3146 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
3147 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
3148 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
3149 function.
3150 (ioscm_init_memory_port): Remove.
3151 (ioscm_init_memory_port_stream): New function
3152 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
3153 function.
3154 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3155 Return scm_from_uint (0).
3156 (gdbscm_set_memory_port_read_buffer_size_x)
3157 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3158 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3159 Return scm_from_uint (0).
3160 (gdbscm_set_memory_port_write_buffer_size_x)
3161 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3162 * configure.ac (try_guile_versions): Add "guile-2.2".
3163 * configure: Regenerate.
3164 * NEWS: Add entry.
3165
aee91db3
TT
31662020-07-18 Tom Tromey <tom@tromey.com>
3167
3168 * linux-nat.c (linux_multi_process): Remove.
3169 (linux_nat_target::supports_multi_process): Return true.
3170
0e267416
AB
31712020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3172
3173 * arch/riscv.c (riscv_tdesc_cache): Change map type.
3174 (riscv_lookup_target_description): Return pointer out of
3175 unique_ptr.
3176 * target-descriptions.c (allocate_target_description): Add
3177 comment.
3178 (target_desc_deleter::operator()): Likewise.
3179 * target-descriptions.h (struct target_desc_deleter): Moved to
3180 gdbsupport/tdesc.h.
3181 (target_desc_up): Likewise.
3182
f80c8ec4
TT
31832020-07-17 Tom Tromey <tromey@adacore.com>
3184
3185 * linux-nat.c (linux_nat_target::supports_non_stop)
3186 (linux_nat_target::always_non_stop_p): Use "true".
3187 (linux_nat_target::supports_disable_randomization): Use "true" and
3188 "false".
3189
d0ce17d8
CT
31902020-07-16 Caroline Tice <cmtice@google.com>
3191
3192 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3193 (RNGLIST_HEADER_SIZE64): New constant definition.
3194 (struct dwop_section_names): Add rnglists_dwo.
3195 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3196 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3197 (struct dwo_sections): Add rnglists field.
3198 (read_attribut_reprocess): Add tag parameter.
3199 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3200 (cu_debug_rnglists_section): New function (decl & definition).
3201 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3202 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3203 die whose range is being checked; get rnglist section from
3204 cu_debug_rnglists_section, to get from either objfile or dwo file as
3205 appropriate. Add cases for DW_RLE_base_addressx,
3206 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3207 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3208 test inside if-condition and updating complaint message.
3209 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3210 dwarf2_rnglists_process.
3211 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3212 dwarf2_ranges_process.
3213 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3214 need_ranges_base and update comment appropriately. Also pass die tag
3215 to dwarf2_ranges_read.
3216 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3217 need_ranges_base and update comment appropriately. Also pass die tag
3218 to dwarf2_ranges_process.
3219 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3220 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3221 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3222 need_ranges_base and update comment appropriately. Also pass die tag
3223 to read_attribute_reprocess and dwarf2_ranges_read.
3224 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3225 and update function comment appropriately.
3226 (read_loclist_index): Call read_loclists_rnglists_header instead of
3227 read_loclist_header.
3228 (read_rnglist_index): New function.
3229 (read_attribute_reprocess): Add tag parameter. Add code for
3230 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3231 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3232
3dcc261c
AB
32332020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3234
3235 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3236 being resolved.
3237
ccb9eba6
AB
32382020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3239
3240 * arch-utils.c (show_architecture): Update formatting of messages.
3241
cf88be68
SM
32422020-07-12 Simon Marchi <simon.marchi@efficios.com>
3243
3244 * gdbtypes.h (struct type) <bounds>: Handle array and string
3245 types.
3246 * ada-lang.c (assign_aggregate): Use type::bounds on
3247 array/string type.
3248 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3249 * c-varobj.c (c_number_of_children): Likewise.
3250 (c_describe_child): Likewise.
3251 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3252 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3253 (f_type_print_base): Likewise.
3254 * f-valprint.c (f77_array_offset_tbl): Likewise.
3255 (f77_get_upperbound): Likewise.
3256 (f77_print_array_1): Likewise.
3257 * guile/scm-type.c (gdbscm_type_range): Likewise.
3258 * m2-typeprint.c (m2_array): Likewise.
3259 (m2_is_long_set_of_type): Likewise.
3260 * m2-valprint.c (get_long_set_bounds): Likewise.
3261 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3262 * python/py-type.c (typy_range): Likewise.
3263 * rust-lang.c (rust_internal_print_type): Likewise.
3264 * type-stack.c (type_stack::follow_types): Likewise.
3265 * valarith.c (value_subscripted_rvalue): Likewise.
3266 * valops.c (value_cast): Likewise.
3267
509971ae
SM
32682020-07-12 Simon Marchi <simon.marchi@efficios.com>
3269
3270 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3271 callers to use the equivalent accessor methods.
3272
107406b7
SM
32732020-07-12 Simon Marchi <simon.marchi@efficios.com>
3274
3275 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3276 (struct type) <bit_stride>: New method.
3277 (TYPE_BIT_STRIDE): Remove.
3278 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3279
bb789949
SM
32802020-07-12 Simon Marchi <simon.marchi@efficios.com>
3281
3282 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3283 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3284 callers to use the equivalent accessor methods instead.
3285
39498edb
SM
32862020-07-12 Simon Marchi <simon.marchi@efficios.com>
3287
3288 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3289 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3290 callers to use the equivalent accessor methods instead.
3291
3b606f38
SM
32922020-07-12 Simon Marchi <simon.marchi@efficios.com>
3293
3294 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3295 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3296 to use dynamic_prop::kind.
3297
064d9cb9
SM
32982020-07-12 Simon Marchi <simon.marchi@efficios.com>
3299
3300 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3301 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3302 to get the bound property's kind and check against
3303 PROP_UNDEFINED.
3304
5537ddd0
SM
33052020-07-12 Simon Marchi <simon.marchi@efficios.com>
3306
3307 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3308 all callers to use type::range_bounds followed by
3309 dynamic_prop::{low,high}.
3310
8c2e4e06
SM
33112020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3312
3313 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3314 const_val, set_const_val, baton, set_locexpr, set_loclist,
3315 set_addr_offset, variant_parts, set_variant_parts,
3316 original_type, set_original_type>: New methods.
3317 <kind>: Rename to...
3318 <m_kind>: ... this. Update all users to use the new methods
3319 instead.
3320 <data>: Rename to...
3321 <m_data>: ... this. Update all users to use the new methods
3322 instead.
3323
7c6f2712
SM
33242020-07-12 Simon Marchi <simon.marchi@efficios.com>
3325
3326 * gdbtypes.c (get_discrete_bounds): Return failure if
3327 the range type's bounds are not both defined and constant
3328 values.
3329 (get_array_bounds): Update comment. Remove undefined bound check.
3330
599088e3
SM
33312020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3332
3333 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3334 the type::bounds method directly.
3335
c4dfcb36
SM
33362020-07-12 Simon Marchi <simon.marchi@efficios.com>
3337
3338 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3339 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3340 are used to set the range type's bounds to use set_bounds.
3341
0a278aa7
PW
33422020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3343
3344 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3345
cce20f10
PA
33462020-07-10 Pedro Alves <pedro@palves.net>
3347
3348 * gdbthread.h (inferior_ref): Define.
3349 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3350 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3351 * thread.c
3352 (scoped_restore_current_thread::restore):
3353 Adjust to gdb::ref_ptr.
3354 (scoped_restore_current_thread::~scoped_restore_current_thread):
3355 Remove manual decref handling.
3356 (scoped_restore_current_thread::scoped_restore_current_thread):
3357 Adjust to use
3358 inferior_ref::new_reference/thread_info_ref::new_reference.
3359 Incref the thread before calling get_frame_id instead of after.
3360 Let TARGET_CLOSE_ERROR propagate.
3361
6d7aa592
PA
33622020-07-10 Pedro Alves <pedro@palves.net>
3363
3364 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3365 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3366 NOT_AVAILABLE_ERROR.
3367 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3368 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3369
b3e3a4c1
SM
33702020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3371 Pedro Alves <pedro@palves.net>
3372
3373 PR gdb/26199
3374 * infrun.c (threads_are_resumed_pending_p): Delete.
3375 (do_target_wait): Remove threads_are_executing and
3376 threads_are_resumed_pending_p checks from the inferior_matches
3377 lambda. Update comments.
3378
d6cc5d98
PA
33792020-07-10 Pedro Alves <pedro@palves.net>
3380
3381 PR gdb/26199
3382 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3383 executing threads.
3384
7d3badc6
PA
33852020-07-10 Pedro Alves <pedro@palves.net>
3386
3387 PR gdb/26199
3388 * infrun.c (handle_no_resumed): Handle multiple targets.
3389
42bd97a6
PA
33902020-07-10 Pedro Alves <pedro@palves.net>
3391
3392 PR gdb/26199
3393 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3394 target_is_async_p.
3395
43667cc6
PA
33962020-07-10 Pedro Alves <pedro@palves.net>
3397
3398 PR gdb/26199
3399 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3400 threads, not all threads.
3401
96118d11
PA
34022020-07-10 Pedro Alves <pedro@palves.net>
3403
3404 PR gdb/26199
3405 * remote.c (remote_target::open_1): Pass remote target pointer as
3406 data to create_async_event_handler.
3407 (remote_async_inferior_event_handler): Mark async event handler
3408 before returning if the remote target still has either pending
3409 events or unacknowledged notifications.
3410
54904d81
JB
34112020-07-10 John Baldwin <jhb@FreeBSD.org>
3412
3413 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3414 declaration.
3415 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3416 function.
3417
f37e5866
JB
34182020-07-09 John Baldwin <jhb@FreeBSD.org>
3419
3420 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3421 inferior_ptid.
3422
fc238d4a
JB
34232020-07-09 John Baldwin <jhb@FreeBSD.org>
3424
3425 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3426 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3427 AT_FREEBSD_PS_STRINGS.
3428
6e2469ff
HD
34292020-07-08 Hannes Domani <ssbssa@yahoo.de>
3430
3431 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3432 of debugfile path on Windows.
3433
d1076c41
JB
34342020-07-08 John Baldwin <jhb@FreeBSD.org>
3435
3436 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3437 argument to 'data'.
3438
15f3b077
TT
34392020-07-08 Tom Tromey <tromey@adacore.com>
3440
3441 * ada-lang.c (ada_exception_message_1): Use read_memory.
3442
9fc501fd
AB
34432020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3444
3445 PR python/22748
3446 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3447 special handling for inline frames.
3448 * findvar.c (value_of_register_lazy): Skip inline frames when
3449 creating lazy register values.
3450 * frame.c (frame_id_computed_p): Delete definition.
3451 * frame.h (frame_id_computed_p): Delete declaration.
3452
64cb3757
AB
34532020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3454
3455 * NEWS: Mention additions to Python API.
3456 * python/py-arch.c (archpy_register_groups): New function.
3457 (arch_object_methods): Add 'register_groups' method.
3458 * python/py-registers.c (reggroup_iterator_object): New struct.
3459 (reggroup_object): New struct.
3460 (gdbpy_new_reggroup): New function.
3461 (gdbpy_reggroup_to_string): New function.
3462 (gdbpy_reggroup_name): New function.
3463 (gdbpy_reggroup_iter): New function.
3464 (gdbpy_reggroup_iter_next): New function.
3465 (gdbpy_new_reggroup_iterator): New function
3466 (gdbpy_initialize_registers): Register new types.
3467 (reggroup_iterator_object_type): Define new Python type.
3468 (gdbpy_reggroup_getset): New static global.
3469 (reggroup_object_type): Define new Python type.
3470 * python/python-internal.h
3471
0f767f94
AB
34722020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3473
3474 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3475 * python/py-arch.c (archpy_registers): New function.
3476 (arch_object_methods): Add 'registers' method.
3477 * python/py-registers.c: New file.
3478 * python/python-internal.h
3479 (gdbpy_new_register_descriptor_iterator): Declare.
3480 (gdbpy_initialize_registers): Declare.
3481 * python/python.c (do_start_initialization): Call
3482 gdbpy_initialize_registers.
3483 * NEWS: Mention additions to the Python API.
3484
87dbc774
AB
34852020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3486
3487 * NEWS: Mention new Python API method.
3488 * python/py-unwind.c (pending_framepy_architecture): New function.
3489 (pending_frame_object_methods): Add architecture method.
3490
3bc98c0c
AB
34912020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3492
3493 * gdbarch.c: Regenerate.
3494 * gdbarch.h: Regenerate.
3495 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3496 (gdbarch_data): Use internal_error for the case where
3497 deprecated_set_gdbarch_data was originally needed.
3498 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3499 and use passed in obstack.
3500 (libunwind_frame_set_descr): Should no longer get back NULL from
3501 gdbarch_data.
3502 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3503 type.
3504 * user-regs.c (user_regs_init): Update parameters, and use passed
3505 in obstack.
3506 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3507 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3508
d8cc8af6
TV
35092020-07-06 Tom de Vries <tdevries@suse.de>
3510
3511 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3512 End-Of-Sequence in lte_is_less_than.
3513 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3514 "gdb: Don't reorder line table entries too much when sorting".
3515
947f7597
TV
35162020-07-06 Tom de Vries <tdevries@suse.de>
3517
3518 PR tui/26205
3519 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3520
1e7c1b22
TV
35212020-07-05 Tom de Vries <tdevries@suse.de>
3522
3523 PR build/26187
3524 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3525 std::uncaught_exceptions instead of deprecated
3526 std::uncaught_exception.
3527
a36158ec
SM
35282020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3529
3530 * macroexp.h (macro_stringify): Return
3531 gdb::unique_xmalloc_ptr<char>.
3532 * macroexp.c (macro_stringify): Likewise.
3533 * macrotab.c (fixup_definition): Update.
3534
14d960c8
SM
35352020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3536
3537 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3538 (lex_one_token): Update.
3539 * macroexp.c (struct macro_buffer) <release>: Return
3540 gdb::unique_xmalloc_ptr<char>.
3541 (macro_stringify): Update.
3542 (macro_expand): Update.
3543 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3544 * macroexp.h (macro_expand_next): Likewise.
3545
211d5b1c
SM
35462020-07-02 Simon Marchi <simon.marchi@efficios.com>
3547
3548 * macroexp.h (macro_lookup_ftype): Remove.
3549 (macro_expand, macro_expand_once, macro_expand_next): Remove
3550 lookup function parameters, add scope parameter.
3551 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3552 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3553 * macroscope.h (standard_macro_lookup): Change parameter type
3554 to macro_scope.
3555 * macroscope.c (standard_macro_lookup): Likewise.
3556 * c-exp.y (lex_one_token): Update.
3557 * macrocmd.c (macro_expand_command): Likewise.
3558 (macro_expand_once_command): Likewise.
3559
b1a35af2
SM
35602020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3561
3562 * inf-loop.c (inferior_event_handler): Remove client_data param.
3563 * inf-loop.h (inferior_event_handler): Likewise.
3564 * infcmd.c (step_1): Adjust.
3565 * infrun.c (proceed): Adjust.
3566 (fetch_inferior_event): Remove client_data param.
3567 (infrun_async_inferior_event_handler): Adjust.
3568 * infrun.h (fetch_inferior_event): Remove `void *` param.
3569 * linux-nat.c (handle_target_event): Adjust.
3570 * record-btrace.c (record_btrace_handle_async_inferior_event):
3571 Adjust.
3572 * record-full.c (record_full_async_inferior_event_handler):
3573 Adjust.
3574 * remote.c (remote_async_inferior_event_handler): Adjust.
3575
1cdf9e33
TT
35762020-07-01 Tom Tromey <tom@tromey.com>
3577
3578 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3579 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3580
32c1e210
TT
35812020-07-01 Tom Tromey <tom@tromey.com>
3582
3583 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3584 tui_gen_win_info.
3585 (tui_win_info::make_window): Merge with
3586 tui_gen_win_info::make_window.
3587 (tui_win_info::make_visible): Move from tui_gen_win_info.
3588 * tui/tui-win.c (tui_win_info::max_width): Move from
3589 tui_gen_win_info.
3590 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3591 type.
3592 <window_factory>: Likewise.
3593 * tui/tui-layout.c (tui_win_info::resize): Move from
3594 tui_gen_win_info.
3595 (make_standard_window): Change return type.
3596 (get_locator_window, tui_get_window_by_name): Likewise.
3597 (tui_layout_window::apply): Remove a cast.
3598 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3599 (struct tui_win_info): Merge with tui_gen_win_info.
3600 (struct tui_gen_win_info): Remove.
3601
a30cb6da
TT
36022020-07-01 Tom Tromey <tom@tromey.com>
3603
3604 * tui/tui-stack.h (struct tui_locator_window): Derive from
3605 tui_win_info.
3606 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3607 <can_box>: New method.
3608
1eb2161f
TT
36092020-07-01 Tom Tromey <tom@tromey.com>
3610
3611 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3612
7134f2eb
TT
36132020-07-01 Tom Tromey <tom@tromey.com>
3614
3615 * tui/tui-regs.c (tui_data_window::display_registers_from)
3616 (tui_data_window::display_registers_from)
3617 (tui_data_window::first_data_item_displayed)
3618 (tui_data_window::delete_data_content_windows): Update.
3619 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3620 Remove.
3621 (tui_data_window::check_register_values): Update.
3622 (tui_data_item_window::rerender): Add parameters. Update.
3623 (tui_data_item_window::refresh_window): Remove.
3624 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3625 virtual.
3626 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3627 tui_gen_win_info.
3628 <refresh_window, max_height, min_height>: Remove.
3629 <rerender>: Add parameters.
3630 <x, y, visible>: New members.
3631 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3632 <m_item_width>: New member.
3633
22b7b041
TT
36342020-07-01 Tom Tromey <tom@tromey.com>
3635
3636 * tui/tui-regs.c (tui_data_window::show_register_group)
3637 (tui_data_window::check_register_values): Update.
3638 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3639 from item_no.
3640
c9753adb
TT
36412020-07-01 Tom Tromey <tom@tromey.com>
3642
3643 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3644 useless "if".
3645
9ab26b4a
TT
36462020-07-01 Tom Tromey <tom@tromey.com>
3647
3648 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3649 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3650
e555083f
TT
36512020-07-01 Tom Tromey <tom@tromey.com>
3652
3653 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3654 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3655 (struct tui_line_or_address): Move from tui-data.h.
3656 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3657 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3658 (tui_cmd_window, tui_source_window_base, tui_source_window)
3659 (tui_disasm_window): Don't declare.
3660 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3661 to tui-winsource.h.
3662 (SINGLE_KEY): Move to tui-stack.c.
3663
7a02bab7
TT
36642020-07-01 Tom Tromey <tom@tromey.com>
3665
3666 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3667 std::string.
3668 * tui/tui-regs.c (class tab_expansion_file): New.
3669 (tab_expansion_file::write): New method.
3670 (tui_register_format): Change return type. Use
3671 tab_expansion_file.
3672 (tui_get_register, tui_data_window::display_registers_from)
3673 (tui_data_item_window::rerender): Update.
3674 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3675 * tui/tui-io.c (tui_expand_tabs): Remove.
3676
ea68593b
TT
36772020-07-01 Tom Tromey <tom@tromey.com>
3678
3679 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3680
a8caed5d
FS
36812020-07-01 Fangrui Song <maskray@google.com>
3682
3683 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3684
9cdf9820
AKS
36852020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3686
3687 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3688 forms for DW_AT_associated and DW_AT_allocated attributes,
3689 which is already checked in function attr_to_dynamic_prop.
3690
a1520ad8
TT
36912020-06-30 Tom Tromey <tromey@adacore.com>
3692
3693 * dwarf2/read.c (quirk_rust_enum): Correctly call
3694 alloc_rust_variant for default-less enum.
3695
5ac58899
TT
36962020-06-30 Tom Tromey <tromey@adacore.com>
3697
3698 PR build/26183:
3699 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3700 gdb::to_string.
3701
19b187a9
SM
37022020-06-29 Simon Marchi <simon.marchi@efficios.com>
3703
3704 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3705 * gdbarch.h: Re-generate.
3706
cd4c4c07
TT
37072020-06-28 Tom Tromey <tom@tromey.com>
3708
3709 * command.h (cmd_types): Remove.
3710 (cmd_type): Don't declare.
3711 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3712 typedef.
3713 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3714 * cli/cli-decode.c (cmd_type): Remove.
3715
05779d57
PA
37162020-06-27 Pedro Alves <palves@redhat.com>
3717
3718 * fork-child.c (prefork_hook): Adjust.
3719 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3720 Delete.
3721 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3722 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3723 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3724 Remove declarations.
3725 (struct inferior) <set_tty, tty>: New methods.
3726 (struct inferior) <terminal>: Rename to ...
3727 (struct inferior) <m_terminal>: ... this and make private.
3728 * main.c (captured_main_1): Adjust.
3729 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3730 (mi_cmd_inferior_tty_show): Adjust.
3731 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3732 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3733
1776e3e5
NA
37342020-06-26 Nick Alcock <nick.alcock@oracle.com>
3735
3736 * configure.ac: Add --enable-libctf: handle --disable-static
3737 properly.
3738 * acinclude.m4: sinclude ../config/enable.m4.
3739 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3740 (LIBCTF): Substitute in.
3741 (CTF_DEPS): New, likewise.
3742 (CLIBS): libctf needs symbols from libbfd: move earlier.
3743 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3744 flags.
3745 * ctfread.c: Surround in ENABLE_LIBCTF.
3746 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3747 * configure: Regenerate.
3748 * config.in: Likewise.
3749
58373b80
SM
37502020-06-25 Simon Marchi <simon.marchi@efficios.com>
3751
3752 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3753
277474ee
SM
37542020-06-25 Simon Marchi <simon.marchi@efficios.com>
3755
3756 * inferior.h (struct inferior) <terminal>: Change type to
3757 gdb::unique_xmalloc_ptr<char>.
3758 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3759 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3760 field, adjust to unique pointer.
3761 (get_inferior_io_terminal): Adjust to unique pointer.
3762
6d74da72
AB
37632020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3764
3765 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3766 registers, not just the known core set of registers.
3767
2e52d038
AB
37682020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3769
3770 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3771 fflags, frm, and fcsr registers.
3772 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3773 restore groups.
3774 (riscv_tdesc_unknown_reg): New function.
3775 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3776 tdesc_use_registers.
3777 * riscv-tdep.h (struct gdbarch_tdep): Add
3778 unknown_csrs_first_regnum, unknown_csrs_count,
3779 duplicate_fflags_regnum, duplicate_frm_regnum, and
3780 duplicate_fcsr_regnum fields.
3781
be64fd07
AB
37822020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3783
3784 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3785 callback, use the callback (when not null) to help number unknown
3786 registers.
3787 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3788 (tdesc_use_registers): Add extra parameter to declaration.
3789
3b9fce96
AB
37902020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3791
3792 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3793 in the file.
3794 (class riscv_pending_register_alias): Likewise.
3795 (riscv_register_feature::register_info): Change 'required_p' field
3796 to 'required', and change its type. Add 'check' member function.
3797 (riscv_register_feature::register_info::check): Define new member
3798 function.
3799 (riscv_xreg_feature): Change initialisation of 'required' field.
3800 (riscv_freg_feature): Likewise.
3801 (riscv_virtual_feature): Likewise.
3802 (riscv_csr_feature): Likewise.
3803 (riscv_check_tdesc_feature): Take extra parameter, the csr
3804 tdesc_feature, rewrite the function to use the new
3805 riscv_register_feature::register_info::check function.
3806 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3807
865bad26
AB
38082020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3809
3810 * features/Makefile: Remove all references to the deleted files
3811 below.
3812 * features/riscv/32bit-csr.c: Deleted.
3813 * features/riscv/32bit-csr.xml: Deleted.
3814 * features/riscv/64bit-csr.c: Deleted.
3815 * features/riscv/64bit-csr.xml: Deleted.
3816 * features/riscv/rebuild-csr-xml.sh: Deleted.
3817
ed69cbc8
AB
38182020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3819
3820 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3821 whitespace error for declaration of names member variable.
3822 (struct riscv_register_feature): Add new prefer_first_name member
3823 variable, and fix whitespace error in declaration of registers.
3824 (riscv_xreg_feature): Initialize prefer_first_name field.
3825 (riscv_freg_feature): Likewise.
3826 (riscv_virtual_feature): Likewise.
3827 (riscv_csr_feature): Likewise.
3828 (riscv_register_name): Expand on comments. Remove register name
3829 modifications for CSR and virtual registers.
3830
4445e8f5
AB
38312020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3832
3833 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3834 errors.
3835
767a879e
AB
38362020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3837
3838 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3839 riscv-opc.h.
3840 (class riscv_pending_register_alias): New class.
3841 (riscv_check_tdesc_feature): Take vector of pending aliases and
3842 populate it as appropriate.
3843 (riscv_setup_register_aliases): Delete.
3844 (riscv_gdbarch_init): Create vector of pending aliases and pass it
3845 to riscv_check_tdesc_feature in all cases. Use the vector to
3846 create the register aliases.
3847
bb6e55f3
RO
38482020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3849
3850 * sol2-tdep.c (sol2_static_transform_name): Remove.
3851 (sol2_init_abi): Don't register it.
3852 * gdbarch.sh (static_transform_name): Remove.
3853 * gdbarch.c, gdbarch.h: Regenerate.
3854
3855 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3856 gdbarch_static_transform_name.
3857 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3858 * stabsread.c (define_symbol) <'X'>: Remove.
3859 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
3860 handling.
3861 <'V'>: Likewise.
3862 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
3863 <'S'>: Remove call to gdbarch_static_transform_name.
3864
c6d36836
RO
38652020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3866
3867 * procfs.c (procfs_pre_trace): New function.
3868 (procfs_target::create_inferior): Pass it to fork_inferior.
3869
a7e6196b
RO
38702020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3871
3872 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
3873 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
3874 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
3875 sol2-tdep.o, sparc-sol2-tdep.o.
3876 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
3877 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
3878 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
3879 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
3880
d412e696
RO
38812020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3882
3883 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
3884 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
3885 Call sol2_init_abi.
3886 Remove calls to set_gdbarch_skip_solib_resolver,
3887 set_gdbarch_core_pid_to_str.
3888 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
3889 (i386_sol2_static_transform_name): Remove.
3890 (i386_sol2_init_abi): Call sol2_init_abi.
3891 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3892 set_gdbarch_static_transform_name,
3893 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3894 Use sol2_sigtramp_p.
3895 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
3896 (sol2_sigtramp_p): New function.
3897 (sol2_static_transform_name): New function.
3898 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3899 (sol2_init_abi): New function.
3900 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3901 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3902 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3903 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3904 (sparc_sol2_static_transform_name): Remove.
3905 (sparc32_sol2_init_abi): Call sol2_init_abi.
3906 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3907 set_gdbarch_static_transform_name,
3908 set_gdbarch_skip_solib_resolver,
3909 set_gdbarch_core_pid_to_str.
3910 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3911 (sparc_sol2_static_transform_name): Remove
3912 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3913 call sol2_sigtramp_p.
3914 (sparc64_sol2_init_abi): Call sol2_init_abi.
3915 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3916 set_gdbarch_static_transform_name,
3917 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3918
a8654e7d
PW
39192020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3920
3921 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3922 * exec.c (validate_exec_file): If from_tty, set both
3923 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3924 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3925 and from_tty, unconditionally ask a confirmation.
3926
caa7fd04
AB
39272020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3928
3929 * target-descriptions.c (tdesc_architecture_name): Protect against
3930 NULL pointer dereference.
3931 (maint_print_xml_tdesc_cmd): New function.
3932 (_initialize_target_descriptions): Register new 'maint print
3933 xml-tdesc' command and give it the filename completer.
3934 * NEWS: Mention new 'maint print xml-tdesc' command.
3935
fbf42f4e
AB
39362020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3937
3938 * target-descriptions.c (class tdesc_compatible_info): New class.
3939 (struct target_desc): Change type of compatible vector.
3940 (tdesc_compatible_p): Update for change in type of
3941 target_desc::compatible.
3942 (tdesc_compatible_info_list): New function.
3943 (tdesc_compatible_info_arch_name): New function.
3944 (tdesc_add_compatible): Update for change in type of
3945 target_desc::compatible.
3946 (print_c_tdesc::visit_pre): Likewise.
3947
20821f4e
AB
39482020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3949
3950 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3951 whitespace to underscore.
3952 (maint_print_c_tdesc_cmd): Use fake filename for target
3953 descriptions that came from the target.
3954 (_initialize_target_descriptions): Add filename command completion
3955 for 'maint print c-tdesc'.
3956
1fb5ee62
SM
39572020-06-23 Simon Marchi <simon.marchi@efficios.com>
3958
3959 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3960 lines.
3961
fc3ecb3e
SM
39622020-06-23 Simon Marchi <simon.marchi@efficios.com>
3963
3964 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3965 lines.
3966 (dwarf2_find_location_expression): Likewise.
3967 (call_site_parameter_matches): Likewise.
3968 (dwarf2_compile_expr_to_ax): Likewise.
3969 (disassemble_dwarf_expression): Likewise.
3970 (loclist_describe_location): Likewise.
3971
236ef034
PA
39722020-06-23 Pedro Alves <palves@redhat.com>
3973
3974 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3975 progspace-and-thread.h. Include scoped-mock-context.h instead.
3976 (register_to_value_test): Use scoped_mock_context.
3977 * regcache.c: Include "scoped-mock-context.h".
3978 (cooked_read_test): Don't error out if a target is already pushed.
3979 Use scoped_mock_context. Adjust.
3980 * scoped-mock-context.h: New file.
3981
39e7ecca
AB
39822020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3983
3984 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3985 initializer.
3986 (ada_language::is_string_type_p): New member function.
3987 * c-lang.c (c_language_data): Delete la_is_string_type_p
3988 initializer.
3989 (cplus_language_data): Likewise.
3990 (asm_language_data): Likewise.
3991 (minimal_language_data): Likewise.
3992 * d-lang.c (d_language_data): Likewise.
3993 * f-lang.c (f_is_string_type_p): Delete function, implementation
3994 moved to f_language::is_string_type_p.
3995 (f_language_data): Delete la_is_string_type_p initializer.
3996 (f_language::is_string_type_p): New member function,
3997 implementation from f_is_string_type_p.
3998 * go-lang.c (go_is_string_type_p): Delete function, implementation
3999 moved to go_language::is_string_type_p.
4000 (go_language_data): Delete la_is_string_type_p initializer.
4001 (go_language::is_string_type_p): New member function,
4002 implementation from go_is_string_type_p.
4003 * language.c (language_defn::is_string_type_p): Define new member
4004 function.
4005 (default_is_string_type_p): Make static, add comment copied from
4006 header file.
4007 (unknown_language_data): Delete la_is_string_type_p initializer.
4008 (unknown_language::is_string_type_p): New member function.
4009 (auto_language_data): Delete la_is_string_type_p initializer.
4010 (auto_language::is_string_type_p): New member function.
4011 * language.h (language_data): Delete la_is_string_type_p field.
4012 (language_defn::is_string_type_p): Declare new function.
4013 (default_is_string_type_p): Delete desclaration, move comment to
4014 definition.
4015 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
4016 moved to m2_language::is_string_type_p.
4017 (m2_language_data): Delete la_is_string_type_p initializer.
4018 (m2_language::is_string_type_p): New member function,
4019 implementation from m2_is_string_type_p.
4020 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
4021 initializer.
4022 * opencl-lang.c (opencl_language_data): Likewise.
4023 * p-lang.c (pascal_is_string_type_p): Delete function,
4024 implementation moved to pascal_language::is_string_type_p.
4025 (pascal_language_data): Delete la_is_string_type_p initializer.
4026 (pascal_language::is_string_type_p): New member function,
4027 implementation from pascal_is_string_type_p.
4028 * rust-lang.c (rust_is_string_type_p): Delete function,
4029 implementation moved to rust_language::is_string_type_p.
4030 (rust_language_data): Delete la_is_string_type_p initializer.
4031 (rust_language::is_string_type_p): New member function,
4032 implementation from rust_is_string_type_p.
4033 * valprint.c (val_print_scalar_or_string_type_p): Update call to
4034 is_string_type_p.
4035
4ffc13fb
AB
40362020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4037
4038 * ada-lang.c (ada_language_data): Delete la_print_typedef
4039 initializer.
4040 (ada_language::print_typedef): New member function.
4041 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
4042 (cplus_language_data): Likewise.
4043 (asm_language_data): Likewise.
4044 (minimal_language_data): Likewise.
4045 * d-lang.c (d_language_data): Likewise.
4046 * f-lang.c (f_language_data): Likewise.
4047 (f_language::print_typedef): New member function.
4048 * go-lang.c (go_language_data): Delete la_print_typedef
4049 initializer.
4050 * language.c (language_defn::print_typedef): Define member
4051 function.
4052 (unknown_language_data): Delete la_print_typedef initializer.
4053 (unknown_language::print_typedef): New member function.
4054 (auto_language_data): Delete la_print_typedef initializer.
4055 (auto_language::print_typedef): New member function.
4056 * language.h (language_data): Delete la_print_typedef field.
4057 (language_defn::print_typedef): Declare new member function.
4058 (LA_PRINT_TYPEDEF): Update call to print_typedef.
4059 (default_print_typedef): Delete declaration.
4060 * m2-lang.c (m2_language_data): Delete la_print_typedef
4061 initializer.
4062 (m2_language::print_typedef): New member function.
4063 * objc-lang.c (objc_language_data): Delete la_print_typedef
4064 initializer.
4065 * opencl-lang.c (opencl_language_data): Likewise.
4066 * p-lang.c (pascal_language_data): Likewise.
4067 (pascal_language::print_typedef): New member function.
4068 * rust-lang.c (rust_print_typedef): Delete function,
4069 implementation moved to rust_language::print_typedef.
4070 (rust_language): Delete la_print_typedef initializer.
4071 (rust_language::print_typedef): New member function,
4072 implementation from rust_print_typedef.
4073 * typeprint.c (default_print_typedef): Delete.
4074
d711ee67
AB
40752020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4076
4077 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
4078 (ada_language::printstr): New member function.
4079 * c-lang.c (c_language_data): Delete la_printstr initializer.
4080 (cplus_language_data): Likewise.
4081 (asm_language_data): Likewise.
4082 (minimal_language_data): Likewise.
4083 * d-lang.c (d_language_data): Likewise.
4084 * f-lang.c (f_printstr): Rename to f_language::printstr.
4085 (f_language_data): Delete la_printstr initializer.
4086 (f_language::printstr): New member function, implementation from
4087 f_printstr.
4088 * go-lang.c (go_language_data): Delete la_printstr initializer.
4089 * language.c (language_defn::printstr): Define new member
4090 function.
4091 (unk_lang_printstr): Delete.
4092 (unknown_language_data): Delete la_printstr initializer.
4093 (unknown_language::printstr): New member function.
4094 (auto_language_data): Delete la_printstr initializer.
4095 (auto_language::printstr): New member function.
4096 * language.h (language_data): Delete la_printstr field.
4097 (language_defn::printstr): Declare new member function.
4098 (LA_PRINT_STRING): Update call to printstr.
4099 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
4100 (m2_language_data): Delete la_printstr initializer.
4101 (m2_language::printstr): New member function, implementation from
4102 m2_printstr.
4103 * objc-lang.c (objc_language_data): Delete la_printstr
4104 initializer.
4105 * opencl-lang.c (opencl_language_data): Likewise.
4106 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
4107 (pascal_language_data): Delete la_printstr initializer.
4108 (pascal_language::printstr): New member function, implementation
4109 from pascal_printstr.
4110 * p-lang.h (pascal_printstr): Delete declaration.
4111 * rust-lang.c (rust_printstr): Update header comment.
4112 (rust_language_data): Delete la_printstr initializer.
4113 (rust_language::printstr): New member function.
4114
52b50f2c
AB
41152020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4116
4117 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
4118 (ada_language::printchar): New member function.
4119 * c-lang.c (c_language_data): Delete la_printchar initializer.
4120 (cplus_language_data): Likewise.
4121 (asm_language_data): Likewise.
4122 (minimal_language_data): Likewise.
4123 * d-lang.c (d_language_data): Likewise.
4124 * f-lang.c (f_printchar): Rename to f_language::printchar.
4125 (f_language_data): Delete la_printchar initializer.
4126 (f_language::printchar): New member function, implementation from
4127 f_printchar.
4128 * go-lang.c (go_language_data): Delete la_printchar initializer.
4129 * language.c (unk_lang_printchar): Delete.
4130 (language_defn::printchar): Define new member function.
4131 (unknown_language_data): Delete la_printchar initializer.
4132 (unknown_language::printchar): New member function.
4133 (auto_language_data): Delete la_printchar initializer.
4134 (auto_language::printchar): New member function.
4135 * language.h (language_data): Delete la_printchar field.
4136 (language_defn::printchar): Declare new member function.
4137 (LA_PRINT_CHAR): Update call to printchar.
4138 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
4139 (m2_language::printchar): New member function.
4140 * objc-lang.c (objc_language_data): Delete la_printchar
4141 initializer.
4142 * opencl-lang.c (opencl_language_data): Likewise.
4143 * p-lang.c (pascal_language_data): Delete la_printchar
4144 initializer.
4145 (pascal_language::printchar): New member function.
4146 * rust-lang.c (rust_printchar): Rename to
4147 rust_language::printchar.
4148 (rust_language_data): Delete la_printchar initializer.
4149 (rust_language::printchar): New member function, implementation
4150 from rust_printchar.
4151
ec8cec5b
AB
41522020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4153
4154 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
4155 (ada_language_data): Delete la_emitchar initializer.
4156 (ada_language::emitchar): New member function, implementation from
4157 emit_char.
4158 * c-lang.c (c_language_data): Delete la_emitchar initializer.
4159 (cplus_language_data): Likewise.
4160 (asm_language_data): Likewise.
4161 (minimal_language_data): Likewise.
4162 * d-lang.c (d_language_data): Likewise.
4163 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
4164 (f_language_data): Delete la_emitchar initializer.
4165 (f_language::emitchar): New member function, implementation from
4166 f_emit_char.
4167 * go-lang.c (go_language_data): Delete la_emitchar initializer.
4168 * language.c (unk_lang_emit_char): Delete.
4169 (language_defn::emitchar): New member function definition.
4170 (unknown_language_data): Delete la_emitchar initializer.
4171 (unknown_language::emitchar): New member function.
4172 (auto_language_data): Delete la_emitchar initializer.
4173 (auto_language::emitchar): New member function.
4174 * language.h (language_data): Delete la_emitchar field.
4175 (language_defn::emitchar): New member field declaration.
4176 (LA_EMIT_CHAR): Update call to emitchar.
4177 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
4178 (m2_language_data): Delete la_emitchar initializer.
4179 (m2_language::emitchar): New member function, implementation from
4180 m2_emit_char.
4181 * objc-lang.c (objc_language_data): Delete la_emitchar
4182 initializer.
4183 * opencl-lang.c (opencl_language_data): Likewise.
4184 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4185 (pascal_language_data): Delete la_emitchar initializer.
4186 (pascal_language::emitchar): New member function, implementation
4187 from pascal_emit_char.
4188 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4189 (rust_language_data): Delete la_emitchar initializer.
4190 (rust_language::emitchar): New member function, implementation
4191 from rust_emitchar.
4192
1bf9c363
AB
41932020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4194
4195 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4196 (ada_language_data): Delete la_post_parser initializer.
4197 (ada_language::post_parser): New member function.
4198 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4199 (cplus_language_data): Likewise.
4200 (asm_language_data): Likewise.
4201 (minimal_language_data): Likewise.
4202 * d-lang.c (d_language_data): Likewise.
4203 * f-lang.c (f_language_data): Likewise.
4204 * go-lang.c (go_language_data): Likewise.
4205 * language.c (unknown_language_data): Likewise.
4206 (auto_language_data): Likewise.
4207 * language.h (language_data): Delete la_post_parser field.
4208 (language_defn::post_parser): New member function.
4209 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4210 * objc-lang.c (objc_language_data): Likewise.
4211 * opencl-lang.c (opencl_language_data): Likewise.
4212 * p-lang.c (pascal_language_data): Likewise.
4213 * parse.c (parse_exp_in_context): Update call to post_parser.
4214 (null_post_parser): Delete definition.
4215 * parser-defs.h (null_post_parser): Delete declaration.
4216 * rust-lang.c (rust_language_data): Delete la_post_parser
4217 initializer.
4218
87afa652
AB
42192020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4220
4221 * ada-lang.c (parse): Rename to ada_language::parser.
4222 (ada_language_data): Delete la_parser initializer.
4223 (ada_language::parser): New member function, implementation from
4224 parse.
4225 * c-lang.c (c_language_data): Delete la_parser initializer.
4226 (cplus_language_data): Likewise.
4227 (asm_language_data): Likewise.
4228 (minimal_language_data): Likewise.
4229 * d-lang.c (d_language_data): Likewise.
4230 (d_language::parser): New member function.
4231 * f-lang.c (f_language_data): Delete la_parser initializer.
4232 (f_language::parser): New member function.
4233 * go-lang.c (go_language_data): Delete la_parser initializer.
4234 (go_language::parser): New member function.
4235 * language.c (unk_lang_parser): Delete.
4236 (language_defn::parser): Define new member function.
4237 (unknown_language_data): Delete la_parser initializer.
4238 (unknown_language::parser): New member function.
4239 (auto_language_data): Delete la_parser initializer.
4240 (auto_language::parser): New member function.
4241 * language.h (language_data): Delete la_parser field.
4242 (language_defn::parser): Declare new member function.
4243 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4244 (m2_language::parser): New member function.
4245 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4246 * opencl-lang.c (opencl_language_data): Likewise.
4247 * p-lang.c (pascal_language_data): Likewise.
4248 (pascal_language::parser): New member function.
4249 * parse.c (parse_exp_in_context): Update call to parser.
4250 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4251 (rust_language::parser): New member function.
4252
37825800
AB
42532020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4254
4255 * top.c (print_gdb_configuration): Print --with-python-libdir
4256 configuration value.
4257
5b860c93
PW
42582020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4259
4260 * NEWS: Mention change to the alias command.
4261
cf00cd6f
PW
42622020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4263
4264 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4265 (alias_command_completer)
4266 (make_alias_options_def_group): New functions.
4267 (alias_opts, alias_option_defs): New struct and array.
4268 (alias_usage_error): Update usage.
4269 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4270 Use option framework.
4271 (_initialize_cli_cmds): Update alias command help.
4272 Update aliases command help.
4273 (show_user):
4274 Add NULL for new default_args lookup_cmd argument.
4275 (valid_command_p): Rename to validate_aliased_command.
4276 Add NULL for new default_args lookup_cmd argument. Verify that the
4277 aliased_command has no default args.
4278 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4279 (lookup_cmd_1, lookup_cmd): New argument default_args.
4280 (add_alias_cmd):
4281 Add NULL for new default_args lookup_cmd argument.
4282 (print_help_for_command): Show default args under the layout
4283 alias some_alias = some_aliased_cmd some_alias_default_arg.
4284 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4285 xfree default_args in destructor.
4286 * cli/cli-script.c (process_next_line, do_define_command):
4287 Add NULL for new default_args lookup_cmd argument.
4288 * command.h: Declare new default_args argument in lookup_cmd
4289 and lookup_cmd_1.
4290 * completer.c (complete_line_internal_1):
4291 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4292 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4293 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4294 Likewise.
4295 * infcmd.c (_initialize_infcmd): Likewise.
4296 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4297 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4298 * python/py-param.c (add_setshow_generic): Likewise.
4299 * remote.c (_initialize_remote): Likewise.
4300 * top.c (execute_command): Prepend default_args if command has some.
4301 (set_verbose):
4302 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4303 * tracepoint.c (validate_actionline, encode_actions_1):
4304 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4305
bd920864
TBA
43062020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4307
4308 * jit.c (jit_read_descriptor): Use bool as the return type.
4309 (jit_breakpoint_re_set_internal): Use bool as the return type.
4310 Invert the return value logic; return true if the jit breakpoint
4311 has been successfully initialized.
4312 (jit_inferior_init): Update the call to
4313 jit_breakpoint_re_set_internal.
4314
f8098322
PA
43152020-06-22 Pedro Alves <palves@redhat.com>
4316
4317 PR gdb/25939
4318 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4319 Use the current inferior instead. Don't return
4320 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4321 wait again.
4322 * sol-thread.c (sol_thread_target::wait): Don't reference
4323 inferior_ptid.
4324 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4325 (sol_update_thread_list_callback): Use the current inferior's pid
4326 instead of inferior_ptid.
4327
196535a6
RO
43282020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4329
4330 * procfs.c: Cleanup many comments.
4331
4332 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4333 (AFTER_WATCHFLAG): Replace by value.
4334
4335 (MAIN_PROC_NAME_FORMAT): Inline ...
4336 (create_procinfo): ... here.
4337
4338 (procfs_debug_inferior): Remove SYS_exec handling.
4339 (syscall_is_exec): Likewise.
4340 (procfs_set_exec_trap): Likewise.
4341
4342 (syscall_is_lwp_exit): Inline in callers.
4343 (syscall_is_exit): Likewise.
4344 (syscall_is_exec): Likewise.
4345 (syscall_is_lwp_create): Likewise.
4346
4347 (invalidate_cache): Remove #if 0 code.
4348
4349 (make_signal_thread_runnable): Remove.
4350 (procfs_target::resume): Remove #if 0 code.
4351
cf6f3e86
RO
43522020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4353
4354 PR gdb/25939
4355 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4356 call ...
4357 (procfs_target::create_inferior): ... here.
4358
48e9cc84
PW
43592020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4360
4361 * exec.c (validate_exec_file): Ensure the build-id is up to
4362 date by calling reopen_exec_file (that checks file timestamp
4363 to decide to re-read the file).
4364
3922b302
PA
43652020-06-18 Pedro Alves <palves@redhat.com>
4366
4367 PR gdb/25412
4368 * gdbthread.h (delete_thread, delete_thread_silent)
4369 (find_thread_ptid): Update comments.
4370 * thread.c (current_thread_): New global.
4371 (is_current_thread): Move higher, and reimplement.
4372 (inferior_thread): Reimplement.
4373 (set_thread_exited): Use bool. Add assertions.
4374 (add_thread_silent): Simplify thread-reuse handling by always
4375 calling delete_thread.
4376 (delete_thread): Remove intro comment.
4377 (find_thread_ptid): Skip exited threads.
4378 (switch_to_thread_no_regs): Write to current_thread_.
4379 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4380 INFERIOR_PTID. Clear current_thread_.
4381
6dbdab44
PA
43822020-06-18 Pedro Alves <palves@redhat.com>
4383
4384 * aix-thread.c (pd_update): Use switch_to_thread.
4385
2da4b788
PA
43862020-06-18 Pedro Alves <palves@redhat.com>
4387
4388 * ravenscar-thread.c (ravenscar_thread_target): Update.
4389 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4390 (ravenscar_thread_target::add_active_thread): ... this. Don't
4391 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4392 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4393
50838d1b
PA
43942020-06-18 Pedro Alves <palves@redhat.com>
4395
4396 * nat/windows-nat.c (current_windows_thread): Remove.
4397 * nat/windows-nat.h (current_windows_thread): Remove.
4398 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4399 Adjust.
4400 (display_selectors): Adjust to fetch the current
4401 windows_thread_info based on inferior_ptid.
4402 (fake_create_process): No longer write to current_windows_thread.
4403 (windows_nat_target::get_windows_debug_event):
4404 Don't set inferior_ptid or current_windows_thread.
4405 (windows_nat_target::wait): Adjust to not rely on
4406 current_windows_thread.
4407 (do_initial_windows_stuff): Now a method of windows_nat_target.
4408 Switch to the last_ptid thread.
4409 (windows_nat_target::attach): Adjust.
4410 (windows_nat_target::detach): Use switch_to_no_thread instead of
4411 writing to inferior_ptid directly.
4412 (windows_nat_target::create_inferior): Adjust.
4413
31ce04e9
PA
44142020-06-18 Pedro Alves <palves@redhat.com>
4415
4416 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4417
1ee1a363
PA
44182020-06-18 Pedro Alves <palves@redhat.com>
4419
4420 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4421 after creating it, instead of writing to inferior_ptid. Don't
4422 write to inferior_ptid.
4423
6d350754
PA
44242020-06-18 Pedro Alves <palves@redhat.com>
4425
4426 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4427
5d971d48
PA
44282020-06-18 Pedro Alves <palves@redhat.com>
4429
4430 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4431 it, instead of writing to inferior_ptid.
4432
86e57d1b
PA
44332020-06-18 Pedro Alves <palves@redhat.com>
4434
4435 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4436 to inferior_ptid.
4437
f2e1c129
PA
44382020-06-18 Pedro Alves <palves@redhat.com>
4439
4440 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4441 instead of writing to inferior_ptid directly.
4442
60db1b85
PA
44432020-06-18 Pedro Alves <palves@redhat.com>
4444
4445 * corelow.c (core_target::close): Use switch_to_no_thread instead
4446 of writing to inferior_ptid directly.
4447 (add_to_thread_list, core_target_open): Use switch_to_thread
4448 instead of writing to inferior_ptid directly.
4449
fe7d6a8d
PA
44502020-06-18 Pedro Alves <palves@redhat.com>
4451
4452 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4453 inferior_ptid.
4454 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4455 inferior_ptid.
4456 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4457 inferior_ptid directly.
4458 (darwin_nat_target::init_thread_list): Switch to thread, instead
4459 of writing to inferior_ptid.
4460 (darwin_nat_target::attach): Don't write to inferior_ptid.
4461 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4462
975f8708
PA
44632020-06-18 Pedro Alves <palves@redhat.com>
4464
4465 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4466 thread.
4467 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4468 Instead use switch_to_thread.
4469 (gnu_nat_target::detach): Use switch_to_no_thread
4470 instead of writing to inferior_ptid directly. Used passed-in
4471 inferior instead of looking up the inferior by pid.
4472
1a204730
PA
44732020-06-18 Pedro Alves <palves@redhat.com>
4474
4475 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4476 inferior_ptid.
4477
ebe84f23
PA
44782020-06-18 Pedro Alves <palves@redhat.com>
4479
4480 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4481 inferior_ptid.
4482 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4483 thread.
4484 (nto_procfs_target::detach): Avoid referencing
4485 inferior_ptid. Use switch_to_no_thread instead of writing to
4486 inferior_ptid directly.
4487 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4488 instead of writing to inferior_ptid directly.
4489 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4490 to thread.
4491
191f02e5
PA
44922020-06-18 Pedro Alves <palves@redhat.com>
4493
4494 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4495 after creating it, instead of writing to inferior_ptid.
4496 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4497 to inferior_ptid directly.
4498 (gdbsim_target::wait): Don't write to inferior_ptid.
4499
0ac55310
PA
45002020-06-18 Pedro Alves <palves@redhat.com>
4501
4502 * remote.c (remote_target::remote_notice_new_inferior): Use
4503 switch_to_thread instead of writing to inferior_ptid directly.
4504 (remote_target::add_current_inferior_and_thread): Use
4505 switch_to_no_thread instead of writing to inferior_ptid directly.
4506 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4507 and switch_to_thread instead of using set_current_inferior or
4508 writing to inferior_ptid directly.
4509
5233f39b
PA
45102020-06-18 Pedro Alves <palves@redhat.com>
4511
4512 * tracectf.c (ctf_target_open): Switch to added thread instead of
4513 writing to inferior_ptid directly.
4514 (ctf_target::close): Use switch_to_no_thread instead of writing to
4515 inferior_ptid directly.
4516
087e161b
PA
45172020-06-18 Pedro Alves <palves@redhat.com>
4518
4519 * tracefile-tfile.c (tfile_target_open): Don't write to
4520 inferior_ptid directly, instead switch to added thread.
4521 (tfile_target::close): Use switch_to_no_thread instead of writing
4522 to inferior_ptid directly.
4523
7fb43e53
PA
45242020-06-18 Pedro Alves <palves@redhat.com>
4525
4526 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4527 (procfs_target::detach): Use switch_to_no_thread
4528 instead of writing to inferior_ptid directly.
4529 (do_attach): Change return type to void. Switch to the added
4530 thread.
4531 (procfs_target::create_inferior): Switch to the added thread.
4532 (procfs_do_thread_registers): Don't write to inferior_ptid.
4533
18493a00
PA
45342020-06-18 Pedro Alves <palves@redhat.com>
4535
4536 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4537 of writing to inferior_ptid.
4538 (scoped_restore_exited_inferior): Delete.
4539 (handle_vfork_child_exec_or_exit): Simplify using
4540 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4541 instead of writing to inferior_ptid.
4542 (THREAD_STOPPED_BY): Delete.
4543 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4544 (thread_stopped_by_hw_breakpoint): Delete.
4545 (save_waitstatus): Use
4546 scoped_restore_current_thread+switch_to_thread, and call
4547 target_stopped_by_watchpoint instead of
4548 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4549 instead of thread_stopped_by_sw_breakpoint, and
4550 target_stopped_by_hw_breakpoint instead of
4551 thread_stopped_by_hw_breakpoint.
4552 (handle_inferior_event)
4553 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4554 inferior_ptid directly, nor
4555 set_current_inferior/set_current_program_space. Use
4556 switch_to_thread / switch_to_inferior_no_thread instead.
4557
a0776b13
PA
45582020-06-18 Pedro Alves <palves@redhat.com>
4559
4560 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4561 instead of writing to inferior_ptid.
4562
6155c136
PA
45632020-06-18 Pedro Alves <palves@redhat.com>
4564
4565 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4566 added thread.
4567 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4568 to the added thread.
4569 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4570 instead of writing to inferior_ptid.
4571
c5316fc6
PA
45722020-06-18 Pedro Alves <palves@redhat.com>
4573
4574 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4575 (register_to_value_test): Mock a program_space too. Heap-allocate
4576 the address space. Don't write to inferior_ptid. Use
4577 switch_to_thread instead.
4578
8df01799
PA
45792020-06-18 Pedro Alves <palves@redhat.com>
4580
4581 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4582 Delete.
4583 (find_signalled_thread()): New, factored out from
4584 linux_make_corefile_notes and adjusted to handle exited threads.
4585 (linux_make_corefile_notes): Adjust to use the new
4586 find_signalled_thread.
4587
41792d68
PA
45882020-06-18 Pedro Alves <palves@redhat.com>
4589
4590 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4591 of saving/restoring inferior_ptid.
4592
612f258a
TT
45932020-06-17 Tom Tromey <tom@tromey.com>
4594
4595 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4596 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4597 declare.
4598 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4599
efb763a5
SM
46002020-06-15 Simon Marchi <simon.marchi@efficios.com>
4601
4602 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4603 of partial symtabs.
4604
2951f6c0
SM
46052020-06-17 Simon Marchi <simon.marchi@efficios.com>
4606
4607 * regformats/reg-arm.dat: Remove.
4608 * regformats/reg-bfin.dat: Remove.
4609 * regformats/reg-cris.dat: Remove.
4610 * regformats/reg-crisv32.dat: Remove.
4611 * regformats/reg-m32r.dat: Remove.
4612 * regformats/reg-tilegx.dat: Remove.
4613 * regformats/reg-tilegx32.dat: Remove.
4614
7d458ea5
SM
46152020-06-17 Simon Marchi <simon.marchi@efficios.com>
4616
4617 * features/Makefile (WHICH): Remove arm files.
4618 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4619 * regformats/arm/arm-with-neon.dat: Remove.
4620 * regformats/arm/arm-with-vfpv2.dat: Remove.
4621 * regformats/arm/arm-with-vfpv3.dat: Remove.
4622
3af96c0d
SM
46232020-06-17 Simon Marchi <simon.marchi@efficios.com>
4624
4625 * features/Makefile (XMLTOC): Remove rx.xml.
4626
b25e22fd
PA
46272020-06-17 Pedro Alves <palves@redhat.com>
4628
4629 * gdbthread.h (thread_control_state) <trap_expected> Update
4630 comments.
4631
a78a19b1
AB
46322020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4633
4634 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4635 ada_language::lookup_symbol_nonlocal.
4636 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4637 (ada_language::lookup_symbol_nonlocal): New member function,
4638 implementation from ada_lookup_symbol_nonlocal.
4639 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4640 initializer.
4641 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4642 initializer.
4643 (cplus_language::lookup_symbol_nonlocal): New member function.
4644 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4645 (minimal_language_data) Likewise.
4646 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4647 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4648 initializer.
4649 (d_language::lookup_symbol_nonlocal): New member function.
4650 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4651 initializer.
4652 (f_language::lookup_symbol_nonlocal): New member function.
4653 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4654 initializer.
4655 * language.c (unknown_language_data): Likewise.
4656 (auto_language_data): Likewise.
4657 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4658 field.
4659 (language_defn::lookup_symbol_nonlocal): New member function.
4660 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4661 initializer.
4662 * objc-lang.c (objc_language_data): Likewise.
4663 * opencl-lang.c (opencl_language_data): Likewise.
4664 * p-lang.c (pascal_language_data): Likewise.
4665 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4666 rust_language::lookup_symbol_nonlocal.
4667 (rust_language_data): Delete la_lookup_symbol_nonlocal
4668 initializer.
4669 (rust_language::lookup_symbol_nonlocal): New member function,
4670 implementation from rust_lookup_symbol_nonlocal.
4671 * symtab.c (lookup_symbol_aux): Update call to
4672 lookup_symbol_nonlocal.
4673 (basic_lookup_symbol_nonlocal): Rename to...
4674 (language_defn::lookup_symbol_nonlocal): ...this, and update
4675 header comment. Remove language_defn parameter, and replace with
4676 uses of `this'.
4677 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4678
ebe2334e
AB
46792020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4680
4681 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4682 initializer.
4683 (ada_language::value_print_inner): New member function.
4684 * c-lang.c (c_language_data): Delete la_value_print_inner
4685 initializer.
4686 (cplus_language_data): Likewise.
4687 (asm_language_data): Likewise.
4688 (minimal_language_data): Likewise.
4689 * d-lang.c (d_language_data): Likewise.
4690 (d_language::value_print_inner): New member function.
4691 * f-lang.c (f_language_data): Delete la_value_print_inner
4692 initializer.
4693 (f_language::value_print_inner): New member function.
4694 * f-lang.h (f_value_print_innner): Rename to...
4695 (f_value_print_inner): ...this (note spelling of 'inner').
4696 * f-valprint.c (f_value_print_innner): Rename to...
4697 (f_value_print_inner): ...this (note spelling of 'inner').
4698 * go-lang.c (go_language_data): Delete la_value_print_inner
4699 initializer.
4700 (go_language::value_print_inner): New member function.
4701 * language.c (language_defn::value_print_inner): Define new member
4702 function.
4703 (unk_lang_value_print_inner): Delete.
4704 (unknown_language_data): Delete la_value_print_inner initializer.
4705 (unknown_language::value_print_inner): New member function.
4706 (auto_language_data): Delete la_value_print_inner initializer.
4707 (auto_language::value_print_inner): New member function.
4708 * language.h (language_data): Delete la_value_print_inner field.
4709 (language_defn::value_print_inner): Delcare new member function.
4710 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4711 initializer.
4712 (m2_language::value_print_inner): New member function.
4713 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4714 initializer.
4715 * opencl-lang.c (opencl_language_data): Likewise.
4716 * p-lang.c (pascal_language_data): Likewise.
4717 (pascal_language::value_print_inner): New member function.
4718 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4719 initializer.
4720 (rust_language::value_print_inner): New member function.
4721 * valprint.c (do_val_print): Update call to value_print_inner.
4722
a1d1fa3e
AB
47232020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4724
4725 * ada-lang.c (ada_language_data): Delete la_value_print
4726 initializer.
4727 (ada_language::value_print): New member function.
4728 * c-lang.c (c_language_data): Delete la_value_print initializer.
4729 (cplus_language_data): Likewise.
4730 (asm_language_data): Likewise.
4731 (minimal_language_data): Likewise.
4732 * d-lang.c (d_language_data): Likewise.
4733 * f-lang.c (f_language_data): Likewise.
4734 * go-lang.c (go_language_data): Likewise.
4735 * language.c (unk_lang_value_print): Delete.
4736 (language_defn::value_print): Define new member function.
4737 (unknown_language_data): Delete la_value_print initializer.
4738 (unknown_language::value_print): New member function.
4739 (auto_language_data): Delete la_value_print initializer.
4740 (auto_language::value_print): New member function.
4741 * language.h (language_data): Delete la_value_print field.
4742 (language_defn::value_print): Declare new member function.
4743 (LA_VALUE_PRINT): Update call to value_print.
4744 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4745 * objc-lang.c (objc_language_data): Likewise.
4746 * opencl-lang.c (opencl_language_data): Likewise.
4747 * p-lang.c (pascal_language_data): Likewise.
4748 (pascal_language::value_print): New member function.
4749 * rust-lang.c (rust_language_data): Delete la_value_print
4750 initializer.
4751
f16a9f57
AB
47522020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4753
4754 * ada-lang.c (ada_watch_location_expression): Rename to
4755 ada_language::watch_location_expression.
4756 (ada_language_data): Delete la_watch_location_expression
4757 initializer.
4758 (ada_language::watch_location_expression): New member function,
4759 implementation from ada_watch_location_expression.
4760 * breakpoint.c (watch_command_1): Update call to
4761 watch_location_expression.
4762 * c-lang.c (c_watch_location_expression): Rename to
4763 language_defn::watch_location_expression.
4764 (c_language_data): Delete la_watch_location_expression
4765 initializer.
4766 (cplus_language_data): Likewise.
4767 (asm_language_data): Likewise.
4768 (minimal_language_data): Likewise.
4769 * c-lang.h (c_watch_location_expression): Delete declaration.
4770 * d-lang.c (d_language_data): Delete la_watch_location_expression
4771 initializer.
4772 * f-lang.c (f_language_data): Likewise.
4773 * go-lang.c (go_language_data): Likewise.
4774 * language.c (language_defn::watch_location_expression): Member
4775 function implementation from c_watch_location_expression.
4776 (unknown_language_data): Delete la_watch_location_expression
4777 initializer.
4778 (auto_language_data): Likewise.
4779 * language.h (language_data): Delete la_watch_location_expression
4780 field.
4781 (language_defn::watch_location_expression): Declare new member
4782 function.
4783 * m2-lang.c (m2_language_data): Delete
4784 la_watch_location_expression initializer.
4785 * objc-lang.c (objc_language_data): Likewise.
4786 * opencl-lang.c (opencl_language_data): Likewise.
4787 * p-lang.c (pascal_language_data): Likewise.
4788 * rust-lang.c (rust_watch_location_expression): Rename to
4789 rust_language::watch_location_expression.
4790 (rust_language_data): Delete la_watch_location_expression
4791 initializer.
4792 (rust_language::watch_location_expression): New member function,
4793 implementation from rust_watch_location_expression.
4794
7e56227d
AB
47952020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4796
4797 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4798 ada_language::collect_symbol_completion_matches.
4799 (ada_language_data): Delete la_collect_symbol_completion_matches
4800 initializer.
4801 (ada_language::collect_symbol_completion_matches): New member
4802 function, implementation from
4803 ada_collect_symbol_completion_matches.
4804 * c-lang.c (c_language_data): Delete
4805 la_collect_symbol_completion_matches initializer.
4806 (cplus_language_data): Likewise.
4807 (asm_language_data): Likewise.
4808 (minimal_language_data): Likewise.
4809 * d-lang.c (d_language_data): Likewise.
4810 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4811 f_language::collect_symbol_completion_matches.
4812 (f_language_data): Delete la_collect_symbol_completion_matches
4813 initializer.
4814 (f_language::collect_symbol_completion_matches) New member
4815 function, implementation from f_collect_symbol_completion_matches.
4816 * go-lang.c (go_language_data): Delete
4817 la_collect_symbol_completion_matches initializer.
4818 * language.c (unknown_language_data): Likewise.
4819 (auto_language_data): Likewise.
4820 * language.h (language_data): Delete
4821 la_collect_symbol_completion_matches field.
4822 (language_defn::collect_symbol_completion_matches): New member
4823 function.
4824 * m2-lang.c (m2_language_data): Delete
4825 la_collect_symbol_completion_matches initializer.
4826 * objc-lang.c (objc_language_data): Likewise.
4827 * opencl-lang.c (opencl_language_data): Likewise.
4828 * p-lang.c (pascal_language_data): Likewise.
4829 * rust-lang.c (rust_language_data): Likewise.
4830 * symtab.c (default_collect_symbol_completion_matches): Delete.
4831 (collect_symbol_completion_matches): Update call to
4832 collect_symbol_completion_matches.
4833 (collect_symbol_completion_matches_type): Likewise.
4834 * symtab.h (default_collect_symbol_completion_matches): Delete
4835 declaration.
4836
53fc67f8
AB
48372020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4838
4839 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4840 (ada_language_data): Delete la_word_break_characters initializer.
4841 (ada_language::word_break_characters): New member function.
4842 * c-lang.c (c_language_data): Delete la_word_break_characters
4843 initializer.
4844 (cplus_language_data): Likewise.
4845 (asm_language_data): Likewise.
4846 (minimal_language_data): Likewise.
4847 * completer.c: Update global comment.
4848 (advance_to_expression_complete_word_point): Update call to
4849 word_break_characters.
4850 (complete_files_symbols): Likewise.
4851 (complete_line_internal_1): Likewise.
4852 (default_completer_handle_brkchars): Likewise.
4853 (skip_quoted_chars): Likewise.
4854 * d-lang.c (d_language_data): Delete la_word_break_characters
4855 initializer.
4856 * f-lang.c (f_word_break_characters): Delete.
4857 (f_language_data): Delete la_word_break_characters initializer.
4858 (f_language::word_break_characters): New member function.
4859 * go-lang.c (go_language_data): Delete la_word_break_characters
4860 initializer.
4861 * language.c (unknown_language_data): Likewise.
4862 (auto_language_data): Likewise.
4863 * language.h (default_word_break_characters): Move declaration to
4864 earlier in the file.
4865 (language_data): Delete la_word_break_characters field.
4866 (language_defn::word_break_characters): New member function.
4867 * m2-lang.c (m2_language_data): Delete la_word_break_characters
4868 initializer.
4869 * objc-lang.c (objc_language_data): Likewise.
4870 * opencl-lang.c (opencl_language_data): Likewise.
4871 * p-lang.c (pascal_language_data): Likewise.
4872 * rust-lang.c (rust_language_data): Likewise.
4873
c9debfb9
AB
48742020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4875
4876 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
4877 (ada_language_data): Delete la_get_symbol_name_matcher
4878 initializer.
4879 (language_defn::get_symbol_name_matcher_inner): New member
4880 function.
4881 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
4882 initializer.
4883 (cplus_language_data): Likewise.
4884 (cplus_language::get_symbol_name_matcher_inner): New member
4885 function.
4886 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
4887 (minimal_language_data): Likewise.
4888 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
4889 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
4890 initializer.
4891 * dictionary.c (iter_match_first_hashed): Update call to
4892 get_symbol_name_matcher.
4893 (iter_match_next_hashed): Likewise.
4894 (iter_match_next_linear): Likewise.
4895 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
4896 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
4897 initializer.
4898 (f_language::get_symbol_name_matcher_inner): New member function.
4899 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4900 initializer.
4901 * language.c (default_symbol_name_matcher): Update header comment,
4902 make static.
4903 (language_defn::get_symbol_name_matcher): New definition.
4904 (language_defn::get_symbol_name_matcher_inner): Likewise.
4905 (get_symbol_name_matcher): Delete.
4906 (unknown_language_data): Delete la_get_symbol_name_matcher
4907 initializer.
4908 (auto_language_data): Likewise.
4909 * language.h (language_data): Delete la_get_symbol_name_matcher
4910 field.
4911 (language_defn::get_symbol_name_matcher): New member function.
4912 (language_defn::get_symbol_name_matcher_inner): Likewise.
4913 (default_symbol_name_matcher): Delete declaration.
4914 * linespec.c (find_methods): Update call to
4915 get_symbol_name_matcher.
4916 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4917 initializer.
4918 * minsyms.c (lookup_minimal_symbol): Update call to
4919 get_symbol_name_matcher.
4920 (iterate_over_minimal_symbols): Likewise.
4921 * objc-lang.c (objc_language_data): Delete
4922 la_get_symbol_name_matcher initializer.
4923 * opencl-lang.c (opencl_language_data): Likewise.
4924 * p-lang.c (pascal_language_data): Likewise.
4925 * psymtab.c (psymbol_name_matches): Update call to
4926 get_symbol_name_matcher.
4927 * rust-lang.c (rust_language_data): Delete
4928 la_get_symbol_name_matcher initializer.
4929 * symtab.c (symbol_matches_search_name): Update call to
4930 get_symbol_name_matcher.
4931 (compare_symbol_name): Likewise.
4932
9a49ad8c
AB
49332020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4934
4935 * ada-lang.c (ada_language_data): Delete la_compute_program
4936 initializer.
4937 * c-lang.c (c_language_data): Likewise.
4938 (c_language::compute_program): New member function.
4939 (cplus_language_data): Delete la_compute_program initializer.
4940 (cplus_language::compute_program): New member function.
4941 (asm_language_data): Delete la_compute_program initializer.
4942 (minimal_language_data): Likewise.
4943 * c-lang.h (c_compute_program): Update comment.
4944 (cplus_compute_program): Likewise.
4945 * compile/compile-c-support.c (c_compute_program): Likewise.
4946 (cplus_compute_program): Likewise.
4947 * compile/compile.c (compile_to_object): Update call to
4948 la_compute_program.
4949 * d-lang.c (d_language_data): Delete la_compute_program
4950 initializer.
4951 * f-lang.c (f_language_data): Likewise.
4952 * go-lang.c (go_language_data): Likewise.
4953 * language.c (unknown_language_data): Likewise.
4954 (auto_language_data): Likewise.
4955 * language.h (language_data): Delete la_compute_program field.
4956 (language_defn::compute_program): New member function.
4957 * m2-lang.c (m2_language_data): Delete la_compute_program
4958 initializer.
4959 * objc-lang.c (objc_language_data): Likewise.
4960 * opencl-lang.c (opencl_language_data): Likewise.
4961 * p-lang.c (pascal_language_data): Likewise.
4962 * rust-lang.c (rust_language_data): Likewise.
4963
eff93b4d
AB
49642020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4965
4966 * ada-lang.c (ada_language_data) Delete
4967 la_class_name_from_physname initializer.
4968 * c-lang.c (c_language_data): Likewise.
4969 (cplus_language_data): Likewise.
4970 (cplus_language::class_name_from_physname): New member function.
4971 (asm_language_data): Delete la_class_name_from_physname
4972 initializer.
4973 (minimal_language_data): Likewise.
4974 * d-lang.c (d_language_data): Likewise.
4975 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4976 method on language_defn class.
4977 (guess_full_die_structure_name): Likewise.
4978 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4979 initializer.
4980 * go-lang.c (go_language_data): Likewise.
4981 * language.c (language_class_name_from_physname): Delete.
4982 (unk_lang_class_name): Delete.
4983 (unknown_language_data): Delete la_class_name_from_physname
4984 initializer.
4985 (auto_language_data): Likewise.
4986 * language.h (language_data): Delete la_class_name_from_physname
4987 field.
4988 (language_defn::class_name_from_physname): New function.
4989 (language_class_name_from_physname): Delete declaration.
4990 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4991 initializer.
4992 * objc-lang.c (objc_language_data): Likewise.
4993 * opencl-lang.c (opencl_language_data): Likewise.
4994 * p-lang.c (pascal_language_data): Likewise.
4995 * rust-lang.c (rust_language_data): Likewise.
4996
de543742
TT
49972020-06-16 Tom Tromey <tom@tromey.com>
4998
4999 * tui/tui-data.h (STATUS_NAME): New macro.
5000 * tui/tui-layout.c (tui_remove_some_windows)
5001 (initialize_known_windows, tui_register_window)
5002 (tui_layout_split::remove_windows, initialize_layouts)
5003 (tui_new_layout_command): Don't use hard-coded window names.
5004
a350efd4
TT
50052020-06-16 Tom Tromey <tom@tromey.com>
5006
5007 PR tui/25348:
5008 * tui/tui.c (tui_ensure_readline_initialized): Rename from
5009 tui_initialize_readline. Only run once. Call rl_initialize.
5010 * tui/tui.h (tui_ensure_readline_initialized): Rename from
5011 tui_initialize_readline.
5012 * tui/tui-io.c (tui_setup_io): Call
5013 tui_ensure_readline_initialized.
5014 * tui/tui-interp.c (tui_interp::init): Update.
5015
39ec0490
TT
50162020-06-16 Tom Tromey <tom@tromey.com>
5017
5018 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
5019 Also preserve the status window.
5020
d2d1ea20
TT
50212020-06-16 Tom Tromey <tom@tromey.com>
5022
5023 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
5024 where m_window==nullptr.
5025
66920317
TT
50262020-06-15 Tom Tromey <tromey@adacore.com>
5027
5028 * windows-nat.c (windows_nat::handle_output_debug_string):
5029 Update.
5030 (windows_nat::handle_ms_vc_exception): Update.
5031 * target.h (target_read_string): Change API.
5032 * target.c (target_read_string): Change API.
5033 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
5034 Update.
5035 * solib-frv.c (frv_current_sos): Update.
5036 * solib-dsbt.c (dsbt_current_sos): Update.
5037 * solib-darwin.c (darwin_current_sos): Update.
5038 * linux-thread-db.c (inferior_has_bug): Update.
5039 * expprint.c (print_subexp_standard): Update.
5040 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
5041 (ada_exception_message_1): Update.
5042
a5d871dd
TT
50432020-06-15 Tom Tromey <tromey@adacore.com>
5044
5045 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
5046
670e35fa
TT
50472020-06-15 Tom Tromey <tromey@adacore.com>
5048
5049 * valprint.c (read_string): Update comment.
5050 * target.c (MIN): Remove.
5051 (target_read_string): Rewrite.
5052
f5272a3b
TT
50532020-06-15 Tom Tromey <tromey@adacore.com>
5054
5055 * corefile.c (read_memory_string): Remove.
5056 * ada-valprint.c (ada_value_print_ptr): Update.
5057 * ada-lang.h (ada_tag_name): Change return type.
5058 * ada-lang.c (type_from_tag): Update.
5059 (ada_tag_name_from_tsd): Change return type. Use
5060 target_read_string.
5061 (ada_tag_name): Likewise.
5062 * gdbcore.h (read_memory_string): Don't declare.
5063
2c074f49
HD
50642020-06-14 Hannes Domani <ssbssa@yahoo.de>
5065
5066 * symtab.c (rbreak_command): Ignore Windows drive colon.
5067
6a17d503
SM
50682020-06-12 Simon Marchi <simon.marchi@efficios.com>
5069
5070 * NEWS: Mention removed GDBserver host support.
5071
453c733f
NC
50722020-06-12 Nelson Chu <nelson.chu@sifive.com>
5073
5074 * features/riscv/rebuild-csr-xml.sh: Updated.
5075
2b4e6a3f
TT
50762020-06-11 Tom Tromey <tom@tromey.com>
5077
5078 PR gdb/18318:
5079 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
5080
4412332f
JG
50812020-06-09 Jonny Grant <jg@jguk.org>
50822020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
5083
5084 * main.c (captured_main_1): Don't print new line after help.
5085 (print_gdb_help): add mailing list and IRC channel information
5086 to --help. Add new lines between items in the footer. Remove
5087 quotes around bug url.
5088
2f33032a
KS
50892020-06-11 Keith Seitz <keiths@redhat.com>
5090
5091 PR gdb/21356
5092 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
5093 Resolve typedefs for type length calculations.
5094
7ab96794
TV
50952020-06-10 Tom de Vries <tdevries@suse.de>
5096
5097 PR ada/24713
5098 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
5099 (write_psymbols): Enable .gdb_index for ada.
5100 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
5101 ada.
5102
e5f3ece2
TV
51032020-06-10 Tom de Vries <tdevries@suse.de>
5104
5105 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
5106 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
5107 namei" instead of "const char *name" argument.
5108 (dw2_map_matching_symbols): Use "offset_type namei" variant of
5109 dw2_symtab_iter_init.
5110
940da03e
SM
51112020-06-08 Simon Marchi <simon.marchi@efficios.com>
5112
5113 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
5114 to use type::field and field::type instead.
5115
b6cdac4b
SM
51162020-06-08 Simon Marchi <simon.marchi@efficios.com>
5117
5118 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
5119 to use field::type instead.
5120
5d14b6e5
SM
51212020-06-08 Simon Marchi <simon.marchi@efficios.com>
5122
5123 * gdbtypes.h (struct field) <type, set_type>: New methods.
5124 Rename `type` field to...
5125 <m_type>: ... this. Change references throughout to use type or
5126 set_type methods.
5127 (FIELD_TYPE): Use field::type. Change call sites that modify
5128 the field's type to use field::set_type instead.
5129
3d967001
SM
51302020-06-08 Simon Marchi <simon.marchi@efficios.com>
5131
5132 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
5133 to use type::index_type instead.
5134
262abc0d
SM
51352020-06-08 Simon Marchi <simon.marchi@efficios.com>
5136
5137 * gdbtypes.h (struct type) <index_type, set_index_type>: New
5138 methods.
5139 (TYPE_INDEX_TYPE): Use type::index_type.
5140 * gdbtypes.c (create_array_type_with_stride): Likewise.
5141
82836c92
TT
51422020-06-07 Tom Tromey <tom@tromey.com>
5143
5144 * valprint.c (generic_val_print_float): Remove "embedded_offset"
5145 parameter.
5146 (generic_value_print): Update.
5147
940dace9
AB
51482020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5149
5150 Revert commit 982a38f60b0.
5151 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
5152
982a38f6
AB
51532020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5154
5155 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
5156 avoid use after free.
5157
82f06518
TV
51582020-06-05 Tom de Vries <tdevries@suse.de>
5159
5160 * NEWS: Fix typos.
5161
f8c41851
SM
51622020-06-04 Simon Marchi <simon.marchi@efficios.com>
5163
5164 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
5165 the per_bfd object.
5166 (dwarf2_read_debug_names): Likewise.
5167 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
5168 object when re-using a per_bfd object with an index.
5169
f9b5d5ea
TV
51702020-06-03 Tom de Vries <tdevries@suse.de>
5171
5172 PR symtab/26046
5173 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
5174 children for C++.
5175 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
5176 DW_TAG_subprogram.
5177
f6eee2d0
AB
51782020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5179
5180 * ada-lang.c (ada_language_data): Delete skip_trampoline
5181 initializer.
5182 * c-lang.c (c_language_data): Likewise.
5183 (cplus_language_data): Likewise.
5184 (cplus_language::skip_trampoline): New member function.
5185 (asm_language_data): Delete skip_trampoline initializer.
5186 (minimal_language_data): Likewise.
5187 * d-lang.c (d_language_data): Likewise.
5188 * f-lang.c (f_language_data): Likewise.
5189 * go-lang.c (go_language_data): Likewise.
5190 * language.c (unk_lang_trampoline): Delete function.
5191 (skip_language_trampoline): Update.
5192 (unknown_language_data): Delete skip_trampoline initializer.
5193 (auto_language_data): Likewise.
5194 * language.h (language_data): Delete skip_trampoline field.
5195 (language_defn::skip_trampoline): New function.
5196 * m2-lang.c (m2_language_data): Delete skip_trampoline
5197 initializer.
5198 * objc-lang.c (objc_skip_trampoline): Delete function, move
5199 implementation to objc_language::skip_trampoline.
5200 (objc_language_data): Delete skip_trampoline initializer.
5201 (objc_language::skip_trampoline): New member function with
5202 implementation from objc_skip_trampoline.
5203 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5204 initializer.
5205 * p-lang.c (pascal_language_data): Likewise.
5206 * rust-lang.c (rust_language_data): Likewise.
5207
0a50df5d
AB
52082020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5209
5210 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5211 (ada_language::demangle): New member function.
5212 * c-lang.c (c_language_data): Delete la_demangle initializer.
5213 (cplus_language_data): Delete la_demangle initializer.
5214 (cplus_language::demangle): New member function.
5215 (asm_language_data): Delete la_demangle initializer.
5216 (minimal_language_data): Delete la_demangle initializer.
5217 * d-lang.c (d_language_data): Delete la_demangle initializer.
5218 (d_language::demangle): New member function.
5219 * f-lang.c (f_language_data): Delete la_demangle initializer.
5220 (f_language::demangle): New member function.
5221 * go-lang.c (go_language_data): Delete la_demangle initializer.
5222 (go_language::demangle): New member function.
5223 * language.c (language_demangle): Update.
5224 (unk_lang_demangle): Delete.
5225 (unknown_language_data): Delete la_demangle initializer.
5226 (unknown_language::demangle): New member function.
5227 (auto_language_data): Delete la_demangle initializer.
5228 (auto_language::demangle): New member function.
5229 * language.h (language_data): Delete la_demangle field.
5230 (language_defn::demangle): New function.
5231 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5232 * objc-lang.c (objc_language_data): Delete la_demangle
5233 initializer.
5234 (objc_language::demangle): New member function.
5235 * opencl-lang.c (opencl_language_data): Delete la_demangle
5236 initializer.
5237 * p-lang.c (pascal_language_data): Likewise.
5238 * rust-lang.c (rust_language_data): Likewise.
5239 (rust_language::demangle): New member function.
5240
fbfb0a46
AB
52412020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5242
5243 * ada-lang.c (ada_language_data): Delete la_print_type
5244 initializer.
5245 (ada_language::print_type): New member function.
5246 * c-lang.c (c_language_data): Delete la_print_type initializer.
5247 (c_language::print_type): New member function.
5248 (cplus_language_data): Delete la_print_type initializer.
5249 (cplus_language::print_type): New member function.
5250 (asm_language_data): Delete la_print_type initializer.
5251 (asm_language::print_type): New member function.
5252 (minimal_language_data): Delete la_print_type initializer.
5253 (minimal_language::print_type): New member function.
5254 * d-lang.c (d_language_data): Delete la_print_type initializer.
5255 (d_language::print_type): New member function.
5256 * f-lang.c (f_language_data): Delete la_print_type initializer.
5257 (f_language::print_type): New member function.
5258 * go-lang.c (go_language_data): Delete la_print_type initializer.
5259 (go_language::print_type): New member function.
5260 * language.c (unk_lang_print_type): Delete.
5261 (unknown_language_data): Delete la_print_type initializer.
5262 (unknown_language::print_type): New member function.
5263 (auto_language_data): Delete la_print_type initializer.
5264 (auto_language::print_type): New member function.
5265 * language.h (language_data): Delete la_print_type field.
5266 (language_defn::print_type): New function.
5267 (LA_PRINT_TYPE): Update.
5268 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5269 (m2_language::print_type): New member function.
5270 * objc-lang.c (objc_language_data): Delete la_print_type
5271 initializer.
5272 (objc_language::print_type): New member function.
5273 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5274 to opencl_language::print_type.
5275 (opencl_language_data): Delete la_print_type initializer.
5276 (opencl_language::print_type): New member function, implementation
5277 from opencl_print_type.
5278 * p-lang.c (pascal_language_data): Delete la_print_type
5279 initializer.
5280 (pascal_language::print_type): New member function.
5281 * rust-lang.c (rust_print_type): Delete, implementation moved to
5282 rust_language::print_type.
5283 (rust_language_data): Delete la_print_type initializer.
5284 (rust_language::print_type): New member function, implementation
5285 from rust_print_type.
5286
6f827019
AB
52872020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5288
5289 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5290 implementation moves to...
5291 (ada_language::sniff_from_mangled_name): ...here. Update return
5292 type.
5293 (ada_language_data): Delete la_sniff_from_mangled_name
5294 initializer.
5295 * c-lang.c (c_language_data): Likewise.
5296 (cplus_language_data): Likewise.
5297 (cplus_language::sniff_from_mangled_name): New member function,
5298 implementation taken from gdb_sniff_from_mangled_name.
5299 (asm_language_data): Delete la_sniff_from_mangled_name
5300 initializer.
5301 (minimal_language_data): Likewise.
5302 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5303 implementation moves to cplus_language::sniff_from_mangled_name.
5304 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5305 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5306 moves to...
5307 (d_language::sniff_from_mangled_name): ...here.
5308 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5309 * f-lang.c (f_language_data): Likewise.
5310 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5311 moves to...
5312 (go_language::sniff_from_mangled_name): ...here.
5313 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5314 * language.c (language_sniff_from_mangled_name): Delete.
5315 (unknown_language_data): Delete la_sniff_from_mangled_name
5316 initializer.
5317 (auto_language_data): Likewise.
5318 * language.h (language_data): Delete la_sniff_from_mangled_name
5319 field.
5320 (language_defn::sniff_from_mangled_name): New function.
5321 (language_sniff_from_mangled_name): Delete declaration.
5322 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5323 field.
5324 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5325 implementation moves to...
5326 (objc_language::sniff_from_mangled_name): ...here.
5327 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5328 * opencl-lang.c (opencl_language_data): Likewise.
5329 * p-lang.c (pascal_language_data): Likewise.
5330 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5331 implementation moves to...
5332 (rust_language::sniff_from_mangled_name): ...here.
5333 (rust_language_data): Delete la_sniff_from_mangled_name
5334 initializer.
5335 * symtab.c (symbol_find_demangled_name): Call
5336 sniff_from_mangled_name member function.
5337
fb8006fd
AB
53382020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5339
5340 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5341 initializer.
5342 * c-lang.c (c_language_data): Likewise.
5343 (cplus_language_data): Likewise.
5344 (cplus_language::search_name_hash): New member function.
5345 (asm_language_data): Delete la_search_name_hash initializer.
5346 (minimal_language_data): Likewise.
5347 * d-lang.c (d_language_data): Likewise.
5348 * dictionary.c (default_search_name_hash): Rename to...
5349 (language_defn::search_name_hash): ...this.
5350 * f-lang.c (f_language_data): Likewise.
5351 (f_language::search_name_hash): New member function.
5352 * go-lang.c (go_language_data): Delete la_search_name_hash
5353 initializer.
5354 * language.c (unknown_language_data): Likewise.
5355 (auto_language_data): Likewise.
5356 * language.h (struct language_data): Delete la_search_name_hash
5357 field.
5358 (language_defn::search_name_hash): Declare new member function.
5359 (default_search_name_hash): Delete declaration.
5360 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5361 initializer.
5362 * objc-lang.c (objc_language_data): Likewise.
5363 * opencl-lang.c (opencl_language_data): Likewise.
5364 * p-lang.c (pascal_language_data): Likewise.
5365 * rust-lang.c (rust_language_data): Likewise.
5366 * symtab.c (search_name_hash): Update call.
5367
8e25bafe
AB
53682020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5369
5370 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5371 initializer.
5372 * c-lang.c (class compile_instance): Declare.
5373 (c_language_data): Delete la_get_compile_instance initializer.
5374 (c_language::get_compile_instance): New member function.
5375 (cplus_language_data): Delete la_get_compile_instance initializer.
5376 (cplus_language::get_compile_instance): New member function.
5377 (asm_language_data): Delete la_get_compile_instance initializer.
5378 (minimal_language_data): Likewise.
5379 * c-lang.h (c_get_compile_context): Update comment.
5380 (cplus_get_compile_context): Update comment.
5381 * compile/compile.c (compile_to_object): Update calls, don't rely
5382 on function pointer being NULL.
5383 * d-lang.c (d_language_data): Delete la_get_compile_instance
5384 initializer.
5385 * f-lang.c (f_language_data): Likewise.
5386 * go-lang.c (go_language_data): Likewise.
5387 * language.c (unknown_language_data): Likewise.
5388 (auto_language_data): Likewise.
5389 * language.h (language_data): Delete la_get_compile_instance field.
5390 (language_defn::get_compile_instance): New member function.
5391 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5392 initializer.
5393 * objc-lang.c (objc_language_data): Likewise.
5394 * opencl-lang.c (opencl_language_data): Likewise.
5395 * p-lang.c (pascal_language_data): Likewise.
5396 * rust-lang.c (rust_language_data): Likewise.
5397
4009ee92
AB
53982020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5399
5400 * ada-lang.c (ada_add_all_symbols): Update comment.
5401 (ada_iterate_over_symbols): Delete, move implementation to...
5402 (ada_language::iterate_over_symbols): ...here, a new member
5403 function, rewrite to use range based for loop.
5404 (ada_language_data): Delete la_iterate_over_symbols initializer.
5405 * c-lang.c (c_language_data): Likewise.
5406 (cplus_language_data): Likewise.
5407 (asm_language_data): Likewise.
5408 (minimal_language_data): Likewise.
5409 * d-lang.c (d_language_data): Likewise.
5410 * f-lang.c (f_language_data): Likewise.
5411 * go-lang.c (go_language_data): Likewise.
5412 * language.c (unknown_language_data): Likewise.
5413 (auto_language_data): Likewise.
5414 * language.h (language_data): Delete la_iterate_over_symbols field.
5415 (language_defn::iterate_over_symbols): New member function.
5416 (LA_ITERATE_OVER_SYMBOLS): Update.
5417 * linespec.c (iterate_over_all_matching_symtabs): Update.
5418 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5419 initializer.
5420 * objc-lang.c (objc_language_data): Likewise.
5421 * opencl-lang.c (opencl_language_data): Likewise.
5422 * p-lang.c (pascal_language_data): Likewise.
5423 * rust-lang.c (rust_language_data): Likewise.
5424
54f4ca46
AB
54252020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5426
5427 * ada-lang.c (ada_language_data): Delete
5428 la_lookup_transparent_type initializer.
5429 * c-lang.c (c_language_data): Likewise.
5430 (cplus_language_data): Likewise.
5431 (cplus_language::lookup_transparent_type): New member function.
5432 (asm_language_data): Delete la_lookup_transparent_type
5433 initializer.
5434 (minimal_language_data): Likewise.
5435 * d-lang.c (d_language_data): Likewise.
5436 * f-lang.c (f_language_data): Likewise.
5437 * go-lang.c (go_language_data): Likewise.
5438 * language.c (unknown_language_data): Likewise.
5439 (auto_language_data): Likewise.
5440 * language.h (struct language_data): Delete
5441 la_lookup_transparent_type field.
5442 (language_defn::lookup_transparent_type): New member function.
5443 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5444 initializer.
5445 * objc-lang.c (objc_language_data): Likewise.
5446 * opencl-lang.c (opencl_language_data): Likewise.
5447 * p-lang.c (pascal_language_data): Likewise.
5448 * rust-lang.c (rust_language_data): Likewise.
5449 * symtab.c (symbol_matches_domain): Update call.
5450
1fb314aa
AB
54512020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5452
5453 * ada-lang.c (ada_language_arch_info): Delete function, move
5454 implementation to...
5455 (ada_language::language_arch_info): ...here, a new member
5456 function.
5457 (ada_language_data): Delete la_language_arch_info.
5458 * c-lang.c (c_language_data): Likewise.
5459 (c_language::language_arch_info): New member function.
5460 (cplus_language_arch_info): Delete function, move
5461 implementation to...
5462 (cplus_language::language_arch_info): ...here, a new member
5463 function.
5464 (cplus_language_data): Delete la_language_arch_info.
5465 (asm_language_data): Likewise.
5466 (asm_language::language_arch_info): New member function.
5467 (minimal_language_data): Delete la_language_arch_info.
5468 (minimal_language::language_arch_info): New member function.
5469 * d-lang.c (d_language_arch_info): Delete function, move
5470 implementation to...
5471 (d_language::language_arch_info): ...here, a new member
5472 function.
5473 (d_language_data): Delete la_language_arch_info.
5474 * f-lang.c (f_language_arch_info): Delete function, move
5475 implementation to...
5476 (f_language::language_arch_info): ...here, a new member
5477 function.
5478 (f_language_data): Delete la_language_arch_info.
5479 * go-lang.c (go_language_arch_info): Delete function, move
5480 implementation to...
5481 (go_language::language_arch_info): ...here, a new member
5482 function.
5483 (go_language_data): Delete la_language_arch_info.
5484 * language.c (unknown_language_data): Likewise.
5485 (unknown_language::language_arch_info): New member function.
5486 (auto_language_data): Delete la_language_arch_info.
5487 (auto_language::language_arch_info): New member function.
5488 (language_gdbarch_post_init): Update call to
5489 la_language_arch_info.
5490 * language.h (language_data): Delete la_language_arch_info
5491 function pointer.
5492 (language_defn::language_arch_info): New function.
5493 * m2-lang.c (m2_language_arch_info): Delete function, move
5494 implementation to...
5495 (m2_language::language_arch_info): ...here, a new member
5496 function.
5497 (m2_language_data): Delete la_language_arch_info.
5498 * objc-lang.c (objc_language_arch_info): Delete function, move
5499 implementation to...
5500 (objc_language::language_arch_info): ...here, a new member
5501 function.
5502 (objc_language_data): Delete la_language_arch_info.
5503 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5504 implementation to...
5505 (opencl_language::language_arch_info): ...here, a new member
5506 function.
5507 (opencl_language_data): Delete la_language_arch_info.
5508 * p-lang.c (pascal_language_arch_info): Delete function, move
5509 implementation to...
5510 (pascal_language::language_arch_info): ...here, a new member
5511 function.
5512 (pascal_language_data): Delete la_language_arch_info.
5513 * rust-lang.c (rust_language_arch_info): Delete function, move
5514 implementation to...
5515 (rust_language::language_arch_info): ...here, a new member
5516 function.
5517 (rust_language_data): Delete la_language_arch_info.
5518
48448202
AB
55192020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5520
5521 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5522 initializer.
5523 * c-lang.c (c_language_data): Likewise.
5524 (cplus_language_data): Likewise.
5525 (cplus_language::pass_by_reference_info): New method.
5526 (asm_language_data): Delete la_pass_by_reference initializer.
5527 (minimal_language_data): Likewise.
5528 * cp-abi.c (cp_pass_by_reference): Remove use of
5529 default_pass_by_reference.
5530 * d-lang.c (d_language_data): Likewise.
5531 * f-lang.c (f_language_data): Likewise.
5532 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5533 default_pass_by_reference.
5534 * go-lang.c (go_language_data): Likewise.
5535 * language.c (language_pass_by_reference): Update.
5536 (default_pass_by_reference): Delete.
5537 (unknown_language_data): Delete la_pass_by_reference
5538 initializer.
5539 (auto_language_data): Likewise.
5540 * language.h (struct language_data): Delete la_pass_by_reference
5541 field.
5542 (language_defn::pass_by_reference_info): New member function.
5543 (default_pass_by_reference): Delete declaration.
5544 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5545 initializer.
5546 * objc-lang.c (objc_language_data): Likewise.
5547 * opencl-lang.c (opencl_language_data): Likewise.
5548 * p-lang.c (pascal_language_data): Likewise.
5549 * rust-lang.c (rust_language_data): Likewise.
5550
15e5fd35
AB
55512020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5552
5553 * ada-lang.c (ada_read_var_value): Delete function, move
5554 implementation to...
5555 (ada_language::read_var_value): ...here.
5556 (ada_language_data): Delete la_read_var_value initializer.
5557 * c-lang.c (c_language_data): Likewise.
5558 (cplus_language_data): Likewise.
5559 (minimal_language_data): Likewise.
5560 * d-lang.c (d_language_data): Likewise.
5561 * f-lang.c (f_language_data): Likewise.
5562 * findvar.c (default_read_var_value): Rename to...
5563 (language_defn::read_var_value): ...this.
5564 * findvar.c (read_var_value): Update header comment, and change to
5565 call member function instead of function pointer.
5566 * go-lang.c (go_language_data): Likewise.
5567 * language.c (unknown_language_data): Delete la_read_var_value
5568 initializer.
5569 (auto_language_data): Likewise.
5570 * language.h (struct language_data): Delete la_read_var_value
5571 field.
5572 (language_defn::read_var_value): New member function.
5573 (default_read_var_value): Delete declaration.
5574 * m2-lang.c (m2_language_data): Delete la_read_var_value
5575 initializer.
5576 * objc-lang.c (objc_language_data): Likewise.
5577 * opencl-lang.c (opencl_language_data): Likewise.
5578 * p-lang.c (pascal_language_data): Likewise.
5579 * rust-lang.c (rust_language_data): Likewise.
5580 * value.h (default_read_var_value): Delete declaration.
5581
5bd40f2a
AB
55822020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5583
5584 * ada-lang.c (ada_print_array_index): Delete function, move
5585 implementation to...
5586 (ada_language::print_array_index): ...here.
5587 (ada_language_data): Delete la_print_array_index initializer.
5588 * c-lang.c (c_language_data): Likewise.
5589 (cplus_language_data): Likewise.
5590 (minimal_language_data): Likewise.
5591 * d-lang.c (d_language_data): Likewise.
5592 * f-lang.c (f_language_data): Likewise.
5593 * go-lang.c (go_language_data): Likewise.
5594 * language.c (default_print_array_index): Delete function, move
5595 implementation to...
5596 (language_defn::print_array_index): ...here.
5597 (unknown_language_data): Delete la_print_array_index initializer.
5598 (auto_language_data): Likewise.
5599 * language.h (struct language_data): Delete la_print_array_index
5600 field.
5601 (language_defn::print_array_index): New member function.
5602 (LA_PRINT_ARRAY_INDEX): Update.
5603 (default_print_array_index): Delete declaration.
5604 * m2-lang.c (m2_language_data): Delete la_print_array_index
5605 initializer.
5606 * objc-lang.c (objc_language_data): Likewise.
5607 * opencl-lang.c (opencl_language_data): Likewise.
5608 * p-lang.c (pascal_language_data): Likewise.
5609 * rust-lang.c (rust_language_data): Likewise.
5610
0874fd07
AB
56112020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5612
5613 * gdb/ada-lang.c (ada_language_defn): Convert to...
5614 (ada_language_data): ...this.
5615 (class ada_language): New class.
5616 (ada_language_defn): New static global.
5617 * gdb/c-lang.c (c_language_defn): Convert to...
5618 (c_language_data): ...this.
5619 (class c_language): New class.
5620 (c_language_defn): New static global.
5621 (cplus_language_defn): Convert to...
5622 (cplus_language_data): ...this.
5623 (class cplus_language): New class.
5624 (cplus_language_defn): New static global.
5625 (asm_language_defn): Convert to...
5626 (asm_language_data): ...this.
5627 (class asm_language): New class.
5628 (asm_language_defn): New static global.
5629 (minimal_language_defn): Convert to...
5630 (minimal_language_data): ...this.
5631 (class minimal_language): New class.
5632 (minimal_language_defn): New static global.
5633 * gdb/d-lang.c (d_language_defn): Convert to...
5634 (d_language_data): ...this.
5635 (class d_language): New class.
5636 (d_language_defn): New static global.
5637 * gdb/f-lang.c (f_language_defn): Convert to...
5638 (f_language_data): ...this.
5639 (class f_language): New class.
5640 (f_language_defn): New static global.
5641 * gdb/go-lang.c (go_language_defn): Convert to...
5642 (go_language_data): ...this.
5643 (class go_language): New class.
5644 (go_language_defn): New static global.
5645 * gdb/language.c (unknown_language_defn): Remove declaration.
5646 (current_language): Initialize to nullptr, real initialization is
5647 moved to _initialize_language.
5648 (languages): Delete global.
5649 (language_defn::languages): Define.
5650 (set_language_command): Use language_defn::languages.
5651 (set_language): Likewise.
5652 (range_error): Likewise.
5653 (language_enum): Likewise.
5654 (language_def): Likewise.
5655 (add_set_language_command): Use language_def::languages for the
5656 language list, and language_def to lookup language pointers.
5657 (skip_language_trampoline): Use language_defn::languages.
5658 (unknown_language_defn): Convert to...
5659 (unknown_language_data): ...this.
5660 (class unknown_language): New class.
5661 (unknown_language_defn): New static global.
5662 (auto_language_defn): Convert to...
5663 (auto_language_data): ...this.
5664 (class auto_language): New class.
5665 (auto_language_defn): New static global.
5666 (language_gdbarch_post_init): Use language_defn::languages.
5667 (_initialize_language): Initialize current_language.
5668 * gdb/language.h (struct language_defn): Rename to...
5669 (struct language_data): ...this.
5670 (struct language_defn): New.
5671 (auto_language_defn): Delete.
5672 (unknown_language_defn): Delete.
5673 (minimal_language_defn): Delete.
5674 (ada_language_defn): Delete.
5675 (asm_language_defn): Delete.
5676 (c_language_defn): Delete.
5677 (cplus_language_defn): Delete.
5678 (d_language_defn): Delete.
5679 (f_language_defn): Delete.
5680 (go_language_defn): Delete.
5681 (m2_language_defn): Delete.
5682 (objc_language_defn): Delete.
5683 (opencl_language_defn): Delete.
5684 (pascal_language_defn): Delete.
5685 (rust_language_defn): Delete.
5686 * gdb/m2-lang.c (m2_language_defn): Convert to...
5687 (m2_language_data): ...this.
5688 (class m2_language): New class.
5689 (m2_language_defn): New static global.
5690 * gdb/objc-lang.c (objc_language_defn): Convert to...
5691 (objc_language_data): ...this.
5692 (class objc_language): New class.
5693 (objc_language_defn): New static global.
5694 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5695 (opencl_language_data): ...this.
5696 (class opencl_language): New class.
5697 (opencl_language_defn): New static global.
5698 * gdb/p-lang.c (pascal_language_defn): Convert to...
5699 (pascal_language_data): ...this.
5700 (class pascal_language): New class.
5701 (pascal_language_defn): New static global.
5702 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5703 language pointer, update comment format.
5704 * gdb/rust-lang.c (rust_language_defn): Convert to...
5705 (rust_language_data): ...this.
5706 (class rust_language): New class.
5707 (rust_language_defn): New static global.
5708
1313c56e
AB
57092020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5710
5711 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5712 member variable.
5713 <m_stmt_at_address>: New member variable.
5714 (lnp_state_machine::record_line): Don't record some lines, update
5715 tracking of is_stmt at the same address.
5716 (lnp_state_machine::lnp_state_machine): Initialise new member
5717 variables.
5718
b7ed9f3d
ST
57192020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5720
5721 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5722 "-include gnu-nat-mig.h".
5723 * gnu-nat-mig.h: New file.
5724 * gnu-nat.c: Include "gnu-nat-mig.h".
5725 (exc_server, msg_reply_server, notify_server,
5726 process_reply_server): Remove declarations.
5727
14a8ad62
ST
57282020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5729
5730 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5731 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5732 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5733 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5734 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5735 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5736 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5737 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5738 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5739 to gnu_nat_target class.
5740 * gnu-nat.c: Likewise.
5741 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5742 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5743 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5744 object.
5745 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5746 instead of `gnu_target'.
5747
0af5e106
ST
57482020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5749
5750 * i386-gnu-tdep.c: Include "gdbcore.h"
5751 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5752 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5753 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5754 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5755 i386_gnu_sigcontext_addr): New functions
5756 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5757 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5758 tdep.
5759
078f2fc9
ST
57602020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5761
5762 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5763 before fork_inferior call. Avoid calling it if target_is_pushed returns
5764 true.
5765
53dff92c
ST
57662020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5767
5768 * gnu-nat.h (gnu_target): New variable declaration.
5769 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5770 gnu_target.
5771 * gnu-nat.c (gnu_target): New variable.
5772 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5773 add_thread_silent, and add_thread calls.
5774 (gnu_nat_target::create_inferior): Pass gnu_target to
5775 add_thread_silent, thread_change_ptid call.
5776 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5777 call.
5778
5a8b8627
ST
57792020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5780
5781 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5782 (gnu_nat_target::find_memory_regions): Remove unused
5783 `old_address' variable.
5784
366f550a
ST
57852020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5786
5787 * gnu-nat.c: Include "gdbarch.h".
5788
f14871bf
ST
57892020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5790
5791 * reply_mig_hack.awk (Error return): Cast function through
5792 void *, to bypass compiler function call check.
5793
c6887cfb
ST
57942020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5795
5796 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5797 $(srcdir)/reply_mig_hack.awk.
5798
6930bffe
ST
57992020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5800
5801 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5802
112c22ed
JG
58032020-05-30 Jonny Grant <jg@jguk.org>
5804
5805 * configure.ac (ACX_BUGURL): change bug URL to https.
5806
f68f85b5
PA
58072020-05-30 Pedro Alves <palves@redhat.com>
5808
5809 * cp-support.c (replace_typedefs_template): New.
5810 (replace_typedefs_qualified_name): Handle
5811 DEMANGLE_COMPONENT_TEMPLATE.
5812
976ca316
SM
58132020-05-29 Simon Marchi <simon.marchi@efficios.com>
5814
5815 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5816 dwarf2/index-cache.h, dwarf2/index-write.c,
5817 dwarf2/index-write.h, dwarf2/line-header.c,
5818 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5819 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5820 variables and fields from `dwarf2_per_objfile` to just
5821 `per_objfile` throughout.
5822
989ade05
SM
58232020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5824
5825 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5826 <push_dwarf_reg_entry_value>: Add comment.
5827
c47bae85
KB
58282020-05-28 Kevin Buettner <kevinb@redhat.com>
5829 Keith Seitz <keiths@redhat.com>
5830
5831 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5832 instead of PyEval_ReleaseLock.
5833 (class gdbpy_gil): Move to earlier in file.
5834 (finalize_python): Set gdb_python_initialized.
5835 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5836 when not initialized.
5837
44486dcf
SM
58382020-05-28 Simon Marchi <simon.marchi@efficios.com>
5839
5840 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5841 <push_dwarf_reg_entry_value>: Remove assert. Override
5842 per_objfile with caller_per_objfile.
5843
f030440d
TV
58442020-05-28 Tom de Vries <tdevries@suse.de>
5845
5846 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
5847 PR gold/15646 workaround to symbol kind "type".
5848
f0fbb768
TT
58492020-05-27 Tom Tromey <tromey@adacore.com>
5850
5851 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
5852
af0b2a3e
TT
58532020-05-27 Tom Tromey <tromey@adacore.com>
5854
5855 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5856 Use htab_find_with_hash.
5857 <add_abbrev>: Remove "abbrev_number" parameter.
5858 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
5859 "abbrev_number" parameter. Use htab_find_slot_with_hash.
5860 (hash_abbrev): Add comment.
5861 (abbrev_table::lookup_abbrev): Move to header file.
5862 (abbrev_table::read): Update.
5863
7d00ffec
TT
58642020-05-27 Tom Tromey <tromey@adacore.com>
5865
5866 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
5867 method.
5868 <canonical_name>: New member.
5869 <raw_name>: Rename from "name".
5870 (partial_die_info): Initialize canonical_name.
5871 (scan_partial_symbols): Check raw_name.
5872 (partial_die_parent_scope, partial_die_full_name)
5873 (add_partial_symbol, add_partial_subprogram)
5874 (add_partial_enumeration, load_partial_dies): Use "name" method.
5875 (partial_die_info::name): New method.
5876 (partial_die_info::read, guess_partial_die_structure_name)
5877 (partial_die_info::fixup): Update.
5878
697bba18
TT
58792020-05-27 Tom Tromey <tromey@adacore.com>
5880
5881 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
5882 <get_ref_die_offset>: Inline.
5883 <get_ref_die_offset_complaint>: New method.
5884 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
5885 (attribute::get_ref_die_offset_complaint): Rename from
5886 get_ref_die_offset. Just issue complaint.
5887
c17ace43
HD
58882020-05-27 Hannes Domani <ssbssa@yahoo.de>
5889
5890 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
5891
96445f0b
HD
58922020-05-27 Hannes Domani <ssbssa@yahoo.de>
5893
5894 * exec.c (exec_file_attach): Use errno value of first openp failure.
5895
ac637ec3
HD
58962020-05-27 Hannes Domani <ssbssa@yahoo.de>
5897
5898 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5899 Don't close thread handle.
5900
17ee85fc
TT
59012020-05-27 Tom Tromey <tom@tromey.com>
5902 Simon Marchi <simon.marchi@efficios.com>
5903
5904 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5905 shared_ptr.
5906 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5907 member.
5908 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5909 dwarf2_per_bfd_objfile_data_key>: New globals.
5910 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5911 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5912 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5913 shared.
5914 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5915 short-circuit when sharing.
5916 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5917 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5918
39b16f87
SM
59192020-05-27 Simon Marchi <simon.marchi@efficios.com>
5920
5921 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5922 to...
5923 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5924 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5925
fcf23d5b
SM
59262020-05-27 Simon Marchi <simon.marchi@efficios.com>
5927
5928 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5929 build_name_components, find_name_components_bounds>:
5930 Add per_objfile parameter.
5931 (struct mapped_index) <symbol_name_at>: Likewise.
5932 (struct mapped_debug_names): Remove constructor.
5933 <dwarf2_per_objfile>: Remove field.
5934 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5935 (mapped_index_base::find_name_components_bounds,
5936 mapped_index_base::build_name_components,
5937 dw2_expand_symtabs_matching_symbol): Likewise.
5938 (class mock_mapped_index) <symbol_name_at>: Likewise.
5939 (check_match): Likewise.
5940 (check_find_bounds_finds): Likewise.
5941 (test_mapped_index_find_name_component_bounds): Update.
5942 (CHECK_MATCH): Update.
5943 (dw2_expand_symtabs_matching): Update.
5944 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5945 per_objfile parameter.
5946 <find_vec_in_debug_names>: Likewise.
5947 <m_per_objfile>: New field.
5948 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5949 parameter.
5950 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5951 (dw2_debug_names_iterator::next): Update.
5952 (dw2_debug_names_lookup_symbol): Update.
5953 (dw2_debug_names_expand_symtabs_for_function): Update.
5954 (dw2_debug_names_map_matching_symbols): Update.
5955 (dw2_debug_names_expand_symtabs_matching): Update.
5956 (dwarf2_read_debug_names): Update.
5957
7188ed02
SM
59582020-05-27 Simon Marchi <simon.marchi@efficios.com>
5959
5960 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5961 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5962 move to dwarf2_per_objfile.
5963 <read_in_chain>: Remove.
5964 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5965 remove_all_cus, age_comp_units>: New methods.
5966 <m_dwarf2_cus>: New member.
5967 (struct dwarf2_per_cu_data) <cu>: Remove.
5968 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5969 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5970 moved to methods of dwarf2_per_objfile.
5971 (dwarf2_clear_marks): Remove.
5972 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5973 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5974 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5975 (dwarf2_per_objfile::remove_all_cus): New.
5976 (class free_cached_comp_units) <~free_cached_comp_units>:
5977 Update.
5978 (load_cu): Update.
5979 (dw2_do_instantiate_symtab): Adjust.
5980 (fill_in_sig_entry_from_dwo_entry): Adjust.
5981 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5982 (cutu_reader::cutu_reader): Likewise.
5983 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5984 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5985 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5986 and dwarf2_per_objfile::age_comp_units.
5987 (load_partial_comp_unit): Update.
5988 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5989 (process_queue): Likewise.
5990 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5991 backlink.
5992 (dwarf2_read_addr_index): Likewise.
5993 (follow_die_offset): Likewise.
5994 (dwarf2_fetch_die_loc_sect_off): Likewise.
5995 (dwarf2_fetch_constant_bytes): Likewise.
5996 (dwarf2_fetch_die_type_sect_off): Likewise.
5997 (follow_die_sig_1): Likewise.
5998 (load_full_type_unit): Likewise.
5999 (read_signatured_type): Likewise.
6000 (dwarf2_cu::dwarf2_cu): Don't set cu field.
6001 (dwarf2_cu::~dwarf2_cu): Remove.
6002 (dwarf2_per_objfile::get_cu): New.
6003 (dwarf2_per_objfile::set_cu): New.
6004 (age_cached_comp_units): Rename to...
6005 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
6006 to std::unordered_map.
6007 (free_one_cached_comp_unit): Rename to...
6008 (dwarf2_per_objfile::remove_cu): ... this. Adjust
6009 to std::unordered_map.
6010 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
6011 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
6012 a dwarf2_per_objfile in data.
6013 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
6014 (dwarf2_clear_marks): Remove.
6015
2e671100
SM
60162020-05-27 Simon Marchi <simon.marchi@efficios.com>
6017
6018 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
6019 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
6020 (init_tu_and_read_dwo_dies): Likewise.
6021 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
6022 (cutu_reader::cutu_reader): Likewise.
6023 (load_partial_comp_unit): Likewise.
6024 (process_psymtab_comp_unit): Update.
6025 (build_type_psymtabs_1): Update.
6026 (process_skeletonless_type_unit): Update.
6027 (load_full_comp_unit): Update.
6028 (find_partial_die): Update.
6029 (dwarf2_read_addr_index): Update.
6030 (read_signatured_type): Update.
6031
2e6a9f79
SM
60322020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6033
6034 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
6035 m_header_read_in>: New fields.
6036 <get_header>: New method.
6037 * dwarf2/read.c (per_cu_header_read_in): Remove.
6038 (dwarf2_per_cu_data::get_header): New.
6039 (dwarf2_per_cu_data::addr_size): Update.
6040 (dwarf2_per_cu_data::offset_size): Update.
6041 (dwarf2_per_cu_data::ref_addr_size): Update.
6042
1b555f17
SM
60432020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6044
6045 * dwarf2/read.c (load_cu): Return dwarf2_cu.
6046 (dw2_do_instantiate_symtab): Update.
6047 (queue_and_load_all_dwo_tus): Change parameter from
6048 dwarf2_per_cu_data to dwarf2_cu.
6049 (dwarf2_fetch_die_loc_sect_off): Update.
6050 (dwarf2_fetch_constant_bytes): Update.
6051 (dwarf2_fetch_die_type_sect_off): Update.
6052
8fc0b21d
SM
60532020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6054
6055 * dwarf2/read.c (process_full_comp_unit,
6056 process_full_type_unit): Remove per_cu, per_objfile paramters.
6057 Add dwarf2_cu parameter.
6058 (process_queue): Update.
6059
168c9250
SM
60602020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6061
6062 * dwarf2/read.c (create_cu_from_index_list): Replace
6063 dwarf2_per_objfile parameter with dwarf2_per_bfd.
6064 (create_cus_from_index_list): Likewise.
6065 (create_cus_from_index): Likewise.
6066 (create_signatured_type_table_from_index): Likewise.
6067 (create_cus_from_debug_names_list): Likewise.
6068 (create_cus_from_debug_names): Likewise.
6069 (dwarf2_read_gdb_index): Update.
6070 (dwarf2_read_debug_names): Update.
6071
e286671b
TT
60722020-05-27 Tom Tromey <tom@tromey.com>
6073 Simon Marchi <simon.marchi@efficios.com>
6074
6075 * dwarf2/read.h (struct dwarf2_per_objfile)
6076 <get_type_for_signatured_type, set_type_for_signatured_type>:
6077 New methods.
6078 <m_type_map>: New member.
6079 (struct signatured_type) <type>: Remove.
6080 * dwarf2/read.c
6081 (dwarf2_per_objfile::get_type_for_signatured_type,
6082 dwarf2_per_objfile::set_type_for_signatured_type): New.
6083 (get_signatured_type): Use new methods.
6084
8adb8487
TT
60852020-05-27 Tom Tromey <tom@tromey.com>
6086 Simon Marchi <simon.marchi@efficios.com>
6087
6088 * dwarf2/read.h (struct type_unit_group_unshareable): New.
6089 (struct dwarf2_per_objfile) <type_units>: New member.
6090 <get_type_unit_group_unshareable>: New method.
6091 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
6092 num_symtabs, symtabs>: Remove; move to
6093 type_unit_group_unshareable.
6094 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
6095 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
6096 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
6097
127bbf4b
SM
60982020-05-27 Simon Marchi <simon.marchi@efficios.com>
6099
6100 * dwarf2/read.h (struct dwarf2_per_cu_data):
6101 <dwarf2_per_objfile>: Remove.
6102 * dwarf2/read.c (create_cu_from_index_list): Don't assign
6103 dwarf2_per_objfile.
6104 (create_signatured_type_table_from_index): Likewise.
6105 (create_signatured_type_table_from_debug_names): Likewise.
6106 (create_debug_type_hash_table): Likewise.
6107 (fill_in_sig_entry_from_dwo_entry): Likewise.
6108 (create_type_unit_group): Likewise.
6109 (read_comp_units_from_section): Likewise.
6110 (create_cus_hash_table): Likewise.
6111
f6e649dd
SM
61122020-05-27 Simon Marchi <simon.marchi@efficios.com>
6113
6114 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
6115 dwarf2_per_cu_data::dwarf2_per_objfile.
6116 (compute_compunit_symtab_includes): Likewise.
6117 (dwarf2_cu::start_symtab): Likewise.
6118
aa66c379
SM
61192020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6120
6121 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
6122 parameter.
6123 * dwarf2/read.c (get_die_type_at_offset): Likewise.
6124 (read_namespace_alias): Update.
6125 (lookup_die_type): Update.
6126 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
6127 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
6128 Update.
6129 (disassemble_dwarf_expression): Update.
6130
120ce1b5
SM
61312020-05-27 Simon Marchi <simon.marchi@efficios.com>
6132
6133 * dwarf2/read.h (struct dwarf2_queue_item): Add
6134 dwarf2_per_objfile parameter, assign new parameter.
6135 <per_objfile>: New field.
6136 * dwarf2/read.c (free_one_cached_comp_unit): Add
6137 dwarf2_per_objfile parameter.
6138 (queue_comp_unit): Likewise.
6139 (dw2_do_instantiate_symtab): Update.
6140 (process_psymtab_comp_unit): Update.
6141 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
6142 (process_imported_unit_die): Update.
6143 (queue_and_load_dwo_tu): Update.
6144 (follow_die_offset): Update.
6145 (follow_die_sig_1): Update.
6146
9f47c707
SM
61472020-05-27 Simon Marchi <simon.marchi@efficios.com>
6148
6149 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
6150 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
6151 (read_call_site_scope): Assign per_objfile.
6152 (dwarf2_per_cu_data::objfile): Remove.
6153 * gdbtypes.h (struct call_site) <per_objfile>: New member.
6154 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
6155 dwarf2_per_objfile parameter.
6156 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
6157 dwarf2_per_objfile parameter.
6158 (dwarf_expr_reg_to_entry_parameter): Add output
6159 dwarf2_per_objfile parameter.
6160 (locexpr_get_frame_base): Update.
6161 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
6162 <push_dwarf_reg_entry_value>: Update.
6163 <call_site_to_target_addr>: Update.
6164 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
6165 parameter.
6166 (value_of_dwarf_reg_entry): Update.
6167 (rw_pieced_value): Update.
6168 (indirect_synthetic_pointer): Update.
6169 (dwarf2_evaluate_property): Update.
6170 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
6171 parameter.
6172 (locexpr_read_variable): Update.
6173 (locexpr_get_symbol_read_needs): Update.
6174 (loclist_read_variable): Update.
6175
14095eb3
SM
61762020-05-27 Simon Marchi <simon.marchi@efficios.com>
6177
6178 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6179 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6180 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6181 parameter.
6182 * dwarf2/read.c (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/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6187 sect_variable_value): Add dwarf2_per_objfile parameter.
6188 (class dwarf_evaluate_loc_desc) <dwarf_call,
6189 dwarf_variable_value>: Update.
6190 (fetch_const_value_from_synthetic_pointer): Add
6191 dwarf2_per_objfile parameter.
6192 (fetch_const_value_from_synthetic_pointer): Update.
6193 (coerced_pieced_ref): Update.
6194 (class symbol_needs_eval_context) <dwarf_call,
6195 dwarf_variable_value>: Update.
6196 (dwarf2_compile_expr_to_ax): Update.
6197
3c3cd3d4
SM
61982020-05-27 Simon Marchi <simon.marchi@efficios.com>
6199
6200 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6201 parameter.
6202 (dwarf2_evaluate_loc_desc_full): Update.
6203
82ca3f51
SM
62042020-05-27 Simon Marchi <simon.marchi@efficios.com>
6205
6206 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6207 parameter.
6208 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6209 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6210 dwarf2_per_objfile parameter.
6211 (decode_debug_loc_dwo_addresses): Likewise.
6212 (dwarf2_find_location_expression): Update.
6213 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6214 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6215 parameter.
6216 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6217 parameter.
6218 (locexpr_describe_location_1): Likewise.
6219 (locexpr_describe_location): Update.
6220
4b167ea1
SM
62212020-05-27 Simon Marchi <simon.marchi@efficios.com>
6222
6223 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6224 Remove.
6225 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6226 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6227 (dwarf2_compile_property_to_c): Update.
6228 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6229 use text offset from objfile.
6230 (locexpr_tracepoint_var_ref): Update.
6231 (locexpr_generate_c_location): Update.
6232 (loclist_describe_location): Update.
6233 (loclist_tracepoint_var_ref): Update.
6234 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6235 dwarf2_per_objfile parameter.
6236 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6237 use text offset from objfile.
6238 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6239
89b07335
SM
62402020-05-27 Simon Marchi <simon.marchi@efficios.com>
6241
6242 * dwarf2/expr.h (struct dwarf_expr_context)
6243 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6244 <offset>: Remove.
6245 <per_objfile>: New member.
6246 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6247 dwarf2_per_objfile parameter. Don't set offset, set
6248 per_objfile.
6249 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6250 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6251 a dwarf2_per_objfile object instead of an offset.
6252 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6253 constructor.
6254 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6255 to dwarf2_expr_executor constructor. Don't set offset.
6256 (dwarf2_fetch_cfa_info): Update.
6257 (struct dwarf2_frame_cache) <text_offset>: Remove.
6258 <per_objfile>: New field.
6259 (dwarf2_frame_cache): Update.
6260 (dwarf2_frame_prev_register): Update.
6261 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6262 <dwarf_evaluate_loc_desc>: Add constructor.
6263 (dwarf2_evaluate_loc_desc_full): Update.
6264 (dwarf2_locexpr_baton_eval): Update.
6265 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6266 Add constructor.
6267 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6268
293e7e51
SM
62692020-05-27 Simon Marchi <simon.marchi@efficios.com>
6270
6271 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6272 addr_sized_int_type>: Move to dwarf2_cu.
6273 <int_type>: Move to dwarf2_per_objfile.
6274 (struct dwarf2_per_objfile) <int_type>: Move here.
6275 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6276 addr_sized_int_type>: Move here.
6277 (read_func_scope): Update.
6278 (read_array_type): Update.
6279 (read_tag_string_type): Update.
6280 (attr_to_dynamic_prop): Update.
6281 (dwarf2_per_cu_data::int_type): Rename to...
6282 (dwarf2_per_objfile::int_type): ... this.
6283 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6284 (dwarf2_cu::addr_sized_int_type): ... this.
6285 (read_subrange_type): Update.
6286 (dwarf2_per_cu_data::addr_type): Rename to...
6287 (dwarf2_cu::addr_type): ... this.
6288 (set_die_type): Update.
6289
64874a40
SM
62902020-05-27 Simon Marchi <simon.marchi@efficios.com>
6291
6292 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6293 data through per_cu->cu.
6294
4ab09049
SM
62952020-05-27 Simon Marchi <simon.marchi@efficios.com>
6296
6297 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6298 dwarf2_per_cu_data parameter fo dwarf2_cu.
6299 (lookup_dwo_type_unit): Likewise.
6300 (read_cutu_die_from_dwo): Likewise.
6301 (lookup_dwo_unit): Likewise.
6302 (open_and_init_dwo_file): Likewise.
6303 (lookup_dwo_cutu): Likewise.
6304 (lookup_dwo_comp_unit): Likewise.
6305 (lookup_dwo_type_unit): Likewise.
6306 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6307 (cutu_reader::cutu_reader): Update.
6308
47b14e86
SM
63092020-05-27 Simon Marchi <simon.marchi@efficios.com>
6310
6311 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6312 parameter.
6313 (process_full_type_unit): Likewise.
6314 (process_queue): Update.
6315
43182c09
SM
63162020-05-27 Simon Marchi <simon.marchi@efficios.com>
6317
6318 * dwarf2/read.c (recursively_compute_inclusions): Add
6319 dwarf2_per_objfile parameter.
6320 (compute_compunit_symtab_includes): Likewise.
6321 (process_cu_includes): Update.
6322
7aa104c4
SM
63232020-05-27 Simon Marchi <simon.marchi@efficios.com>
6324
6325 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6326 parameter.
6327 (create_type_unit_group): Update.
6328 (process_psymtab_comp_unit_reader): Update.
6329 (build_type_psymtabs_reader): Update.
6330
e3beb21d
SM
63312020-05-27 Simon Marchi <simon.marchi@efficios.com>
6332
6333 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6334 object through m_this_cu->cu.
6335
d460f660
SM
63362020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6337
6338 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6339 the info parameter.
6340 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6341
ab432490
SM
63422020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6343
6344 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6345 per_objfile parameter.
6346 (load_full_type_unit): Add per_objfile parameter.
6347 (read_signatured_type): Likewise.
6348 (load_full_comp_unit): Likewise.
6349 (load_cu): Likewise.
6350 (dw2_do_instantiate_symtab): Likewise.
6351 (dw2_get_file_names): Likewise.
6352 (dw2_map_symtabs_matching_filename): Update.
6353 (dw_expand_symtabs_matching_file_matcher): Update.
6354 (dw2_map_symbol_filenames): Update.
6355 (process_psymtab_comp_unit): Add per_objfile parameter.
6356 (build_type_psymtabs_1): Update.
6357 (process_skeletonless_type_unit): Update.
6358 (dwarf2_build_psymtabs_hard): Update.
6359 (load_partial_comp_unit): Add per_objfile parameter.
6360 (scan_partial_symbols): Update.
6361 (load_full_comp_unit): Add per_objfile parameter.
6362 (process_imported_unit_die): Update.
6363 (create_cus_hash_table): Update.
6364 (find_partial_die): Update.
6365 (dwarf2_read_addr_index): Update.
6366 (follow_die_offset): Update.
6367 (dwarf2_fetch_die_loc_sect_off): Update.
6368 (dwarf2_fetch_constant_bytes): Update.
6369 (dwarf2_fetch_die_type_sect_off): Update.
6370 (follow_die_sig_1): Update.
6371 (load_full_type_unit): Add per_objfile parameter.
6372 (read_signatured_type): Likewise.
6373
313bad1b
SM
63742020-05-27 Simon Marchi <simon.marchi@efficios.com>
6375
6376 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6377 of objfile_name.
6378
c3699833
SM
63792020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6380
6381 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6382 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6383 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6384 field.
6385 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6386 (create_cus_from_index): Update.
6387 (dwarf2_read_gdb_index): Update.
6388 (create_cus_from_debug_names): Update.
6389 (dwarf2_read_debug_names): Update.
6390 (get_abbrev_section_for_cu): Update.
6391 (create_all_comp_units): Update.
6392 (read_attribute_value): Update.
6393 (get_debug_line_section): Update.
6394 * dwarf2/index-cache.c (index_cache::store): Update.
6395 * dwarf2/index-write.c (save_gdb_index_command): Update.
6396 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6397
1859c670
SM
63982020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6399
6400 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6401 member.
6402 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6403 dwarf2_per_cu_data::per_bfd.
6404 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6405 (create_type_unit_group): Likewise.
6406 (queue_comp_unit): Remove reference to
6407 per_cu->dwarf2_per_objfile.
6408 (maybe_queue_comp_unit): Likewise.
6409 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6410 (create_cus_hash_table): Assign new field.
6411
5e22e966
SM
64122020-05-27 Simon Marchi <simon.marchi@efficios.com>
6413
6414 * dwarf2/read.c: Replace
6415 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6416 dwarf2_cu->per_objfile throughout.
6417
97a1449a
SM
64182020-05-27 Simon Marchi <simon.marchi@efficios.com>
6419
6420 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6421 parameter, don't use per_cu->dwarf2_per_objfile.
6422 (dw2_instantiate_symtab): Likewise.
6423 (dw2_find_last_source_symtab): Update.
6424 (dw2_map_expand_apply): Update.
6425 (dw2_lookup_symbol): Update.
6426 (dw2_expand_symtabs_for_function): Update.
6427 (dw2_expand_all_symtabs): Update.
6428 (dw2_expand_symtabs_with_fullname): Update.
6429 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6430 don't use per_cu->dwarf2_per_objfile.
6431 (dw2_expand_marked_cus): Update.
6432 (dw2_find_pc_sect_compunit_symtab): Update.
6433 (dw2_debug_names_lookup_symbol): Update.
6434 (dw2_debug_names_expand_symtabs_for_function): Update.
6435 (dw2_debug_names_map_matching_symbols): Update.
6436 (dwarf2_psymtab::expand_psymtab): Update.
6437
9e021579
SM
64382020-05-27 Simon Marchi <simon.marchi@efficios.com>
6439
6440 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6441 <per_objfile>: New member.
6442 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6443 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6444 call to dwarf2_cu.
6445 (cutu_reader::cutu_reader): Update.
6446 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6447
ae090bdb
SM
64482020-05-27 Simon Marchi <simon.marchi@efficios.com>
6449
6450 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6451 struct dwarf2_per_objfile.
6452 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6453 dwarf2_per_bfd.
6454 * dwarf2/read.c (set_die_type): Update.
6455 (get_die_type_at_offset): Update.
6456
af758d11
SM
64572020-05-27 Tom Tromey <tom@tromey.com>
6458 Simon Marchi <simon.marchi@efficios.com>
6459
6460 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6461 method.
6462 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6463 get_symtab, set_symtab>: New methods.
6464 <m_symtabs>: New field.
6465 (struct dwarf2_psymtab): Derive from partial_symtab.
6466 <readin_p, get_compunit_symtab>: Declare methods.
6467 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6468 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6469 New methods.
6470 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6471 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6472 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6473 (dw2_symtab_iter_next, dw2_print_stats)
6474 (dw2_expand_symtabs_with_fullname)
6475 (dw2_expand_symtabs_matching_one)
6476 (dw_expand_symtabs_matching_file_matcher)
6477 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6478 (dw2_debug_names_iterator::next)
6479 (dw2_debug_names_map_matching_symbols)
6480 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6481 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6482 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6483 New methods.
6484 (get_compunit_symtab, process_full_comp_unit)
6485 (process_full_type_unit): Update.
6486 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6487
5989a64e
SM
64882020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6489
6490 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6491 then introduce a new dwarf2_per_objfile type.
6492 <read_line_string>: Move to the new dwarf2_per_objfile type.
6493 <objfile>: Likewise.
6494 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6495 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6496 dwarf2_per_objfile->per_bfd.
6497 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6498 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6499 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6500 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6501 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6502 (dwarf2_per_objfile::locate_sections): Rename to...
6503 (dwarf2_per_bfd::locate_sections): ... this.
6504 (dwarf2_per_objfile::get_cutu): Rename to...
6505 (dwarf2_per_bfd::get_cutu): ... this.
6506 (dwarf2_per_objfile::get_cu): Rename to...
6507 (dwarf2_per_bfd::get_cu): ... this.
6508 (dwarf2_per_objfile::get_tu): Rename to...
6509 (dwarf2_per_bfd::get_tu): ... this.
6510 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6511 (dwarf2_per_bfd::allocate_per_cu): ... this.
6512 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6513 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6514 (get_gdb_index_contents_ftype): Change parameter from
6515 dwarf2_per_objfile to dwarf2_per_bfd.
6516 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6517 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6518
a50264ba
TT
65192020-05-27 Tom Tromey <tom@tromey.com>
6520 Simon Marchi <simon.marchi@efficios.com>
6521
6522 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6523 (allocate_piece_closure): Set "per_objfile" member.
6524 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6525 (locexpr_describe_location, loclist_describe_location): Use new
6526 member.
6527 * dwarf2/read.c (read_call_site_scope)
6528 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6529 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6530 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6531 handle_data_member_location): Set per_objfile member.
6532 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6533 member.
6534 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6535
d3473f0c
TT
65362020-05-27 Tom Tromey <tom@tromey.com>
6537
6538 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6539 allocate_signatured_type>: Declare new methods.
6540 <m_num_psymtabs>: New member.
6541 (struct dwarf2_per_cu_data) <index>: New member.
6542 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6543 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6544 (create_cu_from_index_list): Use allocate_per_cu.
6545 (create_signatured_type_table_from_index)
6546 (create_signatured_type_table_from_debug_names)
6547 (create_debug_type_hash_table, add_type_unit)
6548 (read_comp_units_from_section): Use allocate_signatured_type.
6549
5717c425
TT
65502020-05-27 Tom Tromey <tom@tromey.com>
6551
6552 * psymtab.c (partial_map_expand_apply)
6553 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6554 (psym_lookup_global_symbol_language)
6555 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6556 (psym_print_stats, psym_expand_symtabs_for_function)
6557 (psym_map_symbol_filenames, psym_map_matching_symbols)
6558 (psym_expand_symtabs_matching)
6559 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6560 (maintenance_check_psymtabs): Update.
6561 * psympriv.h (struct partial_symtab) <readin_p,
6562 get_compunit_symtab>: Add objfile parameter.
6563 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6564 Likewise.
6565 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6566 get_compunit_symtab>: Likewise.
6567 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6568
45940949
TT
65692020-05-27 Tom Tromey <tom@tromey.com>
6570
6571 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6572 member.
6573 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6574 (create_cu_from_index_list)
6575 (create_signatured_type_table_from_index)
6576 (create_signatured_type_table_from_debug_names)
6577 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6578 (dwarf2_create_include_psymtab)
6579 (create_debug_type_hash_table, add_type_unit)
6580 (create_type_unit_group, read_comp_units_from_section)
6581 (dwarf2_compute_name, create_cus_hash_table)
6582 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6583 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6584 obstack.
6585 (dw2_get_real_path): Likewise. Change argument to
6586 dwarf2_per_objfile.
6587
f8c6d152
LM
65882020-05-27 Luis Machado <luis.machado@linaro.org>
6589
6590 PR tdep/26000
6591 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6592 for ldrd (immediate).
6593
e98d2e6d
PW
65942020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6595
6596 * command.h: Add comment giving the name of class_tui.
6597 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6598 create the fake command for the help for class_tui.
6599
53a47a3e
TT
66002020-05-26 Tom Tromey <tromey@adacore.com>
6601
6602 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6603 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6604 (val_atr): New function.
6605 (value_val_atr): Use it.
6606 * ada-valprint.c (print_optional_low_bound): Change low bound
6607 handling for enums.
6608 (val_print_packed_array_elements): Don't call discrete_position.
6609 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6610 discrete_position for enum types.
6611 * language.c (default_print_array_index): Change type.
6612 * language.h (struct language_defn) <la_print_array_index>: Add
6613 index_type parameter, change type of index_value.
6614 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6615 (default_print_array_index): Update.
6616 * valprint.c (maybe_print_array_index): Don't call
6617 value_from_longest. Update.
6618 (value_print_array_elements): Don't call discrete_position.
6619
0bc2354b
TT
66202020-05-26 Tom Tromey <tromey@adacore.com>
6621
6622 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6623 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6624
1218a4bf
CDA
66252020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6626
6627 PR gdb/13519
6628 * avr-tdep.c (avr_integer_to_address): Return data or code
6629 address accordingly to the second 'type' argument of the
6630 function.
6631
92651b1d
MW
66322020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6633
6634 * infcmd.c, inferior.h: (construct_inferior_arguments):
6635 Moved function from here to gdbsupport/common-inferior.{h,cc}
6636
0a4f5f8c
TT
66372020-05-23 Tom Tromey <tom@tromey.com>
6638
6639 Revert commit eca1f90c:
6640 * NEWS: Remove entry for completion styling.
6641 * completer.c (_rl_completion_prefix_display_length): Move
6642 declaration later.
6643 (gdb_fnprint): Revert.
6644 (gdb_display_match_list_1): Likewise.
6645 * cli/cli-style.c (completion_prefix_style)
6646 (completion_difference_style, completion_suffix_style): Remove.
6647 (_initialize_cli_style): Revert.
6648 * cli/cli-style.h (completion_prefix_style)
6649 (completion_difference_style, completion_suffix_style): Don't
6650 declare.
6651
e08bd6c5
PA
66522020-05-24 Pedro Alves <palves@redhat.com>
6653
6654 * symtab.c (completion_list_add_name): Return boolean indication
6655 of whether the symbol matched.
6656 (completion_list_add_symbol): Don't try to remove C++ aliases if
6657 the symbol didn't match in the first place.
6658 * symtab.h (completion_list_add_name): Return bool.
6659
ceacbf6e
SM
66602020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6661
6662 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6663 type::field.
6664
26f16254
JB
66652020-05-23 Joel Brobecker <brobecker@adacore.com>
6666
6667 GDB 9.2 released.
6668
eca1f90c
TT
66692020-05-23 Tom Tromey <tom@tromey.com>
6670
6671 * NEWS: Add entry for completion styling.
6672 * completer.c (_rl_completion_prefix_display_length): Move
6673 declaration earlier.
6674 (gdb_fnprint): Use completion_style.
6675 (gdb_display_match_list_1): Likewise.
6676 * cli/cli-style.c (completion_prefix_style)
6677 (completion_difference_style, completion_suffix_style): New
6678 globals.
6679 (_initialize_cli_style): Register new globals.
6680 * cli/cli-style.h (completion_prefix_style)
6681 (completion_difference_style, completion_suffix_style): Declare.
6682
51e2cfa2
PA
66832020-05-23 Pedro Alves <palves@redhat.com>
6684
6685 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6686 (parse_escape): Use ISDIGIT instead of isdigit.
6687 (puts_debug): Use gdb_isprint instead of isprint.
6688 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6689 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6690 ISSPACE instead of isspace.
6691 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6692 instead of isspace.
6693 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6694 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6695 instead of isxdigit and ISDIGIT instead of isdigit.
6696
80fc5e77
SM
66972020-05-22 Simon Marchi <simon.marchi@efficios.com>
6698
6699 * gdbtypes.h (struct type) <field>: New method.
6700 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6701 or type::field.
6702
3cabb6b0
SM
67032020-05-22 Simon Marchi <simon.marchi@efficios.com>
6704
6705 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6706 (TYPE_FIELDS): Use type::fields. Change all call sites that
6707 modify the propery to use type::set_fields instead.
6708
1f704f76
SM
67092020-05-22 Simon Marchi <simon.marchi@efficios.com>
6710
6711 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6712 type::num_fields instead.
6713
5e33d5f4
SM
67142020-05-22 Simon Marchi <simon.marchi@efficios.com>
6715
6716 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6717 methods.
6718 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6719 that modify the number of fields to use type::set_num_fields
6720 instead.
6721
9392ebb3
TT
67222020-05-22 Tom Tromey <tromey@adacore.com>
6723
6724 * compile/compile-object-load.h (munmap_list_free): Don't
6725 declare.
6726
7c13f4e8
AB
67272020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6728
6729 * annotate.c (annotate_source_line): Update return type, add call
6730 to update current symtab and line.
6731 * annotate.h (annotate_source_line): Update return type, and
6732 extend header comment.
6733 * source.c (info_line_command): Check annotation_level before
6734 calling annotate_source_line.
6735 * stack.c (print_frame_info): If calling annotate_source_line
6736 returns true, then don't print any other source line information.
6737
aa370940
SM
67382020-05-21 Simon Marchi <simon.marchi@efficios.com>
6739
6740 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6741
84d53fa9
SM
67422020-05-21 Simon Marchi <simon.marchi@efficios.com>
6743
6744 * coffread.c (patch_type): Remove NULL check before xfree.
6745 * corefile.c (set_gnutarget): Likewise.
6746 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6747 * exec.c (build_section_table): Likewise.
6748 * remote.c (remote_target::pass_signals): Likewise.
6749 * utils.c (n_spaces): Likewise.
6750 * cli/cli-script.c (document_command): Likewise.
6751 * i386-windows-tdep.c (core_process_module_section): Likewise.
6752 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6753
9d428aae
SM
67542020-05-20 Simon Marchi <simon.marchi@efficios.com>
6755
6756 * symfile.c (reread_symbols): Clear objfile's section_offsets
6757 vector and section indices, re-compute them by calling
6758 sym_offsets.
6759
250106a7
TT
67602020-05-20 Tom Tromey <tromey@adacore.com>
6761
6762 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 6763 (desc_one_bound, desc_index_type): Compute field name.
250106a7 6764
9a0bacfb
TV
67652020-05-20 Tom de Vries <tdevries@suse.de>
6766
6767 PR symtab/25833
6768 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6769
7b958a48
AM
67702020-05-20 Alan Modra <amodra@gmail.com>
6771
6772 PR 25993
6773 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6774 bfd_set_filename.
6775 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6776 passed to bfd_set_filename.
6777 * symfile-mem.c (add_vsyscall_page): Likewise for string
6778 passed to symbol_file_add_from_memory.
6779 (symbol_file_add_from_memory): Make name param a const char* and
6780 don't strdup.
6781
c7e97679
AM
67822020-05-20 Alan Modra <amodra@gmail.com>
6783
6784 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6785 rather than accessing bfd->filename directly.
6786 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6787 and use bfd_section_name.
6788 * dwarf2/frame.c (decode_frame_entry): Likewise.
6789 * exec.c (exec_set_section_address): Likewise.
6790 * solib-aix.c (solib_aix_bfd_open): Likewise.
6791 * stap-probe.c (get_stap_base_address): Likewise.
6792 * symfile.c (reread_symbols): Likewise.
6793
563c591b
TT
67942020-05-19 Tom Tromey <tromey@adacore.com>
6795
6796 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6797
f408d82c
SM
67982020-05-19 Simon Marchi <simon.marchi@efficios.com>
6799
6800 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6801
98c59b52
PA
68022020-05-19 Pedro Alves <palves@redhat.com>
6803
6804 * NEWS (set exec-file-mismatch): Adjust entry.
6805 * exec.c: Include "build-id.h".
6806 (validate_exec_file): Try to match build IDs instead of filenames.
6807 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6808 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6809 and pass down 'warn_if_slow'.
6810 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6811 gdb_bfd_open_closure to pass it down.
6812 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6813
4111f652
PA
68142020-05-19 Pedro Alves <palves@redhat.com>
6815
6816 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6817 * target.c (target_fileio_open_1): Rename to target_fileio_open
6818 and make extern. Use bool.
6819 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6820 (target_fileio_read_alloc_1): Adjust.
6821 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6822 (target_fileio_open_warn_if_slow): Delete declaration.
6823
ad80db5b
PA
68242020-05-19 Pedro Alves <palves@redhat.com>
6825
6826 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6827 Adjust all callers.
6828
1d6ce4d3
YS
68292020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6830
6831 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6832 whether disp is negative.
6833
9005fbbb
SM
68342020-05-19 Simon Marchi <simon.marchi@efficios.com>
6835
6836 * symfile.h (struct symfile_segment_data)
6837 <~symfile_segment_data>: Remove.
6838 <segment_info>: Change to std::vector.
6839 * symfile.c (default_symfile_segments): Update.
6840 * elfread.c (elf_symfile_segments): Update.
6841
68b888ff
SM
68422020-05-19 Simon Marchi <simon.marchi@efficios.com>
6843
6844 * symfile.h (struct symfile_segment_data) <struct segment>: New.
6845 <segments>: New.
6846 <segment_bases, segment_sizes>: Remove.
6847 * symfile.c (default_symfile_segments): Update.
6848 * elfread.c (elf_symfile_segments): Update.
6849 * remote.c (remote_target::get_offsets): Update.
6850 * solib-target.c (solib_target_relocate_section_addresses):
6851 Update.
6852
62982abd
SM
68532020-05-19 Simon Marchi <simon.marchi@efficios.com>
6854
6855 * symfile.h (struct symfile_segment_data): Initialize fields.
6856 <~symfile_segment_data>: Add.
6857 (symfile_segment_data_up): New.
6858 (struct sym_fns) <sym_segments>: Return a
6859 symfile_segment_data_up.
6860 (default_symfile_segments): Return a symfile_segment_data_up.
6861 (free_symfile_segment_data): Remove.
6862 (get_symfile_segment_data): Return a symfile_segment_data_up.
6863 * symfile.c (default_symfile_segments): Likewise.
6864 (get_symfile_segment_data): Likewise.
6865 (free_symfile_segment_data): Remove.
6866 (symfile_find_segment_sections): Update.
6867 * elfread.c (elf_symfile_segments): Return a
6868 symfile_segment_data_up.
6869 * remote.c (remote_target::get_offsets): Update.
6870 * solib-target.c (solib_target_relocate_section_addresses):
6871 Update.
6872 * symfile-debug.c (debug_sym_segments): Return a
6873 symfile_segment_data_up.
6874
7f204339
RO
68752020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6876
e52a0f1b
RO
6877 PR build/25981
6878 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
6879 Hardcode register numbers.
6880
7f204339
RO
6881 PR build/25981
6882 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
6883 procfs_find_LDT_entry): Remove.
6884 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
6885 procfs_find_LDT_entry): Remove.
6886 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
6887 Remove.
6888
7f32a4d5
PA
68892020-05-17 Pedro Alves <palves@redhat.com>
6890 Andrew Burgess <andrew.burgess@embecosm.com>
6891 Keno Fischer <keno@juliacomputing.com>
6892
6893 PR gdb/25741
6894 * breakpoint.c (build_target_condition_list): Update comments.
6895 (build_target_command_list): Update comments and skip matching
6896 locations.
6897 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
6898 a separate function. Simplify "set breakpoint auto-hw off"
6899 handling.
6900 (insert_breakpoints): Update comment.
6901 (tracepoint_locations_match): New parameter. For breakpoints,
6902 compare location types too, if the caller wants to.
6903 (handle_automatic_hardware_breakpoints): New functions.
6904 (bp_location_is_less_than): Also sort by location type and
6905 hardware breakpoint length.
6906 (update_global_location_list): Handle "set breakpoint auto-hw on"
6907 here.
6908 (update_breakpoint_locations): Ask breakpoint_locations_match to
6909 ignore location types.
6910
7d93a1e0
SM
69112020-05-16 Simon Marchi <simon.marchi@efficios.com>
6912
6913 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6914 type::name instead.
6915
d0e39ea2
SM
69162020-05-16 Simon Marchi <simon.marchi@efficios.com>
6917
6918 * gdbtypes.h (struct type) <name, set_name>: New methods.
6919 (TYPE_CODE): Use type::name. Change all call sites used to set
6920 the name to use type::set_name instead.
6921
2dab0c7b
TT
69222020-05-16 Tom Tromey <tom@tromey.com>
6923
6924 * top.c (quit_force): Update.
6925 * infrun.c (handle_no_resumed): Update.
6926 * top.h (all_uis): New function.
6927 (ALL_UIS): Remove.
6928
59f7bd8d
SM
69292020-05-16 Simon Marchi <simon.marchi@efficios.com>
6930
6931 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6932
9bf058f0
PA
69332020-05-16 Pedro Alves <palves@redhat.com>
6934
6935 * ia64-linux-nat.c
6936 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6937 Declare method.
6938 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6939
8f86ae1a
SM
69402020-05-15 Simon Marchi <simon.marchi@efficios.com>
6941
6942 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6943 (sparc64_adi_info): Likewise.
6944
d6bc0792
TT
69452020-05-15 Tom Tromey <tom@tromey.com>
6946
6947 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6948 block_objfile.
6949 (lookup_objfile_from_block): Remove.
6950 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6951 (lookup_global_symbol): Use block_objfile.
6952 * symtab.h (lookup_objfile_from_block): Don't declare.
6953 * printcmd.c (clear_dangling_display_expressions): Use
6954 block_objfile.
6955 * parse.c (operator_check_standard): Use block_objfile.
6956
8c14c3a3
TT
69572020-05-15 Tom Tromey <tom@tromey.com>
6958
6959 * language.c (language_alloc_type_symbol): Set
6960 SYMBOL_SECTION.
6961 * symtab.c (initialize_objfile_symbol): Remove.
6962 (allocate_symbol): Remove.
6963 (allocate_template_symbol): Remove.
6964 * dwarf2/read.c (fixup_go_packaging): Use "new".
6965 (new_symbol): Use "new".
6966 (read_variable): Don't call initialize_objfile_symbol. Use
6967 "new".
6968 (read_func_scope): Use "new".
6969 * xcoffread.c (process_xcoff_symbol): Don't call
6970 initialize_objfile_symbol.
6971 (SYMBOL_DUP): Remove.
6972 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6973 "new".
6974 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6975 (allocate_template_symbol): Don't declare.
6976 (struct symbol): Add copy constructor. Change defaults.
6977 * jit.c (finalize_symtab): Use "new".
6978 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6979 Use "new".
6980 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6981 (common_block_end): Use "new".
6982 * mdebugread.c (parse_symbol): Use "new".
6983 (new_symbol): Likewise.
6984
5b4a1a8d
PW
69852020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6986
6987 * NEWS: Mention changes to help and apropos.
6988
57b4f16e
PW
69892020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6990
6991 * command.h (enum command_class): Improve comments, document
6992 that class_alias is for user-defined aliases, give the class
6993 name for each class, remove unused class_xdb.
6994 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6995 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6996 by a precise class.
6997 * infcmd.c (_initialize_infcmd): Likewise.
6998 * reverse.c (_initialize_reverse): Likewise.
6999 * stack.c (_initialize_stack): Likewise.
7000 * symfile.c (_initialize_symfile): Likewise.
7001 * tracepoint.c (_initialize_tracepoint): Likewise.
7002
7c05caf7
PW
70032020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7004
7005 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
7006 when their aliased command is traversed.
7007 (help_cmd): Add fput_command_names_styled call to
7008 output command name and aliases when command has an alias.
7009
3b3aaacb
PW
70102020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7011
7012 * cli/cli-decode.h (help_cmd_list): Remove declaration.
7013 * cli/cli-decode.c (help_cmd_list): Declare as static,
7014 remove prefix argument, use bool for recurse arg, rework to show the aliases of
7015 a command together with the command.
7016 (fput_command_name_styled, fput_command_names_styled): New functions.
7017 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
7018 fput_command_name_styled.
7019 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
7020 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
7021
7aa1b46f
PW
70222020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7023
7024 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
7025 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
7026 * command.h (cmd_show_list): Likewise.
7027 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
7028 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
7029
89bcba74
PW
70302020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7031
7032 * unittests/command-def-selftests.c (traverse_command_structure):
7033 Verify all commands of a list have the same prefix command and
7034 that only the top cmdlist commands have a null prefix.
7035
3f4d92eb
PW
70362020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7037
7038 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
7039 as prefix, not one of its aliases.
7040 (set_cmd_prefix): Remove.
7041 (do_add_cmd): Centralize the setting of the prefix of a command, when
7042 command is defined after its full chain of prefix commands.
7043 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
7044 (add_setshow_cmd_full): Likewise.
7045 (update_prefix_field_of_prefixed_commands): New function.
7046 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
7047 update_prefix_field_of_prefixed_commands.
7048 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
7049 addresses of remote_set_cmdlist and remote_show_cmdlist given
7050 as argument, not the address of an argument.
7051 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
7052 * gdb/remote.c (_initialize_remote): Likewise.
7053
0605465f
PW
70542020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7055
7056 * cli/cli-cmds.c (alias_command): Check for an existing alias
7057 using lookup_cmd_composition, as valid_command_p is too strict
7058 and forbids aliases that are the prefix of an existing alias
7059 or command.
7060 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
7061 command is properly recognised as a valid command.
7062
58e6ac70
PW
70632020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7064
7065 * unittests/help-doc-selftests.c: Rename to
7066 unittests/command-def-selftests.c
7067 * unittests/command-def-selftests.c (help_doc_tests): Update some
7068 comments.
7069 (command_structure_tests, traverse_command_structure): New namespace
7070 and function.
7071 (command_structure_invariants_tests): New function.
7072 (_initialize_command_def_selftests) Renamed from
7073 _initialize_help_doc_selftests, register command_structure_invariants
7074 selftest.
7075
a7b9ceb8
PW
70762020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7077
7078 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
7079 an alias of 'show'.
7080
b2188a06
JB
70812020-05-15 Joel Brobecker <brobecker@adacore.com>
7082
7083 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
7084 ada_is_fixed_point_type. Update all callers.
7085 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
7086 all callers.
7087 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
7088 Update all callers.
7089 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
7090 print_fixed_point_type. Update all callers.
7091 * ada-valprint.c (ada_value_print_num): Replace call to
7092 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
7093
a51951c2
KB
70942020-05-14 Kevin Buettner <kevinb@redhat.com>
7095
7096 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
7097 processors.
7098 (cpu_supports_bts): Add CV_AMD case.
7099
29d6859f
LM
71002020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
7101 Simon Marchi <simon.marchi@efficios.com>
7102
7103 * infrun.c (stop_all_threads): Collect multiple wait events at
7104 each pass.
7105
78134374
SM
71062020-05-14 Simon Marchi <simon.marchi@efficios.com>
7107
7108 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
7109 type::code instead.
7110
67607e24
SM
71112020-05-14 Simon Marchi <simon.marchi@efficios.com>
7112
7113 * gdbtypes.h (struct type) <code, set_code>: New methods.
7114 (TYPE_CODE): Use type::code. Change all call sites used to set
7115 the code to use type::set_code instead.
7116
a05575d3
TBA
71172020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7118 Tom de Vries <tdevries@suse.de>
7119 Pedro Alves <palves@redhat.com>
7120
7121 PR threads/25478
7122 * infrun.c (stop_all_threads): Do NOT ignore
7123 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
7124 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
7125 received.
7126 (handle_no_resumed): Remove code handling a live inferior with no
7127 threads.
7128 * remote.c (has_single_non_exited_thread): New.
7129 (remote_target::update_thread_list): Do not delete a thread if is
7130 the last thread of the process.
7131 * thread.c (thread_select): Call delete_exited_threads instead of
7132 prune_threads.
7133
6ad82919
TBA
71342020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7135
7136 * infrun.c (stop_all_threads): Enable/disable thread events of all
7137 targets. Move a debug message denoting the end of the function
7138 into the SCOPED_EXIT block.
7139
d890404b
TBA
71402020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7141
7142 * process-stratum-target.h: Include <set>.
7143 (all_non_exited_process_targets, switch_to_target_no_thread): New
7144 function declarations.
7145 * process-stratum-target.c (all_non_exited_process_targets)
7146 (switch_to_target_no_thread): New function implementations.
7147
293b3ebc
TBA
71482020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7149
7150 * infrun.c (handle_inferior_event): Extract out a piece of code
7151 into...
7152 (mark_non_executing_threads): ...this new function.
7153
7ca9b62a
TBA
71542020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7155
7156 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
7157 use.
7158
fc75c28b
TBA
71592020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7160
7161 * regcache.c (regcache_read_pc_protected): New function
7162 implementation that returns 0 if the PC cannot read via
7163 'regcache_read_pc'.
7164 * infrun.c (proceed): Call 'regcache_read_pc_protected'
7165 instead of 'regcache_read_pc'.
7166 (keep_going_pass_signal): Ditto.
7167
a89febbd
TT
71682020-05-13 Tom Tromey <tromey@adacore.com>
7169
7170 * ada-lang.c (align_value): Remove.
7171 (ada_template_to_fixed_record_type_1): Use align_up.
7172
f7e23710
TBA
71732020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7174
7175 * async-event.c: Update the copyright year.
7176 * async-event.h: Update the copyright year.
7177
02ff80c2
SM
71782020-05-12 Simon Marchi <simon.marchi@efficios.com>
7179
7180 * objfiles.h (is_addr_in_objfile,
7181 shared_objfile_contains_address_p): Return bool.
7182 * objfile.c (is_addr_in_objfile,
7183 shared_objfile_contains_address_p): Return bool.
7184
4fd6c7e8
TT
71852020-05-11 Tom Tromey <tromey@adacore.com>
7186
7187 * cli/cli-cmds.c (info_command): Restore.
7188 (_initialize_cli_cmds): Use add_prefix_command for "info".
7189 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7190
5eb68a39
TT
71912020-05-11 Tom Tromey <tromey@adacore.com>
7192
7193 * ada-lang.c (ada_value_primitive_field): Now public.
7194 * ada-lang.h (ada_value_primitive_field): Declare.
7195 * ada-valprint.c (print_field_values): Use
7196 ada_value_primitive_field for wrapper fields.
7197
7666722f
TV
71982020-05-11 Tom de Vries <tdevries@suse.de>
7199
7200 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7201 MODULE_DOMAIN.
7202
3ee6bb11
TV
72032020-05-11 Tom de Vries <tdevries@suse.de>
7204
7205 PR symtab/25941
7206 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7207 with length 0, if not gdb-produced.
7208 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7209
43434996
TV
72102020-05-09 Tom de Vries <tdevries@suse.de>
7211
7212 PR gdb/25955
7213 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7214 calculation.
7215
2f78cffc
TT
72162020-05-09 Tom Tromey <tom@tromey.com>
7217
7218 * top.c (server_command): Now bool.
7219 * top.h (server_command): Now bool.
7220
4f7bc5ed
TT
72212020-05-08 Tom Tromey <tromey@adacore.com>
7222
7223 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7224 already being processed.
7225
8be4b118
TT
72262020-05-08 Tom Tromey <tom@tromey.com>
7227
7228 * printcmd.c (struct display) <next>: Remove.
7229 <display>: New constructor.
7230 <exp_string>: Now a std::string.
7231 <enabled_p>: Now a bool.
7232 (display_number): Move definition earlier.
7233 (displays): Rename from display_chain. Now a std::vector.
7234 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7235 (display_command): Update.
7236 (do_one_display, disable_display)
7237 (enable_disable_display_command, do_enable_disable_display):
7238 Update.
7239 (free_display): Remove.
7240 (clear_displays): Rewrite.
7241 (delete_display): Update.
7242 (map_display_numbers): Use function_view. Remove "data"
7243 parameter. Update.
7244 (do_delete_display): Remove.
7245 (undisplay_command): Update.
7246 (do_one_display, do_displays, disable_display)
7247 (info_display_command): Update.
7248 (do_enable_disable_display): Remove.
7249 (enable_disable_display_command)
7250 (clear_dangling_display_expressions): Update.
7251
94c93c35
TT
72522020-05-08 Tom Tromey <tom@tromey.com>
7253
7254 * symtab.c (set_symbol_cache_size)
7255 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7256 (maintenance_print_symbol_cache_statistics): Update.
7257 * symmisc.c (print_symbol_bcache_statistics)
7258 (print_objfile_statistics, maintenance_print_objfiles)
7259 (maintenance_info_symtabs, maintenance_check_symtabs)
7260 (maintenance_expand_symtabs, maintenance_info_line_tables):
7261 Update.
7262 * symfile-debug.c (set_debug_symfile): Update.
7263 * source.c (forget_cached_source_info): Update.
7264 * python/python.c (gdbpy_progspaces): Update.
7265 * psymtab.c (maintenance_info_psymtabs): Update.
7266 * probe.c (parse_probes): Update.
7267 * linespec.c (iterate_over_all_matching_symtabs)
7268 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7269 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7270 * exec.c (exec_target::close): Update.
7271 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7272 * breakpoint.c (print_one_breakpoint_location)
7273 (create_longjmp_master_breakpoint)
7274 (create_std_terminate_master_breakpoint): Update.
7275 * progspace.c (program_spaces): Now a std::vector.
7276 (maybe_new_address_space): Update.
7277 (add_program_space): Remove.
7278 (program_space::program_space): Update.
7279 (remove_program_space): Update.
7280 (number_of_program_spaces): Remove.
7281 (print_program_space, update_address_spaces): Update.
7282 * progspace.h (program_spaces): Change type.
7283 (ALL_PSPACES): Remove.
7284 (number_of_program_spaces): Don't declare.
7285 (struct program_space) <next>: Remove.
7286
a1fd1ac9
TT
72872020-05-08 Tom Tromey <tom@tromey.com>
7288
7289 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7290 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7291 (enable_break): Update.
7292 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7293 (frv_fdpic_find_canonical_descriptor): Update.
7294 (frv_fetch_objfile_link_map): Update.
7295 * progspace.c (program_space::free_all_objfiles): Update.
7296 (program_space::solibs): New method.
7297 * progspace.h (struct program_space) <solibs>: New method.
7298 * solist.h (master_so_list): Don't declare.
7299 (ALL_SO_LIBS): Remove.
7300 * solib.h (so_list_head): Remove.
7301 (update_solib_list): Update comment.
7302 * solib.c (master_so_list): Remove.
7303 (solib_used, update_solib_list, solib_add)
7304 (info_sharedlibrary_command, clear_solib)
7305 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7306
38eae084
TT
73072020-05-08 Tom Tromey <tom@tromey.com>
7308
7309 * extension.c (extension_languages): Now a std::array.
7310 (ALL_EXTENSION_LANGUAGES): Remove.
7311 (get_ext_lang_defn, get_ext_lang_of_file)
7312 (eval_ext_lang_from_control_command): Update.
7313 (finish_ext_lang_initialization)
7314 (auto_load_ext_lang_scripts_for_objfile)
7315 (ext_lang_type_printers::ext_lang_type_printers)
7316 (apply_ext_lang_type_printers)
7317 (ext_lang_type_printers::~ext_lang_type_printers)
7318 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7319 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7320 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7321 (get_matching_xmethod_workers, ext_lang_colorize)
7322 (ext_lang_before_prompt): Update.
7323 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7324
596dc4ad
TT
73252020-05-08 Tom Tromey <tom@tromey.com>
7326
7327 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7328 overload.
7329 <swap_string, m_string>: Remove.
7330 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7331 Update.
7332 * stabsread.c (define_symbol, read_type): Update.
7333 * linespec.c (find_linespec_symbols): Update.
7334 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7335 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7336 * dbxread.c (read_dbx_symtab): Update.
7337 * cp-support.h (cp_canonicalize_string_full)
7338 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7339 Return unique_xmalloc_ptr.
7340 * cp-support.c (inspect_type): Update.
7341 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7342 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7343 Likewise.
7344 * c-typeprint.c (print_name_maybe_canonical): Update.
7345 * break-catch-throw.c (check_status_exception_catchpoint):
7346 Update.
7347
bf4cb9be
TV
73482020-05-08 Tom de Vries <tdevries@suse.de>
7349
7350 * infrun.c (follow_fork): Copy current_line and current_symtab to
7351 child thread.
7352
a1b68f28
SM
73532020-05-07 Simon Marchi <simon.marchi@efficios.com>
7354
7355 * async-event.c (struct async_signal_handler, struct
7356 async_event_handler): Reformat, remove typedef.
7357
98d48915
SM
73582020-05-07 Simon Marchi <simon.marchi@efficios.com>
7359
7360 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7361 access thistype->main_type->dyn_prop_list directly.
7362
7aa91313
SM
73632020-05-07 Simon Marchi <simon.marchi@efficios.com>
7364
7365 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7366 (remove_dyn_prop): Remove. Update all users to use
7367 type::remove_dyn_prop.
7368 * gdbtypes.c (remove_dyn_prop): Rename to...
7369 (type::remove_dyn_prop): ... this.
7370
5c54719c
SM
73712020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7372
7373 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7374 (add_dyn_prop): Remove. Update all users to use
7375 type::add_dyn_prop.
7376 * gdbtypes.c (add_dyn_prop): Rename to...
7377 (type::add_dyn_prop): ... this.
7378
24e99c6c
SM
73792020-05-07 Simon Marchi <simon.marchi@efficios.com>
7380
7381 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7382 (get_dyn_prop): Remove. Update all users to use
7383 type::dyn_prop.
7384 * gdbtypes.c (get_dyn_prop): Rename to...
7385 (type::dyn_prop): ... this.
7386
0d4bf016
SM
73872020-05-06 Simon Marchi <simon.marchi@efficios.com>
7388
7389 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7390
ac4a4f1c
SM
73912020-05-06 Simon Marchi <simon.marchi@efficios.com>
7392
7393 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7394 instruction, skip it if it's there.
7395
a3bbacc1
SM
73962020-05-05 Simon Marchi <simon.marchi@efficios.com>
7397
7398 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7399
c3236f84
SM
74002020-05-04 Simon Marchi <simon.marchi@efficios.com>
7401
7402 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7403 * gdbtypes.c (recursive_dump_type): Remove use of
7404 TYPE_INCOMPLETE.
7405
3b6acaee
TT
74062020-05-03 Tom Tromey <tom@tromey.com>
7407
7408 * breakpoint.c (catch_command, tcatch_command): Remove.
7409 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7410 add_show_prefix_cmd.
7411 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7412 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7413 Remove.
7414 (add_internal_problem_command): Use add_basic_prefix_cmd,
7415 add_show_prefix_cmd.
7416 * mips-tdep.c (set_mipsfpu_command): Remove.
7417 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7418 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7419 (_initialize_index_cache): Use add_basic_prefix_cmd.
7420 * memattr.c (dummy_cmd): Remove.
7421 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7422 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7423 (_initialize_tui_win): Use add_basic_prefix_cmd,
7424 add_show_prefix_cmd.
7425 * cli/cli-logging.c (set_logging_command): Remove.
7426 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7427 add_show_prefix_cmd.
7428 (show_logging_command): Remove.
7429 * target.c (target_command): Remove.
7430 (add_target): Use add_basic_prefix_cmd.
7431
a51119cd
HD
74322020-05-02 Hannes Domani <ssbssa@yahoo.de>
7433
7434 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7435
652fc23a 74362020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7437
652fc23a
PW
7438 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7439 info_command.
7440
117539e6
KR
74412020-04-30 Kamil Rytarowski <n54@gmx.com>
7442
7443 * nbsd-nat.c (nbsd_enable_proc_events)
7444 (nbsd_nat_target::post_startup_inferior): Add.
7445 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7446 (nbsd_nat_target::update_thread_list): Rewrite.
7447 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7448 "PTRACE_LWP_CREATE".
7449 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7450
102e38eb 74512020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7452
102e38eb
PW
7453 * stack.c (_initialize_stack): Remove duplicated creation
7454 of "frame" command and "f" alias.
7455
ee9d1e5f
HD
74562020-04-30 Hannes Domani <ssbssa@yahoo.de>
7457
7458 PR gdb/18706
7459 * gdbtypes.c (check_typedef): Calculate size of array of
7460 stubbed type.
7461
627c7fb8
HD
74622020-04-30 Hannes Domani <ssbssa@yahoo.de>
7463
7464 PR gdb/15559
7465 * i386-tdep.c (i386_push_dummy_call): Call
7466 i386_thiscall_push_dummy_call.
7467 (i386_thiscall_push_dummy_call): New function.
7468 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7469 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7470 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7471
ffc2844e
SM
74722020-04-29 Simon Marchi <simon.marchi@efficios.com>
7473
7474 * gdbarch.sh (do_read): Add shellcheck disable directive for
7475 warning SC2162.
7476
1207375d
SM
74772020-04-29 Simon Marchi <simon.marchi@efficios.com>
7478
7479 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7480 "referenced but not assigned" warning.
7481
9fdb2916
SM
74822020-04-29 Simon Marchi <simon.marchi@efficios.com>
7483
7484 * gdbarch.sh: Remove code that sets fallbackdefault.
7485
759cea5e
SM
74862020-04-29 Simon Marchi <simon.marchi@efficios.com>
7487
7488 * gdbarch.sh: Use shell operators && and || instead of
7489 -a and -o.
7490
cb02ab24
SM
74912020-04-29 Simon Marchi <simon.marchi@efficios.com>
7492
7493 * gdbarch.sh: Use $(...) instead of `...`.
7494
a6fc5ffc
SM
74952020-04-29 Simon Marchi <simon.marchi@efficios.com>
7496
7497 * gdbarch.sh: Use double quotes around variables.
7498
8d113d13
SM
74992020-04-29 Simon Marchi <simon.marchi@efficios.com>
7500
7501 * gdbarch.sh: Use %s with printf, instead of variables in the
7502 format string.
7503
ed6acedd
TT
75042020-04-29 Tom Tromey <tromey@adacore.com>
7505
7506 PR ada/25875:
7507 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7508 type fields here.
7509 (read_enumeration_type): Call
7510 update_enumeration_type_from_children later. Update comments.
7511 (process_enumeration_scope): Don't create type fields.
7512
b68b1b58
KR
75132020-04-29 Kamil Rytarowski <n54@gmx.com>
7514
7515 * nbsd-tdep.c: Include "xml-syscall.h".
7516 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7517
f94b2e03
KR
75182020-04-29 Kamil Rytarowski <n54@gmx.com>
7519
7520 * nbsd-nat.c: Include "sys/wait.h".
7521 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7522 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7523 (nbsd_nat_target::remove_exec_catchpoint)
7524 (nbsd_nat_target::set_syscall_catchpoint): Add.
7525 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7526 (nbsd_nat_target::insert_exec_catchpoint)
7527 (nbsd_nat_target::remove_exec_catchpoint)
7528 (nbsd_nat_target::set_syscall_catchpoint): Add.
7529 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7530 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7531 `nbsd_get_syscall_number'.
7532
fc49bc72
TT
75332020-04-29 Tom Tromey <tom@tromey.com>
7534
7535 * stack.c (print_block_frame_labels): Remove.
7536
d642b692
HD
75372020-04-29 Hannes Domani <ssbssa@yahoo.de>
7538
7539 PR gdb/17320
7540 * ada-valprint.c (val_print_packed_array_elements): Move array
7541 end bracket to new line.
7542 (ada_val_print_string): Remove extra spaces before first array
7543 element.
7544 * c-valprint.c (c_value_print_array): Likewise.
7545 * m2-valprint.c (m2_print_array_contents): Likewise.
7546 (m2_value_print_inner): Likewise.
7547 * p-valprint.c (pascal_value_print_inner): Likewise.
7548 * valprint.c (generic_val_print_array): Likewise.
7549 (value_print_array_elements): Move first array element and array
7550 end bracket to new line.
7551
ea90f227
TV
75522020-04-29 Tom de Vries <tdevries@suse.de>
7553
7554 PR symtab/25889
7555 * linespec.c (find_method): Fix ix calculation.
7556
4498ef4f
KR
75572020-04-28 Kamil Rytarowski <n54@gmx.com>
7558
7559 * syscalls/update-netbsd.sh: New file.
7560 * syscalls/netbsd.xml: Regenerate.
7561 * data-directory/Makefile.in: Register `netbsd.xml' in
7562 `SYSCALLS_FILES'.
7563
a55e30b5
SM
75642020-04-28 Simon Marchi <simon.marchi@efficios.com>
7565
7566 * syscalls/update-freebsd.sh: Add double quotes.
7567
2b2fbab8
TT
75682020-04-28 Tom Tromey <tom@tromey.com>
7569
7570 * NEWS: Update.
7571 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7572 (cmdpy_init): Allow class_tui.
7573
a65189c9
TV
75742020-04-28 Mark Williams <mark@myosotissp.com>
7575
7576 PR gdb/24480
7577 * dwarf2read.c: Add missing assingments to list_in_scope when
7578 start_symtab was already called.
7579
1b95cdb7
SM
75802020-04-28 Simon Marchi <simon.marchi@efficios.com>
7581
7582 PR gdb/25881
7583 * dwarf2/read.c (offset_map_type): Use
7584 gdb:hash_enum<sect_offset> as hash function.
7585
15cd93d0
TV
75862020-04-28 Tom de Vries <tdevries@suse.de>
7587
7588 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7589 with DW_AT_signature.
7590
1eb39914
SM
75912020-04-27 Simon Marchi <simon.marchi@efficios.com>
7592
7593 * configure.ac: Remove check for fs_base/gs_base in
7594 user_regs_struct.
7595 * configure: Re-generate.
7596 * config.in: Re-generate.
7597 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7598 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7599 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7600
991a3e2e
LM
76012020-04-27 Luis Machado <luis.machado@linaro.org>
7602
7603 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7604 problematic inline frame unwinding situation.
7605 * frame.c (frame_id_computed_p): New function.
7606 * frame.h (frame_id_computed_p): New prototype.
7607
361ba0e8
TT
76082020-04-26 Tom Tromey <tom@tromey.com>
7609
7610 * command.h (enum command_class) <class_pseudo>: Remove.
7611
bc3609fd
PW
76122020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7613
7614 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7615 and whitespace.
7616
b9771db7
KR
76172020-04-25 Kamil Rytarowski <n54@gmx.com>
7618
ec16513e
SM
7619 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7620 `PT_GET_PROCESS_STATE' block.
b9771db7 7621
7151c1af
TT
76222020-04-24 Tom Tromey <tom@tromey.com>
7623
7624 * symtab.h (symbol_get_demangled_name): Don't declare.
7625 * symtab.c (symbol_get_demangled_name): Remove.
7626 (general_symbol_info::natural_name)
7627 (general_symbol_info::demangled_name): Update.
7628
906bb4c5
TT
76292020-04-24 Tom Tromey <tom@tromey.com>
7630
7631 PR rust/25025:
7632 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7633
bcfe6157
TT
76342020-04-24 Tom Tromey <tom@tromey.com>
7635
7636 PR symtab/12707:
7637 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7638 exists.
7639 (new_symbol): Likewise.
7640 * compile/compile-object-load.c (get_out_value_type): Use
7641 symbol_matches_search_name.
7642
f049a313
TT
76432020-04-24 Tom Tromey <tom@tromey.com>
7644
7645 * dwarf2/read.c (add_partial_symbol): Do not call
7646 compute_and_set_names.
7647
76e288d1
TT
76482020-04-24 Tom Tromey <tom@tromey.com>
7649
7650 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7651 overload.
7652
2467f4f6
TT
76532020-04-24 Tom Tromey <tom@tromey.com>
7654
7655 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7656 (add_psymbol_to_list): New overload. Make old overload call new
7657 one.
7658 * psympriv.h (add_psymbol_to_list): New overload.
7659
e61108c9
TT
76602020-04-24 Tom Tromey <tom@tromey.com>
7661
7662 * dwarf2/read.c (partial_die_info::read) <case
7663 DW_AT_linkage_name>: Use value_as_string.
7664 (dwarf2_string_attr): Use value_as_string.
7665 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7666 method.
7667 * dwarf2/attribute.c (attribute::value_as_string): New method.
7668
8c87a452
TT
76692020-04-24 Tom Tromey <tom@tromey.com>
7670
7671 * symtab.c (general_symbol_info::natural_name)
7672 (general_symbol_info::demangled_name): Check for language_rust.
7673
787de330
TT
76742020-04-24 Tom Tromey <tom@tromey.com>
7675
7676 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7677 (dwarf2_physname): ... from here.
7678 (partial_die_info::read): Add Rust "{" hack.
7679
ff985671
TT
76802020-04-24 Tom Tromey <tom@tromey.com>
7681
7682 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7683 method.
7684 (symbol_set_demangled_name): Don't declare.
7685 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7686 symbol_set_demangled_name.
7687 (general_symbol_info::set_language)
7688 (general_symbol_info::compute_and_set_names): Update.
7689 * minsyms.c (minimal_symbol_reader::install): Update.
7690 * dwarf2/read.c (new_symbol): Update.
7691
1acda803
TT
76922020-04-24 Tom Tromey <tromey@adacore.com>
7693
7694 PR python/23662:
7695 * python/py-type.c (convert_field): Handle
7696 FIELD_LOC_KIND_DWARF_BLOCK.
7697 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7698 (typy_get_dynamic): Nw function.
7699 (type_object_getset): Add "dynamic".
7700 * NEWS: Add entry.
7701
d656f129
TT
77022020-04-24 Tom Tromey <tromey@adacore.com>
7703
7704 * ada-typeprint.c (print_choices, print_variant_part)
7705 (print_record_field_types_dynamic): New functions.
7706 (print_record_field_types): Use print_record_field_types_dynamic.
7707
7d79de9a
TT
77082020-04-24 Tom Tromey <tromey@adacore.com>
7709
7710 * dwarf2/read.c (handle_data_member_location): New overload.
7711 (dwarf2_add_field): Use it.
7712 (decode_locdesc): Add "computed" parameter. Update comment.
7713 * gdbtypes.c (is_dynamic_type_internal): Also look for
7714 FIELD_LOC_KIND_DWARF_BLOCK.
7715 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7716 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7717 virtual base classes.
7718 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7719 FIELD_LOC_KIND_DWARF_BLOCK.
7720
f8e89861
TT
77212020-04-24 Tom Tromey <tromey@adacore.com>
7722
7723 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7724 * gdbtypes.c (is_dynamic_type_internal): Check
7725 TYPE_HAS_DYNAMIC_LENGTH.
7726 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7727 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7728 New macros.
7729 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7730 constant.
7731
9c6a1327
TT
77322020-04-24 Tom Tromey <tromey@adacore.com>
7733
7734 * dwarf2/read.c (struct variant_field): Rewrite.
7735 (struct variant_part_builder): New.
7736 (struct nextfield): Remove "variant" field. Add "offset".
7737 (struct field_info): Add "current_variant_part" and
7738 "variant_parts".
7739 (alloc_discriminant_info): Remove.
7740 (alloc_rust_variant): New function.
7741 (quirk_rust_enum): Update.
7742 (dwarf2_add_field): Set "offset" member. Don't handle
7743 DW_TAG_variant_part.
7744 (offset_map_type): New typedef.
7745 (convert_variant_range, create_one_variant)
7746 (create_one_variant_part, create_variant_parts)
7747 (add_variant_property): New functions.
7748 (dwarf2_attach_fields_to_type): Call add_variant_property.
7749 (read_structure_type): Don't handle DW_TAG_variant_part.
7750 (handle_variant_part, handle_variant): New functions.
7751 (handle_struct_member_die): Use them.
7752 (process_structure_scope): Don't handle variant parts.
7753 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7754 (struct discriminant_info): Remove.
7755 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7756 (struct main_type) <flag_discriminated_union>: Remove.
7757 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7758 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7759 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7760 Update.
7761 * valops.c (value_union_variant): Remove.
7762 * value.h (value_union_variant): Don't declare.
7763
b249d2c2
TT
77642020-04-24 Tom Tromey <tromey@adacore.com>
7765
7766 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7767 (ada_value_primitive_packed_val): Update.
7768 * ada-valprint.c (ada_value_print_1): Update.
7769 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7770 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7771 just an address. Use evaluate_for_locexpr_baton.
7772 (dwarf2_evaluate_property): Update.
7773 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7774 array_view.
7775 * findvar.c (default_read_var_value): Update.
7776 * gdbtypes.c (compute_variant_fields_inner)
7777 (resolve_dynamic_type_internal): Update.
7778 (resolve_dynamic_type): Change type of valaddr parameter.
7779 * gdbtypes.h (resolve_dynamic_type): Update.
7780 * valarith.c (value_subscripted_rvalue): Update.
7781 * value.c (value_from_contents_and_address): Update.
7782
61122aa9
TT
77832020-04-24 Tom Tromey <tromey@adacore.com>
7784
7785 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7786 "push_initial_value" parameter.
7787 (dwarf2_evaluate_property): Likewise.
7788 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7789
ef83a141
TT
77902020-04-24 Tom Tromey <tromey@adacore.com>
7791
7792 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7793 (variant::matches, compute_variant_fields_recurse)
7794 (compute_variant_fields_inner, compute_variant_fields): New
7795 functions.
7796 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7797 Use resolved_type after type is made.
7798 (operator==): Add new cases.
7799 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7800 (struct discriminant_range, struct variant, struct variant_part):
7801 New.
7802 (union dynamic_prop_data) <variant_parts, original_type>: New
7803 members.
7804 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7805 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7806 constants.
7807 * value.c (unpack_bits_as_long): Now public.
7808 * value.h (unpack_bits_as_long): Declare.
7809
675127ec
TT
78102020-04-24 Tom Tromey <tromey@adacore.com>
7811
7812 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7813 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7814
9852ceef
HD
78152020-04-24 Hannes Domani <ssbssa@yahoo.de>
7816
7817 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7818
7632c6ce
KR
78192020-04-24 Kamil Rytarowski <n54@gmx.com>
7820
7821 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7822 (remove_fork_catchpoint, post_startup_inferior)
7823 (post_attach): Move...
7824 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7825 (remove_fork_catchpoint, post_startup_inferior)
7826 (post_attach): ...here.
7827 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7828 (remove_fork_catchpoint, post_startup_inferior)
7829 (post_attach): Move...
7830 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7831 (remove_fork_catchpoint, post_startup_inferior)
7832 (post_attach): ...here.
7833
7be2bb4f
TT
78342020-04-24 Tom Tromey <tromey@adacore.com>
7835
7836 * nat/windows-nat.h (struct windows_thread_info)
7837 <pc_adjusted>: New member.
7838 * windows-nat.c (windows_fetch_one_register): Check
7839 pc_adjusted.
7840 (windows_nat_target::get_windows_debug_event)
7841 (windows_nat_target::wait): Set pc_adjusted.
7842
f80cb3b4
TV
78432020-04-24 Tom de Vries <tdevries@suse.de>
7844
7845 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
7846 Run gdb-add-index inside temp dir.
7847
29514b87
TT
78482020-04-23 Tom Tromey <tromey@adacore.com>
7849
7850 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
7851 in loop.
7852
5939967b
LM
78532020-04-23 Luis Machado <luis.machado@linaro.org>
7854
7855 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7856 get_frame_register instead of gdbarch_unwind_pc.
7857
70bc38f5
TV
78582020-04-23 Tom de Vries <tdevries@suse.de>
7859
7860 * symtab.c (lookup_global_symbol): Prefer def over decl.
7861
de82891c
TV
78622020-04-23 Tom de Vries <tdevries@suse.de>
7863
7864 PR symtab/25807
7865 * block.c (best_symbol, better_symbol): Promote to external.
7866 * block.h (best_symbol, better_symbol): Declare.
7867 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
7868 decl.
7869
ecc6c606
TT
78702020-04-23 Tom Tromey <tromey@adacore.com>
7871
7872 PR ada/25837:
7873 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
7874 "const char *", not a "const std::string &".
7875 <name_and_matcher::operator==>: Update.
7876 * unittests/lookup_name_info-selftests.c: Change type of
7877 "result".
7878
740480b8
TT
78792020-04-23 Tom Tromey <tom@tromey.com>
7880
7881 * inferior.h (iterate_over_inferiors): Don't declare.
7882 * inferior.c (iterate_over_inferiors): Remove.
7883 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
7884 Remove.
7885 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
7886 use iterate_over_inferiors.
7887 (darwin_resume_inferior_it)
7888 (struct resume_inferior_threads_param)
7889 (darwin_resume_inferior_threads_it): Remove.
7890 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
7891
ae3ab1f0
TV
78922020-04-23 Tom de Vries <tdevries@suse.de>
7893
7894 * blockframe.c (find_pc_partial_function): Use
7895 find_pc_sect_compunit_symtab rather than
7896 objfile->sf->qf->find_pc_sect_compunit_symtab.
7897
317d2668
TV
78982020-04-22 Tom de Vries <tdevries@suse.de>
7899
7900 PR symtab/25764
7901 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7902 in psymtabs.
7903
eea9e357
TV
79042020-04-22 Tom de Vries <tdevries@suse.de>
7905
7906 PR symtab/25801
7907 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7908 symtabs.
7909
3d5afab3
TV
79102020-04-22 Tom de Vries <tdevries@suse.de>
7911
7912 PR symtab/25700
7913 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7914 CU if already created.
7915
d43b7a2d
TBA
79162020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7917
7918 * infrun.c (displaced_step_fixup): Switch to the event_thread
7919 before calling displaced_step_restore, not after.
7920
d89edf9b
MM
79212020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7922
7923 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7924 its inferior is not recorded by us.
7925 (record_btrace_target_open): Replace call to
7926 all_non_exited_threads () with call to current_inferior
7927 ()->non_exited_threads ().
7928 (record_btrace_target::stop_recording): Likewise.
7929 (record_btrace_target::close): Likewise.
7930 (record_btrace_target::wait): Likewise.
7931 (record_btrace_target::record_stop_replaying): Likewise.
7932
5897fd49
MM
79332020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7934
7935 * btrace.c (btrace_enable): Throw an error on double enables and
7936 when enabling recording fails.
7937 (btrace_disable): Throw an error if the thread is not recorded.
7938
1a476b6d
MM
79392020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7940
7941 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7942 request if we do not have a thread_info.
7943
4778a5f8
TV
79442020-04-21 Tom de Vries <tdevries@suse.de>
7945
7946 PR gdb/25471
7947 * thread.c
7948 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7949 exception in get_frame_id.
7950
0fa7617d
TT
79512020-04-20 Tom Tromey <tromey@adacore.com>
7952
7953 * python/python.c (struct gdbpy_event): Mark move constructor as
7954 noexcept.
7955 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7956 constructor as noexcept.
7957 * completer.h (struct completion_result): Mark move constructor as
7958 noexcept.
7959 * completer.c (completion_result::completion_result): Use
7960 initialization style. Don't call reset_match_list.
7961
ad23bda0
MS
79622020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7963
7964 * MAINTAINERS (Write After Approval): Add myself.
7965
45e1f031
TT
79662020-04-18 Tom Tromey <tom@tromey.com>
7967
7968 * windows-tdep.c (init_w32_command_list)
7969 (w32_prefix_command_valid): Restore.
7970 (_initialize_windows_tdep): Call init_w32_command_list.
7971
08feed99
TT
79722020-04-18 Tom Tromey <tom@tromey.com>
7973
7974 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7975 * value.c (value_fn_field): Update.
7976 * valops.c (find_function_in_inferior)
7977 (value_allocate_space_in_inferior): Update.
7978 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7979 Update.
7980 * tui/tui-source.c (tui_source_window::set_contents): Update.
7981 * symtab.c (lookup_global_or_static_symbol)
7982 (find_function_start_sal_1, skip_prologue_sal)
7983 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7984 * symmisc.c (dump_msymbols, dump_symtab_1)
7985 (maintenance_print_one_line_table): Update.
7986 * symfile.c (init_entry_point_info, section_is_mapped)
7987 (list_overlays_command, simple_read_overlay_table)
7988 (simple_overlay_update_1): Update.
7989 * stap-probe.c (handle_stap_probe): Update.
7990 * stabsread.c (dbx_init_float_type, define_symbol)
7991 (read_one_struct_field, read_enum_type, read_range_type): Update.
7992 * source.c (info_line_command): Update.
7993 * python/python.c (gdbpy_source_objfile_script)
7994 (gdbpy_execute_objfile_script): Update.
7995 * python/py-type.c (save_objfile_types): Update.
7996 * python/py-objfile.c (py_free_objfile): Update.
7997 * python/py-inferior.c (python_new_objfile): Update.
7998 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7999 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
8000 (maintenance_check_psymtabs): Update.
8001 * printcmd.c (info_address_command): Update.
8002 * objfiles.h (struct objfile) <arch>: New method, from
8003 get_objfile_arch.
8004 (get_objfile_arch): Don't declare.
8005 * objfiles.c (get_objfile_arch): Remove.
8006 (filter_overlapping_sections): Update.
8007 * minsyms.c (msymbol_is_function): Update.
8008 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
8009 (output_nondebug_symbol): Update.
8010 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
8011 (mdebug_expand_psymtab): Update.
8012 * machoread.c (macho_add_oso_symfile): Update.
8013 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
8014 Update.
8015 * linux-fork.c (checkpoint_command): Update.
8016 * linespec.c (convert_linespec_to_sals): Update.
8017 * jit.c (finalize_symtab): Update.
8018 * infrun.c (insert_exception_resume_from_probe): Update.
8019 * ia64-tdep.c (ia64_find_unwind_table): Update.
8020 * hppa-tdep.c (internalize_unwinds): Update.
8021 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
8022 Update.
8023 * gcore.c (call_target_sbrk): Update.
8024 * elfread.c (record_minimal_symbol, elf_symtab_read)
8025 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
8026 (elf_gnu_ifunc_resolve_by_got): Update.
8027 * dwarf2/read.c (create_addrmap_from_index)
8028 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
8029 (read_debug_names_from_section)
8030 (process_psymtab_comp_unit_reader, add_partial_symbol)
8031 (add_partial_subprogram, process_full_comp_unit)
8032 (read_file_scope, read_func_scope, read_lexical_block_scope)
8033 (read_call_site_scope, dwarf2_ranges_read)
8034 (dwarf2_record_block_ranges, dwarf2_add_field)
8035 (mark_common_block_symbol_computed, read_tag_pointer_type)
8036 (read_tag_string_type, dwarf2_init_float_type)
8037 (dwarf2_init_complex_target_type, read_base_type)
8038 (partial_die_info::read, partial_die_info::read)
8039 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
8040 (dwarf2_fetch_die_loc_sect_off): Update.
8041 * dwarf2/loc.c (dwarf2_find_location_expression)
8042 (class dwarf_evaluate_loc_desc, rw_pieced_value)
8043 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
8044 (dwarf2_loc_desc_get_symbol_read_needs)
8045 (locexpr_describe_location_piece, locexpr_describe_location_1)
8046 (loclist_describe_location): Update.
8047 * dwarf2/index-write.c (write_debug_names): Update.
8048 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
8049 * dtrace-probe.c (dtrace_process_dof): Update.
8050 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
8051 (process_one_symbol): Update.
8052 * ctfread.c (ctf_init_float_type, read_base_type): Update.
8053 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
8054 (coff_read_enum_type): Update.
8055 * cli/cli-cmds.c (edit_command, list_command): Update.
8056 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
8057 * breakpoint.c (create_overlay_event_breakpoint)
8058 (create_longjmp_master_breakpoint)
8059 (create_std_terminate_master_breakpoint)
8060 (create_exception_master_breakpoint, get_sal_arch): Update.
8061 * block.c (block_gdbarch): Update.
8062 * annotate.c (annotate_source_line): Update.
8063
0743fc83
TT
80642020-04-17 Tom Tromey <tromey@adacore.com>
8065
8066 * auto-load.c (show_auto_load_cmd): Remove.
8067 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
8068 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
8069 (maintenance_print_arc_command): Remove.
8070 * tui/tui-win.c (tui_command): Remove.
8071 (tui_get_cmd_list): Use add_basic_prefix_cmd.
8072 * tui/tui-layout.c (tui_layout_command): Remove.
8073 (_initialize_tui_layout): Use add_basic_prefix_cmd.
8074 * python/python.c (user_set_python, user_show_python): Remove.
8075 (_initialize_python): Use add_basic_prefix_cmd,
8076 add_show_prefix_cmd.
8077 * guile/guile.c (set_guile_command, show_guile_command): Remove.
8078 (install_gdb_commands): Use add_basic_prefix_cmd,
8079 add_show_prefix_cmd.
8080 (info_guile_command): Remove.
8081 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
8082 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
8083 add_show_prefix_cmd.
8084 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
8085 Remove do_set and do_show parameters.
8086 * cli/cli-style.c (set_style, show_style): Remove.
8087 (_initialize_cli_style): Use add_basic_prefix_cmd,
8088 add_show_prefix_cmd.
8089 (cli_style_option::add_setshow_commands): Remove do_set and
8090 do_show parameters.
8091 (cli_style_option::add_setshow_commands): Use
8092 add_basic_prefix_cmd, add_show_prefix_cmd.
8093 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
8094 (set_style_name): Remove.
8095 * cli/cli-dump.c (dump_command, append_command): Remove.
8096 (srec_dump_command, ihex_dump_command, verilog_dump_command)
8097 (tekhex_dump_command, binary_dump_command)
8098 (binary_append_command): Remove.
8099 (_initialize_cli_dump): Use add_basic_prefix_cmd.
8100 * windows-tdep.c (w32_prefix_command_valid): Remove global.
8101 (init_w32_command_list): Remove; move into ...
8102 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
8103 * valprint.c (set_print, show_print, set_print_raw)
8104 (show_print_raw): Remove.
8105 (_initialize_valprint): Use add_basic_prefix_cmd,
8106 add_show_prefix_cmd.
8107 * typeprint.c (set_print_type, show_print_type): Remove.
8108 (_initialize_typeprint): Use add_basic_prefix_cmd,
8109 add_show_prefix_cmd.
8110 * record.c (set_record_command, show_record_command): Remove.
8111 (_initialize_record): Use add_basic_prefix_cmd,
8112 add_show_prefix_cmd.
8113 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
8114 add_show_prefix_cmd.
8115 (info_command, show_command, set_debug, show_debug): Remove.
8116 * top.h (set_history, show_history): Don't declare.
8117 * top.c (set_history, show_history): Remove.
8118 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
8119 (unset_tdesc_cmd): Remove.
8120 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
8121 add_show_prefix_cmd.
8122 * symtab.c (info_module_command): Remove.
8123 (_initialize_symtab): Use add_basic_prefix_cmd.
8124 * symfile.c (overlay_command): Remove.
8125 (_initialize_symfile): Use add_basic_prefix_cmd.
8126 * sparc64-tdep.c (info_adi_command): Remove.
8127 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
8128 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
8129 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
8130 add_show_prefix_cmd.
8131 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
8132 (_initialize_serial): Use add_basic_prefix_cmd,
8133 add_show_prefix_cmd.
8134 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
8135 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
8136 add_show_prefix_cmd.
8137 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
8138 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
8139 add_show_prefix_cmd.
8140 * riscv-tdep.c (show_riscv_command, set_riscv_command)
8141 (show_debug_riscv_command, set_debug_riscv_command): Remove.
8142 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
8143 add_show_prefix_cmd.
8144 * remote.c (remote_command, set_remote_cmd): Remove.
8145 (_initialize_remote): Use add_basic_prefix_cmd.
8146 * record-full.c (set_record_full_command)
8147 (show_record_full_command): Remove.
8148 (_initialize_record_full): Use add_basic_prefix_cmd,
8149 add_show_prefix_cmd.
8150 * record-btrace.c (cmd_set_record_btrace)
8151 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
8152 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
8153 (cmd_show_record_btrace_pt): Remove.
8154 (_initialize_record_btrace): Use add_basic_prefix_cmd,
8155 add_show_prefix_cmd.
8156 * ravenscar-thread.c (set_ravenscar_command)
8157 (show_ravenscar_command): Remove.
8158 (_initialize_ravenscar): Use add_basic_prefix_cmd,
8159 add_show_prefix_cmd.
8160 * mips-tdep.c (show_mips_command, set_mips_command)
8161 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
8162 add_show_prefix_cmd.
8163 * maint.c (maintenance_command, maintenance_info_command)
8164 (maintenance_check_command, maintenance_print_command)
8165 (maintenance_set_cmd, maintenance_show_cmd): Remove.
8166 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
8167 add_show_prefix_cmd.
8168 (show_per_command_cmd): Remove.
8169 * maint-test-settings.c (maintenance_set_test_settings_cmd):
8170 Remove.
8171 (maintenance_show_test_settings_cmd): Remove.
8172 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
8173 add_show_prefix_cmd.
8174 * maint-test-options.c (maintenance_test_options_command):
8175 Remove.
8176 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
8177 * macrocmd.c (macro_command): Remove
8178 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8179 * language.c (set_check, show_check): Remove.
8180 (_initialize_language): Use add_basic_prefix_cmd,
8181 add_show_prefix_cmd.
8182 * infcmd.c (unset_command): Remove.
8183 (_initialize_infcmd): Use add_basic_prefix_cmd.
8184 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8185 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8186 add_show_prefix_cmd.
8187 * go32-nat.c (go32_info_dos_command): Remove.
8188 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8189 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8190 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8191 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8192 (_initialize_frame): Use add_basic_prefix_cmd,
8193 add_show_prefix_cmd.
8194 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8195 (_initialize_dcache): Use add_basic_prefix_cmd,
8196 add_show_prefix_cmd.
8197 * cp-support.c (maint_cplus_command): Remove.
8198 (_initialize_cp_support): Use add_basic_prefix_cmd.
8199 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8200 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8201 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8202 add_basic_prefix_cmd, add_show_prefix_cmd.
8203 * breakpoint.c (save_command): Remove.
8204 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8205 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8206 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8207 add_show_prefix_cmd.
8208 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8209 (set_ada_command, show_ada_command): Remove.
8210 (_initialize_ada_language): Use add_basic_prefix_cmd,
8211 add_show_prefix_cmd.
8212 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8213
3557f442
KR
82142020-04-16 Kamil Rytarowski <n54@gmx.com>
8215
8216 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8217 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8218
16197208
SM
82192020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8220
8221 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8222 warning messages.
8223
00ac85d3
SM
82242020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8225
8226 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8227 import table is not at beginning of .idata section.
8228
381ce63f
PA
82292020-04-16 Pedro Alves <palves@redhat.com>
8230
8231 * inferior.c (delete_inferior): Use delete operator directly
8232 instead of delete_program_space.
8233 * progspace.c (add_program_space): New, factored out from
8234 program_space::program_space.
8235 (remove_program_space): New, factored out from
8236 delete_program_space.
8237 (program_space::program_space): Remove intro comment. Rewrite.
8238 (program_space::~program_space): Remove intro comment. Call
8239 remove_program_space.
8240 (delete_program_space): Delete.
8241 * progspace.h (program_space::program_space): Make explicit. Move
8242 intro comment here, adjusted.
8243 (program_space::~program_space): Move intro comment here,
8244 adjusted.
8245 (delete_program_space): Remove.
8246
a010605f
TT
82472020-04-16 Tom Tromey <tromey@adacore.com>
8248
8249 * windows-nat.c (windows_nat::handle_access_violation): New
8250 function.
8251 * nat/windows-nat.h (handle_access_violation): Declare.
8252 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8253 windows-nat.c. Call handle_access_violation.
8254
efba5c23
TV
82552020-04-16 Tom de Vries <tdevries@suse.de>
8256
8257 PR symtab/25791
8258 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8259 CUs without psymtab.
8260
97ed802d
KB
82612020-04-16 Kevin Buettner <kevinb@redhat.com>
8262
8263 * python/python.c (do_start_initialization): Don't call
8264 PyEval_InitThreads for Python 3.9 and beyond.
8265
c7d64809
KR
82662020-04-15 Kamil Rytarowski <n54@gmx.com>
8267
8268 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8269 thread functions.
8270 (obsd_nat_target::wait): Likewise.
8271
ce127a96
TT
82722020-04-15 Tom Tromey <tromey@adacore.com>
8273
8274 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8275 (DEBUG_EXCEPT): Use debug_printf.
8276
99f1bc6a
AB
82772020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8278
8279 * completer.c (class completion_tracker::completion_hash_entry)
8280 <hash_name>: New member function.
8281 (completion_tracker::discard_completions): New callback to hash a
8282 completion_hash_entry, pass this to htab_create_alloc.
8283
a0e9b532
JT
82842016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8285
8286 * windows-nat.c (windows_make_so): Warn rather than stopping with
8287 an error if realpath() fails.
8288
06ca5dd4
KR
82892020-04-14 Kamil Rytarowski <n54@gmx.com>
8290
8291 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8292 (nbsd_nat_target::info_proc): Add do_status.
8293
194d088f
TV
82942020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8295 Tom de Vries <tdevries@suse.de>
8296
8297 PR symtab/25718
8298 * psympriv.h (struct partial_symtab::read_symtab)
8299 (struct partial_symtab::expand_psymtab)
8300 (struct partial_symtab::read_dependencies): Update comments.
8301 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8302 read_symtab for includer.
8303 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8304 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8305 (struct dwarf2_include_psymtab::m_readin): Remove.
8306 (struct dwarf2_include_psymtab::includer): New member function.
8307 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8308
c1a66c06
TV
83092020-04-14 Tom de Vries <tdevries@suse.de>
8310
8311 PR symtab/25720
8312 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8313 with NULL symbol_matcher and lookup_name.
8314 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8315 and lookup_name.
8316 * dwarf2/read.c (dw2_expand_symtabs_matching)
8317 (dw2_debug_names_expand_symtabs_matching): Same.
8318 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8319 Make lookup_name a pointer. Update comment.
8320 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8321 lookup_name being a pointer.
8322 * symfile.c (expand_symtabs_matching): Same.
8323 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8324 * linespec.c (iterate_over_all_matching_symtabs): Same.
8325
400b5eca
TT
83262020-04-13 Tom Tromey <tom@tromey.com>
8327
8328 * run-on-main-thread.c: Update include.
8329 * unittests/main-thread-selftests.c: Update include.
8330 * tui/tui-win.c: Update include.
8331 * tui/tui-io.c: Update include.
8332 * tui/tui-interp.c: Update include.
8333 * tui/tui-hooks.c: Update include.
8334 * top.h: Update include.
8335 * top.c: Update include.
8336 * ser-base.c: Update include.
8337 * remote.c: Update include.
8338 * remote-notif.c: Update include.
8339 * remote-fileio.c: Update include.
8340 * record-full.c: Update include.
8341 * record-btrace.c: Update include.
8342 * python/python.c: Update include.
8343 * posix-hdep.c: Update include.
8344 * mingw-hdep.c: Update include.
8345 * mi/mi-main.c: Update include.
8346 * mi/mi-interp.c: Update include.
8347 * main.c: Update include.
8348 * linux-nat.c: Update include.
8349 * interps.c: Update include.
8350 * infrun.c: Update include.
8351 * inf-loop.c: Update include.
8352 * event-top.c: Update include.
8353 * event-loop.c: Move to ../gdbsupport/.
8354 * event-loop.h: Move to ../gdbsupport/.
8355 * async-event.h: Update include.
8356 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8357
93b54c8e
TT
83582020-04-13 Tom Tromey <tom@tromey.com>
8359
8360 * tui/tui-win.c: Include async-event.h.
8361 * remote.c: Include async-event.h.
8362 * remote-notif.c: Include async-event.h.
8363 * record-full.c: Include async-event.h.
8364 * record-btrace.c: Include async-event.h.
8365 * infrun.c: Include async-event.h.
8366 * event-top.c: Include async-event.h.
8367 * event-loop.h: Move some declarations to async-event.h.
8368 * event-loop.c: Don't include ser-event.h or top.h. Move some
8369 code to async-event.c.
8370 * async-event.h: New file.
8371 * async-event.c: New file.
8372 * Makefile.in (COMMON_SFILES): Add async-event.c.
8373 (HFILES_NO_SRCDIR): Add async-event.h.
8374
c1cd3163
TT
83752020-04-13 Tom Tromey <tom@tromey.com>
8376
8377 * utils.c (flush_streams): New function.
8378 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8379
29f2bf4f
TT
83802020-04-13 Tom Tromey <tom@tromey.com>
8381
8382 * event-loop.c (handle_file_event): Use warning, not
8383 printf_unfiltered.
8384
98029d02
TT
83852020-04-13 Tom Tromey <tom@tromey.com>
8386
8387 * event-loop.c: Include <chrono>.
8388
06cc9596
TT
83892020-04-13 Tom Tromey <tom@tromey.com>
8390
8391 * gdb_select.h: Move to ../gdbsupport/.
8392 * event-loop.c: Update include path.
8393 * top.c: Update include path.
8394 * ser-base.c: Update include path.
8395 * ui-file.c: Update include path.
8396 * ser-tcp.c: Update include path.
8397 * guile/scm-ports.c: Update include path.
8398 * posix-hdep.c: Update include path.
8399 * ser-unix.c: Update include path.
8400 * gdb_usleep.c: Update include path.
8401 * mingw-hdep.c: Update include path.
8402 * inflow.c: Update include path.
8403 * infrun.c: Update include path.
8404 * event-top.c: Update include path.
8405
8ae8e197
TT
84062020-04-13 Tom Tromey <tom@tromey.com>
8407
8408 * configure: Rebuild.
8409 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8410
58cf28e8
TT
84112020-04-13 Tom Tromey <tom@tromey.com>
8412
8413 * event-loop.h (start_event_loop): Don't declare.
8414 * event-loop.c (start_event_loop): Move...
8415 * main.c (start_event_loop): ...here. Now static.
8416
b7f999ae
SDJ
84172020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8418
8419 * MAINTAINERS: Update my email address.
8420
1085dfd4
KR
84212020-04-12 Kamil Rytarowski <n54@gmx.com>
8422
8423 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8424 IP_ALL.
8425
49d1d1f5
KR
84262020-04-12 Kamil Rytarowski <n54@gmx.com>
8427
8428 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 8429 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 8430
b4848d2a
KR
84312020-04-12 Kamil Rytarowski <n54@gmx.com>
8432
8433 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 8434 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 8435
51c133d5
KR
84362020-04-12 Kamil Rytarowski <n54@gmx.com>
8437
8438 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8439
54b8cbd0
KR
84402020-04-11 Kamil Rytarowski <n54@gmx.com>
8441
8442 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8443 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8444 (nbsd_nat_target::info_proc): New functions.
8445 * nbsd-nat.c (kinfo_get_vmmap): New function.
8446 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8447 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8448 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8449 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8450 functions.
8451 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8452 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8453 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8454 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8455 (KINFO_VME_FLAG_GROWS_DOWN): New.
8456
cf83625d
AS
84572020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8458
8459 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8460 bit shift.
8461
0c4311ab
TT
84622020-04-10 Tom Tromey <tromey@adacore.com>
8463
8464 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8465
3e65b3e9
TT
84662020-04-10 Tom Tromey <tromey@adacore.com>
8467
8468 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8469 separate debug files.
8470
13302e95
HD
84712020-04-10 Hannes Domani <ssbssa@yahoo.de>
8472
8473 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8474 Move to...
8475 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8476 ... here.
8477 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8478 Check for STATUS_WX86_BREAKPOINT.
8479 (windows_nat_target::wait): Same.
8480
bdfc1e8a
TV
84812020-04-10 Tom de Vries <tdevries@suse.de>
8482
8483 PR cli/25808
8484 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8485
f4460aec
SM
84862020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8487
8488 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8489 (Write After Approval): Remove Tom de Vries.
8490
a25198bb
BE
84912020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8492
8493 revert partially:
8494 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8495
aac66a4c
SM
8496 * buildsym.c (record_line): Fix undefined behavior and preserve
8497 lines at eof.
a25198bb 8498
206c98a6
KR
84992020-04-09 Kamil Rytarowski <n54@gmx.com>
8500
8501 * auxv.h (svr4_auxv_parse): New.
8502 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8503 and generic_auxv_parse.
8504 (svr4_auxv_parse): Add.
8505 * obsd-tdep.c: Include "auxv.h".
8506 (obsd_auxv_parse): Remove.
8507 (obsd_init_abi): Remove comment.
8508 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8509 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8510 * nbsd-tdep.c: Include "auxv.h".
8511 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8512
71fbdbaf
TT
85132020-04-08 Tom Tromey <tromey@adacore.com>
8514
8515 * nat/windows-nat.h (last_wait_event): Don't declare.
8516 (wait_for_debug_event): Update comment.
8517 * nat/windows-nat.c (last_wait_event): Now static.
8518
2c1d95e8
TT
85192020-04-08 Tom Tromey <tromey@adacore.com>
8520
8521 * windows-nat.c (wait_for_debug_event): Move to
8522 nat/windows-nat.c.
8523 * nat/windows-nat.h (wait_for_debug_event): Declare.
8524 * nat/windows-nat.c (wait_for_debug_event): Move from
8525 windows-nat.c. No longer static.
8526
d2977bc4
TT
85272020-04-08 Tom Tromey <tromey@adacore.com>
8528
8529 * windows-nat.c (get_windows_debug_event): Use
8530 fetch_pending_stop.
8531 * nat/windows-nat.h (fetch_pending_stop): Declare.
8532 * nat/windows-nat.c (fetch_pending_stop): New function.
8533
e758e19c
TT
85342020-04-08 Tom Tromey <tromey@adacore.com>
8535
8536 * windows-nat.c (windows_continue): Use matching_pending_stop and
8537 continue_last_debug_event.
8538 * nat/windows-nat.h (matching_pending_stop)
8539 (continue_last_debug_event): Declare.
8540 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8541 (matching_pending_stop, continue_last_debug_event): New
8542 functions.
8543
8d30e395
TT
85442020-04-08 Tom Tromey <tromey@adacore.com>
8545
8546 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8547 (handle_exception_result): Move to nat/windows-nat.h.
8548 (DEBUG_EXCEPTION_SIMPLE): Remove.
8549 (windows_nat::handle_ms_vc_exception): New function.
8550 (handle_exception): Move to nat/windows-nat.c.
8551 (get_windows_debug_event): Update.
8552 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8553 nat/windows-nat.c.
8554 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8555 (handle_exception_result): Move from windows-nat.c.
8556 (handle_exception): Declare.
8557 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8558 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8559 windows-nat.c.
8560
29de418d
TT
85612020-04-08 Tom Tromey <tromey@adacore.com>
8562
8563 * windows-nat.c (exception_count, event_count): Remove.
8564 (handle_exception, get_windows_debug_event)
8565 (do_initial_windows_stuff): Update.
8566
a816ba18
TT
85672020-04-08 Tom Tromey <tromey@adacore.com>
8568
8569 * windows-nat.c (windows_nat::handle_load_dll)
8570 (windows_nat::handle_unload_dll): Rename. No longer static.
8571 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8572 Declare.
8573
a00caa12
TT
85742020-04-08 Tom Tromey <tromey@adacore.com>
8575
8576 * complaints.h (stop_whining): Declare at top-level.
8577 (complaint): Don't declare stop_whining.
8578
d41b524f
TT
85792020-04-08 Tom Tromey <tromey@adacore.com>
8580
8581 * windows-nat.c (windows_nat::handle_output_debug_string):
8582 Rename. No longer static.
8583 * nat/windows-nat.h (handle_output_debug_string): Declare.
8584
3c76026d
TT
85852020-04-08 Tom Tromey <tromey@adacore.com>
8586
8587 * windows-nat.c (current_process_handle, current_process_id)
8588 (main_thread_id, last_sig, current_event, last_wait_event)
8589 (current_windows_thread, desired_stop_thread_id, pending_stops)
8590 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8591 (display_selectors, fake_create_process)
8592 (get_windows_debug_event): Update.
8593 * nat/windows-nat.h (current_process_handle, current_process_id)
8594 (main_thread_id, last_sig, current_event, last_wait_event)
8595 (current_windows_thread, desired_stop_thread_id, pending_stops)
8596 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8597 * nat/windows-nat.c (current_process_handle, current_process_id)
8598 (main_thread_id, last_sig, current_event, last_wait_event)
8599 (current_windows_thread, desired_stop_thread_id, pending_stops)
8600 (siginfo_er): New globals. Move from windows-nat.c.
8601
9d8679cc
TT
86022020-04-08 Tom Tromey <tromey@adacore.com>
8603
8604 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8605 (handle_load_dll): Update.
8606 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8607
28688adf
TT
86082020-04-08 Tom Tromey <tromey@adacore.com>
8609
8610 * windows-nat.c (enum thread_disposition_type): Move to
8611 nat/windows-nat.h.
8612 (windows_nat::thread_rec): Rename from thread_rec. No longer
8613 static.
8614 (windows_add_thread, windows_nat_target::fetch_registers)
8615 (windows_nat_target::store_registers, handle_exception)
8616 (windows_nat_target::resume, get_windows_debug_event)
8617 (windows_nat_target::get_tib_address)
8618 (windows_nat_target::thread_name)
8619 (windows_nat_target::thread_alive): Update.
8620 * nat/windows-nat.h (enum thread_disposition_type): Move from
8621 windows-nat.c.
8622 (thread_rec): Declare.
8623
4834dad0
TT
86242020-04-08 Tom Tromey <tromey@adacore.com>
8625
8626 * windows-nat.c: Add "using namespace".
8627 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8628 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8629
65bafd5b
TT
86302020-04-08 Tom Tromey <tromey@adacore.com>
8631
8632 * nat/windows-nat.h (struct windows_thread_info): Declare
8633 destructor.
8634 * nat/windows-nat.c (~windows_thread_info): New.
8635
0a4afda3
TT
86362020-04-08 Tom Tromey <tromey@adacore.com>
8637
8638 PR gdb/22992
8639 * windows-nat.c (current_event): Update comment.
8640 (last_wait_event, desired_stop_thread_id): New globals.
8641 (struct pending_stop): New.
8642 (pending_stops): New global.
8643 (windows_nat_target) <stopped_by_sw_breakpoint>
8644 <supports_stopped_by_sw_breakpoint>: New methods.
8645 (windows_fetch_one_register): Add assertions. Adjust PC.
8646 (windows_continue): Handle pending stops. Suspend other threads
8647 when stepping. Use last_wait_event
8648 (wait_for_debug_event): New function.
8649 (get_windows_debug_event): Use wait_for_debug_event. Handle
8650 pending stops. Queue spurious stops.
8651 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8652 (windows_nat_target::kill): Use wait_for_debug_event.
8653 * nat/windows-nat.h (struct windows_thread_info)
8654 <stopped_at_software_breakpoint>: New field.
8655 * nat/windows-nat.c (windows_thread_info::resume): Clear
8656 stopped_at_software_breakpoint.
8657
8e61ebec
TT
86582020-04-08 Tom Tromey <tromey@adacore.com>
8659
8660 * windows-nat.c (enum thread_disposition_type): New.
8661 (thread_rec): Replace "get_context" parameter with "disposition";
8662 change type.
8663 (windows_add_thread, windows_nat_target::fetch_registers)
8664 (windows_nat_target::store_registers, handle_exception)
8665 (windows_nat_target::resume, get_windows_debug_event)
8666 (windows_nat_target::get_tib_address)
8667 (windows_nat_target::thread_name)
8668 (windows_nat_target::thread_alive): Update.
8669
98a03287
TT
86702020-04-08 Tom Tromey <tromey@adacore.com>
8671
8672 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8673 (windows_continue): Use windows_continue::resume.
8674 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8675 resume>: Declare new methods.
8676 * nat/windows-nat.c: New file.
8677 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8678
7c7411bc
TT
86792020-04-08 Tom Tromey <tromey@adacore.com>
8680
8681 * windows-nat.c (windows_add_thread, windows_delete_thread)
8682 (windows_nat_target::fetch_registers)
8683 (windows_nat_target::store_registers, fake_create_process)
8684 (windows_nat_target::resume, windows_nat_target::resume)
8685 (get_windows_debug_event, windows_nat_target::wait)
8686 (windows_nat_target::pid_to_str)
8687 (windows_nat_target::get_tib_address)
8688 (windows_nat_target::get_ada_task_ptid)
8689 (windows_nat_target::thread_name)
8690 (windows_nat_target::thread_alive): Use lwp, not tid.
8691
2950fdf7
TT
86922020-04-08 Tom Tromey <tromey@adacore.com>
8693
8694 * windows-nat.c (handle_exception)
8695 (windows_nat_target::thread_name): Update.
8696 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8697 <name>: Now unique_xmalloc_ptr.
8698
62fe396b
TT
86992020-04-08 Tom Tromey <tromey@adacore.com>
8700
8701 * windows-nat.c (thread_rec)
8702 (windows_nat_target::fetch_registers): Update.
8703 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8704 Update comment.
8705 <debug_registers_changed, reload_context>: Now bool.
8706
e9534bd2
TT
87072020-04-08 Tom Tromey <tromey@adacore.com>
8708
8709 * windows-nat.c (windows_add_thread): Use new.
8710 (windows_init_thread_list, windows_delete_thread): Use delete.
8711 (get_windows_debug_event): Update.
8712 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8713 destructor, and initializers.
8714
ae1f8880
TT
87152020-04-08 Tom Tromey <tromey@adacore.com>
8716
8717 * windows-nat.c (struct windows_thread_info): Remove.
8718 * nat/windows-nat.h: New file.
8719
55a1e039
TT
87202020-04-08 Tom Tromey <tromey@adacore.com>
8721
8722 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8723 (thread_rec, windows_add_thread, windows_delete_thread)
8724 (windows_continue): Update.
8725
93366324
TT
87262020-04-08 Tom Tromey <tromey@adacore.com>
8727
8728 * windows-nat.c (struct windows_thread_info): Remove typedef.
8729 (thread_head): Remove.
8730 (thread_list): New global.
8731 (thread_rec, windows_add_thread, windows_init_thread_list)
8732 (windows_delete_thread, windows_continue): Update.
8733
0f2265e2
SM
87342020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8735
8736 * windows-tdep.h (windows_init_abi): Add comment.
8737 (cygwin_init_abi): New declaration.
8738 * windows-tdep.c: Split signal enumeration in two, one for
8739 Windows and one for Cygwin.
8740 (windows_gdb_signal_to_target): Only deal with signal of the
8741 Windows OS ABI.
8742 (cygwin_gdb_signal_to_target): New function.
8743 (windows_init_abi): Rename to windows_init_abi_common, don't set
8744 gdb_signal_to_target gdbarch method. Add new new function with
8745 this name.
8746 (cygwin_init_abi): New function.
8747 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8748 comment. Don't call windows_init_abi.
8749 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8750 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8751 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8752 i386_windows_init_abi_common, don't call windows_init_abi. Add
8753 a new function of this name.
8754 (i386_cygwin_init_abi): New function.
8755 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8756 OS ABI Cygwin.
8757
3810f182
SM
87582020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8759
8760 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8761 parameter.c.
8762 (dwarf2_read_gdb_index): Update.
8763
063f8e80
KR
87642020-04-07 Kamil Rytarowski <n54@gmx.com>
8765
8766 * nbsd-tdep.c: Include "objfiles.h".
8767 (nbsd_skip_solib_resolver): New.
8768 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8769
85a9510c 87702020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8771
8772 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8773 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8774 with DW_LLE_base_addressx are being emitted in DWARFv5.
8775 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8776 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8777 unsigned integer.
8778
9fc3eaae 87792020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8780
8781 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8782 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8783 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8784 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8785 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8786 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8787 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8788
8789
41144253 87902020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8791
8792 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8793 (read_loclist_index): New function definition.
8794 (lookup_loclist_base): New function definition.
8795 (read_loclist_header): New function definition.
8796 (dwarf2_cu): Add loclist_base and loclist_header field.
8797 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8798 (read_full_die_1): Read the value of DW_AT_loclists_base.
8799 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8800 (read_attribute_value): Handle DW_FORM_loclistx.
8801 (skip_one_die): Handle DW_FORM_loclistx.
8802 (loclist_header): New structure declaration.
8803 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8804
9f4e76a4
SM
88052020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8806
8807 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8808 constructor. Remove `addr` parameter from other constructor and
8809 add `per_cu` parameter.
8810 * dwarf2/read.c (create_partial_symtab): Update.
8811
25c11aca
TV
88122020-04-07 Tom de Vries <tdevries@suse.de>
8813
8814 PR symtab/25796
8815 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8816 (partial_die_info::fixup): Inherit has_const_value.
8817
5707e24b
TV
88182020-04-07 Tom de Vries <tdevries@suse.de>
8819
8820 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8821 symbols without address.
8822
05f00e22
KR
88232020-04-06 Kamil Rytarowski <n54@gmx.com>
8824
8825 * nbsd-nat.h (struct thread_info): Add forward declaration.
8826 (nbsd_nat_target::thread_alive): Add.
8827 (nbsd_nat_target::thread_name): Likewise.
8828 (nbsd_nat_target::update_thread_list): Likewise.
8829 (update_thread_list::post_attach): Likewise.
8830 (post_attach::pid_to_str): Likewise.
8831 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8832 (nbsd_thread_lister): Add.
8833 (nbsd_nat_target::thread_alive): Likewise.
8834 (nbsd_nat_target::thread_name): Likewise.
8835 (nbsd_add_threads): Likewise.
8836 (update_thread_list::post_attach): Likewise.
8837 (nbsd_nat_target::update_thread_list): Likewise.
8838 (post_attach::pid_to_str): Likewise.
8839
6ee448cc
TT
88402020-04-06 Tom Tromey <tromey@adacore.com>
8841
8842 * ada-valprint.c (print_variant_part): Extract the variant field.
8843 (print_field_values): Use the field as the outer value when
8844 recursing.
8845
dea34e8c
TT
88462020-04-06 Tom Tromey <tromey@adacore.com>
8847
8848 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
8849 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
8850 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
8851 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
8852 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
8853
93689ce9
TT
88542020-04-06 Tom Tromey <tromey@adacore.com>
8855
8856 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8857 TYPE_CODE_ERROR.
8858
79743962
KR
88592020-04-06 Kamil Rytarowski <n54@gmx.com>
8860
8861 * nbsd-tdep.c: Include "gdbarch.h".
8862 Define enum with NetBSD signal numbers.
8863 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
8864 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
8865 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
8866 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
8867 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
8868 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
8869 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
8870 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8871 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
8872 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8873 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8874 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
8875
9e7c9a03
HD
88762020-04-03 Hannes Domani <ssbssa@yahoo.de>
8877
8878 PR gdb/25325
8879 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
8880
d9e49b61
TT
88812020-04-03 Tom Tromey <tromey@adacore.com>
8882
8883 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
8884 Read constant block.
8885
e0fc5c3f
SM
88862020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8887
8888 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
8889 (gdb_bfd_get_full_section_contents): New declaration.
8890 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
8891 * windows-tdep.c (is_linked_with_cygwin_dll): Use
8892 gdb_bfd_get_full_section_contents.
8893
e2ff18a0
SM
88942020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8895
8896 * exec.c (build_section_table): Replace internal_error with
8897 gdb_assert.
8898 (section_table_xfer_memory_partial): Likewise.
8899 * mdebugread.c (parse_partial_symbols): Likewise.
8900 * psymtab.c (lookup_partial_symbol): Likewise.
8901 * utils.c (wrap_here): Likewise.
8902
0830d301
TT
89032020-04-02 Tom Tromey <tromey@adacore.com>
8904
8905 * f-lang.c (build_fortran_types): Use arch_type to initialize
8906 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8907
e7da7f8f
TT
89082020-04-02 Tom Tromey <tromey@adacore.com>
8909
8910 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8911 of attributes.
8912
c90d28ac
AB
89132020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8914 Bernd Edlinger <bernd.edlinger@hotmail.de>
8915 Tom Tromey <tromey@adacore.com>
8916
8917 * buildsym.c (buildsym_compunit::record_line): Remove
8918 deduplication code.
8919
1aa98955
TV
89202020-04-02 Tom de Vries <tdevries@suse.de>
8921
8922 PR ada/24671
8923 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8924
d3214198
TV
89252020-04-02 Tom de Vries <tdevries@suse.de>
8926
8927 * dwarf2/read.c (dwarf2_gdb_index_functions,
8928 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8929 NULL.
8930 * psymtab.c (psym_lookup_global_symbol_language): New function.
8931 (psym_functions): Init psym_lookup_global_symbol_language with
8932 psym_lookup_global_symbol_language.
8933 * symfile-debug.c (debug_sym_quick_functions): Init
8934 lookup_global_symbol_language with NULL.
8935 * symfile.c (set_initial_language): Remove fixme comment.
8936 * symfile.h (struct quick_symbol_functions): Add
8937 lookup_global_symbol_language.
8938 * symtab.c (find_quick_global_symbol_language): New function.
8939 (find_main_name): Use find_quick_global_symbol_language.
8940
2836752f
SM
89412020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8942
8943 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8944
64dc2d4b
BE
89452020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8946
8947 * buildsym.c (record_line): Fix undefined behavior and preserve
8948 lines at eof.
8949
bbe3dc41
BE
89502020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8951
8952 * buildsym.c (record_line): Fix the resizing condition.
8953
6b4a335b
TT
89542020-04-01 Tom Tromey <tom@tromey.com>
8955
8956 * value.h (value_literal_complex): Add comment.
8957 * valops.c (value_literal_complex): Refer to value.h.
8958
3638a098
TT
89592020-04-01 Tom Tromey <tom@tromey.com>
8960
8961 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8962 (scalar_type): New rule, from typebase.
8963 (typebase): Use scalar_type. Recognize complex types.
8964 (field_name): Handle FLOAT_KEYWORD.
8965 (ident_tokens): Add _Complex and __complex__.
8966
c34e8714
TT
89672020-04-01 Tom Tromey <tom@tromey.com>
8968
8969 PR exp/25299:
8970 * valarith.c (promotion_type, complex_binop): New functions.
8971 (scalar_binop): Handle complex numbers. Use promotion_type.
8972 (value_pos, value_neg, value_complement): Handle complex numbers.
8973
fa649bb7
TT
89742020-04-01 Tom Tromey <tom@tromey.com>
8975
8976 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8977 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8978 (parse_number): Handle complex numbers.
8979
981c08ce
TT
89802020-04-01 Tom Tromey <tom@tromey.com>
8981
8982 * c-valprint.c (c_decorations): Change complex suffix to "i".
8983
4c99290d
TT
89842020-04-01 Tom Tromey <tom@tromey.com>
8985
8986 * valprint.c (generic_value_print_complex): Use accessors.
8987 * value.h (value_real_part, value_imaginary_part): Declare.
8988 * valops.c (value_real_part, value_imaginary_part): New
8989 functions.
8990 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8991
5b930b45
TT
89922020-04-01 Tom Tromey <tom@tromey.com>
8993
8994 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8995 (read_range_type): Update.
8996 * mdebugread.c (basic_type): Update.
8997 * go-lang.c (build_go_types): Use init_complex_type.
8998 * gdbtypes.h (struct main_type) <complex_type>: New member.
8999 (init_complex_type): Update.
9000 (arch_complex_type): Don't declare.
9001 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
9002 Make name if none given. Use alloc_type_copy. Look for cached
9003 complex type.
9004 (arch_complex_type): Remove.
9005 (gdbtypes_post_init): Use init_complex_type.
9006 * f-lang.c (build_fortran_types): Use init_complex_type.
9007 * dwarf2/read.c (read_base_type): Update.
9008 * d-lang.c (build_d_types): Use init_complex_type.
9009 * ctfread.c (read_base_type): Update.
9010
53cccef1
TBA
90112020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9012
9013 * infrun.c (stop_all_threads): Update assertion, plus when
9014 stopping threads, take into account that we might be trying
9015 to stop an all-stop target.
9016 (stop_waiting): Call 'stop_all_threads' if there exists a
9017 non-stop target.
9018
a0714d30
TBA
90192020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9020
9021 * target.h (exists_non_stop_target): New function declaration.
9022 * target.c (exists_non_stop_target): New function.
9023
60e22c1e
HD
90242020-04-01 Hannes Domani <ssbssa@yahoo.de>
9025
9026 PR gdb/24789
9027 * eval.c (is_integral_or_integral_reference): New function.
9028 (evaluate_subexp_standard): Allow integer references in
9029 pointer arithmetic.
9030
e139a727
TBA
90312020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9032
9033 * remote.c (remote_target::remote_parse_stop_reply): Remove the
9034 check for no ptid in the stop reply when the target is non-stop.
9035
e0802d59
TT
90362020-04-01 Tom Tromey <tromey@adacore.com>
9037
9038 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
9039 "name" parameter to rvalue reference. Initialize m_name_holder.
9040 <lookup_name_info>: New overloads.
9041 <name>: Return gdb::string_view.
9042 <c_str>: New method.
9043 <make_ignore_params>: Update.
9044 <search_name_hash>: Update.
9045 <language_lookup_name>: Return const char *.
9046 <m_name>: Change type.
9047 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
9048 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
9049 (lookup_name_info::match_any): Update.
9050 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
9051 Update.
9052 * minsyms.c (linkage_name_str): Update.
9053 * language.c (default_symbol_name_matcher): Update.
9054 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
9055 Update.
9056 * ada-lang.c (ada_fold_name): Change parameter to string_view.
9057 (ada_lookup_name_info::ada_lookup_name_info): Update.
9058 (literal_symbol_name_matcher): Update.
9059
8c072cb6
TT
90602020-04-01 Tom Tromey <tromey@adacore.com>
9061
9062 * psymtab.c (psymtab_search_name): Remove function.
9063 (psym_lookup_symbol): Create search name and lookup name here.
9064 (lookup_partial_symbol): Remove "name" parameter; add
9065 lookup_name.
9066 (psym_expand_symtabs_for_function): Update.
9067
6f29a534
TT
90682020-03-31 Joel Jones <joelkevinjones@gmail.com>
9069
9070 PR tui/25597:
9071 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
9072
af62665e
TT
90732020-03-31 Tom Tromey <tromey@adacore.com>
9074
9075 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
9076 memcpy.
9077
d1a89da5
NC
90782020-03-30 Nelson Chu <nelson.chu@sifive.com>
9079
9080 * features/riscv/32bit-csr.xml: Regenerated.
9081 * features/riscv/64bit-csr.xml: Regenerated.
9082
d8af9068
TT
90832020-03-30 Tom Tromey <tromey@adacore.com>
9084
9085 * ada-valprint.c (print_variant_part): Update.
9086 * ada-lang.h (ada_which_variant_applies): Update.
9087 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
9088 outer_valaddr parameters; replace with "outer" value parameter.
9089 (to_fixed_variant_branch_type): Update.
9090
227c0bf4
PFC
90912020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9092
9093 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
9094 <list>. Remove inclusion of observable.h.
9095 (PPC_DEBUG_CURRENT_VERSION): Move up define.
9096 (struct arch_lwp_info): New struct.
9097 (class ppc_linux_dreg_interface): New class.
9098 (struct ppc_linux_process_info): New struct.
9099 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
9100 <low_new_clone, low_forget_process, low_prepare_to_resume>
9101 <copy_thread_dreg_state, mark_thread_stale>
9102 <mark_debug_registers_changed, register_hw_breakpoint>
9103 <clear_hw_breakpoint, register_wp, clear_wp>
9104 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
9105 <num_memory_accesses, get_trigger_type>
9106 <create_watchpoint_request, hwdebug_point_cmp>
9107 <init_arch_lwp_info, get_arch_lwp_info>
9108 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
9109 methods.
9110 <struct ptid_hash>: New inner struct.
9111 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
9112 members.
9113 (saved_dabr_value, hwdebug_info, max_slots_number)
9114 (struct hw_break_tuple, struct thread_points, ppc_threads)
9115 (have_ptrace_hwdebug_interface)
9116 (hwdebug_find_thread_points_by_tid)
9117 (hwdebug_insert_point, hwdebug_remove_point): Remove.
9118 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
9119 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
9120 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
9121 use m_dreg_interface.
9122 (hwdebug_point_cmp): Change to...
9123 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
9124 reference arguments instead of pointers.
9125 (ppc_linux_nat_target::ranged_break_num_registers): Use
9126 m_dreg_interface.
9127 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
9128 m_dreg_interface. Call register_hw_breakpoint.
9129 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
9130 m_dreg_interface. Call clear_hw_breakpoint.
9131 (get_trigger_type): Change to...
9132 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
9133 comment.
9134 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
9135 use m_dreg_interface. Call register_hw_breakpoint.
9136 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
9137 use m_dreg_interface. Call clear_hw_breakpoint.
9138 (can_use_watchpoint_cond_accel): Change to...
9139 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
9140 method. Update comment, use m_dreg_interface and
9141 m_process_info.
9142 (calculate_dvc): Change to...
9143 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
9144 m_dreg_interface.
9145 (num_memory_accesses): Change to...
9146 (ppc_linux_nat_target::num_memory_accesses): ...this method.
9147 (check_condition): Change to...
9148 (ppc_linux_nat_target::check_condition): ...this method.
9149 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
9150 comment, use m_dreg_interface.
9151 (create_watchpoint_request): Change to...
9152 (ppc_linux_nat_target::create_watchpoint_request): ...this
9153 method. Use m_dreg_interface.
9154 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
9155 m_dreg_interface. Call register_hw_breakpoint or register_wp.
9156 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
9157 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
9158 (ppc_linux_nat_target::low_forget_process)
9159 (ppc_linux_nat_target::low_new_fork)
9160 (ppc_linux_nat_target::low_new_clone)
9161 (ppc_linux_nat_target::low_delete_thread)
9162 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
9163 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
9164 only call mark_thread_stale.
9165 (ppc_linux_thread_exit): Remove.
9166 (ppc_linux_nat_target::stopped_data_address): Change to...
9167 (ppc_linux_nat_target::low_stopped_data_address): This. Add
9168 comment, use m_dreg_interface and m_thread_hw_breakpoints.
9169 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
9170 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
9171 comment. Call low_stopped_data_address.
9172 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
9173 m_dreg_interface.
9174 (ppc_linux_nat_target::masked_watch_num_registers): Use
9175 m_dreg_interface.
9176 (ppc_linux_nat_target::copy_thread_dreg_state)
9177 (ppc_linux_nat_target::mark_thread_stale)
9178 (ppc_linux_nat_target::mark_debug_registers_changed)
9179 (ppc_linux_nat_target::register_hw_breakpoint)
9180 (ppc_linux_nat_target::clear_hw_breakpoint)
9181 (ppc_linux_nat_target::register_wp)
9182 (ppc_linux_nat_target::clear_wp)
9183 (ppc_linux_nat_target::init_arch_lwp_info)
9184 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9185 (_initialize_ppc_linux_nat): Remove observer callback.
9186
4db10d8f
PFC
91872020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9188
9189 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9190 (ppc_linux_nat_target::auxv_parse)
9191 (ppc_linux_nat_target::read_description)
9192 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9193 Move up.
9194
1310c1b0
PFC
91952020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9196
9197 * linux-nat.h (low_new_clone): New method.
9198 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9199
69b037c3
SM
92002020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9201
9202 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9203 (dbx_expand_psymtab): ... this.
9204 (start_psymtab): Update.
9205 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9206 (mdebug_expand_psymtab): ... this.
9207 (parse_partial_symbols): Update.
9208 (new_psymtab): Update.
9209 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9210 (xcoff_expand_psymtab): ... this.
9211 (xcoff_start_psymtab): Update.
9212
48993951
SM
92132020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9214
9215 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9216 <expand_dependencies>: ... this.
9217 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9218 (partial_symtab::expand_dependencies): ... this.
9219 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9220 Update.
9221 (dwarf2_psymtab::expand_psymtab): Update.
9222 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9223 * mdebugread.c (psymtab_to_symtab_1): Update.
9224 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9225
3ad83046
SM
92262020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9227
9228 * psympriv.h (discard_psymtab): Remove.
9229 * dbxread.c (dbx_end_psymtab): Update.
9230 * xcoffread.c (xcoff_end_psymtab): Update.
9231
4d1b9ab6
TT
92322020-03-28 Tom Tromey <tom@tromey.com>
9233
9234 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9235 comment.
9236
f1749218
TT
92372020-03-28 Tom Tromey <tom@tromey.com>
9238
9239 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9240
ebea7626
HD
92412020-03-27 Hannes Domani <ssbssa@yahoo.de>
9242
9243 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9244
a879b4d5
JB
92452020-03-26 John Baldwin <jhb@FreeBSD.org>
9246
9247 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9248
0826b30a
TT
92492020-03-26 Tom Tromey <tom@tromey.com>
9250
9251 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9252 (mark_common_block_symbol_computed, read_tag_string_type)
9253 (attr_to_dynamic_prop, read_subrange_type): Update.
9254 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9255 to be methods on struct attribute.
9256 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9257 (read_call_site_scope, partial_die_info::read)
9258 (partial_die_info::read, lookup_die_type, follow_die_ref):
9259 Update.
9260 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9261 from dwarf2_get_ref_die_offset.
9262 (attribute::constant_value): New method, from
9263 dwarf2_get_attr_constant_value.
9264 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9265 Declare method.
9266 <constant_value>: New method.
9267
2b2558bf
TT
92682020-03-26 Tom Tromey <tom@tromey.com>
9269
9270 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9271 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9272 (dwarf_type_encoding_name): Move to stringify.c.
9273 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9274 * dwarf2/stringify.c: New file.
9275 * dwarf2/stringify.h: New file.
9276
eeb64781
TT
92772020-03-26 Tom Tromey <tom@tromey.com>
9278
9279 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9280 Rewrite.
9281
a39fdb41
TT
92822020-03-26 Tom Tromey <tom@tromey.com>
9283
9284 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9285 methods.
9286 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9287 (lookup_ranges_base): Likewise.
9288 (read_cutu_die_from_dwo, read_full_die_1): Update.
9289
436c571c
TT
92902020-03-26 Tom Tromey <tom@tromey.com>
9291
9292 * dwarf2/read.c (read_import_statement, read_file_scope)
9293 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9294 (read_lexical_block_scope, read_call_site_scope)
9295 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9296 (handle_struct_member_die, process_structure_scope)
9297 (update_enumeration_type_from_children)
9298 (process_enumeration_scope, read_array_type, read_common_block)
9299 (read_namespace, read_module, read_subroutine_type): Update.
9300 (sibling_die): Remove.
9301
052c8bb8
TT
93022020-03-26 Tom Tromey <tom@tromey.com>
9303
9304 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9305 (build_type_psymtabs_reader, read_structure_type)
9306 (read_enumeration_type, read_full_die_1): Update.
9307 (dwarf2_attr_no_follow): Move to die.h.
9308 * dwarf2/die.h (struct die_info) <attr>: New method.
9309
2b24b6e4
TT
93102020-03-26 Tom Tromey <tom@tromey.com>
9311
9312 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9313 <base_address>: Now an optional.
9314 (dwarf2_find_base_address, dwarf2_rnglists_process)
9315 (dwarf2_ranges_process, fill_in_loclist_baton)
9316 (dwarf2_symbol_mark_computed): Update.
9317
c2d50fd0
TT
93182020-03-26 Tom Tromey <tom@tromey.com>
9319
9320 * dwarf2/read.c (struct die_info): Move to die.h.
9321 * dwarf2/die.h: New file.
9322
0df7ad3a
TT
93232020-03-26 Tom Tromey <tom@tromey.com>
9324
9325 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9326 * dwarf2/read.c
9327 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9328 Move to line-header.c.
9329 (read_checked_initial_length_and_offset, read_formatted_entries):
9330 Likewise.
9331 (dwarf_decode_line_header): Split into two.
9332 * dwarf2/line-header.c
9333 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9334 Move from read.c.
9335 (read_checked_initial_length_and_offset, read_formatted_entries):
9336 Likewise.
9337 (dwarf_decode_line_header): New function, split from read.c.
9338
86c0bb4c
TT
93392020-03-26 Tom Tromey <tom@tromey.com>
9340
9341 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9342 Declare method.
9343 * dwarf2/read.c (read_attribute_value): Update.
9344 (dwarf2_per_objfile::read_line_string): Rename from
9345 read_indirect_line_string.
9346 (read_formatted_entries): Update.
9347
2ef46c2f
TT
93482020-03-26 Tom Tromey <tom@tromey.com>
9349
9350 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9351 variable.
9352
4f9c1eda
TT
93532020-03-26 Tom Tromey <tom@tromey.com>
9354
9355 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9356 const.
9357 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9358 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9359 parameter const.
9360
5a0e026f
TT
93612020-03-26 Tom Tromey <tom@tromey.com>
9362
9363 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9364 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9365 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9366 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9367
8844c11b
TT
93682020-03-26 Tom Tromey <tom@tromey.com>
9369
9370 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9371 file_names_size, file_full_name, file_file_name>: Use const.
9372 <file_name_at, file_names>: Add const overload.
9373 * dwarf2/line-header.c (line_header::file_file_name)
9374 (line_header::file_full_name): Update.
9375
c90ec28a
TT
93762020-03-26 Tom Tromey <tom@tromey.com>
9377
9378 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9379 (macro_start_file, consume_improper_spaces)
9380 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9381 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9382 (dwarf_decode_macros): Move to macro.c.
9383 * dwarf2/macro.c: New file.
9384 * dwarf2/macro.h: New file.
9385 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9386
4f44ae6c
TT
93872020-03-26 Tom Tromey <tom@tromey.com>
9388
9389 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9390 method.
9391 * dwarf2/section.c: New method. From
9392 read_indirect_string_at_offset_from.
9393 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9394 (read_indirect_string_at_offset_from): Move to section.c.
9395 (read_indirect_string_at_offset): Rewrite.
9396 (read_indirect_line_string_at_offset): Remove.
9397 (read_indirect_string, read_indirect_line_string)
9398 (dwarf_decode_macro_bytes): Update.
9399
a0194fa8
TT
94002020-03-26 Tom Tromey <tom@tromey.com>
9401
9402 * dwarf2/section.h (struct dwarf2_section_info)
9403 <overload_complaint>: Declare.
9404 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9405 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9406 Rename from dwarf2_section_buffer_overflow_complaint.
9407 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9408 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9409
3d27bbdb
TT
94102020-03-26 Tom Tromey <tom@tromey.com>
9411
9412 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9413 Declare.
9414 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9415 Move from read.c.
9416 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9417 to section.c.
9418
9eac9650
TT
94192020-03-26 Tom Tromey <tom@tromey.com>
9420
9421 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9422
bf80d710
TT
94232020-03-26 Tom Tromey <tom@tromey.com>
9424
9425 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9426 "builder".
9427 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9428 parameter.
9429 (dwarf_decode_macros): Update.
9430
0314b390
TT
94312020-03-26 Tom Tromey <tom@tromey.com>
9432
9433 * dwarf2/read.c (read_attribute_value): Update.
9434 (read_indirect_string_from_dwz): Move to dwz.c; change into
9435 method.
9436 (dwarf_decode_macro_bytes): Update.
9437 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9438 * dwarf2/dwz.c: New file.
9439 * Makefile.in (COMMON_SFILES): Add dwz.c.
9440
9fda78b6
TT
94412020-03-26 Tom Tromey <tom@tromey.com>
9442
9443 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9444 * dwarf2/read.c: Add include.
9445 * dwarf2/index-write.c: Add include.
9446 * dwarf2/index-cache.c: Add include.
9447 * dwarf2/dwz.h: New file.
9448
33aa3c10
TT
94492020-03-25 Tom Tromey <tom@tromey.com>
9450
9451 * compile/compile-object-load.c (get_out_value_type): Mention
9452 correct symbol name in error message.
9453
d503b685
HD
94542020-03-25 Hannes Domani <ssbssa@yahoo.de>
9455
9456 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9457
7b1eff95
TV
94582020-03-25 Tom de Vries <tdevries@suse.de>
9459
9460 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9461 * symmisc.c (dump_symtab_1): Print user and includes fields.
9462 (maintenance_info_symtabs): Same.
9463
dd895392
AB
94642020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9465
9466 PR gdb/25534
9467 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9468 (riscv_regcache_cooked_write): New function.
9469 (riscv_push_dummy_call): Use new function.
9470 (riscv_return_value): Likewise.
9471
5ab2fbf1
SM
94722020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9473
9474 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9475 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9476 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9477 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9478 * infrun.c (follow_fork): Likewise.
9479 (follow_fork_inferior): Likewise.
9480 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9481 * linux-nat.h (class linux_nat_target): Likewise.
9482 * remote.c (class remote_target) <follow_fork>: Likewise.
9483 (remote_target::follow_fork): Likewise.
9484 * target-delegates.c: Re-generate.
9485 * target.c (default_follow_fork): Likewise.
9486 (target_follow_fork): Likewise.
9487 * target.h (struct target_ops) <follow_fork>: Likewise.
9488 (target_follow_fork): Likewise.
9489
a64fafb5
TV
94902020-03-24 Tom de Vries <tdevries@suse.de>
9491
9492 * psymtab.c (maintenance_info_psymtabs): Print user field.
9493
fe26d3a3
TT
94942020-03-20 Tom Tromey <tromey@adacore.com>
9495
9496 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9497 const.
9498 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9499 const.
9500
c884cc46
SM
95012020-03-20 Simon Marchi <simon.marchi@efficios.com>
9502
9503 * ptrace.m4: Don't check for ptrace declaration.
9504 * config.in: Re-generate.
9505 * configure: Re-generate.
9506 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9507 not defined.
9508
1ff700c2
KR
95092020-03-20 Kamil Rytarowski <n54@gmx.com>
9510
9511 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9512 `PTRACE_TYPE_RET'.
9513 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9514 * sparc-nat.c (gdb_ptrace): Likewise.
9515 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9516
f7d4f0b1
TT
95172020-03-20 Tom Tromey <tromey@adacore.com>
9518
9519 * c-exp.y (lex_one_token): Fix assert.
9520
f67210ff
TT
95212020-03-20 Tom Tromey <tromey@adacore.com>
9522
9523 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9524 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9525 strncpy call.
9526
1773be9e
TT
95272020-03-20 Tom Tromey <tromey@adacore.com>
9528
9529 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9530
70304be9
TT
95312020-03-20 Tom Tromey <tromey@adacore.com>
9532
9533 * ada-valprint.c (print_variant_part): Remove parameters; switch
9534 to value-based API.
9535 (print_field_values): Likewise.
9536 (ada_val_print_struct_union): Likewise.
9537 (ada_value_print_1): Update.
9538
9faa006d
KR
95392020-03-20 Kamil Rytarowski <n54@gmx.com>
9540
9541 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9542 nbsd_nat_target instead of inf_ptrace_target.
9543 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9544 nbsd_nat_target.
9545
4a90f062
KR
95462020-03-20 Kamil Rytarowski <n54@gmx.com>
9547
9548 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9549 it to the ptrace call.
9550 * (store_registers): Likewise.
9551
95522020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
9553
9554 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9555 it to the ptrace call.
9556 * (store_registers): Likewise.
9557
2d07da27
LM
95582020-03-19 Luis Machado <luis.machado@linaro.org>
9559
9560 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9561 valid, fetch vg value from ptrace.
9562
f09db380
KR
95632020-03-19 Kamil Rytarowski <n54@gmx.com>
9564 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9565 * inf-ptrace.c: Likewise.
9566 * (gdb_ptrace): Add.
9567 * (inf_ptrace_target::resume): Update.
9568 * (inf_ptrace_target::xfer_partial): Likewise.
9569 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9570 * (inf_ptrace_peek_poke): Update.
9571
fcc7376e
KR
95722020-03-19 Kamil Rytarowski <n54@gmx.com>
9573
9574 * x86-bsd-nat.c (gdb_ptrace): New.
9575 * (x86bsd_dr_set): Add new argument `ptid'.
9576 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9577 x86bsd_dr_set_addr): Update.
9578
cada5fc9
AB
95792020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9580
9581 * remote.c (remote_target::process_stop_reply): Handle events for
9582 all threads differently.
9583
19a2740f
AB
95842020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9585
9586 * completer.c (completion_tracker::remove_completion): Define new
9587 function.
9588 * completer.h (completion_tracker::remove_completion): Declare new
9589 function.
9590 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9591 when adding a C++ function symbol.
9592
724fd9ba
AB
95932020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9594
9595 * completer.c (completion_tracker::completion_hash_entry): Define
9596 new class.
9597 (advance_to_filename_complete_word_point): Call
9598 recompute_lowest_common_denominator.
9599 (completion_tracker::completion_tracker): Call discard_completions
9600 to setup the hash table.
9601 (completion_tracker::discard_completions): Allow for being called
9602 from the constructor, pass new equal function, and element deleter
9603 when constructing the hash table. Initialise new class member
9604 variables.
9605 (completion_tracker::maybe_add_completion): Remove use of
9606 m_entries_vec, and store more information into m_entries_hash.
9607 (completion_tracker::recompute_lcd_visitor): New function, most
9608 content taken from...
9609 (completion_tracker::recompute_lowest_common_denominator):
9610 ...here, this now just visits each item in the hash calling the
9611 above visitor.
9612 (completion_tracker::build_completion_result): Remove use of
9613 m_entries_vec, call recompute_lowest_common_denominator.
9614 * completer.h (completion_tracker::have_completions): Remove use
9615 of m_entries_vec.
9616 (completion_tracker::completion_hash_entry): Declare new class.
9617 (completion_tracker::recompute_lowest_common_denominator): Change
9618 function signature.
9619 (completion_tracker::recompute_lcd_visitor): Declare new function.
9620 (completion_tracker::m_entries_vec): Delete.
9621 (completion_tracker::m_entries_hash): Initialize to NULL.
9622 (completion_tracker::m_lowest_common_denominator_valid): New
9623 member variable.
9624 (completion_tracker::m_lowest_common_denominator_max_length): New
9625 member variable.
9626
5a82b8a1
KR
96272020-03-17 Kamil Rytarowski <n54@gmx.com>
9628
9629 * regformats/regdef.h: Put reg in gdb namespace.
9630
fb516a69
KR
96312020-03-17 Kamil Rytarowski <n54@gmx.com>
9632
9633 * i386-bsd-nat.c (gdb_ptrace): New.
9634 * (i386bsd_fetch_inferior_registers,
9635 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9636 * (i386bsd_fetch_inferior_registers,
9637 i386bsd_store_inferior_registers) Use gdb_ptrace.
9638
1c0aa1fb
KR
96392020-03-17 Kamil Rytarowski <n54@gmx.com>
9640
9641 * amd64-bsd-nat.c (gdb_ptrace): New.
9642 * (amd64bsd_fetch_inferior_registers,
9643 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9644 * (amd64bsd_fetch_inferior_registers,
9645 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9646
5ccd2fb7
KR
96472020-03-17 Kamil Rytarowski <n54@gmx.com>
9648
9649 * user-regs.c (user_reg::read): Rename to...
9650 (user_reg::xread): ...this.
9651 * (append_user_reg): Rename argument `read' to `xread'.
9652 * (user_reg_add_builtin): Likewise.
9653 * (user_reg_add): Likewise.
9654 * (value_of_user_reg): Likewise.
9655
2108a63a
KR
96562020-03-17 Kamil Rytarowski <n54@gmx.com>
9657
9658 * sparc-nat.c (gdb_ptrace): New.
9659 * sparc-nat.c (sparc_fetch_inferior_registers)
9660 (sparc_store_inferior_registers) Remove obsolete comment.
9661 * sparc-nat.c (sparc_fetch_inferior_registers)
9662 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9663 * sparc-nat.c (sparc_fetch_inferior_registers)
9664 (sparc_store_inferior_registers) Use gdb_ptrace.
9665
a225c9a8
KR
96662020-03-17 Kamil Rytarowski <n54@gmx.com>
9667
9668 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9669 it to the ptrace call.
9670 * sh-nbsd-nat.c (store_registers): Likewise.
9671
98097623
KR
96722020-03-17 Kamil Rytarowski <n54@gmx.com>
9673
9674 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9675 nbsd_nat_target instead of inf_ptrace_target.
9676 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9677 nbsd_nat_target.
9678
9e38d619
KR
96792020-03-17 Kamil Rytarowski <n54@gmx.com>
9680
9681 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9682
a2ecbe9f
KR
96832020-03-17 Kamil Rytarowski <n54@gmx.com>
9684
9685 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9686 <sys/sysctl.h>.
9687 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9688
58990295
TV
96892020-03-17 Tom de Vries <tdevries@suse.de>
9690
9691 PR gdb/23710
9692 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9693 fields.
9694 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9695 fields.
9696 (process_imported_unit_die): Skip import of c++ CUs.
9697
771dd3a8
TT
96982020-03-16 Tom Tromey <tom@tromey.com>
9699
9700 * p-valprint.c (pascal_object_print_value): Initialize
9701 base_value.
9702
817a7585
AK
97032020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9704 Shahab Vahedi <shahab@synopsys.com>
9705
9706 * Makefile.in: Add arch/arc.o
9707 * configure.tgt: Likewise.
9708 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9709 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 9710 (arc_read_description): New function to cache target descriptions.
817a7585
AK
9711 * arc-tdep.h (arc_read_description): Add proto type.
9712 * arch/arc.c: New file.
9713 * arch/arc.h: Likewise.
9714 * features/Makefile: Replace old target descriptions with new.
9715 * features/arc-arcompact.c: Remove.
9716 * features/arc-arcompact.xml: Likewise.
9717 * features/arc-v2.c: Likewise
9718 * features/arc-v2.xml: Likewise
9719 * features/arc/aux-arcompact.xml: New file.
9720 * features/arc/aux-v2.xml: Likewise.
9721 * features/arc/core-arcompact.xml: Likewise.
9722 * features/arc/core-v2.xml: Likewise.
9723 * features/arc/aux-arcompact.c: Generate.
9724 * features/arc/aux-v2.c: Likewise.
9725 * features/arc/core-arcompact.c: Likewise.
9726 * features/arc/core-v2.c: Likewise.
9727 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9728
67430cd0
TT
97292020-03-16 Tom Tromey <tromey@adacore.com>
9730
9731 PR gdb/25663:
9732 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9733 putting value into bcache.
9734
30efb6c7
SM
97352020-03-16 Simon Marchi <simon.marchi@efficios.com>
9736
9737 PR gdb/21500
9738 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9739 to...
9740 (amd64_windows_init_abi_common): ... this. Don't set size of
9741 long type.
9742 (amd64_windows_init_abi): New function.
9743 (amd64_cygwin_init_abi): New function.
9744 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9745 the Cygwin OS ABI.
9746 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9747 comment.
9748
8db52437
SM
97492020-03-16 Simon Marchi <simon.marchi@efficios.com>
9750
9751 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9752 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9753 (pe_import_directory_entry): New struct type.
9754 (is_linked_with_cygwin_dll): New function.
9755 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9756 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9757 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9758
5982a56a
SM
97592020-03-16 Simon Marchi <simon.marchi@efficios.com>
9760
9761 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9762 i386_cygwin_core_osabi_sniffer.
9763
7a1998df
SM
97642020-03-16 Simon Marchi <simon.marchi@efficios.com>
9765
9766 * i386-cygwin-tdep.c: Rename to...
9767 * i386-windows-tdep.c: ... this.
9768 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9769 i386-windows-tdep.c.
9770 * configure.tgt: Likewise.
9771
053205cc
SM
97722020-03-16 Simon Marchi <simon.marchi@efficios.com>
9773
9774 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9775 * osabi.c (gdb_osabi_names): Add "Windows".
9776 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9777 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9778 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9779 i386_cygwin_osabi_sniffer.
9780 (_initialize_i386_cygwin_tdep): Register OS ABI
9781 GDB_OSABI_WINDOWS for i386.
9782 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9783 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9784 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9785 for x86-64.
9786 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9787 when the target matches '*-*-mingw*'.
9788
fe4b2ee6
SM
97892020-03-16 Simon Marchi <simon.marchi@efficios.com>
9790
9791 * defs.h (enum gdb_osabi): Move to...
9792 * osabi.h (enum gdb_osabi): ... here.
9793 * gdbarch.sh: Include osabi.h in gdbarch.h.
9794 * gdbarch.h: Re-generate.
9795
cb9b645d
SM
97962020-03-16 Simon Marchi <simon.marchi@efficios.com>
9797
9798 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9799 function.
9800 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9801
3293bbaf
TT
98022020-03-14 Tom Tromey <tom@tromey.com>
9803
9804 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9805 for C++.
9806 (c_type_print_modifier): Likewise. Add "language" parameter.
9807 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9808 (c_type_print_base_1): Update.
9809 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9810 constants.
9811 * type-stack.c (type_stack::insert): Handle tp_atomic and
9812 tp_restrict.
9813 (type_stack::follow_type_instance_flags): Likewise.
9814 (type_stack::follow_types): Likewise. Merge type-following code.
9815 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9816 (space_identifier, cv_with_space_id)
9817 (const_or_volatile_or_space_identifier_noopt)
9818 (const_or_volatile_or_space_identifier): Remove.
9819 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9820 rules.
9821 (ptr_operator, typebase): Update.
9822 (enum token_flag) <FLAG_C>: New constant.
9823 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9824 "_Atomic".
9825 (lex_one_token): Handle FLAG_C.
9826
154151a6
KR
98272020-03-14 Kamil Rytarowski <n54@gmx.com>
9828
9829 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9830 it to the ptrace call.
9831 * m68k-bsd-nat.c (store_registers): Likewise.
9832
bc107784
KR
98332020-03-14 Kamil Rytarowski <n54@gmx.com>
9834
9835 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9836 gdb_byte *.
9837 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9838 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9839 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9840
01a80117
KR
98412020-03-14 Kamil Rytarowski <n54@gmx.com>
9842
9843 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
9844 nbsd_nat_target instead of inf_ptrace_target.
9845 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9846 nbsd_nat_target.
9847
f90280ca
KR
98482020-03-14 Kamil Rytarowski <n54@gmx.com>
9849
9850 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
9851 register_t.
9852
6def66f1
KR
98532020-03-14 Kamil Rytarowski <n54@gmx.com>
9854
9855 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9856 it to the ptrace call.
9857 * alpha-bsd-nat.c (store_registers): Likewise.
9858
66eaca97
KR
98592020-03-14 Kamil Rytarowski <n54@gmx.com>
9860
9861 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
9862 includes.
9863 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
9864 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
9865 fill_fpregset): Likewise.
9866
4fed520b
KR
98672020-03-14 Kamil Rytarowski <n54@gmx.com>
9868
9869 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
9870 nbsd_nat_target instead of inf_ptrace_target.
9871 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9872 nbsd_nat_target.
9873
2190cf06
KR
98742020-03-14 Kamil Rytarowski <n54@gmx.com>
9875
9876 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
9877 register_t.
9878
75c56d3d
KR
98792020-03-14 Kamil Rytarowski <n54@gmx.com>
9880
9881 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
9882 it to the ptrace call.
9883 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
9884 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
9885 * arm-nbsd-nat.c (store_register): Likewise.
9886 * arm-nbsd-nat.c (store_regs): Likewise.
9887 * arm-nbsd-nat.c (store_fp_register): Likewise.
9888 * arm-nbsd-nat.c (store_fp_regs): Likewise.
9889
6018d381
KR
98902020-03-14 Kamil Rytarowski <n54@gmx.com>
9891
9892 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
9893 nbsd_nat_target instead of inf_ptrace_target.
9894 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9895 nbsd_nat_target.
9896
013f99f0
KR
98972020-03-14 Kamil Rytarowski <n54@gmx.com>
9898
9899 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9900 it to the ptrace call.
9901 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9902
12753073
KR
99032020-03-14 Kamil Rytarowski <n54@gmx.com>
9904
6227b330
KR
9905 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9906 it to the ptrace call.
9907 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9908
99092020-03-14 Kamil Rytarowski <n54@gmx.com>
9910
9911 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9912 gdb_byte *.
12753073
KR
9913 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9914
d5be5fa4
KR
99152020-03-14 Kamil Rytarowski <n54@gmx.com>
9916
9917 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9918 instead of inf_ptrace_target.
9919 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9920 nbsd_nat_target.
9921
8110f842
KR
99222020-03-14 Kamil Rytarowski <n54@gmx.com>
9923
9924 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9925 register_t.
9926
52feded7
KR
99272020-03-14 Kamil Rytarowski <n54@gmx.com>
9928
9929 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9930 register_t.
9931
25567eee
KR
99322020-03-14 Kamil Rytarowski <n54@gmx.com>
9933
9934 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9935 register_t.
9936
426a9c18
TT
99372020-03-13 Tom Tromey <tom@tromey.com>
9938
9939 * value.h (val_print): Don't declare.
9940 * valprint.h (val_print_array_elements)
9941 (val_print_scalar_formatted, generic_val_print): Don't declare.
9942 * valprint.c (generic_val_print_array): Take a struct value.
9943 (generic_val_print_ptr, generic_val_print_memberptr)
9944 (generic_val_print_bool, generic_val_print_int)
9945 (generic_val_print_char, generic_val_print_complex)
9946 (generic_val_print): Remove.
9947 (generic_value_print): Update.
9948 (do_val_print): Remove unused parameters. Don't call
9949 la_val_print.
9950 (val_print): Remove.
9951 (common_val_print): Update. Don't call value_check_printable.
9952 (val_print_scalar_formatted, val_print_array_elements): Remove.
9953 * rust-lang.c (rust_val_print): Remove.
9954 (rust_language_defn): Update.
9955 * p-valprint.c (pascal_val_print): Remove.
9956 (pascal_value_print_inner): Update.
9957 (pascal_object_print_val_fields, pascal_object_print_val):
9958 Remove.
9959 (pascal_object_print_static_field): Update.
9960 * p-lang.h (pascal_val_print): Don't declare.
9961 * p-lang.c (pascal_language_defn): Update.
9962 * opencl-lang.c (opencl_language_defn): Update.
9963 * objc-lang.c (objc_language_defn): Update.
9964 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9965 * m2-lang.h (m2_val_print): Don't declare.
9966 * m2-lang.c (m2_language_defn): Update.
9967 * language.h (struct language_defn) <la_val_print>: Remove.
9968 * language.c (unk_lang_value_print_inner): Rename. Change
9969 argument types.
9970 (unknown_language_defn, auto_language_defn): Update.
9971 * go-valprint.c (go_val_print): Remove.
9972 * go-lang.h (go_val_print): Don't declare.
9973 * go-lang.c (go_language_defn): Update.
9974 * f-valprint.c (f_val_print): Remove.
9975 * f-lang.h (f_value_print): Don't declare.
9976 * f-lang.c (f_language_defn): Update.
9977 * d-valprint.c (d_val_print): Remove.
9978 * d-lang.h (d_value_print): Don't declare.
9979 * d-lang.c (d_language_defn): Update.
9980 * cp-valprint.c (cp_print_value_fields)
9981 (cp_print_value_fields_rtti, cp_print_value): Remove.
9982 (cp_print_static_field): Update.
9983 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9984 (c_val_print_struct, c_val_print_union, c_val_print_int)
9985 (c_val_print_memberptr, c_val_print): Remove.
9986 * c-lang.h (c_val_print_array, cp_print_value_fields)
9987 (cp_print_value_fields_rtti): Don't declare.
9988 * c-lang.c (c_language_defn, cplus_language_defn)
9989 (asm_language_defn, minimal_language_defn): Update.
9990 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9991 (ada_val_print_enum): Take a struct value.
9992 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9993 (ada_val_print): Remove.
9994 (ada_value_print_1): Update.
9995 (printable_val_type): Remove.
9996 * ada-lang.h (ada_val_print): Don't declare.
9997 * ada-lang.c (ada_language_defn): Update.
9998
42331a1e
TT
99992020-03-13 Tom Tromey <tom@tromey.com>
10000
10001 * valprint.c (do_val_print): Update.
10002 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
10003 a struct value.
10004 (value_to_value_object_no_release): Declare.
10005 * python/py-value.c (value_to_value_object_no_release): New
10006 function.
10007 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
10008 struct value.
10009 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
10010 function.
10011 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
10012 a struct value.
10013 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
10014 Declare.
10015 (gdbscm_apply_val_pretty_printer): Take a struct value.
10016 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
10017 value.
10018 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
10019 value.
10020 * extension-priv.h (struct extension_language_ops)
10021 <apply_val_pretty_printer>: Take a struct value.
10022 * cp-valprint.c (cp_print_value): Create a struct value.
10023 (cp_print_value): Update.
10024
3a916a97
TT
100252020-03-13 Tom Tromey <tom@tromey.com>
10026
10027 * ada-valprint.c (print_field_values): Call common_val_print.
10028
b59eac37
TT
100292020-03-13 Tom Tromey <tom@tromey.com>
10030
10031 * ada-valprint.c (val_print_packed_array_elements): Remove
10032 bitoffset and val parameters. Call common_val_print.
10033 (ada_val_print_string): Remove offset, address, and original_value
10034 parameters.
10035 (ada_val_print_array): Update.
10036 (ada_value_print_array): New function.
10037 (ada_value_print_1): Call it.
10038
03371129
TT
100392020-03-13 Tom Tromey <tom@tromey.com>
10040
10041 * ada-valprint.c (ada_value_print): Use common_val_print.
10042
2e088f8b
TT
100432020-03-13 Tom Tromey <tom@tromey.com>
10044
10045 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
10046
39ef85a8
TT
100472020-03-13 Tom Tromey <tom@tromey.com>
10048
10049 * ada-valprint.c (ada_value_print_num): New function.
10050 (ada_value_print_1): Use it.
10051
b9fa6e07
TT
100522020-03-13 Tom Tromey <tom@tromey.com>
10053
10054 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
10055
416595d6
TT
100562020-03-13 Tom Tromey <tom@tromey.com>
10057
10058 * ada-valprint.c (ada_value_print_ptr): New function.
10059 (ada_value_print_1): Use it.
10060
5b5e15ec
TT
100612020-03-13 Tom Tromey <tom@tromey.com>
10062
10063 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
10064 call common_val_print.
10065 (ada_val_print_1): Update.
10066 (ada_value_print_1): New function.
10067 (ada_value_print_inner): Rewrite.
10068
fbf54e75
TT
100692020-03-13 Tom Tromey <tom@tromey.com>
10070
10071 * cp-valprint.c (cp_print_value_fields): Update.
10072 (cp_print_value): New function.
10073
64b653ca
TT
100742020-03-13 Tom Tromey <tom@tromey.com>
10075
10076 * m2-valprint.c (m2_value_print_inner): Use
10077 cp_print_value_fields.
10078 * cp-valprint.c (cp_print_value_fields): New function.
10079 * c-valprint.c (c_value_print_struct): New function.
10080 (c_value_print_inner): Use c_value_print_struct.
10081 * c-lang.h (cp_print_value_fields): Declare.
10082
6999f067
TT
100832020-03-13 Tom Tromey <tom@tromey.com>
10084
10085 * c-valprint.c (c_value_print_array): New function.
10086 (c_value_print_inner): Use it.
10087
ce80b8bd
TT
100882020-03-13 Tom Tromey <tom@tromey.com>
10089
10090 * c-valprint.c (c_value_print_memberptr): New function.
10091 (c_value_print_inner): Use it.
10092
2faac269
TT
100932020-03-13 Tom Tromey <tom@tromey.com>
10094
10095 * c-valprint.c (c_value_print_int): New function.
10096 (c_value_print_inner): Use it.
10097
da3e2c29
TT
100982020-03-13 Tom Tromey <tom@tromey.com>
10099
10100 * c-valprint.c (c_value_print_ptr): New function.
10101 (c_value_print_inner): Use it.
10102
50836231
TT
101032020-03-13 Tom Tromey <tom@tromey.com>
10104
10105 * c-valprint.c (c_value_print_inner): Rewrite.
10106
4f412b6e
TT
101072020-03-13 Tom Tromey <tom@tromey.com>
10108
10109 * valprint.c (generic_value_print_complex): New function.
10110 (generic_value_print): Use it.
10111
f5354008
TT
101122020-03-13 Tom Tromey <tom@tromey.com>
10113
10114 * valprint.c (generic_val_print_float): Don't call
10115 val_print_scalar_formatted.
10116 (generic_val_print, generic_value_print): Update.
10117
3eec3b05
TT
101182020-03-13 Tom Tromey <tom@tromey.com>
10119
10120 * valprint.c (generic_value_print_char): New function
10121 (generic_value_print): Use it.
10122
fdddfccb
TT
101232020-03-13 Tom Tromey <tom@tromey.com>
10124
10125 * valprint.c (generic_value_print_int): New function.
10126 (generic_value_print): Use it.
10127
6dde7521
TT
101282020-03-13 Tom Tromey <tom@tromey.com>
10129
10130 * valprint.c (generic_value_print_bool): New function.
10131 (generic_value_print): Use it.
10132
4112d2e6
TT
101332020-03-13 Tom Tromey <tom@tromey.com>
10134
10135 * valprint.c (generic_val_print_func): Simplify.
10136 (generic_val_print, generic_value_print): Update.
10137
65786af6
TT
101382020-03-13 Tom Tromey <tom@tromey.com>
10139
10140 * valprint.c (generic_val_print_flags): Remove.
10141 (generic_val_print, generic_value_print): Update.
10142 (val_print_type_code_flags): Add original_value parameter.
10143
40f3ce18
TT
101442020-03-13 Tom Tromey <tom@tromey.com>
10145
10146 * valprint.c (generic_val_print): Update.
10147 (generic_value_print): Update.
10148 * valprint.c (generic_val_print_enum): Don't call
10149 val_print_scalar_formatted.
10150
2a5b130b
TT
101512020-03-13 Tom Tromey <tom@tromey.com>
10152
10153 * valprint.c (generic_value_print): Call generic_value_print_ptr.
10154 * valprint.c (generic_value_print_ptr): New function.
10155
abc66ce9
TT
101562020-03-13 Tom Tromey <tom@tromey.com>
10157
10158 * valprint.c (generic_value_print): Rewrite.
10159
07a32858
TT
101602020-03-13 Tom Tromey <tom@tromey.com>
10161
10162 * p-valprint.c (pascal_object_print_value_fields)
10163 (pascal_object_print_value): New functions.
10164
64d64d3a
TT
101652020-03-13 Tom Tromey <tom@tromey.com>
10166
10167 * p-valprint.c (pascal_value_print_inner): Rewrite.
10168
6a95a1f5
TT
101692020-03-13 Tom Tromey <tom@tromey.com>
10170
10171 * f-valprint.c (f_value_print_innner): Rewrite.
10172
59fcdac6
TT
101732020-03-13 Tom Tromey <tom@tromey.com>
10174
10175 * m2-valprint.c (m2_print_unbounded_array): New overload.
10176 (m2_print_unbounded_array): Update.
10177 (m2_print_array_contents): Take a struct value.
10178 (m2_value_print_inner): Rewrite.
10179
d133c3e1
TT
101802020-03-13 Tom Tromey <tom@tromey.com>
10181
10182 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10183 (d_value_print_inner): New function.
10184 * d-lang.h (d_value_print_inner): Declare.
10185 * d-lang.c (d_language_defn): Use d_value_print_inner.
10186
23b0f06b
TT
101872020-03-13 Tom Tromey <tom@tromey.com>
10188
10189 * go-valprint.c (go_value_print_inner): New function.
10190 * go-lang.h (go_value_print_inner): Declare.
10191 * go-lang.c (go_language_defn): Use go_value_print_inner.
10192
5f56f7cb
TT
101932020-03-13 Tom Tromey <tom@tromey.com>
10194
10195 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10196 API.
10197 (rust_val_print): Rewrite.
10198 (rust_value_print_inner): New function, from rust_val_print.
10199 (rust_language_defn): Use rust_value_print_inner.
10200
26792ee0
TT
102012020-03-13 Tom Tromey <tom@tromey.com>
10202
10203 * ada-valprint.c (ada_value_print_inner): New function.
10204 * ada-lang.h (ada_value_print_inner): Declare.
10205 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10206
24051bbe
TT
102072020-03-13 Tom Tromey <tom@tromey.com>
10208
10209 * f-valprint.c (f_value_print_innner): New function.
10210 * f-lang.h (f_value_print_innner): Declare.
10211 * f-lang.c (f_language_defn): Use f_value_print_innner.
10212
c0941be6
TT
102132020-03-13 Tom Tromey <tom@tromey.com>
10214
10215 * p-valprint.c (pascal_value_print_inner): New function.
10216 * p-lang.h (pascal_value_print_inner): Declare.
10217 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10218
62c4663d
TT
102192020-03-13 Tom Tromey <tom@tromey.com>
10220
10221 * m2-valprint.c (m2_value_print_inner): New function.
10222 * m2-lang.h (m2_value_print_inner): Declare.
10223 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10224
62182190
TT
102252020-03-13 Tom Tromey <tom@tromey.com>
10226
10227 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10228 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10229 * c-valprint.c (c_value_print_inner): New function.
10230 * c-lang.h (c_value_print_inner): Declare.
10231 * c-lang.c (c_language_defn, cplus_language_defn)
10232 (asm_language_defn, minimal_language_defn): Use
10233 c_value_print_inner.
10234
1e592a8a
TT
102352020-03-13 Tom Tromey <tom@tromey.com>
10236
10237 * p-valprint.c (pascal_object_print_value_fields): Now static.
10238 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10239
7fe471e9
TT
102402020-03-13 Tom Tromey <tom@tromey.com>
10241
10242 * c-valprint.c (c_val_print_array): Simplify.
10243
d121c6ce
TT
102442020-03-13 Tom Tromey <tom@tromey.com>
10245
10246 * valprint.c (value_print_array_elements): New function.
10247 * valprint.h (value_print_array_elements): Declare.
10248
4dba70ee
TT
102492020-03-13 Tom Tromey <tom@tromey.com>
10250
10251 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10252 * mips-tdep.c (mips_print_register): Use
10253 value_print_scalar_formatted.
10254
4f9ae810
TT
102552020-03-13 Tom Tromey <tom@tromey.com>
10256
10257 * valprint.h (value_print_scalar_formatted): Declare.
10258 * valprint.c (value_print_scalar_formatted): New function.
10259
156bfec9
TT
102602020-03-13 Tom Tromey <tom@tromey.com>
10261
10262 * valprint.h (generic_value_print): Declare.
10263 * valprint.c (generic_value_print): New function.
10264
2b4e573d
TT
102652020-03-13 Tom Tromey <tom@tromey.com>
10266
10267 * valprint.c (do_val_print): Call la_value_print_inner, if
10268 available.
10269 * rust-lang.c (rust_language_defn): Update.
10270 * p-lang.c (pascal_language_defn): Update.
10271 * opencl-lang.c (opencl_language_defn): Update.
10272 * objc-lang.c (objc_language_defn): Update.
10273 * m2-lang.c (m2_language_defn): Update.
10274 * language.h (struct language_defn) <la_value_print_inner>: New
10275 member.
10276 * language.c (unknown_language_defn, auto_language_defn): Update.
10277 * go-lang.c (go_language_defn): Update.
10278 * f-lang.c (f_language_defn): Update.
10279 * d-lang.c (d_language_defn): Update.
10280 * c-lang.c (c_language_defn, cplus_language_defn)
10281 (asm_language_defn, minimal_language_defn): Update.
10282 * ada-lang.c (ada_language_defn): Update.
10283
a1f6a07c
TT
102842020-03-13 Tom Tromey <tom@tromey.com>
10285
10286 * c-valprint.c (c_value_print): Use common_val_print.
10287
410cf315
TT
102882020-03-13 Tom Tromey <tom@tromey.com>
10289
10290 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10291
72a45c93
TT
102922020-03-13 Tom Tromey <tom@tromey.com>
10293
10294 * f-valprint.c (f77_print_array_1, f_val_print): Use
10295 common_val_print.
10296
040f66bd
TT
102972020-03-13 Tom Tromey <tom@tromey.com>
10298
10299 * riscv-tdep.c (riscv_print_one_register_info): Use
10300 common_val_print.
10301
a6e05a6c
TT
103022020-03-13 Tom Tromey <tom@tromey.com>
10303
10304 * mi/mi-main.c (output_register): Use common_val_print.
10305
3444c526
TT
103062020-03-13 Tom Tromey <tom@tromey.com>
10307
10308 * infcmd.c (default_print_one_register_info): Use
10309 common_val_print.
10310
c2a44efe
TT
103112020-03-13 Tom Tromey <tom@tromey.com>
10312
10313 * valprint.h (common_val_print_checked): Declare.
10314 * valprint.c (common_val_print_checked): New function.
10315 * stack.c (print_frame_arg): Use common_val_print_checked.
10316
b0c26e99
TT
103172020-03-13 Tom Tromey <tom@tromey.com>
10318
10319 * valprint.c (do_val_print): New function, from val_print.
10320 (val_print): Use do_val_print.
10321 (common_val_print): Use do_val_print.
10322
ce3acbe9
TT
103232020-03-13 Tom Tromey <tom@tromey.com>
10324
10325 * valprint.c (value_print): Use scoped_value_mark.
10326
96c7f873
TV
103272020-03-13 Tom de Vries <tdevries@suse.de>
10328
10329 PR symtab/25646
10330 * psymtab.c (partial_symtab::partial_symtab): Don't set
10331 globals_offset and statics_offset. Push element onto
10332 current_global_psymbols and current_static_psymbols stacks.
10333 (concat): New function.
10334 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10335 element from current_global_psymbols and current_static_psymbols
10336 stacks. Concat popped elements to global_psymbols and
10337 static_symbols.
10338 (add_psymbol_to_list): Use current_global_psymbols and
10339 current_static_psymbols stacks.
10340 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10341 current_static_psymbols fields.
10342
6ba0a321
CB
103432020-03-12 Christian Biesinger <cbiesinger@google.com>
10344
10345 * corelow.c (sniff_core_bfd): Remove.
10346 (class core_target) <m_core_vec>: Remove.
10347 (core_target::core_target): Update.
10348 (core_file_fns): Remove.
10349 (deprecated_add_core_fns): Remove.
10350 (default_core_sniffer): Remove.
10351 (sniff_core_bfd): Remove.
10352 (default_check_format): Remove.
10353 (gdb_check_format): Remove.
10354 (core_target_open): Update.
10355 (core_target::get_core_register_section): Update.
10356 (get_core_registers_cb): Update.
10357 (core_target::fetch_registers): Update.
10358 * gdbcore.h (struct core_fns): Remove.
10359 (deprecated_add_core_fns): Remove.
10360 (default_core_sniffer): Remove.
10361 (default_check_format): Remove.
10362
227031b2
TT
103632020-03-12 Tom Tromey <tom@tromey.com>
10364
10365 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10366 CORE_ADDR.
10367 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10368
53807e9f
TT
103692020-03-12 Tom Tromey <tom@tromey.com>
10370
10371 * remote.c (remote_target::download_tracepoint)
10372 (remote_target::enable_tracepoint)
10373 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10374 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10375 sprintf_vma.
10376
64f25102
TT
103772020-03-12 Tom Tromey <tom@tromey.com>
10378
10379 * symfile-mem.c: Update CORE_ADDR size assert.
10380
272cd5a3
SM
103812020-03-12 Simon Marchi <simon.marchi@efficios.com>
10382
10383 * selftest.m4: Move to gdbsupport/.
10384 * acinclude.m4: Update path to selftest.m4.
10385
74cd3f9d
SM
103862020-03-12 Simon Marchi <simon.marchi@efficios.com>
10387
10388 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10389 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10390 gdbarch-selfselftests.c and selftest-arch.c.
10391 (SUBDIR_UNITTESTS_OBS): Rename to...
10392 (SELFTESTS_OBS): ... this.
10393 (COMMON_SFILES): Remove disasm-selftests.c and
10394 gdbarch-selftests.c.
10395 * configure.ac: Don't add selftest-arch.{c,o} to
10396 CONFIG_{SRCS,OBS}.
10397 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10398 preprocessor conditions.
10399
db6878ac
SM
104002020-03-12 Simon Marchi <simon.marchi@efficios.com>
10401
10402 * configure.ac: Don't source bfd/development.sh.
10403 * selftest.m4: Modify comment.
10404 * configure: Re-generate.
10405
4d696a5c
SM
104062020-03-12 Simon Marchi <simon.marchi@efficios.com>
10407
10408 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10409 not "true" or "false".
10410 * configure: Re-generate.
10411
8dd8e1c7
CB
104122020-03-12 Christian Biesinger <cbiesinger@google.com>
10413
10414 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10415 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10416 renamed to arm_nbsd_supply_gregset.
10417 (fetch_register): Update to call arm_nbsd_supply_gregset.
10418 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10419 (arm_netbsd_nat_target::fetch_registers): Update.
10420 (fetch_elfcore_registers): Removed.
10421 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10422 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10423 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10424 not require NetBSD system headers.
10425 (arm_nbsd_regset): New struct.
10426 (arm_nbsd_iterate_over_regset_sections): New function.
10427 (arm_netbsd_init_abi_common): Updated to call
10428 set_gdbarch_iterate_over_regset_sections.
10429 * arm-nbsd-tdep.h: New file.
10430
dd69bf7a
KB
104312020-03-11 Kevin Buettner <kevinb@redhat.com>
10432
10433 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10434 recursion.
10435
a0761e34
SM
104362020-03-11 Simon Marchi <simon.marchi@efficios.com>
10437
10438 * configure: Re-generate.
10439
e7a82140
TT
104402020-03-11 Tom Tromey <tromey@adacore.com>
10441
10442 * ada-typeprint.c (print_choices): Fix comment.
10443
dcc050c8
AB
104442020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10445
10446 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10447 previous item in the list, when the list has no items.
10448
1c33af77
TV
104492020-03-11 Tom de Vries <tdevries@suse.de>
10450
10451 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10452 PROP_LOCLIST handling code.
10453
8c95582d
AB
104542020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10455
10456 * buildsym-legacy.c (record_line): Pass extra parameter to
10457 record_line.
10458 * buildsym.c (buildsym_compunit::record_line): Take an extra
10459 parameter, reduce duplication in the line table, and record the
10460 is_stmt flag in the line table.
10461 * buildsym.h (buildsym_compunit::record_line): Add extra
10462 parameter.
10463 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10464 non-statement lines.
10465 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10466 this to the symtab builder.
10467 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10468 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10469 through to dwarf_record_line_1.
10470 * infrun.c (process_event_stop_test): When stepping, don't stop at
10471 a non-statement instruction, and only refresh the step info when
10472 we land in the middle of a line's range. Also add an extra
10473 comment.
10474 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10475 field.
10476 * record-btrace.c (btrace_find_line_range): Only record lines
10477 marked as is-statement.
10478 * stack.c (frame_show_address): Show the frame address if we are
10479 in a non-statement sal.
10480 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10481 (maintenance_print_one_line_table): Print a header for the is_stmt
10482 column, and include is_stmt information in the output.
10483 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10484 preference to non-statements.
10485 (find_pcs_for_symtab_line): Prefer is-statement entries.
10486 (find_line_common): Likewise.
10487 * symtab.h (struct linetable_entry): Add is_stmt field.
10488 (struct symtab_and_line): Likewise.
10489 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10490 arranging the line table.
10491
e4003a34
TV
104922020-03-07 Tom de Vries <tdevries@suse.de>
10493
10494 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10495 DIE.
10496
e8932576
TT
104972020-03-07 Tom Tromey <tom@tromey.com>
10498
10499 * valops.c (value_literal_complex): Remove obsolete comment.
10500 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10501 comment.
10502
29734269
SM
105032020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10504
10505 * infrun.h: Forward-declare thread_info.
10506 (set_step_info): Add thread_info parameter, add doc.
10507 * infrun.c (set_step_info): Add thread_info parameter, move doc
10508 to header.
10509 * infrun.c (process_event_stop_test): Pass thread to
10510 set_step_info call.
10511 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10512 set_step_info.
10513 (prepare_one_step): Add thread_info parameter, pass it to
10514 set_step_frame and prepare_one_step (recursive) call.
10515 (step_1): Pass thread to prepare_one_step call.
10516 (step_command_fsm::should_stop): Pass thread to
10517 prepare_one_step.
10518 (until_next_fsm): Pass thread to set_step_frame call.
10519 (finish_command): Pass thread to set_step_info call.
10520
b7d64b29
HD
105212020-03-06 Hannes Domani <ssbssa@yahoo.de>
10522
10523 * windows-tdep.c (windows_solib_create_inferior_hook):
10524 Check if inferior is running.
10525
09f2921c
TV
105262020-03-06 Tom de Vries <tdevries@suse.de>
10527
10528 * NEWS: Fix "the the".
10529 * ctfread.c: Same.
10530
fd760e79
TV
105312020-03-06 Tom de Vries <tdevries@suse.de>
10532
10533 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10534
20ea4a60
AB
105352020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10536
10537 * .dir-locals.el: Add a comment referencing the other copies of
10538 this file.
10539
0afbabf0
JB
105402020-03-05 John Baldwin <jhb@FreeBSD.org>
10541
10542 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10543 psargs.
10544
842806cb
TBA
105452020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10546
10547 * .gitattributes: New file.
10548
be1e3d3e
TT
105492020-03-04 Tom Tromey <tom@tromey.com>
10550
10551 * symmisc.c (print_symbol_bcache_statistics)
10552 (print_objfile_statistics): Update.
10553 * symfile.c (allocate_symtab): Use intern.
10554 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10555 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10556 macro_cache>: Remove.
10557 <string_cache>: New member.
10558 (struct objfile) <intern>: New methods.
10559 * elfread.c (elf_symtab_read): Use intern.
10560 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10561 (dwarf2_compute_name, dwarf2_physname)
10562 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10563 names.
10564 (guess_partial_die_structure_name): Update.
10565 (partial_die_info::fixup): Intern name.
10566 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10567 name.
10568 (dwarf2_name): Intern name. Update.
10569 * buildsym.c (buildsym_compunit::get_macro_table): Use
10570 string_cache.
10571
4e7625fd
TT
105722020-03-04 Tom Tromey <tom@tromey.com>
10573
10574 * jit.c (bfd_open_from_target_memory): Make "target" const.
10575 * corefile.c (gnutarget): Now const.
10576 * gdbcore.h (gnutarget): Now const.
10577
46f9f931
HD
105782020-03-04 Hannes Domani <ssbssa@yahoo.de>
10579
10580 * NEWS: Mention support for WOW64 processes.
10581 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10582 (amd64_windows_segment_register_p): Remove static.
10583 (_initialize_amd64_windows_nat): Update.
10584 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10585 * i386-windows-nat.c (context_offset): Update.
10586 (i386_mappings): Rename and remove static.
10587 (i386_windows_segment_register_p): Remove static.
10588 (_initialize_i386_windows_nat): Update.
10589 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10590 (STATUS_WX86_SINGLE_STEP): New macro.
10591 (EnumProcessModulesEx): New macro.
10592 (Wow64SuspendThread): New macro.
10593 (Wow64GetThreadContext): New macro.
10594 (Wow64SetThreadContext): New macro.
10595 (Wow64GetThreadSelectorEntry): New macro.
10596 (windows_set_context_register_offsets): Add static.
10597 (windows_set_segment_register_p): Likewise.
10598 (windows_add_thread): Adapt for WOW64 processes.
10599 (windows_fetch_one_register): Likewise.
10600 (windows_nat_target::fetch_registers): Likewise.
10601 (windows_store_one_register): Likewise.
10602 (display_selector): Likewise.
10603 (display_selectors): Likewise.
10604 (handle_exception): Likewise.
10605 (windows_continue): Likewise.
10606 (windows_nat_target::resume): Likewise.
10607 (windows_add_all_dlls): Likewise.
10608 (do_initial_windows_stuff): Likewise.
10609 (windows_nat_target::attach): Likewise.
10610 (windows_get_exec_module_filename): Likewise.
10611 (windows_nat_target::create_inferior): Likewise.
10612 (windows_xfer_siginfo): Likewise.
10613 (_initialize_loadable): Initialize Wow64SuspendThread,
10614 Wow64GetThreadContext, Wow64SetThreadContext,
10615 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10616 * windows-nat.h (windows_set_context_register_offsets):
10617 Remove declaration.
10618 (windows_set_segment_register_p): Likewise.
10619 (i386_windows_segment_register_p): Add declaration.
10620 (amd64_windows_segment_register_p): Likewise.
10621
440cf44e
LM
106222020-03-04 Luis Machado <luis.machado@linaro.org>
10623
10624 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10625 in "info registers" for AArch64/ARM.
10626
10627 The change caused "info registers" to not print GPR's.
10628
10629 gdb/ChangeLog:
10630
10631 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10632
10633 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10634 when reg->group is empty and reggroup is not.
10635
1009d92f
TT
106362020-03-03 Tom Tromey <tromey@adacore.com>
10637
10638 * dwarf2/frame.c (struct dwarf2_frame_cache)
10639 <checked_tailcall_bottom, entry_cfa_sp_offset,
10640 entry_cfa_sp_offset_p>: Remove members.
10641 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10642 (dwarf2_frame_prev_register): Don't call
10643 dwarf2_tailcall_sniffer_first.
10644 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10645 * frame-unwind.c (add_unwinder): New fuction.
10646 (frame_unwind_init): Use it. Add tailcall unwinder.
10647
5e5d66b6
AB
106482020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10649 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10650
10651 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10652 value should be printed as true.
10653
584cf46d
HD
106542020-03-03 Hannes Domani <ssbssa@yahoo.de>
10655
10656 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10657 (windows_init_abi): Set and use windows_so_ops.
10658
7b973adc
SDJ
106592020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10660
10661 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10662 when verifying if dealing with a convenience variable.
10663
bb7b70ab
LM
106642020-03-03 Luis Machado <luis.machado@linaro.org>
10665
10666 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10667
9822cb57
SM
106682020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10669
10670 * infrun.c (gdbarch_supports_displaced_stepping): New.
10671 (use_displaced_stepping): Break up conditions in smaller pieces.
10672 Use gdbarch_supports_displaced_stepping.
10673 (displaced_step_prepare_throw): Use
10674 gdbarch_supports_displaced_stepping.
10675
63e163f2
AB
106762020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10677
10678 * NEWS: Mention new behaviour of the history filename.
10679 * top.c (write_history_p): Add comment.
10680 (show_write_history_p): Add header comment, give a different
10681 message when history writing is on, but the history filename is
10682 empty.
10683 (history_filename): Add comment.
10684 (history_filename_empty): New function.
10685 (show_history_filename): Add header comment, give a different
10686 message when the filename is empty.
10687 (init_history): Compare history_filename against nullptr, and only
10688 read history if the filename is not empty.
10689 (set_history_filename): Add header comment, and only make
10690 non-empty filenames absolute.
10691 (init_main): Make the filename argument to 'set history filename'
10692 optional.
10693
81b86b97
CB
106942020-03-02 Christian Biesinger <cbiesinger@google.com>
10695
10696 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10697 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10698 (fetch_fp_register): Update.
10699 (fetch_fp_regs): Update.
10700 (store_fp_register): Update.
10701 (store_fp_regs): Update.
10702 (arm_netbsd_nat_target::read_description): New function.
10703 (fetch_elfcore_registers): Update.
10704
24ed6739
AB
107052020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10706
10707 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10708 general_thread if the stop reply is missing a thread-id.
10709 (remote_target::process_stop_reply): Use the first non-exited
10710 thread if the target didn't pass a thread-id.
10711 * infrun.c (do_target_wait): Move call to
10712 switch_to_inferior_no_thread to ....
10713 (do_target_wait_1): ... here.
10714
a84bb2a0
JT
107152020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10716
10717 * debuginfod-support.c: Include defs.h first.
10718
658dadf0
TV
107192020-02-28 Tom de Vries <tdevries@suse.de>
10720
10721 * symfile.c (set_initial_language): Use default language for lookup.
10722
4ebe4877
SM
107232020-02-28 Simon Marchi <simon.marchi@efficios.com>
10724
10725 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10726 reader variable, pass `this` to read_cutu_die_from_dwo.
10727
e5da1139
AM
107282020-02-27 Aaron Merey <amerey@redhat.com>
10729
10730 * source.c (open_source_file): Check for nullptr when computing
10731 srcpath.
10732
317f7127
TT
107332020-02-27 Tom Tromey <tromey@adacore.com>
10734
10735 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10736 member.
10737 (dwarf2_add_field): Don't update nfields.
10738 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10739
3104d9ee
AB
107402020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10741
10742 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10743 abs.
10744
b83470bf
TT
107452020-02-26 Tom Tromey <tom@tromey.com>
10746
10747 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10748 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10749 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10750 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10751 per_cu_data.
10752
edfe0a0c
TT
107532020-02-26 Tom Tromey <tom@tromey.com>
10754
10755 * dwarf2/index-write.c (psym_index_map): Change type.
10756 (add_address_entry_worker, write_one_signatured_type)
10757 (recursively_count_psymbols, recursively_write_psymbols)
10758 (class debug_names, psyms_seen_size, write_gdbindex)
10759 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10760
0d79cdc4
AM
107612020-02-26 Aaron Merey <amerey@redhat.com>
10762
10763 * Makefile.in: Handle optional debuginfod support.
10764 * NEWS: Update.
10765 * README: Add --with-debuginfod summary.
10766 * config.in: Regenerate.
10767 * configure: Regenerate.
10768 * configure.ac: Handle optional debuginfod support.
10769 * debuginfod-support.c: debuginfod helper functions.
10770 * debuginfod-support.h: Ditto.
10771 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10772 summary.
10773 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10774 when a dwz file cannot be found.
10775 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10776 debuginfo file cannot be found.
10777 * source.c (open_source_file): Query debuginfod servers when a
10778 source file cannot be found.
10779 * top.c (print_gdb_configuration): Include
10780 --{with,without}-debuginfod in the output.
10781
b65ce565
JG
107822020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10783
10784 * thread.c (thr_try_catch_cmd): Print thread name.
10785
d4c9a4f8
SM
107862020-02-26 Simon Marchi <simon.marchi@efficios.com>
10787
10788 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10789 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10790 dwarf2_fetch_die_type_sect_off): Move to...
10791 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10792 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10793 dwarf2_fetch_die_type_sect_off): ... here.
10794 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10795 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10796 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10797
0dce4280
TV
107982020-02-26 Tom de Vries <tdevries@suse.de>
10799
10800 PR gdb/25603
10801 * symfile.c (set_initial_language): Exit-early if
10802 language_mode == language_mode_manual.
10803
450a1bfc
SM
108042020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10805
10806 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10807 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10808 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10809
9e80cfa1
AB
108102020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10811
10812 * gdbtypes.c (create_array_type_with_stride): Handle negative
10813 array strides.
10814 * valarith.c (value_subscripted_rvalue): Likewise.
10815
09624f1f
LM
108162020-02-25 Luis Machado <luis.machado@linaro.org>
10817
10818 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10819
8cb5117c
SM
108202020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10821
10822 * loc.h (dwarf2_get_die_type): Move to...
10823 * read.h (dwarf2_get_die_type): ... here.
10824 * read.c (dwarf2_get_die_type): Move doc to header.
10825
c325c44e
JB
108262020-02-25 Joel Brobecker <brobecker@adacore.com>
10827
10828 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10829 'gnulib/Makefile.in' to the list.
10830
4ac93832
TT
108312020-02-24 Tom Tromey <tom@tromey.com>
10832
10833 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10834 Remove.
10835 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10836 XOBNEWVEC.
10837
197400e8
TT
108382020-02-24 Tom Tromey <tom@tromey.com>
10839
10840 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10841 New method.
10842 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10843 (dw2_do_instantiate_symtab, dw2_get_file_names)
10844 (build_type_psymtab_dependencies, load_full_type_unit): Update.
10845
76935768
TT
108462020-02-24 Tom Tromey <tom@tromey.com>
10847
10848 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
10849 make_scoped_restore.
10850 (dwarf2_psymtab::read_symtab): Don't clear
10851 reading_partial_symbols.
10852
a88ef40d
TV
108532020-02-24 Tom de Vries <tdevries@suse.de>
10854
10855 PR gdb/25592
10856 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10857
c9af6521
TV
108582020-02-24 Tom de Vries <tdevries@suse.de>
10859
10860 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
10861 commands layout next/prev/regs.
10862
5707a07a
TT
108632020-02-22 Tom Tromey <tom@tromey.com>
10864
10865 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
10866 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
10867
3b0fb49e
TT
108682020-02-22 Tom Tromey <tom@tromey.com>
10869
10870 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
10871
283be8bf
TT
108722020-02-22 Tom Tromey <tom@tromey.com>
10873
10874 * tui/tui-win.c (_initialize_tui_win): Add usage text.
10875 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
10876 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
10877 * tui/tui.c (_initialize_tui): Add usage text.
10878
ca793b96
TT
108792020-02-22 Tom Tromey <tom@tromey.com>
10880
10881 * tui/tui-win.c (tui_set_focus_command)
10882 (tui_set_win_height_command): Use error_no_arg.
10883 (_initialize_tui_win): Update help text.
10884 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
10885
432b5c40
TT
108862020-02-22 Tom Tromey <tom@tromey.com>
10887
10888 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
10889 * tui/tui-disasm.h (struct tui_disasm_window)
10890 <display_start_addr>: Declare.
10891 * tui/tui-source.h (struct tui_source_window)
10892 <display_start_addr>: Declare.
10893 * tui/tui-winsource.h (struct tui_source_window_base)
10894 <show_source_line, display_start_addr>: New methods.
10895 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
10896 Rename and move to protected section.
10897 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
10898 (tui_source_window_base::do_erase_source_content): Update.
10899 (tui_source_window_base::show_source_line): Now a method.
10900 (tui_source_window_base::show_source_content)
10901 (tui_source_window_base::tui_source_window_base)
10902 (tui_source_window_base::rerender)
10903 (tui_source_window_base::refill)
10904 (tui_source_window_base::do_scroll_horizontal)
10905 (tui_source_window_base::set_is_exec_point_at)
10906 (tui_source_window_base::update_breakpoint_info)
10907 (tui_source_window_base::update_exec_info): Update.
10908 * tui/tui-source.c (tui_source_window::set_contents)
10909 (tui_source_window::showing_source_p)
10910 (tui_source_window::do_scroll_vertical)
10911 (tui_source_window::location_matches_p)
10912 (tui_source_window::line_is_displayed): Update.
10913 (tui_source_window::display_start_addr): New method.
10914 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10915 (tui_disasm_window::do_scroll_vertical)
10916 (tui_disasm_window::location_matches_p): Update.
10917 (tui_disasm_window::display_start_addr): New method.
10918
01b1af32
TT
109192020-02-22 Tom Tromey <tom@tromey.com>
10920
10921 * NEWS: Add entry for gdb.register_window_type.
10922 * tui/tui-layout.h (window_factory): New typedef.
10923 (tui_register_window): Declare.
10924 * tui/tui-layout.c (saved_tui_windows): New global.
10925 (tui_apply_current_layout): Use it.
10926 (tui_register_window): New function.
10927 * python/python.c (do_start_initialization): Call
10928 gdbpy_initialize_tui.
10929 (python_GdbMethods): Add "register_window_type" function.
10930 * python/python-internal.h (gdbpy_register_tui_window)
10931 (gdbpy_initialize_tui): Declare.
10932 * python/py-tui.c: New file.
10933 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10934
fc96d20b
TT
109352020-02-22 Tom Tromey <tom@tromey.com>
10936
10937 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10938
935c78c0
TT
109392020-02-22 Tom Tromey <tom@tromey.com>
10940
10941 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10942 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10943 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10944 (tui_set_win_focus_to): Move from tui-win.c.
10945
0240c8f1
TT
109462020-02-22 Tom Tromey <tom@tromey.com>
10947
10948 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10949 functions.
10950 (known_window_types): New global.
10951 (tui_get_window_by_name): Reimplement.
10952 (initialize_known_windows): New function.
10953 (validate_window_name): Rewrite.
10954 (_initialize_tui_layout): Call initialize_known_windows.
10955
fdb01f0c
TT
109562020-02-22 Tom Tromey <tom@tromey.com>
10957
10958 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10959 Remove constants.
10960 * tui/tui-winsource.h (struct tui_source_window_base)
10961 <tui_source_window_base>: Remove parameter.
10962 * tui/tui-winsource.c
10963 (tui_source_window_base::tui_source_window_base): Remove
10964 parameter.
10965 (tui_source_window_base::refill): Update.
10966 * tui/tui-stack.h (struct tui_locator_window)
10967 <tui_locator_window>: Update.
10968 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10969 Default the constructor.
10970 * tui/tui-regs.h (struct tui_data_item_window)
10971 <tui_data_item_window>: Default the constructor.
10972 (struct tui_data_window) <tui_data_window>: Likewise.
10973 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10974 Default the constructor.
10975 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10976 Default the constructor.
10977 <type>: Remove.
10978 (struct tui_win_info) <tui_win_info>: Default the constructor.
10979 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10980 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10981 Default the constructor.
10982
865a5aec
TT
109832020-02-22 Tom Tromey <tom@tromey.com>
10984
10985 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10986 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10987 * tui/tui-win.c (tui_resize_all): Don't call
10988 tui_delete_invisible_windows.
10989 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10990 done.
10991 (tui_set_layout): Update.
10992 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10993 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10994 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10995
e098d18c
TT
109962020-02-22 Tom Tromey <tom@tromey.com>
10997
10998 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10999 correctly.
11000
eb9c8874
TT
110012020-02-22 Tom Tromey <tom@tromey.com>
11002
11003 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
11004
7eed1a8e
TT
110052020-02-22 Tom Tromey <tom@tromey.com>
11006
11007 * tui/tui-winsource.h (struct tui_source_window_iterator)
11008 <inner_iterator>: New etytypedef.
11009 <tui_source_window_iterator>: Take "end" parameter.
11010 <tui_source_window_iterator>: Take iterator.
11011 <operator*, advance>: Update.
11012 <m_iter>: Change type.
11013 <m_end>: New field.
11014 (struct tui_source_windows) <begin, end>: Update.
11015 * tui/tui-layout.c (tui_windows): New global.
11016 (tui_apply_current_layout): Clear tui_windows.
11017 (tui_layout_window::apply): Update tui_windows.
11018 * tui/tui-data.h (tui_windows): Declare.
11019 (all_tui_windows): Now inline function.
11020 (class tui_window_iterator, struct all_tui_windows): Remove.
11021
7c043ba6
TT
110222020-02-22 Tom Tromey <tom@tromey.com>
11023
11024 PR tui/17850:
11025 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
11026 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
11027 "height" argument.
11028 (class tui_layout_window) <get_sizes>: Likewise.
11029 (class tui_layout_split) <tui_layout_split>: Add "vertical"
11030 argument.
11031 <get_sizes>: Add "height" argument.
11032 <m_vertical>: New field.
11033 * tui/tui-layout.c (tui_layout_split::clone): Update.
11034 (tui_layout_split::get_sizes): Add "height" argument.
11035 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
11036 (tui_new_layout_command): Parse "-horizontal".
11037 (_initialize_tui_layout): Update help string.
11038 (tui_layout_split::specification): Add "-horizontal" when needed.
11039 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
11040 argument.
11041 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
11042 New methods.
11043
6bc56648
TT
110442020-02-22 Tom Tromey <tom@tromey.com>
11045
11046 * tui/tui-layout.h (enum tui_adjust_result): New.
11047 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
11048 (class tui_layout_window) <adjust_size>: Return
11049 tui_adjust_result. Rewrite.
11050 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
11051 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
11052
c22fef7e
TT
110532020-02-22 Tom Tromey <tom@tromey.com>
11054
11055 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
11056 parameter and return types.
11057 (class tui_layout_base) <specification>: Add "depth".
11058 (class tui_layout_window) <specification>: Add "depth".
11059 (class tui_layout_split) <specification>: Add "depth".
11060 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
11061 and return types.
11062 (tui_new_layout_command): Parse sub-layouts.
11063 (_initialize_tui_layout): Update help string.
11064 (tui_layout_window::specification): Add "depth".
11065 (add_layout_command): Update.
11066
ee325b61
TT
110672020-02-22 Tom Tromey <tom@tromey.com>
11068
11069 * NEWS: Add "tui new-layout" item.
11070 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
11071 Add new-layout command to help text.
11072 (validate_window_name): New function.
11073 (tui_new_layout_command): New function.
11074 (_initialize_tui_layout): Register "new-layout".
11075 (tui_layout_window::specification): New method.
11076 (tui_layout_window::specification): New method.
11077 * tui/tui-layout.h (class tui_layout_base) <specification>: New
11078 method.
11079 (class tui_layout_window) <specification>: New method.
11080 (class tui_layout_split) <specification>: New method.
11081
416eb92d
TT
110822020-02-22 Tom Tromey <tom@tromey.com>
11083
11084 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
11085 * tui/tui-win.c (window_name_completer): Update comment.
11086 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
11087 Declare method.
11088 (class tui_layout_window) <replace_window>: Likewise.
11089 (class tui_layout_split) <replace_window>: Likewise.
11090 (tui_set_layout): Don't declare.
11091 (tui_set_initial_layout): Declare function.
11092 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
11093 (asm_regs_layout): New globals.
11094 (tui_current_layout, show_layout): Remove.
11095 (tui_set_layout, tui_add_win_to_layout): Rewrite.
11096 (find_layout, tui_apply_layout): New function.
11097 (layout_completer): Remove.
11098 (tui_next_layout): Reimplement.
11099 (tui_next_layout_command): New function.
11100 (tui_set_initial_layout, tui_prev_layout_command): New functions.
11101 (tui_regs_layout): Reimplement.
11102 (tui_regs_layout_command): New function.
11103 (extract_display_start_addr): Rewrite.
11104 (next_layout, prev_layout): Remove.
11105 (tui_layout_window::replace_window): New method.
11106 (tui_layout_split::replace_window): New method.
11107 (destroy_layout): New function.
11108 (layout_list): New global.
11109 (add_layout_command): New function.
11110 (initialize_layouts): Update.
11111 (tui_layout_command): New function.
11112 (_initialize_tui_layout): Install "layout" commands.
11113 * tui/tui-data.h (enum tui_layout_type): Remove.
11114 (tui_current_layout): Don't declare.
11115
0dbc2fc7
TT
111162020-02-22 Tom Tromey <tom@tromey.com>
11117
11118 * tui/tui-regs.c (tui_reg_layout): Remove.
11119 (tui_reg_command): Use tui_regs_layout.
11120 * tui/tui-layout.h (tui_reg_command): Declare.
11121 * tui/tui-layout.c (tui_reg_command): New function.
11122
5afe342e
TT
111232020-02-22 Tom Tromey <tom@tromey.com>
11124
11125 * tui/tui.c (tui_rl_delete_other_windows): Call
11126 tui_remove_some_windows.
11127 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
11128 Declare method.
11129 (class tui_layout_window) <remove_windows>: New method.
11130 (class tui_layout_split) <remove_windows>: Declare.
11131 (tui_remove_some_windows): Declare.
11132 * tui/tui-layout.c (tui_remove_some_windows): New function.
11133 (tui_layout_split::remove_windows): New method.
11134
427326a8
TT
111352020-02-22 Tom Tromey <tom@tromey.com>
11136
11137 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
11138 * tui/tui-layout.h (tui_next_layout): Declare.
11139 * tui/tui-layout.c (tui_next_layout): New function.
11140
3fe12b6d
TT
111412020-02-22 Tom Tromey <tom@tromey.com>
11142
11143 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
11144 correct coordinates.
11145
59b8b5d2
TT
111462020-02-22 Tom Tromey <tom@tromey.com>
11147
11148 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
11149 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
11150 DATA_WIN case.
11151
2a3d458b
TT
111522020-02-22 Tom Tromey <tom@tromey.com>
11153
11154 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
11155 TUI_DISASM_WIN, not tui_win_list.
11156
3f0cbb04
TT
111572020-02-22 Tom Tromey <tom@tromey.com>
11158
11159 * valprint.c (generic_val_print_enum_1)
11160 (val_print_type_code_flags): Style member names.
11161 * rust-lang.c (val_print_struct, rust_print_enum)
11162 (rust_print_struct_def, rust_internal_print_type): Style member
11163 names.
11164 * p-valprint.c (pascal_object_print_value_fields): Style member
11165 names. Only call fprintf_symbol_filtered for static members.
11166 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
11167 * f-valprint.c (f_val_print): Style member names.
11168 * f-typeprint.c (f_type_print_base): Style member names.
11169 * cp-valprint.c (cp_print_value_fields): Style member names. Only
11170 call fprintf_symbol_filtered for static members.
11171 (cp_print_class_member): Style member names.
11172 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
11173 member names.
11174 * ada-valprint.c (ada_print_scalar): Style enum names.
11175 (ada_val_print_enum): Likewise.
11176 * ada-typeprint.c (print_enum_type): Style enum names.
11177
d4d947ae
TT
111782020-02-21 Tom Tromey <tom@tromey.com>
11179
11180 * psympriv.h (struct partial_symtab): Update comment.
11181
e94e944b
TT
111822020-02-21 Tom Tromey <tromey@adacore.com>
11183
11184 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11185 type is CORE_ADDR.
11186
1eb73179
TV
111872020-02-21 Tom de Vries <tdevries@suse.de>
11188
11189 PR gdb/25534
11190 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11191 if dependencies[i]->user != NULL.
11192
4f180d53
AT
111932020-02-21 Ali Tamur <tamur@google.com>
11194
11195 * dwarf2/read.c (dwarf2_name): Add null check.
11196
22b6cd70
TT
111972020-02-20 Tom Tromey <tom@tromey.com>
11198
11199 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11200 ">=", in binary search.
11201 (dwarf2_find_containing_comp_unit): New overload.
11202 (run_test): New self-test.
11203 (_initialize_dwarf2_read): Register new test.
11204
bd0cf5a6
NC
112052020-02-20 Nelson Chu <nelson.chu@sifive.com>
11206
11207 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11208 * riscv-tdep.h: Likewise.
11209 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11210 rv32-only CSR.
11211 * features/riscv/64bit-csr.xml: Regenerated.
11212
3f702acd
SDJ
112132020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11214 Tom Tromey <tom@tromey.com>
11215
11216 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11217 of 'fputc_unfiltered'.
11218 (putchar_unfiltered): Call 'fputc_unfiltered'.
11219 (fputc_unfiltered): Call 'fputs_unfiltered'.
11220
d13c7322
AB
112212020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11222
11223 * config.in: Regenerate.
11224 * configure: Regenerate.
11225 * configure.ac: Add --with-python-libdir option.
11226 * main.c: Use WITH_PYTHON_LIBDIR.
11227
869d8950
TT
112282020-02-19 Tom Tromey <tom@tromey.com>
11229
11230 * symtab.c (general_symbol_info::compute_and_set_names): Use
11231 obstack_strndup. Simplify call to symbol_set_demangled_name.
11232
298e9637
SM
112332020-02-19 Simon Marchi <simon.marchi@efficios.com>
11234
11235 * dwarf2/read.c (allocate_signatured_type_table,
11236 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11237 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11238 Remove objfile parameter, update all callers.
11239
08410482
DE
112402020-02-19 Doug Evans <dje@google.com>
11241
11242 PR rust/25535
11243 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11244 rust_enum_variant calculation.
11245
dfdeeca1
TT
112462020-02-19 Tom Tromey <tromey@adacore.com>
11247
11248 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11249
2ef5453b
TT
112502020-02-19 Tom Tromey <tromey@adacore.com>
11251
11252 * ada-lang.c (cache_symbol): Use obstack_strdup.
11253
9f1528a1
AB
112542020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11255
11256 * configure: Regenerate.
11257
d3c22fa8
TT
112582020-02-19 Tom Tromey <tromey@adacore.com>
11259
11260 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11261 NULL check.
11262
bf84f706
MR
112632020-02-19 Maciej W. Rozycki <macro@wdc.com>
11264
11265 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11266
d1c9b20f
AB
112672020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11268
11269 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11270 if GDBSERVER is not defined.
11271 (riscv_tdesc_cache): Likewise, also store const target_desc.
11272 (STATIC_IN_GDB): Define.
11273 (riscv_create_target_description): Update declaration with
11274 STATIC_IN_GDB.
11275 (riscv_lookup_target_description): New function, only define if
11276 GDBSERVER is not defined.
11277 * arch/riscv.h (riscv_create_target_description): Declare only
11278 when GDBSERVER is defined.
11279 (riscv_lookup_target_description): New declaration when GDBSERVER
11280 is not defined.
11281 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11282 (riscv_linux_read_features): ...this, and return
11283 riscv_gdbarch_features instead of target_desc.
11284 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11285 (riscv_linux_read_description): Rename to...
11286 (riscv_linux_read_features): ...this.
11287 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11288 Update to use riscv_gdbarch_features and
11289 riscv_lookup_target_description.
11290 * riscv-tdep.c (riscv_find_default_target_description): Use
11291 riscv_lookup_target_description instead of
11292 riscv_create_target_description.
11293
373d7ac0
SM
112942020-02-18 Simon Marchi <simon.marchi@efficios.com>
11295
11296 * valprint.c (generic_val_print_enum_1): When printing a flag
11297 enum with value 0 and there is no enumerator with value 0, print
11298 just "0" instead of "(unknown: 0x0)".
11299
b29a2df0
SM
113002020-02-18 Simon Marchi <simon.marchi@efficios.com>
11301
11302 * valprint.c (generic_val_print_enum_1): Print unknown part of
11303 flag enum in hex.
11304
6740f0cc
SM
113052020-02-18 Simon Marchi <simon.marchi@efficios.com>
11306
11307 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11308 flag enums to contain duplicate enumerators.
11309 * valprint.c (generic_val_print_enum_1): Update comment.
11310
edd45eb0
SM
113112020-02-18 Simon Marchi <simon.marchi@efficios.com>
11312
11313 * dwarf2/read.c: Include "count-one-bits.h".
11314 (update_enumeration_type_from_children): If an enumerator has
11315 multiple bits set, don't treat the enumeration as a "flag enum".
11316 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11317 of flag enums have 0 or 1 bit set.
11318
6d0cf446
BE
113192020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11320
11321 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11322 conversion.
11323 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11324 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11325 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11326 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11327 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11328
7001c1b7
SM
113292020-02-18 Simon Marchi <simon.marchi@efficios.com>
11330
11331 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11332
fdb61c6c
SM
113332020-02-14 Simon Marchi <simon.marchi@efficios.com>
11334
11335 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11336 displaced_step_closure_up.
11337 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11338 (struct displaced_step_closure_up):
11339 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11340 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11341 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11342 Likewise.
11343 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11344 * gdbarch.c, gdbarch.h: Re-generate.
11345 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11346 displaced_step_closure_up.
11347 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11348 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11349 * infrun.h (displaced_step_closure_up): New type alias.
11350 (struct displaced_step_inferior_state) <step_closure>: Change
11351 type to displaced_step_closure_up.
11352 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11353 displaced_step_closure_up.
11354 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11355
a4a38eb4
TT
113562020-02-14 Tom Tromey <tom@tromey.com>
11357
11358 * minidebug.c (gnu_debug_key): New global.
11359 (find_separate_debug_file_in_section): Use it.
11360
e8217e61
SM
113612020-02-14 Simon Marchi <simon.marchi@efficios.com>
11362
11363 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11364 std::unique_ptr.
11365 * gdbarch.c: Re-generate.
11366 * gdbarch.h: Re-generate.
11367 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11368 change.
11369 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11370 type to std::unique_ptr.
11371 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11372 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11373 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11374 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11375 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11376 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11377 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11378 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11379 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11380
d8d83535
SM
113812020-02-14 Simon Marchi <simon.marchi@efficios.com>
11382
11383 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11384 std::unique_ptr.
11385 (displaced_step_clear): Rename to...
11386 (displaced_step_reset): ... this. Just call displaced->reset ().
11387 (displaced_step_clear_cleanup): Rename to...
11388 (displaced_step_reset_cleanup): ... this.
11389 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11390 (displaced_step_fixup): Likewise.
11391 (resume_1): Likewise.
11392 (handle_inferior_event): Restore child's memory before calling
11393 displaced_step_fixup on the parent.
11394 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11395 to std::unique_ptr.
11396 <step_closure>: Change type to std::unique_ptr.
11397
5f661e03
SM
113982020-02-14 Simon Marchi <simon.marchi@efficios.com>
11399
11400 * arm-tdep.c: Include count-one-bits.h.
11401 (cleanup_block_store_pc): Use count_one_bits.
11402 (cleanup_block_load_pc): Use count_one_bits.
11403 (arm_copy_block_xfer): Use count_one_bits.
11404 (thumb2_copy_block_xfer): Use count_one_bits.
11405 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11406 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11407 (thumb_get_next_pcs_raw): Use count_one_bits.
11408 (arm_get_next_pcs_raw): Use count_one_bits_l.
11409 * arch/arm.c (bitcount): Remove.
11410 * arch/arm.h (bitcount): Remove.
11411
8084e579
TT
114122020-02-14 Tom Tromey <tromey@adacore.com>
11413
11414 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11415 Update.
11416 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11417 * dwarf2/loc.c (call_site_find_chain_1): Return
11418 unique_xmalloc_ptr.
11419 (call_site_find_chain): Likewise.
11420
258bf0ee
RB
114212020-02-14 Richard Biener <rguenther@suse.de>
11422
11423 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11424 on expression with division operators.
11425
f98a8458
AKS
114262020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11427
11428 * MAINTAINERS (Write After Approval): Adding myself.
11429
d1437c0e
TT
114302020-02-12 Tom Tromey <tom@tromey.com>
11431
11432 * event-loop.c (event_data, gdb_event, event_handler_func):
11433 Remove.
11434
3d4560f7
TT
114352020-02-12 Tom Tromey <tom@tromey.com>
11436
11437 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11438 (dwarf2_frame_objfile_data): Add comment.
11439 (find_comp_unit, set_comp_unit): New functions.
11440 (dwarf2_frame_find_fde): Use find_comp_unit.
11441 (dwarf2_build_frame_info): Use set_comp_unit.
11442
21982304
TT
114432020-02-12 Tom Tromey <tom@tromey.com>
11444
11445 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11446 (comp_unit): Don't initialize objfile.
11447 (execute_cfa_program): Add text_offset parameter.
11448 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11449 (dwarf2_frame_cache): Update.
11450 (dwarf2_build_frame_info): Don't set "objfile" member.
11451
4debb237
TT
114522020-02-12 Tom Tromey <tom@tromey.com>
11453
11454 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11455 (decode_frame_entry): Likewise.
11456 (dwarf2_build_frame_info): Update.
11457
0d404d44
TT
114582020-02-12 Tom Tromey <tom@tromey.com>
11459
11460 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11461 (decode_frame_entry_1): Use the comp_unit obstack.
11462
a7a3ae5c
TT
114632020-02-12 Tom Tromey <tom@tromey.com>
11464
11465 * dwarf2/frame.c (struct comp_unit): Add initializers and
11466 constructor.
11467 (dwarf2_frame_objfile_data): Store a comp_unit.
11468 (dwarf2_frame_find_fde): Update.
11469 (dwarf2_build_frame_info): Use "new".
11470
a9d65418
TT
114712020-02-12 Tom Tromey <tom@tromey.com>
11472
11473 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11474 (dwarf2_fde_table): Typedef for std::vector.
11475 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11476 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11477 (decode_frame_entry): Update.
11478 (dwarf2_build_frame_info): Use "new".
11479
7559c217
CB
114802020-02-12 Christian Biesinger <cbiesinger@google.com>
11481
11482 * arm-tdep.c (arm_gdbarch_init): Update.
11483 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11484 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11485 have_neon, is_m>: Change to bool.
11486
aeefc73c
CB
114872020-02-12 Christian Biesinger <cbiesinger@google.com>
11488
11489 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11490
d27b8e5f
TT
114912020-02-12 Tom Tromey <tom@tromey.com>
11492
11493 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11494
cd5900f3
HD
114952020-02-12 Hannes Domani <ssbssa@yahoo.de>
11496
11497 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11498 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11499
f056b22b
TT
115002020-02-11 Tom Tromey <tom@tromey.com>
11501
11502 * psymtab.h: Update comment.
11503
f92ff6b5
TT
115042020-02-11 Tom Tromey <tom@tromey.com>
11505
11506 * gdb_obstack.h (struct auto_obstack): Use
11507 DISABLE_COPY_AND_ASSIGN.
11508
3fd6912b
TT
115092020-02-11 Tom Tromey <tom@tromey.com>
11510
11511 * dwarf2/frame.h (struct objfile): Don't forward declare.
11512
69ed9b74
CB
115132020-02-11 Christian Biesinger <cbiesinger@google.com>
11514
11515 * cris-tdep.c (cris_supply_gregset): Change signature to match
11516 what struct regset expects.
11517 (cris_regset): New struct.
11518 (fetch_core_registers): Remove.
11519 (cris_iterate_over_regset_sections): New function.
11520 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11521 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11522
bda874f6
CB
115232020-02-11 Christian Biesinger <cbiesinger@google.com>
11524
11525 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11526 registers.
11527
754e1564
CB
115282020-02-11 Christian Biesinger <cbiesinger@google.com>
11529
11530 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11531
8ddd8e0e
SM
115322020-02-11 Simon Marchi <simon.marchi@efficios.com>
11533
11534 * configure: Re-generate.
11535
898e7f60
SM
115362020-02-11 Simon Marchi <simon.marchi@efficios.com>
11537
11538 * configure: Re-generate.
11539
58df732b
SM
115402020-02-11 Simon Marchi <simon.marchi@efficios.com>
11541
11542 * acinclude: Update warning.m4 path.
11543 * warning.m4: Move to gdbsupport.
11544
da5bd37e
TT
115452020-02-11 Tom Tromey <tromey@adacore.com>
11546
11547 * remote.c (remote_console_output): Update.
11548 * printcmd.c (printf_command): Update.
11549 * event-loop.c (gdb_wait_for_event): Update.
11550 * linux-nat.c (sigchld_handler): Update.
11551 * remote-sim.c (gdb_os_write_stdout): Update.
11552 (gdb_os_flush_stdout): Update.
11553 (gdb_os_flush_stderr): Update.
11554 (gdb_os_write_stderr): Update.
11555 * exceptions.c (print_exception): Update.
11556 * remote-fileio.c (remote_fileio_func_read): Update.
11557 (remote_fileio_func_write): Update.
11558 * tui/tui.c (tui_enable): Update.
11559 * tui/tui-interp.c (tui_interp::init): Update.
11560 * utils.c (init_page_info): Update.
11561 (putchar_unfiltered, fputc_unfiltered): Update.
11562 (gdb_flush): Update.
11563 (emit_style_escape): Update.
11564 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11565 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11566 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11567 (stderr_file::write): Update.
11568 (stderr_file::puts): Update.
11569 * ui-file.h (ui_file_isatty, ui_file_write)
11570 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11571 (ui_file_puts): Don't declare.
11572
85f0dd3c
TV
115732020-02-10 Tom de Vries <tdevries@suse.de>
11574
11575 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11576 sentinel to char *.
11577
2e927613
TV
115782020-02-09 Tom de Vries <tdevries@suse.de>
11579
11580 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11581 filename if it matches "<artificial>".
11582
6bafc845
HD
115832020-02-09 Hannes Domani <ssbssa@yahoo.de>
11584
11585 * windows-tdep.c (struct enum_value_name): New struct.
11586 (create_enum): New function.
11587 (windows_get_siginfo_type): Create and use enum types.
11588
7928d571
HD
115892020-02-09 Hannes Domani <ssbssa@yahoo.de>
11590
11591 * NEWS: Mention $_siginfo support for Windows.
11592 * windows-nat.c (handle_exception): Set siginfo_er.
11593 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11594 (windows_xfer_siginfo): New function.
11595 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11596 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11597 (init_windows_gdbarch_data): New function.
11598 (get_windows_gdbarch_data): New function.
11599 (windows_get_siginfo_type): New function.
11600 (windows_init_abi): Register windows_get_siginfo_type.
11601 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11602
6751ebae
TT
116032020-02-08 Tom Tromey <tom@tromey.com>
11604
11605 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11606 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11607 <keep>: Declare method.
11608 <m_keep>: Remove member.
11609 <~cutu_reader>: Remove.
11610 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11611 (cutu_reader::cutu_reader): Update.
11612 (cutu_reader::keep): Rename from ~cutu_reader.
11613 (process_psymtab_comp_unit, build_type_psymtabs_1)
11614 (process_skeletonless_type_unit, load_partial_comp_unit)
11615 (load_full_comp_unit, dwarf2_read_addr_index)
11616 (read_signatured_type): Update.
11617
135f5437
TT
116182020-02-08 Tom Tromey <tom@tromey.com>
11619
11620 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11621 "want_partial_unit" parameter.
11622 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11623 Inline check for DW_TAG_partial_unit.
11624 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11625
9f66ff1c
TT
116262020-02-08 Tom Tromey <tom@tromey.com>
11627
11628 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11629 read.c.
11630 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11631 read.c.
11632
c8a7a66f
TT
116332020-02-08 Tom Tromey <tom@tromey.com>
11634
11635 * dwarf2/read.c (read_address): Move to comp-unit.c.
11636 (dwarf2_rnglists_process, dwarf2_ranges_process)
11637 (read_attribute_value, dwarf_decode_lines_1)
11638 (var_decode_location, decode_locdesc): Update.
11639 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11640 read.c. Remove "cu" parameter.
11641 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11642 method.
11643
8266302d
TT
116442020-02-08 Tom Tromey <tom@tromey.com>
11645
11646 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11647 (read_indirect_line_string): Update.
11648 * dwarf2/comp-unit.c (read_offset): Remove.
11649 (read_comp_unit_head): Update.
11650 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11651 method.
11652 (read_offset): Don't declare.
11653
4057dfde
TT
116542020-02-08 Tom Tromey <tom@tromey.com>
11655
11656 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11657 * dwarf2/read.c (struct comp_unit_head): Move to
11658 dwarf2/comp-unit.h.
11659 (enum class rcuh_kind): Move to comp-unit.h.
11660 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11661 (read_comp_unit_head, error_check_comp_unit_head)
11662 (read_and_check_comp_unit_head): Move to comp-unit.c.
11663 (read_offset, dwarf_unit_type_name): Likewise.
11664 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11665 (cutu_reader::cutu_reader, read_call_site_scope)
11666 (find_partial_die, follow_die_offset): Update.
11667 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11668
24aa364d
TT
116692020-02-08 Tom Tromey <tom@tromey.com>
11670
11671 * dwarf2/read.c (read_offset_1): Move to leb.c.
11672 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11673 (dwarf_decode_macro_bytes): Update.
11674 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11675 * dwarf2/leb.h (read_offset): Declare.
11676
2c7d5afc
TT
116772020-02-08 Tom Tromey <tom@tromey.com>
11678
11679 * dwarf2/read.c (dwarf2_section_size): Remove.
11680 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11681 Update.
11682 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11683
4075cb26
TT
116842020-02-08 Tom Tromey <tom@tromey.com>
11685
11686 * dwarf2/read.c (read_initial_length): Move to leb.c.
11687 * dwarf2/leb.h (read_initial_length): Declare.
11688 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11689 handle_nonstd parameter.
11690 * dwarf2/frame.c (read_initial_length): Remove.
11691 (decode_frame_entry_1): Update.
11692
09ba997f
TT
116932020-02-08 Tom Tromey <tom@tromey.com>
11694
11695 * dwarf2/loc.c (dwarf2_find_location_expression)
11696 (dwarf_evaluate_loc_desc::get_tls_address)
11697 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11698 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11699 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11700 (dwarf2_compile_property_to_c)
11701 (dwarf2_loc_desc_get_symbol_read_needs)
11702 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11703 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11704 (loclist_describe_location, loclist_tracepoint_var_ref)
11705 (loclist_generate_c_location): Update.
11706 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11707 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11708 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11709 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11710 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11711 (dwarf2_per_cu_data::addr_size)
11712 (dwarf2_per_cu_data::ref_addr_size)
11713 (dwarf2_per_cu_data::text_offset)
11714 (dwarf2_per_cu_data::addr_type): Now methods.
11715 (per_cu_header_read_in): Make per_cu "const".
11716 (dwarf2_version): Remove.
11717 (dwarf2_per_cu_data::int_type): Now a method.
11718 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11719 (set_die_type, read_array_type, read_subrange_index_type)
11720 (read_tag_string_type, read_subrange_type): Update.
11721 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11722 offset_size, ref_addr_size, text_offset, addr_type, version,
11723 objfile, int_type, addr_sized_int_type>: Declare methods.
11724
96c738c0
TT
117252020-02-08 Tom Tromey <tom@tromey.com>
11726
11727 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11728 Move earlier.
11729
8fdd972c
TT
117302020-02-08 Tom Tromey <tom@tromey.com>
11731
11732 * dwarf2/read.h (dwarf_line_debug): Declare.
11733 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11734 * dwarf2/read.c: Move line_header code to new files.
11735 (dwarf_line_debug): No longer static.
11736 * dwarf2/line-header.c: New file.
11737 * dwarf2/line-header.h: New file.
11738
03075812
TT
117392020-02-08 Tom Tromey <tom@tromey.com>
11740
11741 * dwarf2/read.c (struct line_header) <file_full_name,
11742 file_file_name>: Return unique_xmalloc_ptr.
11743 (line_header::file_file_name): Update.
11744 (line_header::file_full_name): Update.
11745 (dw2_get_file_names_reader): Update.
11746 (macro_start_file): Update.
11747
bb822404
TT
117482020-02-08 Tom Tromey <tom@tromey.com>
11749
11750 * dwarf2/read.c (struct line_header) <file_full_name,
11751 file_file_name>: Declare methods.
11752 (dw2_get_file_names_reader): Update.
11753 (file_file_name): Now a method.
11754 (file_full_name): Likewise.
11755 (macro_start_file): Update.
11756
009b64fc
TT
117572020-02-08 Tom Tromey <tom@tromey.com>
11758
11759 * dwarf2/read.c (dwarf_always_disassemble)
11760 (show_dwarf_always_disassemble): Move to loc.c.
11761 (_initialize_dwarf2_read): Move "always-disassemble" registration
11762 to loc.c.
11763 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11764 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11765 static.
11766 (show_dwarf_always_disassemble): Move from read.c.
11767 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11768
5895093f
TT
117692020-02-08 Tom Tromey <tom@tromey.com>
11770
11771 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11772 (create_quick_file_names_table): Return htab_up.
11773 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11774 Update.
11775 * dwarf2/read.h (struct dwarf2_per_objfile)
11776 <quick_file_names_table>: Now htab_up.
11777
b3b32279
TT
117782020-02-08 Tom Tromey <tom@tromey.com>
11779
11780 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11781
1d33d811
TT
117822020-02-08 Tom Tromey <tom@tromey.com>
11783
11784 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11785 Rewrite.
11786 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11787 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11788 (abbrev_table::abbrev_table): No longer inline.
11789 (ABBREV_HASH_SIZE): Remove.
11790 (abbrev_table::m_abbrevs): Now an htab_up.
11791
86de1d91
TT
117922020-02-08 Tom Tromey <tom@tromey.com>
11793
11794 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11795 (cutu_reader): Update.
11796 (build_type_psymtabs_1): Update.
11797 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11798 (abbrev_table::alloc_abbrev): Update.
11799 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11800 (abbrev_table::read): New static method, renamed from
11801 abbrev_table_read_table.
11802 (abbrev_table::alloc_abbrev)
11803 (abbrev_table::add_abbrev): Now private.
11804 (abbrev_table::abbrev_table): Now private.
11805 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11806
0335378b
TT
118072020-02-08 Tom Tromey <tom@tromey.com>
11808
11809 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11810 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11811 htab_up.
11812
48b490f2
TT
118132020-02-08 Tom Tromey <tom@tromey.com>
11814
11815 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11816 htab_up.
11817 (lookup_dwo_unit_in_dwp): Update.
11818 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11819 on obstack.
11820
bc68fb19
TT
118212020-02-08 Tom Tromey <tom@tromey.com>
11822
11823 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11824 obstack.
11825
d15acc42
TT
118262020-02-08 Tom Tromey <tom@tromey.com>
11827
11828 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11829 line_header_hash.
11830 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11831 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11832 Change type to htab_up.
11833
eaa5fa8b
TT
118342020-02-08 Tom Tromey <tom@tromey.com>
11835
11836 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11837 htab_up. Don't allocate on obstack.
11838 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11839 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11840 Change type to htab_up.
11841
b0b6a987
TT
118422020-02-08 Tom Tromey <tom@tromey.com>
11843
11844 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
11845 Change type to htab_up.
11846 * dwarf2/read.c (create_signatured_type_table_from_index)
11847 (create_signatured_type_table_from_debug_names)
11848 (create_all_type_units, add_type_unit)
11849 (lookup_dwo_signatured_type, lookup_signatured_type)
11850 (process_skeletonless_type_unit): Update.
11851 (create_debug_type_hash_table, create_debug_types_hash_table):
11852 Change type of types_htab.
11853 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11854 htab_up. Don't allocate on obstack.
11855 (create_cus_hash_table): Change type of cus_htab parameter.
11856 (struct dwo_file) <cus, tus>: Now htab_up.
11857 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11858 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
11859 (queue_and_load_all_dwo_tus): Update.
11860 * dwarf2/index-write.c (write_gdbindex): Update.
11861 (write_debug_names): Update.
11862
39856def
TT
118632020-02-08 Tom Tromey <tom@tromey.com>
11864
11865 * dwarf2/read.h (struct dwarf2_queue_item): Move from
11866 dwarf2/read.c. Remove "next" member. Add constructor ntad
11867 destructor.
11868 (struct dwarf2_per_objfile) <queue>: New member.
11869 * dwarf2/read.c (struct dwarf2_queue_item): Move to
11870 dwarf2/read.h.
11871 (dwarf2_queue, dwarf2_queue_tail): Remove.
11872 (class dwarf2_queue_guard): Add parameter to constructor. Use
11873 DISABLE_COPY_AND_ASSIGN.
11874 <m_per_objfile>: New member.
11875 <~dwarf2_queue_guard>: Rewrite.
11876 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
11877 Update.
11878 (~dwarf2_queue_item): New.
11879
3e225074
TT
118802020-02-08 Tom Tromey <tom@tromey.com>
11881
11882 * dwarf2/read.c (struct die_info) <has_children>: New member.
11883 (dw2_get_file_names_reader): Remove has_children.
11884 (dw2_get_file_names): Update.
11885 (read_cutu_die_from_dwo): Remove has_children.
11886 (cutu_reader::init_tu_and_read_dwo_dies)
11887 (cutu_reader::cutu_reader): Update.
11888 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
11889 Remove has_children.
11890 (build_type_psymtabs_1, process_skeletonless_type_unit)
11891 (load_partial_comp_unit, load_full_comp_unit): Update.
11892 (create_dwo_cu_reader): Remove has_children.
11893 (create_cus_hash_table, read_die_and_children): Update.
11894 (read_full_die_1,read_full_die): Remove has_children.
11895 (read_signatured_type): Update.
11896 (class cutu_reader) <has_children>: Remove.
11897
82ca8957
TT
118982020-02-08 Tom Tromey <tom@tromey.com>
11899
11900 * dwarf2/expr.c: Rename from dwarf2expr.c.
11901 * dwarf2/expr.h: Rename from dwarf2expr.h.
11902 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11903 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11904 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11905 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11906 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11907 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11908 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11909 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11910 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11911 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11912 * dwarf2/loc.c: Rename from dwarf2loc.c.
11913 * dwarf2/loc.h: Rename from dwarf2loc.h.
11914 * dwarf2/read.c: Rename from dwarf2read.c.
11915 * dwarf2/read.h: Rename from dwarf2read.h.
11916 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11917 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11918 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11919 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11920 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11921 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11922 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11923 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11924 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11925 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11926 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11927 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11928 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11929 Update.
11930 * Makefile.in (COMMON_SFILES): Update.
11931 (HFILES_NO_SRCDIR): Update.
11932
9e35d499
TT
119332020-02-08 Tom Tromey <tom@tromey.com>
11934
11935 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11936 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11937
1eba2311
TT
119382020-02-08 Tom Tromey <tom@tromey.com>
11939
11940 * dwarf2read.h (struct die_info): Don't declare.
11941
e41c2da2
TT
119422020-02-08 Tom Tromey <tom@tromey.com>
11943
11944 * dwarf2read.h (die_info_ptr): Remove typedef.
11945
4fc6c0d5
TT
119462020-02-08 Tom Tromey <tom@tromey.com>
11947
11948 * dwarf2read.c (read_call_site_scope)
11949 (handle_data_member_location, dwarf2_add_member_fn)
11950 (mark_common_block_symbol_computed, read_common_block)
11951 (attr_to_dynamic_prop, partial_die_info::read)
11952 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11953 (dwarf2_symbol_mark_computed, set_die_type): Update.
11954 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11955 method.
11956 (attr_form_is_block): Don't declare.
11957 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11958
cd6c91b4
TT
119592020-02-08 Tom Tromey <tom@tromey.com>
11960
11961 * dwarf2read.c (dwarf2_find_base_address, )
11962 (read_call_site_scope, rust_containing_type)
11963 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11964 (handle_data_member_location, dwarf2_add_member_fn)
11965 (get_alignment, read_structure_type, process_structure_scope)
11966 (mark_common_block_symbol_computed, read_common_block)
11967 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11968 (partial_die_info::read, read_attribute_value, new_symbol)
11969 (lookup_die_type, dwarf2_get_ref_die_offset)
11970 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11971 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11972 (dwarf2_symbol_mark_computed): Update.
11973 * dwarf2/attribute.h (struct attribute) <value_as_address,
11974 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11975 methods.
11976 (value_as_address, attr_form_is_section_offset)
11977 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11978 * dwarf2/attribute.c (attribute::value_as_address)
11979 (attribute::form_is_section_offset, attribute::form_is_constant)
11980 (attribute::form_is_ref): Now methods.
11981
162dce55
TT
119822020-02-08 Tom Tromey <tom@tromey.com>
11983
11984 * dwarf2read.c (struct attribute, DW_STRING)
11985 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11986 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11987 (attr_form_is_block, attr_form_is_section_offset)
11988 (attr_form_is_constant, attr_form_is_ref): Move.
11989 * dwarf2/attribute.h: New file.
11990 * dwarf2/attribute.c: New file, from dwarf2read.c.
11991 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11992
3054dd54
TT
119932020-02-08 Tom Tromey <tom@tromey.com>
11994
11995 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11996 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11997 Move.
11998 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11999 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
12000 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
12001 abbrev.c.
12002 * dwarf2/abbrev.h: New file.
12003 * dwarf2/abbrev.c: New file, from dwarf2read.c.
12004 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
12005
96b79293
TT
120062020-02-08 Tom Tromey <tom@tromey.com>
12007
12008 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
12009 (dwarf2_section_size, dwarf2_get_section_info)
12010 (create_signatured_type_table_from_debug_names)
12011 (create_addrmap_from_aranges, read_debug_names_from_section)
12012 (get_gdb_index_contents_from_section, read_comp_unit_head)
12013 (error_check_comp_unit_head, read_abbrev_offset)
12014 (create_debug_type_hash_table, init_cu_die_reader)
12015 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
12016 (read_comp_units_from_section, create_cus_hash_table)
12017 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
12018 (create_dwp_v2_section, dwarf2_rnglists_process)
12019 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
12020 (abbrev_table_read_table, read_indirect_string_at_offset_from)
12021 (read_indirect_string_from_dwz, read_addr_index_1)
12022 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
12023 (dwarf_decode_macro_bytes, dwarf_decode_macros)
12024 (fill_in_loclist_baton): Update.
12025 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
12026 get_containing_section, get_bfd_owner, get_bfd_section,
12027 get_file_name, get_id, get_flags, empty, read>: Declare methods.
12028 (dwarf2_read_section, get_section_name, get_section_file_name)
12029 (get_containing_section, get_section_bfd_owner)
12030 (get_section_bfd_section, get_section_name, get_section_file_name)
12031 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
12032 declare.
12033 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
12034 (dwarf2_section_info::get_bfd_owner)
12035 (dwarf2_section_info::get_bfd_section)
12036 (dwarf2_section_info::get_name)
12037 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
12038 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
12039 (dwarf2_section_info::read): Now methods.
12040 * dwarf-index-write.c (class debug_names): Update.
12041
2c86cff9
TT
120422020-02-08 Tom Tromey <tom@tromey.com>
12043
12044 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
12045 Move to dwarf2/section.h.
12046 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
12047 (get_section_bfd_section, get_section_name)
12048 (get_section_file_name, get_section_id, get_section_flags)
12049 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
12050 dwarf2/section.c.
12051 * dwarf2/section.h: New file.
12052 * dwarf2/section.c: New file, from dwarf2read.c.
12053 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
12054
f4382c45
TT
120552020-02-08 Tom Tromey <tom@tromey.com>
12056
12057 * dwarf2read.h (read_unsigned_leb128): Don't declare.
12058 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
12059 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
12060 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
12061 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
12062 * dwarf2/leb.h: New file, from dwarf2read.c.
12063 * dwarf2/leb.c: New file, from dwarf2read.c.
12064 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
12065 Remove.
12066 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
12067 (COMMON_SFILES): Add dwarf2/leb.c.
12068
01840b7a
JB
120692020-02-08 Joel Brobecker <brobecker@adacore.com>
12070
12071 GDB 9.1 released.
12072
dfcb27e4
IB
120732020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12074
12075 PR gdb/25190:
aac66a4c
SM
12076 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
12077 * gdb/remote.c (remote_console_output): Update.
12078 * gdb/ui-file.c (fputs_unfiltered): Rename to...
12079 (ui_file_puts): ...this.
12080 * gdb/ui-file.h (ui_file_puts): Add declaration.
12081 * gdb/utils.c (emit_style_escape): Update.
12082 (flush_wrap_buffer): Update.
12083 (fputs_maybe_filtered): Update.
12084 (fputs_unfiltered): Add function.
dfcb27e4 12085
faa17681
IB
120862020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12087
aac66a4c
SM
12088 * gdb/event-loop.c (gdb_wait_for_event): Update.
12089 * gdb/printcmd.c (printf_command): Update.
12090 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
12091 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
12092 (gdb_os_flush_stderr): Update.
12093 * gdb/remote.c (remote_console_output): Update.
12094 * gdb/ui-file.c (gdb_flush): Rename to...
12095 (ui_file_flush): ...this.
12096 (stderr_file::write): Update.
12097 (stderr_file::puts): Update.
12098 * gdb/ui-file.h (gdb_flush): Rename to...
12099 (ui_file_flush): ...this.
12100 * gdb/utils.c (gdb_flush): Add function.
12101 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 12102
5abbbe1d
TT
121032020-02-07 Tom Tromey <tromey@adacore.com>
12104
12105 PR breakpoints/24915:
12106 * source.c (find_and_open_source): Do not check basenames_may_differ.
12107
919adfe8
TT
121082020-02-07 Tom Tromey <tom@tromey.com>
12109
12110 * README: Update gdbserver documentation.
12111 * gdbserver: Move to top level.
12112 * configure.tgt (build_gdbserver): Remove.
12113 * configure.ac: Remove --enable-gdbserver.
12114 * configure: Rebuild.
12115 * Makefile.in (distclean): Don't mention gdbserver.
12116
1d5d29e7
SV
121172020-02-06 Shahab Vahedi <shahab@synopsys.com>
12118
12119 * source-cache.c (source_cache::ensure): Surround
12120 get_plain_source_lines with a try/catch.
12121 (source_cache::get_line_charpos): Get rid of try/catch
12122 and only check for the return value of "ensure".
12123 * tui/tui-source.c (tui_source_window::set_contents):
12124 Simplify "nlines" calculation.
12125
6eb1129c
SV
121262020-02-06 Shahab Vahedi <shahab@synopsys.com>
12127
12128 * MAINTAINERS (Write After Approval): Add myself.
12129
c6a42d11
CB
121302020-02-05 Christian Biesinger <cbiesinger@google.com>
12131
12132 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
12133 function call.
12134
c8ecdda6
CB
121352020-02-05 Christian Biesinger <cbiesinger@google.com>
12136
12137 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
12138
f6480e70
MR
121392020-02-05 Maciej W. Rozycki <macro@wdc.com>
12140
12141 * nat/riscv-linux-tdesc.h: New file.
12142 * nat/riscv-linux-tdesc.c: New file, taking code from...
12143 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12144 ... here.
12145 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
12146 NATDEPFILES.
12147
dcc9fbc6
AB
121482020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
12149
12150 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
12151 we don't set the fake simulator ptid to the null_ptid.
12152
719546c4
SM
121532020-02-03 Simon Marchi <simon.marchi@efficios.com>
12154
12155 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
12156 * gdbthread.h (class thread_info) <resumed>: Likewise.
12157 * infrun.c (resume_1): Likewise.
12158 (proceed): Likewise.
12159 (infrun_thread_stop_requested): Likewise.
12160 (stop_all_threads): Likewise.
12161 (handle_inferior_event): Likewise.
12162 (restart_threads): Likewise.
12163 (finish_step_over): Likewise.
12164 (keep_going_stepped_thread): Likewise.
12165 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
12166 (linux_handle_extended_wait): Likewise.
12167 * record-btrace.c (get_thread_current_frame_id): Likewise.
12168 * record-full.c (record_full_wait_1): Likewise.
12169 * remote.c (remote_target::process_initial_stop_replies): Likewise.
12170 * target.c (target_resume): Likewise.
12171 * thread.c (set_running_thread): Likewise.
12172
e409c542
AKS
121732020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12174
12175 * f-valprint.c (f77_print_array_1): Changed datatype of index
12176 variable to LONGEST from int to enable it to contain bound
12177 values correctly.
12178
ee98c0da
MR
121792020-02-03 Maciej W. Rozycki <macro@wdc.com>
12180
12181 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12182 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12183 offsets according to FLEN determined.
12184 (riscv_linux_nat_target::read_description): Determine FLEN
12185 dynamically.
12186 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12187 according to FLEN determined.
12188 (riscv_linux_nat_target::store_registers): Likewise.
12189
aa66aac4
SV
121902020-02-01 Shahab Vahedi <shahab@synopsys.com>
12191
12192 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12193 when reg->group is empty and reggroup is not.
12194
fd9faca8
TT
121952020-01-31 Tom Tromey <tromey@adacore.com>
12196
12197 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12198 Call beneath target's mourn_inferior after unpushing.
12199
42330a68
AB
122002020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12201
12202 PR tui/9765
12203 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12204 have enough lines to fill the screen, still return the lowest
12205 address we found.
12206
7a27a45b
AB
122072020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12208
12209 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12210 '-', '<', and '>' commands.
12211
c47f70e2
PA
122122020-01-29 Pedro Alves <palves@redhat.com>
12213 Sergio Durigan Junior <sergiodj@redhat.com>
12214
12215 * infcmd.c (construct_inferior_arguments): Assert that
12216 'argc' is greater than 0.
12217
5133a315
LM
122182020-01-29 Luis Machado <luis.machado@linaro.org>
12219
12220 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12221 (BRK_INSN_MASK): Define to 0xd4200000.
12222 (aarch64_program_breakpoint_here_p): New function.
12223 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12224 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12225 breakpoint.c.
12226 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12227 breakpoint.h
12228 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12229 call gdbarch_program_breakpoint_here_p.
12230 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12231 default_program_breakpoint_here_p, changed return type to bool and
12232 simplified.
12233 * breakpoint.h (program_breakpoint_here): Moved prototype to
12234 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12235 return type to bool.
12236 * gdbarch.c: Regenerate.
12237 * gdbarch.h: Regenerate.
12238 * gdbarch.sh (program_breakpoint_here_p): New method.
12239 * infrun.c (handle_signal_stop): Call
12240 gdbarch_program_breakpoint_here_p.
12241
168f8c6b
TT
122422020-01-26 Tom Tromey <tom@tromey.com>
12243
12244 * ctfread.c (struct ctf_fp_info): Reindent.
12245 (_initialize_ctfread): Remove.
12246
128a391f
TT
122472020-01-26 Tom Tromey <tom@tromey.com>
12248
12249 * psymtab.c (partial_map_expand_apply)
12250 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12251 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12252 (psym_print_stats, psym_expand_symtabs_for_function)
12253 (psym_map_symbol_filenames, psym_map_matching_symbols)
12254 (psym_expand_symtabs_matching)
12255 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12256 (maintenance_check_psymtabs): Use new methods.
12257 * psympriv.h (struct partial_symtab) <readin_p,
12258 get_compunit_symtab>: New methods.
12259 <readin, compunit_symtab>: Remove members.
12260 (struct standard_psymtab): New.
12261 (struct legacy_psymtab): Derive from standard_psymtab.
12262 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12263 standard_psymtab.
12264 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12265
0494dbec
TT
122662020-01-26 Tom Tromey <tom@tromey.com>
12267
12268 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12269 read_dependencies. Add assert.
12270 * psymtab.c (partial_symtab::read_dependencies): New method.
12271 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12272 method.
12273 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12274 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12275 read_dependencies.
12276 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12277 Add assert.
12278
8566b89b
TT
122792020-01-26 Tom Tromey <tom@tromey.com>
12280
12281 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12282 Call expand_psymtab.
12283 (xcoff_read_symtab): Call expand_psymtab.
12284 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12285 legacy_expand_psymtab.
12286 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12287 method.
12288 (struct legacy_psymtab) <expand_psymtab>: Implement.
12289 <legacy_expand_psymtab>: New member.
12290 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12291 (parse_partial_symbols): Set legacy_expand_psymtab.
12292 (psymtab_to_symtab_1): Change argument order. Call
12293 expand_psymtab.
12294 (new_psymtab): Set legacy_expand_psymtab.
12295 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12296 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12297 expand_psymtab.
12298 (dwarf2_psymtab::expand_psymtab): Rename from
12299 psymtab_to_symtab_1. Call expand_psymtab.
12300 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12301 (dbx_end_psymtab): Likewise.
12302 (dbx_psymtab_to_symtab_1): Change argument order. Call
12303 expand_psymtab.
12304 (dbx_read_symtab): Call expand_psymtab.
12305 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12306 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12307 (ctf_psymtab::read_symtab): Call expand_psymtab.
12308
077cbab2
TT
123092020-01-26 Tom Tromey <tom@tromey.com>
12310
12311 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12312 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12313 messages.
12314 * mdebugread.c (mdebug_read_symtab): Remove prints.
12315 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12316 assert.
12317 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12318
891813be
TT
123192020-01-26 Tom Tromey <tom@tromey.com>
12320
12321 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12322 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12323 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12324 legacy_symtab.
12325 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12326 * psymtab.c (psymtab_to_symtab): Call method.
12327 (dump_psymtab): Update.
12328 * psympriv.h (struct partial_symtab): Add virtual destructor.
12329 <read_symtab>: New method.
12330 (struct legacy_symtab): New.
12331 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12332 (struct pst_map) <pst>: Now a legacy_psymtab.
12333 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12334 (new_psymtab): Use legacy_psymtab.
12335 * dwarf2read.h (struct dwarf2_psymtab): New.
12336 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12337 * dwarf2read.c (dwarf2_create_include_psymtab)
12338 (dwarf2_build_include_psymtabs, create_type_unit_group)
12339 (create_partial_symtab, process_psymtab_comp_unit_reader)
12340 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12341 (set_partial_user): Use dwarf2_psymtab.
12342 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12343 (psymtab_to_symtab_1, process_full_comp_unit)
12344 (process_full_type_unit, dwarf2_ranges_read)
12345 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12346 (dwarf_decode_lines): Use dwarf2_psymtab.
12347 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12348 (add_address_entry_worker, write_one_signatured_type)
12349 (recursively_count_psymbols, recursively_write_psymbols)
12350 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12351 (write_debug_names): Likewise.
12352 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12353 <pst>: Now a legacy_psymtab.
12354 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12355 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12356 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12357 * ctfread.c (struct ctf_psymtab): New.
12358 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12359 ctf_psymtab.
12360 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12361 (create_partial_symtab): Return a ctf_psymtab.
12362 (scan_partial_symbols): Update.
12363
c3693a1d
TT
123642020-01-26 Tom Tromey <tom@tromey.com>
12365
12366 * xcoffread.c (xcoff_start_psymtab): Use new.
12367 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12368 renamed from start_psymtab_common.
12369 * psympriv.h (struct partial_symtab): Add new constructor.
12370 (start_psymtab_common): Don't declare.
12371 * mdebugread.c (parse_partial_symbols): Use new.
12372 * dwarf2read.c (create_partial_symtab): Use new.
12373 * dbxread.c (start_psymtab): Use new.
12374 * ctfread.c (create_partial_symtab): Use new.
12375
32caafd0
TT
123762020-01-26 Tom Tromey <tom@tromey.com>
12377
12378 * xcoffread.c (xcoff_end_psymtab): Use new.
12379 * psymtab.c (start_psymtab_common): Use new.
12380 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12381 Update.
12382 * psympriv.h (struct partial_symtab): Add parameters to
12383 constructor. Don't inline.
12384 (allocate_psymtab): Don't declare.
12385 * mdebugread.c (new_psymtab): Use new.
12386 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12387 * dbxread.c (dbx_end_psymtab): Use new.
12388
abaa2f23
TT
123892020-01-26 Tom Tromey <tom@tromey.com>
12390
12391 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12392 allocate_psymtab. Update documentation.
12393 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12394 allocate_psymtab. Do not use new.
12395 (allocate_psymtab): Use new. Update.
12396
6d94535f
TT
123972020-01-26 Tom Tromey <tom@tromey.com>
12398
12399 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12400 * psymtab.c (psym_print_stats): Update.
12401 * psympriv.h (struct partial_symtab) <readin,
12402 psymtabs_addrmap_supported, anonymous>: Now bool.
12403 * mdebugread.c (psymtab_to_symtab_1): Update.
12404 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12405 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12406 (process_full_comp_unit, process_full_type_unit): Update.
12407 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12408 * ctfread.c (psymtab_to_symtab): Update.
12409
6f17252b
TT
124102020-01-26 Tom Tromey <tom@tromey.com>
12411
12412 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12413 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12414 * psymtab.c (psymtab_storage): Delete psymtabs.
12415 (psymtab_storage::allocate_psymtab): Use new.
12416 (psymtab_storage::discard_psymtab): Use delete.
12417 * psympriv.h (struct partial_symtab): Add constructor and
12418 initializers.
12419
f6f1cebc
TT
124202020-01-26 Tom Tromey <tom@tromey.com>
12421
12422 * machoread.c: Do not include psympriv.h.
12423
e47e48f6
PW
124242020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12425
12426 * NEWS: Mention the new option and the set/show commands.
12427
a2fedca9
PW
124282020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12429
12430 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12431 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12432 (validate_exec_file): New variables, enums, functions.
12433 (exec_file_locate_attach, print_section_info): Style the filenames.
12434 (_initialize_exec): Install show_exec_file_mismatch_command and
12435 set_exec_file_mismatch_command.
12436 * gdbcore.h (validate_exec_file): Declare.
12437 * infcmd.c (attach_command): Call validate_exec_file.
12438 * remote.c ( remote_target::remote_add_inferior): Likewise.
12439
7ffa82e1
AB
124402020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12441
12442 * frame.c (find_frame_sal): Move call to get_next_frame into more
12443 inner scope.
12444 * inline-frame.c (inilne_state) <inline_state>: Update argument
12445 types.
12446 (inilne_state) <skipped_symbol>: Rename to...
12447 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12448 (skip_inline_frames): Build vector of skipped symbols and use this
12449 to reate the inline_state.
12450 (inline_skipped_symbol): Add a comment and some assertions, fetch
12451 skipped symbol from the list.
12452
3d92a3e3
AB
124532020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12454
12455 * buildsym.c (lte_is_less_than): Delete.
12456 (buildsym_compunit::end_symtab_with_blockvector): Create local
12457 lambda function to sort line table entries, and use
12458 std::stable_sort instead of std::sort.
12459 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12460 markers when looking for a previous line.
12461
94a72be7
AB
124622020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12463
12464 * dwarf2read.c (lnp_state_machine::record_line): Include
12465 end_sequence parameter in debug print out. Record the line if we
12466 are at an end_sequence marker even if it's not the start of a
12467 statement.
12468 * symmisc.c (maintenance_print_one_line_table): Print end of
12469 sequence markers with 'END' not '0'.
12470
53af73bf
PA
124712020-01-24 Pedro Alves <palves@redhat.com>
12472
12473 PR gdb/25410
12474 * thread.c (scoped_restore_current_thread::restore): Use
12475 switch_to_inferior_no_thread.
12476 * exec.c: Include "progspace-and-thread.h".
12477 (add_target_sections, remove_target_sections):
12478 scoped_restore_current_pspace_and_thread instead of
12479 scoped_restore_current_thread.
12480 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12481 and aspace to the inferior before calling clone_program_space.
12482 Remove stale comment.
12483
3050c6f4
CB
124842020-01-24 Christian Biesinger <cbiesinger@google.com>
12485
12486 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12487 (arm_netbsd_nat_target::fetch_registers): ...this.
12488 (arm_nbsd_nat_target::store_registers): Rename to...
12489 (arm_netbsd_nat_target::store_registers): ...this.
12490
73685c7e
CB
124912020-01-24 Christian Biesinger <cbiesinger@google.com>
12492
12493 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12494 register_t.
12495
89203d40
CB
124962020-01-24 Christian Biesinger <cbiesinger@google.com>
12497
12498 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12499 Update comment.
12500 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12501 Likewise.
12502 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12503 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12504 the correct replacement (iterate_over_regset_sections).
12505 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12506 Update comment.
12507
1ba1ac88
AB
125082020-01-24 Graham Markall <graham.markall@embecosm.com>
12509
12510 PR gdb/23718
12511 * gdb/python/python.c (execute_gdb_command): Call
12512 async_enable_stdin in catch block.
12513
f3364a6d
AB
125142020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12515
12516 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12517 SWITCH_THRU_ALL_UIS.
12518
733d0a67
AB
125192020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12520
12521 PR tui/9765
12522 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12523 comment, add extra parameter, and update to store previous symbol
12524 when appropriate.
12525 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12526 add extra parameter.
12527 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12528 remove unneeded parameter, add try/catch around gdb_print_insn,
12529 rewrite to add items to asm_lines vector.
12530 (tui_find_backward_disassembly_start_address): New function.
12531 (tui_find_disassembly_address): Updated throughout.
12532 (tui_disasm_window::set_contents): Update for changes to
12533 tui_disassemble.
12534 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12535 number of lines to scroll.
12536
b3b3bada
SM
125372020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12538
12539 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12540 (SECT_OFF_DATA): Likewise.
12541 (SECT_OFF_RODATA): Likewise.
12542 (SECT_OFF_TEXT): Likewise.
12543 (SECT_OFF_BSS): Likewise.
12544 (struct objfile) <text_section_offset, data_section_offset>: New
12545 methods.
12546 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12547 objfile::text_section_offset.
12548 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12549 * coffread.c (coff_symtab_read): Likewise.
12550 (enter_linenos): Likewise.
12551 (process_coff_symbol): Likewise.
12552 * ctfread.c (get_objfile_text_range): Likewise.
12553 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12554 Use objfile::data_section_offset.
12555 * dwarf2-frame.c (execute_cfa_program): Use
12556 objfile::text_section_offset.
12557 (dwarf2_frame_find_fde): Likewise.
12558 * dwarf2read.c (create_addrmap_from_index): Likewise.
12559 (create_addrmap_from_aranges): Likewise.
12560 (dw2_find_pc_sect_compunit_symtab): Likewise.
12561 (process_psymtab_comp_unit_reader): Likewise.
12562 (add_partial_symbol): Likewise.
12563 (add_partial_subprogram): Likewise.
12564 (process_full_comp_unit): Likewise.
12565 (read_file_scope): Likewise.
12566 (read_func_scope): Likewise.
12567 (read_lexical_block_scope): Likewise.
12568 (read_call_site_scope): Likewise.
12569 (dwarf2_rnglists_process): Likewise.
12570 (dwarf2_ranges_process): Likewise.
12571 (dwarf2_ranges_read): Likewise.
12572 (dwarf_decode_lines_1): Likewise.
12573 (new_symbol): Likewise.
12574 (dwarf2_fetch_die_loc_sect_off): Likewise.
12575 (dwarf2_per_cu_text_offset): Likewise.
12576 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12577 * hppa-tdep.c (read_unwind_info): Likewise.
12578 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12579 * psympriv.h (struct partial_symtab): Likewise.
12580 * psymtab.c (find_pc_sect_psymtab): Likewise.
12581 * solib-svr4.c (enable_break): Likewise.
12582 * stap-probe.c (relocate_address): Use
12583 objfile::data_section_offset.
12584 * xcoffread.c (enter_line_range): Use
12585 objfile::text_section_offset.
12586 (read_xcoff_symtab): Likewise.
12587
ab53f382
SM
125882020-01-23 Simon Marchi <simon.marchi@efficios.com>
12589
12590 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12591 declaration to narrower scopes.
12592
e7eee665
SM
125932020-01-23 Simon Marchi <simon.marchi@efficios.com>
12594
12595 * darwin-nat.h (struct darwin_exception_msg, enum
12596 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12597 Move up.
12598 (class darwin_nat_target) <wait_1, check_new_threads,
12599 decode_exception_message, decode_message, stop_inferior,
12600 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12601 * darwin-nat.c (darwin_check_new_threads): Rename to...
12602 (darwin_nat_target::check_new_threads): ... this.
12603 (darwin_suspend_inferior_it): Remove.
12604 (darwin_decode_exception_message): Rename to...
12605 (darwin_nat_target::decode_exception_message): ... this.
12606 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12607 (darwin_decode_message): Rename to...
12608 (darwin_nat_target::decode_message): ... this.
12609 (cancel_breakpoint): Rename to...
12610 (darwin_nat_target::cancel_breakpoint): ... this.
12611 (darwin_wait): Rename to...
12612 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12613 instead of iterate_over_inferiors.
12614 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12615 (darwin_stop_inferior): Rename to...
12616 (darwin_nat_target::stop_inferior): ... this.
12617 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12618 (darwin_init_thread_list): Rename to...
12619 (darwin_nat_target::init_thread_list): ... this.
12620 (darwin_ptrace_him): Rename to...
12621 (darwin_nat_target::ptrace_him): ... this.
12622 (darwin_nat_target::create_inferior): Pass lambda function to
12623 fork_inferior.
12624 (darwin_nat_target::detach): Call stop_inferior instead of
12625 darwin_stop_inferior.
12626 * fork-inferior.h (fork_inferior): Change init_trace_fun
12627 parameter to gdb::function_view.
12628 * fork-inferior.c (fork_inferior): Likewise.
12629
c162ed3e
HD
126302020-01-23 Hannes Domani <ssbssa@yahoo.de>
12631
12632 * i386-cygwin-tdep.c (core_process_module_section): Update.
12633 * windows-nat.c (struct lm_info_windows): Add text_offset.
12634 (windows_xfer_shared_libraries): Update.
12635 * windows-tdep.c (windows_xfer_shared_library):
12636 Add text_offset_cached argument.
12637 * windows-tdep.h (windows_xfer_shared_library): Update.
12638
a1237872
SM
126392020-01-21 Simon Marchi <simon.marchi@efficios.com>
12640
12641 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12642
b3ee6dd9
SM
126432020-01-21 Simon Marchi <simon.marchi@efficios.com>
12644
12645 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12646 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12647 replace with range-based for.
12648 (gdbsim_interrupt_inferior): Remove.
12649 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12650 with a range-based for. Inline code from
12651 gdbsim_interrupt_inferior.
12652
f9fac3c8
SM
126532020-01-21 Simon Marchi <simon.marchi@efficios.com>
12654
12655 * infrun.c (proceed): Fix indentation.
12656
f6474de9
TT
126572020-01-21 Tom Tromey <tromey@adacore.com>
12658
12659 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12660 * python/python.c (python_extension_ops): Update.
12661 (gdbpy_colorize): New function.
12662 * python/lib/gdb/__init__.py (colorize): New function.
12663 * extension.h (ext_lang_colorize): Declare.
12664 * extension.c (ext_lang_colorize): New function.
12665 * extension-priv.h (struct extension_language_ops) <colorize>: New
12666 member.
12667 * cli/cli-style.c (_initialize_cli_style): Update help text.
12668
f0c702d4
LM
126692020-01-21 Luis Machado <luis.machado@linaro.org>
12670
12671 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12672 <cond>: Change type to bool.
12673 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12674 (aarch64_displaced_step_cb): Likewise.
12675 (aarch64_displaced_step_tb): Likewise.
12676
1ab139e5
LM
126772020-01-21 Luis Machado <luis.machado@linaro.org>
12678
12679 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12680 output.
12681
0c271889
LM
126822020-01-21 Luis Machado <luis.machado@linaro.org>
12683
12684 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12685 <pc_adjust>: Adjust the documentation.
12686 (aarch64_displaced_step_fixup): Check if PC really moved before
12687 adjusting it.
12688
4d89c1c7
TT
126892020-01-19 Tom Tromey <tom@tromey.com>
12690
12691 * disasm.c (~gdb_disassembler): New destructor.
12692 (gdb_buffered_insn_length): Call disassemble_free_target.
12693 * disasm.h (class gdb_disassembler): Declare destructor. Use
12694 DISABLE_COPY_AND_ASSIGN.
12695
c0ab21c2
TT
126962020-01-19 Tom Tromey <tom@tromey.com>
12697
12698 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12699 (die_reader_func_ftype): Remove.
12700 (cutu_reader): New class.
12701 (dw2_get_file_names_reader): Remove "data" parameter.
12702 (dw2_get_file_names): Use cutu_reader.
12703 (create_debug_type_hash_table): Update.
12704 (read_cutu_die_from_dwo): Update comment.
12705 (lookup_dwo_unit): Add dwo_name parameter.
12706 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12707 die_reader_func_ftype and data parameters.
12708 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12709 Remove die_reader_func_ftype and data parameters.
12710 (~cutu_reader): New; from init_cutu_and_read_dies.
12711 (cutu_reader::cutu_reader): Rename from
12712 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12713 and data parameters.
12714 (init_cutu_and_read_dies_simple): Remove.
12715 (struct process_psymtab_comp_unit_data): Remove.
12716 (process_psymtab_comp_unit_reader): Remove data parameter; add
12717 want_partial_unit and pretend_language parameters.
12718 (process_psymtab_comp_unit): Use cutu_reader.
12719 (build_type_psymtabs_reader): Remove data parameter.
12720 (build_type_psymtabs_1): Use cutu_reader.
12721 (process_skeletonless_type_unit): Likewise.
12722 (load_partial_comp_unit_reader): Remove.
12723 (load_partial_comp_unit): Use cutu_reader.
12724 (load_full_comp_unit_reader): Remove.
12725 (load_full_comp_unit): Use cutu_reader.
12726 (struct create_dwo_cu_data): Remove.
12727 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12728 dwo_unit parameters.
12729 (create_cus_hash_table): Use cutu_reader.
12730 (struct dwarf2_read_addr_index_data): Remove.
12731 (dwarf2_read_addr_index_reader): Remove.
12732 (dwarf2_read_addr_index): Use cutu_reader.
12733 (read_signatured_type_reader): Remove.
12734 (read_signatured_type): Use cutu_reader.
12735
45bbae5c
TT
127362020-01-19 Tom Tromey <tom@tromey.com>
12737
12738 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12739 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12740 (tui_wrefresh): Declare.
12741 * tui/tui-wingeneral.c (suppress_output): New global.
12742 (tui_suppress_output, ~tui_suppress_output): New constructor and
12743 destructor.
12744 (tui_wrefresh): New function.
12745 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12746 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12747 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12748 method.
12749 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12750 tui_wrefresh.
12751 (tui_data_window::no_refresh): New method.
12752 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12753 (tui_reg_command): Use tui_suppress_output
12754 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12755 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12756 method.
12757 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12758
4f13c1c0
TT
127592020-01-19 Tom Tromey <tom@tromey.com>
12760
12761 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12762 Handle case where symtab is null.
12763
fa47e446
SM
127642020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12765
12766 * linux-fork.c (one_fork_p): Simplify.
12767
26f42329
SM
127682020-01-17 Simon Marchi <simon.marchi@efficios.com>
12769
12770 * top.c (struct qt_args): Remove.
12771 (kill_or_detach): Change return type to void, replace `void *`
12772 parameter with a proper one.
12773 (print_inferior_quit_action): Likewise.
12774 (quit_confirm): Use range-based for loop to iterate over inferiors.
12775 (quit_force): Likewise.
12776
a9ac81b1
SM
127772020-01-17 Simon Marchi <simon.marchi@efficios.com>
12778
12779 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12780 `void *` parameter with proper parameters.
12781 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12782 (print_one_inferior): Change return type to void, replace `void *`
12783 parameter with proper parameters.
12784 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12785 inferiors.
12786 (get_other_inferior): Remove.
12787 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12788 inferiors.
12789
788eca49
SM
127902020-01-17 Simon Marchi <simon.marchi@efficios.com>
12791
12792 * mi/mi-interp.c (report_initial_inferior): Remove.
12793 (mi_interp::init): Use range-based for to iterate over inferiors.
12794
d9bc85b6
SM
127952020-01-17 Simon Marchi <simon.marchi@efficios.com>
12796
12797 * python/py-inferior.c (build_inferior_list): Remove.
12798 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12799
40c94099
CB
128002020-01-16 Christian Biesinger <cbiesinger@google.com>
12801
12802 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12803 (btrace_stitch_trace): Likewise.
12804 * charset.c (intermediate_encoding): Likewise (vaild).
12805 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12806 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12807 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12808
e0cdfe3c
HD
128092020-01-16 Hannes Domani <ssbssa@yahoo.de>
12810
12811 * windows-tdep.c (windows_get_tlb_type):
12812 Add rtl_user_process_parameters type.
12813
790f1718 128142020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 12815 Norbert Lange <nolange79@gmail.com>
790f1718
PA
12816
12817 PR build/24805
12818 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12819 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12820 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12821 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12822 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12823 (ps_plog): Redeclare exported functions with default visibility.
12824
3112ed97
NA
128252020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12826
12827 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12828 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12829
8dc3273e
SM
128302020-01-15 Simon Marchi <simon.marchi@efficios.com>
12831
12832 * infcmd.c (post_create_inferior): Use get_thread_regcache
12833 instead of get_current_regcache.
12834
ff47f4f0
TT
128352020-01-14 Tom Tromey <tom@tromey.com>
12836
12837 PR symtab/12535:
12838 * python/python.c (gdbpy_decode_line): Treat empty string the same
12839 as no argument.
12840
975f45b7
TT
128412020-01-14 Tom Tromey <tom@tromey.com>
12842
12843 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
12844
25e57356
TT
128452020-01-14 Tom Tromey <tom@tromey.com>
12846
12847 * nat/linux-btrace.c: Don't include <config.h>.
12848 * nat/linux-ptrace.c: Don't include <config.h>.
12849 * nat/x86-linux-dregs.c: Don't include <config.h>.
12850
05ea2a05
TT
128512020-01-14 Tom Tromey <tom@tromey.com>
12852
12853 * configure: Rebuild.
12854 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12855
01027315
TT
128562020-01-14 Tom Tromey <tom@tromey.com>
12857
12858 * nat/x86-linux-dregs.c: Include configh.h.
12859 * nat/linux-ptrace.c: Include configh.h.
12860 * nat/linux-btrace.c: Include configh.h.
12861 * defs.h: Include config.h, bfd.h.
12862 * configure.ac: Don't source common.host.
12863 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
12864 * configure: Rebuild.
12865 * acinclude.m4: Update path.
12866 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
12867 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
12868 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
12869 (CLIBS): Add LIBSUPPORT.
12870 (CDEPS): Likewise.
12871 (COMMON_SFILES): Remove gdbsupport files.
12872 (HFILES_NO_SRCDIR): Likewise.
12873 (stamp-version): Update path to create-version.sh.
12874 (ALLDEPFILES): Remove gdbsupport files.
12875
b2ceabe8
TT
128762020-01-14 Tom Tromey <tom@tromey.com>
12877
12878 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
12879 USE_WIN32API when needed.
12880 * configure.ac (USE_WIN32API): Don't define.
12881 (WIN32LIBS): Use WIN32APILIBS.
12882 * configure: Rebuild.
12883
25c51f71
TT
128842020-01-14 Tom Tromey <tom@tromey.com>
12885
12886 * configure: Rebuild.
12887 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
12888
717c684d
BE
128892020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12890
12891 * skip.c (skip_function_command): Make skip w/o arguments use the
12892 name of the inlined function if pc is inside any inlined function.
12893
7da6a5b9
LM
128942020-01-14 Luis Machado <luis.machado@linaro.org>
12895
12896 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
12897 * infrun.c (resume_1): Likewise.
12898 (handle_inferior_event): Remove stale comment.
12899 * linux-nat.c (linux_nat_target::resume): Update comments.
12900 (save_stop_reason): Likewise.
12901 (linux_nat_filter_event): Likewise.
12902 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12903
44e4c775
AB
129042020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12905
12906 * elfread.c (record_minimal_symbol): Set section index to 0 for
12907 non-allocatable sections.
12908
18a8505e
AT
12909
129102020-01-13 Ali Tamur <tamur@google.com>
12911
12912 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12913 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12914 to gdb::optional. Update comments.
12915 (dwo_file): Update comments.
12916 (read_attribute): Update API to take an additional out parameter,
12917 need_reprocess. This is used to mark attributes that need other
12918 attributes (e.g. str_offsets_base) for correct computation which may not
12919 have been read yet.
12920 (read_attribute_reprocess): New function declaration.
12921 (read_addr_index): Likewise.
12922 (read_dwo_str_index): Likewise.
12923 (read_stub_str_index): Likewise.
12924 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12925 (lookup_addr_base): New function definition.
12926 (lookup_ranges_base): Likewise.
12927 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12928 lookup_ranges_base.
12929 (init_cutu_and_read_dies): Update comments.
12930 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12931 unit. This is used to inherit parent's str_offsets_base and addr_base.
12932 Update comments.
12933 (init_cutu_and_read_dies_simple): Reflect API changes.
12934 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12935 (create_cus_hash_table): Change API to take parent compile unit.
12936 Reflect API changes.
12937 (open_and_init_dwo_file): Reflect API changes.
12938 (dwarf2_get_pc_bounds): Update comments.
12939 (dwarf2_record_block_ranges): Likewise.
12940 (read_full_die_1): Change implementation to reprocess attributes that
12941 need str_offsets_base and addr_base.
12942 (partial_die_info::read): Likewise.
12943 (read_attribute_reprocess): New function definition.
12944 (read_attribute_value): Change API to take an additional out parameter,
12945 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12946 when a non-dwo compile unit has index based attributes.
12947 (read_attribute): Reflect API changes.
12948 (read_addr_index_1): Reflect API changes. Update comments.
12949 (dwarf2_read_addr_index_data): Reflect API changes.
12950 (dwarf2_read_addr_index): Likewise.
12951 (read_str_index): Change API and implementation. This becomes a helper
12952 to be used by the new string index related methods. Update error
12953 message and comments.
12954 (read_dwo_str_index): New function definition.
12955 (read_stub_str_index): Likewise.
12956 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12957 * symfile.h (dwarf2_debug_sections): Likewise.
12958 * xcoffread.c (dwarf2_debug_sections): Likewise.
12959
0cac9354
SM
129602020-01-13 Simon Marchi <simon.marchi@efficios.com>
12961
12962 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12963 core_reg_sect type to gdb_byte *.
12964 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12965 * cris-tdep.c (fetch_core_registers): Likewise.
12966 * corelow.c (core_target::get_core_register_section): Change
12967 type of `contents` to gdb::byte_vector.
12968
9a6d629c
AB
129692020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12970
12971 * tui/tui-wingeneral.c (box_win): Position the title in the center
12972 of the border.
12973
d8b2f9e3
SM
129742020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12975
12976 * corelow.c (core_target::get_core_register_section): Use
12977 std::vector instead of alloca.
12978
bb564c58
SM
129792020-01-13 Simon Marchi <simon.marchi@efficios.com>
12980
12981 * warning.m4: Add -Wmissing-declarations to build_warnings.
12982 * configure: Re-generate.
12983
6b366111
SM
129842020-01-13 Simon Marchi <simon.marchi@efficios.com>
12985
12986 * python/python.c (init__gdb_module): Add declaration.
12987
6c265988
SM
129882020-01-13 Simon Marchi <simon.marchi@efficios.com>
12989
12990 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12991 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12992 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12993 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12994 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12995 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12996 * ada-exp.y (_initialize_ada_exp): Add declaration.
12997 * ada-lang.c (_initialize_ada_language): Add declaration.
12998 * ada-tasks.c (_initialize_tasks): Add declaration.
12999 * agent.c (_initialize_agent): Add declaration.
13000 * aix-thread.c (_initialize_aix_thread): Add declaration.
13001 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
13002 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
13003 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
13004 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
13005 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
13006 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
13007 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
13008 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
13009 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
13010 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
13011 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
13012 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
13013 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
13014 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
13015 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
13016 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
13017 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
13018 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
13019 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
13020 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
13021 * annotate.c (_initialize_annotate): Add declaration.
13022 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
13023 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
13024 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
13025 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
13026 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
13027 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
13028 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
13029 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
13030 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
13031 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
13032 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
13033 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
13034 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
13035 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
13036 * auto-load.c (_initialize_auto_load): Add declaration.
13037 * auxv.c (_initialize_auxv): Add declaration.
13038 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
13039 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
13040 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
13041 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
13042 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
13043 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
13044 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
13045 * breakpoint.c (_initialize_breakpoint): Add declaration.
13046 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
13047 * btrace.c (_initialize_btrace): Add declaration.
13048 * charset.c (_initialize_charset): Add declaration.
13049 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
13050 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
13051 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
13052 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
13053 * cli/cli-script.c (_initialize_cli_script): Add declaration.
13054 * cli/cli-style.c (_initialize_cli_style): Add declaration.
13055 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
13056 * coffread.c (_initialize_coffread): Add declaration.
13057 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
13058 * compile/compile.c (_initialize_compile): Add declaration.
13059 * complaints.c (_initialize_complaints): Add declaration.
13060 * completer.c (_initialize_completer): Add declaration.
13061 * copying.c (_initialize_copying): Add declaration.
13062 * corefile.c (_initialize_core): Add declaration.
13063 * corelow.c (_initialize_corelow): Add declaration.
13064 * cp-abi.c (_initialize_cp_abi): Add declaration.
13065 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
13066 * cp-support.c (_initialize_cp_support): Add declaration.
13067 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
13068 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
13069 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
13070 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
13071 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
13072 * ctfread.c (_initialize_ctfread): Add declaration.
13073 * d-lang.c (_initialize_d_language): Add declaration.
13074 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
13075 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
13076 * dbxread.c (_initialize_dbxread): Add declaration.
13077 * dcache.c (_initialize_dcache): Add declaration.
13078 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
13079 * disasm.c (_initialize_disasm): Add declaration.
13080 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
13081 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
13082 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
13083 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
13084 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
13085 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
13086 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
13087 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
13088 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
13089 * elfread.c (_initialize_elfread): Add declaration.
13090 * exec.c (_initialize_exec): Add declaration.
13091 * extension.c (_initialize_extension): Add declaration.
13092 * f-lang.c (_initialize_f_language): Add declaration.
13093 * f-valprint.c (_initialize_f_valprint): Add declaration.
13094 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
13095 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
13096 * filesystem.c (_initialize_filesystem): Add declaration.
13097 * findcmd.c (_initialize_mem_search): Add declaration.
13098 * findvar.c (_initialize_findvar): Add declaration.
13099 * fork-child.c (_initialize_fork_child): Add declaration.
13100 * frame-base.c (_initialize_frame_base): Add declaration.
13101 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
13102 * frame.c (_initialize_frame): Add declaration.
13103 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
13104 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
13105 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
13106 * gcore.c (_initialize_gcore): Add declaration.
13107 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
13108 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
13109 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
13110 * gdbarch.c (_initialize_gdbarch): Add declaration.
13111 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
13112 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
13113 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
13114 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
13115 * go-lang.c (_initialize_go_language): Add declaration.
13116 * go32-nat.c (_initialize_go32_nat): Add declaration.
13117 * guile/guile.c (_initialize_guile): Add declaration.
13118 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
13119 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
13120 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
13121 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
13122 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
13123 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
13124 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
13125 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
13126 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
13127 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
13128 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
13129 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
13130 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
13131 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
13132 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
13133 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
13134 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
13135 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
13136 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
13137 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
13138 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
13139 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
13140 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
13141 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
13142 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
13143 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
13144 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
13145 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
13146 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
13147 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
13148 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
13149 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
13150 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
13151 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
13152 * infcall.c (_initialize_infcall): Add declaration.
13153 * infcmd.c (_initialize_infcmd): Add declaration.
13154 * inflow.c (_initialize_inflow): Add declaration.
13155 * infrun.c (_initialize_infrun): Add declaration.
13156 * interps.c (_initialize_interpreter): Add declaration.
13157 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
13158 * jit.c (_initialize_jit): Add declaration.
13159 * language.c (_initialize_language): Add declaration.
13160 * linux-fork.c (_initialize_linux_fork): Add declaration.
13161 * linux-nat.c (_initialize_linux_nat): Add declaration.
13162 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
13163 * linux-thread-db.c (_initialize_thread_db): Add declaration.
13164 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
13165 * m2-lang.c (_initialize_m2_language): Add declaration.
13166 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
13167 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
13168 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
13169 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
13170 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
13171 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
13172 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
13173 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
13174 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
13175 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
13176 * machoread.c (_initialize_machoread): Add declaration.
13177 * macrocmd.c (_initialize_macrocmd): Add declaration.
13178 * macroscope.c (_initialize_macroscope): Add declaration.
13179 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13180 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13181 * maint.c (_initialize_maint_cmds): Add declaration.
13182 * mdebugread.c (_initialize_mdebugread): Add declaration.
13183 * memattr.c (_initialize_mem): Add declaration.
13184 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13185 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13186 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13187 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13188 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13189 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13190 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13191 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13192 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13193 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13194 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13195 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13196 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13197 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13198 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13199 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13200 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13201 * mipsread.c (_initialize_mipsread): Add declaration.
13202 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13203 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13204 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13205 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13206 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13207 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13208 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13209 * nto-procfs.c (_initialize_procfs): Add declaration.
13210 * objc-lang.c (_initialize_objc_language): Add declaration.
13211 * observable.c (_initialize_observer): Add declaration.
13212 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13213 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13214 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13215 * osabi.c (_initialize_gdb_osabi): Add declaration.
13216 * osdata.c (_initialize_osdata): Add declaration.
13217 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13218 * parse.c (_initialize_parse): Add declaration.
13219 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13220 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13221 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13222 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13223 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13224 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13225 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13226 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13227 * printcmd.c (_initialize_printcmd): Add declaration.
13228 * probe.c (_initialize_probe): Add declaration.
13229 * proc-api.c (_initialize_proc_api): Add declaration.
13230 * proc-events.c (_initialize_proc_events): Add declaration.
13231 * proc-service.c (_initialize_proc_service): Add declaration.
13232 * procfs.c (_initialize_procfs): Add declaration.
13233 * producer.c (_initialize_producer): Add declaration.
13234 * psymtab.c (_initialize_psymtab): Add declaration.
13235 * python/python.c (_initialize_python): Add declaration.
13236 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13237 * record-btrace.c (_initialize_record_btrace): Add declaration.
13238 * record-full.c (_initialize_record_full): Add declaration.
13239 * record.c (_initialize_record): Add declaration.
13240 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13241 * regcache.c (_initialize_regcache): Add declaration.
13242 * reggroups.c (_initialize_reggroup): Add declaration.
13243 * remote-notif.c (_initialize_notif): Add declaration.
13244 * remote-sim.c (_initialize_remote_sim): Add declaration.
13245 * remote.c (_initialize_remote): Add declaration.
13246 * reverse.c (_initialize_reverse): Add declaration.
13247 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13248 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13249 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13250 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13251 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13252 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13253 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13254 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13255 Add declaration.
13256 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13257 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13258 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13259 * rust-exp.y (_initialize_rust_exp): Add declaration.
13260 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13261 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13262 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13263 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13264 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13265 * score-tdep.c (_initialize_score_tdep): Add declaration.
13266 * ser-go32.c (_initialize_ser_dos): Add declaration.
13267 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13268 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13269 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13270 * ser-uds.c (_initialize_ser_socket): Add declaration.
13271 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13272 * serial.c (_initialize_serial): Add declaration.
13273 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13274 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13275 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13276 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13277 * skip.c (_initialize_step_skip): Add declaration.
13278 * sol-thread.c (_initialize_sol_thread): Add declaration.
13279 * solib-aix.c (_initialize_solib_aix): Add declaration.
13280 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13281 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13282 * solib-frv.c (_initialize_frv_solib): Add declaration.
13283 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13284 * solib-target.c (_initialize_solib_target): Add declaration.
13285 * solib.c (_initialize_solib): Add declaration.
13286 * source-cache.c (_initialize_source_cache): Add declaration.
13287 * source.c (_initialize_source): Add declaration.
13288 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13289 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13290 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13291 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13292 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13293 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13294 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13295 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13296 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13297 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13298 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13299 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13300 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13301 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13302 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13303 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13304 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13305 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13306 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13307 * stabsread.c (_initialize_stabsread): Add declaration.
13308 * stack.c (_initialize_stack): Add declaration.
13309 * stap-probe.c (_initialize_stap_probe): Add declaration.
13310 * std-regs.c (_initialize_frame_reg): Add declaration.
13311 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13312 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13313 * symfile.c (_initialize_symfile): Add declaration.
13314 * symmisc.c (_initialize_symmisc): Add declaration.
13315 * symtab.c (_initialize_symtab): Add declaration.
13316 * target.c (_initialize_target): Add declaration.
13317 * target-connection.c (_initialize_target_connection): Add
13318 declaration.
13319 * target-dcache.c (_initialize_target_dcache): Add declaration.
13320 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13321 * thread.c (_initialize_thread): Add declaration.
13322 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13323 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13324 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13325 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13326 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13327 * tracectf.c (_initialize_ctf): Add declaration.
13328 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13329 * tracefile.c (_initialize_tracefile): Add declaration.
13330 * tracepoint.c (_initialize_tracepoint): Add declaration.
13331 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13332 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13333 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13334 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13335 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13336 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13337 * tui/tui.c (_initialize_tui): Add declaration.
13338 * typeprint.c (_initialize_typeprint): Add declaration.
13339 * ui-style.c (_initialize_ui_style): Add declaration.
13340 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13341 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13342 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13343 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13344 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13345 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13346 * unittests/filtered_iterator-selftests.c
13347 (_initialize_filtered_iterator_selftests): Add declaration.
13348 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13349 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13350 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13351 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13352 * unittests/main-thread-selftests.c
13353 (_initialize_main_thread_selftests): Add declaration.
13354 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13355 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13356 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13357 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13358 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13359 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13360 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13361 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13362 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13363 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13364 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13365 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13366 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13367 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13368 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13369 declaration.
13370 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13371 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13372 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13373 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13374 * user-regs.c (_initialize_user_regs): Add declaration.
13375 * utils.c (_initialize_utils): Add declaration.
13376 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13377 * valops.c (_initialize_valops): Add declaration.
13378 * valprint.c (_initialize_valprint): Add declaration.
13379 * value.c (_initialize_values): Add declaration.
13380 * varobj.c (_initialize_varobj): Add declaration.
13381 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13382 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13383 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13384 * windows-nat.c (_initialize_windows_nat): Add declaration.
13385 (_initialize_check_for_gdb_ini): Add declaration.
13386 (_initialize_loadable): Add declaration.
13387 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13388 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13389 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13390 * xcoffread.c (_initialize_xcoffread): Add declaration.
13391 * xml-support.c (_initialize_xml_support): Add declaration.
13392 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13393 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13394 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13395 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13396
e2de1eec
SM
133972020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13398
13399 * regformats/regdat.sh: Generate declaration for init function.
13400
e0037b4c
SM
134012020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13402
13403 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13404 up.
13405 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13406 close_one_inferior>: New methods.
13407 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13408 pass down target to find_inferior_pid.
13409 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13410 Pass down target to find_inferior_ptid.
13411 (gdbsim_target::create_inferior): Pass down target to
13412 add_thread_silent.
13413 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13414 target down to find_inferior_ptid and switch_to_thread.
13415 (gdbsim_target::close): Update to call close_one_inferior.
13416 (struct resume_data): Remove.
13417 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13418 directly, rather than through a void pointer.
13419 (gdbsim_target::resume): Update to call resume_one_inferior.
13420
58920b5b
SM
134212020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13422
13423 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13424
4ec89149
PA
134252020-01-12 Pedro Alves <palves@redhat.com>
13426
13427 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13428 directly for the current inferior instead of
13429 discard_all_inferiors.
13430 (discard_all_inferiors): Delete.
13431
7c392d1d
TT
134322020-01-11 Tom Tromey <tom@tromey.com>
13433
13434 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13435 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13436 deprecated_safe_get_selected_frame.
13437
d9ebdab7
TBA
134382020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13439
13440 * inferior.c (print_inferior): Switch inferior before printing it.
13441
f3c469b9
PA
134422020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13443 Pedro Alves <palves@redhat.com>
13444
13445 * progspace-and-thread.c (switch_to_program_space_and_thread):
13446 Assert there's an inferior for PSPACE. Use
13447 switch_to_inferior_no_thread to switch the inferior too.
13448 * progspace.c (program_space::~program_space): Call
13449 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13450 (program_space::free_all_objfiles): Don't call clear_symtab_users
13451 here.
13452 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13453
65c574f6
PA
134542020-01-10 Pedro Alves <palves@redhat.com>
13455
13456 * NEWS: Mention multi-target debugging, "info connections", and
13457 "add-inferior -no-connection".
13458
2f4fcf00
PA
134592020-01-10 Pedro Alves <palves@redhat.com>
13460
13461 * infrun.c: Include "target-connection.h".
13462 (check_multi_target_resumption): New.
13463 (proceed): Call it.
13464 * target-connection.c (make_target_connection_string): Make
13465 extern.
13466 * target-connection.h (make_target_connection_string): Declare.
13467
121b3efd
PA
134682020-01-10 Pedro Alves <palves@redhat.com>
13469
13470 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13471 * inferior.c (uiout_field_connection): New function.
13472 (print_inferior): Add new "connection-id" column.
13473 (add_inferior_command): Show connection number/string of added
13474 inferior.
13475 * process-stratum-target.h
13476 (process_stratum_target::connection_string): New virtual method.
13477 (process_stratum_target::connection_number): New field.
13478 * remote.c (remote_target::connection_string): New override.
13479 * target-connection.c: New file.
13480 * target-connection.h: New file.
13481 * target.c (decref_target): Remove process_stratum targets from
13482 the connection list.
13483 (target_stack::push): Add process_stratum targets to the
13484 connection list.
13485
4f837581
PA
134862020-01-10 Pedro Alves <palves@redhat.com>
13487
13488 Revert:
13489 2016-04-12 Pedro Alves <palves@redhat.com>
13490 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13491 Remove references to name.
13492 * serial.h (struct serial) <name>: Delete.
13493
f4ec508e
PA
134942020-01-10 Pedro Alves <palves@redhat.com>
13495
13496 * gdbarch-selftests.c (register_to_value_test): Remove "target
13497 already pushed" check.
13498
5b6d1e4f
PA
134992020-01-10 Pedro Alves <palves@redhat.com>
13500 John Baldwin <jhb@FreeBSD.org>
13501
13502 * aarch64-linux-nat.c
13503 (aarch64_linux_nat_target::thread_architecture): Adjust.
13504 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13505 (task_command_1): Likewise.
13506 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13507 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13508 (aix_thread_target::store_registers)
13509 (aix_thread_target::thread_alive): Adjust.
13510 * amd64-fbsd-tdep.c: Include "inferior.h".
13511 (amd64fbsd_get_thread_local_address): Pass down target.
13512 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13513 thread's gdbarch instead of target_gdbarch.
13514 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13515 get_last_target_status.
13516 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13517 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13518 inferiors.
13519 (update_inserted_breakpoint_locations): Skip if inferiors with no
13520 execution.
13521 (update_global_location_list): When handling moribund locations,
13522 find representative inferior for location's pspace, and use thread
13523 count of its process_stratum target.
13524 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13525 * bsd-uthread.c (bsd_uthread_target::wait): Use
13526 as_process_stratum_target and adjust thread_change_ptid and
13527 add_thread calls.
13528 (bsd_uthread_target::update_thread_list): Use
13529 as_process_stratum_target and adjust find_thread_ptid,
13530 thread_change_ptid and add_thread calls.
13531 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13532 find_thread_ptid call.
13533 * corelow.c (add_to_thread_list): Adjust add_thread call.
13534 (core_target_open): Adjust add_thread_silent and thread_count
13535 calls.
13536 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13537 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13538 * event-top.c (async_disconnect): Pop targets from all inferiors.
13539 * exec.c (add_target_sections): Push exec target on all inferiors
13540 sharing the program space.
13541 (remove_target_sections): Remove the exec target from all
13542 inferiors sharing the program space.
13543 (exec_on_vfork): New.
13544 * exec.h (exec_on_vfork): Declare.
13545 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13546 Pass it down.
13547 (fbsd_nat_target::update_thread_list): Adjust.
13548 (fbsd_nat_target::resume): Adjust.
13549 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13550 down.
13551 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13552 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13553 get_thread_arch_regcache call.
13554 * fork-child.c (gdb_startup_inferior): Pass target down to
13555 startup_inferior and set_executing.
13556 * gdbthread.h (struct process_stratum_target): Forward declare.
13557 (add_thread, add_thread_silent, add_thread_with_info)
13558 (in_thread_list): Add process_stratum_target parameter.
13559 (find_thread_ptid(inferior*, ptid_t)): New overload.
13560 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13561 parameter.
13562 (all_threads()): Delete overload.
13563 (all_threads, all_non_exited_threads): Add process_stratum_target
13564 parameter.
13565 (all_threads_safe): Use brace initialization.
13566 (thread_count): Add process_stratum_target parameter.
13567 (set_resumed, set_running, set_stop_requested, set_executing)
13568 (threads_are_executing, finish_thread_state): Add
13569 process_stratum_target parameter.
13570 (switch_to_thread): Use is_current_thread.
13571 * i386-fbsd-tdep.c: Include "inferior.h".
13572 (i386fbsd_get_thread_local_address): Pass down target.
13573 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13574 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13575 have_inferiors check.
13576 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13577 (inf_ptrace_target::attach): Adjust.
13578 * infcall.c (run_inferior_call): Adjust.
13579 * infcmd.c (run_command_1): Pass target to
13580 scoped_finish_thread_state.
13581 (proceed_thread_callback): Skip inferiors with no execution.
13582 (continue_command): Rename 'all_threads' local to avoid hiding
13583 'all_threads' function. Adjust get_last_target_status call.
13584 (prepare_one_step): Adjust set_running call.
13585 (signal_command): Use user_visible_resume_target. Compare thread
13586 pointers instead of inferior_ptid.
13587 (info_program_command): Adjust to pass down target.
13588 (attach_command): Mark target's 'thread_executing' flag.
13589 (stop_current_target_threads_ns): New, factored out from ...
13590 (interrupt_target_1): ... this. Switch inferior before making
13591 target calls.
13592 * inferior-iter.h
13593 (struct all_inferiors_iterator, struct all_inferiors_range)
13594 (struct all_inferiors_safe_range)
13595 (struct all_non_exited_inferiors_range): Filter on
13596 process_stratum_target too. Remove explicit.
13597 * inferior.c (inferior::inferior): Push dummy target on target
13598 stack.
13599 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13600 Add process_stratum_target parameter, and pass it down.
13601 (have_live_inferiors): Adjust.
13602 (switch_to_inferior_and_push_target): New.
13603 (add_inferior_command, clone_inferior_command): Handle
13604 "-no-connection" parameter. Use
13605 switch_to_inferior_and_push_target.
13606 (_initialize_inferior): Mention "-no-connection" option in
13607 the help of "add-inferior" and "clone-inferior" commands.
13608 * inferior.h: Include "process-stratum-target.h".
13609 (interrupt_target_1): Use bool.
13610 (struct inferior) <push_target, unpush_target, target_is_pushed,
13611 find_target_beneath, top_target, process_target, target_at,
13612 m_stack>: New.
13613 (discard_all_inferiors): Delete.
13614 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13615 (all_inferiors, all_non_exited_inferiors): Add
13616 process_stratum_target parameter.
13617 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13618 (target_last_proc_target): New global.
13619 (follow_fork_inferior): Push target on new inferior. Pass target
13620 to add_thread_silent. Call exec_on_vfork. Handle target's
13621 reference count.
13622 (follow_fork): Adjust get_last_target_status call. Also consider
13623 target.
13624 (follow_exec): Push target on new inferior.
13625 (struct execution_control_state) <target>: New field.
13626 (user_visible_resume_target): New.
13627 (do_target_resume): Call target_async.
13628 (resume_1): Set target's threads_executing flag. Consider resume
13629 target.
13630 (commit_resume_all_targets): New.
13631 (proceed): Also consider resume target. Skip threads of inferiors
13632 with no execution. Commit resumtion in all targets.
13633 (start_remote): Pass current inferior to wait_for_inferior.
13634 (infrun_thread_stop_requested): Consider target as well. Pass
13635 thread_info pointer to clear_inline_frame_state instead of ptid.
13636 (infrun_thread_thread_exit): Consider target as well.
13637 (random_pending_event_thread): New inferior parameter. Use it.
13638 (do_target_wait): Rename to ...
13639 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13640 down.
13641 (threads_are_resumed_pending_p, do_target_wait): New.
13642 (prepare_for_detach): Adjust calls.
13643 (wait_for_inferior): New inferior parameter. Handle it. Use
13644 do_target_wait_1 instead of do_target_wait.
13645 (fetch_inferior_event): Adjust. Switch to representative
13646 inferior. Pass target down.
13647 (set_last_target_status): Add process_stratum_target parameter.
13648 Save target in global.
13649 (get_last_target_status): Add process_stratum_target parameter and
13650 handle it.
13651 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13652 (context_switch): Check inferior_ptid == null_ptid before calling
13653 inferior_thread().
13654 (get_inferior_stop_soon): Pass down target.
13655 (wait_one): Rename to ...
13656 (poll_one_curr_target): ... this.
13657 (struct wait_one_event): New.
13658 (wait_one): New.
13659 (stop_all_threads): Adjust.
13660 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13661 event's target.
13662 (switch_back_to_stepped_thread): Also consider target.
13663 (print_stop_event): Update.
13664 (normal_stop): Update. Also consider the resume target.
13665 * infrun.h (wait_for_inferior): Remove declaration.
13666 (user_visible_resume_target): New declaration.
13667 (get_last_target_status, set_last_target_status): New
13668 process_stratum_target parameter.
13669 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13670 process_stratum_target parameter, and use it.
13671 (clear_inline_frame_state (thread_info*)): New.
13672 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13673 process_stratum_target parameter.
13674 (clear_inline_frame_state (thread_info*)): Declare.
13675 * linux-fork.c (delete_checkpoint_command): Pass target down to
13676 find_thread_ptid.
13677 (checkpoint_command): Adjust.
13678 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13679 instead of just tweaking inferior_ptid.
13680 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13681 (exit_lwp): Pass target down to find_thread_ptid.
13682 (attach_proc_task_lwp_callback): Pass target down to
13683 add_thread/set_running/set_executing.
13684 (linux_nat_target::attach): Pass target down to
13685 thread_change_ptid.
13686 (get_detach_signal): Pass target down to find_thread_ptid.
13687 Consider last target status's target.
13688 (linux_resume_one_lwp_throw, resume_lwp)
13689 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13690 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13691 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13692 (linux_nat_target::async_wait_fd): New.
13693 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13694 target down.
13695 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13696 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13697 * linux-thread-db.c (struct thread_db_info::process_target): New
13698 field.
13699 (add_thread_db_info): Save target.
13700 (get_thread_db_info): New process_stratum_target parameter. Also
13701 match target.
13702 (delete_thread_db_info): New process_stratum_target parameter.
13703 Also match target.
13704 (thread_from_lwp): Adjust to pass down target.
13705 (thread_db_notice_clone): Pass down target.
13706 (check_thread_db_callback): Pass down target.
13707 (try_thread_db_load_1): Always push the thread_db target.
13708 (try_thread_db_load, record_thread): Pass target down.
13709 (thread_db_target::detach): Pass target down. Always unpush the
13710 thread_db target.
13711 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13712 target down. Always unpush the thread_db target.
13713 (find_new_threads_callback, thread_db_find_new_threads_2)
13714 (thread_db_target::update_thread_list): Pass target down.
13715 (thread_db_target::pid_to_str): Pass current inferior down.
13716 (thread_db_target::get_thread_local_address): Pass target down.
13717 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13718 target down.
13719 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13720 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13721 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13722 (procfs_init_inferior): Rename to ...
13723 (procfs_target::procfs_init_inferior): ... this and adjust.
13724 (procfs_target::create_inferior, procfs_notice_thread)
13725 (procfs_do_thread_registers): Adjust.
13726 * ppc-fbsd-tdep.c: Include "inferior.h".
13727 (ppcfbsd_get_thread_local_address): Pass down target.
13728 * proc-service.c (ps_xfer_memory): Switch current inferior and
13729 program space as well.
13730 (get_ps_regcache): Pass target down.
13731 * process-stratum-target.c
13732 (process_stratum_target::thread_address_space)
13733 (process_stratum_target::thread_architecture): Pass target down.
13734 * process-stratum-target.h
13735 (process_stratum_target::threads_executing): New field.
13736 (as_process_stratum_target): New.
13737 * ravenscar-thread.c
13738 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13739 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13740 down.
13741 * record-btrace.c (record_btrace_target::info_record): Adjust.
13742 (record_btrace_target::record_method)
13743 (record_btrace_target::record_is_replaying)
13744 (record_btrace_target::fetch_registers)
13745 (get_thread_current_frame_id, record_btrace_target::resume)
13746 (record_btrace_target::wait, record_btrace_target::stop): Pass
13747 target down.
13748 * record-full.c (record_full_wait_1): Switch to event thread.
13749 Pass target down.
13750 * regcache.c (regcache::regcache)
13751 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13752 process_stratum_target parameter and handle it.
13753 (current_thread_target): New global.
13754 (get_thread_regcache): Add process_stratum_target parameter and
13755 handle it. Switch inferior before calling target method.
13756 (get_thread_regcache): Pass target down.
13757 (get_thread_regcache_for_ptid): Pass target down.
13758 (registers_changed_ptid): Add process_stratum_target parameter and
13759 handle it.
13760 (registers_changed_thread, registers_changed): Pass target down.
13761 (test_get_thread_arch_aspace_regcache): New.
13762 (current_regcache_test): Define a couple local test_target_ops
13763 instances and use them for testing.
13764 (readwrite_regcache): Pass process_stratum_target parameter.
13765 (cooked_read_test, cooked_write_test): Pass mock_target down.
13766 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13767 (get_thread_arch_aspace_regcache): Add process_stratum_target
13768 parameter.
13769 (regcache::target): New method.
13770 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13771 (regcache::registers_changed_ptid): Add process_stratum_target
13772 parameter.
13773 (regcache::m_target): New field.
13774 (registers_changed_ptid): Add process_stratum_target parameter.
13775 * remote.c (remote_state::supports_vCont_probed): New field.
13776 (remote_target::async_wait_fd): New method.
13777 (remote_unpush_and_throw): Add remote_target parameter.
13778 (get_current_remote_target): Adjust.
13779 (remote_target::remote_add_inferior): Push target.
13780 (remote_target::remote_add_thread)
13781 (remote_target::remote_notice_new_inferior)
13782 (get_remote_thread_info): Pass target down.
13783 (remote_target::update_thread_list): Skip threads of inferiors
13784 bound to other targets. (remote_target::close): Don't discard
13785 inferiors. (remote_target::add_current_inferior_and_thread)
13786 (remote_target::process_initial_stop_replies)
13787 (remote_target::start_remote)
13788 (remote_target::remote_serial_quit_handler): Pass down target.
13789 (remote_target::remote_unpush_target): New remote_target
13790 parameter. Unpush the target from all inferiors.
13791 (remote_target::remote_unpush_and_throw): New remote_target
13792 parameter. Pass it down.
13793 (remote_target::open_1): Check whether the current inferior has
13794 execution instead of checking whether any inferior is live. Pass
13795 target down.
13796 (remote_target::remote_detach_1): Pass down target. Use
13797 remote_unpush_target.
13798 (extended_remote_target::attach): Pass down target.
13799 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13800 (remote_target::append_resumption): Pass down target.
13801 (remote_target::append_pending_thread_resumptions)
13802 (remote_target::remote_resume_with_hc, remote_target::resume)
13803 (remote_target::commit_resume): Pass down target.
13804 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13805 (remote_target::interrupt_query)
13806 (remote_target::remove_new_fork_children)
13807 (remote_target::check_pending_events_prevent_wildcard_vcont)
13808 (remote_target::remote_parse_stop_reply)
13809 (remote_target::process_stop_reply): Pass down target.
13810 (first_remote_resumed_thread): New remote_target parameter. Pass
13811 it down.
13812 (remote_target::wait_as): Pass down target.
13813 (unpush_and_perror): New remote_target parameter. Pass it down.
13814 (remote_target::readchar, remote_target::remote_serial_write)
13815 (remote_target::getpkt_or_notif_sane_1)
13816 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13817 down target.
13818 (remote_target::mourn_inferior): Pass down target. Use
13819 remote_unpush_target.
13820 (remote_target::core_of_thread)
13821 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13822 (remote_target::pid_to_exec_file)
13823 (remote_target::thread_handle_to_thread_info): Pass down target.
13824 (remote_target::async_wait_fd): New.
13825 * riscv-fbsd-tdep.c: Include "inferior.h".
13826 (riscv_fbsd_get_thread_local_address): Pass down target.
13827 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13828 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13829 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13830 Adjust.
13831 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13832 * solib-svr4.c (enable_break): Pass down target.
13833 * spu-multiarch.c (parse_spufs_run): Pass down target.
13834 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13835 * target-delegates.c: Regenerate.
13836 * target.c (g_target_stack): Delete.
13837 (current_top_target): Return the current inferior's top target.
13838 (target_has_execution_1): Refer to the passed-in inferior's top
13839 target.
13840 (target_supports_terminal_ours): Check whether the initial
13841 inferior was already created.
13842 (decref_target): New.
13843 (target_stack::push): Incref/decref the target.
13844 (push_target, push_target, unpush_target): Adjust.
13845 (target_stack::unpush): Defref target.
13846 (target_is_pushed): Return bool. Adjust to refer to the current
13847 inferior's target stack.
13848 (dispose_inferior): Delete, and inline parts ...
13849 (target_preopen): ... here. Only dispose of the current inferior.
13850 (target_detach): Hold strong target reference while detaching.
13851 Pass target down.
13852 (target_thread_name): Add assertion.
13853 (target_resume): Pass down target.
13854 (target_ops::beneath, find_target_at): Adjust to refer to the
13855 current inferior's target stack.
13856 (get_dummy_target): New.
13857 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13858 has a thread running.
13859 (initialize_targets): Rename to ...
13860 (_initialize_target): ... this.
13861 * target.h: Include "gdbsupport/refcounted-object.h".
13862 (struct target_ops): Inherit refcounted_object.
13863 (target_ops::shortname, target_ops::longname): Make const.
13864 (target_ops::async_wait_fd): New method.
13865 (decref_target): Declare.
13866 (struct target_ops_ref_policy): New.
13867 (target_ops_ref): New typedef.
13868 (get_dummy_target): Declare function.
13869 (target_is_pushed): Return bool.
13870 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
13871 (all_matching_threads_iterator::all_matching_threads_iterator):
13872 Handle filter target.
13873 * thread-iter.h (struct all_matching_threads_iterator, struct
13874 all_matching_threads_range, class all_non_exited_threads_range):
13875 Filter by target too. Remove explicit.
13876 * thread.c (threads_executing): Delete.
13877 (inferior_thread): Pass down current inferior.
13878 (clear_thread_inferior_resources): Pass down thread pointer
13879 instead of ptid_t.
13880 (add_thread_silent, add_thread_with_info, add_thread): Add
13881 process_stratum_target parameter. Use it for thread and inferior
13882 searches.
13883 (is_current_thread): New.
13884 (thread_info::deletable): Use it.
13885 (find_thread_ptid, thread_count, in_thread_list)
13886 (thread_change_ptid, set_resumed, set_running): New
13887 process_stratum_target parameter. Pass it down.
13888 (set_executing): New process_stratum_target parameter. Pass it
13889 down. Adjust reference to 'threads_executing'.
13890 (threads_are_executing): New process_stratum_target parameter.
13891 Adjust reference to 'threads_executing'.
13892 (set_stop_requested, finish_thread_state): New
13893 process_stratum_target parameter. Pass it down.
13894 (switch_to_thread): Also match inferior.
13895 (switch_to_thread): New process_stratum_target parameter. Pass it
13896 down.
13897 (update_threads_executing): Reimplement.
13898 * top.c (quit_force): Pop targets from all inferior.
13899 (gdb_init): Don't call initialize_targets.
13900 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13901 Declare.
13902 (windows_add_thread, windows_delete_thread): Adjust.
13903 (get_windows_debug_event): Rename to ...
13904 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13905 * tracefile-tfile.c (tfile_target_open): Pass down target.
13906 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13907 Forward declare.
13908 (switch_to_thread): Add process_stratum_target parameter.
13909 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13910 parameter. Use it.
13911 (mi_on_resume): Pass target down.
13912 * nat/fork-inferior.c (startup_inferior): Add
13913 process_stratum_target parameter. Pass it down.
13914 * nat/fork-inferior.h (startup_inferior): Add
13915 process_stratum_target parameter.
13916 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13917
75c6c844
PA
139182020-01-10 Pedro Alves <palves@redhat.com>
13919
13920 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13921 directly. Instead find the first thread in the thread list and
13922 use switch_to_thread.
13923
78f2c40a
PA
139242020-01-10 Pedro Alves <palves@redhat.com>
13925
13926 * remote.c (remote_target::remote_add_inferior): Don't bind a
13927 process to the current inferior if the current inferior is already
13928 bound to a process.
13929
e7af6c70
TBA
139302020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13931 Pedro Alves <palves@redhat.com>
13932
13933 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13934 If no process is specified, return null_ptid instead of
13935 inferior_ptid.
13936 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13937 TARGET_WAITKIND_SIGNALLED with no pid.
13938
31ba933e
PA
139392020-01-10 Pedro Alves <palves@redhat.com>
13940
13941 * remote.c (first_remote_resumed_thread): New.
13942 (remote_target::wait_as): Use it as default event_ptid instead of
13943 inferior_ptid.
13944
735fc2ca
PA
139452020-01-10 Pedro Alves <palves@redhat.com>
13946
13947 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13948
c17e02e1
PA
139492020-01-10 Pedro Alves <palves@redhat.com>
13950
13951 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13952 not -1.
13953
ab1ddbcf
PA
139542020-01-10 Pedro Alves <palves@redhat.com>
13955
13956 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13957 ptid to get_last_target_status.
13958 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13959 ptid to get_last_target_status.
13960 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13961 get_last_target_status.
13962 (info_program_command): Don't pass a target_waitstatus to
13963 get_last_target_status.
13964 * infrun.c (init_wait_for_inferior): Use
13965 nullify_last_target_wait_ptid.
13966 (get_last_target_status): Handle nullptr arguments.
13967 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13968 (print_stop_event): Don't pass a ptid to get_last_target_status.
13969 (normal_stop): Don't pass a ptid to get_last_target_status.
13970 * infrun.h (get_last_target_status, set_last_target_status): Move
13971 comments here and update.
13972 (nullify_last_target_wait_ptid): Declare.
13973 * linux-fork.c (fork_load_infrun_state): Remove local extern
13974 declaration of nullify_last_target_wait_ptid.
13975 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13976 to get_last_target_status.
13977
f3f8ece4
PA
139782020-01-10 Pedro Alves <palves@redhat.com>
13979
13980 * gdbthread.h (scoped_restore_current_thread)
13981 <dont_restore, restore, m_dont_restore>: Declare.
13982 * thread.c (thread_alive): Add assertion. Return bool.
13983 (switch_to_thread_if_alive): New.
13984 (prune_threads): Switch inferior/thread.
13985 (print_thread_info_1): Switch thread before calling target methods.
13986 (scoped_restore_current_thread::restore): New, factored out from
13987 ...
13988 (scoped_restore_current_thread::~scoped_restore_current_thread):
13989 ... this.
13990 (scoped_restore_current_thread::scoped_restore_current_thread):
13991 Add assertion.
13992 (thread_apply_all_command, thread_select): Use
13993 switch_to_thread_if_alive.
13994 * infrun.c (proceed, restart_threads, handle_signal_stop)
13995 (switch_back_to_stepped_thread): Switch current thread before
13996 calling target methods.
13997
db2d40f7
PA
139982020-01-10 Pedro Alves <palves@redhat.com>
13999
14000 * inferior.c (switch_to_inferior_no_thread): New function,
14001 factored out from ...
14002 (inferior_command): ... here.
14003 * inferior.h (switch_to_inferior_no_thread): Declare.
14004 * mi/mi-main.c (run_one_inferior): Use
14005 switch_to_inferior_no_thread.
14006
bd420a2d
PA
140072020-01-10 Pedro Alves <palves@redhat.com>
14008
14009 * infcmd.c (kill_command): Remove dead code.
14010
ddf5db90
PA
140112020-01-10 Pedro Alves <palves@redhat.com>
14012
14013 * remote.c (remote_target::mourn_inferior): No longer check
14014 whether the target is running.
14015
5018ce90
PA
140162020-01-10 Pedro Alves <palves@redhat.com>
14017
14018 * corelow.c (core_target::has_execution): Change parameter type to
14019 inferior pointer.
14020 * inferior.c (number_of_live_inferiors): Use
14021 inferior::has_execution instead of target_has_execution_1.
14022 * inferior.h (inferior::has_execution): New.
14023 * linux-thread-db.c (thread_db_target::update_thread_list): Use
14024 inferior::has_execution instead of target_has_execution_1.
14025 * process-stratum-target.c
14026 (process_stratum_target::has_execution): Change parameter type to
14027 inferior pointer. Check the inferior's PID instead of
14028 inferior_ptid.
14029 * process-stratum-target.h
14030 (process_stratum_target::has_execution): Change parameter type to
14031 inferior pointer.
14032 * record-full.c (record_full_core_target::has_execution): Change
14033 parameter type to inferior pointer.
14034 * target.c (target_has_execution_1): Change parameter type to
14035 inferior pointer.
14036 (target_has_execution_current): Adjust.
14037 * target.h (target_ops::has_execution): Change parameter type to
14038 inferior pointer.
14039 (target_has_execution_1): Change parameter type to inferior
14040 pointer. Change return type to bool.
14041 * tracefile.h (tracefile_target::has_execution): Change parameter
14042 type to inferior pointer.
14043
74375d18
PA
140442020-01-10 Pedro Alves <palves@redhat.com>
14045
14046 * exceptions.c (print_flush): Remove current_top_target() check.
14047
acdf84a6
PA
140482020-01-10 Pedro Alves <palves@redhat.com>
14049
14050 * remote.c (show_remote_exec_file): Show the current inferior's
14051 exec-file instead of the command variable's value.
14052
ec506636
PA
140532020-01-10 Pedro Alves <palves@redhat.com>
14054
14055 * record-full.c (record_full_resume_ptid): New global.
14056 (record_full_target::resume): Set it.
14057 (record_full_wait_1): Use record_full_resume_ptid instead of
14058 inferior_ptid.
14059
873657b9
PA
140602020-01-10 Pedro Alves <palves@redhat.com>
14061
14062 * gdbthread.h (scoped_restore_current_thread)
14063 <dont_restore, restore, m_dont_restore>: Declare.
14064 * thread.c (thread_alive): Add assertion. Return bool.
14065 (switch_to_thread_if_alive): New.
14066 (prune_threads): Switch inferior/thread.
14067 (print_thread_info_1): Switch thread before calling target methods.
14068 (scoped_restore_current_thread::restore): New, factored out from
14069 ...
14070 (scoped_restore_current_thread::~scoped_restore_current_thread):
14071 ... this.
14072 (scoped_restore_current_thread::scoped_restore_current_thread):
14073 Add assertion.
14074 (thread_apply_all_command, thread_select): Use
14075 switch_to_thread_if_alive.
14076
7f0ae84c
GB
140772020-01-10 George Barrett <bob@bob131.so>
14078
14079 * stap-probe.c (stap_modify_semaphore): Don't check for null
14080 semaphores.
14081 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
14082 for null semaphores.
14083
f5a7c406
AB
140842020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14085
14086 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
14087 all source windows, and maintain horizontal scroll status while
14088 doing so.
14089
9ae6bf64
TT
140902020-01-09 Tom Tromey <tom@tromey.com>
14091
14092 PR tui/18932:
14093 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
14094 update_source_window, not print_source_lines.
14095
b2efe70c
AB
140962020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14097
14098 * tui/tui.c (tui_enable): Register tui hooks after calling
14099 tui_display_main.
14100
5f23a082
CB
141012020-01-09 Christian Biesinger <cbiesinger@google.com>
14102
14103 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
14104
3061113b
SM
141052020-01-08 Simon Marchi <simon.marchi@efficios.com>
14106
14107 * thread.c (print_thread_info_1): Fix indentation.
14108
57d75002
CB
141092020-01-09 Christian Biesinger <cbiesinger@google.com>
14110
14111 * symtab.c (general_symbol_info::compute_and_set_names): Move the
14112 unique_xmalloc_ptr outside the if to always free the demangled name.
14113
6a053cb1
TT
141142020-01-08 Tom Tromey <tromey@adacore.com>
14115
14116 * xcoffread.c (enter_line_range, read_xcoff_symtab)
14117 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
14118 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
14119 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
14120 Remove.
14121 (section_offsets): New typedef.
14122 * symtab.c (fixup_section, get_msymbol_address): Update.
14123 * symmisc.c (dump_msymbols): Update.
14124 * symfile.h (relative_addr_info_to_section_offsets)
14125 (symfile_map_offsets_to_segments): Update.
14126 * symfile.c (build_section_addr_info_from_objfile)
14127 (init_objfile_sect_indices): Update.
14128 (struct place_section_arg): Change type of "offsets".
14129 (place_section): Update.
14130 (relative_addr_info_to_section_offsets): Change type of
14131 "section_offsets". Remove "num_sections" parameter.
14132 (default_symfile_offsets, syms_from_objfile_1)
14133 (set_objfile_default_section_offset): Update.
14134 (reread_symbols): No need to preserve section offsets by hand.
14135 (symfile_map_offsets_to_segments): Change type of "offsets".
14136 * stap-probe.c (relocate_address): Update.
14137 * stabsread.h (process_one_symbol): Update.
14138 * solib-target.c (struct lm_info_target) <offsets>: Change type.
14139 (solib_target_relocate_section_addresses): Update.
14140 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
14141 Update.
14142 * solib-frv.c (frv_relocate_main_executable): Update.
14143 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
14144 * solib-aix.c (solib_aix_get_section_offsets): Change return
14145 type.
14146 (solib_aix_solib_create_inferior_hook): Update.
14147 * remote.c (remote_target::get_offsets): Update.
14148 * psymtab.c (find_pc_sect_psymtab): Update.
14149 * psympriv.h (struct partial_symbol) <address, text_low,
14150 text_high>: Update.
14151 * objfiles.h (obj_section_offset): Update.
14152 (struct objfile) <section_offsets>: Change type.
14153 <num_sections>: Remove.
14154 (objfile_relocate): Update.
14155 * objfiles.c (entry_point_address_query): Update
14156 (relocate_one_symbol): Change type of "section_offsets".
14157 (objfile_relocate1, objfile_relocate1): Change type of
14158 "new_offsets".
14159 (objfile_rebase1): Update.
14160 * mipsread.c (mipscoff_symfile_read): Update.
14161 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
14162 parameter.
14163 * mdebugread.c (parse_symbol): Change type of "section_offsets".
14164 (parse_external, psymtab_to_symtab_1): Update.
14165 * machoread.c (macho_symfile_offsets): Update.
14166 * ia64-tdep.c (ia64_find_unwind_table): Update.
14167 * hppa-tdep.c (read_unwind_info): Update.
14168 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
14169 * dwarf2read.c (create_addrmap_from_index)
14170 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14171 (process_psymtab_comp_unit_reader, add_partial_symbol)
14172 (add_partial_subprogram, process_full_comp_unit)
14173 (read_file_scope, read_func_scope, read_lexical_block_scope)
14174 (read_call_site_scope, dwarf2_rnglists_process)
14175 (dwarf2_ranges_process, dwarf2_ranges_read)
14176 (dwarf_decode_lines_1, var_decode_location, new_symbol)
14177 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
14178 Update.
14179 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14180 Update.
14181 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14182 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14183 (process_one_symbol): Change type of "section_offsets".
14184 * ctfread.c (get_objfile_text_range): Update.
14185 * coffread.c (coff_symtab_read, enter_linenos)
14186 (process_coff_symbol): Update.
14187 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14188 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14189
456e800a
TT
141902020-01-08 Tom Tromey <tromey@adacore.com>
14191
14192 * dwarf2read.c (parse_macro_definition): Use std::string.
14193 (parse_macro_definition): Likewise.
14194
6dfa2fc2
TT
141952020-01-08 Tom Tromey <tromey@adacore.com>
14196
14197 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14198 (ATTR_ALLOC_CHUNK): Remove.
14199
421d1616
TT
142002020-01-08 Tom Tromey <tromey@adacore.com>
14201
14202 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14203
43816ebc
TT
142042020-01-08 Tom Tromey <tromey@adacore.com>
14205
14206 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14207 (dwarf2_compute_name, open_dwo_file): Likewise.
14208 (process_enumeration_scope): Use std::vector.
14209 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14210 (partial_die_info::fixup, dwarf2_start_subfile)
14211 (guess_full_die_structure_name, dwarf2_name): Likewise.
14212 (determine_prefix): Update.
14213 (guess_full_die_structure_name): Make return type const.
14214 (partial_die_full_name): Return unique_xmalloc_ptr.
14215 (DW_FIELD_ALLOC_CHUNK): Remove.
14216
4212d509
TT
142172020-01-07 Tom Tromey <tromey@adacore.com>
14218
14219 PR build/24937:
14220 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14221
06a6207a
JT
142222020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14223
14224 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14225
153d79c4
AB
142262020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14227
14228 * stack.c (print_frame_info): Move disassemble_next_line code
14229 inside source_print block.
14230
66182876
EZ
142312020-01-06 Eli Zaretskii <eliz@gnu.org>
14232
14233 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14234 gdb/signals.h, as we are now using native signal symbols.
14235
cbfa8581
SV
142362020-01-06 Shahab Vahedi <shahab@synopsys.com>
14237
14238 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14239 overflow by an early check of content vs threshold.
aac66a4c 14240 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
14241 Likewise.
14242
3f602821
EZ
142432020-01-06 Eli Zaretskii <eliz@gnu.org>
14244
14245 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14246
a08c904d
JT
142472020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14248
14249 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14250 export table if no section contains it's RVA.
14251
89a65580
EZ
142522020-01-06 Eli Zaretskii <eliz@gnu.org>
14253
14254 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14255
8b7fcda2
HD
142562020-01-06 Hannes Domani <ssbssa@yahoo.de>
14257
14258 * source.c (print_source_lines_base): Set last_line_listed.
14259
a61b4f69
SV
142602020-01-06 Shahab Vahedi <shahab@synopsys.com>
14261
14262 * tui/tui-disasm.c: Remove trailing spaces.
14263
559e7e50
EZ
142642020-01-06 Eli Zaretskii <eliz@gnu.org>
14265 Pedro Alves <palves@redhat.com>
14266
14267 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14268 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14269 (windows_gdb_signal_to_target): New function, uses the above
14270 enumeration to convert GDB internal signal codes to equivalent
14271 Windows codes.
14272 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14273 * windows-nat.c: Include "gdb_wait.h".
14274 (get_windows_debug_event): Extract the fatal exception from the
14275 exit status and convert to the equivalent Posix signal number.
14276 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14277 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14278 * gdbsupport/gdb_wait.c: New file, implements
14279 windows_status_to_termsig.
14280 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14281 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14282
f2302a34
AB
142832020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14284
14285 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14286 show_layout.
14287
6a5206eb
LM
142882020-01-05 Luis Machado <luis.machado@linaro.org>
14289
14290 * aarch64-linux-nat.c
14291 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14292 and bfd_mach_aarch64.
14293
6ec1d75e
PW
142942020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14295
14296 * ui-file.c (stdio_file::can_emit_style_escape)
14297 (tee_file::can_emit_style_escape): Ensure style is used also on
14298 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14299 to gdb_stdout.
14300 * main.c (set_gdb_data_directory): Use file style to output the
14301 warning that the given pathname is not a directory.
14302 * top.c (show_history_filename, gdb_safe_append_history)
14303 (show_gdb_datadir): Use file style.
14304
44f81a76
HD
143052020-01-03 Hannes Domani <ssbssa@yahoo.de>
14306
14307 * solib-target.c (struct lm_info_target):
14308 Change offsets to be a unique_xmalloc_ptr.
14309 (solib_target_relocate_section_addresses): Update.
14310
25057eb0
HD
143112020-01-03 Hannes Domani <ssbssa@yahoo.de>
14312
14313 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14314
6e2118f5
BE
143152020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14316
14317 * MAINTAINERS (Write After Approval): Add myself.
14318
8133c7dc
LM
143192020-01-02 Luis Machado <luis.machado@linaro.org>
14320
14321 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14322 Cell BE architecture.
14323 * target.h (struct target_ops) <thread_architecture>: Likewise.
14324
48189bec
HD
143252020-01-01 Hannes Domani <ssbssa@yahoo.de>
14326
14327 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14328
ead1063b
HD
143292020-01-01 Hannes Domani <ssbssa@yahoo.de>
14330
14331 * MAINTAINERS (Write After Approval): Add myself.
14332
e5d78223
JB
143332020-01-01 Joel Brobecker <brobecker@adacore.com>
14334
14335 * gdbarch.sh: Update copyright year range of generated files.
14336
b811d2c2
JB
143372020-01-01 Joel Brobecker <brobecker@adacore.com>
14338
14339 Update copyright year range in all GDB files.
14340
5f4def5c
JB
143412020-01-01 Joel Brobecker <brobecker@adacore.com>
14342
14343 * copyright.py: Convert to Python 3.
14344
51fd4002
JB
143452020-01-01 Joel Brobecker <brobecker@adacore.com>
14346
14347 * copyright.py: Adapt after move of gnulib directory from gdb
14348 directory to toplevel directory.
14349
5fb651f2
JB
143502020-01-01 Joel Brobecker <brobecker@adacore.com>
14351
14352 * copyright.py (main): Exit if run from the wrong directory.
14353
5dd8bf88
JB
143542020-01-01 Joel Brobecker <brobecker@adacore.com>
14355
14356 * top.c (print_gdb_version): Change copyright year to 2020.
14357
9f71dacb 143582020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 14359
9f71dacb 14360 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 14361
9f71dacb 14362For older changes see ChangeLog-2019.
c906108c
SS
14363\f
14364Local Variables:
14365mode: change-log
14366left-margin: 8
14367fill-column: 74
14368version-control: never
57da7796 14369coding: utf-8
c906108c 14370End:
This page took 3.481561 seconds and 4 git commands to generate.