Change some uses of DW_STRING to string method
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-09-29 Tom Tromey <tom@tromey.com>
2
3 * dwarf2/read.c (partial_die_info::read)
4 (dwarf2_const_value_attr, anonymous_struct_prefix, )
5 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
6 attribute::as_string.
7
8 2020-09-29 Tom Tromey <tom@tromey.com>
9
10 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
11 DW_ADDR.
12 (attribute::string): Don't use DW_STRING.
13 (attribute::get_ref_die_offset): Don't use DW_UNSND.
14 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
15
16 2020-09-29 Tom Tromey <tom@tromey.com>
17
18 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
19 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
20 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
21 * dwarf2/attribute.h (struct attribute): Rename methods.
22 * dwarf2/attribute.c (attribute::as_address): Rename from
23 value_as_address.
24 (attribute::as_string): Rename from value_as_string.
25
26 2020-09-29 Tom Tromey <tom@tromey.com>
27
28 * dwarf2/read.c (partial_die_info::read) <case
29 DW_AT_linkage_name>: Use value_as_string.
30 (dwarf2_string_attr): Use value_as_string.
31 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
32 method.
33 * dwarf2/attribute.c (attribute::value_as_string): New method.
34
35 2020-09-29 Pedro Alves <pedro@palves.net>
36
37 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
38 defined before using '#pragma GCC diagnostic' instead of checking
39 __clang__.
40
41 2020-09-28 Tom Tromey <tom@tromey.com>
42
43 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
44 (handle_signal_stop): Update.
45 * procfs.c (procfs_target::insert_watchpoint): Update.
46 * target.h (target_have_steppable_watchpoint): Now a function.
47
48 2020-09-28 Tom Tromey <tom@tromey.com>
49
50 * infrun.c (set_schedlock_func): Update.
51 * target.h (target_can_lock_scheduler): Now a function.
52
53 2020-09-28 Tom Tromey <tom@tromey.com>
54
55 * inferior.h (class inferior) <has_execution>: Update.
56 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
57 * valops.c (find_function_in_inferior)
58 (value_allocate_space_in_inferior): Update.
59 * top.c (kill_or_detach): Update.
60 * target.c (target_preopen, set_target_permissions): Update.
61 (target_has_execution_current): Remove.
62 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
63 Update.
64 * solib.c (update_solib_list, reload_shared_libraries): Update.
65 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
66 * solib-dsbt.c (enable_break): Update.
67 * score-tdep.c (score7_fetch_inst): Update.
68 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
69 Update.
70 * remote.c (remote_target::start_remote)
71 (remote_target::remote_check_symbols, remote_target::open_1)
72 (remote_target::remote_detach_1, remote_target::verify_memory)
73 (remote_target::xfer_partial, remote_target::read_description)
74 (remote_target::get_min_fast_tracepoint_insn_len): Update.
75 * record-full.c (record_full_open_1): Update.
76 * record-btrace.c (record_btrace_target_open): Update.
77 * objc-lang.c (lookup_objc_class, lookup_child_selector)
78 (value_nsstring): Update.
79 * linux-thread-db.c (add_thread_db_info)
80 (thread_db_find_new_threads_silently, check_thread_db_callback)
81 (try_thread_db_load_1, record_thread): Update.
82 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
83 Update.
84 * linux-fork.c (checkpoint_command): Update.
85 * infrun.c (set_non_stop, set_observer_mode)
86 (check_multi_target_resumption, for_each_just_stopped_thread)
87 (maybe_remove_breakpoints, normal_stop)
88 (class infcall_suspend_state): Update.
89 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
90 (info_program_command, attach_command): Update.
91 * infcall.c (call_function_by_hand_dummy): Update.
92 * inf-loop.c (inferior_event_handler): Update.
93 * gcore.c (gcore_command, derive_heap_segment): Update.
94 * exec.c (exec_file_command): Update.
95 * eval.c (evaluate_subexp): Update.
96 * compile/compile.c (compile_to_object): Update.
97 * cli/cli-dump.c (restore_command): Update.
98 * breakpoint.c (update_watchpoint)
99 (update_inserted_breakpoint_locations)
100 (insert_breakpoint_locations, get_bpstat_thread): Update.
101 * target.h (target_has_execution): Remove macro.
102 (target_has_execution_current): Don't declare.
103 (target_has_execution): Rename from target_has_execution_1. Add
104 argument default.
105
106 2020-09-28 Tom Tromey <tom@tromey.com>
107
108 * mi/mi-main.c (exec_reverse_continue)
109 (mi_cmd_list_target_features): Update.
110 * infrun.c (set_exec_direction_func): Update.
111 * target.c (default_execution_direction): Update.
112 * reverse.c (exec_reverse_once): Update.
113 * target.h (target_can_execute_reverse): Now a function.
114
115 2020-09-28 Tom Tromey <tom@tromey.com>
116
117 * tui/tui-regs.c (tui_get_register)
118 (tui_data_window::show_registers): Update.
119 * thread.c (scoped_restore_current_thread::restore)
120 (scoped_restore_current_thread::scoped_restore_current_thread):
121 Update.
122 * regcache-dump.c (regcache_print): Update.
123 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
124 Update.
125 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
126 * mep-tdep.c (current_me_module, current_options): Update.
127 * linux-thread-db.c (thread_db_load): Update.
128 * infcmd.c (registers_info, info_vector_command)
129 (info_float_command): Update.
130 * ia64-tdep.c (ia64_frame_prev_register)
131 (ia64_sigtramp_frame_prev_register): Update.
132 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
133 * gcore.c (derive_stack_segment): Update.
134 * frame.c (get_current_frame, has_stack_frames): Update.
135 * findvar.c (language_defn::read_var_value): Update.
136 * arm-tdep.c (arm_pc_is_thumb): Update.
137 * target.c (target_has_registers): Rename from
138 target_has_registers_1.
139 * target.h (target_has_registers): Remove macro.
140 (target_has_registers): Rename from target_has_registers_1.
141
142 2020-09-28 Tom Tromey <tom@tromey.com>
143
144 * windows-tdep.c (tlb_make_value): Update.
145 * tui/tui-regs.c (tui_data_window::show_registers): Update.
146 * thread.c (scoped_restore_current_thread::restore)
147 (scoped_restore_current_thread::scoped_restore_current_thread)
148 (thread_command): Update.
149 * stack.c (backtrace_command_1, frame_apply_level_command)
150 (frame_apply_all_command, frame_apply_command): Update.
151 * infrun.c (siginfo_make_value, restore_infcall_control_state):
152 Update.
153 * gcore.c (derive_stack_segment): Update.
154 * frame.c (get_current_frame, has_stack_frames): Update.
155 * auxv.c (info_auxv_command): Update.
156 * ada-tasks.c (ada_build_task_list): Update.
157 * target.c (target_has_stack): Rename from target_has_stack_1.
158 * target.h (target_has_stack): Remove macro.
159 (target_has_stack): Rename from target_has_stack_1.
160
161 2020-09-28 Tom Tromey <tom@tromey.com>
162
163 * target.c (target_has_memory): Rename from target_has_memory_1.
164 * tui/tui-regs.c (tui_data_window::show_registers): Update.
165 * thread.c (scoped_restore_current_thread::restore)
166 (scoped_restore_current_thread::scoped_restore_current_thread):
167 Update.
168 * frame.c (get_current_frame, has_stack_frames): Update.
169 * target.h (target_has_memory): Remove macro.
170 (target_has_memory): Rename from target_has_memory_1.
171
172 2020-09-28 Tom Tromey <tom@tromey.com>
173
174 * target.c (target_has_all_memory_1): Remove.
175 * target.h (target_has_all_memory): Remove define.
176 (target_has_all_memory_1): Don't declare.
177
178 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
179
180 * ser-base.c: Adjust comments formatting.
181
182 2020-09-27 Tom Tromey <tom@tromey.com>
183
184 PR tui/25342:
185 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
186
187 2020-09-27 Tom Tromey <tom@tromey.com>
188
189 PR tui/25342:
190 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
191
192 2020-09-27 Tom Tromey <tom@tromey.com>
193
194 * unittests/tui-selftests.c: Update.
195 * tui/tui-winsource.h (struct tui_source_window_base)
196 <extra_margin, show_line_number, refresh_pad>: New methods.
197 <m_max_length, m_pad>: New members.
198 (tui_copy_source_line): Update.
199 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
200 first_col, line_width, ndigits parameters. Add length.
201 (tui_source_window_base::show_source_line): Write to pad. Line
202 number now 0-based.
203 (tui_source_window_base::refresh_pad): New method.
204 (tui_source_window_base::show_source_content): Write to pad. Call
205 refresh_pad.
206 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
207 not refill.
208 (tui_source_window_base::update_exec_info): Call
209 show_line_number.
210 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
211 method.
212 <m_digits>: New member.
213 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
214 and m_max_length.
215 (tui_source_window::show_line_number): New method.
216 * tui/tui-io.h (tui_puts): Fix comment.
217 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
218 m_max_length.
219
220 2020-09-27 Tom Tromey <tom@tromey.com>
221
222 * tui/tui-winsource.c
223 (tui_source_window_base::set_is_exec_point_at): Don't call
224 show_source_line.
225
226 2020-09-27 Tom Tromey <tom@tromey.com>
227
228 * python/py-tui.c (class tui_py_window) <refresh_window>: New
229 method.
230 <erase>: Update.
231 <cursor_x, cursor_y>: Remove.
232 <m_inner_window>: New member.
233 (tui_py_window::rerender): Create inner window.
234 (tui_py_window::output): Write to inner window.
235
236 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
237
238 PR python/26586
239 * cli/cli-script.c (execute_control_commands): don't set
240 instream to nullptr here as this breaks the from_tty argument
241 to gdb.execute in Python.
242 (execute_user_command): set instream to nullptr here instead.
243
244 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
245
246 * infrun.h (infrun_debug_printf): Fix formatting.
247 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
248
249 2020-09-25 Saagar Jha <saagar@saagarjha.com>
250
251 * compile/compile-object-load.h (struct munmap_list): Add
252 explicitly-defined move constructor.
253
254 2020-09-24 Tom Tromey <tromey@adacore.com>
255
256 PR tui/26638:
257 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
258 method.
259 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
260 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
261 (tui_prev_win): Rewrite.
262
263 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
264
265 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
266 in WOW64 processes as SIGINT.
267 * nat/windows-nat.h: Make wow64_process a shared variable.
268 * windows-nat.c: Remove static wow64_process variable.
269
270 2020-09-23 Tom Tromey <tom@tromey.com>
271
272 PR symtab/25470:
273 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
274 offset and bit size.
275 * printcmd.c (print_scalar_formatted): Handle zero-length
276 integer.
277 (print_scalar_formatted): Use bit_size_differs_p.
278 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
279 constant.
280 (union type_specific): <int_stuff>: New member.
281 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
282 methods.
283 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
284 TYPE_SPECIFIC_FIELD.
285 (recursive_dump_type, copy_type_recursive): Update.
286 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
287 DW_AT_data_bit_offset.
288
289 2020-09-23 Tom Tromey <tom@tromey.com>
290
291 * utils.h (class gdb_argv): Add move operators.
292 <append>: New methods.
293 * compile/compile.c (build_argc_argv): Remove.
294 (compile_args_argc): Remove.
295 (compile_args_argv): Change type.
296 (set_compile_args): Simplify.
297 (append_args): Remove.
298 (filter_args): Remove argcp parameter.
299 (get_args): Return gdb_argv. Simplify.
300 (compile_to_object): Update.
301
302 2020-09-23 Tom Tromey <tom@tromey.com>
303
304 * compile/compile-object-run.c (do_module_cleanup)
305 <~do_module_cleanup> :Remove.
306 (do_module_cleanup): Update.
307 * compile/compile-object-load.h (struct munmap_list): Add move
308 assignment operator.
309 <source_file>: Now a std::string.
310 <munmap_list>: Rename. No longer a pointer.
311 * compile/compile-object-load.c (struct setup_sections_data): Add
312 constructor.
313 <setup_one_section>: Declare.
314 <munmap_list>: Move earlier.
315 <m_bfd>: New member.
316 <m_last_size, m_last_section_first, m_last_prot,
317 m_last_max_alignment>: Rename, add initializers where needed.
318 (setup_sections_data::setup_one_section): Rename from
319 setup_sections. Update.
320 (compile_object_load): Update. Don't use bfd_map_over_sections.
321
322 2020-09-23 Tom Tromey <tom@tromey.com>
323
324 * compile/compile-object-run.c (struct do_module_cleanup): Add
325 parameters to constructor. Update destructor.
326 <source_file, scope, scope_data, out_value_type, out_value_addr,
327 munmap_list_head, objfile_name_string>: Remove.
328 <module>: New member.
329 (do_module_cleanup): Update.
330 (compile_object_run): Update.
331
332 2020-09-23 Tom Tromey <tom@tromey.com>
333
334 * compile/compile.c (eval_compile_command): Update.
335 * compile/compile-object-run.h (compile_object_run): Take a
336 compile_module_up.
337 * compile/compile-object-run.c (compile_object_run): Take a
338 compile_module_up.
339 * compile/compile-object-load.h (struct compile_module): Add
340 constructor, destructor.
341 (compile_module_up): New typedef.
342 (compile_object_load): Return compile_object_up.
343 * compile/compile-object-load.c (compile_object_load): Return
344 compile_module_up.
345
346 2020-09-23 Tom Tromey <tom@tromey.com>
347
348 * compile/compile-object-run.c (struct do_module_cleanup): Add
349 constructor, destructor.
350 <objfile_name_string>: Don't use struct hack.
351 (do_module_cleanup): Use delete.
352 (compile_object_run): Use new.
353
354 2020-09-23 Tom Tromey <tom@tromey.com>
355
356 * compile/compile-cplus-types.c
357 (compile_cplus_convert_struct_or_union): Use std::vector.
358 (compile_cplus_convert_func): Likewise.
359 * compile/compile-c-types.c (convert_func): Use std::vector.
360
361 2020-09-21 Tom Tromey <tromey@adacore.com>
362
363 * sparc-tdep.c (sparc32_skip_prologue): Use
364 skip_prologue_using_sal.
365
366 2020-09-19 Tom Tromey <tom@tromey.com>
367
368 * symfile.c (add_section_size_callback): Remove.
369 (load_one_section): Rename from load_section_callback. Change
370 parameters.
371 (generic_load): Use foreach.
372
373 2020-09-19 Tom Tromey <tom@tromey.com>
374
375 * exec.c (add_to_section_table): Remove.
376 (build_section_table): Use foreach.
377
378 2020-09-19 Tom Tromey <tom@tromey.com>
379
380 * elfread.c (elf_locate_sections): Change parameters.
381 (elf_symfile_read): Use foreach.
382
383 2020-09-19 Tom Tromey <tom@tromey.com>
384
385 * cli/cli-dump.c (struct callback_data): Remove.
386 (restore_one_section): Rename from restore_section_callback.
387 Change parameters.
388 (restore_binary_file): Change parameters.
389 (restore_command): Use foreach.
390
391 2020-09-19 Tom Tromey <tom@tromey.com>
392
393 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
394 (gcore_copy_callback): Likewise.
395 (gcore_memory_sections): Use foreach.
396
397 2020-09-19 Tom Tromey <tom@tromey.com>
398
399 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
400 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
401 parameters.
402 (generic_elf_osabi_sniffer): Use foreach.
403 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
404 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
405
406 2020-09-19 Tom Tromey <tom@tromey.com>
407
408 * dwarf2/read.c (locate_dwz_sections): Change parameters.
409 (dwarf2_get_dwz_file): Use foreach.
410 (dwarf2_locate_dwo_sections): Change parameters.
411 (open_and_init_dwo_file): Use foreach.
412 (dwarf2_locate_common_dwp_sections): Change parameters.
413 (open_and_init_dwp_file): Use foreach.
414
415 2020-09-19 Tom Tromey <tom@tromey.com>
416
417 * symfile.h: (find_lowest_section): Don't declare.
418 * symfile.c (find_lowest_section): Now static. Change
419 parameters.
420 (struct place_section_arg): Remove.
421 (place_section): Change parameters.
422 (addr_info_make_relative): Use foreach.
423 (symfile_dummy_outputs): Remove.
424 (default_symfile_relocate): Use foreach.
425
426 2020-09-19 Tom Tromey <tom@tromey.com>
427
428 * objfiles.c (add_to_objfile_sections): Rename from
429 add_to_objfile_sections_full.
430 (add_to_objfile_sections): Remove.
431 (build_objfile_section_table): Use foreach.
432
433 2020-09-19 Tom Tromey <tom@tromey.com>
434
435 * stap-probe.c (get_stap_base_address_1): Remove.
436 (get_stap_base_address): Use foreach.
437
438 2020-09-19 Tom Tromey <tom@tromey.com>
439
440 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
441 parameters.
442 (gdb_bfd_close_or_warn): Use foreach.
443
444 2020-09-19 Tom Tromey <tom@tromey.com>
445
446 * corelow.c (add_to_thread_list): Change parameters.
447 (core_target_open): Use foreach.
448
449 2020-09-19 Tom Tromey <tom@tromey.com>
450
451 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
452 existing function.
453
454 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
455
456 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
457 for arrays.
458
459 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
460
461 * eval.c: Remove 'f-lang.h' include.
462 (value_f90_subarray): Moved to f-lang.c.
463 (eval_call): Renamed to...
464 (evaluate_subexp_do_call): ...this, is no longer static, header
465 comment moved into header file.
466 (evaluate_funcall): Update call to eval_call.
467 (skip_undetermined_arglist): Moved to f-lang.c.
468 (fortran_value_subarray): Likewise.
469 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
470 moved to evaluate_subexp_f.
471 (calc_f77_array_dims): Moved to f-lang.c
472 * expprint.c (print_subexp_funcall): New function.
473 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
474 moved to print_subexp_f, OP_FUNCALL uses new function.
475 (dump_subexp_body_funcall): New function.
476 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
477 moved to dump_subexp_f, OP_FUNCALL uses new function.
478 * expression.h (evaluate_subexp_do_call): Declare.
479 * f-lang.c (value_f90_subarray): Moved from eval.c.
480 (skip_undetermined_arglist): Likewise.
481 (calc_f77_array_dims): Likewise.
482 (fortran_value_subarray): Likewise.
483 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
484 (operator_length_f): Likewise.
485 (print_subexp_f): Likewise.
486 (dump_subexp_body_f): Likewise.
487 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
488 declaration of this operation to here.
489 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
490 support moved to operator_length_f.
491 * parser-defs.h (dump_subexp_body_funcall): Declare.
492 (print_subexp_funcall): Declare.
493 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
494 fortran-operator.def.
495
496 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
497
498 * eval.c (fortran_value_subarray): New function, content is taken
499 from...
500 (evaluate_subexp_standard): ...here, in two places. Now arrays
501 and strings both call the new function.
502 (calc_f77_array_dims): Add header comment, handle strings.
503
504 2020-09-18 Victor Collod <vcollod@nvidia.com>
505
506 PR gdb/26635
507 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
508 (i386_analyze_prologue): Call i386_skip_endbr.
509
510 2020-09-18 Tom Tromey <tromey@adacore.com>
511
512 * windows-nat.c (struct windows_nat_target) <wait>: Update.
513 (windows_nat_target::wait): Update.
514 * target/wait.h (enum target_wait_flag): New. Use
515 DEF_ENUM_FLAGS_TYPE.
516 * target/target.h (target_wait): Change type of options.
517 * target.h (target_options_to_string, default_target_wait):
518 Update.
519 (struct target_ops) <wait>: Change type of options.
520 * target.c (target_wait, default_target_wait, do_option): Change
521 type of "options".
522 (target_options_to_string): Likewise.
523 * target-delegates.c: Rebuild.
524 * target-debug.h (target_debug_print_target_wait_flags): Rename
525 from target_debug_print_options.
526 * sol-thread.c (class sol_thread_target) <wait>: Update.
527 (sol_thread_target::wait): Update.
528 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
529 (rs6000_nat_target::wait): Update.
530 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
531 Update.
532 (remote_target::wait_ns, remote_target::wait_as): Change type of
533 "options".
534 (remote_target::wait): Update.
535 * remote-sim.c (struct gdbsim_target) <wait>: Update.
536 (gdbsim_target::wait): Update.
537 * record-full.c (class record_full_base_target) <wait>: Update.
538 (record_full_wait_1): Change type of "options".
539 (record_full_base_target::wait): Update.
540 * record-btrace.c (class record_btrace_target) <wait>: Update.
541 (record_btrace_target::wait): Update.
542 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
543 Update.
544 (ravenscar_thread_target::wait): Update.
545 * procfs.c (class procfs_target) <wait>: Update.
546 (procfs_target::wait): Update.
547 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
548 * obsd-nat.c (obsd_nat_target::wait): Update.
549 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
550 (nto_procfs_target::wait): Update.
551 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
552 * nbsd-nat.c (nbsd_wait): Change type of "options".
553 (nbsd_nat_target::wait): Update.
554 * linux-thread-db.c (class thread_db_target) <wait>: Update.
555 (thread_db_target::wait): Update.
556 * linux-nat.h (class linux_nat_target) <wait>: Update.
557 * linux-nat.c (linux_nat_target::wait): Update.
558 (linux_nat_wait_1): Update.
559 * infrun.c (do_target_wait_1, do_target_wait): Change type of
560 "options".
561 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
562 * inf-ptrace.c (inf_ptrace_target::wait): Update.
563 * go32-nat.c (struct go32_nat_target) <wait>: Update.
564 (go32_nat_target::wait): Update.
565 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
566 * gnu-nat.c (gnu_nat_target::wait): Update.
567 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
568 * fbsd-nat.c (fbsd_nat_target::wait): Update.
569 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
570 * darwin-nat.c (darwin_nat_target::wait): Update.
571 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
572 (bsd_uthread_target::wait): Update.
573 * aix-thread.c (class aix_thread_target) <wait>: Update.
574 (aix_thread_target::wait): Update.
575
576 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
577
578 * compile/compile-object-run.c (create_copied_type_recursive): New
579 function.
580 (compile_object_run): Use new function.
581
582 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
583
584 * NEWS: Mention x86_64 Cygwin core file support.
585
586 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
587
588 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
589 (core_process_module_section): Handle NOTE_INFO_MODULE64.
590
591 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
592
593 * windows-tdep.h: Add prototypes.
594 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
595 (i386_windows_core_pid_to_str): Move and rename ...
596 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
597 (windows_core_pid_to_str): ... and here.
598 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
599
600 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
601 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
602 (amd64_windows_init_abi_common): ... and register.
603
604 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
605
606 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
607 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
608
609 2020-09-18 Pedro Alves <pedro@palves.net>
610
611 PR gdb/26631
612 * thread.c (thread_find_command): Switch inferior before calling
613 target methods.
614
615 2020-09-17 Tom Tromey <tromey@adacore.com>
616
617 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
618 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
619 (tdesc_arch_data_up): New typedef.
620 (tdesc_use_registers, tdesc_data_alloc): Update.
621 (tdesc_data_cleanup): Don't declare.
622 * target-descriptions.c (tdesc_data_alloc): Return a
623 tdesc_arch_data_up.
624 (tdesc_arch_data_deleter::operator()): Rename from
625 tdesc_data_cleanup. Change argument type.
626 (tdesc_use_registers): Change early_data to an rvalue reference.
627 (tdesc_use_registers): Don't use delete.
628 * sparc-tdep.c (sparc32_gdbarch_init): Update.
629 * s390-tdep.c (s390_gdbarch_init): Update.
630 * rx-tdep.c (rx_gdbarch_init): Update.
631 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
632 * riscv-tdep.c (riscv_gdbarch_init): Update.
633 * or1k-tdep.c (or1k_gdbarch_init): Update.
634 * nios2-tdep.c (nios2_gdbarch_init): Update.
635 * nds32-tdep.c (nds32_gdbarch_init): Update.
636 * mips-tdep.c (mips_gdbarch_init): Update.
637 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
638 * m68k-tdep.c (m68k_gdbarch_init): Update.
639 * i386-tdep.c (i386_gdbarch_init): Update.
640 * arm-tdep.c (arm_gdbarch_init): Update.
641 * arc-tdep.c (arc_tdesc_init): Update.
642 (arc_gdbarch_init): Update.
643 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
644
645 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
646
647 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
648 for WOW64 processes.
649
650 2020-09-17 Tom Tromey <tom@tromey.com>
651
652 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
653
654 2020-09-17 Tom Tromey <tom@tromey.com>
655
656 * value.c (preserve_values): Update.
657 * python/py-type.c (save_objfile_types): Update.
658 * guile/scm-type.c (save_objfile_types): Update.
659 * gdbtypes.h (create_copied_types_hash): Return htab_up.
660 * gdbtypes.c (create_copied_types_hash): Return htab_up.
661 * compile/compile-object-run.c (compile_object_run): Update.
662
663 2020-09-17 Tom Tromey <tom@tromey.com>
664
665 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
666 Remove.
667 <m_table>: Now htab_up.
668 * typeprint.c (typedef_hash_table::recursively_update)
669 (typedef_hash_table::add_template_parameters)
670 (typedef_hash_table::typedef_hash_table): Update.
671 (typedef_hash_table::~typedef_hash_table): Remove.
672 (typedef_hash_table::typedef_hash_table)
673 (typedef_hash_table::find_global_typedef)
674 (typedef_hash_table::find_typedef): Update.
675
676 2020-09-17 Tom Tromey <tom@tromey.com>
677
678 * target-descriptions.c (tdesc_use_registers): Use htab_up.
679
680 2020-09-17 Tom Tromey <tom@tromey.com>
681
682 * linespec.c (class decode_compound_collector)
683 <~decode_compound_collector>: Remove.
684 <m_unique_syms>: Now htab_up.
685 (decode_compound_collector::operator ()): Update.
686 (class symtab_collector) <~symtab_collector>: Remove.
687 <m_symtab_table>: Now htab_up.
688 (symtab_collector::operator ()): Update.
689
690 2020-09-17 Tom Tromey <tom@tromey.com>
691
692 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
693 (filename_seen_cache::clear): Update.
694 (~filename_seen_cache): Remove.
695 (filename_seen_cache::seen): Update.
696 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
697 htab_up.
698 <~filename_seen_cache>: Remove.
699 <traverse>: Update.
700
701 2020-09-17 Tom Tromey <tom@tromey.com>
702
703 * completer.c (completion_tracker::discard_completions)
704 (completion_tracker::~completion_tracker)
705 (completion_tracker::maybe_add_completion)
706 (completion_tracker::remove_completion)
707 (completion_tracker::recompute_lowest_common_denominator)
708 (completion_tracker::build_completion_result): Update.
709 * completer.h (class completion_tracker) <have_completions>:
710 Update.
711 <m_entries_hash>: Now htab_up.
712
713 2020-09-17 Tom Tromey <tom@tromey.com>
714
715 * breakpoint.c (ambiguous_names_p): Use htab_up.
716
717 2020-09-17 Tom Tromey <tom@tromey.com>
718
719 * auto-load.c (struct auto_load_pspace_info)
720 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
721 <loaded_script_files, loaded_script_texts>: Change type to
722 htab_up.
723 (~auto_load_pspace_info) Remove.
724 (init_loaded_scripts_info, maybe_add_script_file)
725 (maybe_add_script_text, auto_load_info_scripts): Update.
726
727 2020-09-17 Tom Tromey <tromey@adacore.com>
728
729 * c-exp.y (name_obstack): Now static.
730
731 2020-09-17 Chungyi Chi <demonic@csie.io>
732
733 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
734
735 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
736
737 * breakpoint.h (init_catchpoint): Change int parameter to bool.
738 (add_solib_catchpoint): Likewise.
739 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
740 to bool.
741 (add_solib_catchpoint): Change int parameter/variable to bool.
742 (catch_load_or_unload): Likewise.
743 (init_catchpoint): Likewise.
744 (create_fork_vfork_event_catchpoint): Likewise.
745 (catch_fork_command_1): Likewise.
746 (catch_exec_command_1): Likewise.
747
748 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
749
750 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
751 Change instance_flags to m_instance_flags.
752
753 2020-09-16 Tom Tromey <tromey@adacore.com>
754
755 PR gdb/26598:
756 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
757
758 2020-09-16 John Baldwin <jhb@FreeBSD.org>
759
760 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
761 PL_FLAG_EXEC.
762 (fbsd_nat_target::insert_exec_catchpoint)
763 (fbsd_nat_target::remove_exec_catchpoint): Always define.
764 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
765 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
766
767 2020-09-16 John Baldwin <jhb@FreeBSD.org>
768
769 * configure.ac: Remove check for kinfo_getvmmap().
770 * configure, config.in: Regenerate.
771 * fbsd-nat.c (fbsd_read_mapping): Remove
772 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
773 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
774 kinfo_get_vmmap() are always present.
775
776 2020-09-16 John Baldwin <jhb@FreeBSD.org>
777
778 * fbsd-nat.c: Always include support for
779 TARGET_OBJECT_SIGNAL_INFO.
780
781 2020-09-16 John Baldwin <jhb@FreeBSD.org>
782
783 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
784 sysctl and remove procfs fallback.
785
786 2020-09-16 John Baldwin <jhb@FreeBSD.org>
787
788 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
789 * fbsd-nat.h: Likewise.
790
791 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
792
793 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
794 argument.
795
796 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
797
798 * ada-lang.c (ada_language_data): Delete.
799 (ada_language): Remove references to ada_language_data.
800 * c-lang.c (c_language_data): Delete.
801 (c_language): Remove references to c_language_data.
802 (cplus_language_data): Delete.
803 (cplus_language): Remove references to cplus_language_data.
804 (asm_language_data): Delete.
805 (asm_language): Remove references to asm_language_data.
806 (minimal_language_data): Delete.
807 (minimal_language): Remove references to minimal_language_data.
808 * d-lang.c (d_language_data): Delete.
809 (d_language): Remove references to d_language_data.
810 * f-lang.c (f_language_data): Delete.
811 (f_language): Remove references to f_language_data.
812 * go-lang.c (go_language_data): Delete.
813 (go_language): Remove references to go_language_data.
814 * language.c (unknown_language_data): Delete.
815 (unknown_language): Remove references to unknown_language_data.
816 (auto_language_data): Delete.
817 (auto_language): Remove references to auto_language_data.
818 * language.h (language_data): Delete struct.
819 (language_defn): No longer inherit from language_data.
820 * m2-lang.c (m2_language_data): Delete.
821 (m2_language): Remove references to m2_language_data.
822 * objc-lang.c (objc_language_data): Delete.
823 (objc_language): Remove references to objc_language_data.
824 * opencl-lang.c (opencl_language_data): Delete.
825 (opencl_language): Remove references to opencl_language_data.
826 * p-lang.c (pascal_language_data): Delete.
827 (pascal_language): Remove references to pascal_language_data.
828 * rust-lang.c (rust_language_data): Delete.
829 (rust_language): Remove references to rust_language_data.
830
831 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
832
833 * ada-lang.c (ada_language_data): Remove la_op_print_tab
834 initializer.
835 (ada_language::opcode_print_table): New member function.
836 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
837 (c_language::opcode_print_table): New member function.
838 (cplus_language_data): Remove la_op_print_tab initializer.
839 (cplus_language::opcode_print_table): New member function.
840 (asm_language_data): Remove la_op_print_tab initializer.
841 (asm_language::opcode_print_table): New member function.
842 (minimal_language_data): Remove la_op_print_tab initializer.
843 (minimal_language::opcode_print_table): New member function.
844 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
845 (d_language::opcode_print_table): New member function.
846 * expprint.c (print_subexp_standard): Update call to
847 opcode_print_table.
848 (op_string): Likewise.
849 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
850 (f_language::opcode_print_table): New member function.
851 * go-lang.c (go_language_data): Remove la_op_print_tab
852 initializer.
853 (go_language::opcode_print_table): New member function.
854 * language.c (unknown_language_data): Remove la_op_print_tab
855 initializer.
856 (unknown_language::opcode_print_table): New member function.
857 (auto_language_data): Remove la_op_print_tab initializer.
858 (auto_language::opcode_print_table): New member function.
859 * language.h (language_data): Remove la_op_print_tab field.
860 (language_defn::opcode_print_table): Declare new member function.
861 * m2-lang.c (m2_language_data): Remove la_op_print_tab
862 initializer.
863 (m2_language::opcode_print_table): New member function.
864 * objc-lang.c (objc_language_data): Remove la_op_print_tab
865 initializer.
866 (objc_language::opcode_print_table): New member function.
867 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
868 initializer.
869 (opencl_language::opcode_print_table): New member function.
870 * p-lang.c (pascal_language_data): Remove la_op_print_tab
871 initializer.
872 (pascal_language::opcode_print_table): New member function.
873 * rust-lang.c (rust_language_data): Remove la_op_print_tab
874 initializer.
875 (rust_language::opcode_print_table): New member function.
876
877 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
878
879 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
880 (ada_language::expression_ops): New member function.
881 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
882 (c_language::expression_ops): New member function.
883 (cplus_language_data): Remove la_exp_desc initializer.
884 (cplus_language::expression_ops): New member function.
885 (asm_language_data): Remove la_exp_desc initializer.
886 (asm_language::expression_ops): New member function.
887 (minimal_language_data): Remove la_exp_desc initializer.
888 (minimal_language::expression_ops): New member function.
889 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
890 (d_language::expression_ops): New member function.
891 * eval.c (evaluate_subexp): Update call to expression_ops.
892 * expprint.c (print_subexp): Likewise.
893 (op_name): Likewise.
894 (dump_subexp_body): Likewise.
895 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
896 (f_language::expression_ops): New member function.
897 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
898 (go_language::expression_ops): New member function.
899 * language.c (language_defn::expression_ops): New function.
900 (unknown_language_data): Remove la_exp_desc initializer.
901 (auto_language_data): Likewise.
902 * language.h (language_data): Remove la_exp_desc field.
903 (language_defn::expression_ops): Declare new member function.
904 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
905 (m2_language::expression_ops): New member function.
906 * objc-lang.c (objc_language_data): Remove la_exp_desc
907 initializer.
908 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
909 initializer.
910 (opencl_language::expression_ops): New member function.
911 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
912 * parse.c (operator_length): Update call to expression_ops.
913 (exp_iterate): Likewise.
914 * rust-lang.c (rust_language_data): Remove la_exp_desc
915 initializer.
916 (ruse_language::expression_ops): New member function.
917
918 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
919
920 * ada-lang.c (ada_language_data): Remove la_varobj_ops
921 initializer.
922 (ada_language::varobj_ops): New member function.
923 * c-lang.c (c_language_data): Remove la_varobj_ops
924 initializer.
925 (cplus_language_data): Likewise.
926 (cplus_language::varobj_ops): New member function.
927 (asm_language_data): Remove la_varobj_ops initializer.
928 (minimal_language_data): Likewise.
929 * d-lang.c (d_language_data): Likewise.
930 * f-lang.c (f_language_data): Likewise.
931 * go-lang.c (go_language_data): Likewise.
932 * language.c (language_defn::varobj_ops): New function.
933 (unknown_language_data): Remove la_varobj_ops
934 initializer.
935 (auto_language_data): Likewise.
936 * language.h (language_data): Remove la_varobj_ops field.
937 (language_defn::varobj_ops): Declare new member function.
938 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
939 * objc-lang.c (objc_language_data): Likewise.
940 * opencl-lang.c (opencl_language_data): Likewise.
941 * p-lang.c (pascal_language_data): Likewise.
942 * rust-lang.c (rust_language_data): Likewise.
943 * varobj.c (varobj_create): Update call to varobj_ops.
944 * varobj.h (default_varobj_ops): Delete define.
945
946 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
947
948 * ada-lang.c (ada_language_data): Remove la_macro_expansion
949 initializer.
950 * c-lang.c (c_language_data): Likewise.
951 (c_language::macro_expansion): New member function.
952 (cplus_language_data): Likewise.
953 (cplus_language::macro_expansion): New member function.
954 (asm_language_data): Likewise.
955 (asm_language::macro_expansion): New member function.
956 (minimal_language_data): Likewise.
957 (minimal_language::macro_expansion): New member function.
958 * d-lang.c (d_language_data): Remove la_macro_expansion
959 initializer.
960 * f-lang.c (f_language_data): Likewise.
961 * go-lang.c (go_language_data): Likewise.
962 * language.c (unknown_language_data): Likewise.
963 (auto_language_data): Likewise.
964 * language.h (language_data): Remove la_macro_expansion field.
965 (language_defn::macro_expansion): New member function.
966 * m2-lang.c (m2_language_data): Remove la_macro_expansion
967 initializer.
968 * objc-lang.c (objc_language_data): Likewise.
969 (objc_language::macro_expansion): New member function.
970 * opencl-lang.c (opencl_language_data): Likewise.
971 (opencl_language::macro_expansion): New member function.
972 * p-lang.c (pascal_language_data): Remove la_macro_expansion
973 initializer.
974 * rust-lang.c (rust_language_data): Likewise.
975 * symtab.c (default_collect_symbol_completion_matches_break_on):
976 Update call to macro_expansion.
977
978 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
979
980 * ada-lang.c (ada_language_data): Remove la_array_ordering
981 initializer.
982 * c-lang.c (c_language_data): Likewise.
983 (cplus_language_data): Likewise.
984 (asm_language_data): Likewise.
985 (minimal_language_data): Likewise.
986 * d-lang.c (d_language_data): Likewise.
987 * dwarf2/read.c (read_array_order): Update for call to
988 array_ordering.
989 * f-lang.c (f_language_data): Remove la_array_ordering
990 initializer.
991 (f_language::array_ordering): New member function.
992 * go-lang.c (go_language_data): Remove la_array_ordering
993 initializer.
994 * language.c (unknown_language_data): Likewise.
995 (auto_language_data): Likewise.
996 * language.h (language_data): Delete la_array_ordering field.
997 (language_defn::array_ordering): New member function.
998 * m2-lang.c (m2_language_data): Remove la_array_ordering
999 initializer.
1000 * objc-lang.c (objc_language_data): Likewise.
1001 * opencl-lang.c (opencl_language_data): Likewise.
1002 * p-lang.c (pascal_language_data): Likewise.
1003 * rust-lang.c (rust_language_data): Likewise.
1004
1005 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1006
1007 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
1008 initializer.
1009 * c-lang.c (c_language_data): Likewise.
1010 (cplus_language_data): Likewise.
1011 (asm_language_data): Likewise.
1012 (minimal_language_data): Likewise.
1013 * d-lang.c (d_language_data): Likewise.
1014 * f-lang.c (f_language_data): Likewise.
1015 (f_language::case_sensitivity): New member function.
1016 * go-lang.c (go_language_data): Remove la_case_sensitivity
1017 initializer.
1018 * language.c (enum case_mode): Moved here from language.h.
1019 (case_mode): Make static.
1020 (show_case_command): Update for case_sensitivity being a method.
1021 (set_case_command): Likewise.
1022 (set_range_case): Likewise.
1023 (unknown_language_data): Remove la_case_sensitivity initializer.
1024 (auto_language_data): Likewise.
1025 * language.h (case_mode): Delete, move enum declaration to
1026 language.c.
1027 (language_data): Delete la_case_sensitivity field.
1028 (language_defn::case_sensitivity): New member function.
1029 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
1030 initializer.
1031 * objc-lang.c (objc_language_data): Likewise.
1032 * opencl-lang.c (opencl_language_data): Likewise.
1033 * p-lang.c (pascal_language_data): Likewise.
1034 * rust-lang.c (rust_language_data): Likewise.
1035
1036 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1037
1038 * ada-lang.c (ada_language_data): Remove la_range_check
1039 initializer.
1040 * c-lang.c (c_language_data): Likewise.
1041 (cplus_language_data): Likewise.
1042 (asm_language_data): Likewise.
1043 (minimal_language_data): Likewise.
1044 * d-lang.c (d_language_data): Likewise.
1045 * f-lang.c (f_language_data): Likewise.
1046 (f_language::range_checking_on_by_default): New member function.
1047 * go-lang.c (go_language_data): Remove la_range_check initializer.
1048 * language.c (enum range_mode): Moved here from language.h.
1049 (range_mode): Made static.
1050 (show_range_command): Update to use
1051 range_checking_on_by_default.
1052 (set_range_command): Likewise.
1053 (set_range_case): Likewise.
1054 (unknown_language_data): Remove la_range_check initializer.
1055 (auto_language_data): Likewise.
1056 * language.h (range_mode): Delete. Enum definition moved to
1057 language.c.
1058 (language_data): Remove la_range_check field.
1059 (language_defn::range_checking_on_by_default): New member
1060 function.
1061 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
1062 (m2_language::range_checking_on_by_default): New member function.
1063 * objc-lang.c (objc_language_data): Remove la_range_check
1064 initializer.
1065 * opencl-lang.c (opencl_language_data): Likewise.
1066 * p-lang.c (pascal_language_data): Likewise.
1067 (pascal_language::range_checking_on_by_default): New member
1068 function.
1069 * rust-lang.c (rust_language_data): Remove la_range_check
1070 initializer.
1071 (rust_language::range_checking_on_by_default): New member
1072 function.
1073
1074 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1075
1076 * dwarf2/read.c (dwarf2_physname): Remove special case for
1077 language_go.
1078 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
1079 member function.
1080
1081 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1082
1083 * ada-lang.c (ada_language_data): Remove
1084 la_store_sym_names_in_linkage_form_p initializer.
1085 (ada_language::store_sym_names_in_linkage_form_p): New member
1086 function.
1087 * c-lang.c (c_language_data): Remove
1088 la_store_sym_names_in_linkage_form_p initializer.
1089 (c_language::store_sym_names_in_linkage_form_p): New member
1090 function.
1091 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
1092 initializer.
1093 (asm_language_data): Likewise.
1094 (asm_language::store_sym_names_in_linkage_form_p): New member
1095 function.
1096 (minimal_language_data): Remove
1097 la_store_sym_names_in_linkage_form_p initializer.
1098 (minimal_language::store_sym_names_in_linkage_form_p): New member
1099 function.
1100 * d-lang.c (d_language_data): Remove
1101 la_store_sym_names_in_linkage_form_p initializer.
1102 * dwarf2/read.c (dwarf2_physname): Update call to
1103 store_sym_names_in_linkage_form_p.
1104 * f-lang.c (f_language_data): Remove
1105 la_store_sym_names_in_linkage_form_p initializer.
1106 * go-lang.c (go_language_data): Remove
1107 la_store_sym_names_in_linkage_form_p initializer.
1108 * language.c (unknown_language_data): Remove
1109 la_store_sym_names_in_linkage_form_p initializer.
1110 (unknown_language::store_sym_names_in_linkage_form_p): New member
1111 function.
1112 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
1113 initializer.
1114 (auto_language::store_sym_names_in_linkage_form_p): New member
1115 function.
1116 * language.h (language_data): Remove
1117 la_store_sym_names_in_linkage_form_p member variable.
1118 (language_defn::store_sym_names_in_linkage_form_p): New member
1119 function.
1120 * m2-lang.c (m2_language_data): Remove
1121 la_store_sym_names_in_linkage_form_p initializer.
1122 * objc-lang.c (objc_language_data): Likewise.
1123 * opencl-lang.c (opencl_language_data): Likewise.
1124 * p-lang.c (pascal_language_data): Likewise.
1125 * rust-lang.c (rust_language_data): Likewise.
1126
1127 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1128
1129 * ada-lang.c (ada_language_data): Remove string_lower_bound
1130 initializer.
1131 * c-lang.c (c_language_data): Likewise.
1132 (cplus_language_data): Likewise.
1133 (asm_language_data): Likewise.
1134 (minimal_language_data): Likewise.
1135 * d-lang.c (d_language_data): Likewise.
1136 * f-lang.c (f_language_data): Likewise.
1137 * go-lang.c (go_language_data): Likewise.
1138 * language.c (unknown_language_data): Likewise.
1139 (auto_language_data): Likewise.
1140 * language.h (language_data): Remove string_lower_bound field.
1141 (language_defn::string_lower_bound): New member function.
1142 * m2-lang.c (m2_language_data): Remove string_lower_bound
1143 initializer.
1144 (m2_language::string_lower_bound): New member function.
1145 * objc-lang.c (objc_language_data): Remove string_lower_bound
1146 initializer.
1147 * opencl-lang.c (opencl_language_data): Likewise.
1148 * p-lang.c (pascal_language_data): Likewise.
1149 * rust-lang.c (rust_language_data): Likewise.
1150 * valops.c (value_cstring): Update call to string_lower_bound.
1151 (value_string): Likewise.
1152 * value.c (allocate_repeated_value): Likewise.
1153
1154 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1155
1156 * valops.c (value_repeat): Fix incorrect argument name in comment.
1157
1158 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1159
1160 * ada-lang.c (ada_language_data): Remove c_style_arrays
1161 initializer.
1162 (ada_language::c_style_arrays_p): New member fuction.
1163 * c-lang.c (c_language_data): Remove c_style_arrays
1164 initializer.
1165 (cplus_language_data): Likewise.
1166 (asm_language_data): Likewise.
1167 (minimal_language_data): Likewise.
1168 * d-lang.c (d_language_data): Likewise.
1169 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
1170 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
1171 (f_language::c_style_arrays_p): New member function.
1172 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
1173 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
1174 * language.c (unknown_language_data): Remove c_style_arrays
1175 initializer.
1176 (auto_language_data): Likewise.
1177 * language.h (language_data): Remove c_style_arrays field.
1178 (language_defn::c_style_arrays_p): New member function.
1179 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
1180 (m2_language::c_style_arrays_p): New member function.
1181 * objc-lang.c (objc_language_data): Remove c_style_arrays
1182 initializer.
1183 * opencl-lang.c (opencl_language_data): Likewise.
1184 * p-lang.c (pascal_language_data): Likewise.
1185 * rust-lang.c (rust_language_data): Likewise.
1186 * valarith.c (value_subscript): Update call to c_style_arrays_p,
1187 and update local variable to a bool.
1188 * valops.c (value_cast): Update call to c_style_arrays_p.
1189 (value_array): Likewise.
1190 * value.c (coerce_array): Likewise.
1191
1192 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1193
1194 * ada-lang.c (ada_language_data): Remove la_language initializer.
1195 * c-lang.c (c_language_data): Likewise.
1196 (cplus_language_data): Likewise.
1197 (asm_language_data): Likewise.
1198 (minimal_language_data): Likewise.
1199 * d-lang.c (d_language_data): Likewise.
1200 * f-lang.c (f_language_data): Likewise.
1201 * go-lang.c (go_language_data): Likewise.
1202 * language.c (unknown_language_data): Likewise.
1203 (auto_language_data): Likewise.
1204 * language.h (language_data): Remove la_language field.
1205 (language_defn::language_defn): Initialise la_language field.
1206 (language_defn::la_language): New member variable.
1207 * m2-lang.c (m2_language_data): Remove la_language field.
1208 * objc-lang.c (objc_language_data): Likewise.
1209 * opencl-lang.c (opencl_language_data): Likewise.
1210 * p-lang.c (pascal_language_data): Likewise.
1211 * rust-lang.c (rust_language_data): Likewise.
1212
1213 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1214
1215 * ada-lang.c (ada_extensions): Delete, moved into
1216 ada_language::filename_extensions.
1217 (ada_language_data): Remove la_filename_extensions initializer.
1218 (ada_language::filename_extensions): New member function.
1219 * c-lang.c (c_extensions): Delete, moved into
1220 c_language::filename_extensions.
1221 (c_language_data): Remove la_filename_extensions initializer.
1222 (c_language::filename_extensions): New member function.
1223 (cplus_extensions): Delete, moved into
1224 cplus_language::filename_extensions.
1225 (cplus_language_data): Remove la_filename_extensions initializer.
1226 (cplus_language::filename_extensions): New member function.
1227 (asm_extensions): Delete, moved into
1228 asm_language::filename_extensions.
1229 (asm_language_data): Remove la_filename_extensions initializer.
1230 (asm_language::filename_extensions): New member function.
1231 (minimal_language_data): Remove la_filename_extensions
1232 initializer.
1233 * d-lang.c (d_extensions): Delete, moved into
1234 d_language::filename_extensions.
1235 (d_language_data): Remove la_filename_extensions initializer.
1236 (d_language::filename_extensions): New member function.
1237 * f-lang.c (f_extensions): Delete, moved into
1238 f_language::filename_extensions.
1239 (f_language_data): Remove la_filename_extensions initializer.
1240 (f_language::filename_extensions): New member function.
1241 * go-lang.c (go_language_data): Remove la_filename_extensions
1242 initializer.
1243 * language.c (add_set_language_command): Update now that
1244 filename_extensions returns a vector.
1245 (unknown_language_data): Remove la_filename_extensions
1246 initializer.
1247 (auto_language_data): Likewise.
1248 * language.h (language_data): Remove la_filename_extensions field.
1249 (language_defn::filename_extensions): New member function.
1250 * m2-lang.c (m2_language_data): Remove la_filename_extensions
1251 initializer.
1252 * objc-lang.c (objc_extensions): Delete, moved into
1253 objc_language::filename_extensions.
1254 (objc_language_data): Remove la_filename_extensions initializer.
1255 (objc_language::filename_extensions): New member function.
1256 * opencl-lang.c (opencl_language_data): Remove
1257 la_filename_extensions initializer.
1258 * p-lang.c (pascal_extensions): Delete, moved into
1259 pascal_language::filename_extensions.
1260 (pascal_language_data): Remove la_filename_extensions initializer.
1261 (pascal_language::filename_extensions): New member function.
1262 * rust-lang.c (rust_extensions): Delete, moved into
1263 rust_language::filename_extensions.
1264 (rust_language_data): Remove la_filename_extensions initializer.
1265 (rust_language::filename_extensions): New member function.
1266 * symfile.c (add_filename_language): Add new assert.
1267
1268 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1269
1270 * ada-lang.c (ada_language_data): Remove la_name and
1271 la_natural_name initializers.
1272 (ada_language::name): New member function.
1273 (ada_language::natural_name): New member function.
1274 * c-lang.c (c_language_data): Remove la_name and
1275 la_natural_name initializers.
1276 (c_language::name): New member function.
1277 (c_language::natural_name): New member function.
1278 (cplus_language_data): Remove la_name and
1279 la_natural_name initializers.
1280 (cplus_language::name): New member function.
1281 (cplus_language::natural_name): New member function.
1282 (asm_language_data): Remove la_name and
1283 la_natural_name initializers.
1284 (asm_language::name): New member function.
1285 (asm_language::natural_name): New member function.
1286 (minimal_language_data): Remove la_name and
1287 la_natural_name initializers.
1288 (minimal_language::name): New member function.
1289 (minimal_language::natural_name): New member function.
1290 * compile/compile.c (compile_to_object): Update call to
1291 lanugage_defn::name.
1292 * d-lang.c (d_language_data): Remove la_name and
1293 la_natural_name initializers.
1294 (d_language::name): New member function.
1295 (d_language::natural_name): New member function.
1296 * expprint.c (print_subexp_standard): Update call to
1297 language_defn::name.
1298 (dump_raw_expression): Likewise
1299 (dump_prefix_expression): Likewise.
1300 * f-lang.c (f_language_data): Remove la_name and
1301 la_natural_name initializers.
1302 (f_language::name): New member function.
1303 (f_language::natural_name): New member function.
1304 * go-lang.c (go_language_data): Remove la_name and
1305 la_natural_name initializers.
1306 (go_language::name): New member function.
1307 (go_language::natural_name): New member function.
1308 * language.c (show_language_command): Update call to
1309 language_defn::name.
1310 (set_language_command): Likewise.
1311 (language_enum): Likewise.
1312 (language_str): Likewise.
1313 (add_set_language_command): Likewise, use
1314 language_defn::natural_name in the doc string.
1315 (unknown_language_data): Remove la_name and
1316 la_natural_name initializers.
1317 (unknown_language::name): New member function.
1318 (unknown_language::natural_name): New member function.
1319 (auto_language_data): Remove la_name and
1320 la_natural_name initializers.
1321 (auto_language::name): New member function.
1322 (auto_language::natural_name): New member function.
1323 (language_lookup_primitive_type_as_symbol): Update call to
1324 language_defn::name.
1325 * language.h (language_data): Remove la_name and la_natural_name
1326 member variables.
1327 (language_defn::name): New member function.
1328 (language_defn::natural_name): New member function.
1329 * m2-lang.c (m2_language_data): Remove la_name and
1330 la_natural_name initializers.
1331 (m2_language::name): New member function.
1332 (m2_language::natural_name): New member function.
1333 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
1334 language_defn::natural_name.
1335 * objc-lang.c (objc_language_data): Remove la_name and
1336 la_natural_name initializers.
1337 (objc_language::name): New member function.
1338 (objc_language::natural_name): New member function.
1339 * opencl-lang.c (opencl_language_data): Remove la_name and
1340 la_natural_name initializers.
1341 (opencl_language::name): New member function.
1342 (opencl_language::natural_name): New member function.
1343 * p-lang.c (pascal_language_data): Remove la_name and
1344 la_natural_name initializers.
1345 (pascal_language::name): New member function.
1346 (pascal_language::natural_name): New member function.
1347 * rust-lang.c (rust_language_data): Remove la_name and
1348 la_natural_name initializers.
1349 (rust_language::name): New member function.
1350 (rust_language::natural_name): New member function.
1351 * symtab.c (lookup_language_this): Update call to
1352 language_defn::name.
1353
1354 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1355
1356 * ada-lang.c (ada_language_data): Remove la_name_of_this
1357 initializer.
1358 * ax-gdb.c (gen_expr): Update call to name_of_this.
1359 * c-exp.y (classify_name): Likewise.
1360 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1361 (cplus_language_data): Likewise.
1362 (cplus_language::name_of_this): New member function.
1363 (asm_language_data): Remove la_name_of_this initializer.
1364 (minimal_language_data): Likewise.
1365 * d-lang.c (d_language_data): Likewise.
1366 (d_language::name_of_this): New member function.
1367 * expprint.c (print_subexp_standard): Update call to name_of_this.
1368 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1369 * go-lang.c (go_language_data): Likewise.
1370 * language.c (unknown_language_data): Likewise.
1371 (unknown_language::name_of_this): New member function.
1372 (auto_language_data): Remove la_name_of_this initializer.
1373 (auto_language::name_of_this): New member function.
1374 * language.h (language_data): Delete la_name_of_this member
1375 variable.
1376 (language_defn::name_of_this): New member function.
1377 * m2-lang.c (m2_language_data): Remove la_name_of_this
1378 initializer.
1379 * objc-lang.c (objc_language_data): Likewise.
1380 (objc_language::name_of_this): New member function.
1381 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1382 initializer.
1383 * p-lang.c (pascal_language_data): Likewise.
1384 (pascal_language::name_of_this): New member function.
1385 * rust-lang.c (rust_language_data): Remove la_name_of_this
1386 initializer.
1387 * symtab.c (lookup_language_this): Update call to name_of_this.
1388 (lookup_symbol_aux): Likewise.
1389 * valops.c (value_of_this): Likewise.
1390
1391 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1392
1393 * ada-lang.c (ada_language_data): Remove
1394 la_struct_too_deep_ellipsis initializer.
1395 (ada_language::struct_too_deep_ellipsis): New member function.
1396 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1397 initializer.
1398 (cplus_language_data): Likewise.
1399 (asm_language_data): Likewise.
1400 (minimal_language_data): Likewise.
1401 * cp-valprint.c (cp_print_value): Update call to
1402 struct_too_deep_ellipsis.
1403 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1404 initializer.
1405 * f-lang.c (f_language_data): Likewise.
1406 (f_language::struct_too_deep_ellipsis): New member function.
1407 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1408 initializer.
1409 * language.c (unknown_language_data): Likewise.
1410 (auto_language_data): Likewise.
1411 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1412 member variable.
1413 (language_defn::struct_too_deep_ellipsis): New member function.
1414 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1415 initializer.Q
1416 * objc-lang.c (objc_language_data): Likewise.
1417 * opencl-lang.c (opencl_language_data): Likewise.
1418 * p-lang.c (pascal_language_data): Likewise.
1419 * rust-lang.c (rust_language_data): Likewise.
1420 * valprint.c (val_print_check_max_depth): Update call to
1421 struct_too_deep_ellipsis.
1422
1423 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1424
1425 * MAINTAINERS (Write After Approval): Add myself.
1426
1427 2020-09-15 Tom Tromey <tom@tromey.com>
1428
1429 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1430 Remove.
1431
1432 2020-09-15 Tom Tromey <tom@tromey.com>
1433
1434 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1435 and TYPE_CODE_METHODPTR cases.
1436 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1437 (c_value_print_inner): Update.
1438 * valprint.c (generic_value_print_memberptr): New function, from
1439 c_value_print_memberptr.
1440 (generic_value_print): Use it. Call cplus_print_method_ptr.
1441
1442 2020-09-15 Tom Tromey <tromey@adacore.com>
1443
1444 * python/python-internal.h (PyInt_FromLong): Remove define.
1445 * python/py-value.c (convert_value_from_python): Use
1446 gdb_py_object_from_longest.
1447 * python/py-type.c (typy_get_code): Use
1448 gdb_py_object_from_longest.
1449 * python/py-symtab.c (salpy_get_line): Use
1450 gdb_py_object_from_longest.
1451 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1452 gdb_py_object_from_longest.
1453 * python/py-record.c (recpy_gap_reason_code): Use
1454 gdb_py_object_from_longest.
1455 * python/py-record-btrace.c (recpy_bt_insn_size)
1456 (recpy_bt_func_level, btpy_list_count): Use
1457 gdb_py_object_from_longest.
1458 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1459 gdb_py_object_from_longest. Fix error handling.
1460 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1461 gdb_py_object_from_longest.
1462 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1463 gdb_py_object_from_longest.
1464 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1465 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1466 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1467
1468 2020-09-15 Tom Tromey <tromey@adacore.com>
1469
1470 * python/python.c (gdbpy_parameter_value): Use
1471 gdb_py_object_from_ulongest.
1472
1473 2020-09-15 Tom Tromey <tromey@adacore.com>
1474
1475 * python/py-infevents.c (create_register_changed_event_object):
1476 Use gdb_py_object_from_longest.
1477 * python/py-exitedevent.c (create_exited_event_object): Use
1478 gdb_py_object_from_longest.
1479
1480 2020-09-15 Tom Tromey <tromey@adacore.com>
1481
1482 * python/python.c (gdbpy_parameter_value): Use
1483 gdb_py_object_from_longest.
1484 * python/py-type.c (convert_field, typy_range): Use
1485 gdb_py_object_from_longest.
1486 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1487 gdb_py_object_from_longest.
1488 * python/py-lazy-string.c (stpy_get_length): Use
1489 gdb_py_object_from_longest.
1490 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1491 gdb_py_object_from_longest.
1492 * python/py-infevents.c (create_memory_changed_event_object): Use
1493 gdb_py_object_from_longest.
1494 * python/py-inferior.c (infpy_get_num): Use
1495 gdb_py_object_from_longest.
1496 (infpy_get_pid): Likewise.
1497
1498 2020-09-15 Tom Tromey <tromey@adacore.com>
1499
1500 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1501 defines.
1502 * python/py-value.c (valpy_long): Use
1503 gdb_py_object_from_ulongest.
1504 * python/py-symtab.c (salpy_get_pc): Use
1505 gdb_py_object_from_ulongest.
1506 (salpy_get_last): Likewise.
1507 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1508 gdb_py_object_from_ulongest.
1509 * python/py-lazy-string.c (stpy_get_address): Use
1510 gdb_py_object_from_ulongest.
1511 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1512 * python/py-arch.c (archpy_disassemble): Use
1513 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1514 error handling.
1515
1516 2020-09-15 Tom Tromey <tromey@adacore.com>
1517
1518 * python/python-internal.h (gdb_py_long_from_longest): Remove
1519 defines.
1520 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1521 * python/py-type.c (convert_field, typy_get_sizeof): Use
1522 gdb_py_object_from_longest.
1523 * python/py-record-btrace.c (btpy_list_index): Use
1524 gdb_py_object_from_longest.
1525
1526 2020-09-15 Tom Tromey <tromey@adacore.com>
1527
1528 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1529 * python/py-record.c (recpy_element_number): Use
1530 gdb_py_object_from_longest.
1531 (recpy_gap_number): Likewise.
1532
1533 2020-09-15 Tom Tromey <tromey@adacore.com>
1534
1535 * top.c (ui::ui): Update.
1536 (highest_ui_num): Remove.
1537 * top.h (struct ui) <num>: Remove.
1538
1539 2020-09-15 Tom Tromey <tromey@adacore.com>
1540
1541 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1542 * ui-style.c (ansi_regex_text): Now array.
1543 * rust-exp.y (number_regex_text): Now array.
1544 * linespec.c (linespec_quote_characters): Now array.
1545 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1546 Now arrays.
1547
1548 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1549
1550 * debuginfod-support.c (debuginfod_client_deleter): New.
1551 (debuginfod_client_up): New.
1552 (debuginfod_init): Return debuginfod_client_up.
1553 (debuginfod_source_query): Adjust.
1554 (debuginfod_debuginfo_query): Adjust.
1555
1556 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1557
1558 * debuginfod-support.c (debuginfod_source_query): Use
1559 make_unique_xstrdup.
1560
1561 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1562
1563 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1564 with `type::instance_flags`.
1565
1566 2020-09-14 Michael Mullin <masmullin@gmail.com>
1567
1568 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1569 Remove baton parameter.
1570
1571 2020-09-14 Pedro Alves <pedro@palves.net>
1572
1573 * Makefile.in (SELFTESTS_SRCS): Add
1574 unittests/enum-flags-selftests.c.
1575 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1576 btrace_function_flags instead of enum btrace_function_flag.
1577 * compile/compile-c-types.c (convert_qualified): Use
1578 enum_flags::raw.
1579 * compile/compile-cplus-symbols.c (convert_one_symbol)
1580 (convert_symbol_bmsym):
1581 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1582 (compile_cplus_convert_struct_or_union_methods)
1583 (compile_cplus_instance::convert_qualified_base):
1584 * go-exp.y (parse_string_or_char): Add cast to int.
1585 * unittests/enum-flags-selftests.c: New file.
1586 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1587 type to btrace_thread_flags from btrace_thread_flag.
1588 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1589 local's type to btrace_thread_flags from btrace_thread_flag. Add
1590 cast in DEBUG call.
1591
1592 2020-09-14 Pedro Alves <pedro@palves.net>
1593
1594 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1595 * gdbtypes.c (address_space_name_to_int): Rename to ...
1596 (address_space_name_to_type_instance_flags): ... this.
1597 (address_space_int_to_name): Rename to ...
1598 (address_space_type_instance_flags_to_name): ... this.
1599 * gdbtypes.h (address_space_name_to_int): Rename to ...
1600 (address_space_name_to_type_instance_flags): ... this.
1601 (address_space_int_to_name): Rename to ...
1602 (address_space_type_instance_flags_to_name): ... this.
1603 * type-stack.c (type_stack::insert): Adjust to rename.
1604 * type-stack.h (type_stack::insert): Likewise.
1605
1606 2020-09-14 Pedro Alves <pedro@palves.net>
1607 Andrew Burgess <andrew.burgess@embecosm.com>
1608
1609 * avr-tdep.c (avr_address_class_type_flags): Return
1610 type_instance_flags.
1611 (avr_address_class_type_flags_to_name): Take a
1612 type_instance_flags.
1613 (avr_address_class_name_to_type_flags): Return bool and take a
1614 type_instance_flags.
1615 * d-lang.c (build_d_types): Use type::set_instance_flags.
1616 * ft32-tdep.c (ft32_address_class_type_flags): Return
1617 type_instance_flags.
1618 (ft32_address_class_type_flags_to_name): Take a
1619 type_instance_flags.
1620 (ft32_address_class_name_to_type_flags): Return bool and take a
1621 type_instance_flags.
1622 (ft32_gdbarch_init): Use type::set_instance_flags.
1623 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1624 * gdbarch.h, gdbarch.c: Regenerate.
1625 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1626 (address_class_name_to_type_flags): Use type_instance_flags and
1627 bool.
1628 * gdbtypes.c (address_space_name_to_int)
1629 (address_space_int_to_name, make_qualified_type): Use
1630 type_instance_flags.
1631 (make_qualified_type): Use type_instance_flags and
1632 type::set_instance_flags.
1633 (make_type_with_address_space, make_cv_type, make_vector_type)
1634 (check_typedef): Use type_instance_flags.
1635 (recursive_dump_type): Cast type_instance_flags to unsigned for
1636 printing.
1637 (copy_type_recursive): Use type::set_instance_flags.
1638 (gdbtypes_post_init): Use type::set_instance_flags.
1639 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1640 <m_instance_flags>: ... this.
1641 <instance_flags, set_instance_flags>: New methods.
1642 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1643 (SET_TYPE_INSTANCE_FLAGS): New.
1644 (address_space_name_to_int, address_space_int_to_name)
1645 (make_type_with_address_space): Pass flags using
1646 type_instance_flags instead of int.
1647 * stabsread.c (cleanup_undefined_types_noname): Use
1648 type::set_instance_flags.
1649 * s390-tdep.c (s390_address_class_type_flags): Return
1650 type_instance_flags.
1651 (s390_address_class_type_flags_to_name): Take a
1652 type_instance_flags.
1653 (s390_address_class_name_to_type_flags): Return bool and take a
1654 type_instance_flags.
1655 * type-stack.c (type_stack::follow_types): Use
1656 type_instance_flags.
1657 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1658
1659 2020-09-14 Tom Tromey <tromey@adacore.com>
1660
1661 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1662 * x86-tdep.c (x86_is_thunk_register_name)
1663 (x86_in_indirect_branch_thunk): Update.
1664 * sparc64-tdep.c (sparc64_fpu_register_names)
1665 (sparc64_cp0_register_names, sparc64_register_names)
1666 (sparc64_pseudo_register_names): Now const.
1667 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1668 cp0_registers_num>: Now const.
1669 * sparc-tdep.c (sparc_core_register_names)
1670 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1671 (sparc32_pseudo_register_names): Now const.
1672 (validate_tdesc_registers): Update.
1673 * rust-lang.c (rust_extensions): Now const.
1674 * p-lang.c (p_extensions): Now const.
1675 * objc-lang.c (objc_extensions): Now const.
1676 * nto-tdep.c (nto_thread_state_str): Now const.
1677 * moxie-tdep.c (moxie_register_names): Now const.
1678 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1679 Now const.
1680 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1681 (mips_linux_reg_names): Now const.
1682 (mips_gdbarch_init): Update.
1683 * microblaze-tdep.c (microblaze_register_names): Now const.
1684 * m68k-tdep.c (m68k_register_names): Now const.
1685 * m32r-tdep.c (m32r_register_names): Now const.
1686 * ia64-tdep.c (ia64_register_names): Now const.
1687 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1688 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1689 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1690 ymm_avx512_register_names, pkeys_register_names>: Now const.
1691 * i386-tdep.c (i386_register_names, i386_zmm_names)
1692 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1693 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1694 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1695 * f-lang.c (f_extensions): Now const.
1696 * d-lang.c (d_extensions): Now const.
1697 * csky-tdep.c (csky_register_names): Now const.
1698 * charset.c (default_charset_names, charset_enum): Now const.
1699 (_initialize_charset): Update.
1700 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1701 const.
1702 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1703 (bsd_uthread_solib_loaded): Update.
1704 (bsd_uthread_state): Now const.
1705 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1706 (amd64_ymm_avx512_names, amd64_ymmh_names)
1707 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1708 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1709 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1710 (amd64_dword_names): Now const.
1711 * agent.c (can_use_agent_enum): Now const.
1712 * ada-tasks.c (task_states, long_task_states): Now const.
1713 * ada-lang.c (known_runtime_file_name_patterns)
1714 (known_auxiliary_function_name_patterns, attribute_names)
1715 (standard_exc, ada_extensions): Now const.
1716
1717 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1718
1719 * bcache.h (struct bcache) <bcache>: Remove constructor.
1720 <m_hash_function, m_compare_function>: Remove.
1721 <~bcache>: Make virtual.
1722 <compare>: Remove static method, introduce virtual method.
1723 <default_hash>: Remove.
1724 <hash>: New virtual method.
1725 * bcache.c (bcache::expand_hash_table): Update.
1726 (bcache::insert): Update.
1727 (bcache::hash): New.
1728 (bcache::compare): Update comment and parameter names.
1729 * gdbtypes.c (types_deeply_equal): Update.
1730 * psymtab.h (struct psymbol_bcache): New struct.
1731 (class psymtab_storage) <psymtab_storage>: Make default.
1732 <psymbol_cache>: Change type to psymbol_bcache.
1733 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1734 (psymbol_hash): Change to...
1735 (psymbol_bcache::hash): ... this.
1736 (psymbol_compare): Change to...
1737 (psymbol_bcache::compare): ... this.
1738
1739 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1740
1741 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1742 checking for initial lwp.
1743
1744 2020-09-14 Tom Tromey <tromey@adacore.com>
1745
1746 * m68k-tdep.c (m68k_extract_return_value): Use
1747 pointer_result_regnum.
1748 (m68k_store_return_value): Likewise.
1749 (m68k_reg_struct_return_p): Handle vectors and arrays.
1750 (m68k_return_value): Handle arrays.
1751 (m68k_svr4_return_value): Fix single-element aggregate handling.
1752 Handle long double. Adjust for embedded ABI.
1753 (m68k_svr4_init_abi): Set pointer_result_regnum.
1754 (m68k_embedded_init_abi): New function.
1755 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1756 (m68k_osabi_sniffer): New function.
1757 (_initialize_m68k_tdep): Register osabi sniffer.
1758 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1759 member.
1760
1761 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1762
1763 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1764 with gdb::unique_xmalloc_ptr<char>.
1765
1766 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1767
1768 * xml-support.h (xml_fetch_another): Change type to be a
1769 function_view.
1770 (xml_process_xincludes): Remove baton parameter.
1771 (xml_fetch_content_from_file): Change baton parameter to
1772 dirname.
1773 * xml-support.c (struct xinclude_parsing_data)
1774 <xinclude_parsing_data>: Remove baton parameter.
1775 <fetcher_baton>: Remove.
1776 (xinclude_start_include): Adjust.
1777 (xml_process_xincludes): Adjust.
1778 (xml_fetch_content_from_file): Replace baton parameter with
1779 dirname.
1780 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1781 (xml_init_syscalls_info): Use a lambda.
1782 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1783 (file_read_description_xml): Use a lambda.
1784 (fetch_available_features_from_target): Change baton parameter
1785 to target_ops.
1786 (target_read_description_xml): Use a lambda.
1787 (target_fetch_description_xml): Use a lambda.
1788 (string_read_description_xml): Update.
1789
1790 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1791
1792 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1793 uses with type::endianity_is_not_default.
1794
1795 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1796
1797 * gdbtypes.h (struct type) <endianity_is_not_default,
1798 set_endianity_is_not_default>: New methods.
1799 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1800 type::endianity_is_not_default, change all write call sites to
1801 use type::set_endianity_is_not_default.
1802
1803 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1804
1805 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1806 uses with type::is_fixed_instance.
1807
1808 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1809
1810 * gdbtypes.h (struct type) <is_fixed_instance,
1811 set_is_fixed_instance>: New methods.
1812 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1813 write call sites to use type::set_is_fixed_instance.
1814
1815 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1816
1817 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1818 uses with type::is_gnu_ifunc.
1819
1820 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1821
1822 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1823 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1824 use type::set_is_gnu_ifunc.
1825
1826 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1827
1828 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1829 uses with type::stub_is_supported.
1830
1831 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1832
1833 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1834 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1835 use type::set_stub_is_supported.
1836
1837 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1838
1839 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1840 uses with type::is_vector.
1841
1842 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1843
1844 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1845 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1846 use type::set_is_vector.
1847
1848 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1849
1850 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1851 uses with type::has_varargs.
1852
1853 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1854
1855 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1856 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1857 use type::set_has_varargs.
1858
1859 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1860
1861 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1862 uses with type::is_prototyped.
1863
1864 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1865
1866 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1867 New methods.
1868 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1869 call sites to use type::set_is_prototyped.
1870
1871 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1872
1873 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1874 uses with type::target_is_stub.
1875
1876 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1877
1878 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1879 New methods.
1880 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1881 sites to use type::set_target_is_stub.
1882
1883 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1884
1885 * gdbtypes.h (TYPE_STUB): Remove, replace all
1886 uses with type::is_stub.
1887
1888 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1889
1890 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1891 (TYPE_STUB): Use type::is_stub, change all write call sites to
1892 use type::set_is_stub.
1893
1894 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1895
1896 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1897 type::has_no_signedness.
1898
1899 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1900
1901 * gdbtypes.h (struct type) <has_no_signedness,
1902 set_has_no_signedness>: New methods.
1903 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1904 call sites to use type::set_has_no_signedness.
1905
1906 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1907
1908 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1909 type::is_unsigned.
1910
1911 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1912
1913 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1914 methods.
1915 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1916 sites to use type::set_is_unsigned.
1917
1918 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
1919 Adam Renquinha <arenquinha@cimeq.qc.ca>
1920
1921 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1922 pointer and stack frame offset when unwinding.
1923
1924 2020-09-13 Pedro Alves <pedro@palves.net>
1925
1926 * NEWS: Document "-break-insert --qualified".
1927 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1928
1929 2020-09-13 Pedro Alves <pedro@palves.net>
1930
1931 * linespec.c (classify_mtype, compare_msyms): Delete.
1932 (search_minsyms_for_name): Remove classification logic. Instead
1933 filter out trampoline symbols if we also found an external
1934 function of the same name.
1935
1936 2020-09-13 Joel Brobecker <brobecker@adacore.com>
1937
1938 * NEWS: Create a new section for the next release branch.
1939 Rename the section of the current branch, now that it has
1940 been cut.
1941
1942 2020-09-13 Joel Brobecker <brobecker@adacore.com>
1943
1944 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1945 * version.in: Bump version to 11.0.50.DATE-git.
1946
1947 2020-09-12 Joel Brobecker <brobecker@adacore.com>
1948
1949 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1950
1951 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1952 Felix Willgerodt <Felix.Willgerodt@intel.com>
1953
1954 * gdbarch.sh: Added bfloat16 type.
1955 * gdbarch.c: Regenerated.
1956 * gdbarch.h: Regenerated.
1957 * gdbtypes.c (floatformats_bfloat16): New struct.
1958 (gdbtypes_post_init): Add builtin_bfloat16.
1959 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1960 (floatformats_bfloat16): New struct.
1961 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1962 (i386_ymm_type): Add field "v16_bfloat16"
1963 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1964 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1965 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1966 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1967 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1968 * features/i386/64bit-avx512.c: Regenerated.
1969 * features/i386/64bit-sse.xml: Add bfloat16 type.
1970 * features/i386/64bit-sse.c: Regenerated.
1971
1972 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1973
1974 * i386-tdep.c (i386_zmm_type): Fix field names.
1975 (i386_ymm_type): Fix field names.
1976
1977 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1978
1979 * breakpoint.c: Fix typo in the help message of the
1980 "set breakpoint condition-evaluation" command.
1981
1982 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1983
1984 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1985 * (nbsd_nat_target::pid_to_exec_file)
1986 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1987 (nbsd_nat_target::post_startup_inferior)
1988 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1989 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1990 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1991 * (nbsd_thread_lister): Remove.
1992
1993 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1994
1995 * fork-inferior.c (startup_inferior): Avoid double free.
1996
1997 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1998
1999 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
2000 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
2001
2002 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2003
2004 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
2005 * netbsd-nat.c: Include <sys/ptrace.h>.
2006 * (netbsd_nat::enable_proc_events): Add.
2007
2008 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2009
2010 * netbsd-nat.h: Include "gdbsupport/function-view.h".
2011 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2012 (netbsd_nat::for_each_thread): Add.
2013 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
2014 "gdbsupport/common-debug.h".
2015 * (netbsd_nat::netbsd_thread_lister)
2016 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2017 (netbsd_nat::for_each_thread): Add.
2018
2019 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2020
2021 * netbsd-nat.h: Include <unistd.h>.
2022 * (netbsd_nat::pid_to_exec_file): Add.
2023 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
2024 * (netbsd_nat::pid_to_exec_file) Add.
2025
2026 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2027
2028 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
2029
2030 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2031
2032 * netbsd-nat.h: New file.
2033 * netbsd-nat.c: Likewise.
2034
2035 2020-09-09 Tom Tromey <tromey@adacore.com>
2036
2037 * ada-lang.c (remove_extra_symbols): Do not increment when
2038 removing an element
2039
2040 2020-09-08 Tom Tromey <tromey@adacore.com>
2041
2042 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
2043
2044 2020-09-08 Tom Tromey <tromey@adacore.com>
2045
2046 PR win32/25302:
2047 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
2048 (gdb_bfd_init_data): New function.
2049 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
2050
2051 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2052
2053 * infrun.c (fetch_inferior_event): Use
2054 `switch_to_target_no_thread` to switch the target.
2055
2056 2020-09-06 Tom Tromey <tom@tromey.com>
2057
2058 * symfile.h (dwarf2_free_objfile): Don't declare.
2059
2060 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2061
2062 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
2063 to match 16 byte real/complex type generated by Flang compiler.
2064
2065 2020-09-03 Tom de Vries <tdevries@suse.de>
2066
2067 PR breakpoint/26546
2068 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
2069 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
2070
2071 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
2072
2073 * maint.c (index_digits): New function.
2074 (struct maint_print_section_data): Remove.
2075 (print_bfd_section_info): Remove print_data parameter, add arg
2076 and index_digits.
2077 (print_objfile_section_info): Likewise.
2078 (print_bfd_section_info_maybe_relocated): Likewise (plus
2079 objfile).
2080 (maintenance_info_sections): Adjust calls.
2081
2082 2020-09-02 Tom Tromey <tromey@adacore.com>
2083
2084 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
2085 for null pointers.
2086 (ada_varobj_adjust_for_child_access): Special-case null pointers.
2087
2088 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
2089
2090 * bcache.h (struct bcache) <insert>: Change type of `added` to
2091 pointer to bool.
2092 * bcache.c (bcache::insert): Likewise.
2093 * gdbtypes.c (check_types_worklist): Adjust.
2094 * psymtab.c (add_psymbol_to_bcache): Adjust.
2095
2096 2020-08-31 Kevin Buettner <kevinb@redhat.com>
2097
2098 * corelow.c (unordered_set): Include.
2099 (class core_target): Add field 'm_core_unavailable_mappings'.
2100 (core_target::build_file_mappings): Print only one warning
2101 per inaccessible file. Add unavailable/broken mappings
2102 to m_core_unavailable_mappings.
2103 (core_target::xfer_partial): Call...
2104 (core_target::xfer_memory_via_mappings): New method.
2105
2106 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2107
2108 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
2109 type to bool.
2110
2111 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2112
2113 * dwarf2/read.c (struct field_info): Fix indentation.
2114
2115 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2116
2117 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
2118 ordering in comment.
2119 * frame.c (frame_id_eq): Fix indentation.
2120
2121 2020-08-31 Scott Linder <scott@scottlinder.com>
2122 Simon Marchi <simon.marchi@efficios.com>
2123
2124 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
2125 inline frame ids in outer frame.
2126
2127 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2128
2129 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
2130 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
2131 (outer_frame_id): Use FID_STACK_OUTER instead of
2132 FID_STACK_INVALID.
2133 (frame_id_p): Don't check for outer_frame_id.
2134
2135 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2136
2137 * frame-unwind.c (frame_unwind_got_optimized): Don't set
2138 regnum/frame in value. Call allocate_value_lazy.
2139 * frame.c (frame_unwind_register_value): Use
2140 val_print_not_saved.
2141
2142 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2143
2144 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
2145
2146 2020-08-29 Pedro Alves <pedro@palves.net>
2147
2148 * progspace.c (print_program_space): Use all_inferiors. Switch to
2149 the inferior before calling target_pid_to_str.
2150
2151 2020-08-28 Tom Tromey <tom@tromey.com>
2152
2153 * xcoffread.c (xcoff_end_psymtab): Update comment.
2154 * dbxread.c (dbx_end_psymtab): Update comment.
2155
2156 2020-08-28 Tom de Vries <tdevries@suse.de>
2157
2158 PR breakpoint/26544
2159 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
2160 event_location.
2161 (create_breakpoint): Same.
2162 (base_breakpoint_decode_location): Same.
2163 (bkpt_create_sals_from_location): Same.
2164 (bkpt_decode_location): Same.
2165 (bkpt_probe_create_sals_from_location): Same.
2166 (bkpt_probe_decode_location): Same.
2167 (tracepoint_create_sals_from_location): Same.
2168 (tracepoint_decode_location): Same.
2169 (tracepoint_probe_decode_location): Same.
2170 (strace_marker_create_sals_from_location): Same.
2171 (strace_marker_decode_location): Same.
2172 (create_sals_from_location_default): Same.
2173 (decode_location_default): Same.
2174 * breakpoint.h (struct breakpoint_ops): Same.
2175 (create_breakpoint): Same.
2176 * linespec.h (decode_line_full): Same.
2177 * linespec.c (decode_line_full): Same. Throw error if
2178 result.size () == 0.
2179
2180 2020-08-27 Pedro Alves <pedro@palves.net>
2181
2182 PR gdb/26524
2183 * breakpoint.c (until_break_fsm) <location_breakpoint,
2184 caller_breakpoint>: Delete fields.
2185 <breakpoints>: New field.
2186 <until_break_fsm>: Adjust to save a breakpoint vector instead of
2187 two individual breakpoints.
2188 (until_break_fsm::should_stop): Loop over breakpoints in the
2189 breakpoint vector.
2190 (until_break_fsm::clean_up): Adjust to clear the breakpoints
2191 vector.
2192 (until_break_command): Handle location expanding into multiple
2193 sals.
2194
2195 2020-08-27 Pedro Alves <pedro@palves.net>
2196
2197 PR gdb/26523
2198 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
2199 bp_until breakpoints user-specified locations. Update intro
2200 comment.
2201
2202 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
2203
2204 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
2205 gdb_bfd_sections): New.
2206 * maint.c (print_bfd_section_info): Change param type to
2207 maint_print_section_data.
2208 (print_objfile_section_info): Likewise.
2209 (print_bfd_section_info_maybe_relocated): Likewise.
2210 (maintenance_info_sections): Use gdb_bfd_sections.
2211
2212 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2213
2214 * MAINTAINERS: Add ARC target and maintainer.
2215
2216 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
2217
2218 * configure.tgt: ARC support for GNU/Linux.
2219 * Makefile.in (ALL_TARGET_OBJS): Likewise.
2220 * arc-linux-tdep.c: New file.
2221 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
2222 * arc-tdep.c (arc_write_pc): Use it.
2223
2224 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2225
2226 * arc-tdep.c (arc_check_for_hardware_loop): New.
2227 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
2228
2229 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2230
2231 * arc-tdep.h: Include "gdbarch.h".
2232
2233 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2234
2235 * arch/arc.h
2236 (arc_gdbarch_features): New class to stir the selection of target XML.
2237 (arc_create_target_description): Use FEATURES to choose XML target.
2238 (arc_lookup_target_description): Use arc_create_target_description
2239 to create _new_ target descriptions or return the already created
2240 ones if the FEATURES is the same.
2241 * arch/arc.c: Implementation of prototypes described above.
2242 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
2243 (arc_gdbarch_features_init): Initialize the FEATURES struct.
2244 * arc-tdep.c (*_feature_name): Make feature names consistent.
2245 (arc_register_feature): A new struct to hold information about
2246 registers of a particular target/feature.
2247 (arc_check_tdesc_feature): Check if XML provides registers in
2248 compliance with ARC_REGISTER_FEATURE structs.
2249 (arc_update_acc_reg_names): Add aliases for r58 and r59.
2250 (determine_*_reg_feature_set): Which feature name to look for.
2251 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
2252 (mach_type_to_arc_isa): Convert from a set of binutils machine types
2253 to expected ISA enums to be used in arc_gdbarch_features structs.
2254 * features/Makefile (FEATURE_XMLFILES): Add new files.
2255 * gdb/features/arc/v1-aux.c: New file.
2256 * gdb/features/arc/v1-aux.xml: Likewise.
2257 * gdb/features/arc/v1-core.c: Likewise.
2258 * gdb/features/arc/v1-core.xml: Likewise.
2259 * gdb/features/arc/v2-aux.c: Likewise.
2260 * gdb/features/arc/v2-aux.xml: Likewise.
2261 * gdb/features/arc/v2-core.c: Likewise.
2262 * gdb/features/arc/v2-core.xml: Likewise.
2263 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
2264
2265 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
2266 Andrew Burgess <andrew.burgess@embecosm.com>
2267
2268 PR m2/26372
2269 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
2270 an assert. Remove single element array indexing pattern as the
2271 MULTI_SUBSCRIPT support will handle this case too.
2272
2273 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
2274
2275 * value.h (valprint_check_validity): Move declaration from
2276 here...
2277 * valprint.h (valprint_check_validity): ... to here.
2278
2279 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
2280
2281 * debug.h: New file.
2282 * debug.c (debug_prefixed_vprintf): New function.
2283 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
2284 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
2285
2286 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
2287
2288 * infrun.h (infrun_debug_printf_1): New function declaration.
2289 (infrun_debug_printf): New macro.
2290 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
2291 throughout.
2292 (infrun_debug_printf): New function.
2293 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
2294 (handle_jit_event): Likewise.
2295
2296 2020-08-21 Mark Wielaard <mark@klomp.org>
2297
2298 * ada-lex.l: Extend register warnings diagnostics comment for g++.
2299
2300 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
2301
2302 * frame.c (enum class frame_id_status): New.
2303 (struct frame_info) <this_id::p>: Change type to frame_id_status.
2304 (fprintf_frame): Update.
2305 (compute_frame_id): Set frame id status to "computing" on entry.
2306 Set it back to "not_computed" on failure and to "computed" on
2307 success.
2308 (get_frame_id): Assert the frame id is not being computed.
2309 (create_sentinel_frame): Use frame_id_status::COMPUTED.
2310 (create_new_frame): Likewise.
2311 (frame_cleanup_after_sniffer): Update assert.
2312
2313 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2314
2315 * regcache.c (pid_ptid_regcache_map): New type.
2316 (target_ptid_regcache_map): Remove.
2317 (target_pid_ptid_regcache_map): New type.
2318 (regcaches): Change type to target_pid_ptid_regcache_map.
2319 (get_thread_arch_aspace_regcache): Update.
2320 (regcache_thread_ptid_changed): Update, handle pid-like ptid
2321 case.
2322 (regcaches_size): Update.
2323 (regcache_count): Update.
2324 (registers_changed_ptid_target_pid_test): New.
2325 (_initialize_regcache): Register new test.
2326
2327 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2328
2329 * regcache.c (regcache_count): New.
2330 (struct regcache_test_data): New.
2331 (regcache_test_data_up): New.
2332 (populate_regcaches_for_test): New.
2333 (regcaches_test): Remove.
2334 (get_thread_arch_aspace_regcache_test): New.
2335 (registers_changed_ptid_all_test): New.
2336 (registers_changed_ptid_target_test): New.
2337 (registers_changed_ptid_target_ptid_test): New.
2338 (regcache_thread_ptid_changed): Remove regcache_count lambda.
2339 (_initialize_regcache): Register new tests.
2340
2341 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2342
2343 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
2344 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
2345 gdbarch and aspace parameter. Use current inferior's aspace.
2346 Validate regcache's arch value.
2347 (regcaches_test): Update.
2348
2349 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2350
2351 * regcache.c (regcaches_test): Call registers_changed.
2352
2353 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2354
2355 * infrun.c (process_event_stop_test): Fix typo "breapoint".
2356
2357 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2358
2359 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2360 to find the end of prologue for flang compiled binaries.
2361 * arm-tdep.c (arm_skip_prologue): Likewise.
2362 * i386-tdep.c (i386_skip_prologue): Likewise.
2363 * producer.c (producer_is_llvm): New function.
2364 (producer_parsing_tests): Added new tests for clang/flang.
2365 * producer.h (producer_is_llvm): New declaration.
2366
2367 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
2368
2369 * linux-nat.c (linux_nat_debug_printf): New function.
2370 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2371
2372 2020-08-18 Aaron Merey <amerey@redhat.com>
2373
2374 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2375 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2376 (CLIBS): Add DEBUGINFOD_LIBS.
2377
2378 2020-08-17 Sergei Trofimovich <siarheit@google.com>
2379
2380 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2381 'gdbarch_num_regs'.
2382
2383 2020-08-17 Tom Tromey <tromey@adacore.com>
2384
2385 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2386 ada_get_decoded_value returns NULL.
2387
2388 2020-08-17 Tom Tromey <tromey@adacore.com>
2389
2390 * python/py-inferior.c (infpy_search_memory): Use
2391 gdb_py_object_from_ulongest.
2392 * python/py-infevents.c (create_inferior_call_event_object)
2393 (create_memory_changed_event_object): Use
2394 gdb_py_object_from_ulongest.
2395 * python/py-linetable.c (ltpy_entry_get_pc): Use
2396 gdb_py_object_from_ulongest.
2397
2398 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2399
2400 * loc.c (class symbol_needs_eval_context): Fix indentation.
2401
2402 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2403
2404 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2405 bool.
2406
2407 2020-08-17 Tom de Vries <tdevries@suse.de>
2408
2409 PR gdb/26393
2410 * gdbtypes.c (dump_dynamic_prop): New function.
2411 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2412
2413 2020-08-15 Tom de Vries <tdevries@suse.de>
2414
2415 PR backtrace/26390
2416 * stack.c (print_frame_args): Temporarily set the selected
2417 frame to FRAME while printing the frame's arguments.
2418
2419 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2420
2421 PR breakpoints/26385
2422 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2423 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2424
2425 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2426
2427 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2428 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2429 and >= to check return value instead of == -1 and != -1.
2430
2431 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2432
2433 * utils.h (class gdb_argv) <as_array_view>: New method.
2434 * utils.c (gdb_argv_as_array_view_test): New.
2435 (_initialize_utils): Register selftest.
2436 * maint.c (maintenance_selftest): Use the new method.
2437
2438 2020-08-13 Kamil Rytarowski <n54@gmx.com>
2439
2440 * target.h (supports_dumpcore, dumpcore): New
2441 function declarations.
2442 * target.c (supports_dumpcore, dumpcore): New
2443 functions.
2444 * target-delegates.c: Rebuild.
2445 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2446 and target_dumpcore ().
2447
2448 2020-08-13 Aaron Merey <amerey@redhat.com>
2449
2450 * debuginfod-support.c: Replace global variables with user_data.
2451
2452 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2453
2454 * maint.c (maintenance_selftest): Split args and pass array_view
2455 to run_tests.
2456
2457 2020-08-12 Luis Machado <luis.machado@linaro.org>
2458
2459 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2460 type's length.
2461 Use %s and pulongest to print the length.
2462
2463 2020-08-12 Pedro Alves <palves@redhat.com>
2464
2465 * NEWS: Move "Multi-target debugging support" item to the
2466 "Changes since GDB 9" section.
2467
2468 2020-08-12 Pedro Alves <palves@redhat.com>
2469
2470 PR gdb/26336
2471 * progspace.c (program_space::remove_objfile): Invalidate the
2472 frame cache.
2473
2474 2020-08-11 Tom de Vries <tdevries@suse.de>
2475
2476 * MAINTAINERS: Mark ms1 as deleted.
2477
2478 2020-08-10 Luis Machado <luis.machado@linaro.org>
2479
2480 PR gdb/26310
2481
2482 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2483 act accordingly.
2484 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2485 movz/str/stur/stp skipping behavior.
2486
2487 2020-08-10 Luis Machado <luis.machado@linaro.org>
2488
2489 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2490 struct user_sve_header instead of struct sve_context.
2491
2492 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2493
2494 * read.h (dwarf2_fetch_die_loc_sect_off,
2495 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2496 `void *` parameter with function_view.
2497 * read.c (dwarf2_fetch_die_loc_sect_off,
2498 dwarf2_fetch_die_loc_cu_off): Likewise.
2499 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2500 (per_cu_dwarf_call): Adjust.
2501 (get_frame_address_in_block_wrapper): Remove.
2502 (indirect_synthetic_pointer): Adjust.
2503 (get_ax_pc): Remove.
2504 (dwarf2_compile_expr_to_ax): Adjust.
2505
2506 2020-08-08 Tom de Vries <tdevries@suse.de>
2507
2508 PR build/26344
2509 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2510 constructor.
2511 * regcache.c (get_thread_arch_aspace_regcache): Same.
2512
2513 2020-08-07 Tom Tromey <tromey@adacore.com>
2514
2515 * ravenscar-thread.c
2516 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2517 New method.
2518 (ravenscar_thread_target::wait): Check
2519 runtime_initialized.
2520 (ravenscar_thread_target::prepare_to_store)
2521 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2522 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2523 (ravenscar_thread_target::stopped_by_watchpoint)
2524 (ravenscar_thread_target::stopped_data_address)
2525 (ravenscar_thread_target::core_of_thread): Use
2526 scoped_restore_current_thread and
2527 set_base_thread_from_ravenscar_task.
2528
2529 2020-08-07 Tom Tromey <tromey@adacore.com>
2530
2531 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2532
2533 2020-08-07 Tom Tromey <tromey@adacore.com>
2534
2535 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2536 update_inferior_ptid before update_thread_list.
2537 (temporarily_change_regcache_ptid): New class.
2538 (ravenscar_thread_target::fetch_registers)
2539 (ravenscar_thread_target::store_registers)
2540 (ravenscar_thread_target::prepare_to_store): Use base thread when
2541 forwarding operation.
2542
2543 2020-08-07 Tom Tromey <tromey@adacore.com>
2544
2545 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2546 "is_pid" case.
2547
2548 2020-08-07 Tom Tromey <tromey@adacore.com>
2549
2550 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2551 New methods.
2552 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2553 first.
2554 (ravenscar_thread_target::add_thread): Rename from
2555 ravenscar_add_thread.
2556 (ravenscar_thread_target::update_thread_list): Use a lambda.
2557 (ravenscar_thread_target::xfer_partial): New method.
2558
2559 2020-08-07 Tom Tromey <tromey@adacore.com>
2560
2561 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2562 gdb::function_view.
2563 (iterate_over_live_ada_tasks): Change type of argument.
2564 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2565 of argument.
2566
2567 2020-08-07 Tom Tromey <tromey@adacore.com>
2568
2569 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2570 Remove.
2571 (ravenscar_thread_target::extra_thread_info): Remove.
2572 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2573 defer to target beneath for non-Ravenscar threads.
2574
2575 2020-08-07 Tom Tromey <tromey@adacore.com>
2576
2577 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2578 get_base_thread_from_ravenscar_task>: Now methods.
2579 <m_cpu_map>: New member.
2580 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2581 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2582 (ravenscar_thread_target::task_is_currently_active): Update.
2583 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2584 Now a method.
2585 (ravenscar_thread_target::add_active_thread): Put initial thread
2586 into the m_cpu_map.
2587
2588 2020-08-07 Tom Tromey <tromey@adacore.com>
2589
2590 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2591 event_ptid.
2592
2593 2020-08-07 Tom Tromey <tromey@adacore.com>
2594
2595 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2596 runtime_initialized.
2597
2598 2020-08-07 Tom Tromey <tromey@adacore.com>
2599
2600 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2601 add_active_thread.
2602 (ravenscar_thread_target::add_active_thread): Now public.
2603 (ravenscar_inferior_created): Call add_active_thread after pushing
2604 the target.
2605
2606 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2607
2608 * regcache.c (ptid_regcache_map): New type.
2609 (target_ptid_regcache_map): New type.
2610 (regcaches): Change type to target_ptid_regcache_map.
2611 (get_thread_arch_aspace_regcache): Update to regcaches' new
2612 type.
2613 (regcache_thread_ptid_changed): Likewise.
2614 (registers_changed_ptid): Likewise.
2615 (regcaches_size): Likewise.
2616 (regcaches_test): Update.
2617 (regcache_thread_ptid_changed): Update.
2618 * regcache.h (regcache_up): New type.
2619 * gdbsupport/ptid.h (hash_ptid): New struct.
2620
2621 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
2622
2623 * observable.h (thread_ptid_changed): Add parameter
2624 `process_stratum_target *`.
2625 * infrun.c (infrun_thread_ptid_changed): Add parameter
2626 `process_stratum_target *` and use it.
2627 (selftests): New namespace.
2628 (infrun_thread_ptid_changed): New function.
2629 (_initialize_infrun): Register selftest.
2630 * regcache.c (regcache_thread_ptid_changed): Add parameter
2631 `process_stratum_target *` and use it.
2632 (regcache_thread_ptid_changed): New function.
2633 (_initialize_regcache): Register selftest.
2634 * thread.c (thread_change_ptid): Pass target to
2635 thread_ptid_changed observable.
2636
2637 2020-08-06 Caroline Tice <cmtice@google.com>
2638
2639 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2640 (struct dwp_sections): Update field comments. Add loclists and
2641 rnglists fields.
2642 (struct virtual_v2_dwo_sections): Rename struct to
2643 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2644 size & offset fields for loclists and rnglists.
2645 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2646 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2647 skipping dummy type units.
2648 (create_dwp_hash_table): Update the large comment above the function to
2649 discuss Version 5 DWP files as well, with references. Update all the
2650 version checks in the function to check for version 5 as well. Add new
2651 section at the end to create dwp hash table for version 5.
2652 (create_dwp_v2_section): Rename function to
2653 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2654 Add V5 to error message text.
2655 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2656 into calls to create_dwp_v2_or_v5_section.
2657 (create_dwo_unit_in_dwp_v5): New function.
2658 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2659 check for version2; add else clause to handle version 5.
2660 (open_and_init_dwo_file): Add code to check dwarf version & only call
2661 create_debug_types_hash_table (with sections.types) if version is not 5;
2662 else call create_debug_type_hash_table, with sections.info.
2663 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2664 version 5.
2665 (dwarf2_locate_v5_dwp_sections): New function.
2666 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2667 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
2668
2669 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
2670
2671 * regcache.h (class regcache): Remove friend
2672 registers_changed_ptid.
2673 <regcache_thread_ptid_changed>: Remove.
2674 <regcaches>: Remove.
2675 * regcache.c (regcache::regcaches): Rename to...
2676 (regcaches): ... this. Make static.
2677 (get_thread_arch_aspace_regcache): Update.
2678 (regcache::regcache_thread_ptid_changed): Rename to...
2679 (regcache_thread_ptid_changed): ... this. Update.
2680 (class regcache_access): Remove.
2681 (regcaches_test): Update.
2682 (_initialize_regcache): Update.
2683 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2684 <forward_list>.
2685
2686 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
2687
2688 * regcache.h (class regcache) <current_regcache>: Rename to...
2689 <regcaches>: ... this. Move doc here.
2690 * regcache.c (regcache::current_regcache) Rename to...
2691 (regcache::regcaches): ... this. Move doc to header.
2692 (get_thread_arch_aspace_regcache): Update.
2693 (regcache::regcache_thread_ptid_changed): Update.
2694 (registers_changed_ptid): Update.
2695 (class regcache_access) <current_regcache_size>: Rename to...
2696 <regcaches_size>: ... this.
2697 (current_regcache_test): Rename to...
2698 (regcaches_test): ... this.
2699 (_initialize_regcache): Update.
2700
2701 2020-08-06 Victor Collod <vcollod@nvidia.com>
2702
2703 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2704
2705 2020-08-05 Kevin Buettner <kevinb@redhat.com>
2706
2707 * corelow.c (core_target::build_file_mappings): Don't output
2708 null pathname in warning.
2709
2710 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2711
2712 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2713 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2714 gdb.dwarf2/dw2-single-line-discriminators.exp,
2715 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2716
2717 2020-08-05 Tom Tromey <tromey@adacore.com>
2718
2719 PR rust/26197:
2720 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2721 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2722 Fix off-by-one and type size errors in ordinary case.
2723
2724 2020-08-05 Tom de Vries <tdevries@suse.de>
2725
2726 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2727 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2728
2729 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
2730
2731 * frame.h (frame_id_p): Return bool.
2732 (frame_id_artificial_p): Return bool.
2733 (frame_id_eq): Return bool.
2734 (has_stack_frames): Return bool.
2735 (get_selected_frame): Fix typo in comment.
2736 (get_frame_pc_if_available): Return bool.
2737 (get_frame_address_in_block_if_available): Return bool.
2738 (get_frame_func_if_available): Return bool.
2739 (read_frame_register_unsigned): Return bool.
2740 (get_frame_register_bytes): Return bool.
2741 (safe_frame_unwind_memory): Return bool.
2742 (deprecated_frame_register_read): Return bool.
2743 (frame_unwinder_is): Return bool.
2744 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2745 bool.
2746 <this_id::p>: Likewise.
2747 <prev_p>: Likewise.
2748 (frame_stash_add): Return bool.
2749 (get_frame_id): Use bool.
2750 (frame_id_build_special) Use bool.
2751 (frame_id_build_unavailable_stack): Use bool.
2752 (frame_id_build): Use bool.
2753 (frame_id_p): Return bool, use true/false instead of 1/0.
2754 (frame_id_artificial_p): Likewise.
2755 (frame_id_eq): Likewise.
2756 (frame_id_inner): Likewise.
2757 (get_frame_func_if_available): Likewise.
2758 (read_frame_register_unsigned): Likewise.
2759 (deprecated_frame_register_read): Likewise.
2760 (get_frame_register_bytes): Likewise.
2761 (has_stack_frames): Likewise.
2762 (inside_main_func): Likewise.
2763 (inside_entry_func): Likewise.
2764 (get_frame_pc_if_available): Likewise.
2765 (get_frame_address_in_block_if_available): Likewise.
2766 (frame_unwinder_is): Likewise.
2767 (safe_frame_unwind_memory): Likewise.
2768 (frame_unwind_arch): Likewise.
2769
2770 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
2771
2772 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2773 type to cached_copy_status.
2774 (fprintf_frame): Adjust.
2775 (get_frame_func_if_available): Adjust.
2776 (frame_cleanup_after_sniffer): Adjust.
2777
2778 2020-08-04 Mark Wielaard <mark@klomp.org>
2779
2780 * MAINTAINERS (Write After Approval): Update email address.
2781
2782 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2783
2784 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2785 dynamic_prop::const_val.
2786
2787 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2788
2789 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2790 dynamic_prop::kind.
2791
2792 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2793
2794 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2795
2796 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2797
2798 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2799
2800 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
2801 Jose E. Marchesi <jose.marchesi@oracle.com>
2802
2803 * configure.tgt: Add entry for bpf-*-*.
2804 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2805 (ALLDEPFILES): Add bpf-tdep.c.
2806 * bpf-tdep.c: New file.
2807 * MAINTAINERS: Add bpf target and maintainer.
2808 * NEWS: Mention the support for the new target.
2809
2810 2020-08-04 Tom de Vries <tdevries@suse.de>
2811
2812 PR symtab/23270
2813 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2814 Error.
2815
2816 2020-08-03 John Baldwin <jhb@FreeBSD.org>
2817
2818 * syscalls/freebsd.xml: Regenerate.
2819
2820 2020-08-03 John Baldwin <jhb@FreeBSD.org>
2821
2822 * syscalls/update-freebsd.sh: Fix usage and year range.
2823
2824 2020-08-03 Tom de Vries <tdevries@suse.de>
2825
2826 PR symtab/26333
2827 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2828 DW_LNE_lo_user/DW_LNE_hi_user range.
2829
2830 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2831
2832 PR ada/26318
2833 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2834 kind.
2835
2836 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2837
2838 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2839
2840 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2841
2842 * breakpoint.c (set_breakpoint_condition): Update the condition
2843 expressions after checking that the input condition string parses
2844 successfully and does not contain junk at the end.
2845
2846 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2847
2848 * breakpoint.c (set_breakpoint_condition): Update the
2849 condition string after parsing the new condition successfully.
2850
2851 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2852
2853 * proc-api.c (_STRUCTURED_PROC): Don't define.
2854 * proc-events.c: Likewise.
2855 * proc-flags.c: Likewise.
2856 * proc-why.c: Likewise.
2857 * procfs.c: Likewise.
2858
2859 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2860 * configure, config.in: Regenerate.
2861
2862 2020-07-30 Tom de Vries <tdevries@suse.de>
2863
2864 PR build/26320
2865 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2866 m_red/m_green/m_blue in a union.
2867
2868 2020-07-29 Tom de Vries <tdevries@suse.de>
2869
2870 PR tdep/26280
2871 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2872
2873 2020-07-28 Tom Tromey <tromey@adacore.com>
2874
2875 PR symtab/26270:
2876 * symtab.h (find_pc_partial_function_sym): Declare.
2877 * cli/cli-cmds.c (disassemble_command): Use
2878 find_pc_partial_function_sym. Check asm_demangle.
2879 * blockframe.c (cache_pc_function_sym): New global.
2880 (cache_pc_function_name): Remove.
2881 (clear_pc_function_cache): Update.
2882 (find_pc_partial_function_sym): New function, from
2883 find_pc_partial_function.
2884 (find_pc_partial_function): Rewrite using
2885 find_pc_partial_function_sym.
2886
2887 2020-07-28 Tom Tromey <tromey@adacore.com>
2888
2889 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2890 help. Add usage.
2891
2892 2020-07-28 Tom Tromey <tromey@adacore.com>
2893
2894 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2895 <DW_OP_GNU_variable_value>: Cast to address type.
2896
2897 2020-07-28 Kamil Rytarowski <n54@gmx.com>
2898
2899 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2900 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2901 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2902 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2903 (nbsd_get_siginfo_type): New.
2904 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2905 (_initialize_nbsd_tdep): New.
2906
2907 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2908
2909 PR binutils/26301
2910 * configure: Regenerated.
2911
2912 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2913
2914 PR binutils/26301
2915 * configure: Regenerated.
2916
2917 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2918
2919 * python/py-frame.c: Remove 'user-regs.h' include.
2920 (frapy_read_register): Rewrite to make use of
2921 gdbpy_parse_register_id.
2922 * python/py-registers.c (gdbpy_parse_register_id): New function,
2923 moved here from python/py-unwind.c. Updated the return type, and
2924 also accepts register descriptor objects.
2925 * python/py-unwind.c: Remove 'user-regs.h' include.
2926 (pyuw_parse_register_id): Moved to python/py-registers.c.
2927 (unwind_infopy_add_saved_register): Update to use
2928 gdbpy_parse_register_id.
2929 (pending_framepy_read_register): Likewise.
2930 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2931
2932 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2933
2934 * python/py-registers.c: Add 'user-regs.h' include.
2935 (register_descriptor_iter_find): New function.
2936 (register_descriptor_iterator_object_methods): New static global
2937 methods array.
2938 (register_descriptor_iterator_object_type): Add pointer to methods
2939 array.
2940
2941 2020-07-27 John Baldwin <jhb@FreeBSD.org>
2942
2943 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2944 for all architectures on FreeBSD 11.3 and later.
2945
2946 2020-07-27 Tom Tromey <tromey@adacore.com>
2947
2948 * gcore.h (load_corefile): Don't declare.
2949
2950 2020-07-27 Tom de Vries <tdevries@suse.de>
2951
2952 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2953 * config.in: Regenerate.
2954 * configure: Regenerate.
2955
2956 2020-07-26 Eli Zaretskii <eliz@gnu.org>
2957
2958 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2959 ws2tcpip.h. When checking whether socklen_t type is defined, use
2960 ws2tcpip.h if it is available and sys/socket.h isn't.
2961 * configure: Regenerate.
2962 * config.in: Regenerate.
2963
2964 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2965
2966 PR fortran/23051
2967 PR fortran/26139
2968 * valops.c (value_ind): Pass address to
2969 readjust_indirect_value_type.
2970 * value.c (readjust_indirect_value_type): Make parameter
2971 non-const, and add extra address parameter. Resolve original type
2972 before using it.
2973 * value.h (readjust_indirect_value_type): Update function
2974 signature and comment.
2975
2976 2020-07-25 Tom de Vries <tdevries@suse.de>
2977
2978 PR symtab/26243
2979 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2980 entries.
2981
2982 2020-07-24 Aaron Merey <amerey@redhat.com>
2983
2984 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2985 * configure: Rebuild.
2986
2987 2020-07-23 Kevin Buettner <kevinb@redhat.com>
2988
2989 PR corefiles/26294
2990 * corelow.c (_initialize_corelow): Add period to help text
2991 for "maintenance print core-file-backed-mappings".
2992
2993 2020-07-23 Pedro Alves <pedro@palves.net>
2994
2995 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2996 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2997 meanwhile.
2998 * frame.c (frame_cache_generation, get_frame_cache_generation):
2999 New.
3000 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
3001 (get_prev_frame_if_no_cycle): On exception, don't touch
3002 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
3003 * frame.h (get_frame_cache_generation): Declare.
3004
3005 2020-07-23 Tom de Vries <tdevries@suse.de>
3006
3007 PR tui/26282
3008 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
3009 New default constructor.
3010
3011 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
3012
3013 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
3014 exclude non-statement entries.
3015
3016 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3017
3018 * NEWS (New commands): Mention new command
3019 "maintenance print core-file-backed-mappings".
3020
3021 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3022
3023 * corelow.c (gdbcmd.h): Include.
3024 (core_target::info_proc_mappings): New method.
3025 (get_current_core_target): New function.
3026 (maintenance_print_core_file_backed_mappings): New function.
3027 (_initialize_corelow): Add core-file-backed-mappings to
3028 "maint print" commands.
3029
3030 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3031
3032 * linux-tdep.c (dump_note_entry_p): New function.
3033 (linux_dump_mapping_p_ftype): New typedef.
3034 (linux_find_memory_regions_full): Add new parameter,
3035 should_dump_mapping_p.
3036 (linux_find_memory_regions): Adjust call to
3037 linux_find_memory_regions_full.
3038 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
3039 call to linux_find_memory_regions_full.
3040
3041 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3042
3043 * corelow.c (solist.h, unordered_map): Include.
3044 (class core_target): Add field m_core_file_mappings and
3045 method build_file_mappings.
3046 (core_target::core_target): Call build_file_mappings.
3047 (core_target::~core_target): Free memory associated with
3048 m_core_file_mappings.
3049 (core_target::build_file_mappings): New method.
3050 (core_target::xfer_partial): Use m_core_file_mappings
3051 for memory transfers.
3052 * linux-tdep.c (linux_read_core_file_mappings): New
3053 function.
3054 (linux_core_info_proc_mappings): Rewrite to use
3055 linux_read_core_file_mappings.
3056 (linux_init_abi): Register linux_read_core_file_mappings.
3057
3058 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3059
3060 * arch-utils.c (default_read_core_file_mappings): New function.
3061 * arch-utils.c (default_read_core_file_mappings): Declare.
3062 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
3063 * gdbarch.h, gdbarch.c: Regenerate.
3064
3065 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3066
3067 PR corefiles/25631
3068 * corelow.c (core_target:xfer_partial): Revise
3069 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
3070 case after first checking the stratum beneath the core
3071 target.
3072 (has_all_memory): Return true.
3073 * target.c (raw_memory_xfer_partial): Revise comment
3074 regarding use of has_all_memory.
3075
3076 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3077
3078 * exec.h (section_table_xfer_memory): Revise declaration,
3079 replacing section name parameter with an optional callback
3080 predicate.
3081 * exec.c (section_table_xfer_memory): Likewise.
3082 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
3083 of section_table_xfer_memory.
3084
3085 2020-07-22 Tom Tromey <tromey@adacore.com>
3086
3087 * mi/mi-cmd-stack.c (list_args_or_locals): Use
3088 lookup_symbol_search_name.
3089
3090 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3091
3092 * python/py-registers.c (gdbpy_register_object_data_init): Remove
3093 redundant local variable.
3094 (gdbpy_get_register_descriptor): Extract descriptor vector as a
3095 reference, not pointer, update code accordingly.
3096
3097 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3098 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3099
3100 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
3101 * jit.c (jit_breakpoint_re_set_internal): Use the
3102 `skip_jit_symbol_lookup` field.
3103
3104 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3105 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3106
3107 * jit.c (jit_read_descriptor): Define the descriptor address once,
3108 use twice.
3109 (jit_breakpoint_deleted): Move the declaration of the loop variable
3110 `iter` into the loop header.
3111 (jit_breakpoint_re_set_internal): Move the declaration of the local
3112 variable `objf_data` to the first point of definition.
3113 (jit_event_handler): Move the declaration of local variables
3114 `code_entry`, `entry_addr`, and `objf` to their first point of use.
3115 Rename `objf` to `jited`.
3116
3117 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3118
3119 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
3120 Remove.
3121 * jit.c (get_jiter_objfile_data): Update.
3122
3123 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3124 Simon Marchi <simon.marchi@polymtl.ca>
3125
3126 * jit.c (struct jit_program_space_data): Remove.
3127 (jit_program_space_key): Remove.
3128 (jiter_objfile_data::~jiter_objfile_data): Remove program space
3129 stuff.
3130 (get_jit_program_space_data): Remove.
3131 (jit_breakpoint_deleted): Iterate on all of the program space's
3132 objfiles.
3133 (jit_inferior_init): Likewise.
3134 (jit_breakpoint_re_set_internal): Likewise. Also change return
3135 type to void.
3136 (jit_breakpoint_re_set): Pass current_program_space to
3137 jit_breakpoint_re_set_internal.
3138
3139 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3140
3141 * jit.h (struct jiter_objfile_data) <cached_code_address,
3142 jit_breakpoint>: Move to here from ...
3143 * jit.c (jit_program_space_data): ... here.
3144 (jiter_objfile_data::~jiter_objfile_data): Update.
3145 (jit_breakpoint_deleted): Update.
3146 (jit_breakpoint_re_set_internal): Update.
3147
3148 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3149
3150 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
3151 checks.
3152 (jit_read_descriptor): Remove NULL check.
3153 (jit_event_handler): Add an assertion.
3154
3155 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3156
3157 * jit.h (struct jit_objfile_data): Split into...
3158 (struct jiter_objfile_data): ... this ...
3159 (struct jited_objfile_data): ... and this.
3160 * objfiles.h (struct objfile) <jit_data>: Remove.
3161 <jiter_data, jited_data>: New fields.
3162 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
3163 (jiter_objfile_data::~jiter_objfile_data): ... this.
3164 (get_jit_objfile_data): Rename to ...
3165 (get_jiter_objfile_data): ... this.
3166 (add_objfile_entry): Update.
3167 (jit_read_descriptor): Use get_jiter_objfile_data.
3168 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
3169 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
3170 (jit_inferior_exit_hook): Use objfile's jited_data field.
3171
3172 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3173
3174 * jit.h: Forward-declare `struct minimal_symbol`.
3175 (struct jit_objfile_data): Migrate to here from jit.c; also add a
3176 constructor, destructor, and an objfile* field.
3177 * jit.c (jit_objfile_data): Remove.
3178 (struct jit_objfile_data): Migrate from here to jit.h.
3179 (jit_objfile_data::~jit_objfile_data): New destructor
3180 implementation with code moved from free_objfile_data.
3181 (free_objfile_data): Delete.
3182 (get_jit_objfile_data): Update to use the jit_data field of objfile.
3183 (jit_find_objf_with_entry_addr): Ditto.
3184 (jit_inferior_exit_hook): Ditto.
3185 (_initialize_jit): Remove the call to
3186 register_objfile_data_with_cleanup.
3187 * objfiles.h (struct objfile) <jit_data>: New field.
3188
3189 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3190
3191 * jit.h: Forward-declare `struct objfile`.
3192 (jit_event_handler): Add a second parameter, the JITer objfile.
3193 * jit.c (jit_read_descriptor): Change the signature to take the
3194 JITer objfile as an argument instead of the jit_program_space_data.
3195 (jit_inferior_init): Update the call to jit_read_descriptor.
3196 (jit_event_handler): Use the new JITer objfile argument when calling
3197 jit_read_descriptor.
3198 * breakpoint.c (handle_jit_event): Update the call to
3199 jit_event_handler to pass the JITer objfile.
3200
3201 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3202
3203 * gdbarch.c: Regenerate.
3204 * gdbarch.h: Regenerate.
3205 * gdbarch.sh (handle_segmentation_fault): Remove method.
3206 * infrun.c (handle_segmentation_fault): Remove.
3207 (print_signal_received_reason): Remove call to
3208 handle_segmentation_fault.
3209
3210 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3211
3212 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3213 Rename to sparc64_linux_report_signal_info and add siggnal
3214 argument.
3215 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
3216 instead of sparc64_linux_handle_segmentation_fault.
3217
3218 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3219
3220 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
3221 i386_linux_report_signal_info instead of
3222 i386_linux_handle_segmentation_fault.
3223 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
3224 to i386_linux_report_signal_info and add siggnal argument.
3225 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
3226 of i386_linux_handle_segmentation_fault.
3227 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
3228 to i386_linux_report_signal_info and add siggnal argument.
3229
3230 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3231
3232 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
3233 hook if present.
3234
3235 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3236
3237 * gdbarch.c: Regenerate.
3238 * gdbarch.h: Regenerate.
3239 * gdbarch.sh (report_signal_info): New method.
3240 * infrun.c (print_signal_received_reason): Invoke gdbarch
3241 report_signal_info hook if present.
3242
3243 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3244
3245 * python/py-registers.c : Add 'unordered_map' include.
3246 (gdbpy_new_reggroup): Renamed to...
3247 (gdbpy_get_reggroup): ...this. Update to only create register
3248 group descriptors when needed.
3249 (gdbpy_reggroup_iter_next): Update.
3250
3251 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3252
3253 * python/py-registers.c (gdbpy_register_object_data): New static
3254 global.
3255 (gdbpy_register_object_data_init): New function.
3256 (gdbpy_new_register_descriptor): Renamed to...
3257 (gdbpy_get_register_descriptor): ...this, and update to reuse
3258 existing register descriptors where possible.
3259 (gdbpy_register_descriptor_iter_next): Update.
3260 (gdbpy_initialize_registers): Register new gdbarch data.
3261
3262 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
3263
3264 * linux-nat.c (stopped_pids): Make static.
3265
3266 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3267
3268 PR ada/26235
3269 * gdbtypes.c (ada_discrete_type_low_bound,
3270 ada_discrete_type_high_bound): Handle undefined bounds.
3271
3272 2020-07-21 Kamil Rytarowski <n54@gmx.com>
3273
3274 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
3275 declaration.
3276 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
3277 function.
3278
3279 2020-07-20 John Baldwin <jhb@FreeBSD.org>
3280
3281 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
3282 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
3283 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
3284 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
3285 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
3286 method.
3287
3288 2020-07-20 Ludovic Courtès <ludo@gnu.org>
3289
3290 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
3291 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
3292 which are deprecated in Guile 3.0.
3293 * configure.ac (try_guile_versions): Add "guile-3.0".
3294 * configure (try_guile_versions): Regenerate.
3295 * NEWS: Update entry.
3296
3297 2020-07-20 Ludovic Courtès <ludo@gnu.org>
3298 Doug Evans <dje@google.com>
3299
3300 PR gdb/21104
3301 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
3302 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
3303 USING_GUILE_BEFORE_2_2.
3304 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
3305 Change type to 'scm_t_port_type *'.
3306 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
3307 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
3308 parameter and honor it. Update callers.
3309 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
3310 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
3311 functions.
3312 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
3313 USING_GUILE_BEFORE_2_2.
3314 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
3315 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
3316 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
3317 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
3318 and 'SCM_PORT_TYPE'.
3319 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
3320 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
3321 (gdbscm_memory_port_read, gdbscm_memory_port_write)
3322 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
3323 [!USING_GUILE_BEFORE_2_2]: New functions.
3324 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
3325 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
3326 'gdbscm_memory_port_read'.
3327 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
3328 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
3329 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
3330 function.
3331 (ioscm_init_memory_port): Remove.
3332 (ioscm_init_memory_port_stream): New function
3333 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
3334 function.
3335 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3336 Return scm_from_uint (0).
3337 (gdbscm_set_memory_port_read_buffer_size_x)
3338 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3339 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3340 Return scm_from_uint (0).
3341 (gdbscm_set_memory_port_write_buffer_size_x)
3342 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3343 * configure.ac (try_guile_versions): Add "guile-2.2".
3344 * configure: Regenerate.
3345 * NEWS: Add entry.
3346
3347 2020-07-18 Tom Tromey <tom@tromey.com>
3348
3349 * linux-nat.c (linux_multi_process): Remove.
3350 (linux_nat_target::supports_multi_process): Return true.
3351
3352 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3353
3354 * arch/riscv.c (riscv_tdesc_cache): Change map type.
3355 (riscv_lookup_target_description): Return pointer out of
3356 unique_ptr.
3357 * target-descriptions.c (allocate_target_description): Add
3358 comment.
3359 (target_desc_deleter::operator()): Likewise.
3360 * target-descriptions.h (struct target_desc_deleter): Moved to
3361 gdbsupport/tdesc.h.
3362 (target_desc_up): Likewise.
3363
3364 2020-07-17 Tom Tromey <tromey@adacore.com>
3365
3366 * linux-nat.c (linux_nat_target::supports_non_stop)
3367 (linux_nat_target::always_non_stop_p): Use "true".
3368 (linux_nat_target::supports_disable_randomization): Use "true" and
3369 "false".
3370
3371 2020-07-16 Caroline Tice <cmtice@google.com>
3372
3373 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3374 (RNGLIST_HEADER_SIZE64): New constant definition.
3375 (struct dwop_section_names): Add rnglists_dwo.
3376 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3377 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3378 (struct dwo_sections): Add rnglists field.
3379 (read_attribut_reprocess): Add tag parameter.
3380 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3381 (cu_debug_rnglists_section): New function (decl & definition).
3382 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3383 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3384 die whose range is being checked; get rnglist section from
3385 cu_debug_rnglists_section, to get from either objfile or dwo file as
3386 appropriate. Add cases for DW_RLE_base_addressx,
3387 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3388 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3389 test inside if-condition and updating complaint message.
3390 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3391 dwarf2_rnglists_process.
3392 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3393 dwarf2_ranges_process.
3394 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3395 need_ranges_base and update comment appropriately. Also pass die tag
3396 to dwarf2_ranges_read.
3397 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3398 need_ranges_base and update comment appropriately. Also pass die tag
3399 to dwarf2_ranges_process.
3400 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3401 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3402 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3403 need_ranges_base and update comment appropriately. Also pass die tag
3404 to read_attribute_reprocess and dwarf2_ranges_read.
3405 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3406 and update function comment appropriately.
3407 (read_loclist_index): Call read_loclists_rnglists_header instead of
3408 read_loclist_header.
3409 (read_rnglist_index): New function.
3410 (read_attribute_reprocess): Add tag parameter. Add code for
3411 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3412 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3413
3414 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3415
3416 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3417 being resolved.
3418
3419 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3420
3421 * arch-utils.c (show_architecture): Update formatting of messages.
3422
3423 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3424
3425 * gdbtypes.h (struct type) <bounds>: Handle array and string
3426 types.
3427 * ada-lang.c (assign_aggregate): Use type::bounds on
3428 array/string type.
3429 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3430 * c-varobj.c (c_number_of_children): Likewise.
3431 (c_describe_child): Likewise.
3432 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3433 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3434 (f_type_print_base): Likewise.
3435 * f-valprint.c (f77_array_offset_tbl): Likewise.
3436 (f77_get_upperbound): Likewise.
3437 (f77_print_array_1): Likewise.
3438 * guile/scm-type.c (gdbscm_type_range): Likewise.
3439 * m2-typeprint.c (m2_array): Likewise.
3440 (m2_is_long_set_of_type): Likewise.
3441 * m2-valprint.c (get_long_set_bounds): Likewise.
3442 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3443 * python/py-type.c (typy_range): Likewise.
3444 * rust-lang.c (rust_internal_print_type): Likewise.
3445 * type-stack.c (type_stack::follow_types): Likewise.
3446 * valarith.c (value_subscripted_rvalue): Likewise.
3447 * valops.c (value_cast): Likewise.
3448
3449 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3450
3451 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3452 callers to use the equivalent accessor methods.
3453
3454 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3455
3456 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3457 (struct type) <bit_stride>: New method.
3458 (TYPE_BIT_STRIDE): Remove.
3459 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3460
3461 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3462
3463 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3464 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3465 callers to use the equivalent accessor methods instead.
3466
3467 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3468
3469 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3470 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3471 callers to use the equivalent accessor methods instead.
3472
3473 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3474
3475 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3476 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3477 to use dynamic_prop::kind.
3478
3479 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3480
3481 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3482 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3483 to get the bound property's kind and check against
3484 PROP_UNDEFINED.
3485
3486 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3487
3488 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3489 all callers to use type::range_bounds followed by
3490 dynamic_prop::{low,high}.
3491
3492 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3493
3494 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3495 const_val, set_const_val, baton, set_locexpr, set_loclist,
3496 set_addr_offset, variant_parts, set_variant_parts,
3497 original_type, set_original_type>: New methods.
3498 <kind>: Rename to...
3499 <m_kind>: ... this. Update all users to use the new methods
3500 instead.
3501 <data>: Rename to...
3502 <m_data>: ... this. Update all users to use the new methods
3503 instead.
3504
3505 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3506
3507 * gdbtypes.c (get_discrete_bounds): Return failure if
3508 the range type's bounds are not both defined and constant
3509 values.
3510 (get_array_bounds): Update comment. Remove undefined bound check.
3511
3512 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3513
3514 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3515 the type::bounds method directly.
3516
3517 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3518
3519 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3520 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3521 are used to set the range type's bounds to use set_bounds.
3522
3523 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3524
3525 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3526
3527 2020-07-10 Pedro Alves <pedro@palves.net>
3528
3529 * gdbthread.h (inferior_ref): Define.
3530 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3531 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3532 * thread.c
3533 (scoped_restore_current_thread::restore):
3534 Adjust to gdb::ref_ptr.
3535 (scoped_restore_current_thread::~scoped_restore_current_thread):
3536 Remove manual decref handling.
3537 (scoped_restore_current_thread::scoped_restore_current_thread):
3538 Adjust to use
3539 inferior_ref::new_reference/thread_info_ref::new_reference.
3540 Incref the thread before calling get_frame_id instead of after.
3541 Let TARGET_CLOSE_ERROR propagate.
3542
3543 2020-07-10 Pedro Alves <pedro@palves.net>
3544
3545 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3546 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3547 NOT_AVAILABLE_ERROR.
3548 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3549 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3550
3551 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3552 Pedro Alves <pedro@palves.net>
3553
3554 PR gdb/26199
3555 * infrun.c (threads_are_resumed_pending_p): Delete.
3556 (do_target_wait): Remove threads_are_executing and
3557 threads_are_resumed_pending_p checks from the inferior_matches
3558 lambda. Update comments.
3559
3560 2020-07-10 Pedro Alves <pedro@palves.net>
3561
3562 PR gdb/26199
3563 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3564 executing threads.
3565
3566 2020-07-10 Pedro Alves <pedro@palves.net>
3567
3568 PR gdb/26199
3569 * infrun.c (handle_no_resumed): Handle multiple targets.
3570
3571 2020-07-10 Pedro Alves <pedro@palves.net>
3572
3573 PR gdb/26199
3574 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3575 target_is_async_p.
3576
3577 2020-07-10 Pedro Alves <pedro@palves.net>
3578
3579 PR gdb/26199
3580 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3581 threads, not all threads.
3582
3583 2020-07-10 Pedro Alves <pedro@palves.net>
3584
3585 PR gdb/26199
3586 * remote.c (remote_target::open_1): Pass remote target pointer as
3587 data to create_async_event_handler.
3588 (remote_async_inferior_event_handler): Mark async event handler
3589 before returning if the remote target still has either pending
3590 events or unacknowledged notifications.
3591
3592 2020-07-10 John Baldwin <jhb@FreeBSD.org>
3593
3594 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3595 declaration.
3596 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3597 function.
3598
3599 2020-07-09 John Baldwin <jhb@FreeBSD.org>
3600
3601 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3602 inferior_ptid.
3603
3604 2020-07-09 John Baldwin <jhb@FreeBSD.org>
3605
3606 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3607 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3608 AT_FREEBSD_PS_STRINGS.
3609
3610 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
3611
3612 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3613 of debugfile path on Windows.
3614
3615 2020-07-08 John Baldwin <jhb@FreeBSD.org>
3616
3617 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3618 argument to 'data'.
3619
3620 2020-07-08 Tom Tromey <tromey@adacore.com>
3621
3622 * ada-lang.c (ada_exception_message_1): Use read_memory.
3623
3624 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3625
3626 PR python/22748
3627 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3628 special handling for inline frames.
3629 * findvar.c (value_of_register_lazy): Skip inline frames when
3630 creating lazy register values.
3631 * frame.c (frame_id_computed_p): Delete definition.
3632 * frame.h (frame_id_computed_p): Delete declaration.
3633
3634 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3635
3636 * NEWS: Mention additions to Python API.
3637 * python/py-arch.c (archpy_register_groups): New function.
3638 (arch_object_methods): Add 'register_groups' method.
3639 * python/py-registers.c (reggroup_iterator_object): New struct.
3640 (reggroup_object): New struct.
3641 (gdbpy_new_reggroup): New function.
3642 (gdbpy_reggroup_to_string): New function.
3643 (gdbpy_reggroup_name): New function.
3644 (gdbpy_reggroup_iter): New function.
3645 (gdbpy_reggroup_iter_next): New function.
3646 (gdbpy_new_reggroup_iterator): New function
3647 (gdbpy_initialize_registers): Register new types.
3648 (reggroup_iterator_object_type): Define new Python type.
3649 (gdbpy_reggroup_getset): New static global.
3650 (reggroup_object_type): Define new Python type.
3651 * python/python-internal.h
3652
3653 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3654
3655 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3656 * python/py-arch.c (archpy_registers): New function.
3657 (arch_object_methods): Add 'registers' method.
3658 * python/py-registers.c: New file.
3659 * python/python-internal.h
3660 (gdbpy_new_register_descriptor_iterator): Declare.
3661 (gdbpy_initialize_registers): Declare.
3662 * python/python.c (do_start_initialization): Call
3663 gdbpy_initialize_registers.
3664 * NEWS: Mention additions to the Python API.
3665
3666 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3667
3668 * NEWS: Mention new Python API method.
3669 * python/py-unwind.c (pending_framepy_architecture): New function.
3670 (pending_frame_object_methods): Add architecture method.
3671
3672 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3673
3674 * gdbarch.c: Regenerate.
3675 * gdbarch.h: Regenerate.
3676 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3677 (gdbarch_data): Use internal_error for the case where
3678 deprecated_set_gdbarch_data was originally needed.
3679 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3680 and use passed in obstack.
3681 (libunwind_frame_set_descr): Should no longer get back NULL from
3682 gdbarch_data.
3683 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3684 type.
3685 * user-regs.c (user_regs_init): Update parameters, and use passed
3686 in obstack.
3687 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3688 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3689
3690 2020-07-06 Tom de Vries <tdevries@suse.de>
3691
3692 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3693 End-Of-Sequence in lte_is_less_than.
3694 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3695 "gdb: Don't reorder line table entries too much when sorting".
3696
3697 2020-07-06 Tom de Vries <tdevries@suse.de>
3698
3699 PR tui/26205
3700 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3701
3702 2020-07-05 Tom de Vries <tdevries@suse.de>
3703
3704 PR build/26187
3705 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3706 std::uncaught_exceptions instead of deprecated
3707 std::uncaught_exception.
3708
3709 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3710
3711 * macroexp.h (macro_stringify): Return
3712 gdb::unique_xmalloc_ptr<char>.
3713 * macroexp.c (macro_stringify): Likewise.
3714 * macrotab.c (fixup_definition): Update.
3715
3716 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3717
3718 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3719 (lex_one_token): Update.
3720 * macroexp.c (struct macro_buffer) <release>: Return
3721 gdb::unique_xmalloc_ptr<char>.
3722 (macro_stringify): Update.
3723 (macro_expand): Update.
3724 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3725 * macroexp.h (macro_expand_next): Likewise.
3726
3727 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
3728
3729 * macroexp.h (macro_lookup_ftype): Remove.
3730 (macro_expand, macro_expand_once, macro_expand_next): Remove
3731 lookup function parameters, add scope parameter.
3732 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3733 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3734 * macroscope.h (standard_macro_lookup): Change parameter type
3735 to macro_scope.
3736 * macroscope.c (standard_macro_lookup): Likewise.
3737 * c-exp.y (lex_one_token): Update.
3738 * macrocmd.c (macro_expand_command): Likewise.
3739 (macro_expand_once_command): Likewise.
3740
3741 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3742
3743 * inf-loop.c (inferior_event_handler): Remove client_data param.
3744 * inf-loop.h (inferior_event_handler): Likewise.
3745 * infcmd.c (step_1): Adjust.
3746 * infrun.c (proceed): Adjust.
3747 (fetch_inferior_event): Remove client_data param.
3748 (infrun_async_inferior_event_handler): Adjust.
3749 * infrun.h (fetch_inferior_event): Remove `void *` param.
3750 * linux-nat.c (handle_target_event): Adjust.
3751 * record-btrace.c (record_btrace_handle_async_inferior_event):
3752 Adjust.
3753 * record-full.c (record_full_async_inferior_event_handler):
3754 Adjust.
3755 * remote.c (remote_async_inferior_event_handler): Adjust.
3756
3757 2020-07-01 Tom Tromey <tom@tromey.com>
3758
3759 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3760 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3761
3762 2020-07-01 Tom Tromey <tom@tromey.com>
3763
3764 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3765 tui_gen_win_info.
3766 (tui_win_info::make_window): Merge with
3767 tui_gen_win_info::make_window.
3768 (tui_win_info::make_visible): Move from tui_gen_win_info.
3769 * tui/tui-win.c (tui_win_info::max_width): Move from
3770 tui_gen_win_info.
3771 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3772 type.
3773 <window_factory>: Likewise.
3774 * tui/tui-layout.c (tui_win_info::resize): Move from
3775 tui_gen_win_info.
3776 (make_standard_window): Change return type.
3777 (get_locator_window, tui_get_window_by_name): Likewise.
3778 (tui_layout_window::apply): Remove a cast.
3779 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3780 (struct tui_win_info): Merge with tui_gen_win_info.
3781 (struct tui_gen_win_info): Remove.
3782
3783 2020-07-01 Tom Tromey <tom@tromey.com>
3784
3785 * tui/tui-stack.h (struct tui_locator_window): Derive from
3786 tui_win_info.
3787 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3788 <can_box>: New method.
3789
3790 2020-07-01 Tom Tromey <tom@tromey.com>
3791
3792 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3793
3794 2020-07-01 Tom Tromey <tom@tromey.com>
3795
3796 * tui/tui-regs.c (tui_data_window::display_registers_from)
3797 (tui_data_window::display_registers_from)
3798 (tui_data_window::first_data_item_displayed)
3799 (tui_data_window::delete_data_content_windows): Update.
3800 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3801 Remove.
3802 (tui_data_window::check_register_values): Update.
3803 (tui_data_item_window::rerender): Add parameters. Update.
3804 (tui_data_item_window::refresh_window): Remove.
3805 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3806 virtual.
3807 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3808 tui_gen_win_info.
3809 <refresh_window, max_height, min_height>: Remove.
3810 <rerender>: Add parameters.
3811 <x, y, visible>: New members.
3812 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3813 <m_item_width>: New member.
3814
3815 2020-07-01 Tom Tromey <tom@tromey.com>
3816
3817 * tui/tui-regs.c (tui_data_window::show_register_group)
3818 (tui_data_window::check_register_values): Update.
3819 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3820 from item_no.
3821
3822 2020-07-01 Tom Tromey <tom@tromey.com>
3823
3824 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3825 useless "if".
3826
3827 2020-07-01 Tom Tromey <tom@tromey.com>
3828
3829 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3830 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3831
3832 2020-07-01 Tom Tromey <tom@tromey.com>
3833
3834 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3835 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3836 (struct tui_line_or_address): Move from tui-data.h.
3837 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3838 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3839 (tui_cmd_window, tui_source_window_base, tui_source_window)
3840 (tui_disasm_window): Don't declare.
3841 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3842 to tui-winsource.h.
3843 (SINGLE_KEY): Move to tui-stack.c.
3844
3845 2020-07-01 Tom Tromey <tom@tromey.com>
3846
3847 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3848 std::string.
3849 * tui/tui-regs.c (class tab_expansion_file): New.
3850 (tab_expansion_file::write): New method.
3851 (tui_register_format): Change return type. Use
3852 tab_expansion_file.
3853 (tui_get_register, tui_data_window::display_registers_from)
3854 (tui_data_item_window::rerender): Update.
3855 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3856 * tui/tui-io.c (tui_expand_tabs): Remove.
3857
3858 2020-07-01 Tom Tromey <tom@tromey.com>
3859
3860 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3861
3862 2020-07-01 Fangrui Song <maskray@google.com>
3863
3864 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3865
3866 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3867
3868 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3869 forms for DW_AT_associated and DW_AT_allocated attributes,
3870 which is already checked in function attr_to_dynamic_prop.
3871
3872 2020-06-30 Tom Tromey <tromey@adacore.com>
3873
3874 * dwarf2/read.c (quirk_rust_enum): Correctly call
3875 alloc_rust_variant for default-less enum.
3876
3877 2020-06-30 Tom Tromey <tromey@adacore.com>
3878
3879 PR build/26183:
3880 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3881 gdb::to_string.
3882
3883 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
3884
3885 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3886 * gdbarch.h: Re-generate.
3887
3888 2020-06-28 Tom Tromey <tom@tromey.com>
3889
3890 * command.h (cmd_types): Remove.
3891 (cmd_type): Don't declare.
3892 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3893 typedef.
3894 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3895 * cli/cli-decode.c (cmd_type): Remove.
3896
3897 2020-06-27 Pedro Alves <palves@redhat.com>
3898
3899 * fork-child.c (prefork_hook): Adjust.
3900 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3901 Delete.
3902 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3903 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3904 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3905 Remove declarations.
3906 (struct inferior) <set_tty, tty>: New methods.
3907 (struct inferior) <terminal>: Rename to ...
3908 (struct inferior) <m_terminal>: ... this and make private.
3909 * main.c (captured_main_1): Adjust.
3910 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3911 (mi_cmd_inferior_tty_show): Adjust.
3912 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3913 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3914
3915 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
3916
3917 * configure.ac: Add --enable-libctf: handle --disable-static
3918 properly.
3919 * acinclude.m4: sinclude ../config/enable.m4.
3920 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3921 (LIBCTF): Substitute in.
3922 (CTF_DEPS): New, likewise.
3923 (CLIBS): libctf needs symbols from libbfd: move earlier.
3924 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3925 flags.
3926 * ctfread.c: Surround in ENABLE_LIBCTF.
3927 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3928 * configure: Regenerate.
3929 * config.in: Likewise.
3930
3931 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
3932
3933 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3934
3935 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
3936
3937 * inferior.h (struct inferior) <terminal>: Change type to
3938 gdb::unique_xmalloc_ptr<char>.
3939 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3940 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3941 field, adjust to unique pointer.
3942 (get_inferior_io_terminal): Adjust to unique pointer.
3943
3944 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3945
3946 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3947 registers, not just the known core set of registers.
3948
3949 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3950
3951 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3952 fflags, frm, and fcsr registers.
3953 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3954 restore groups.
3955 (riscv_tdesc_unknown_reg): New function.
3956 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3957 tdesc_use_registers.
3958 * riscv-tdep.h (struct gdbarch_tdep): Add
3959 unknown_csrs_first_regnum, unknown_csrs_count,
3960 duplicate_fflags_regnum, duplicate_frm_regnum, and
3961 duplicate_fcsr_regnum fields.
3962
3963 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3964
3965 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3966 callback, use the callback (when not null) to help number unknown
3967 registers.
3968 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3969 (tdesc_use_registers): Add extra parameter to declaration.
3970
3971 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3972
3973 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3974 in the file.
3975 (class riscv_pending_register_alias): Likewise.
3976 (riscv_register_feature::register_info): Change 'required_p' field
3977 to 'required', and change its type. Add 'check' member function.
3978 (riscv_register_feature::register_info::check): Define new member
3979 function.
3980 (riscv_xreg_feature): Change initialisation of 'required' field.
3981 (riscv_freg_feature): Likewise.
3982 (riscv_virtual_feature): Likewise.
3983 (riscv_csr_feature): Likewise.
3984 (riscv_check_tdesc_feature): Take extra parameter, the csr
3985 tdesc_feature, rewrite the function to use the new
3986 riscv_register_feature::register_info::check function.
3987 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3988
3989 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3990
3991 * features/Makefile: Remove all references to the deleted files
3992 below.
3993 * features/riscv/32bit-csr.c: Deleted.
3994 * features/riscv/32bit-csr.xml: Deleted.
3995 * features/riscv/64bit-csr.c: Deleted.
3996 * features/riscv/64bit-csr.xml: Deleted.
3997 * features/riscv/rebuild-csr-xml.sh: Deleted.
3998
3999 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4000
4001 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
4002 whitespace error for declaration of names member variable.
4003 (struct riscv_register_feature): Add new prefer_first_name member
4004 variable, and fix whitespace error in declaration of registers.
4005 (riscv_xreg_feature): Initialize prefer_first_name field.
4006 (riscv_freg_feature): Likewise.
4007 (riscv_virtual_feature): Likewise.
4008 (riscv_csr_feature): Likewise.
4009 (riscv_register_name): Expand on comments. Remove register name
4010 modifications for CSR and virtual registers.
4011
4012 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4013
4014 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
4015 errors.
4016
4017 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4018
4019 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
4020 riscv-opc.h.
4021 (class riscv_pending_register_alias): New class.
4022 (riscv_check_tdesc_feature): Take vector of pending aliases and
4023 populate it as appropriate.
4024 (riscv_setup_register_aliases): Delete.
4025 (riscv_gdbarch_init): Create vector of pending aliases and pass it
4026 to riscv_check_tdesc_feature in all cases. Use the vector to
4027 create the register aliases.
4028
4029 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4030
4031 * sol2-tdep.c (sol2_static_transform_name): Remove.
4032 (sol2_init_abi): Don't register it.
4033 * gdbarch.sh (static_transform_name): Remove.
4034 * gdbarch.c, gdbarch.h: Regenerate.
4035
4036 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
4037 gdbarch_static_transform_name.
4038 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
4039 * stabsread.c (define_symbol) <'X'>: Remove.
4040 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
4041 handling.
4042 <'V'>: Likewise.
4043 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
4044 <'S'>: Remove call to gdbarch_static_transform_name.
4045
4046 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4047
4048 * procfs.c (procfs_pre_trace): New function.
4049 (procfs_target::create_inferior): Pass it to fork_inferior.
4050
4051 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4052
4053 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
4054 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
4055 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
4056 sol2-tdep.o, sparc-sol2-tdep.o.
4057 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
4058 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
4059 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
4060 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
4061
4062 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4063
4064 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
4065 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
4066 Call sol2_init_abi.
4067 Remove calls to set_gdbarch_skip_solib_resolver,
4068 set_gdbarch_core_pid_to_str.
4069 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
4070 (i386_sol2_static_transform_name): Remove.
4071 (i386_sol2_init_abi): Call sol2_init_abi.
4072 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4073 set_gdbarch_static_transform_name,
4074 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4075 Use sol2_sigtramp_p.
4076 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
4077 (sol2_sigtramp_p): New function.
4078 (sol2_static_transform_name): New function.
4079 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
4080 (sol2_init_abi): New function.
4081 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
4082 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
4083 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
4084 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
4085 (sparc_sol2_static_transform_name): Remove.
4086 (sparc32_sol2_init_abi): Call sol2_init_abi.
4087 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4088 set_gdbarch_static_transform_name,
4089 set_gdbarch_skip_solib_resolver,
4090 set_gdbarch_core_pid_to_str.
4091 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
4092 (sparc_sol2_static_transform_name): Remove
4093 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
4094 call sol2_sigtramp_p.
4095 (sparc64_sol2_init_abi): Call sol2_init_abi.
4096 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4097 set_gdbarch_static_transform_name,
4098 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4099
4100 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4101
4102 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
4103 * exec.c (validate_exec_file): If from_tty, set both
4104 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
4105 * symfile.c (symbol_file_add_with_addrs): if always_confirm
4106 and from_tty, unconditionally ask a confirmation.
4107
4108 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4109
4110 * target-descriptions.c (tdesc_architecture_name): Protect against
4111 NULL pointer dereference.
4112 (maint_print_xml_tdesc_cmd): New function.
4113 (_initialize_target_descriptions): Register new 'maint print
4114 xml-tdesc' command and give it the filename completer.
4115 * NEWS: Mention new 'maint print xml-tdesc' command.
4116
4117 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4118
4119 * target-descriptions.c (class tdesc_compatible_info): New class.
4120 (struct target_desc): Change type of compatible vector.
4121 (tdesc_compatible_p): Update for change in type of
4122 target_desc::compatible.
4123 (tdesc_compatible_info_list): New function.
4124 (tdesc_compatible_info_arch_name): New function.
4125 (tdesc_add_compatible): Update for change in type of
4126 target_desc::compatible.
4127 (print_c_tdesc::visit_pre): Likewise.
4128
4129 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4130
4131 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
4132 whitespace to underscore.
4133 (maint_print_c_tdesc_cmd): Use fake filename for target
4134 descriptions that came from the target.
4135 (_initialize_target_descriptions): Add filename command completion
4136 for 'maint print c-tdesc'.
4137
4138 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
4139
4140 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
4141 lines.
4142
4143 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
4144
4145 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
4146 lines.
4147 (dwarf2_find_location_expression): Likewise.
4148 (call_site_parameter_matches): Likewise.
4149 (dwarf2_compile_expr_to_ax): Likewise.
4150 (disassemble_dwarf_expression): Likewise.
4151 (loclist_describe_location): Likewise.
4152
4153 2020-06-23 Pedro Alves <palves@redhat.com>
4154
4155 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
4156 progspace-and-thread.h. Include scoped-mock-context.h instead.
4157 (register_to_value_test): Use scoped_mock_context.
4158 * regcache.c: Include "scoped-mock-context.h".
4159 (cooked_read_test): Don't error out if a target is already pushed.
4160 Use scoped_mock_context. Adjust.
4161 * scoped-mock-context.h: New file.
4162
4163 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4164
4165 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
4166 initializer.
4167 (ada_language::is_string_type_p): New member function.
4168 * c-lang.c (c_language_data): Delete la_is_string_type_p
4169 initializer.
4170 (cplus_language_data): Likewise.
4171 (asm_language_data): Likewise.
4172 (minimal_language_data): Likewise.
4173 * d-lang.c (d_language_data): Likewise.
4174 * f-lang.c (f_is_string_type_p): Delete function, implementation
4175 moved to f_language::is_string_type_p.
4176 (f_language_data): Delete la_is_string_type_p initializer.
4177 (f_language::is_string_type_p): New member function,
4178 implementation from f_is_string_type_p.
4179 * go-lang.c (go_is_string_type_p): Delete function, implementation
4180 moved to go_language::is_string_type_p.
4181 (go_language_data): Delete la_is_string_type_p initializer.
4182 (go_language::is_string_type_p): New member function,
4183 implementation from go_is_string_type_p.
4184 * language.c (language_defn::is_string_type_p): Define new member
4185 function.
4186 (default_is_string_type_p): Make static, add comment copied from
4187 header file.
4188 (unknown_language_data): Delete la_is_string_type_p initializer.
4189 (unknown_language::is_string_type_p): New member function.
4190 (auto_language_data): Delete la_is_string_type_p initializer.
4191 (auto_language::is_string_type_p): New member function.
4192 * language.h (language_data): Delete la_is_string_type_p field.
4193 (language_defn::is_string_type_p): Declare new function.
4194 (default_is_string_type_p): Delete desclaration, move comment to
4195 definition.
4196 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
4197 moved to m2_language::is_string_type_p.
4198 (m2_language_data): Delete la_is_string_type_p initializer.
4199 (m2_language::is_string_type_p): New member function,
4200 implementation from m2_is_string_type_p.
4201 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
4202 initializer.
4203 * opencl-lang.c (opencl_language_data): Likewise.
4204 * p-lang.c (pascal_is_string_type_p): Delete function,
4205 implementation moved to pascal_language::is_string_type_p.
4206 (pascal_language_data): Delete la_is_string_type_p initializer.
4207 (pascal_language::is_string_type_p): New member function,
4208 implementation from pascal_is_string_type_p.
4209 * rust-lang.c (rust_is_string_type_p): Delete function,
4210 implementation moved to rust_language::is_string_type_p.
4211 (rust_language_data): Delete la_is_string_type_p initializer.
4212 (rust_language::is_string_type_p): New member function,
4213 implementation from rust_is_string_type_p.
4214 * valprint.c (val_print_scalar_or_string_type_p): Update call to
4215 is_string_type_p.
4216
4217 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4218
4219 * ada-lang.c (ada_language_data): Delete la_print_typedef
4220 initializer.
4221 (ada_language::print_typedef): New member function.
4222 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
4223 (cplus_language_data): Likewise.
4224 (asm_language_data): Likewise.
4225 (minimal_language_data): Likewise.
4226 * d-lang.c (d_language_data): Likewise.
4227 * f-lang.c (f_language_data): Likewise.
4228 (f_language::print_typedef): New member function.
4229 * go-lang.c (go_language_data): Delete la_print_typedef
4230 initializer.
4231 * language.c (language_defn::print_typedef): Define member
4232 function.
4233 (unknown_language_data): Delete la_print_typedef initializer.
4234 (unknown_language::print_typedef): New member function.
4235 (auto_language_data): Delete la_print_typedef initializer.
4236 (auto_language::print_typedef): New member function.
4237 * language.h (language_data): Delete la_print_typedef field.
4238 (language_defn::print_typedef): Declare new member function.
4239 (LA_PRINT_TYPEDEF): Update call to print_typedef.
4240 (default_print_typedef): Delete declaration.
4241 * m2-lang.c (m2_language_data): Delete la_print_typedef
4242 initializer.
4243 (m2_language::print_typedef): New member function.
4244 * objc-lang.c (objc_language_data): Delete la_print_typedef
4245 initializer.
4246 * opencl-lang.c (opencl_language_data): Likewise.
4247 * p-lang.c (pascal_language_data): Likewise.
4248 (pascal_language::print_typedef): New member function.
4249 * rust-lang.c (rust_print_typedef): Delete function,
4250 implementation moved to rust_language::print_typedef.
4251 (rust_language): Delete la_print_typedef initializer.
4252 (rust_language::print_typedef): New member function,
4253 implementation from rust_print_typedef.
4254 * typeprint.c (default_print_typedef): Delete.
4255
4256 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4257
4258 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
4259 (ada_language::printstr): New member function.
4260 * c-lang.c (c_language_data): Delete la_printstr initializer.
4261 (cplus_language_data): Likewise.
4262 (asm_language_data): Likewise.
4263 (minimal_language_data): Likewise.
4264 * d-lang.c (d_language_data): Likewise.
4265 * f-lang.c (f_printstr): Rename to f_language::printstr.
4266 (f_language_data): Delete la_printstr initializer.
4267 (f_language::printstr): New member function, implementation from
4268 f_printstr.
4269 * go-lang.c (go_language_data): Delete la_printstr initializer.
4270 * language.c (language_defn::printstr): Define new member
4271 function.
4272 (unk_lang_printstr): Delete.
4273 (unknown_language_data): Delete la_printstr initializer.
4274 (unknown_language::printstr): New member function.
4275 (auto_language_data): Delete la_printstr initializer.
4276 (auto_language::printstr): New member function.
4277 * language.h (language_data): Delete la_printstr field.
4278 (language_defn::printstr): Declare new member function.
4279 (LA_PRINT_STRING): Update call to printstr.
4280 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
4281 (m2_language_data): Delete la_printstr initializer.
4282 (m2_language::printstr): New member function, implementation from
4283 m2_printstr.
4284 * objc-lang.c (objc_language_data): Delete la_printstr
4285 initializer.
4286 * opencl-lang.c (opencl_language_data): Likewise.
4287 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
4288 (pascal_language_data): Delete la_printstr initializer.
4289 (pascal_language::printstr): New member function, implementation
4290 from pascal_printstr.
4291 * p-lang.h (pascal_printstr): Delete declaration.
4292 * rust-lang.c (rust_printstr): Update header comment.
4293 (rust_language_data): Delete la_printstr initializer.
4294 (rust_language::printstr): New member function.
4295
4296 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4297
4298 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
4299 (ada_language::printchar): New member function.
4300 * c-lang.c (c_language_data): Delete la_printchar initializer.
4301 (cplus_language_data): Likewise.
4302 (asm_language_data): Likewise.
4303 (minimal_language_data): Likewise.
4304 * d-lang.c (d_language_data): Likewise.
4305 * f-lang.c (f_printchar): Rename to f_language::printchar.
4306 (f_language_data): Delete la_printchar initializer.
4307 (f_language::printchar): New member function, implementation from
4308 f_printchar.
4309 * go-lang.c (go_language_data): Delete la_printchar initializer.
4310 * language.c (unk_lang_printchar): Delete.
4311 (language_defn::printchar): Define new member function.
4312 (unknown_language_data): Delete la_printchar initializer.
4313 (unknown_language::printchar): New member function.
4314 (auto_language_data): Delete la_printchar initializer.
4315 (auto_language::printchar): New member function.
4316 * language.h (language_data): Delete la_printchar field.
4317 (language_defn::printchar): Declare new member function.
4318 (LA_PRINT_CHAR): Update call to printchar.
4319 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
4320 (m2_language::printchar): New member function.
4321 * objc-lang.c (objc_language_data): Delete la_printchar
4322 initializer.
4323 * opencl-lang.c (opencl_language_data): Likewise.
4324 * p-lang.c (pascal_language_data): Delete la_printchar
4325 initializer.
4326 (pascal_language::printchar): New member function.
4327 * rust-lang.c (rust_printchar): Rename to
4328 rust_language::printchar.
4329 (rust_language_data): Delete la_printchar initializer.
4330 (rust_language::printchar): New member function, implementation
4331 from rust_printchar.
4332
4333 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4334
4335 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
4336 (ada_language_data): Delete la_emitchar initializer.
4337 (ada_language::emitchar): New member function, implementation from
4338 emit_char.
4339 * c-lang.c (c_language_data): Delete la_emitchar initializer.
4340 (cplus_language_data): Likewise.
4341 (asm_language_data): Likewise.
4342 (minimal_language_data): Likewise.
4343 * d-lang.c (d_language_data): Likewise.
4344 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
4345 (f_language_data): Delete la_emitchar initializer.
4346 (f_language::emitchar): New member function, implementation from
4347 f_emit_char.
4348 * go-lang.c (go_language_data): Delete la_emitchar initializer.
4349 * language.c (unk_lang_emit_char): Delete.
4350 (language_defn::emitchar): New member function definition.
4351 (unknown_language_data): Delete la_emitchar initializer.
4352 (unknown_language::emitchar): New member function.
4353 (auto_language_data): Delete la_emitchar initializer.
4354 (auto_language::emitchar): New member function.
4355 * language.h (language_data): Delete la_emitchar field.
4356 (language_defn::emitchar): New member field declaration.
4357 (LA_EMIT_CHAR): Update call to emitchar.
4358 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
4359 (m2_language_data): Delete la_emitchar initializer.
4360 (m2_language::emitchar): New member function, implementation from
4361 m2_emit_char.
4362 * objc-lang.c (objc_language_data): Delete la_emitchar
4363 initializer.
4364 * opencl-lang.c (opencl_language_data): Likewise.
4365 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4366 (pascal_language_data): Delete la_emitchar initializer.
4367 (pascal_language::emitchar): New member function, implementation
4368 from pascal_emit_char.
4369 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4370 (rust_language_data): Delete la_emitchar initializer.
4371 (rust_language::emitchar): New member function, implementation
4372 from rust_emitchar.
4373
4374 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4375
4376 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4377 (ada_language_data): Delete la_post_parser initializer.
4378 (ada_language::post_parser): New member function.
4379 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4380 (cplus_language_data): Likewise.
4381 (asm_language_data): Likewise.
4382 (minimal_language_data): Likewise.
4383 * d-lang.c (d_language_data): Likewise.
4384 * f-lang.c (f_language_data): Likewise.
4385 * go-lang.c (go_language_data): Likewise.
4386 * language.c (unknown_language_data): Likewise.
4387 (auto_language_data): Likewise.
4388 * language.h (language_data): Delete la_post_parser field.
4389 (language_defn::post_parser): New member function.
4390 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4391 * objc-lang.c (objc_language_data): Likewise.
4392 * opencl-lang.c (opencl_language_data): Likewise.
4393 * p-lang.c (pascal_language_data): Likewise.
4394 * parse.c (parse_exp_in_context): Update call to post_parser.
4395 (null_post_parser): Delete definition.
4396 * parser-defs.h (null_post_parser): Delete declaration.
4397 * rust-lang.c (rust_language_data): Delete la_post_parser
4398 initializer.
4399
4400 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4401
4402 * ada-lang.c (parse): Rename to ada_language::parser.
4403 (ada_language_data): Delete la_parser initializer.
4404 (ada_language::parser): New member function, implementation from
4405 parse.
4406 * c-lang.c (c_language_data): Delete la_parser initializer.
4407 (cplus_language_data): Likewise.
4408 (asm_language_data): Likewise.
4409 (minimal_language_data): Likewise.
4410 * d-lang.c (d_language_data): Likewise.
4411 (d_language::parser): New member function.
4412 * f-lang.c (f_language_data): Delete la_parser initializer.
4413 (f_language::parser): New member function.
4414 * go-lang.c (go_language_data): Delete la_parser initializer.
4415 (go_language::parser): New member function.
4416 * language.c (unk_lang_parser): Delete.
4417 (language_defn::parser): Define new member function.
4418 (unknown_language_data): Delete la_parser initializer.
4419 (unknown_language::parser): New member function.
4420 (auto_language_data): Delete la_parser initializer.
4421 (auto_language::parser): New member function.
4422 * language.h (language_data): Delete la_parser field.
4423 (language_defn::parser): Declare new member function.
4424 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4425 (m2_language::parser): New member function.
4426 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4427 * opencl-lang.c (opencl_language_data): Likewise.
4428 * p-lang.c (pascal_language_data): Likewise.
4429 (pascal_language::parser): New member function.
4430 * parse.c (parse_exp_in_context): Update call to parser.
4431 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4432 (rust_language::parser): New member function.
4433
4434 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4435
4436 * top.c (print_gdb_configuration): Print --with-python-libdir
4437 configuration value.
4438
4439 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4440
4441 * NEWS: Mention change to the alias command.
4442
4443 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4444
4445 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4446 (alias_command_completer)
4447 (make_alias_options_def_group): New functions.
4448 (alias_opts, alias_option_defs): New struct and array.
4449 (alias_usage_error): Update usage.
4450 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4451 Use option framework.
4452 (_initialize_cli_cmds): Update alias command help.
4453 Update aliases command help.
4454 (show_user):
4455 Add NULL for new default_args lookup_cmd argument.
4456 (valid_command_p): Rename to validate_aliased_command.
4457 Add NULL for new default_args lookup_cmd argument. Verify that the
4458 aliased_command has no default args.
4459 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4460 (lookup_cmd_1, lookup_cmd): New argument default_args.
4461 (add_alias_cmd):
4462 Add NULL for new default_args lookup_cmd argument.
4463 (print_help_for_command): Show default args under the layout
4464 alias some_alias = some_aliased_cmd some_alias_default_arg.
4465 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4466 xfree default_args in destructor.
4467 * cli/cli-script.c (process_next_line, do_define_command):
4468 Add NULL for new default_args lookup_cmd argument.
4469 * command.h: Declare new default_args argument in lookup_cmd
4470 and lookup_cmd_1.
4471 * completer.c (complete_line_internal_1):
4472 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4473 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4474 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4475 Likewise.
4476 * infcmd.c (_initialize_infcmd): Likewise.
4477 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4478 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4479 * python/py-param.c (add_setshow_generic): Likewise.
4480 * remote.c (_initialize_remote): Likewise.
4481 * top.c (execute_command): Prepend default_args if command has some.
4482 (set_verbose):
4483 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4484 * tracepoint.c (validate_actionline, encode_actions_1):
4485 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4486
4487 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4488
4489 * jit.c (jit_read_descriptor): Use bool as the return type.
4490 (jit_breakpoint_re_set_internal): Use bool as the return type.
4491 Invert the return value logic; return true if the jit breakpoint
4492 has been successfully initialized.
4493 (jit_inferior_init): Update the call to
4494 jit_breakpoint_re_set_internal.
4495
4496 2020-06-22 Pedro Alves <palves@redhat.com>
4497
4498 PR gdb/25939
4499 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4500 Use the current inferior instead. Don't return
4501 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4502 wait again.
4503 * sol-thread.c (sol_thread_target::wait): Don't reference
4504 inferior_ptid.
4505 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4506 (sol_update_thread_list_callback): Use the current inferior's pid
4507 instead of inferior_ptid.
4508
4509 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4510
4511 * procfs.c: Cleanup many comments.
4512
4513 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4514 (AFTER_WATCHFLAG): Replace by value.
4515
4516 (MAIN_PROC_NAME_FORMAT): Inline ...
4517 (create_procinfo): ... here.
4518
4519 (procfs_debug_inferior): Remove SYS_exec handling.
4520 (syscall_is_exec): Likewise.
4521 (procfs_set_exec_trap): Likewise.
4522
4523 (syscall_is_lwp_exit): Inline in callers.
4524 (syscall_is_exit): Likewise.
4525 (syscall_is_exec): Likewise.
4526 (syscall_is_lwp_create): Likewise.
4527
4528 (invalidate_cache): Remove #if 0 code.
4529
4530 (make_signal_thread_runnable): Remove.
4531 (procfs_target::resume): Remove #if 0 code.
4532
4533 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4534
4535 PR gdb/25939
4536 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4537 call ...
4538 (procfs_target::create_inferior): ... here.
4539
4540 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4541
4542 * exec.c (validate_exec_file): Ensure the build-id is up to
4543 date by calling reopen_exec_file (that checks file timestamp
4544 to decide to re-read the file).
4545
4546 2020-06-18 Pedro Alves <palves@redhat.com>
4547
4548 PR gdb/25412
4549 * gdbthread.h (delete_thread, delete_thread_silent)
4550 (find_thread_ptid): Update comments.
4551 * thread.c (current_thread_): New global.
4552 (is_current_thread): Move higher, and reimplement.
4553 (inferior_thread): Reimplement.
4554 (set_thread_exited): Use bool. Add assertions.
4555 (add_thread_silent): Simplify thread-reuse handling by always
4556 calling delete_thread.
4557 (delete_thread): Remove intro comment.
4558 (find_thread_ptid): Skip exited threads.
4559 (switch_to_thread_no_regs): Write to current_thread_.
4560 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4561 INFERIOR_PTID. Clear current_thread_.
4562
4563 2020-06-18 Pedro Alves <palves@redhat.com>
4564
4565 * aix-thread.c (pd_update): Use switch_to_thread.
4566
4567 2020-06-18 Pedro Alves <palves@redhat.com>
4568
4569 * ravenscar-thread.c (ravenscar_thread_target): Update.
4570 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4571 (ravenscar_thread_target::add_active_thread): ... this. Don't
4572 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4573 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4574
4575 2020-06-18 Pedro Alves <palves@redhat.com>
4576
4577 * nat/windows-nat.c (current_windows_thread): Remove.
4578 * nat/windows-nat.h (current_windows_thread): Remove.
4579 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4580 Adjust.
4581 (display_selectors): Adjust to fetch the current
4582 windows_thread_info based on inferior_ptid.
4583 (fake_create_process): No longer write to current_windows_thread.
4584 (windows_nat_target::get_windows_debug_event):
4585 Don't set inferior_ptid or current_windows_thread.
4586 (windows_nat_target::wait): Adjust to not rely on
4587 current_windows_thread.
4588 (do_initial_windows_stuff): Now a method of windows_nat_target.
4589 Switch to the last_ptid thread.
4590 (windows_nat_target::attach): Adjust.
4591 (windows_nat_target::detach): Use switch_to_no_thread instead of
4592 writing to inferior_ptid directly.
4593 (windows_nat_target::create_inferior): Adjust.
4594
4595 2020-06-18 Pedro Alves <palves@redhat.com>
4596
4597 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4598
4599 2020-06-18 Pedro Alves <palves@redhat.com>
4600
4601 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4602 after creating it, instead of writing to inferior_ptid. Don't
4603 write to inferior_ptid.
4604
4605 2020-06-18 Pedro Alves <palves@redhat.com>
4606
4607 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4608
4609 2020-06-18 Pedro Alves <palves@redhat.com>
4610
4611 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4612 it, instead of writing to inferior_ptid.
4613
4614 2020-06-18 Pedro Alves <palves@redhat.com>
4615
4616 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4617 to inferior_ptid.
4618
4619 2020-06-18 Pedro Alves <palves@redhat.com>
4620
4621 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4622 instead of writing to inferior_ptid directly.
4623
4624 2020-06-18 Pedro Alves <palves@redhat.com>
4625
4626 * corelow.c (core_target::close): Use switch_to_no_thread instead
4627 of writing to inferior_ptid directly.
4628 (add_to_thread_list, core_target_open): Use switch_to_thread
4629 instead of writing to inferior_ptid directly.
4630
4631 2020-06-18 Pedro Alves <palves@redhat.com>
4632
4633 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4634 inferior_ptid.
4635 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4636 inferior_ptid.
4637 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4638 inferior_ptid directly.
4639 (darwin_nat_target::init_thread_list): Switch to thread, instead
4640 of writing to inferior_ptid.
4641 (darwin_nat_target::attach): Don't write to inferior_ptid.
4642 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4643
4644 2020-06-18 Pedro Alves <palves@redhat.com>
4645
4646 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4647 thread.
4648 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4649 Instead use switch_to_thread.
4650 (gnu_nat_target::detach): Use switch_to_no_thread
4651 instead of writing to inferior_ptid directly. Used passed-in
4652 inferior instead of looking up the inferior by pid.
4653
4654 2020-06-18 Pedro Alves <palves@redhat.com>
4655
4656 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4657 inferior_ptid.
4658
4659 2020-06-18 Pedro Alves <palves@redhat.com>
4660
4661 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4662 inferior_ptid.
4663 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4664 thread.
4665 (nto_procfs_target::detach): Avoid referencing
4666 inferior_ptid. Use switch_to_no_thread instead of writing to
4667 inferior_ptid directly.
4668 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4669 instead of writing to inferior_ptid directly.
4670 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4671 to thread.
4672
4673 2020-06-18 Pedro Alves <palves@redhat.com>
4674
4675 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4676 after creating it, instead of writing to inferior_ptid.
4677 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4678 to inferior_ptid directly.
4679 (gdbsim_target::wait): Don't write to inferior_ptid.
4680
4681 2020-06-18 Pedro Alves <palves@redhat.com>
4682
4683 * remote.c (remote_target::remote_notice_new_inferior): Use
4684 switch_to_thread instead of writing to inferior_ptid directly.
4685 (remote_target::add_current_inferior_and_thread): Use
4686 switch_to_no_thread instead of writing to inferior_ptid directly.
4687 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4688 and switch_to_thread instead of using set_current_inferior or
4689 writing to inferior_ptid directly.
4690
4691 2020-06-18 Pedro Alves <palves@redhat.com>
4692
4693 * tracectf.c (ctf_target_open): Switch to added thread instead of
4694 writing to inferior_ptid directly.
4695 (ctf_target::close): Use switch_to_no_thread instead of writing to
4696 inferior_ptid directly.
4697
4698 2020-06-18 Pedro Alves <palves@redhat.com>
4699
4700 * tracefile-tfile.c (tfile_target_open): Don't write to
4701 inferior_ptid directly, instead switch to added thread.
4702 (tfile_target::close): Use switch_to_no_thread instead of writing
4703 to inferior_ptid directly.
4704
4705 2020-06-18 Pedro Alves <palves@redhat.com>
4706
4707 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4708 (procfs_target::detach): Use switch_to_no_thread
4709 instead of writing to inferior_ptid directly.
4710 (do_attach): Change return type to void. Switch to the added
4711 thread.
4712 (procfs_target::create_inferior): Switch to the added thread.
4713 (procfs_do_thread_registers): Don't write to inferior_ptid.
4714
4715 2020-06-18 Pedro Alves <palves@redhat.com>
4716
4717 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4718 of writing to inferior_ptid.
4719 (scoped_restore_exited_inferior): Delete.
4720 (handle_vfork_child_exec_or_exit): Simplify using
4721 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4722 instead of writing to inferior_ptid.
4723 (THREAD_STOPPED_BY): Delete.
4724 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4725 (thread_stopped_by_hw_breakpoint): Delete.
4726 (save_waitstatus): Use
4727 scoped_restore_current_thread+switch_to_thread, and call
4728 target_stopped_by_watchpoint instead of
4729 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4730 instead of thread_stopped_by_sw_breakpoint, and
4731 target_stopped_by_hw_breakpoint instead of
4732 thread_stopped_by_hw_breakpoint.
4733 (handle_inferior_event)
4734 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4735 inferior_ptid directly, nor
4736 set_current_inferior/set_current_program_space. Use
4737 switch_to_thread / switch_to_inferior_no_thread instead.
4738
4739 2020-06-18 Pedro Alves <palves@redhat.com>
4740
4741 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4742 instead of writing to inferior_ptid.
4743
4744 2020-06-18 Pedro Alves <palves@redhat.com>
4745
4746 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4747 added thread.
4748 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4749 to the added thread.
4750 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4751 instead of writing to inferior_ptid.
4752
4753 2020-06-18 Pedro Alves <palves@redhat.com>
4754
4755 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4756 (register_to_value_test): Mock a program_space too. Heap-allocate
4757 the address space. Don't write to inferior_ptid. Use
4758 switch_to_thread instead.
4759
4760 2020-06-18 Pedro Alves <palves@redhat.com>
4761
4762 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4763 Delete.
4764 (find_signalled_thread()): New, factored out from
4765 linux_make_corefile_notes and adjusted to handle exited threads.
4766 (linux_make_corefile_notes): Adjust to use the new
4767 find_signalled_thread.
4768
4769 2020-06-18 Pedro Alves <palves@redhat.com>
4770
4771 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4772 of saving/restoring inferior_ptid.
4773
4774 2020-06-17 Tom Tromey <tom@tromey.com>
4775
4776 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4777 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4778 declare.
4779 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4780
4781 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
4782
4783 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4784 of partial symtabs.
4785
4786 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4787
4788 * regformats/reg-arm.dat: Remove.
4789 * regformats/reg-bfin.dat: Remove.
4790 * regformats/reg-cris.dat: Remove.
4791 * regformats/reg-crisv32.dat: Remove.
4792 * regformats/reg-m32r.dat: Remove.
4793 * regformats/reg-tilegx.dat: Remove.
4794 * regformats/reg-tilegx32.dat: Remove.
4795
4796 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4797
4798 * features/Makefile (WHICH): Remove arm files.
4799 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4800 * regformats/arm/arm-with-neon.dat: Remove.
4801 * regformats/arm/arm-with-vfpv2.dat: Remove.
4802 * regformats/arm/arm-with-vfpv3.dat: Remove.
4803
4804 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4805
4806 * features/Makefile (XMLTOC): Remove rx.xml.
4807
4808 2020-06-17 Pedro Alves <palves@redhat.com>
4809
4810 * gdbthread.h (thread_control_state) <trap_expected> Update
4811 comments.
4812
4813 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4814
4815 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4816 ada_language::lookup_symbol_nonlocal.
4817 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4818 (ada_language::lookup_symbol_nonlocal): New member function,
4819 implementation from ada_lookup_symbol_nonlocal.
4820 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4821 initializer.
4822 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4823 initializer.
4824 (cplus_language::lookup_symbol_nonlocal): New member function.
4825 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4826 (minimal_language_data) Likewise.
4827 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4828 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4829 initializer.
4830 (d_language::lookup_symbol_nonlocal): New member function.
4831 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4832 initializer.
4833 (f_language::lookup_symbol_nonlocal): New member function.
4834 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4835 initializer.
4836 * language.c (unknown_language_data): Likewise.
4837 (auto_language_data): Likewise.
4838 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4839 field.
4840 (language_defn::lookup_symbol_nonlocal): New member function.
4841 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4842 initializer.
4843 * objc-lang.c (objc_language_data): Likewise.
4844 * opencl-lang.c (opencl_language_data): Likewise.
4845 * p-lang.c (pascal_language_data): Likewise.
4846 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4847 rust_language::lookup_symbol_nonlocal.
4848 (rust_language_data): Delete la_lookup_symbol_nonlocal
4849 initializer.
4850 (rust_language::lookup_symbol_nonlocal): New member function,
4851 implementation from rust_lookup_symbol_nonlocal.
4852 * symtab.c (lookup_symbol_aux): Update call to
4853 lookup_symbol_nonlocal.
4854 (basic_lookup_symbol_nonlocal): Rename to...
4855 (language_defn::lookup_symbol_nonlocal): ...this, and update
4856 header comment. Remove language_defn parameter, and replace with
4857 uses of `this'.
4858 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4859
4860 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4861
4862 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4863 initializer.
4864 (ada_language::value_print_inner): New member function.
4865 * c-lang.c (c_language_data): Delete la_value_print_inner
4866 initializer.
4867 (cplus_language_data): Likewise.
4868 (asm_language_data): Likewise.
4869 (minimal_language_data): Likewise.
4870 * d-lang.c (d_language_data): Likewise.
4871 (d_language::value_print_inner): New member function.
4872 * f-lang.c (f_language_data): Delete la_value_print_inner
4873 initializer.
4874 (f_language::value_print_inner): New member function.
4875 * f-lang.h (f_value_print_innner): Rename to...
4876 (f_value_print_inner): ...this (note spelling of 'inner').
4877 * f-valprint.c (f_value_print_innner): Rename to...
4878 (f_value_print_inner): ...this (note spelling of 'inner').
4879 * go-lang.c (go_language_data): Delete la_value_print_inner
4880 initializer.
4881 (go_language::value_print_inner): New member function.
4882 * language.c (language_defn::value_print_inner): Define new member
4883 function.
4884 (unk_lang_value_print_inner): Delete.
4885 (unknown_language_data): Delete la_value_print_inner initializer.
4886 (unknown_language::value_print_inner): New member function.
4887 (auto_language_data): Delete la_value_print_inner initializer.
4888 (auto_language::value_print_inner): New member function.
4889 * language.h (language_data): Delete la_value_print_inner field.
4890 (language_defn::value_print_inner): Delcare new member function.
4891 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4892 initializer.
4893 (m2_language::value_print_inner): New member function.
4894 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4895 initializer.
4896 * opencl-lang.c (opencl_language_data): Likewise.
4897 * p-lang.c (pascal_language_data): Likewise.
4898 (pascal_language::value_print_inner): New member function.
4899 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4900 initializer.
4901 (rust_language::value_print_inner): New member function.
4902 * valprint.c (do_val_print): Update call to value_print_inner.
4903
4904 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4905
4906 * ada-lang.c (ada_language_data): Delete la_value_print
4907 initializer.
4908 (ada_language::value_print): New member function.
4909 * c-lang.c (c_language_data): Delete la_value_print initializer.
4910 (cplus_language_data): Likewise.
4911 (asm_language_data): Likewise.
4912 (minimal_language_data): Likewise.
4913 * d-lang.c (d_language_data): Likewise.
4914 * f-lang.c (f_language_data): Likewise.
4915 * go-lang.c (go_language_data): Likewise.
4916 * language.c (unk_lang_value_print): Delete.
4917 (language_defn::value_print): Define new member function.
4918 (unknown_language_data): Delete la_value_print initializer.
4919 (unknown_language::value_print): New member function.
4920 (auto_language_data): Delete la_value_print initializer.
4921 (auto_language::value_print): New member function.
4922 * language.h (language_data): Delete la_value_print field.
4923 (language_defn::value_print): Declare new member function.
4924 (LA_VALUE_PRINT): Update call to value_print.
4925 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4926 * objc-lang.c (objc_language_data): Likewise.
4927 * opencl-lang.c (opencl_language_data): Likewise.
4928 * p-lang.c (pascal_language_data): Likewise.
4929 (pascal_language::value_print): New member function.
4930 * rust-lang.c (rust_language_data): Delete la_value_print
4931 initializer.
4932
4933 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4934
4935 * ada-lang.c (ada_watch_location_expression): Rename to
4936 ada_language::watch_location_expression.
4937 (ada_language_data): Delete la_watch_location_expression
4938 initializer.
4939 (ada_language::watch_location_expression): New member function,
4940 implementation from ada_watch_location_expression.
4941 * breakpoint.c (watch_command_1): Update call to
4942 watch_location_expression.
4943 * c-lang.c (c_watch_location_expression): Rename to
4944 language_defn::watch_location_expression.
4945 (c_language_data): Delete la_watch_location_expression
4946 initializer.
4947 (cplus_language_data): Likewise.
4948 (asm_language_data): Likewise.
4949 (minimal_language_data): Likewise.
4950 * c-lang.h (c_watch_location_expression): Delete declaration.
4951 * d-lang.c (d_language_data): Delete la_watch_location_expression
4952 initializer.
4953 * f-lang.c (f_language_data): Likewise.
4954 * go-lang.c (go_language_data): Likewise.
4955 * language.c (language_defn::watch_location_expression): Member
4956 function implementation from c_watch_location_expression.
4957 (unknown_language_data): Delete la_watch_location_expression
4958 initializer.
4959 (auto_language_data): Likewise.
4960 * language.h (language_data): Delete la_watch_location_expression
4961 field.
4962 (language_defn::watch_location_expression): Declare new member
4963 function.
4964 * m2-lang.c (m2_language_data): Delete
4965 la_watch_location_expression initializer.
4966 * objc-lang.c (objc_language_data): Likewise.
4967 * opencl-lang.c (opencl_language_data): Likewise.
4968 * p-lang.c (pascal_language_data): Likewise.
4969 * rust-lang.c (rust_watch_location_expression): Rename to
4970 rust_language::watch_location_expression.
4971 (rust_language_data): Delete la_watch_location_expression
4972 initializer.
4973 (rust_language::watch_location_expression): New member function,
4974 implementation from rust_watch_location_expression.
4975
4976 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4977
4978 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4979 ada_language::collect_symbol_completion_matches.
4980 (ada_language_data): Delete la_collect_symbol_completion_matches
4981 initializer.
4982 (ada_language::collect_symbol_completion_matches): New member
4983 function, implementation from
4984 ada_collect_symbol_completion_matches.
4985 * c-lang.c (c_language_data): Delete
4986 la_collect_symbol_completion_matches initializer.
4987 (cplus_language_data): Likewise.
4988 (asm_language_data): Likewise.
4989 (minimal_language_data): Likewise.
4990 * d-lang.c (d_language_data): Likewise.
4991 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4992 f_language::collect_symbol_completion_matches.
4993 (f_language_data): Delete la_collect_symbol_completion_matches
4994 initializer.
4995 (f_language::collect_symbol_completion_matches) New member
4996 function, implementation from f_collect_symbol_completion_matches.
4997 * go-lang.c (go_language_data): Delete
4998 la_collect_symbol_completion_matches initializer.
4999 * language.c (unknown_language_data): Likewise.
5000 (auto_language_data): Likewise.
5001 * language.h (language_data): Delete
5002 la_collect_symbol_completion_matches field.
5003 (language_defn::collect_symbol_completion_matches): New member
5004 function.
5005 * m2-lang.c (m2_language_data): Delete
5006 la_collect_symbol_completion_matches initializer.
5007 * objc-lang.c (objc_language_data): Likewise.
5008 * opencl-lang.c (opencl_language_data): Likewise.
5009 * p-lang.c (pascal_language_data): Likewise.
5010 * rust-lang.c (rust_language_data): Likewise.
5011 * symtab.c (default_collect_symbol_completion_matches): Delete.
5012 (collect_symbol_completion_matches): Update call to
5013 collect_symbol_completion_matches.
5014 (collect_symbol_completion_matches_type): Likewise.
5015 * symtab.h (default_collect_symbol_completion_matches): Delete
5016 declaration.
5017
5018 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5019
5020 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
5021 (ada_language_data): Delete la_word_break_characters initializer.
5022 (ada_language::word_break_characters): New member function.
5023 * c-lang.c (c_language_data): Delete la_word_break_characters
5024 initializer.
5025 (cplus_language_data): Likewise.
5026 (asm_language_data): Likewise.
5027 (minimal_language_data): Likewise.
5028 * completer.c: Update global comment.
5029 (advance_to_expression_complete_word_point): Update call to
5030 word_break_characters.
5031 (complete_files_symbols): Likewise.
5032 (complete_line_internal_1): Likewise.
5033 (default_completer_handle_brkchars): Likewise.
5034 (skip_quoted_chars): Likewise.
5035 * d-lang.c (d_language_data): Delete la_word_break_characters
5036 initializer.
5037 * f-lang.c (f_word_break_characters): Delete.
5038 (f_language_data): Delete la_word_break_characters initializer.
5039 (f_language::word_break_characters): New member function.
5040 * go-lang.c (go_language_data): Delete la_word_break_characters
5041 initializer.
5042 * language.c (unknown_language_data): Likewise.
5043 (auto_language_data): Likewise.
5044 * language.h (default_word_break_characters): Move declaration to
5045 earlier in the file.
5046 (language_data): Delete la_word_break_characters field.
5047 (language_defn::word_break_characters): New member function.
5048 * m2-lang.c (m2_language_data): Delete la_word_break_characters
5049 initializer.
5050 * objc-lang.c (objc_language_data): Likewise.
5051 * opencl-lang.c (opencl_language_data): Likewise.
5052 * p-lang.c (pascal_language_data): Likewise.
5053 * rust-lang.c (rust_language_data): Likewise.
5054
5055 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5056
5057 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
5058 (ada_language_data): Delete la_get_symbol_name_matcher
5059 initializer.
5060 (language_defn::get_symbol_name_matcher_inner): New member
5061 function.
5062 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
5063 initializer.
5064 (cplus_language_data): Likewise.
5065 (cplus_language::get_symbol_name_matcher_inner): New member
5066 function.
5067 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
5068 (minimal_language_data): Likewise.
5069 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
5070 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
5071 initializer.
5072 * dictionary.c (iter_match_first_hashed): Update call to
5073 get_symbol_name_matcher.
5074 (iter_match_next_hashed): Likewise.
5075 (iter_match_next_linear): Likewise.
5076 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
5077 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
5078 initializer.
5079 (f_language::get_symbol_name_matcher_inner): New member function.
5080 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
5081 initializer.
5082 * language.c (default_symbol_name_matcher): Update header comment,
5083 make static.
5084 (language_defn::get_symbol_name_matcher): New definition.
5085 (language_defn::get_symbol_name_matcher_inner): Likewise.
5086 (get_symbol_name_matcher): Delete.
5087 (unknown_language_data): Delete la_get_symbol_name_matcher
5088 initializer.
5089 (auto_language_data): Likewise.
5090 * language.h (language_data): Delete la_get_symbol_name_matcher
5091 field.
5092 (language_defn::get_symbol_name_matcher): New member function.
5093 (language_defn::get_symbol_name_matcher_inner): Likewise.
5094 (default_symbol_name_matcher): Delete declaration.
5095 * linespec.c (find_methods): Update call to
5096 get_symbol_name_matcher.
5097 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
5098 initializer.
5099 * minsyms.c (lookup_minimal_symbol): Update call to
5100 get_symbol_name_matcher.
5101 (iterate_over_minimal_symbols): Likewise.
5102 * objc-lang.c (objc_language_data): Delete
5103 la_get_symbol_name_matcher initializer.
5104 * opencl-lang.c (opencl_language_data): Likewise.
5105 * p-lang.c (pascal_language_data): Likewise.
5106 * psymtab.c (psymbol_name_matches): Update call to
5107 get_symbol_name_matcher.
5108 * rust-lang.c (rust_language_data): Delete
5109 la_get_symbol_name_matcher initializer.
5110 * symtab.c (symbol_matches_search_name): Update call to
5111 get_symbol_name_matcher.
5112 (compare_symbol_name): Likewise.
5113
5114 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5115
5116 * ada-lang.c (ada_language_data): Delete la_compute_program
5117 initializer.
5118 * c-lang.c (c_language_data): Likewise.
5119 (c_language::compute_program): New member function.
5120 (cplus_language_data): Delete la_compute_program initializer.
5121 (cplus_language::compute_program): New member function.
5122 (asm_language_data): Delete la_compute_program initializer.
5123 (minimal_language_data): Likewise.
5124 * c-lang.h (c_compute_program): Update comment.
5125 (cplus_compute_program): Likewise.
5126 * compile/compile-c-support.c (c_compute_program): Likewise.
5127 (cplus_compute_program): Likewise.
5128 * compile/compile.c (compile_to_object): Update call to
5129 la_compute_program.
5130 * d-lang.c (d_language_data): Delete la_compute_program
5131 initializer.
5132 * f-lang.c (f_language_data): Likewise.
5133 * go-lang.c (go_language_data): Likewise.
5134 * language.c (unknown_language_data): Likewise.
5135 (auto_language_data): Likewise.
5136 * language.h (language_data): Delete la_compute_program field.
5137 (language_defn::compute_program): New member function.
5138 * m2-lang.c (m2_language_data): Delete la_compute_program
5139 initializer.
5140 * objc-lang.c (objc_language_data): Likewise.
5141 * opencl-lang.c (opencl_language_data): Likewise.
5142 * p-lang.c (pascal_language_data): Likewise.
5143 * rust-lang.c (rust_language_data): Likewise.
5144
5145 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5146
5147 * ada-lang.c (ada_language_data) Delete
5148 la_class_name_from_physname initializer.
5149 * c-lang.c (c_language_data): Likewise.
5150 (cplus_language_data): Likewise.
5151 (cplus_language::class_name_from_physname): New member function.
5152 (asm_language_data): Delete la_class_name_from_physname
5153 initializer.
5154 (minimal_language_data): Likewise.
5155 * d-lang.c (d_language_data): Likewise.
5156 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
5157 method on language_defn class.
5158 (guess_full_die_structure_name): Likewise.
5159 * f-lang.c (f_language_data): Delete la_class_name_from_physname
5160 initializer.
5161 * go-lang.c (go_language_data): Likewise.
5162 * language.c (language_class_name_from_physname): Delete.
5163 (unk_lang_class_name): Delete.
5164 (unknown_language_data): Delete la_class_name_from_physname
5165 initializer.
5166 (auto_language_data): Likewise.
5167 * language.h (language_data): Delete la_class_name_from_physname
5168 field.
5169 (language_defn::class_name_from_physname): New function.
5170 (language_class_name_from_physname): Delete declaration.
5171 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
5172 initializer.
5173 * objc-lang.c (objc_language_data): Likewise.
5174 * opencl-lang.c (opencl_language_data): Likewise.
5175 * p-lang.c (pascal_language_data): Likewise.
5176 * rust-lang.c (rust_language_data): Likewise.
5177
5178 2020-06-16 Tom Tromey <tom@tromey.com>
5179
5180 * tui/tui-data.h (STATUS_NAME): New macro.
5181 * tui/tui-layout.c (tui_remove_some_windows)
5182 (initialize_known_windows, tui_register_window)
5183 (tui_layout_split::remove_windows, initialize_layouts)
5184 (tui_new_layout_command): Don't use hard-coded window names.
5185
5186 2020-06-16 Tom Tromey <tom@tromey.com>
5187
5188 PR tui/25348:
5189 * tui/tui.c (tui_ensure_readline_initialized): Rename from
5190 tui_initialize_readline. Only run once. Call rl_initialize.
5191 * tui/tui.h (tui_ensure_readline_initialized): Rename from
5192 tui_initialize_readline.
5193 * tui/tui-io.c (tui_setup_io): Call
5194 tui_ensure_readline_initialized.
5195 * tui/tui-interp.c (tui_interp::init): Update.
5196
5197 2020-06-16 Tom Tromey <tom@tromey.com>
5198
5199 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
5200 Also preserve the status window.
5201
5202 2020-06-16 Tom Tromey <tom@tromey.com>
5203
5204 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
5205 where m_window==nullptr.
5206
5207 2020-06-15 Tom Tromey <tromey@adacore.com>
5208
5209 * windows-nat.c (windows_nat::handle_output_debug_string):
5210 Update.
5211 (windows_nat::handle_ms_vc_exception): Update.
5212 * target.h (target_read_string): Change API.
5213 * target.c (target_read_string): Change API.
5214 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
5215 Update.
5216 * solib-frv.c (frv_current_sos): Update.
5217 * solib-dsbt.c (dsbt_current_sos): Update.
5218 * solib-darwin.c (darwin_current_sos): Update.
5219 * linux-thread-db.c (inferior_has_bug): Update.
5220 * expprint.c (print_subexp_standard): Update.
5221 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
5222 (ada_exception_message_1): Update.
5223
5224 2020-06-15 Tom Tromey <tromey@adacore.com>
5225
5226 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
5227
5228 2020-06-15 Tom Tromey <tromey@adacore.com>
5229
5230 * valprint.c (read_string): Update comment.
5231 * target.c (MIN): Remove.
5232 (target_read_string): Rewrite.
5233
5234 2020-06-15 Tom Tromey <tromey@adacore.com>
5235
5236 * corefile.c (read_memory_string): Remove.
5237 * ada-valprint.c (ada_value_print_ptr): Update.
5238 * ada-lang.h (ada_tag_name): Change return type.
5239 * ada-lang.c (type_from_tag): Update.
5240 (ada_tag_name_from_tsd): Change return type. Use
5241 target_read_string.
5242 (ada_tag_name): Likewise.
5243 * gdbcore.h (read_memory_string): Don't declare.
5244
5245 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
5246
5247 * symtab.c (rbreak_command): Ignore Windows drive colon.
5248
5249 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
5250
5251 * NEWS: Mention removed GDBserver host support.
5252
5253 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
5254
5255 * features/riscv/rebuild-csr-xml.sh: Updated.
5256
5257 2020-06-11 Tom Tromey <tom@tromey.com>
5258
5259 PR gdb/18318:
5260 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
5261
5262 2020-06-09 Jonny Grant <jg@jguk.org>
5263 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
5264
5265 * main.c (captured_main_1): Don't print new line after help.
5266 (print_gdb_help): add mailing list and IRC channel information
5267 to --help. Add new lines between items in the footer. Remove
5268 quotes around bug url.
5269
5270 2020-06-11 Keith Seitz <keiths@redhat.com>
5271
5272 PR gdb/21356
5273 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
5274 Resolve typedefs for type length calculations.
5275
5276 2020-06-10 Tom de Vries <tdevries@suse.de>
5277
5278 PR ada/24713
5279 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
5280 (write_psymbols): Enable .gdb_index for ada.
5281 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
5282 ada.
5283
5284 2020-06-10 Tom de Vries <tdevries@suse.de>
5285
5286 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
5287 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
5288 namei" instead of "const char *name" argument.
5289 (dw2_map_matching_symbols): Use "offset_type namei" variant of
5290 dw2_symtab_iter_init.
5291
5292 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5293
5294 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
5295 to use type::field and field::type instead.
5296
5297 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5298
5299 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
5300 to use field::type instead.
5301
5302 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5303
5304 * gdbtypes.h (struct field) <type, set_type>: New methods.
5305 Rename `type` field to...
5306 <m_type>: ... this. Change references throughout to use type or
5307 set_type methods.
5308 (FIELD_TYPE): Use field::type. Change call sites that modify
5309 the field's type to use field::set_type instead.
5310
5311 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5312
5313 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
5314 to use type::index_type instead.
5315
5316 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5317
5318 * gdbtypes.h (struct type) <index_type, set_index_type>: New
5319 methods.
5320 (TYPE_INDEX_TYPE): Use type::index_type.
5321 * gdbtypes.c (create_array_type_with_stride): Likewise.
5322
5323 2020-06-07 Tom Tromey <tom@tromey.com>
5324
5325 * valprint.c (generic_val_print_float): Remove "embedded_offset"
5326 parameter.
5327 (generic_value_print): Update.
5328
5329 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5330
5331 Revert commit 982a38f60b0.
5332 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
5333
5334 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5335
5336 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
5337 avoid use after free.
5338
5339 2020-06-05 Tom de Vries <tdevries@suse.de>
5340
5341 * NEWS: Fix typos.
5342
5343 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
5344
5345 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
5346 the per_bfd object.
5347 (dwarf2_read_debug_names): Likewise.
5348 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
5349 object when re-using a per_bfd object with an index.
5350
5351 2020-06-03 Tom de Vries <tdevries@suse.de>
5352
5353 PR symtab/26046
5354 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
5355 children for C++.
5356 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
5357 DW_TAG_subprogram.
5358
5359 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5360
5361 * ada-lang.c (ada_language_data): Delete skip_trampoline
5362 initializer.
5363 * c-lang.c (c_language_data): Likewise.
5364 (cplus_language_data): Likewise.
5365 (cplus_language::skip_trampoline): New member function.
5366 (asm_language_data): Delete skip_trampoline initializer.
5367 (minimal_language_data): Likewise.
5368 * d-lang.c (d_language_data): Likewise.
5369 * f-lang.c (f_language_data): Likewise.
5370 * go-lang.c (go_language_data): Likewise.
5371 * language.c (unk_lang_trampoline): Delete function.
5372 (skip_language_trampoline): Update.
5373 (unknown_language_data): Delete skip_trampoline initializer.
5374 (auto_language_data): Likewise.
5375 * language.h (language_data): Delete skip_trampoline field.
5376 (language_defn::skip_trampoline): New function.
5377 * m2-lang.c (m2_language_data): Delete skip_trampoline
5378 initializer.
5379 * objc-lang.c (objc_skip_trampoline): Delete function, move
5380 implementation to objc_language::skip_trampoline.
5381 (objc_language_data): Delete skip_trampoline initializer.
5382 (objc_language::skip_trampoline): New member function with
5383 implementation from objc_skip_trampoline.
5384 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5385 initializer.
5386 * p-lang.c (pascal_language_data): Likewise.
5387 * rust-lang.c (rust_language_data): Likewise.
5388
5389 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5390
5391 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5392 (ada_language::demangle): New member function.
5393 * c-lang.c (c_language_data): Delete la_demangle initializer.
5394 (cplus_language_data): Delete la_demangle initializer.
5395 (cplus_language::demangle): New member function.
5396 (asm_language_data): Delete la_demangle initializer.
5397 (minimal_language_data): Delete la_demangle initializer.
5398 * d-lang.c (d_language_data): Delete la_demangle initializer.
5399 (d_language::demangle): New member function.
5400 * f-lang.c (f_language_data): Delete la_demangle initializer.
5401 (f_language::demangle): New member function.
5402 * go-lang.c (go_language_data): Delete la_demangle initializer.
5403 (go_language::demangle): New member function.
5404 * language.c (language_demangle): Update.
5405 (unk_lang_demangle): Delete.
5406 (unknown_language_data): Delete la_demangle initializer.
5407 (unknown_language::demangle): New member function.
5408 (auto_language_data): Delete la_demangle initializer.
5409 (auto_language::demangle): New member function.
5410 * language.h (language_data): Delete la_demangle field.
5411 (language_defn::demangle): New function.
5412 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5413 * objc-lang.c (objc_language_data): Delete la_demangle
5414 initializer.
5415 (objc_language::demangle): New member function.
5416 * opencl-lang.c (opencl_language_data): Delete la_demangle
5417 initializer.
5418 * p-lang.c (pascal_language_data): Likewise.
5419 * rust-lang.c (rust_language_data): Likewise.
5420 (rust_language::demangle): New member function.
5421
5422 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5423
5424 * ada-lang.c (ada_language_data): Delete la_print_type
5425 initializer.
5426 (ada_language::print_type): New member function.
5427 * c-lang.c (c_language_data): Delete la_print_type initializer.
5428 (c_language::print_type): New member function.
5429 (cplus_language_data): Delete la_print_type initializer.
5430 (cplus_language::print_type): New member function.
5431 (asm_language_data): Delete la_print_type initializer.
5432 (asm_language::print_type): New member function.
5433 (minimal_language_data): Delete la_print_type initializer.
5434 (minimal_language::print_type): New member function.
5435 * d-lang.c (d_language_data): Delete la_print_type initializer.
5436 (d_language::print_type): New member function.
5437 * f-lang.c (f_language_data): Delete la_print_type initializer.
5438 (f_language::print_type): New member function.
5439 * go-lang.c (go_language_data): Delete la_print_type initializer.
5440 (go_language::print_type): New member function.
5441 * language.c (unk_lang_print_type): Delete.
5442 (unknown_language_data): Delete la_print_type initializer.
5443 (unknown_language::print_type): New member function.
5444 (auto_language_data): Delete la_print_type initializer.
5445 (auto_language::print_type): New member function.
5446 * language.h (language_data): Delete la_print_type field.
5447 (language_defn::print_type): New function.
5448 (LA_PRINT_TYPE): Update.
5449 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5450 (m2_language::print_type): New member function.
5451 * objc-lang.c (objc_language_data): Delete la_print_type
5452 initializer.
5453 (objc_language::print_type): New member function.
5454 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5455 to opencl_language::print_type.
5456 (opencl_language_data): Delete la_print_type initializer.
5457 (opencl_language::print_type): New member function, implementation
5458 from opencl_print_type.
5459 * p-lang.c (pascal_language_data): Delete la_print_type
5460 initializer.
5461 (pascal_language::print_type): New member function.
5462 * rust-lang.c (rust_print_type): Delete, implementation moved to
5463 rust_language::print_type.
5464 (rust_language_data): Delete la_print_type initializer.
5465 (rust_language::print_type): New member function, implementation
5466 from rust_print_type.
5467
5468 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5469
5470 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5471 implementation moves to...
5472 (ada_language::sniff_from_mangled_name): ...here. Update return
5473 type.
5474 (ada_language_data): Delete la_sniff_from_mangled_name
5475 initializer.
5476 * c-lang.c (c_language_data): Likewise.
5477 (cplus_language_data): Likewise.
5478 (cplus_language::sniff_from_mangled_name): New member function,
5479 implementation taken from gdb_sniff_from_mangled_name.
5480 (asm_language_data): Delete la_sniff_from_mangled_name
5481 initializer.
5482 (minimal_language_data): Likewise.
5483 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5484 implementation moves to cplus_language::sniff_from_mangled_name.
5485 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5486 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5487 moves to...
5488 (d_language::sniff_from_mangled_name): ...here.
5489 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5490 * f-lang.c (f_language_data): Likewise.
5491 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5492 moves to...
5493 (go_language::sniff_from_mangled_name): ...here.
5494 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5495 * language.c (language_sniff_from_mangled_name): Delete.
5496 (unknown_language_data): Delete la_sniff_from_mangled_name
5497 initializer.
5498 (auto_language_data): Likewise.
5499 * language.h (language_data): Delete la_sniff_from_mangled_name
5500 field.
5501 (language_defn::sniff_from_mangled_name): New function.
5502 (language_sniff_from_mangled_name): Delete declaration.
5503 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5504 field.
5505 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5506 implementation moves to...
5507 (objc_language::sniff_from_mangled_name): ...here.
5508 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5509 * opencl-lang.c (opencl_language_data): Likewise.
5510 * p-lang.c (pascal_language_data): Likewise.
5511 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5512 implementation moves to...
5513 (rust_language::sniff_from_mangled_name): ...here.
5514 (rust_language_data): Delete la_sniff_from_mangled_name
5515 initializer.
5516 * symtab.c (symbol_find_demangled_name): Call
5517 sniff_from_mangled_name member function.
5518
5519 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5520
5521 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5522 initializer.
5523 * c-lang.c (c_language_data): Likewise.
5524 (cplus_language_data): Likewise.
5525 (cplus_language::search_name_hash): New member function.
5526 (asm_language_data): Delete la_search_name_hash initializer.
5527 (minimal_language_data): Likewise.
5528 * d-lang.c (d_language_data): Likewise.
5529 * dictionary.c (default_search_name_hash): Rename to...
5530 (language_defn::search_name_hash): ...this.
5531 * f-lang.c (f_language_data): Likewise.
5532 (f_language::search_name_hash): New member function.
5533 * go-lang.c (go_language_data): Delete la_search_name_hash
5534 initializer.
5535 * language.c (unknown_language_data): Likewise.
5536 (auto_language_data): Likewise.
5537 * language.h (struct language_data): Delete la_search_name_hash
5538 field.
5539 (language_defn::search_name_hash): Declare new member function.
5540 (default_search_name_hash): Delete declaration.
5541 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5542 initializer.
5543 * objc-lang.c (objc_language_data): Likewise.
5544 * opencl-lang.c (opencl_language_data): Likewise.
5545 * p-lang.c (pascal_language_data): Likewise.
5546 * rust-lang.c (rust_language_data): Likewise.
5547 * symtab.c (search_name_hash): Update call.
5548
5549 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5550
5551 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5552 initializer.
5553 * c-lang.c (class compile_instance): Declare.
5554 (c_language_data): Delete la_get_compile_instance initializer.
5555 (c_language::get_compile_instance): New member function.
5556 (cplus_language_data): Delete la_get_compile_instance initializer.
5557 (cplus_language::get_compile_instance): New member function.
5558 (asm_language_data): Delete la_get_compile_instance initializer.
5559 (minimal_language_data): Likewise.
5560 * c-lang.h (c_get_compile_context): Update comment.
5561 (cplus_get_compile_context): Update comment.
5562 * compile/compile.c (compile_to_object): Update calls, don't rely
5563 on function pointer being NULL.
5564 * d-lang.c (d_language_data): Delete la_get_compile_instance
5565 initializer.
5566 * f-lang.c (f_language_data): Likewise.
5567 * go-lang.c (go_language_data): Likewise.
5568 * language.c (unknown_language_data): Likewise.
5569 (auto_language_data): Likewise.
5570 * language.h (language_data): Delete la_get_compile_instance field.
5571 (language_defn::get_compile_instance): New member function.
5572 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5573 initializer.
5574 * objc-lang.c (objc_language_data): Likewise.
5575 * opencl-lang.c (opencl_language_data): Likewise.
5576 * p-lang.c (pascal_language_data): Likewise.
5577 * rust-lang.c (rust_language_data): Likewise.
5578
5579 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5580
5581 * ada-lang.c (ada_add_all_symbols): Update comment.
5582 (ada_iterate_over_symbols): Delete, move implementation to...
5583 (ada_language::iterate_over_symbols): ...here, a new member
5584 function, rewrite to use range based for loop.
5585 (ada_language_data): Delete la_iterate_over_symbols initializer.
5586 * c-lang.c (c_language_data): Likewise.
5587 (cplus_language_data): Likewise.
5588 (asm_language_data): Likewise.
5589 (minimal_language_data): Likewise.
5590 * d-lang.c (d_language_data): Likewise.
5591 * f-lang.c (f_language_data): Likewise.
5592 * go-lang.c (go_language_data): Likewise.
5593 * language.c (unknown_language_data): Likewise.
5594 (auto_language_data): Likewise.
5595 * language.h (language_data): Delete la_iterate_over_symbols field.
5596 (language_defn::iterate_over_symbols): New member function.
5597 (LA_ITERATE_OVER_SYMBOLS): Update.
5598 * linespec.c (iterate_over_all_matching_symtabs): Update.
5599 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5600 initializer.
5601 * objc-lang.c (objc_language_data): Likewise.
5602 * opencl-lang.c (opencl_language_data): Likewise.
5603 * p-lang.c (pascal_language_data): Likewise.
5604 * rust-lang.c (rust_language_data): Likewise.
5605
5606 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5607
5608 * ada-lang.c (ada_language_data): Delete
5609 la_lookup_transparent_type initializer.
5610 * c-lang.c (c_language_data): Likewise.
5611 (cplus_language_data): Likewise.
5612 (cplus_language::lookup_transparent_type): New member function.
5613 (asm_language_data): Delete la_lookup_transparent_type
5614 initializer.
5615 (minimal_language_data): Likewise.
5616 * d-lang.c (d_language_data): Likewise.
5617 * f-lang.c (f_language_data): Likewise.
5618 * go-lang.c (go_language_data): Likewise.
5619 * language.c (unknown_language_data): Likewise.
5620 (auto_language_data): Likewise.
5621 * language.h (struct language_data): Delete
5622 la_lookup_transparent_type field.
5623 (language_defn::lookup_transparent_type): New member function.
5624 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5625 initializer.
5626 * objc-lang.c (objc_language_data): Likewise.
5627 * opencl-lang.c (opencl_language_data): Likewise.
5628 * p-lang.c (pascal_language_data): Likewise.
5629 * rust-lang.c (rust_language_data): Likewise.
5630 * symtab.c (symbol_matches_domain): Update call.
5631
5632 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5633
5634 * ada-lang.c (ada_language_arch_info): Delete function, move
5635 implementation to...
5636 (ada_language::language_arch_info): ...here, a new member
5637 function.
5638 (ada_language_data): Delete la_language_arch_info.
5639 * c-lang.c (c_language_data): Likewise.
5640 (c_language::language_arch_info): New member function.
5641 (cplus_language_arch_info): Delete function, move
5642 implementation to...
5643 (cplus_language::language_arch_info): ...here, a new member
5644 function.
5645 (cplus_language_data): Delete la_language_arch_info.
5646 (asm_language_data): Likewise.
5647 (asm_language::language_arch_info): New member function.
5648 (minimal_language_data): Delete la_language_arch_info.
5649 (minimal_language::language_arch_info): New member function.
5650 * d-lang.c (d_language_arch_info): Delete function, move
5651 implementation to...
5652 (d_language::language_arch_info): ...here, a new member
5653 function.
5654 (d_language_data): Delete la_language_arch_info.
5655 * f-lang.c (f_language_arch_info): Delete function, move
5656 implementation to...
5657 (f_language::language_arch_info): ...here, a new member
5658 function.
5659 (f_language_data): Delete la_language_arch_info.
5660 * go-lang.c (go_language_arch_info): Delete function, move
5661 implementation to...
5662 (go_language::language_arch_info): ...here, a new member
5663 function.
5664 (go_language_data): Delete la_language_arch_info.
5665 * language.c (unknown_language_data): Likewise.
5666 (unknown_language::language_arch_info): New member function.
5667 (auto_language_data): Delete la_language_arch_info.
5668 (auto_language::language_arch_info): New member function.
5669 (language_gdbarch_post_init): Update call to
5670 la_language_arch_info.
5671 * language.h (language_data): Delete la_language_arch_info
5672 function pointer.
5673 (language_defn::language_arch_info): New function.
5674 * m2-lang.c (m2_language_arch_info): Delete function, move
5675 implementation to...
5676 (m2_language::language_arch_info): ...here, a new member
5677 function.
5678 (m2_language_data): Delete la_language_arch_info.
5679 * objc-lang.c (objc_language_arch_info): Delete function, move
5680 implementation to...
5681 (objc_language::language_arch_info): ...here, a new member
5682 function.
5683 (objc_language_data): Delete la_language_arch_info.
5684 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5685 implementation to...
5686 (opencl_language::language_arch_info): ...here, a new member
5687 function.
5688 (opencl_language_data): Delete la_language_arch_info.
5689 * p-lang.c (pascal_language_arch_info): Delete function, move
5690 implementation to...
5691 (pascal_language::language_arch_info): ...here, a new member
5692 function.
5693 (pascal_language_data): Delete la_language_arch_info.
5694 * rust-lang.c (rust_language_arch_info): Delete function, move
5695 implementation to...
5696 (rust_language::language_arch_info): ...here, a new member
5697 function.
5698 (rust_language_data): Delete la_language_arch_info.
5699
5700 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5701
5702 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5703 initializer.
5704 * c-lang.c (c_language_data): Likewise.
5705 (cplus_language_data): Likewise.
5706 (cplus_language::pass_by_reference_info): New method.
5707 (asm_language_data): Delete la_pass_by_reference initializer.
5708 (minimal_language_data): Likewise.
5709 * cp-abi.c (cp_pass_by_reference): Remove use of
5710 default_pass_by_reference.
5711 * d-lang.c (d_language_data): Likewise.
5712 * f-lang.c (f_language_data): Likewise.
5713 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5714 default_pass_by_reference.
5715 * go-lang.c (go_language_data): Likewise.
5716 * language.c (language_pass_by_reference): Update.
5717 (default_pass_by_reference): Delete.
5718 (unknown_language_data): Delete la_pass_by_reference
5719 initializer.
5720 (auto_language_data): Likewise.
5721 * language.h (struct language_data): Delete la_pass_by_reference
5722 field.
5723 (language_defn::pass_by_reference_info): New member function.
5724 (default_pass_by_reference): Delete declaration.
5725 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5726 initializer.
5727 * objc-lang.c (objc_language_data): Likewise.
5728 * opencl-lang.c (opencl_language_data): Likewise.
5729 * p-lang.c (pascal_language_data): Likewise.
5730 * rust-lang.c (rust_language_data): Likewise.
5731
5732 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5733
5734 * ada-lang.c (ada_read_var_value): Delete function, move
5735 implementation to...
5736 (ada_language::read_var_value): ...here.
5737 (ada_language_data): Delete la_read_var_value initializer.
5738 * c-lang.c (c_language_data): Likewise.
5739 (cplus_language_data): Likewise.
5740 (minimal_language_data): Likewise.
5741 * d-lang.c (d_language_data): Likewise.
5742 * f-lang.c (f_language_data): Likewise.
5743 * findvar.c (default_read_var_value): Rename to...
5744 (language_defn::read_var_value): ...this.
5745 * findvar.c (read_var_value): Update header comment, and change to
5746 call member function instead of function pointer.
5747 * go-lang.c (go_language_data): Likewise.
5748 * language.c (unknown_language_data): Delete la_read_var_value
5749 initializer.
5750 (auto_language_data): Likewise.
5751 * language.h (struct language_data): Delete la_read_var_value
5752 field.
5753 (language_defn::read_var_value): New member function.
5754 (default_read_var_value): Delete declaration.
5755 * m2-lang.c (m2_language_data): Delete la_read_var_value
5756 initializer.
5757 * objc-lang.c (objc_language_data): Likewise.
5758 * opencl-lang.c (opencl_language_data): Likewise.
5759 * p-lang.c (pascal_language_data): Likewise.
5760 * rust-lang.c (rust_language_data): Likewise.
5761 * value.h (default_read_var_value): Delete declaration.
5762
5763 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5764
5765 * ada-lang.c (ada_print_array_index): Delete function, move
5766 implementation to...
5767 (ada_language::print_array_index): ...here.
5768 (ada_language_data): Delete la_print_array_index initializer.
5769 * c-lang.c (c_language_data): Likewise.
5770 (cplus_language_data): Likewise.
5771 (minimal_language_data): Likewise.
5772 * d-lang.c (d_language_data): Likewise.
5773 * f-lang.c (f_language_data): Likewise.
5774 * go-lang.c (go_language_data): Likewise.
5775 * language.c (default_print_array_index): Delete function, move
5776 implementation to...
5777 (language_defn::print_array_index): ...here.
5778 (unknown_language_data): Delete la_print_array_index initializer.
5779 (auto_language_data): Likewise.
5780 * language.h (struct language_data): Delete la_print_array_index
5781 field.
5782 (language_defn::print_array_index): New member function.
5783 (LA_PRINT_ARRAY_INDEX): Update.
5784 (default_print_array_index): Delete declaration.
5785 * m2-lang.c (m2_language_data): Delete la_print_array_index
5786 initializer.
5787 * objc-lang.c (objc_language_data): Likewise.
5788 * opencl-lang.c (opencl_language_data): Likewise.
5789 * p-lang.c (pascal_language_data): Likewise.
5790 * rust-lang.c (rust_language_data): Likewise.
5791
5792 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5793
5794 * gdb/ada-lang.c (ada_language_defn): Convert to...
5795 (ada_language_data): ...this.
5796 (class ada_language): New class.
5797 (ada_language_defn): New static global.
5798 * gdb/c-lang.c (c_language_defn): Convert to...
5799 (c_language_data): ...this.
5800 (class c_language): New class.
5801 (c_language_defn): New static global.
5802 (cplus_language_defn): Convert to...
5803 (cplus_language_data): ...this.
5804 (class cplus_language): New class.
5805 (cplus_language_defn): New static global.
5806 (asm_language_defn): Convert to...
5807 (asm_language_data): ...this.
5808 (class asm_language): New class.
5809 (asm_language_defn): New static global.
5810 (minimal_language_defn): Convert to...
5811 (minimal_language_data): ...this.
5812 (class minimal_language): New class.
5813 (minimal_language_defn): New static global.
5814 * gdb/d-lang.c (d_language_defn): Convert to...
5815 (d_language_data): ...this.
5816 (class d_language): New class.
5817 (d_language_defn): New static global.
5818 * gdb/f-lang.c (f_language_defn): Convert to...
5819 (f_language_data): ...this.
5820 (class f_language): New class.
5821 (f_language_defn): New static global.
5822 * gdb/go-lang.c (go_language_defn): Convert to...
5823 (go_language_data): ...this.
5824 (class go_language): New class.
5825 (go_language_defn): New static global.
5826 * gdb/language.c (unknown_language_defn): Remove declaration.
5827 (current_language): Initialize to nullptr, real initialization is
5828 moved to _initialize_language.
5829 (languages): Delete global.
5830 (language_defn::languages): Define.
5831 (set_language_command): Use language_defn::languages.
5832 (set_language): Likewise.
5833 (range_error): Likewise.
5834 (language_enum): Likewise.
5835 (language_def): Likewise.
5836 (add_set_language_command): Use language_def::languages for the
5837 language list, and language_def to lookup language pointers.
5838 (skip_language_trampoline): Use language_defn::languages.
5839 (unknown_language_defn): Convert to...
5840 (unknown_language_data): ...this.
5841 (class unknown_language): New class.
5842 (unknown_language_defn): New static global.
5843 (auto_language_defn): Convert to...
5844 (auto_language_data): ...this.
5845 (class auto_language): New class.
5846 (auto_language_defn): New static global.
5847 (language_gdbarch_post_init): Use language_defn::languages.
5848 (_initialize_language): Initialize current_language.
5849 * gdb/language.h (struct language_defn): Rename to...
5850 (struct language_data): ...this.
5851 (struct language_defn): New.
5852 (auto_language_defn): Delete.
5853 (unknown_language_defn): Delete.
5854 (minimal_language_defn): Delete.
5855 (ada_language_defn): Delete.
5856 (asm_language_defn): Delete.
5857 (c_language_defn): Delete.
5858 (cplus_language_defn): Delete.
5859 (d_language_defn): Delete.
5860 (f_language_defn): Delete.
5861 (go_language_defn): Delete.
5862 (m2_language_defn): Delete.
5863 (objc_language_defn): Delete.
5864 (opencl_language_defn): Delete.
5865 (pascal_language_defn): Delete.
5866 (rust_language_defn): Delete.
5867 * gdb/m2-lang.c (m2_language_defn): Convert to...
5868 (m2_language_data): ...this.
5869 (class m2_language): New class.
5870 (m2_language_defn): New static global.
5871 * gdb/objc-lang.c (objc_language_defn): Convert to...
5872 (objc_language_data): ...this.
5873 (class objc_language): New class.
5874 (objc_language_defn): New static global.
5875 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5876 (opencl_language_data): ...this.
5877 (class opencl_language): New class.
5878 (opencl_language_defn): New static global.
5879 * gdb/p-lang.c (pascal_language_defn): Convert to...
5880 (pascal_language_data): ...this.
5881 (class pascal_language): New class.
5882 (pascal_language_defn): New static global.
5883 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5884 language pointer, update comment format.
5885 * gdb/rust-lang.c (rust_language_defn): Convert to...
5886 (rust_language_data): ...this.
5887 (class rust_language): New class.
5888 (rust_language_defn): New static global.
5889
5890 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5891
5892 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5893 member variable.
5894 <m_stmt_at_address>: New member variable.
5895 (lnp_state_machine::record_line): Don't record some lines, update
5896 tracking of is_stmt at the same address.
5897 (lnp_state_machine::lnp_state_machine): Initialise new member
5898 variables.
5899
5900 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5901
5902 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5903 "-include gnu-nat-mig.h".
5904 * gnu-nat-mig.h: New file.
5905 * gnu-nat.c: Include "gnu-nat-mig.h".
5906 (exc_server, msg_reply_server, notify_server,
5907 process_reply_server): Remove declarations.
5908
5909 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5910
5911 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5912 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5913 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5914 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5915 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5916 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5917 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5918 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5919 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5920 to gnu_nat_target class.
5921 * gnu-nat.c: Likewise.
5922 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5923 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5924 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5925 object.
5926 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5927 instead of `gnu_target'.
5928
5929 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5930
5931 * i386-gnu-tdep.c: Include "gdbcore.h"
5932 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5933 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5934 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5935 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5936 i386_gnu_sigcontext_addr): New functions
5937 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5938 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5939 tdep.
5940
5941 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5942
5943 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5944 before fork_inferior call. Avoid calling it if target_is_pushed returns
5945 true.
5946
5947 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5948
5949 * gnu-nat.h (gnu_target): New variable declaration.
5950 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5951 gnu_target.
5952 * gnu-nat.c (gnu_target): New variable.
5953 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5954 add_thread_silent, and add_thread calls.
5955 (gnu_nat_target::create_inferior): Pass gnu_target to
5956 add_thread_silent, thread_change_ptid call.
5957 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5958 call.
5959
5960 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5961
5962 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5963 (gnu_nat_target::find_memory_regions): Remove unused
5964 `old_address' variable.
5965
5966 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5967
5968 * gnu-nat.c: Include "gdbarch.h".
5969
5970 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5971
5972 * reply_mig_hack.awk (Error return): Cast function through
5973 void *, to bypass compiler function call check.
5974
5975 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5976
5977 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5978 $(srcdir)/reply_mig_hack.awk.
5979
5980 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5981
5982 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5983
5984 2020-05-30 Jonny Grant <jg@jguk.org>
5985
5986 * configure.ac (ACX_BUGURL): change bug URL to https.
5987
5988 2020-05-30 Pedro Alves <palves@redhat.com>
5989
5990 * cp-support.c (replace_typedefs_template): New.
5991 (replace_typedefs_qualified_name): Handle
5992 DEMANGLE_COMPONENT_TEMPLATE.
5993
5994 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
5995
5996 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5997 dwarf2/index-cache.h, dwarf2/index-write.c,
5998 dwarf2/index-write.h, dwarf2/line-header.c,
5999 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
6000 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
6001 variables and fields from `dwarf2_per_objfile` to just
6002 `per_objfile` throughout.
6003
6004 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
6005
6006 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6007 <push_dwarf_reg_entry_value>: Add comment.
6008
6009 2020-05-28 Kevin Buettner <kevinb@redhat.com>
6010 Keith Seitz <keiths@redhat.com>
6011
6012 * python/python.c (do_start_initialization): Call PyEval_SaveThread
6013 instead of PyEval_ReleaseLock.
6014 (class gdbpy_gil): Move to earlier in file.
6015 (finalize_python): Set gdb_python_initialized.
6016 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
6017 when not initialized.
6018
6019 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
6020
6021 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6022 <push_dwarf_reg_entry_value>: Remove assert. Override
6023 per_objfile with caller_per_objfile.
6024
6025 2020-05-28 Tom de Vries <tdevries@suse.de>
6026
6027 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
6028 PR gold/15646 workaround to symbol kind "type".
6029
6030 2020-05-27 Tom Tromey <tromey@adacore.com>
6031
6032 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
6033
6034 2020-05-27 Tom Tromey <tromey@adacore.com>
6035
6036 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
6037 Use htab_find_with_hash.
6038 <add_abbrev>: Remove "abbrev_number" parameter.
6039 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
6040 "abbrev_number" parameter. Use htab_find_slot_with_hash.
6041 (hash_abbrev): Add comment.
6042 (abbrev_table::lookup_abbrev): Move to header file.
6043 (abbrev_table::read): Update.
6044
6045 2020-05-27 Tom Tromey <tromey@adacore.com>
6046
6047 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
6048 method.
6049 <canonical_name>: New member.
6050 <raw_name>: Rename from "name".
6051 (partial_die_info): Initialize canonical_name.
6052 (scan_partial_symbols): Check raw_name.
6053 (partial_die_parent_scope, partial_die_full_name)
6054 (add_partial_symbol, add_partial_subprogram)
6055 (add_partial_enumeration, load_partial_dies): Use "name" method.
6056 (partial_die_info::name): New method.
6057 (partial_die_info::read, guess_partial_die_structure_name)
6058 (partial_die_info::fixup): Update.
6059
6060 2020-05-27 Tom Tromey <tromey@adacore.com>
6061
6062 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
6063 <get_ref_die_offset>: Inline.
6064 <get_ref_die_offset_complaint>: New method.
6065 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
6066 (attribute::get_ref_die_offset_complaint): Rename from
6067 get_ref_die_offset. Just issue complaint.
6068
6069 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
6070
6071 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
6072
6073 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
6074
6075 * exec.c (exec_file_attach): Use errno value of first openp failure.
6076
6077 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
6078
6079 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
6080 Don't close thread handle.
6081
6082 2020-05-27 Tom Tromey <tom@tromey.com>
6083 Simon Marchi <simon.marchi@efficios.com>
6084
6085 * objfiles.h (struct objfile) <partial_symtabs>: Now a
6086 shared_ptr.
6087 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
6088 member.
6089 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
6090 dwarf2_per_bfd_objfile_data_key>: New globals.
6091 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
6092 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
6093 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
6094 shared.
6095 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
6096 short-circuit when sharing.
6097 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
6098 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
6099
6100 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6101
6102 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
6103 to...
6104 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
6105 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
6106
6107 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6108
6109 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
6110 build_name_components, find_name_components_bounds>:
6111 Add per_objfile parameter.
6112 (struct mapped_index) <symbol_name_at>: Likewise.
6113 (struct mapped_debug_names): Remove constructor.
6114 <dwarf2_per_objfile>: Remove field.
6115 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
6116 (mapped_index_base::find_name_components_bounds,
6117 mapped_index_base::build_name_components,
6118 dw2_expand_symtabs_matching_symbol): Likewise.
6119 (class mock_mapped_index) <symbol_name_at>: Likewise.
6120 (check_match): Likewise.
6121 (check_find_bounds_finds): Likewise.
6122 (test_mapped_index_find_name_component_bounds): Update.
6123 (CHECK_MATCH): Update.
6124 (dw2_expand_symtabs_matching): Update.
6125 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
6126 per_objfile parameter.
6127 <find_vec_in_debug_names>: Likewise.
6128 <m_per_objfile>: New field.
6129 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
6130 parameter.
6131 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
6132 (dw2_debug_names_iterator::next): Update.
6133 (dw2_debug_names_lookup_symbol): Update.
6134 (dw2_debug_names_expand_symtabs_for_function): Update.
6135 (dw2_debug_names_map_matching_symbols): Update.
6136 (dw2_debug_names_expand_symtabs_matching): Update.
6137 (dwarf2_read_debug_names): Update.
6138
6139 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6140
6141 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
6142 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
6143 move to dwarf2_per_objfile.
6144 <read_in_chain>: Remove.
6145 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
6146 remove_all_cus, age_comp_units>: New methods.
6147 <m_dwarf2_cus>: New member.
6148 (struct dwarf2_per_cu_data) <cu>: Remove.
6149 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
6150 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
6151 moved to methods of dwarf2_per_objfile.
6152 (dwarf2_clear_marks): Remove.
6153 (dwarf2_queue_item::~dwarf2_queue_item): Update.
6154 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
6155 (dwarf2_per_bfd::free_cached_comp_units): Remove.
6156 (dwarf2_per_objfile::remove_all_cus): New.
6157 (class free_cached_comp_units) <~free_cached_comp_units>:
6158 Update.
6159 (load_cu): Update.
6160 (dw2_do_instantiate_symtab): Adjust.
6161 (fill_in_sig_entry_from_dwo_entry): Adjust.
6162 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6163 (cutu_reader::cutu_reader): Likewise.
6164 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
6165 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
6166 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
6167 and dwarf2_per_objfile::age_comp_units.
6168 (load_partial_comp_unit): Update.
6169 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
6170 (process_queue): Likewise.
6171 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
6172 backlink.
6173 (dwarf2_read_addr_index): Likewise.
6174 (follow_die_offset): Likewise.
6175 (dwarf2_fetch_die_loc_sect_off): Likewise.
6176 (dwarf2_fetch_constant_bytes): Likewise.
6177 (dwarf2_fetch_die_type_sect_off): Likewise.
6178 (follow_die_sig_1): Likewise.
6179 (load_full_type_unit): Likewise.
6180 (read_signatured_type): Likewise.
6181 (dwarf2_cu::dwarf2_cu): Don't set cu field.
6182 (dwarf2_cu::~dwarf2_cu): Remove.
6183 (dwarf2_per_objfile::get_cu): New.
6184 (dwarf2_per_objfile::set_cu): New.
6185 (age_cached_comp_units): Rename to...
6186 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
6187 to std::unordered_map.
6188 (free_one_cached_comp_unit): Rename to...
6189 (dwarf2_per_objfile::remove_cu): ... this. Adjust
6190 to std::unordered_map.
6191 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
6192 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
6193 a dwarf2_per_objfile in data.
6194 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
6195 (dwarf2_clear_marks): Remove.
6196
6197 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6198
6199 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
6200 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
6201 (init_tu_and_read_dwo_dies): Likewise.
6202 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
6203 (cutu_reader::cutu_reader): Likewise.
6204 (load_partial_comp_unit): Likewise.
6205 (process_psymtab_comp_unit): Update.
6206 (build_type_psymtabs_1): Update.
6207 (process_skeletonless_type_unit): Update.
6208 (load_full_comp_unit): Update.
6209 (find_partial_die): Update.
6210 (dwarf2_read_addr_index): Update.
6211 (read_signatured_type): Update.
6212
6213 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6214
6215 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
6216 m_header_read_in>: New fields.
6217 <get_header>: New method.
6218 * dwarf2/read.c (per_cu_header_read_in): Remove.
6219 (dwarf2_per_cu_data::get_header): New.
6220 (dwarf2_per_cu_data::addr_size): Update.
6221 (dwarf2_per_cu_data::offset_size): Update.
6222 (dwarf2_per_cu_data::ref_addr_size): Update.
6223
6224 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6225
6226 * dwarf2/read.c (load_cu): Return dwarf2_cu.
6227 (dw2_do_instantiate_symtab): Update.
6228 (queue_and_load_all_dwo_tus): Change parameter from
6229 dwarf2_per_cu_data to dwarf2_cu.
6230 (dwarf2_fetch_die_loc_sect_off): Update.
6231 (dwarf2_fetch_constant_bytes): Update.
6232 (dwarf2_fetch_die_type_sect_off): Update.
6233
6234 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6235
6236 * dwarf2/read.c (process_full_comp_unit,
6237 process_full_type_unit): Remove per_cu, per_objfile paramters.
6238 Add dwarf2_cu parameter.
6239 (process_queue): Update.
6240
6241 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6242
6243 * dwarf2/read.c (create_cu_from_index_list): Replace
6244 dwarf2_per_objfile parameter with dwarf2_per_bfd.
6245 (create_cus_from_index_list): Likewise.
6246 (create_cus_from_index): Likewise.
6247 (create_signatured_type_table_from_index): Likewise.
6248 (create_cus_from_debug_names_list): Likewise.
6249 (create_cus_from_debug_names): Likewise.
6250 (dwarf2_read_gdb_index): Update.
6251 (dwarf2_read_debug_names): Update.
6252
6253 2020-05-27 Tom Tromey <tom@tromey.com>
6254 Simon Marchi <simon.marchi@efficios.com>
6255
6256 * dwarf2/read.h (struct dwarf2_per_objfile)
6257 <get_type_for_signatured_type, set_type_for_signatured_type>:
6258 New methods.
6259 <m_type_map>: New member.
6260 (struct signatured_type) <type>: Remove.
6261 * dwarf2/read.c
6262 (dwarf2_per_objfile::get_type_for_signatured_type,
6263 dwarf2_per_objfile::set_type_for_signatured_type): New.
6264 (get_signatured_type): Use new methods.
6265
6266 2020-05-27 Tom Tromey <tom@tromey.com>
6267 Simon Marchi <simon.marchi@efficios.com>
6268
6269 * dwarf2/read.h (struct type_unit_group_unshareable): New.
6270 (struct dwarf2_per_objfile) <type_units>: New member.
6271 <get_type_unit_group_unshareable>: New method.
6272 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
6273 num_symtabs, symtabs>: Remove; move to
6274 type_unit_group_unshareable.
6275 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
6276 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
6277 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
6278
6279 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6280
6281 * dwarf2/read.h (struct dwarf2_per_cu_data):
6282 <dwarf2_per_objfile>: Remove.
6283 * dwarf2/read.c (create_cu_from_index_list): Don't assign
6284 dwarf2_per_objfile.
6285 (create_signatured_type_table_from_index): Likewise.
6286 (create_signatured_type_table_from_debug_names): Likewise.
6287 (create_debug_type_hash_table): Likewise.
6288 (fill_in_sig_entry_from_dwo_entry): Likewise.
6289 (create_type_unit_group): Likewise.
6290 (read_comp_units_from_section): Likewise.
6291 (create_cus_hash_table): Likewise.
6292
6293 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6294
6295 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
6296 dwarf2_per_cu_data::dwarf2_per_objfile.
6297 (compute_compunit_symtab_includes): Likewise.
6298 (dwarf2_cu::start_symtab): Likewise.
6299
6300 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6301
6302 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
6303 parameter.
6304 * dwarf2/read.c (get_die_type_at_offset): Likewise.
6305 (read_namespace_alias): Update.
6306 (lookup_die_type): Update.
6307 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
6308 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
6309 Update.
6310 (disassemble_dwarf_expression): Update.
6311
6312 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6313
6314 * dwarf2/read.h (struct dwarf2_queue_item): Add
6315 dwarf2_per_objfile parameter, assign new parameter.
6316 <per_objfile>: New field.
6317 * dwarf2/read.c (free_one_cached_comp_unit): Add
6318 dwarf2_per_objfile parameter.
6319 (queue_comp_unit): Likewise.
6320 (dw2_do_instantiate_symtab): Update.
6321 (process_psymtab_comp_unit): Update.
6322 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
6323 (process_imported_unit_die): Update.
6324 (queue_and_load_dwo_tu): Update.
6325 (follow_die_offset): Update.
6326 (follow_die_sig_1): Update.
6327
6328 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6329
6330 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
6331 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
6332 (read_call_site_scope): Assign per_objfile.
6333 (dwarf2_per_cu_data::objfile): Remove.
6334 * gdbtypes.h (struct call_site) <per_objfile>: New member.
6335 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
6336 dwarf2_per_objfile parameter.
6337 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
6338 dwarf2_per_objfile parameter.
6339 (dwarf_expr_reg_to_entry_parameter): Add output
6340 dwarf2_per_objfile parameter.
6341 (locexpr_get_frame_base): Update.
6342 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
6343 <push_dwarf_reg_entry_value>: Update.
6344 <call_site_to_target_addr>: Update.
6345 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
6346 parameter.
6347 (value_of_dwarf_reg_entry): Update.
6348 (rw_pieced_value): Update.
6349 (indirect_synthetic_pointer): Update.
6350 (dwarf2_evaluate_property): Update.
6351 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
6352 parameter.
6353 (locexpr_read_variable): Update.
6354 (locexpr_get_symbol_read_needs): Update.
6355 (loclist_read_variable): Update.
6356
6357 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6358
6359 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6360 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6361 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6362 parameter.
6363 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6364 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6365 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6366 parameter.
6367 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6368 sect_variable_value): Add dwarf2_per_objfile parameter.
6369 (class dwarf_evaluate_loc_desc) <dwarf_call,
6370 dwarf_variable_value>: Update.
6371 (fetch_const_value_from_synthetic_pointer): Add
6372 dwarf2_per_objfile parameter.
6373 (fetch_const_value_from_synthetic_pointer): Update.
6374 (coerced_pieced_ref): Update.
6375 (class symbol_needs_eval_context) <dwarf_call,
6376 dwarf_variable_value>: Update.
6377 (dwarf2_compile_expr_to_ax): Update.
6378
6379 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6380
6381 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6382 parameter.
6383 (dwarf2_evaluate_loc_desc_full): Update.
6384
6385 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6386
6387 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6388 parameter.
6389 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6390 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6391 dwarf2_per_objfile parameter.
6392 (decode_debug_loc_dwo_addresses): Likewise.
6393 (dwarf2_find_location_expression): Update.
6394 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6395 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6396 parameter.
6397 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6398 parameter.
6399 (locexpr_describe_location_1): Likewise.
6400 (locexpr_describe_location): Update.
6401
6402 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6403
6404 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6405 Remove.
6406 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6407 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6408 (dwarf2_compile_property_to_c): Update.
6409 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6410 use text offset from objfile.
6411 (locexpr_tracepoint_var_ref): Update.
6412 (locexpr_generate_c_location): Update.
6413 (loclist_describe_location): Update.
6414 (loclist_tracepoint_var_ref): Update.
6415 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6416 dwarf2_per_objfile parameter.
6417 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6418 use text offset from objfile.
6419 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6420
6421 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6422
6423 * dwarf2/expr.h (struct dwarf_expr_context)
6424 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6425 <offset>: Remove.
6426 <per_objfile>: New member.
6427 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6428 dwarf2_per_objfile parameter. Don't set offset, set
6429 per_objfile.
6430 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6431 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6432 a dwarf2_per_objfile object instead of an offset.
6433 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6434 constructor.
6435 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6436 to dwarf2_expr_executor constructor. Don't set offset.
6437 (dwarf2_fetch_cfa_info): Update.
6438 (struct dwarf2_frame_cache) <text_offset>: Remove.
6439 <per_objfile>: New field.
6440 (dwarf2_frame_cache): Update.
6441 (dwarf2_frame_prev_register): Update.
6442 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6443 <dwarf_evaluate_loc_desc>: Add constructor.
6444 (dwarf2_evaluate_loc_desc_full): Update.
6445 (dwarf2_locexpr_baton_eval): Update.
6446 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6447 Add constructor.
6448 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6449
6450 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6451
6452 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6453 addr_sized_int_type>: Move to dwarf2_cu.
6454 <int_type>: Move to dwarf2_per_objfile.
6455 (struct dwarf2_per_objfile) <int_type>: Move here.
6456 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6457 addr_sized_int_type>: Move here.
6458 (read_func_scope): Update.
6459 (read_array_type): Update.
6460 (read_tag_string_type): Update.
6461 (attr_to_dynamic_prop): Update.
6462 (dwarf2_per_cu_data::int_type): Rename to...
6463 (dwarf2_per_objfile::int_type): ... this.
6464 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6465 (dwarf2_cu::addr_sized_int_type): ... this.
6466 (read_subrange_type): Update.
6467 (dwarf2_per_cu_data::addr_type): Rename to...
6468 (dwarf2_cu::addr_type): ... this.
6469 (set_die_type): Update.
6470
6471 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6472
6473 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6474 data through per_cu->cu.
6475
6476 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6477
6478 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6479 dwarf2_per_cu_data parameter fo dwarf2_cu.
6480 (lookup_dwo_type_unit): Likewise.
6481 (read_cutu_die_from_dwo): Likewise.
6482 (lookup_dwo_unit): Likewise.
6483 (open_and_init_dwo_file): Likewise.
6484 (lookup_dwo_cutu): Likewise.
6485 (lookup_dwo_comp_unit): Likewise.
6486 (lookup_dwo_type_unit): Likewise.
6487 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6488 (cutu_reader::cutu_reader): Update.
6489
6490 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6491
6492 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6493 parameter.
6494 (process_full_type_unit): Likewise.
6495 (process_queue): Update.
6496
6497 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6498
6499 * dwarf2/read.c (recursively_compute_inclusions): Add
6500 dwarf2_per_objfile parameter.
6501 (compute_compunit_symtab_includes): Likewise.
6502 (process_cu_includes): Update.
6503
6504 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6505
6506 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6507 parameter.
6508 (create_type_unit_group): Update.
6509 (process_psymtab_comp_unit_reader): Update.
6510 (build_type_psymtabs_reader): Update.
6511
6512 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6513
6514 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6515 object through m_this_cu->cu.
6516
6517 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6518
6519 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6520 the info parameter.
6521 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6522
6523 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6524
6525 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6526 per_objfile parameter.
6527 (load_full_type_unit): Add per_objfile parameter.
6528 (read_signatured_type): Likewise.
6529 (load_full_comp_unit): Likewise.
6530 (load_cu): Likewise.
6531 (dw2_do_instantiate_symtab): Likewise.
6532 (dw2_get_file_names): Likewise.
6533 (dw2_map_symtabs_matching_filename): Update.
6534 (dw_expand_symtabs_matching_file_matcher): Update.
6535 (dw2_map_symbol_filenames): Update.
6536 (process_psymtab_comp_unit): Add per_objfile parameter.
6537 (build_type_psymtabs_1): Update.
6538 (process_skeletonless_type_unit): Update.
6539 (dwarf2_build_psymtabs_hard): Update.
6540 (load_partial_comp_unit): Add per_objfile parameter.
6541 (scan_partial_symbols): Update.
6542 (load_full_comp_unit): Add per_objfile parameter.
6543 (process_imported_unit_die): Update.
6544 (create_cus_hash_table): Update.
6545 (find_partial_die): Update.
6546 (dwarf2_read_addr_index): Update.
6547 (follow_die_offset): Update.
6548 (dwarf2_fetch_die_loc_sect_off): Update.
6549 (dwarf2_fetch_constant_bytes): Update.
6550 (dwarf2_fetch_die_type_sect_off): Update.
6551 (follow_die_sig_1): Update.
6552 (load_full_type_unit): Add per_objfile parameter.
6553 (read_signatured_type): Likewise.
6554
6555 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6556
6557 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6558 of objfile_name.
6559
6560 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6561
6562 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6563 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6564 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6565 field.
6566 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6567 (create_cus_from_index): Update.
6568 (dwarf2_read_gdb_index): Update.
6569 (create_cus_from_debug_names): Update.
6570 (dwarf2_read_debug_names): Update.
6571 (get_abbrev_section_for_cu): Update.
6572 (create_all_comp_units): Update.
6573 (read_attribute_value): Update.
6574 (get_debug_line_section): Update.
6575 * dwarf2/index-cache.c (index_cache::store): Update.
6576 * dwarf2/index-write.c (save_gdb_index_command): Update.
6577 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6578
6579 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6580
6581 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6582 member.
6583 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6584 dwarf2_per_cu_data::per_bfd.
6585 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6586 (create_type_unit_group): Likewise.
6587 (queue_comp_unit): Remove reference to
6588 per_cu->dwarf2_per_objfile.
6589 (maybe_queue_comp_unit): Likewise.
6590 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6591 (create_cus_hash_table): Assign new field.
6592
6593 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6594
6595 * dwarf2/read.c: Replace
6596 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6597 dwarf2_cu->per_objfile throughout.
6598
6599 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6600
6601 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6602 parameter, don't use per_cu->dwarf2_per_objfile.
6603 (dw2_instantiate_symtab): Likewise.
6604 (dw2_find_last_source_symtab): Update.
6605 (dw2_map_expand_apply): Update.
6606 (dw2_lookup_symbol): Update.
6607 (dw2_expand_symtabs_for_function): Update.
6608 (dw2_expand_all_symtabs): Update.
6609 (dw2_expand_symtabs_with_fullname): Update.
6610 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6611 don't use per_cu->dwarf2_per_objfile.
6612 (dw2_expand_marked_cus): Update.
6613 (dw2_find_pc_sect_compunit_symtab): Update.
6614 (dw2_debug_names_lookup_symbol): Update.
6615 (dw2_debug_names_expand_symtabs_for_function): Update.
6616 (dw2_debug_names_map_matching_symbols): Update.
6617 (dwarf2_psymtab::expand_psymtab): Update.
6618
6619 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6620
6621 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6622 <per_objfile>: New member.
6623 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6624 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6625 call to dwarf2_cu.
6626 (cutu_reader::cutu_reader): Update.
6627 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6628
6629 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6630
6631 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6632 struct dwarf2_per_objfile.
6633 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6634 dwarf2_per_bfd.
6635 * dwarf2/read.c (set_die_type): Update.
6636 (get_die_type_at_offset): Update.
6637
6638 2020-05-27 Tom Tromey <tom@tromey.com>
6639 Simon Marchi <simon.marchi@efficios.com>
6640
6641 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6642 method.
6643 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6644 get_symtab, set_symtab>: New methods.
6645 <m_symtabs>: New field.
6646 (struct dwarf2_psymtab): Derive from partial_symtab.
6647 <readin_p, get_compunit_symtab>: Declare methods.
6648 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6649 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6650 New methods.
6651 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6652 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6653 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6654 (dw2_symtab_iter_next, dw2_print_stats)
6655 (dw2_expand_symtabs_with_fullname)
6656 (dw2_expand_symtabs_matching_one)
6657 (dw_expand_symtabs_matching_file_matcher)
6658 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6659 (dw2_debug_names_iterator::next)
6660 (dw2_debug_names_map_matching_symbols)
6661 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6662 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6663 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6664 New methods.
6665 (get_compunit_symtab, process_full_comp_unit)
6666 (process_full_type_unit): Update.
6667 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6668
6669 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6670
6671 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6672 then introduce a new dwarf2_per_objfile type.
6673 <read_line_string>: Move to the new dwarf2_per_objfile type.
6674 <objfile>: Likewise.
6675 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6676 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6677 dwarf2_per_objfile->per_bfd.
6678 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6679 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6680 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6681 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6682 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6683 (dwarf2_per_objfile::locate_sections): Rename to...
6684 (dwarf2_per_bfd::locate_sections): ... this.
6685 (dwarf2_per_objfile::get_cutu): Rename to...
6686 (dwarf2_per_bfd::get_cutu): ... this.
6687 (dwarf2_per_objfile::get_cu): Rename to...
6688 (dwarf2_per_bfd::get_cu): ... this.
6689 (dwarf2_per_objfile::get_tu): Rename to...
6690 (dwarf2_per_bfd::get_tu): ... this.
6691 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6692 (dwarf2_per_bfd::allocate_per_cu): ... this.
6693 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6694 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6695 (get_gdb_index_contents_ftype): Change parameter from
6696 dwarf2_per_objfile to dwarf2_per_bfd.
6697 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6698 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6699
6700 2020-05-27 Tom Tromey <tom@tromey.com>
6701 Simon Marchi <simon.marchi@efficios.com>
6702
6703 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6704 (allocate_piece_closure): Set "per_objfile" member.
6705 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6706 (locexpr_describe_location, loclist_describe_location): Use new
6707 member.
6708 * dwarf2/read.c (read_call_site_scope)
6709 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6710 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6711 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6712 handle_data_member_location): Set per_objfile member.
6713 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6714 member.
6715 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6716
6717 2020-05-27 Tom Tromey <tom@tromey.com>
6718
6719 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6720 allocate_signatured_type>: Declare new methods.
6721 <m_num_psymtabs>: New member.
6722 (struct dwarf2_per_cu_data) <index>: New member.
6723 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6724 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6725 (create_cu_from_index_list): Use allocate_per_cu.
6726 (create_signatured_type_table_from_index)
6727 (create_signatured_type_table_from_debug_names)
6728 (create_debug_type_hash_table, add_type_unit)
6729 (read_comp_units_from_section): Use allocate_signatured_type.
6730
6731 2020-05-27 Tom Tromey <tom@tromey.com>
6732
6733 * psymtab.c (partial_map_expand_apply)
6734 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6735 (psym_lookup_global_symbol_language)
6736 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6737 (psym_print_stats, psym_expand_symtabs_for_function)
6738 (psym_map_symbol_filenames, psym_map_matching_symbols)
6739 (psym_expand_symtabs_matching)
6740 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6741 (maintenance_check_psymtabs): Update.
6742 * psympriv.h (struct partial_symtab) <readin_p,
6743 get_compunit_symtab>: Add objfile parameter.
6744 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6745 Likewise.
6746 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6747 get_compunit_symtab>: Likewise.
6748 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6749
6750 2020-05-27 Tom Tromey <tom@tromey.com>
6751
6752 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6753 member.
6754 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6755 (create_cu_from_index_list)
6756 (create_signatured_type_table_from_index)
6757 (create_signatured_type_table_from_debug_names)
6758 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6759 (dwarf2_create_include_psymtab)
6760 (create_debug_type_hash_table, add_type_unit)
6761 (create_type_unit_group, read_comp_units_from_section)
6762 (dwarf2_compute_name, create_cus_hash_table)
6763 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6764 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6765 obstack.
6766 (dw2_get_real_path): Likewise. Change argument to
6767 dwarf2_per_objfile.
6768
6769 2020-05-27 Luis Machado <luis.machado@linaro.org>
6770
6771 PR tdep/26000
6772 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6773 for ldrd (immediate).
6774
6775 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6776
6777 * command.h: Add comment giving the name of class_tui.
6778 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6779 create the fake command for the help for class_tui.
6780
6781 2020-05-26 Tom Tromey <tromey@adacore.com>
6782
6783 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6784 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6785 (val_atr): New function.
6786 (value_val_atr): Use it.
6787 * ada-valprint.c (print_optional_low_bound): Change low bound
6788 handling for enums.
6789 (val_print_packed_array_elements): Don't call discrete_position.
6790 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6791 discrete_position for enum types.
6792 * language.c (default_print_array_index): Change type.
6793 * language.h (struct language_defn) <la_print_array_index>: Add
6794 index_type parameter, change type of index_value.
6795 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6796 (default_print_array_index): Update.
6797 * valprint.c (maybe_print_array_index): Don't call
6798 value_from_longest. Update.
6799 (value_print_array_elements): Don't call discrete_position.
6800
6801 2020-05-26 Tom Tromey <tromey@adacore.com>
6802
6803 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6804 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6805
6806 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6807
6808 PR gdb/13519
6809 * avr-tdep.c (avr_integer_to_address): Return data or code
6810 address accordingly to the second 'type' argument of the
6811 function.
6812
6813 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6814
6815 * infcmd.c, inferior.h: (construct_inferior_arguments):
6816 Moved function from here to gdbsupport/common-inferior.{h,cc}
6817
6818 2020-05-23 Tom Tromey <tom@tromey.com>
6819
6820 Revert commit eca1f90c:
6821 * NEWS: Remove entry for completion styling.
6822 * completer.c (_rl_completion_prefix_display_length): Move
6823 declaration later.
6824 (gdb_fnprint): Revert.
6825 (gdb_display_match_list_1): Likewise.
6826 * cli/cli-style.c (completion_prefix_style)
6827 (completion_difference_style, completion_suffix_style): Remove.
6828 (_initialize_cli_style): Revert.
6829 * cli/cli-style.h (completion_prefix_style)
6830 (completion_difference_style, completion_suffix_style): Don't
6831 declare.
6832
6833 2020-05-24 Pedro Alves <palves@redhat.com>
6834
6835 * symtab.c (completion_list_add_name): Return boolean indication
6836 of whether the symbol matched.
6837 (completion_list_add_symbol): Don't try to remove C++ aliases if
6838 the symbol didn't match in the first place.
6839 * symtab.h (completion_list_add_name): Return bool.
6840
6841 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6842
6843 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6844 type::field.
6845
6846 2020-05-23 Joel Brobecker <brobecker@adacore.com>
6847
6848 GDB 9.2 released.
6849
6850 2020-05-23 Tom Tromey <tom@tromey.com>
6851
6852 * NEWS: Add entry for completion styling.
6853 * completer.c (_rl_completion_prefix_display_length): Move
6854 declaration earlier.
6855 (gdb_fnprint): Use completion_style.
6856 (gdb_display_match_list_1): Likewise.
6857 * cli/cli-style.c (completion_prefix_style)
6858 (completion_difference_style, completion_suffix_style): New
6859 globals.
6860 (_initialize_cli_style): Register new globals.
6861 * cli/cli-style.h (completion_prefix_style)
6862 (completion_difference_style, completion_suffix_style): Declare.
6863
6864 2020-05-23 Pedro Alves <palves@redhat.com>
6865
6866 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6867 (parse_escape): Use ISDIGIT instead of isdigit.
6868 (puts_debug): Use gdb_isprint instead of isprint.
6869 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6870 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6871 ISSPACE instead of isspace.
6872 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6873 instead of isspace.
6874 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6875 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6876 instead of isxdigit and ISDIGIT instead of isdigit.
6877
6878 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6879
6880 * gdbtypes.h (struct type) <field>: New method.
6881 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6882 or type::field.
6883
6884 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6885
6886 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6887 (TYPE_FIELDS): Use type::fields. Change all call sites that
6888 modify the propery to use type::set_fields instead.
6889
6890 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6891
6892 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6893 type::num_fields instead.
6894
6895 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6896
6897 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6898 methods.
6899 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6900 that modify the number of fields to use type::set_num_fields
6901 instead.
6902
6903 2020-05-22 Tom Tromey <tromey@adacore.com>
6904
6905 * compile/compile-object-load.h (munmap_list_free): Don't
6906 declare.
6907
6908 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6909
6910 * annotate.c (annotate_source_line): Update return type, add call
6911 to update current symtab and line.
6912 * annotate.h (annotate_source_line): Update return type, and
6913 extend header comment.
6914 * source.c (info_line_command): Check annotation_level before
6915 calling annotate_source_line.
6916 * stack.c (print_frame_info): If calling annotate_source_line
6917 returns true, then don't print any other source line information.
6918
6919 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
6920
6921 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6922
6923 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
6924
6925 * coffread.c (patch_type): Remove NULL check before xfree.
6926 * corefile.c (set_gnutarget): Likewise.
6927 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6928 * exec.c (build_section_table): Likewise.
6929 * remote.c (remote_target::pass_signals): Likewise.
6930 * utils.c (n_spaces): Likewise.
6931 * cli/cli-script.c (document_command): Likewise.
6932 * i386-windows-tdep.c (core_process_module_section): Likewise.
6933 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6934
6935 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
6936
6937 * symfile.c (reread_symbols): Clear objfile's section_offsets
6938 vector and section indices, re-compute them by calling
6939 sym_offsets.
6940
6941 2020-05-20 Tom Tromey <tromey@adacore.com>
6942
6943 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
6944 (desc_one_bound, desc_index_type): Compute field name.
6945
6946 2020-05-20 Tom de Vries <tdevries@suse.de>
6947
6948 PR symtab/25833
6949 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6950
6951 2020-05-20 Alan Modra <amodra@gmail.com>
6952
6953 PR 25993
6954 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6955 bfd_set_filename.
6956 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6957 passed to bfd_set_filename.
6958 * symfile-mem.c (add_vsyscall_page): Likewise for string
6959 passed to symbol_file_add_from_memory.
6960 (symbol_file_add_from_memory): Make name param a const char* and
6961 don't strdup.
6962
6963 2020-05-20 Alan Modra <amodra@gmail.com>
6964
6965 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6966 rather than accessing bfd->filename directly.
6967 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6968 and use bfd_section_name.
6969 * dwarf2/frame.c (decode_frame_entry): Likewise.
6970 * exec.c (exec_set_section_address): Likewise.
6971 * solib-aix.c (solib_aix_bfd_open): Likewise.
6972 * stap-probe.c (get_stap_base_address): Likewise.
6973 * symfile.c (reread_symbols): Likewise.
6974
6975 2020-05-19 Tom Tromey <tromey@adacore.com>
6976
6977 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6978
6979 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6980
6981 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6982
6983 2020-05-19 Pedro Alves <palves@redhat.com>
6984
6985 * NEWS (set exec-file-mismatch): Adjust entry.
6986 * exec.c: Include "build-id.h".
6987 (validate_exec_file): Try to match build IDs instead of filenames.
6988 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6989 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6990 and pass down 'warn_if_slow'.
6991 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6992 gdb_bfd_open_closure to pass it down.
6993 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6994
6995 2020-05-19 Pedro Alves <palves@redhat.com>
6996
6997 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6998 * target.c (target_fileio_open_1): Rename to target_fileio_open
6999 and make extern. Use bool.
7000 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
7001 (target_fileio_read_alloc_1): Adjust.
7002 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
7003 (target_fileio_open_warn_if_slow): Delete declaration.
7004
7005 2020-05-19 Pedro Alves <palves@redhat.com>
7006
7007 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
7008 Adjust all callers.
7009
7010 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
7011
7012 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
7013 whether disp is negative.
7014
7015 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7016
7017 * symfile.h (struct symfile_segment_data)
7018 <~symfile_segment_data>: Remove.
7019 <segment_info>: Change to std::vector.
7020 * symfile.c (default_symfile_segments): Update.
7021 * elfread.c (elf_symfile_segments): Update.
7022
7023 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7024
7025 * symfile.h (struct symfile_segment_data) <struct segment>: New.
7026 <segments>: New.
7027 <segment_bases, segment_sizes>: Remove.
7028 * symfile.c (default_symfile_segments): Update.
7029 * elfread.c (elf_symfile_segments): Update.
7030 * remote.c (remote_target::get_offsets): Update.
7031 * solib-target.c (solib_target_relocate_section_addresses):
7032 Update.
7033
7034 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7035
7036 * symfile.h (struct symfile_segment_data): Initialize fields.
7037 <~symfile_segment_data>: Add.
7038 (symfile_segment_data_up): New.
7039 (struct sym_fns) <sym_segments>: Return a
7040 symfile_segment_data_up.
7041 (default_symfile_segments): Return a symfile_segment_data_up.
7042 (free_symfile_segment_data): Remove.
7043 (get_symfile_segment_data): Return a symfile_segment_data_up.
7044 * symfile.c (default_symfile_segments): Likewise.
7045 (get_symfile_segment_data): Likewise.
7046 (free_symfile_segment_data): Remove.
7047 (symfile_find_segment_sections): Update.
7048 * elfread.c (elf_symfile_segments): Return a
7049 symfile_segment_data_up.
7050 * remote.c (remote_target::get_offsets): Update.
7051 * solib-target.c (solib_target_relocate_section_addresses):
7052 Update.
7053 * symfile-debug.c (debug_sym_segments): Return a
7054 symfile_segment_data_up.
7055
7056 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7057
7058 PR build/25981
7059 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
7060 Hardcode register numbers.
7061
7062 PR build/25981
7063 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
7064 procfs_find_LDT_entry): Remove.
7065 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
7066 procfs_find_LDT_entry): Remove.
7067 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
7068 Remove.
7069
7070 2020-05-17 Pedro Alves <palves@redhat.com>
7071 Andrew Burgess <andrew.burgess@embecosm.com>
7072 Keno Fischer <keno@juliacomputing.com>
7073
7074 PR gdb/25741
7075 * breakpoint.c (build_target_condition_list): Update comments.
7076 (build_target_command_list): Update comments and skip matching
7077 locations.
7078 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
7079 a separate function. Simplify "set breakpoint auto-hw off"
7080 handling.
7081 (insert_breakpoints): Update comment.
7082 (tracepoint_locations_match): New parameter. For breakpoints,
7083 compare location types too, if the caller wants to.
7084 (handle_automatic_hardware_breakpoints): New functions.
7085 (bp_location_is_less_than): Also sort by location type and
7086 hardware breakpoint length.
7087 (update_global_location_list): Handle "set breakpoint auto-hw on"
7088 here.
7089 (update_breakpoint_locations): Ask breakpoint_locations_match to
7090 ignore location types.
7091
7092 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
7093
7094 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
7095 type::name instead.
7096
7097 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
7098
7099 * gdbtypes.h (struct type) <name, set_name>: New methods.
7100 (TYPE_CODE): Use type::name. Change all call sites used to set
7101 the name to use type::set_name instead.
7102
7103 2020-05-16 Tom Tromey <tom@tromey.com>
7104
7105 * top.c (quit_force): Update.
7106 * infrun.c (handle_no_resumed): Update.
7107 * top.h (all_uis): New function.
7108 (ALL_UIS): Remove.
7109
7110 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
7111
7112 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
7113
7114 2020-05-16 Pedro Alves <palves@redhat.com>
7115
7116 * ia64-linux-nat.c
7117 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
7118 Declare method.
7119 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
7120
7121 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
7122
7123 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
7124 (sparc64_adi_info): Likewise.
7125
7126 2020-05-15 Tom Tromey <tom@tromey.com>
7127
7128 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
7129 block_objfile.
7130 (lookup_objfile_from_block): Remove.
7131 (lookup_symbol_in_block, lookup_symbol_in_static_block)
7132 (lookup_global_symbol): Use block_objfile.
7133 * symtab.h (lookup_objfile_from_block): Don't declare.
7134 * printcmd.c (clear_dangling_display_expressions): Use
7135 block_objfile.
7136 * parse.c (operator_check_standard): Use block_objfile.
7137
7138 2020-05-15 Tom Tromey <tom@tromey.com>
7139
7140 * language.c (language_alloc_type_symbol): Set
7141 SYMBOL_SECTION.
7142 * symtab.c (initialize_objfile_symbol): Remove.
7143 (allocate_symbol): Remove.
7144 (allocate_template_symbol): Remove.
7145 * dwarf2/read.c (fixup_go_packaging): Use "new".
7146 (new_symbol): Use "new".
7147 (read_variable): Don't call initialize_objfile_symbol. Use
7148 "new".
7149 (read_func_scope): Use "new".
7150 * xcoffread.c (process_xcoff_symbol): Don't call
7151 initialize_objfile_symbol.
7152 (SYMBOL_DUP): Remove.
7153 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
7154 "new".
7155 * symtab.h (allocate_symbol, initialize_objfile_symbol)
7156 (allocate_template_symbol): Don't declare.
7157 (struct symbol): Add copy constructor. Change defaults.
7158 * jit.c (finalize_symtab): Use "new".
7159 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
7160 Use "new".
7161 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7162 (common_block_end): Use "new".
7163 * mdebugread.c (parse_symbol): Use "new".
7164 (new_symbol): Likewise.
7165
7166 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7167
7168 * NEWS: Mention changes to help and apropos.
7169
7170 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7171
7172 * command.h (enum command_class): Improve comments, document
7173 that class_alias is for user-defined aliases, give the class
7174 name for each class, remove unused class_xdb.
7175 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
7176 * breakpoint.c (_initialize_breakpoint): Replace class_alias
7177 by a precise class.
7178 * infcmd.c (_initialize_infcmd): Likewise.
7179 * reverse.c (_initialize_reverse): Likewise.
7180 * stack.c (_initialize_stack): Likewise.
7181 * symfile.c (_initialize_symfile): Likewise.
7182 * tracepoint.c (_initialize_tracepoint): Likewise.
7183
7184 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7185
7186 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
7187 when their aliased command is traversed.
7188 (help_cmd): Add fput_command_names_styled call to
7189 output command name and aliases when command has an alias.
7190
7191 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7192
7193 * cli/cli-decode.h (help_cmd_list): Remove declaration.
7194 * cli/cli-decode.c (help_cmd_list): Declare as static,
7195 remove prefix argument, use bool for recurse arg, rework to show the aliases of
7196 a command together with the command.
7197 (fput_command_name_styled, fput_command_names_styled): New functions.
7198 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
7199 fput_command_name_styled.
7200 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
7201 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
7202
7203 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7204
7205 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
7206 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
7207 * command.h (cmd_show_list): Likewise.
7208 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
7209 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
7210
7211 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7212
7213 * unittests/command-def-selftests.c (traverse_command_structure):
7214 Verify all commands of a list have the same prefix command and
7215 that only the top cmdlist commands have a null prefix.
7216
7217 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7218
7219 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
7220 as prefix, not one of its aliases.
7221 (set_cmd_prefix): Remove.
7222 (do_add_cmd): Centralize the setting of the prefix of a command, when
7223 command is defined after its full chain of prefix commands.
7224 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
7225 (add_setshow_cmd_full): Likewise.
7226 (update_prefix_field_of_prefixed_commands): New function.
7227 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
7228 update_prefix_field_of_prefixed_commands.
7229 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
7230 addresses of remote_set_cmdlist and remote_show_cmdlist given
7231 as argument, not the address of an argument.
7232 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
7233 * gdb/remote.c (_initialize_remote): Likewise.
7234
7235 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7236
7237 * cli/cli-cmds.c (alias_command): Check for an existing alias
7238 using lookup_cmd_composition, as valid_command_p is too strict
7239 and forbids aliases that are the prefix of an existing alias
7240 or command.
7241 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
7242 command is properly recognised as a valid command.
7243
7244 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7245
7246 * unittests/help-doc-selftests.c: Rename to
7247 unittests/command-def-selftests.c
7248 * unittests/command-def-selftests.c (help_doc_tests): Update some
7249 comments.
7250 (command_structure_tests, traverse_command_structure): New namespace
7251 and function.
7252 (command_structure_invariants_tests): New function.
7253 (_initialize_command_def_selftests) Renamed from
7254 _initialize_help_doc_selftests, register command_structure_invariants
7255 selftest.
7256
7257 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7258
7259 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
7260 an alias of 'show'.
7261
7262 2020-05-15 Joel Brobecker <brobecker@adacore.com>
7263
7264 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
7265 ada_is_fixed_point_type. Update all callers.
7266 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
7267 all callers.
7268 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
7269 Update all callers.
7270 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
7271 print_fixed_point_type. Update all callers.
7272 * ada-valprint.c (ada_value_print_num): Replace call to
7273 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
7274
7275 2020-05-14 Kevin Buettner <kevinb@redhat.com>
7276
7277 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
7278 processors.
7279 (cpu_supports_bts): Add CV_AMD case.
7280
7281 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
7282 Simon Marchi <simon.marchi@efficios.com>
7283
7284 * infrun.c (stop_all_threads): Collect multiple wait events at
7285 each pass.
7286
7287 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
7288
7289 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
7290 type::code instead.
7291
7292 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
7293
7294 * gdbtypes.h (struct type) <code, set_code>: New methods.
7295 (TYPE_CODE): Use type::code. Change all call sites used to set
7296 the code to use type::set_code instead.
7297
7298 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7299 Tom de Vries <tdevries@suse.de>
7300 Pedro Alves <palves@redhat.com>
7301
7302 PR threads/25478
7303 * infrun.c (stop_all_threads): Do NOT ignore
7304 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
7305 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
7306 received.
7307 (handle_no_resumed): Remove code handling a live inferior with no
7308 threads.
7309 * remote.c (has_single_non_exited_thread): New.
7310 (remote_target::update_thread_list): Do not delete a thread if is
7311 the last thread of the process.
7312 * thread.c (thread_select): Call delete_exited_threads instead of
7313 prune_threads.
7314
7315 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7316
7317 * infrun.c (stop_all_threads): Enable/disable thread events of all
7318 targets. Move a debug message denoting the end of the function
7319 into the SCOPED_EXIT block.
7320
7321 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7322
7323 * process-stratum-target.h: Include <set>.
7324 (all_non_exited_process_targets, switch_to_target_no_thread): New
7325 function declarations.
7326 * process-stratum-target.c (all_non_exited_process_targets)
7327 (switch_to_target_no_thread): New function implementations.
7328
7329 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7330
7331 * infrun.c (handle_inferior_event): Extract out a piece of code
7332 into...
7333 (mark_non_executing_threads): ...this new function.
7334
7335 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7336
7337 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
7338 use.
7339
7340 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7341
7342 * regcache.c (regcache_read_pc_protected): New function
7343 implementation that returns 0 if the PC cannot read via
7344 'regcache_read_pc'.
7345 * infrun.c (proceed): Call 'regcache_read_pc_protected'
7346 instead of 'regcache_read_pc'.
7347 (keep_going_pass_signal): Ditto.
7348
7349 2020-05-13 Tom Tromey <tromey@adacore.com>
7350
7351 * ada-lang.c (align_value): Remove.
7352 (ada_template_to_fixed_record_type_1): Use align_up.
7353
7354 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7355
7356 * async-event.c: Update the copyright year.
7357 * async-event.h: Update the copyright year.
7358
7359 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
7360
7361 * objfiles.h (is_addr_in_objfile,
7362 shared_objfile_contains_address_p): Return bool.
7363 * objfile.c (is_addr_in_objfile,
7364 shared_objfile_contains_address_p): Return bool.
7365
7366 2020-05-11 Tom Tromey <tromey@adacore.com>
7367
7368 * cli/cli-cmds.c (info_command): Restore.
7369 (_initialize_cli_cmds): Use add_prefix_command for "info".
7370 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7371
7372 2020-05-11 Tom Tromey <tromey@adacore.com>
7373
7374 * ada-lang.c (ada_value_primitive_field): Now public.
7375 * ada-lang.h (ada_value_primitive_field): Declare.
7376 * ada-valprint.c (print_field_values): Use
7377 ada_value_primitive_field for wrapper fields.
7378
7379 2020-05-11 Tom de Vries <tdevries@suse.de>
7380
7381 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7382 MODULE_DOMAIN.
7383
7384 2020-05-11 Tom de Vries <tdevries@suse.de>
7385
7386 PR symtab/25941
7387 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7388 with length 0, if not gdb-produced.
7389 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7390
7391 2020-05-09 Tom de Vries <tdevries@suse.de>
7392
7393 PR gdb/25955
7394 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7395 calculation.
7396
7397 2020-05-09 Tom Tromey <tom@tromey.com>
7398
7399 * top.c (server_command): Now bool.
7400 * top.h (server_command): Now bool.
7401
7402 2020-05-08 Tom Tromey <tromey@adacore.com>
7403
7404 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7405 already being processed.
7406
7407 2020-05-08 Tom Tromey <tom@tromey.com>
7408
7409 * printcmd.c (struct display) <next>: Remove.
7410 <display>: New constructor.
7411 <exp_string>: Now a std::string.
7412 <enabled_p>: Now a bool.
7413 (display_number): Move definition earlier.
7414 (displays): Rename from display_chain. Now a std::vector.
7415 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7416 (display_command): Update.
7417 (do_one_display, disable_display)
7418 (enable_disable_display_command, do_enable_disable_display):
7419 Update.
7420 (free_display): Remove.
7421 (clear_displays): Rewrite.
7422 (delete_display): Update.
7423 (map_display_numbers): Use function_view. Remove "data"
7424 parameter. Update.
7425 (do_delete_display): Remove.
7426 (undisplay_command): Update.
7427 (do_one_display, do_displays, disable_display)
7428 (info_display_command): Update.
7429 (do_enable_disable_display): Remove.
7430 (enable_disable_display_command)
7431 (clear_dangling_display_expressions): Update.
7432
7433 2020-05-08 Tom Tromey <tom@tromey.com>
7434
7435 * symtab.c (set_symbol_cache_size)
7436 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7437 (maintenance_print_symbol_cache_statistics): Update.
7438 * symmisc.c (print_symbol_bcache_statistics)
7439 (print_objfile_statistics, maintenance_print_objfiles)
7440 (maintenance_info_symtabs, maintenance_check_symtabs)
7441 (maintenance_expand_symtabs, maintenance_info_line_tables):
7442 Update.
7443 * symfile-debug.c (set_debug_symfile): Update.
7444 * source.c (forget_cached_source_info): Update.
7445 * python/python.c (gdbpy_progspaces): Update.
7446 * psymtab.c (maintenance_info_psymtabs): Update.
7447 * probe.c (parse_probes): Update.
7448 * linespec.c (iterate_over_all_matching_symtabs)
7449 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7450 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7451 * exec.c (exec_target::close): Update.
7452 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7453 * breakpoint.c (print_one_breakpoint_location)
7454 (create_longjmp_master_breakpoint)
7455 (create_std_terminate_master_breakpoint): Update.
7456 * progspace.c (program_spaces): Now a std::vector.
7457 (maybe_new_address_space): Update.
7458 (add_program_space): Remove.
7459 (program_space::program_space): Update.
7460 (remove_program_space): Update.
7461 (number_of_program_spaces): Remove.
7462 (print_program_space, update_address_spaces): Update.
7463 * progspace.h (program_spaces): Change type.
7464 (ALL_PSPACES): Remove.
7465 (number_of_program_spaces): Don't declare.
7466 (struct program_space) <next>: Remove.
7467
7468 2020-05-08 Tom Tromey <tom@tromey.com>
7469
7470 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7471 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7472 (enable_break): Update.
7473 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7474 (frv_fdpic_find_canonical_descriptor): Update.
7475 (frv_fetch_objfile_link_map): Update.
7476 * progspace.c (program_space::free_all_objfiles): Update.
7477 (program_space::solibs): New method.
7478 * progspace.h (struct program_space) <solibs>: New method.
7479 * solist.h (master_so_list): Don't declare.
7480 (ALL_SO_LIBS): Remove.
7481 * solib.h (so_list_head): Remove.
7482 (update_solib_list): Update comment.
7483 * solib.c (master_so_list): Remove.
7484 (solib_used, update_solib_list, solib_add)
7485 (info_sharedlibrary_command, clear_solib)
7486 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7487
7488 2020-05-08 Tom Tromey <tom@tromey.com>
7489
7490 * extension.c (extension_languages): Now a std::array.
7491 (ALL_EXTENSION_LANGUAGES): Remove.
7492 (get_ext_lang_defn, get_ext_lang_of_file)
7493 (eval_ext_lang_from_control_command): Update.
7494 (finish_ext_lang_initialization)
7495 (auto_load_ext_lang_scripts_for_objfile)
7496 (ext_lang_type_printers::ext_lang_type_printers)
7497 (apply_ext_lang_type_printers)
7498 (ext_lang_type_printers::~ext_lang_type_printers)
7499 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7500 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7501 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7502 (get_matching_xmethod_workers, ext_lang_colorize)
7503 (ext_lang_before_prompt): Update.
7504 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7505
7506 2020-05-08 Tom Tromey <tom@tromey.com>
7507
7508 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7509 overload.
7510 <swap_string, m_string>: Remove.
7511 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7512 Update.
7513 * stabsread.c (define_symbol, read_type): Update.
7514 * linespec.c (find_linespec_symbols): Update.
7515 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7516 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7517 * dbxread.c (read_dbx_symtab): Update.
7518 * cp-support.h (cp_canonicalize_string_full)
7519 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7520 Return unique_xmalloc_ptr.
7521 * cp-support.c (inspect_type): Update.
7522 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7523 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7524 Likewise.
7525 * c-typeprint.c (print_name_maybe_canonical): Update.
7526 * break-catch-throw.c (check_status_exception_catchpoint):
7527 Update.
7528
7529 2020-05-08 Tom de Vries <tdevries@suse.de>
7530
7531 * infrun.c (follow_fork): Copy current_line and current_symtab to
7532 child thread.
7533
7534 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7535
7536 * async-event.c (struct async_signal_handler, struct
7537 async_event_handler): Reformat, remove typedef.
7538
7539 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7540
7541 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7542 access thistype->main_type->dyn_prop_list directly.
7543
7544 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7545
7546 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7547 (remove_dyn_prop): Remove. Update all users to use
7548 type::remove_dyn_prop.
7549 * gdbtypes.c (remove_dyn_prop): Rename to...
7550 (type::remove_dyn_prop): ... this.
7551
7552 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7553
7554 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7555 (add_dyn_prop): Remove. Update all users to use
7556 type::add_dyn_prop.
7557 * gdbtypes.c (add_dyn_prop): Rename to...
7558 (type::add_dyn_prop): ... this.
7559
7560 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7561
7562 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7563 (get_dyn_prop): Remove. Update all users to use
7564 type::dyn_prop.
7565 * gdbtypes.c (get_dyn_prop): Rename to...
7566 (type::dyn_prop): ... this.
7567
7568 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
7569
7570 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7571
7572 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
7573
7574 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7575 instruction, skip it if it's there.
7576
7577 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
7578
7579 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7580
7581 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
7582
7583 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7584 * gdbtypes.c (recursive_dump_type): Remove use of
7585 TYPE_INCOMPLETE.
7586
7587 2020-05-03 Tom Tromey <tom@tromey.com>
7588
7589 * breakpoint.c (catch_command, tcatch_command): Remove.
7590 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7591 add_show_prefix_cmd.
7592 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7593 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7594 Remove.
7595 (add_internal_problem_command): Use add_basic_prefix_cmd,
7596 add_show_prefix_cmd.
7597 * mips-tdep.c (set_mipsfpu_command): Remove.
7598 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7599 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7600 (_initialize_index_cache): Use add_basic_prefix_cmd.
7601 * memattr.c (dummy_cmd): Remove.
7602 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7603 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7604 (_initialize_tui_win): Use add_basic_prefix_cmd,
7605 add_show_prefix_cmd.
7606 * cli/cli-logging.c (set_logging_command): Remove.
7607 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7608 add_show_prefix_cmd.
7609 (show_logging_command): Remove.
7610 * target.c (target_command): Remove.
7611 (add_target): Use add_basic_prefix_cmd.
7612
7613 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
7614
7615 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7616
7617 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7618
7619 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7620 info_command.
7621
7622 2020-04-30 Kamil Rytarowski <n54@gmx.com>
7623
7624 * nbsd-nat.c (nbsd_enable_proc_events)
7625 (nbsd_nat_target::post_startup_inferior): Add.
7626 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7627 (nbsd_nat_target::update_thread_list): Rewrite.
7628 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7629 "PTRACE_LWP_CREATE".
7630 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7631
7632 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7633
7634 * stack.c (_initialize_stack): Remove duplicated creation
7635 of "frame" command and "f" alias.
7636
7637 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
7638
7639 PR gdb/18706
7640 * gdbtypes.c (check_typedef): Calculate size of array of
7641 stubbed type.
7642
7643 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
7644
7645 PR gdb/15559
7646 * i386-tdep.c (i386_push_dummy_call): Call
7647 i386_thiscall_push_dummy_call.
7648 (i386_thiscall_push_dummy_call): New function.
7649 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7650 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7651 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7652
7653 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7654
7655 * gdbarch.sh (do_read): Add shellcheck disable directive for
7656 warning SC2162.
7657
7658 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7659
7660 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7661 "referenced but not assigned" warning.
7662
7663 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7664
7665 * gdbarch.sh: Remove code that sets fallbackdefault.
7666
7667 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7668
7669 * gdbarch.sh: Use shell operators && and || instead of
7670 -a and -o.
7671
7672 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7673
7674 * gdbarch.sh: Use $(...) instead of `...`.
7675
7676 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7677
7678 * gdbarch.sh: Use double quotes around variables.
7679
7680 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7681
7682 * gdbarch.sh: Use %s with printf, instead of variables in the
7683 format string.
7684
7685 2020-04-29 Tom Tromey <tromey@adacore.com>
7686
7687 PR ada/25875:
7688 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7689 type fields here.
7690 (read_enumeration_type): Call
7691 update_enumeration_type_from_children later. Update comments.
7692 (process_enumeration_scope): Don't create type fields.
7693
7694 2020-04-29 Kamil Rytarowski <n54@gmx.com>
7695
7696 * nbsd-tdep.c: Include "xml-syscall.h".
7697 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7698
7699 2020-04-29 Kamil Rytarowski <n54@gmx.com>
7700
7701 * nbsd-nat.c: Include "sys/wait.h".
7702 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7703 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7704 (nbsd_nat_target::remove_exec_catchpoint)
7705 (nbsd_nat_target::set_syscall_catchpoint): Add.
7706 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7707 (nbsd_nat_target::insert_exec_catchpoint)
7708 (nbsd_nat_target::remove_exec_catchpoint)
7709 (nbsd_nat_target::set_syscall_catchpoint): Add.
7710 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7711 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7712 `nbsd_get_syscall_number'.
7713
7714 2020-04-29 Tom Tromey <tom@tromey.com>
7715
7716 * stack.c (print_block_frame_labels): Remove.
7717
7718 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
7719
7720 PR gdb/17320
7721 * ada-valprint.c (val_print_packed_array_elements): Move array
7722 end bracket to new line.
7723 (ada_val_print_string): Remove extra spaces before first array
7724 element.
7725 * c-valprint.c (c_value_print_array): Likewise.
7726 * m2-valprint.c (m2_print_array_contents): Likewise.
7727 (m2_value_print_inner): Likewise.
7728 * p-valprint.c (pascal_value_print_inner): Likewise.
7729 * valprint.c (generic_val_print_array): Likewise.
7730 (value_print_array_elements): Move first array element and array
7731 end bracket to new line.
7732
7733 2020-04-29 Tom de Vries <tdevries@suse.de>
7734
7735 PR symtab/25889
7736 * linespec.c (find_method): Fix ix calculation.
7737
7738 2020-04-28 Kamil Rytarowski <n54@gmx.com>
7739
7740 * syscalls/update-netbsd.sh: New file.
7741 * syscalls/netbsd.xml: Regenerate.
7742 * data-directory/Makefile.in: Register `netbsd.xml' in
7743 `SYSCALLS_FILES'.
7744
7745 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
7746
7747 * syscalls/update-freebsd.sh: Add double quotes.
7748
7749 2020-04-28 Tom Tromey <tom@tromey.com>
7750
7751 * NEWS: Update.
7752 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7753 (cmdpy_init): Allow class_tui.
7754
7755 2020-04-28 Mark Williams <mark@myosotissp.com>
7756
7757 PR gdb/24480
7758 * dwarf2read.c: Add missing assingments to list_in_scope when
7759 start_symtab was already called.
7760
7761 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
7762
7763 PR gdb/25881
7764 * dwarf2/read.c (offset_map_type): Use
7765 gdb:hash_enum<sect_offset> as hash function.
7766
7767 2020-04-28 Tom de Vries <tdevries@suse.de>
7768
7769 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7770 with DW_AT_signature.
7771
7772 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
7773
7774 * configure.ac: Remove check for fs_base/gs_base in
7775 user_regs_struct.
7776 * configure: Re-generate.
7777 * config.in: Re-generate.
7778 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7779 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7780 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7781
7782 2020-04-27 Luis Machado <luis.machado@linaro.org>
7783
7784 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7785 problematic inline frame unwinding situation.
7786 * frame.c (frame_id_computed_p): New function.
7787 * frame.h (frame_id_computed_p): New prototype.
7788
7789 2020-04-26 Tom Tromey <tom@tromey.com>
7790
7791 * command.h (enum command_class) <class_pseudo>: Remove.
7792
7793 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7794
7795 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7796 and whitespace.
7797
7798 2020-04-25 Kamil Rytarowski <n54@gmx.com>
7799
7800 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7801 `PT_GET_PROCESS_STATE' block.
7802
7803 2020-04-24 Tom Tromey <tom@tromey.com>
7804
7805 * symtab.h (symbol_get_demangled_name): Don't declare.
7806 * symtab.c (symbol_get_demangled_name): Remove.
7807 (general_symbol_info::natural_name)
7808 (general_symbol_info::demangled_name): Update.
7809
7810 2020-04-24 Tom Tromey <tom@tromey.com>
7811
7812 PR rust/25025:
7813 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7814
7815 2020-04-24 Tom Tromey <tom@tromey.com>
7816
7817 PR symtab/12707:
7818 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7819 exists.
7820 (new_symbol): Likewise.
7821 * compile/compile-object-load.c (get_out_value_type): Use
7822 symbol_matches_search_name.
7823
7824 2020-04-24 Tom Tromey <tom@tromey.com>
7825
7826 * dwarf2/read.c (add_partial_symbol): Do not call
7827 compute_and_set_names.
7828
7829 2020-04-24 Tom Tromey <tom@tromey.com>
7830
7831 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7832 overload.
7833
7834 2020-04-24 Tom Tromey <tom@tromey.com>
7835
7836 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7837 (add_psymbol_to_list): New overload. Make old overload call new
7838 one.
7839 * psympriv.h (add_psymbol_to_list): New overload.
7840
7841 2020-04-24 Tom Tromey <tom@tromey.com>
7842
7843 * dwarf2/read.c (partial_die_info::read) <case
7844 DW_AT_linkage_name>: Use value_as_string.
7845 (dwarf2_string_attr): Use value_as_string.
7846 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7847 method.
7848 * dwarf2/attribute.c (attribute::value_as_string): New method.
7849
7850 2020-04-24 Tom Tromey <tom@tromey.com>
7851
7852 * symtab.c (general_symbol_info::natural_name)
7853 (general_symbol_info::demangled_name): Check for language_rust.
7854
7855 2020-04-24 Tom Tromey <tom@tromey.com>
7856
7857 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7858 (dwarf2_physname): ... from here.
7859 (partial_die_info::read): Add Rust "{" hack.
7860
7861 2020-04-24 Tom Tromey <tom@tromey.com>
7862
7863 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7864 method.
7865 (symbol_set_demangled_name): Don't declare.
7866 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7867 symbol_set_demangled_name.
7868 (general_symbol_info::set_language)
7869 (general_symbol_info::compute_and_set_names): Update.
7870 * minsyms.c (minimal_symbol_reader::install): Update.
7871 * dwarf2/read.c (new_symbol): Update.
7872
7873 2020-04-24 Tom Tromey <tromey@adacore.com>
7874
7875 PR python/23662:
7876 * python/py-type.c (convert_field): Handle
7877 FIELD_LOC_KIND_DWARF_BLOCK.
7878 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7879 (typy_get_dynamic): Nw function.
7880 (type_object_getset): Add "dynamic".
7881 * NEWS: Add entry.
7882
7883 2020-04-24 Tom Tromey <tromey@adacore.com>
7884
7885 * ada-typeprint.c (print_choices, print_variant_part)
7886 (print_record_field_types_dynamic): New functions.
7887 (print_record_field_types): Use print_record_field_types_dynamic.
7888
7889 2020-04-24 Tom Tromey <tromey@adacore.com>
7890
7891 * dwarf2/read.c (handle_data_member_location): New overload.
7892 (dwarf2_add_field): Use it.
7893 (decode_locdesc): Add "computed" parameter. Update comment.
7894 * gdbtypes.c (is_dynamic_type_internal): Also look for
7895 FIELD_LOC_KIND_DWARF_BLOCK.
7896 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7897 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7898 virtual base classes.
7899 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7900 FIELD_LOC_KIND_DWARF_BLOCK.
7901
7902 2020-04-24 Tom Tromey <tromey@adacore.com>
7903
7904 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7905 * gdbtypes.c (is_dynamic_type_internal): Check
7906 TYPE_HAS_DYNAMIC_LENGTH.
7907 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7908 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7909 New macros.
7910 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7911 constant.
7912
7913 2020-04-24 Tom Tromey <tromey@adacore.com>
7914
7915 * dwarf2/read.c (struct variant_field): Rewrite.
7916 (struct variant_part_builder): New.
7917 (struct nextfield): Remove "variant" field. Add "offset".
7918 (struct field_info): Add "current_variant_part" and
7919 "variant_parts".
7920 (alloc_discriminant_info): Remove.
7921 (alloc_rust_variant): New function.
7922 (quirk_rust_enum): Update.
7923 (dwarf2_add_field): Set "offset" member. Don't handle
7924 DW_TAG_variant_part.
7925 (offset_map_type): New typedef.
7926 (convert_variant_range, create_one_variant)
7927 (create_one_variant_part, create_variant_parts)
7928 (add_variant_property): New functions.
7929 (dwarf2_attach_fields_to_type): Call add_variant_property.
7930 (read_structure_type): Don't handle DW_TAG_variant_part.
7931 (handle_variant_part, handle_variant): New functions.
7932 (handle_struct_member_die): Use them.
7933 (process_structure_scope): Don't handle variant parts.
7934 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7935 (struct discriminant_info): Remove.
7936 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7937 (struct main_type) <flag_discriminated_union>: Remove.
7938 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7939 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7940 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7941 Update.
7942 * valops.c (value_union_variant): Remove.
7943 * value.h (value_union_variant): Don't declare.
7944
7945 2020-04-24 Tom Tromey <tromey@adacore.com>
7946
7947 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7948 (ada_value_primitive_packed_val): Update.
7949 * ada-valprint.c (ada_value_print_1): Update.
7950 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7951 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7952 just an address. Use evaluate_for_locexpr_baton.
7953 (dwarf2_evaluate_property): Update.
7954 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7955 array_view.
7956 * findvar.c (default_read_var_value): Update.
7957 * gdbtypes.c (compute_variant_fields_inner)
7958 (resolve_dynamic_type_internal): Update.
7959 (resolve_dynamic_type): Change type of valaddr parameter.
7960 * gdbtypes.h (resolve_dynamic_type): Update.
7961 * valarith.c (value_subscripted_rvalue): Update.
7962 * value.c (value_from_contents_and_address): Update.
7963
7964 2020-04-24 Tom Tromey <tromey@adacore.com>
7965
7966 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7967 "push_initial_value" parameter.
7968 (dwarf2_evaluate_property): Likewise.
7969 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7970
7971 2020-04-24 Tom Tromey <tromey@adacore.com>
7972
7973 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7974 (variant::matches, compute_variant_fields_recurse)
7975 (compute_variant_fields_inner, compute_variant_fields): New
7976 functions.
7977 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7978 Use resolved_type after type is made.
7979 (operator==): Add new cases.
7980 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7981 (struct discriminant_range, struct variant, struct variant_part):
7982 New.
7983 (union dynamic_prop_data) <variant_parts, original_type>: New
7984 members.
7985 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7986 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7987 constants.
7988 * value.c (unpack_bits_as_long): Now public.
7989 * value.h (unpack_bits_as_long): Declare.
7990
7991 2020-04-24 Tom Tromey <tromey@adacore.com>
7992
7993 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7994 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7995
7996 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
7997
7998 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7999
8000 2020-04-24 Kamil Rytarowski <n54@gmx.com>
8001
8002 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
8003 (remove_fork_catchpoint, post_startup_inferior)
8004 (post_attach): Move...
8005 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
8006 (remove_fork_catchpoint, post_startup_inferior)
8007 (post_attach): ...here.
8008 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
8009 (remove_fork_catchpoint, post_startup_inferior)
8010 (post_attach): Move...
8011 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
8012 (remove_fork_catchpoint, post_startup_inferior)
8013 (post_attach): ...here.
8014
8015 2020-04-24 Tom Tromey <tromey@adacore.com>
8016
8017 * nat/windows-nat.h (struct windows_thread_info)
8018 <pc_adjusted>: New member.
8019 * windows-nat.c (windows_fetch_one_register): Check
8020 pc_adjusted.
8021 (windows_nat_target::get_windows_debug_event)
8022 (windows_nat_target::wait): Set pc_adjusted.
8023
8024 2020-04-24 Tom de Vries <tdevries@suse.de>
8025
8026 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
8027 Run gdb-add-index inside temp dir.
8028
8029 2020-04-23 Tom Tromey <tromey@adacore.com>
8030
8031 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
8032 in loop.
8033
8034 2020-04-23 Luis Machado <luis.machado@linaro.org>
8035
8036 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8037 get_frame_register instead of gdbarch_unwind_pc.
8038
8039 2020-04-23 Tom de Vries <tdevries@suse.de>
8040
8041 * symtab.c (lookup_global_symbol): Prefer def over decl.
8042
8043 2020-04-23 Tom de Vries <tdevries@suse.de>
8044
8045 PR symtab/25807
8046 * block.c (best_symbol, better_symbol): Promote to external.
8047 * block.h (best_symbol, better_symbol): Declare.
8048 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
8049 decl.
8050
8051 2020-04-23 Tom Tromey <tromey@adacore.com>
8052
8053 PR ada/25837:
8054 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
8055 "const char *", not a "const std::string &".
8056 <name_and_matcher::operator==>: Update.
8057 * unittests/lookup_name_info-selftests.c: Change type of
8058 "result".
8059
8060 2020-04-23 Tom Tromey <tom@tromey.com>
8061
8062 * inferior.h (iterate_over_inferiors): Don't declare.
8063 * inferior.c (iterate_over_inferiors): Remove.
8064 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
8065 Remove.
8066 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
8067 use iterate_over_inferiors.
8068 (darwin_resume_inferior_it)
8069 (struct resume_inferior_threads_param)
8070 (darwin_resume_inferior_threads_it): Remove.
8071 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
8072
8073 2020-04-23 Tom de Vries <tdevries@suse.de>
8074
8075 * blockframe.c (find_pc_partial_function): Use
8076 find_pc_sect_compunit_symtab rather than
8077 objfile->sf->qf->find_pc_sect_compunit_symtab.
8078
8079 2020-04-22 Tom de Vries <tdevries@suse.de>
8080
8081 PR symtab/25764
8082 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
8083 in psymtabs.
8084
8085 2020-04-22 Tom de Vries <tdevries@suse.de>
8086
8087 PR symtab/25801
8088 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
8089 symtabs.
8090
8091 2020-04-22 Tom de Vries <tdevries@suse.de>
8092
8093 PR symtab/25700
8094 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
8095 CU if already created.
8096
8097 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8098
8099 * infrun.c (displaced_step_fixup): Switch to the event_thread
8100 before calling displaced_step_restore, not after.
8101
8102 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8103
8104 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
8105 its inferior is not recorded by us.
8106 (record_btrace_target_open): Replace call to
8107 all_non_exited_threads () with call to current_inferior
8108 ()->non_exited_threads ().
8109 (record_btrace_target::stop_recording): Likewise.
8110 (record_btrace_target::close): Likewise.
8111 (record_btrace_target::wait): Likewise.
8112 (record_btrace_target::record_stop_replaying): Likewise.
8113
8114 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8115
8116 * btrace.c (btrace_enable): Throw an error on double enables and
8117 when enabling recording fails.
8118 (btrace_disable): Throw an error if the thread is not recorded.
8119
8120 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8121
8122 * record-btrace.c (record_btrace_target::fetch_registers): Forward
8123 request if we do not have a thread_info.
8124
8125 2020-04-21 Tom de Vries <tdevries@suse.de>
8126
8127 PR gdb/25471
8128 * thread.c
8129 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
8130 exception in get_frame_id.
8131
8132 2020-04-20 Tom Tromey <tromey@adacore.com>
8133
8134 * python/python.c (struct gdbpy_event): Mark move constructor as
8135 noexcept.
8136 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
8137 constructor as noexcept.
8138 * completer.h (struct completion_result): Mark move constructor as
8139 noexcept.
8140 * completer.c (completion_result::completion_result): Use
8141 initialization style. Don't call reset_match_list.
8142
8143 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
8144
8145 * MAINTAINERS (Write After Approval): Add myself.
8146
8147 2020-04-18 Tom Tromey <tom@tromey.com>
8148
8149 * windows-tdep.c (init_w32_command_list)
8150 (w32_prefix_command_valid): Restore.
8151 (_initialize_windows_tdep): Call init_w32_command_list.
8152
8153 2020-04-18 Tom Tromey <tom@tromey.com>
8154
8155 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
8156 * value.c (value_fn_field): Update.
8157 * valops.c (find_function_in_inferior)
8158 (value_allocate_space_in_inferior): Update.
8159 * tui/tui-winsource.c (tui_update_source_windows_with_line):
8160 Update.
8161 * tui/tui-source.c (tui_source_window::set_contents): Update.
8162 * symtab.c (lookup_global_or_static_symbol)
8163 (find_function_start_sal_1, skip_prologue_sal)
8164 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
8165 * symmisc.c (dump_msymbols, dump_symtab_1)
8166 (maintenance_print_one_line_table): Update.
8167 * symfile.c (init_entry_point_info, section_is_mapped)
8168 (list_overlays_command, simple_read_overlay_table)
8169 (simple_overlay_update_1): Update.
8170 * stap-probe.c (handle_stap_probe): Update.
8171 * stabsread.c (dbx_init_float_type, define_symbol)
8172 (read_one_struct_field, read_enum_type, read_range_type): Update.
8173 * source.c (info_line_command): Update.
8174 * python/python.c (gdbpy_source_objfile_script)
8175 (gdbpy_execute_objfile_script): Update.
8176 * python/py-type.c (save_objfile_types): Update.
8177 * python/py-objfile.c (py_free_objfile): Update.
8178 * python/py-inferior.c (python_new_objfile): Update.
8179 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
8180 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
8181 (maintenance_check_psymtabs): Update.
8182 * printcmd.c (info_address_command): Update.
8183 * objfiles.h (struct objfile) <arch>: New method, from
8184 get_objfile_arch.
8185 (get_objfile_arch): Don't declare.
8186 * objfiles.c (get_objfile_arch): Remove.
8187 (filter_overlapping_sections): Update.
8188 * minsyms.c (msymbol_is_function): Update.
8189 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
8190 (output_nondebug_symbol): Update.
8191 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
8192 (mdebug_expand_psymtab): Update.
8193 * machoread.c (macho_add_oso_symfile): Update.
8194 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
8195 Update.
8196 * linux-fork.c (checkpoint_command): Update.
8197 * linespec.c (convert_linespec_to_sals): Update.
8198 * jit.c (finalize_symtab): Update.
8199 * infrun.c (insert_exception_resume_from_probe): Update.
8200 * ia64-tdep.c (ia64_find_unwind_table): Update.
8201 * hppa-tdep.c (internalize_unwinds): Update.
8202 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
8203 Update.
8204 * gcore.c (call_target_sbrk): Update.
8205 * elfread.c (record_minimal_symbol, elf_symtab_read)
8206 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
8207 (elf_gnu_ifunc_resolve_by_got): Update.
8208 * dwarf2/read.c (create_addrmap_from_index)
8209 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
8210 (read_debug_names_from_section)
8211 (process_psymtab_comp_unit_reader, add_partial_symbol)
8212 (add_partial_subprogram, process_full_comp_unit)
8213 (read_file_scope, read_func_scope, read_lexical_block_scope)
8214 (read_call_site_scope, dwarf2_ranges_read)
8215 (dwarf2_record_block_ranges, dwarf2_add_field)
8216 (mark_common_block_symbol_computed, read_tag_pointer_type)
8217 (read_tag_string_type, dwarf2_init_float_type)
8218 (dwarf2_init_complex_target_type, read_base_type)
8219 (partial_die_info::read, partial_die_info::read)
8220 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
8221 (dwarf2_fetch_die_loc_sect_off): Update.
8222 * dwarf2/loc.c (dwarf2_find_location_expression)
8223 (class dwarf_evaluate_loc_desc, rw_pieced_value)
8224 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
8225 (dwarf2_loc_desc_get_symbol_read_needs)
8226 (locexpr_describe_location_piece, locexpr_describe_location_1)
8227 (loclist_describe_location): Update.
8228 * dwarf2/index-write.c (write_debug_names): Update.
8229 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
8230 * dtrace-probe.c (dtrace_process_dof): Update.
8231 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
8232 (process_one_symbol): Update.
8233 * ctfread.c (ctf_init_float_type, read_base_type): Update.
8234 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
8235 (coff_read_enum_type): Update.
8236 * cli/cli-cmds.c (edit_command, list_command): Update.
8237 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
8238 * breakpoint.c (create_overlay_event_breakpoint)
8239 (create_longjmp_master_breakpoint)
8240 (create_std_terminate_master_breakpoint)
8241 (create_exception_master_breakpoint, get_sal_arch): Update.
8242 * block.c (block_gdbarch): Update.
8243 * annotate.c (annotate_source_line): Update.
8244
8245 2020-04-17 Tom Tromey <tromey@adacore.com>
8246
8247 * auto-load.c (show_auto_load_cmd): Remove.
8248 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
8249 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
8250 (maintenance_print_arc_command): Remove.
8251 * tui/tui-win.c (tui_command): Remove.
8252 (tui_get_cmd_list): Use add_basic_prefix_cmd.
8253 * tui/tui-layout.c (tui_layout_command): Remove.
8254 (_initialize_tui_layout): Use add_basic_prefix_cmd.
8255 * python/python.c (user_set_python, user_show_python): Remove.
8256 (_initialize_python): Use add_basic_prefix_cmd,
8257 add_show_prefix_cmd.
8258 * guile/guile.c (set_guile_command, show_guile_command): Remove.
8259 (install_gdb_commands): Use add_basic_prefix_cmd,
8260 add_show_prefix_cmd.
8261 (info_guile_command): Remove.
8262 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
8263 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
8264 add_show_prefix_cmd.
8265 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
8266 Remove do_set and do_show parameters.
8267 * cli/cli-style.c (set_style, show_style): Remove.
8268 (_initialize_cli_style): Use add_basic_prefix_cmd,
8269 add_show_prefix_cmd.
8270 (cli_style_option::add_setshow_commands): Remove do_set and
8271 do_show parameters.
8272 (cli_style_option::add_setshow_commands): Use
8273 add_basic_prefix_cmd, add_show_prefix_cmd.
8274 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
8275 (set_style_name): Remove.
8276 * cli/cli-dump.c (dump_command, append_command): Remove.
8277 (srec_dump_command, ihex_dump_command, verilog_dump_command)
8278 (tekhex_dump_command, binary_dump_command)
8279 (binary_append_command): Remove.
8280 (_initialize_cli_dump): Use add_basic_prefix_cmd.
8281 * windows-tdep.c (w32_prefix_command_valid): Remove global.
8282 (init_w32_command_list): Remove; move into ...
8283 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
8284 * valprint.c (set_print, show_print, set_print_raw)
8285 (show_print_raw): Remove.
8286 (_initialize_valprint): Use add_basic_prefix_cmd,
8287 add_show_prefix_cmd.
8288 * typeprint.c (set_print_type, show_print_type): Remove.
8289 (_initialize_typeprint): Use add_basic_prefix_cmd,
8290 add_show_prefix_cmd.
8291 * record.c (set_record_command, show_record_command): Remove.
8292 (_initialize_record): Use add_basic_prefix_cmd,
8293 add_show_prefix_cmd.
8294 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
8295 add_show_prefix_cmd.
8296 (info_command, show_command, set_debug, show_debug): Remove.
8297 * top.h (set_history, show_history): Don't declare.
8298 * top.c (set_history, show_history): Remove.
8299 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
8300 (unset_tdesc_cmd): Remove.
8301 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
8302 add_show_prefix_cmd.
8303 * symtab.c (info_module_command): Remove.
8304 (_initialize_symtab): Use add_basic_prefix_cmd.
8305 * symfile.c (overlay_command): Remove.
8306 (_initialize_symfile): Use add_basic_prefix_cmd.
8307 * sparc64-tdep.c (info_adi_command): Remove.
8308 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
8309 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
8310 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
8311 add_show_prefix_cmd.
8312 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
8313 (_initialize_serial): Use add_basic_prefix_cmd,
8314 add_show_prefix_cmd.
8315 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
8316 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
8317 add_show_prefix_cmd.
8318 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
8319 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
8320 add_show_prefix_cmd.
8321 * riscv-tdep.c (show_riscv_command, set_riscv_command)
8322 (show_debug_riscv_command, set_debug_riscv_command): Remove.
8323 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
8324 add_show_prefix_cmd.
8325 * remote.c (remote_command, set_remote_cmd): Remove.
8326 (_initialize_remote): Use add_basic_prefix_cmd.
8327 * record-full.c (set_record_full_command)
8328 (show_record_full_command): Remove.
8329 (_initialize_record_full): Use add_basic_prefix_cmd,
8330 add_show_prefix_cmd.
8331 * record-btrace.c (cmd_set_record_btrace)
8332 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
8333 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
8334 (cmd_show_record_btrace_pt): Remove.
8335 (_initialize_record_btrace): Use add_basic_prefix_cmd,
8336 add_show_prefix_cmd.
8337 * ravenscar-thread.c (set_ravenscar_command)
8338 (show_ravenscar_command): Remove.
8339 (_initialize_ravenscar): Use add_basic_prefix_cmd,
8340 add_show_prefix_cmd.
8341 * mips-tdep.c (show_mips_command, set_mips_command)
8342 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
8343 add_show_prefix_cmd.
8344 * maint.c (maintenance_command, maintenance_info_command)
8345 (maintenance_check_command, maintenance_print_command)
8346 (maintenance_set_cmd, maintenance_show_cmd): Remove.
8347 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
8348 add_show_prefix_cmd.
8349 (show_per_command_cmd): Remove.
8350 * maint-test-settings.c (maintenance_set_test_settings_cmd):
8351 Remove.
8352 (maintenance_show_test_settings_cmd): Remove.
8353 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
8354 add_show_prefix_cmd.
8355 * maint-test-options.c (maintenance_test_options_command):
8356 Remove.
8357 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
8358 * macrocmd.c (macro_command): Remove
8359 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8360 * language.c (set_check, show_check): Remove.
8361 (_initialize_language): Use add_basic_prefix_cmd,
8362 add_show_prefix_cmd.
8363 * infcmd.c (unset_command): Remove.
8364 (_initialize_infcmd): Use add_basic_prefix_cmd.
8365 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8366 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8367 add_show_prefix_cmd.
8368 * go32-nat.c (go32_info_dos_command): Remove.
8369 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8370 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8371 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8372 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8373 (_initialize_frame): Use add_basic_prefix_cmd,
8374 add_show_prefix_cmd.
8375 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8376 (_initialize_dcache): Use add_basic_prefix_cmd,
8377 add_show_prefix_cmd.
8378 * cp-support.c (maint_cplus_command): Remove.
8379 (_initialize_cp_support): Use add_basic_prefix_cmd.
8380 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8381 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8382 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8383 add_basic_prefix_cmd, add_show_prefix_cmd.
8384 * breakpoint.c (save_command): Remove.
8385 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8386 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8387 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8388 add_show_prefix_cmd.
8389 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8390 (set_ada_command, show_ada_command): Remove.
8391 (_initialize_ada_language): Use add_basic_prefix_cmd,
8392 add_show_prefix_cmd.
8393 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8394
8395 2020-04-16 Kamil Rytarowski <n54@gmx.com>
8396
8397 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8398 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8399
8400 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8401
8402 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8403 warning messages.
8404
8405 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8406
8407 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8408 import table is not at beginning of .idata section.
8409
8410 2020-04-16 Pedro Alves <palves@redhat.com>
8411
8412 * inferior.c (delete_inferior): Use delete operator directly
8413 instead of delete_program_space.
8414 * progspace.c (add_program_space): New, factored out from
8415 program_space::program_space.
8416 (remove_program_space): New, factored out from
8417 delete_program_space.
8418 (program_space::program_space): Remove intro comment. Rewrite.
8419 (program_space::~program_space): Remove intro comment. Call
8420 remove_program_space.
8421 (delete_program_space): Delete.
8422 * progspace.h (program_space::program_space): Make explicit. Move
8423 intro comment here, adjusted.
8424 (program_space::~program_space): Move intro comment here,
8425 adjusted.
8426 (delete_program_space): Remove.
8427
8428 2020-04-16 Tom Tromey <tromey@adacore.com>
8429
8430 * windows-nat.c (windows_nat::handle_access_violation): New
8431 function.
8432 * nat/windows-nat.h (handle_access_violation): Declare.
8433 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8434 windows-nat.c. Call handle_access_violation.
8435
8436 2020-04-16 Tom de Vries <tdevries@suse.de>
8437
8438 PR symtab/25791
8439 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8440 CUs without psymtab.
8441
8442 2020-04-16 Kevin Buettner <kevinb@redhat.com>
8443
8444 * python/python.c (do_start_initialization): Don't call
8445 PyEval_InitThreads for Python 3.9 and beyond.
8446
8447 2020-04-15 Kamil Rytarowski <n54@gmx.com>
8448
8449 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8450 thread functions.
8451 (obsd_nat_target::wait): Likewise.
8452
8453 2020-04-15 Tom Tromey <tromey@adacore.com>
8454
8455 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8456 (DEBUG_EXCEPT): Use debug_printf.
8457
8458 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8459
8460 * completer.c (class completion_tracker::completion_hash_entry)
8461 <hash_name>: New member function.
8462 (completion_tracker::discard_completions): New callback to hash a
8463 completion_hash_entry, pass this to htab_create_alloc.
8464
8465 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8466
8467 * windows-nat.c (windows_make_so): Warn rather than stopping with
8468 an error if realpath() fails.
8469
8470 2020-04-14 Kamil Rytarowski <n54@gmx.com>
8471
8472 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8473 (nbsd_nat_target::info_proc): Add do_status.
8474
8475 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8476 Tom de Vries <tdevries@suse.de>
8477
8478 PR symtab/25718
8479 * psympriv.h (struct partial_symtab::read_symtab)
8480 (struct partial_symtab::expand_psymtab)
8481 (struct partial_symtab::read_dependencies): Update comments.
8482 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8483 read_symtab for includer.
8484 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8485 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8486 (struct dwarf2_include_psymtab::m_readin): Remove.
8487 (struct dwarf2_include_psymtab::includer): New member function.
8488 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8489
8490 2020-04-14 Tom de Vries <tdevries@suse.de>
8491
8492 PR symtab/25720
8493 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8494 with NULL symbol_matcher and lookup_name.
8495 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8496 and lookup_name.
8497 * dwarf2/read.c (dw2_expand_symtabs_matching)
8498 (dw2_debug_names_expand_symtabs_matching): Same.
8499 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8500 Make lookup_name a pointer. Update comment.
8501 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8502 lookup_name being a pointer.
8503 * symfile.c (expand_symtabs_matching): Same.
8504 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8505 * linespec.c (iterate_over_all_matching_symtabs): Same.
8506
8507 2020-04-13 Tom Tromey <tom@tromey.com>
8508
8509 * run-on-main-thread.c: Update include.
8510 * unittests/main-thread-selftests.c: Update include.
8511 * tui/tui-win.c: Update include.
8512 * tui/tui-io.c: Update include.
8513 * tui/tui-interp.c: Update include.
8514 * tui/tui-hooks.c: Update include.
8515 * top.h: Update include.
8516 * top.c: Update include.
8517 * ser-base.c: Update include.
8518 * remote.c: Update include.
8519 * remote-notif.c: Update include.
8520 * remote-fileio.c: Update include.
8521 * record-full.c: Update include.
8522 * record-btrace.c: Update include.
8523 * python/python.c: Update include.
8524 * posix-hdep.c: Update include.
8525 * mingw-hdep.c: Update include.
8526 * mi/mi-main.c: Update include.
8527 * mi/mi-interp.c: Update include.
8528 * main.c: Update include.
8529 * linux-nat.c: Update include.
8530 * interps.c: Update include.
8531 * infrun.c: Update include.
8532 * inf-loop.c: Update include.
8533 * event-top.c: Update include.
8534 * event-loop.c: Move to ../gdbsupport/.
8535 * event-loop.h: Move to ../gdbsupport/.
8536 * async-event.h: Update include.
8537 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8538
8539 2020-04-13 Tom Tromey <tom@tromey.com>
8540
8541 * tui/tui-win.c: Include async-event.h.
8542 * remote.c: Include async-event.h.
8543 * remote-notif.c: Include async-event.h.
8544 * record-full.c: Include async-event.h.
8545 * record-btrace.c: Include async-event.h.
8546 * infrun.c: Include async-event.h.
8547 * event-top.c: Include async-event.h.
8548 * event-loop.h: Move some declarations to async-event.h.
8549 * event-loop.c: Don't include ser-event.h or top.h. Move some
8550 code to async-event.c.
8551 * async-event.h: New file.
8552 * async-event.c: New file.
8553 * Makefile.in (COMMON_SFILES): Add async-event.c.
8554 (HFILES_NO_SRCDIR): Add async-event.h.
8555
8556 2020-04-13 Tom Tromey <tom@tromey.com>
8557
8558 * utils.c (flush_streams): New function.
8559 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8560
8561 2020-04-13 Tom Tromey <tom@tromey.com>
8562
8563 * event-loop.c (handle_file_event): Use warning, not
8564 printf_unfiltered.
8565
8566 2020-04-13 Tom Tromey <tom@tromey.com>
8567
8568 * event-loop.c: Include <chrono>.
8569
8570 2020-04-13 Tom Tromey <tom@tromey.com>
8571
8572 * gdb_select.h: Move to ../gdbsupport/.
8573 * event-loop.c: Update include path.
8574 * top.c: Update include path.
8575 * ser-base.c: Update include path.
8576 * ui-file.c: Update include path.
8577 * ser-tcp.c: Update include path.
8578 * guile/scm-ports.c: Update include path.
8579 * posix-hdep.c: Update include path.
8580 * ser-unix.c: Update include path.
8581 * gdb_usleep.c: Update include path.
8582 * mingw-hdep.c: Update include path.
8583 * inflow.c: Update include path.
8584 * infrun.c: Update include path.
8585 * event-top.c: Update include path.
8586
8587 2020-04-13 Tom Tromey <tom@tromey.com>
8588
8589 * configure: Rebuild.
8590 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8591
8592 2020-04-13 Tom Tromey <tom@tromey.com>
8593
8594 * event-loop.h (start_event_loop): Don't declare.
8595 * event-loop.c (start_event_loop): Move...
8596 * main.c (start_event_loop): ...here. Now static.
8597
8598 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8599
8600 * MAINTAINERS: Update my email address.
8601
8602 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8603
8604 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8605 IP_ALL.
8606
8607 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8608
8609 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
8610 (nbsd_nat_target::info_proc): Add do_cmdline.
8611
8612 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8613
8614 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
8615 (nbsd_nat_target::info_proc): Add do_cwd.
8616
8617 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8618
8619 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8620
8621 2020-04-11 Kamil Rytarowski <n54@gmx.com>
8622
8623 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8624 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8625 (nbsd_nat_target::info_proc): New functions.
8626 * nbsd-nat.c (kinfo_get_vmmap): New function.
8627 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8628 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8629 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8630 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8631 functions.
8632 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8633 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8634 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8635 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8636 (KINFO_VME_FLAG_GROWS_DOWN): New.
8637
8638 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8639
8640 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8641 bit shift.
8642
8643 2020-04-10 Tom Tromey <tromey@adacore.com>
8644
8645 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8646
8647 2020-04-10 Tom Tromey <tromey@adacore.com>
8648
8649 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8650 separate debug files.
8651
8652 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
8653
8654 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8655 Move to...
8656 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8657 ... here.
8658 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8659 Check for STATUS_WX86_BREAKPOINT.
8660 (windows_nat_target::wait): Same.
8661
8662 2020-04-10 Tom de Vries <tdevries@suse.de>
8663
8664 PR cli/25808
8665 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8666
8667 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8668
8669 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8670 (Write After Approval): Remove Tom de Vries.
8671
8672 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8673
8674 revert partially:
8675 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8676
8677 * buildsym.c (record_line): Fix undefined behavior and preserve
8678 lines at eof.
8679
8680 2020-04-09 Kamil Rytarowski <n54@gmx.com>
8681
8682 * auxv.h (svr4_auxv_parse): New.
8683 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8684 and generic_auxv_parse.
8685 (svr4_auxv_parse): Add.
8686 * obsd-tdep.c: Include "auxv.h".
8687 (obsd_auxv_parse): Remove.
8688 (obsd_init_abi): Remove comment.
8689 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8690 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8691 * nbsd-tdep.c: Include "auxv.h".
8692 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8693
8694 2020-04-08 Tom Tromey <tromey@adacore.com>
8695
8696 * nat/windows-nat.h (last_wait_event): Don't declare.
8697 (wait_for_debug_event): Update comment.
8698 * nat/windows-nat.c (last_wait_event): Now static.
8699
8700 2020-04-08 Tom Tromey <tromey@adacore.com>
8701
8702 * windows-nat.c (wait_for_debug_event): Move to
8703 nat/windows-nat.c.
8704 * nat/windows-nat.h (wait_for_debug_event): Declare.
8705 * nat/windows-nat.c (wait_for_debug_event): Move from
8706 windows-nat.c. No longer static.
8707
8708 2020-04-08 Tom Tromey <tromey@adacore.com>
8709
8710 * windows-nat.c (get_windows_debug_event): Use
8711 fetch_pending_stop.
8712 * nat/windows-nat.h (fetch_pending_stop): Declare.
8713 * nat/windows-nat.c (fetch_pending_stop): New function.
8714
8715 2020-04-08 Tom Tromey <tromey@adacore.com>
8716
8717 * windows-nat.c (windows_continue): Use matching_pending_stop and
8718 continue_last_debug_event.
8719 * nat/windows-nat.h (matching_pending_stop)
8720 (continue_last_debug_event): Declare.
8721 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8722 (matching_pending_stop, continue_last_debug_event): New
8723 functions.
8724
8725 2020-04-08 Tom Tromey <tromey@adacore.com>
8726
8727 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8728 (handle_exception_result): Move to nat/windows-nat.h.
8729 (DEBUG_EXCEPTION_SIMPLE): Remove.
8730 (windows_nat::handle_ms_vc_exception): New function.
8731 (handle_exception): Move to nat/windows-nat.c.
8732 (get_windows_debug_event): Update.
8733 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8734 nat/windows-nat.c.
8735 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8736 (handle_exception_result): Move from windows-nat.c.
8737 (handle_exception): Declare.
8738 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8739 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8740 windows-nat.c.
8741
8742 2020-04-08 Tom Tromey <tromey@adacore.com>
8743
8744 * windows-nat.c (exception_count, event_count): Remove.
8745 (handle_exception, get_windows_debug_event)
8746 (do_initial_windows_stuff): Update.
8747
8748 2020-04-08 Tom Tromey <tromey@adacore.com>
8749
8750 * windows-nat.c (windows_nat::handle_load_dll)
8751 (windows_nat::handle_unload_dll): Rename. No longer static.
8752 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8753 Declare.
8754
8755 2020-04-08 Tom Tromey <tromey@adacore.com>
8756
8757 * complaints.h (stop_whining): Declare at top-level.
8758 (complaint): Don't declare stop_whining.
8759
8760 2020-04-08 Tom Tromey <tromey@adacore.com>
8761
8762 * windows-nat.c (windows_nat::handle_output_debug_string):
8763 Rename. No longer static.
8764 * nat/windows-nat.h (handle_output_debug_string): Declare.
8765
8766 2020-04-08 Tom Tromey <tromey@adacore.com>
8767
8768 * windows-nat.c (current_process_handle, current_process_id)
8769 (main_thread_id, last_sig, current_event, last_wait_event)
8770 (current_windows_thread, desired_stop_thread_id, pending_stops)
8771 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8772 (display_selectors, fake_create_process)
8773 (get_windows_debug_event): Update.
8774 * nat/windows-nat.h (current_process_handle, current_process_id)
8775 (main_thread_id, last_sig, current_event, last_wait_event)
8776 (current_windows_thread, desired_stop_thread_id, pending_stops)
8777 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8778 * nat/windows-nat.c (current_process_handle, current_process_id)
8779 (main_thread_id, last_sig, current_event, last_wait_event)
8780 (current_windows_thread, desired_stop_thread_id, pending_stops)
8781 (siginfo_er): New globals. Move from windows-nat.c.
8782
8783 2020-04-08 Tom Tromey <tromey@adacore.com>
8784
8785 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8786 (handle_load_dll): Update.
8787 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8788
8789 2020-04-08 Tom Tromey <tromey@adacore.com>
8790
8791 * windows-nat.c (enum thread_disposition_type): Move to
8792 nat/windows-nat.h.
8793 (windows_nat::thread_rec): Rename from thread_rec. No longer
8794 static.
8795 (windows_add_thread, windows_nat_target::fetch_registers)
8796 (windows_nat_target::store_registers, handle_exception)
8797 (windows_nat_target::resume, get_windows_debug_event)
8798 (windows_nat_target::get_tib_address)
8799 (windows_nat_target::thread_name)
8800 (windows_nat_target::thread_alive): Update.
8801 * nat/windows-nat.h (enum thread_disposition_type): Move from
8802 windows-nat.c.
8803 (thread_rec): Declare.
8804
8805 2020-04-08 Tom Tromey <tromey@adacore.com>
8806
8807 * windows-nat.c: Add "using namespace".
8808 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8809 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8810
8811 2020-04-08 Tom Tromey <tromey@adacore.com>
8812
8813 * nat/windows-nat.h (struct windows_thread_info): Declare
8814 destructor.
8815 * nat/windows-nat.c (~windows_thread_info): New.
8816
8817 2020-04-08 Tom Tromey <tromey@adacore.com>
8818
8819 PR gdb/22992
8820 * windows-nat.c (current_event): Update comment.
8821 (last_wait_event, desired_stop_thread_id): New globals.
8822 (struct pending_stop): New.
8823 (pending_stops): New global.
8824 (windows_nat_target) <stopped_by_sw_breakpoint>
8825 <supports_stopped_by_sw_breakpoint>: New methods.
8826 (windows_fetch_one_register): Add assertions. Adjust PC.
8827 (windows_continue): Handle pending stops. Suspend other threads
8828 when stepping. Use last_wait_event
8829 (wait_for_debug_event): New function.
8830 (get_windows_debug_event): Use wait_for_debug_event. Handle
8831 pending stops. Queue spurious stops.
8832 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8833 (windows_nat_target::kill): Use wait_for_debug_event.
8834 * nat/windows-nat.h (struct windows_thread_info)
8835 <stopped_at_software_breakpoint>: New field.
8836 * nat/windows-nat.c (windows_thread_info::resume): Clear
8837 stopped_at_software_breakpoint.
8838
8839 2020-04-08 Tom Tromey <tromey@adacore.com>
8840
8841 * windows-nat.c (enum thread_disposition_type): New.
8842 (thread_rec): Replace "get_context" parameter with "disposition";
8843 change type.
8844 (windows_add_thread, windows_nat_target::fetch_registers)
8845 (windows_nat_target::store_registers, handle_exception)
8846 (windows_nat_target::resume, get_windows_debug_event)
8847 (windows_nat_target::get_tib_address)
8848 (windows_nat_target::thread_name)
8849 (windows_nat_target::thread_alive): Update.
8850
8851 2020-04-08 Tom Tromey <tromey@adacore.com>
8852
8853 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8854 (windows_continue): Use windows_continue::resume.
8855 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8856 resume>: Declare new methods.
8857 * nat/windows-nat.c: New file.
8858 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8859
8860 2020-04-08 Tom Tromey <tromey@adacore.com>
8861
8862 * windows-nat.c (windows_add_thread, windows_delete_thread)
8863 (windows_nat_target::fetch_registers)
8864 (windows_nat_target::store_registers, fake_create_process)
8865 (windows_nat_target::resume, windows_nat_target::resume)
8866 (get_windows_debug_event, windows_nat_target::wait)
8867 (windows_nat_target::pid_to_str)
8868 (windows_nat_target::get_tib_address)
8869 (windows_nat_target::get_ada_task_ptid)
8870 (windows_nat_target::thread_name)
8871 (windows_nat_target::thread_alive): Use lwp, not tid.
8872
8873 2020-04-08 Tom Tromey <tromey@adacore.com>
8874
8875 * windows-nat.c (handle_exception)
8876 (windows_nat_target::thread_name): Update.
8877 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8878 <name>: Now unique_xmalloc_ptr.
8879
8880 2020-04-08 Tom Tromey <tromey@adacore.com>
8881
8882 * windows-nat.c (thread_rec)
8883 (windows_nat_target::fetch_registers): Update.
8884 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8885 Update comment.
8886 <debug_registers_changed, reload_context>: Now bool.
8887
8888 2020-04-08 Tom Tromey <tromey@adacore.com>
8889
8890 * windows-nat.c (windows_add_thread): Use new.
8891 (windows_init_thread_list, windows_delete_thread): Use delete.
8892 (get_windows_debug_event): Update.
8893 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8894 destructor, and initializers.
8895
8896 2020-04-08 Tom Tromey <tromey@adacore.com>
8897
8898 * windows-nat.c (struct windows_thread_info): Remove.
8899 * nat/windows-nat.h: New file.
8900
8901 2020-04-08 Tom Tromey <tromey@adacore.com>
8902
8903 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8904 (thread_rec, windows_add_thread, windows_delete_thread)
8905 (windows_continue): Update.
8906
8907 2020-04-08 Tom Tromey <tromey@adacore.com>
8908
8909 * windows-nat.c (struct windows_thread_info): Remove typedef.
8910 (thread_head): Remove.
8911 (thread_list): New global.
8912 (thread_rec, windows_add_thread, windows_init_thread_list)
8913 (windows_delete_thread, windows_continue): Update.
8914
8915 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8916
8917 * windows-tdep.h (windows_init_abi): Add comment.
8918 (cygwin_init_abi): New declaration.
8919 * windows-tdep.c: Split signal enumeration in two, one for
8920 Windows and one for Cygwin.
8921 (windows_gdb_signal_to_target): Only deal with signal of the
8922 Windows OS ABI.
8923 (cygwin_gdb_signal_to_target): New function.
8924 (windows_init_abi): Rename to windows_init_abi_common, don't set
8925 gdb_signal_to_target gdbarch method. Add new new function with
8926 this name.
8927 (cygwin_init_abi): New function.
8928 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8929 comment. Don't call windows_init_abi.
8930 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8931 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8932 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8933 i386_windows_init_abi_common, don't call windows_init_abi. Add
8934 a new function of this name.
8935 (i386_cygwin_init_abi): New function.
8936 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8937 OS ABI Cygwin.
8938
8939 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8940
8941 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8942 parameter.c.
8943 (dwarf2_read_gdb_index): Update.
8944
8945 2020-04-07 Kamil Rytarowski <n54@gmx.com>
8946
8947 * nbsd-tdep.c: Include "objfiles.h".
8948 (nbsd_skip_solib_resolver): New.
8949 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8950
8951 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8952
8953 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8954 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8955 with DW_LLE_base_addressx are being emitted in DWARFv5.
8956 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8957 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8958 unsigned integer.
8959
8960 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8961
8962 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8963 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8964 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8965 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8966 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8967 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8968 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8969
8970
8971 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8972
8973 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8974 (read_loclist_index): New function definition.
8975 (lookup_loclist_base): New function definition.
8976 (read_loclist_header): New function definition.
8977 (dwarf2_cu): Add loclist_base and loclist_header field.
8978 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8979 (read_full_die_1): Read the value of DW_AT_loclists_base.
8980 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8981 (read_attribute_value): Handle DW_FORM_loclistx.
8982 (skip_one_die): Handle DW_FORM_loclistx.
8983 (loclist_header): New structure declaration.
8984 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8985
8986 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8987
8988 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8989 constructor. Remove `addr` parameter from other constructor and
8990 add `per_cu` parameter.
8991 * dwarf2/read.c (create_partial_symtab): Update.
8992
8993 2020-04-07 Tom de Vries <tdevries@suse.de>
8994
8995 PR symtab/25796
8996 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8997 (partial_die_info::fixup): Inherit has_const_value.
8998
8999 2020-04-07 Tom de Vries <tdevries@suse.de>
9000
9001 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
9002 symbols without address.
9003
9004 2020-04-06 Kamil Rytarowski <n54@gmx.com>
9005
9006 * nbsd-nat.h (struct thread_info): Add forward declaration.
9007 (nbsd_nat_target::thread_alive): Add.
9008 (nbsd_nat_target::thread_name): Likewise.
9009 (nbsd_nat_target::update_thread_list): Likewise.
9010 (update_thread_list::post_attach): Likewise.
9011 (post_attach::pid_to_str): Likewise.
9012 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
9013 (nbsd_thread_lister): Add.
9014 (nbsd_nat_target::thread_alive): Likewise.
9015 (nbsd_nat_target::thread_name): Likewise.
9016 (nbsd_add_threads): Likewise.
9017 (update_thread_list::post_attach): Likewise.
9018 (nbsd_nat_target::update_thread_list): Likewise.
9019 (post_attach::pid_to_str): Likewise.
9020
9021 2020-04-06 Tom Tromey <tromey@adacore.com>
9022
9023 * ada-valprint.c (print_variant_part): Extract the variant field.
9024 (print_field_values): Use the field as the outer value when
9025 recursing.
9026
9027 2020-04-06 Tom Tromey <tromey@adacore.com>
9028
9029 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
9030 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
9031 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
9032 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
9033 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
9034
9035 2020-04-06 Tom Tromey <tromey@adacore.com>
9036
9037 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
9038 TYPE_CODE_ERROR.
9039
9040 2020-04-06 Kamil Rytarowski <n54@gmx.com>
9041
9042 * nbsd-tdep.c: Include "gdbarch.h".
9043 Define enum with NetBSD signal numbers.
9044 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
9045 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
9046 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
9047 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
9048 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
9049 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
9050 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
9051 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9052 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
9053 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9054 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9055 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
9056
9057 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
9058
9059 PR gdb/25325
9060 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
9061
9062 2020-04-03 Tom Tromey <tromey@adacore.com>
9063
9064 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
9065 Read constant block.
9066
9067 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9068
9069 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
9070 (gdb_bfd_get_full_section_contents): New declaration.
9071 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
9072 * windows-tdep.c (is_linked_with_cygwin_dll): Use
9073 gdb_bfd_get_full_section_contents.
9074
9075 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9076
9077 * exec.c (build_section_table): Replace internal_error with
9078 gdb_assert.
9079 (section_table_xfer_memory_partial): Likewise.
9080 * mdebugread.c (parse_partial_symbols): Likewise.
9081 * psymtab.c (lookup_partial_symbol): Likewise.
9082 * utils.c (wrap_here): Likewise.
9083
9084 2020-04-02 Tom Tromey <tromey@adacore.com>
9085
9086 * f-lang.c (build_fortran_types): Use arch_type to initialize
9087 builtin_complex_s32 in the TYPE_CODE_ERROR case.
9088
9089 2020-04-02 Tom Tromey <tromey@adacore.com>
9090
9091 * dwarf2/read.c (partial_die_info::read): Do not create a vector
9092 of attributes.
9093
9094 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
9095 Bernd Edlinger <bernd.edlinger@hotmail.de>
9096 Tom Tromey <tromey@adacore.com>
9097
9098 * buildsym.c (buildsym_compunit::record_line): Remove
9099 deduplication code.
9100
9101 2020-04-02 Tom de Vries <tdevries@suse.de>
9102
9103 PR ada/24671
9104 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
9105
9106 2020-04-02 Tom de Vries <tdevries@suse.de>
9107
9108 * dwarf2/read.c (dwarf2_gdb_index_functions,
9109 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
9110 NULL.
9111 * psymtab.c (psym_lookup_global_symbol_language): New function.
9112 (psym_functions): Init psym_lookup_global_symbol_language with
9113 psym_lookup_global_symbol_language.
9114 * symfile-debug.c (debug_sym_quick_functions): Init
9115 lookup_global_symbol_language with NULL.
9116 * symfile.c (set_initial_language): Remove fixme comment.
9117 * symfile.h (struct quick_symbol_functions): Add
9118 lookup_global_symbol_language.
9119 * symtab.c (find_quick_global_symbol_language): New function.
9120 (find_main_name): Use find_quick_global_symbol_language.
9121
9122 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9123
9124 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
9125
9126 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9127
9128 * buildsym.c (record_line): Fix undefined behavior and preserve
9129 lines at eof.
9130
9131 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9132
9133 * buildsym.c (record_line): Fix the resizing condition.
9134
9135 2020-04-01 Tom Tromey <tom@tromey.com>
9136
9137 * value.h (value_literal_complex): Add comment.
9138 * valops.c (value_literal_complex): Refer to value.h.
9139
9140 2020-04-01 Tom Tromey <tom@tromey.com>
9141
9142 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
9143 (scalar_type): New rule, from typebase.
9144 (typebase): Use scalar_type. Recognize complex types.
9145 (field_name): Handle FLOAT_KEYWORD.
9146 (ident_tokens): Add _Complex and __complex__.
9147
9148 2020-04-01 Tom Tromey <tom@tromey.com>
9149
9150 PR exp/25299:
9151 * valarith.c (promotion_type, complex_binop): New functions.
9152 (scalar_binop): Handle complex numbers. Use promotion_type.
9153 (value_pos, value_neg, value_complement): Handle complex numbers.
9154
9155 2020-04-01 Tom Tromey <tom@tromey.com>
9156
9157 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
9158 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
9159 (parse_number): Handle complex numbers.
9160
9161 2020-04-01 Tom Tromey <tom@tromey.com>
9162
9163 * c-valprint.c (c_decorations): Change complex suffix to "i".
9164
9165 2020-04-01 Tom Tromey <tom@tromey.com>
9166
9167 * valprint.c (generic_value_print_complex): Use accessors.
9168 * value.h (value_real_part, value_imaginary_part): Declare.
9169 * valops.c (value_real_part, value_imaginary_part): New
9170 functions.
9171 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
9172
9173 2020-04-01 Tom Tromey <tom@tromey.com>
9174
9175 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
9176 (read_range_type): Update.
9177 * mdebugread.c (basic_type): Update.
9178 * go-lang.c (build_go_types): Use init_complex_type.
9179 * gdbtypes.h (struct main_type) <complex_type>: New member.
9180 (init_complex_type): Update.
9181 (arch_complex_type): Don't declare.
9182 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
9183 Make name if none given. Use alloc_type_copy. Look for cached
9184 complex type.
9185 (arch_complex_type): Remove.
9186 (gdbtypes_post_init): Use init_complex_type.
9187 * f-lang.c (build_fortran_types): Use init_complex_type.
9188 * dwarf2/read.c (read_base_type): Update.
9189 * d-lang.c (build_d_types): Use init_complex_type.
9190 * ctfread.c (read_base_type): Update.
9191
9192 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9193
9194 * infrun.c (stop_all_threads): Update assertion, plus when
9195 stopping threads, take into account that we might be trying
9196 to stop an all-stop target.
9197 (stop_waiting): Call 'stop_all_threads' if there exists a
9198 non-stop target.
9199
9200 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9201
9202 * target.h (exists_non_stop_target): New function declaration.
9203 * target.c (exists_non_stop_target): New function.
9204
9205 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
9206
9207 PR gdb/24789
9208 * eval.c (is_integral_or_integral_reference): New function.
9209 (evaluate_subexp_standard): Allow integer references in
9210 pointer arithmetic.
9211
9212 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9213
9214 * remote.c (remote_target::remote_parse_stop_reply): Remove the
9215 check for no ptid in the stop reply when the target is non-stop.
9216
9217 2020-04-01 Tom Tromey <tromey@adacore.com>
9218
9219 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
9220 "name" parameter to rvalue reference. Initialize m_name_holder.
9221 <lookup_name_info>: New overloads.
9222 <name>: Return gdb::string_view.
9223 <c_str>: New method.
9224 <make_ignore_params>: Update.
9225 <search_name_hash>: Update.
9226 <language_lookup_name>: Return const char *.
9227 <m_name>: Change type.
9228 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
9229 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
9230 (lookup_name_info::match_any): Update.
9231 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
9232 Update.
9233 * minsyms.c (linkage_name_str): Update.
9234 * language.c (default_symbol_name_matcher): Update.
9235 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
9236 Update.
9237 * ada-lang.c (ada_fold_name): Change parameter to string_view.
9238 (ada_lookup_name_info::ada_lookup_name_info): Update.
9239 (literal_symbol_name_matcher): Update.
9240
9241 2020-04-01 Tom Tromey <tromey@adacore.com>
9242
9243 * psymtab.c (psymtab_search_name): Remove function.
9244 (psym_lookup_symbol): Create search name and lookup name here.
9245 (lookup_partial_symbol): Remove "name" parameter; add
9246 lookup_name.
9247 (psym_expand_symtabs_for_function): Update.
9248
9249 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
9250
9251 PR tui/25597:
9252 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
9253
9254 2020-03-31 Tom Tromey <tromey@adacore.com>
9255
9256 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
9257 memcpy.
9258
9259 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
9260
9261 * features/riscv/32bit-csr.xml: Regenerated.
9262 * features/riscv/64bit-csr.xml: Regenerated.
9263
9264 2020-03-30 Tom Tromey <tromey@adacore.com>
9265
9266 * ada-valprint.c (print_variant_part): Update.
9267 * ada-lang.h (ada_which_variant_applies): Update.
9268 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
9269 outer_valaddr parameters; replace with "outer" value parameter.
9270 (to_fixed_variant_branch_type): Update.
9271
9272 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9273
9274 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
9275 <list>. Remove inclusion of observable.h.
9276 (PPC_DEBUG_CURRENT_VERSION): Move up define.
9277 (struct arch_lwp_info): New struct.
9278 (class ppc_linux_dreg_interface): New class.
9279 (struct ppc_linux_process_info): New struct.
9280 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
9281 <low_new_clone, low_forget_process, low_prepare_to_resume>
9282 <copy_thread_dreg_state, mark_thread_stale>
9283 <mark_debug_registers_changed, register_hw_breakpoint>
9284 <clear_hw_breakpoint, register_wp, clear_wp>
9285 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
9286 <num_memory_accesses, get_trigger_type>
9287 <create_watchpoint_request, hwdebug_point_cmp>
9288 <init_arch_lwp_info, get_arch_lwp_info>
9289 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
9290 methods.
9291 <struct ptid_hash>: New inner struct.
9292 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
9293 members.
9294 (saved_dabr_value, hwdebug_info, max_slots_number)
9295 (struct hw_break_tuple, struct thread_points, ppc_threads)
9296 (have_ptrace_hwdebug_interface)
9297 (hwdebug_find_thread_points_by_tid)
9298 (hwdebug_insert_point, hwdebug_remove_point): Remove.
9299 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
9300 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
9301 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
9302 use m_dreg_interface.
9303 (hwdebug_point_cmp): Change to...
9304 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
9305 reference arguments instead of pointers.
9306 (ppc_linux_nat_target::ranged_break_num_registers): Use
9307 m_dreg_interface.
9308 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
9309 m_dreg_interface. Call register_hw_breakpoint.
9310 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
9311 m_dreg_interface. Call clear_hw_breakpoint.
9312 (get_trigger_type): Change to...
9313 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
9314 comment.
9315 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
9316 use m_dreg_interface. Call register_hw_breakpoint.
9317 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
9318 use m_dreg_interface. Call clear_hw_breakpoint.
9319 (can_use_watchpoint_cond_accel): Change to...
9320 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
9321 method. Update comment, use m_dreg_interface and
9322 m_process_info.
9323 (calculate_dvc): Change to...
9324 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
9325 m_dreg_interface.
9326 (num_memory_accesses): Change to...
9327 (ppc_linux_nat_target::num_memory_accesses): ...this method.
9328 (check_condition): Change to...
9329 (ppc_linux_nat_target::check_condition): ...this method.
9330 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
9331 comment, use m_dreg_interface.
9332 (create_watchpoint_request): Change to...
9333 (ppc_linux_nat_target::create_watchpoint_request): ...this
9334 method. Use m_dreg_interface.
9335 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
9336 m_dreg_interface. Call register_hw_breakpoint or register_wp.
9337 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
9338 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
9339 (ppc_linux_nat_target::low_forget_process)
9340 (ppc_linux_nat_target::low_new_fork)
9341 (ppc_linux_nat_target::low_new_clone)
9342 (ppc_linux_nat_target::low_delete_thread)
9343 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
9344 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
9345 only call mark_thread_stale.
9346 (ppc_linux_thread_exit): Remove.
9347 (ppc_linux_nat_target::stopped_data_address): Change to...
9348 (ppc_linux_nat_target::low_stopped_data_address): This. Add
9349 comment, use m_dreg_interface and m_thread_hw_breakpoints.
9350 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
9351 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
9352 comment. Call low_stopped_data_address.
9353 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
9354 m_dreg_interface.
9355 (ppc_linux_nat_target::masked_watch_num_registers): Use
9356 m_dreg_interface.
9357 (ppc_linux_nat_target::copy_thread_dreg_state)
9358 (ppc_linux_nat_target::mark_thread_stale)
9359 (ppc_linux_nat_target::mark_debug_registers_changed)
9360 (ppc_linux_nat_target::register_hw_breakpoint)
9361 (ppc_linux_nat_target::clear_hw_breakpoint)
9362 (ppc_linux_nat_target::register_wp)
9363 (ppc_linux_nat_target::clear_wp)
9364 (ppc_linux_nat_target::init_arch_lwp_info)
9365 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9366 (_initialize_ppc_linux_nat): Remove observer callback.
9367
9368 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9369
9370 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9371 (ppc_linux_nat_target::auxv_parse)
9372 (ppc_linux_nat_target::read_description)
9373 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9374 Move up.
9375
9376 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9377
9378 * linux-nat.h (low_new_clone): New method.
9379 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9380
9381 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9382
9383 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9384 (dbx_expand_psymtab): ... this.
9385 (start_psymtab): Update.
9386 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9387 (mdebug_expand_psymtab): ... this.
9388 (parse_partial_symbols): Update.
9389 (new_psymtab): Update.
9390 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9391 (xcoff_expand_psymtab): ... this.
9392 (xcoff_start_psymtab): Update.
9393
9394 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9395
9396 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9397 <expand_dependencies>: ... this.
9398 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9399 (partial_symtab::expand_dependencies): ... this.
9400 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9401 Update.
9402 (dwarf2_psymtab::expand_psymtab): Update.
9403 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9404 * mdebugread.c (psymtab_to_symtab_1): Update.
9405 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9406
9407 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9408
9409 * psympriv.h (discard_psymtab): Remove.
9410 * dbxread.c (dbx_end_psymtab): Update.
9411 * xcoffread.c (xcoff_end_psymtab): Update.
9412
9413 2020-03-28 Tom Tromey <tom@tromey.com>
9414
9415 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9416 comment.
9417
9418 2020-03-28 Tom Tromey <tom@tromey.com>
9419
9420 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9421
9422 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
9423
9424 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9425
9426 2020-03-26 John Baldwin <jhb@FreeBSD.org>
9427
9428 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9429
9430 2020-03-26 Tom Tromey <tom@tromey.com>
9431
9432 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9433 (mark_common_block_symbol_computed, read_tag_string_type)
9434 (attr_to_dynamic_prop, read_subrange_type): Update.
9435 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9436 to be methods on struct attribute.
9437 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9438 (read_call_site_scope, partial_die_info::read)
9439 (partial_die_info::read, lookup_die_type, follow_die_ref):
9440 Update.
9441 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9442 from dwarf2_get_ref_die_offset.
9443 (attribute::constant_value): New method, from
9444 dwarf2_get_attr_constant_value.
9445 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9446 Declare method.
9447 <constant_value>: New method.
9448
9449 2020-03-26 Tom Tromey <tom@tromey.com>
9450
9451 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9452 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9453 (dwarf_type_encoding_name): Move to stringify.c.
9454 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9455 * dwarf2/stringify.c: New file.
9456 * dwarf2/stringify.h: New file.
9457
9458 2020-03-26 Tom Tromey <tom@tromey.com>
9459
9460 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9461 Rewrite.
9462
9463 2020-03-26 Tom Tromey <tom@tromey.com>
9464
9465 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9466 methods.
9467 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9468 (lookup_ranges_base): Likewise.
9469 (read_cutu_die_from_dwo, read_full_die_1): Update.
9470
9471 2020-03-26 Tom Tromey <tom@tromey.com>
9472
9473 * dwarf2/read.c (read_import_statement, read_file_scope)
9474 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9475 (read_lexical_block_scope, read_call_site_scope)
9476 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9477 (handle_struct_member_die, process_structure_scope)
9478 (update_enumeration_type_from_children)
9479 (process_enumeration_scope, read_array_type, read_common_block)
9480 (read_namespace, read_module, read_subroutine_type): Update.
9481 (sibling_die): Remove.
9482
9483 2020-03-26 Tom Tromey <tom@tromey.com>
9484
9485 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9486 (build_type_psymtabs_reader, read_structure_type)
9487 (read_enumeration_type, read_full_die_1): Update.
9488 (dwarf2_attr_no_follow): Move to die.h.
9489 * dwarf2/die.h (struct die_info) <attr>: New method.
9490
9491 2020-03-26 Tom Tromey <tom@tromey.com>
9492
9493 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9494 <base_address>: Now an optional.
9495 (dwarf2_find_base_address, dwarf2_rnglists_process)
9496 (dwarf2_ranges_process, fill_in_loclist_baton)
9497 (dwarf2_symbol_mark_computed): Update.
9498
9499 2020-03-26 Tom Tromey <tom@tromey.com>
9500
9501 * dwarf2/read.c (struct die_info): Move to die.h.
9502 * dwarf2/die.h: New file.
9503
9504 2020-03-26 Tom Tromey <tom@tromey.com>
9505
9506 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9507 * dwarf2/read.c
9508 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9509 Move to line-header.c.
9510 (read_checked_initial_length_and_offset, read_formatted_entries):
9511 Likewise.
9512 (dwarf_decode_line_header): Split into two.
9513 * dwarf2/line-header.c
9514 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9515 Move from read.c.
9516 (read_checked_initial_length_and_offset, read_formatted_entries):
9517 Likewise.
9518 (dwarf_decode_line_header): New function, split from read.c.
9519
9520 2020-03-26 Tom Tromey <tom@tromey.com>
9521
9522 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9523 Declare method.
9524 * dwarf2/read.c (read_attribute_value): Update.
9525 (dwarf2_per_objfile::read_line_string): Rename from
9526 read_indirect_line_string.
9527 (read_formatted_entries): Update.
9528
9529 2020-03-26 Tom Tromey <tom@tromey.com>
9530
9531 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9532 variable.
9533
9534 2020-03-26 Tom Tromey <tom@tromey.com>
9535
9536 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9537 const.
9538 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9539 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9540 parameter const.
9541
9542 2020-03-26 Tom Tromey <tom@tromey.com>
9543
9544 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9545 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9546 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9547 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9548
9549 2020-03-26 Tom Tromey <tom@tromey.com>
9550
9551 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9552 file_names_size, file_full_name, file_file_name>: Use const.
9553 <file_name_at, file_names>: Add const overload.
9554 * dwarf2/line-header.c (line_header::file_file_name)
9555 (line_header::file_full_name): Update.
9556
9557 2020-03-26 Tom Tromey <tom@tromey.com>
9558
9559 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9560 (macro_start_file, consume_improper_spaces)
9561 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9562 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9563 (dwarf_decode_macros): Move to macro.c.
9564 * dwarf2/macro.c: New file.
9565 * dwarf2/macro.h: New file.
9566 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9567
9568 2020-03-26 Tom Tromey <tom@tromey.com>
9569
9570 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9571 method.
9572 * dwarf2/section.c: New method. From
9573 read_indirect_string_at_offset_from.
9574 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9575 (read_indirect_string_at_offset_from): Move to section.c.
9576 (read_indirect_string_at_offset): Rewrite.
9577 (read_indirect_line_string_at_offset): Remove.
9578 (read_indirect_string, read_indirect_line_string)
9579 (dwarf_decode_macro_bytes): Update.
9580
9581 2020-03-26 Tom Tromey <tom@tromey.com>
9582
9583 * dwarf2/section.h (struct dwarf2_section_info)
9584 <overload_complaint>: Declare.
9585 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9586 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9587 Rename from dwarf2_section_buffer_overflow_complaint.
9588 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9589 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9590
9591 2020-03-26 Tom Tromey <tom@tromey.com>
9592
9593 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9594 Declare.
9595 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9596 Move from read.c.
9597 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9598 to section.c.
9599
9600 2020-03-26 Tom Tromey <tom@tromey.com>
9601
9602 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9603
9604 2020-03-26 Tom Tromey <tom@tromey.com>
9605
9606 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9607 "builder".
9608 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9609 parameter.
9610 (dwarf_decode_macros): Update.
9611
9612 2020-03-26 Tom Tromey <tom@tromey.com>
9613
9614 * dwarf2/read.c (read_attribute_value): Update.
9615 (read_indirect_string_from_dwz): Move to dwz.c; change into
9616 method.
9617 (dwarf_decode_macro_bytes): Update.
9618 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9619 * dwarf2/dwz.c: New file.
9620 * Makefile.in (COMMON_SFILES): Add dwz.c.
9621
9622 2020-03-26 Tom Tromey <tom@tromey.com>
9623
9624 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9625 * dwarf2/read.c: Add include.
9626 * dwarf2/index-write.c: Add include.
9627 * dwarf2/index-cache.c: Add include.
9628 * dwarf2/dwz.h: New file.
9629
9630 2020-03-25 Tom Tromey <tom@tromey.com>
9631
9632 * compile/compile-object-load.c (get_out_value_type): Mention
9633 correct symbol name in error message.
9634
9635 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
9636
9637 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9638
9639 2020-03-25 Tom de Vries <tdevries@suse.de>
9640
9641 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9642 * symmisc.c (dump_symtab_1): Print user and includes fields.
9643 (maintenance_info_symtabs): Same.
9644
9645 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9646
9647 PR gdb/25534
9648 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9649 (riscv_regcache_cooked_write): New function.
9650 (riscv_push_dummy_call): Use new function.
9651 (riscv_return_value): Likewise.
9652
9653 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9654
9655 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9656 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9657 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9658 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9659 * infrun.c (follow_fork): Likewise.
9660 (follow_fork_inferior): Likewise.
9661 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9662 * linux-nat.h (class linux_nat_target): Likewise.
9663 * remote.c (class remote_target) <follow_fork>: Likewise.
9664 (remote_target::follow_fork): Likewise.
9665 * target-delegates.c: Re-generate.
9666 * target.c (default_follow_fork): Likewise.
9667 (target_follow_fork): Likewise.
9668 * target.h (struct target_ops) <follow_fork>: Likewise.
9669 (target_follow_fork): Likewise.
9670
9671 2020-03-24 Tom de Vries <tdevries@suse.de>
9672
9673 * psymtab.c (maintenance_info_psymtabs): Print user field.
9674
9675 2020-03-20 Tom Tromey <tromey@adacore.com>
9676
9677 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9678 const.
9679 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9680 const.
9681
9682 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
9683
9684 * ptrace.m4: Don't check for ptrace declaration.
9685 * config.in: Re-generate.
9686 * configure: Re-generate.
9687 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9688 not defined.
9689
9690 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9691
9692 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9693 `PTRACE_TYPE_RET'.
9694 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9695 * sparc-nat.c (gdb_ptrace): Likewise.
9696 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9697
9698 2020-03-20 Tom Tromey <tromey@adacore.com>
9699
9700 * c-exp.y (lex_one_token): Fix assert.
9701
9702 2020-03-20 Tom Tromey <tromey@adacore.com>
9703
9704 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9705 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9706 strncpy call.
9707
9708 2020-03-20 Tom Tromey <tromey@adacore.com>
9709
9710 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9711
9712 2020-03-20 Tom Tromey <tromey@adacore.com>
9713
9714 * ada-valprint.c (print_variant_part): Remove parameters; switch
9715 to value-based API.
9716 (print_field_values): Likewise.
9717 (ada_val_print_struct_union): Likewise.
9718 (ada_value_print_1): Update.
9719
9720 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9721
9722 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9723 nbsd_nat_target instead of inf_ptrace_target.
9724 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9725 nbsd_nat_target.
9726
9727 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9728
9729 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9730 it to the ptrace call.
9731 * (store_registers): Likewise.
9732
9733 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9734
9735 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9736 it to the ptrace call.
9737 * (store_registers): Likewise.
9738
9739 2020-03-19 Luis Machado <luis.machado@linaro.org>
9740
9741 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9742 valid, fetch vg value from ptrace.
9743
9744 2020-03-19 Kamil Rytarowski <n54@gmx.com>
9745 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9746 * inf-ptrace.c: Likewise.
9747 * (gdb_ptrace): Add.
9748 * (inf_ptrace_target::resume): Update.
9749 * (inf_ptrace_target::xfer_partial): Likewise.
9750 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9751 * (inf_ptrace_peek_poke): Update.
9752
9753 2020-03-19 Kamil Rytarowski <n54@gmx.com>
9754
9755 * x86-bsd-nat.c (gdb_ptrace): New.
9756 * (x86bsd_dr_set): Add new argument `ptid'.
9757 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9758 x86bsd_dr_set_addr): Update.
9759
9760 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9761
9762 * remote.c (remote_target::process_stop_reply): Handle events for
9763 all threads differently.
9764
9765 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9766
9767 * completer.c (completion_tracker::remove_completion): Define new
9768 function.
9769 * completer.h (completion_tracker::remove_completion): Declare new
9770 function.
9771 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9772 when adding a C++ function symbol.
9773
9774 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9775
9776 * completer.c (completion_tracker::completion_hash_entry): Define
9777 new class.
9778 (advance_to_filename_complete_word_point): Call
9779 recompute_lowest_common_denominator.
9780 (completion_tracker::completion_tracker): Call discard_completions
9781 to setup the hash table.
9782 (completion_tracker::discard_completions): Allow for being called
9783 from the constructor, pass new equal function, and element deleter
9784 when constructing the hash table. Initialise new class member
9785 variables.
9786 (completion_tracker::maybe_add_completion): Remove use of
9787 m_entries_vec, and store more information into m_entries_hash.
9788 (completion_tracker::recompute_lcd_visitor): New function, most
9789 content taken from...
9790 (completion_tracker::recompute_lowest_common_denominator):
9791 ...here, this now just visits each item in the hash calling the
9792 above visitor.
9793 (completion_tracker::build_completion_result): Remove use of
9794 m_entries_vec, call recompute_lowest_common_denominator.
9795 * completer.h (completion_tracker::have_completions): Remove use
9796 of m_entries_vec.
9797 (completion_tracker::completion_hash_entry): Declare new class.
9798 (completion_tracker::recompute_lowest_common_denominator): Change
9799 function signature.
9800 (completion_tracker::recompute_lcd_visitor): Declare new function.
9801 (completion_tracker::m_entries_vec): Delete.
9802 (completion_tracker::m_entries_hash): Initialize to NULL.
9803 (completion_tracker::m_lowest_common_denominator_valid): New
9804 member variable.
9805 (completion_tracker::m_lowest_common_denominator_max_length): New
9806 member variable.
9807
9808 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9809
9810 * regformats/regdef.h: Put reg in gdb namespace.
9811
9812 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9813
9814 * i386-bsd-nat.c (gdb_ptrace): New.
9815 * (i386bsd_fetch_inferior_registers,
9816 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9817 * (i386bsd_fetch_inferior_registers,
9818 i386bsd_store_inferior_registers) Use gdb_ptrace.
9819
9820 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9821
9822 * amd64-bsd-nat.c (gdb_ptrace): New.
9823 * (amd64bsd_fetch_inferior_registers,
9824 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9825 * (amd64bsd_fetch_inferior_registers,
9826 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9827
9828 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9829
9830 * user-regs.c (user_reg::read): Rename to...
9831 (user_reg::xread): ...this.
9832 * (append_user_reg): Rename argument `read' to `xread'.
9833 * (user_reg_add_builtin): Likewise.
9834 * (user_reg_add): Likewise.
9835 * (value_of_user_reg): Likewise.
9836
9837 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9838
9839 * sparc-nat.c (gdb_ptrace): New.
9840 * sparc-nat.c (sparc_fetch_inferior_registers)
9841 (sparc_store_inferior_registers) Remove obsolete comment.
9842 * sparc-nat.c (sparc_fetch_inferior_registers)
9843 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9844 * sparc-nat.c (sparc_fetch_inferior_registers)
9845 (sparc_store_inferior_registers) Use gdb_ptrace.
9846
9847 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9848
9849 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9850 it to the ptrace call.
9851 * sh-nbsd-nat.c (store_registers): Likewise.
9852
9853 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9854
9855 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9856 nbsd_nat_target instead of inf_ptrace_target.
9857 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9858 nbsd_nat_target.
9859
9860 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9861
9862 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9863
9864 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9865
9866 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9867 <sys/sysctl.h>.
9868 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9869
9870 2020-03-17 Tom de Vries <tdevries@suse.de>
9871
9872 PR gdb/23710
9873 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9874 fields.
9875 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9876 fields.
9877 (process_imported_unit_die): Skip import of c++ CUs.
9878
9879 2020-03-16 Tom Tromey <tom@tromey.com>
9880
9881 * p-valprint.c (pascal_object_print_value): Initialize
9882 base_value.
9883
9884 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9885 Shahab Vahedi <shahab@synopsys.com>
9886
9887 * Makefile.in: Add arch/arc.o
9888 * configure.tgt: Likewise.
9889 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9890 (_initialize_arc_tdep): Don't initialize old target descriptions.
9891 (arc_read_description): New function to cache target descriptions.
9892 * arc-tdep.h (arc_read_description): Add proto type.
9893 * arch/arc.c: New file.
9894 * arch/arc.h: Likewise.
9895 * features/Makefile: Replace old target descriptions with new.
9896 * features/arc-arcompact.c: Remove.
9897 * features/arc-arcompact.xml: Likewise.
9898 * features/arc-v2.c: Likewise
9899 * features/arc-v2.xml: Likewise
9900 * features/arc/aux-arcompact.xml: New file.
9901 * features/arc/aux-v2.xml: Likewise.
9902 * features/arc/core-arcompact.xml: Likewise.
9903 * features/arc/core-v2.xml: Likewise.
9904 * features/arc/aux-arcompact.c: Generate.
9905 * features/arc/aux-v2.c: Likewise.
9906 * features/arc/core-arcompact.c: Likewise.
9907 * features/arc/core-v2.c: Likewise.
9908 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9909
9910 2020-03-16 Tom Tromey <tromey@adacore.com>
9911
9912 PR gdb/25663:
9913 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9914 putting value into bcache.
9915
9916 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9917
9918 PR gdb/21500
9919 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9920 to...
9921 (amd64_windows_init_abi_common): ... this. Don't set size of
9922 long type.
9923 (amd64_windows_init_abi): New function.
9924 (amd64_cygwin_init_abi): New function.
9925 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9926 the Cygwin OS ABI.
9927 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9928 comment.
9929
9930 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9931
9932 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9933 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9934 (pe_import_directory_entry): New struct type.
9935 (is_linked_with_cygwin_dll): New function.
9936 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9937 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9938 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9939
9940 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9941
9942 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9943 i386_cygwin_core_osabi_sniffer.
9944
9945 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9946
9947 * i386-cygwin-tdep.c: Rename to...
9948 * i386-windows-tdep.c: ... this.
9949 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9950 i386-windows-tdep.c.
9951 * configure.tgt: Likewise.
9952
9953 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9954
9955 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9956 * osabi.c (gdb_osabi_names): Add "Windows".
9957 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9958 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9959 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9960 i386_cygwin_osabi_sniffer.
9961 (_initialize_i386_cygwin_tdep): Register OS ABI
9962 GDB_OSABI_WINDOWS for i386.
9963 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9964 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9965 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9966 for x86-64.
9967 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9968 when the target matches '*-*-mingw*'.
9969
9970 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9971
9972 * defs.h (enum gdb_osabi): Move to...
9973 * osabi.h (enum gdb_osabi): ... here.
9974 * gdbarch.sh: Include osabi.h in gdbarch.h.
9975 * gdbarch.h: Re-generate.
9976
9977 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9978
9979 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9980 function.
9981 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9982
9983 2020-03-14 Tom Tromey <tom@tromey.com>
9984
9985 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9986 for C++.
9987 (c_type_print_modifier): Likewise. Add "language" parameter.
9988 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9989 (c_type_print_base_1): Update.
9990 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9991 constants.
9992 * type-stack.c (type_stack::insert): Handle tp_atomic and
9993 tp_restrict.
9994 (type_stack::follow_type_instance_flags): Likewise.
9995 (type_stack::follow_types): Likewise. Merge type-following code.
9996 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9997 (space_identifier, cv_with_space_id)
9998 (const_or_volatile_or_space_identifier_noopt)
9999 (const_or_volatile_or_space_identifier): Remove.
10000 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
10001 rules.
10002 (ptr_operator, typebase): Update.
10003 (enum token_flag) <FLAG_C>: New constant.
10004 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
10005 "_Atomic".
10006 (lex_one_token): Handle FLAG_C.
10007
10008 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10009
10010 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
10011 it to the ptrace call.
10012 * m68k-bsd-nat.c (store_registers): Likewise.
10013
10014 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10015
10016 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
10017 gdb_byte *.
10018 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
10019 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
10020 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
10021
10022 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10023
10024 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
10025 nbsd_nat_target instead of inf_ptrace_target.
10026 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10027 nbsd_nat_target.
10028
10029 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10030
10031 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
10032 register_t.
10033
10034 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10035
10036 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
10037 it to the ptrace call.
10038 * alpha-bsd-nat.c (store_registers): Likewise.
10039
10040 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10041
10042 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
10043 includes.
10044 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
10045 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
10046 fill_fpregset): Likewise.
10047
10048 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10049
10050 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
10051 nbsd_nat_target instead of inf_ptrace_target.
10052 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10053 nbsd_nat_target.
10054
10055 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10056
10057 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
10058 register_t.
10059
10060 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10061
10062 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
10063 it to the ptrace call.
10064 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
10065 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
10066 * arm-nbsd-nat.c (store_register): Likewise.
10067 * arm-nbsd-nat.c (store_regs): Likewise.
10068 * arm-nbsd-nat.c (store_fp_register): Likewise.
10069 * arm-nbsd-nat.c (store_fp_regs): Likewise.
10070
10071 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10072
10073 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
10074 nbsd_nat_target instead of inf_ptrace_target.
10075 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10076 nbsd_nat_target.
10077
10078 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10079
10080 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
10081 it to the ptrace call.
10082 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
10083
10084 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10085
10086 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
10087 it to the ptrace call.
10088 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
10089
10090 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10091
10092 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
10093 gdb_byte *.
10094 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
10095
10096 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10097
10098 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
10099 instead of inf_ptrace_target.
10100 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10101 nbsd_nat_target.
10102
10103 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10104
10105 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10106 register_t.
10107
10108 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10109
10110 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10111 register_t.
10112
10113 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10114
10115 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
10116 register_t.
10117
10118 2020-03-13 Tom Tromey <tom@tromey.com>
10119
10120 * value.h (val_print): Don't declare.
10121 * valprint.h (val_print_array_elements)
10122 (val_print_scalar_formatted, generic_val_print): Don't declare.
10123 * valprint.c (generic_val_print_array): Take a struct value.
10124 (generic_val_print_ptr, generic_val_print_memberptr)
10125 (generic_val_print_bool, generic_val_print_int)
10126 (generic_val_print_char, generic_val_print_complex)
10127 (generic_val_print): Remove.
10128 (generic_value_print): Update.
10129 (do_val_print): Remove unused parameters. Don't call
10130 la_val_print.
10131 (val_print): Remove.
10132 (common_val_print): Update. Don't call value_check_printable.
10133 (val_print_scalar_formatted, val_print_array_elements): Remove.
10134 * rust-lang.c (rust_val_print): Remove.
10135 (rust_language_defn): Update.
10136 * p-valprint.c (pascal_val_print): Remove.
10137 (pascal_value_print_inner): Update.
10138 (pascal_object_print_val_fields, pascal_object_print_val):
10139 Remove.
10140 (pascal_object_print_static_field): Update.
10141 * p-lang.h (pascal_val_print): Don't declare.
10142 * p-lang.c (pascal_language_defn): Update.
10143 * opencl-lang.c (opencl_language_defn): Update.
10144 * objc-lang.c (objc_language_defn): Update.
10145 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
10146 * m2-lang.h (m2_val_print): Don't declare.
10147 * m2-lang.c (m2_language_defn): Update.
10148 * language.h (struct language_defn) <la_val_print>: Remove.
10149 * language.c (unk_lang_value_print_inner): Rename. Change
10150 argument types.
10151 (unknown_language_defn, auto_language_defn): Update.
10152 * go-valprint.c (go_val_print): Remove.
10153 * go-lang.h (go_val_print): Don't declare.
10154 * go-lang.c (go_language_defn): Update.
10155 * f-valprint.c (f_val_print): Remove.
10156 * f-lang.h (f_value_print): Don't declare.
10157 * f-lang.c (f_language_defn): Update.
10158 * d-valprint.c (d_val_print): Remove.
10159 * d-lang.h (d_value_print): Don't declare.
10160 * d-lang.c (d_language_defn): Update.
10161 * cp-valprint.c (cp_print_value_fields)
10162 (cp_print_value_fields_rtti, cp_print_value): Remove.
10163 (cp_print_static_field): Update.
10164 * c-valprint.c (c_val_print_array, c_val_print_ptr)
10165 (c_val_print_struct, c_val_print_union, c_val_print_int)
10166 (c_val_print_memberptr, c_val_print): Remove.
10167 * c-lang.h (c_val_print_array, cp_print_value_fields)
10168 (cp_print_value_fields_rtti): Don't declare.
10169 * c-lang.c (c_language_defn, cplus_language_defn)
10170 (asm_language_defn, minimal_language_defn): Update.
10171 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
10172 (ada_val_print_enum): Take a struct value.
10173 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
10174 (ada_val_print): Remove.
10175 (ada_value_print_1): Update.
10176 (printable_val_type): Remove.
10177 * ada-lang.h (ada_val_print): Don't declare.
10178 * ada-lang.c (ada_language_defn): Update.
10179
10180 2020-03-13 Tom Tromey <tom@tromey.com>
10181
10182 * valprint.c (do_val_print): Update.
10183 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
10184 a struct value.
10185 (value_to_value_object_no_release): Declare.
10186 * python/py-value.c (value_to_value_object_no_release): New
10187 function.
10188 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
10189 struct value.
10190 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
10191 function.
10192 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
10193 a struct value.
10194 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
10195 Declare.
10196 (gdbscm_apply_val_pretty_printer): Take a struct value.
10197 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
10198 value.
10199 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
10200 value.
10201 * extension-priv.h (struct extension_language_ops)
10202 <apply_val_pretty_printer>: Take a struct value.
10203 * cp-valprint.c (cp_print_value): Create a struct value.
10204 (cp_print_value): Update.
10205
10206 2020-03-13 Tom Tromey <tom@tromey.com>
10207
10208 * ada-valprint.c (print_field_values): Call common_val_print.
10209
10210 2020-03-13 Tom Tromey <tom@tromey.com>
10211
10212 * ada-valprint.c (val_print_packed_array_elements): Remove
10213 bitoffset and val parameters. Call common_val_print.
10214 (ada_val_print_string): Remove offset, address, and original_value
10215 parameters.
10216 (ada_val_print_array): Update.
10217 (ada_value_print_array): New function.
10218 (ada_value_print_1): Call it.
10219
10220 2020-03-13 Tom Tromey <tom@tromey.com>
10221
10222 * ada-valprint.c (ada_value_print): Use common_val_print.
10223
10224 2020-03-13 Tom Tromey <tom@tromey.com>
10225
10226 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
10227
10228 2020-03-13 Tom Tromey <tom@tromey.com>
10229
10230 * ada-valprint.c (ada_value_print_num): New function.
10231 (ada_value_print_1): Use it.
10232
10233 2020-03-13 Tom Tromey <tom@tromey.com>
10234
10235 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
10236
10237 2020-03-13 Tom Tromey <tom@tromey.com>
10238
10239 * ada-valprint.c (ada_value_print_ptr): New function.
10240 (ada_value_print_1): Use it.
10241
10242 2020-03-13 Tom Tromey <tom@tromey.com>
10243
10244 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
10245 call common_val_print.
10246 (ada_val_print_1): Update.
10247 (ada_value_print_1): New function.
10248 (ada_value_print_inner): Rewrite.
10249
10250 2020-03-13 Tom Tromey <tom@tromey.com>
10251
10252 * cp-valprint.c (cp_print_value_fields): Update.
10253 (cp_print_value): New function.
10254
10255 2020-03-13 Tom Tromey <tom@tromey.com>
10256
10257 * m2-valprint.c (m2_value_print_inner): Use
10258 cp_print_value_fields.
10259 * cp-valprint.c (cp_print_value_fields): New function.
10260 * c-valprint.c (c_value_print_struct): New function.
10261 (c_value_print_inner): Use c_value_print_struct.
10262 * c-lang.h (cp_print_value_fields): Declare.
10263
10264 2020-03-13 Tom Tromey <tom@tromey.com>
10265
10266 * c-valprint.c (c_value_print_array): New function.
10267 (c_value_print_inner): Use it.
10268
10269 2020-03-13 Tom Tromey <tom@tromey.com>
10270
10271 * c-valprint.c (c_value_print_memberptr): New function.
10272 (c_value_print_inner): Use it.
10273
10274 2020-03-13 Tom Tromey <tom@tromey.com>
10275
10276 * c-valprint.c (c_value_print_int): New function.
10277 (c_value_print_inner): Use it.
10278
10279 2020-03-13 Tom Tromey <tom@tromey.com>
10280
10281 * c-valprint.c (c_value_print_ptr): New function.
10282 (c_value_print_inner): Use it.
10283
10284 2020-03-13 Tom Tromey <tom@tromey.com>
10285
10286 * c-valprint.c (c_value_print_inner): Rewrite.
10287
10288 2020-03-13 Tom Tromey <tom@tromey.com>
10289
10290 * valprint.c (generic_value_print_complex): New function.
10291 (generic_value_print): Use it.
10292
10293 2020-03-13 Tom Tromey <tom@tromey.com>
10294
10295 * valprint.c (generic_val_print_float): Don't call
10296 val_print_scalar_formatted.
10297 (generic_val_print, generic_value_print): Update.
10298
10299 2020-03-13 Tom Tromey <tom@tromey.com>
10300
10301 * valprint.c (generic_value_print_char): New function
10302 (generic_value_print): Use it.
10303
10304 2020-03-13 Tom Tromey <tom@tromey.com>
10305
10306 * valprint.c (generic_value_print_int): New function.
10307 (generic_value_print): Use it.
10308
10309 2020-03-13 Tom Tromey <tom@tromey.com>
10310
10311 * valprint.c (generic_value_print_bool): New function.
10312 (generic_value_print): Use it.
10313
10314 2020-03-13 Tom Tromey <tom@tromey.com>
10315
10316 * valprint.c (generic_val_print_func): Simplify.
10317 (generic_val_print, generic_value_print): Update.
10318
10319 2020-03-13 Tom Tromey <tom@tromey.com>
10320
10321 * valprint.c (generic_val_print_flags): Remove.
10322 (generic_val_print, generic_value_print): Update.
10323 (val_print_type_code_flags): Add original_value parameter.
10324
10325 2020-03-13 Tom Tromey <tom@tromey.com>
10326
10327 * valprint.c (generic_val_print): Update.
10328 (generic_value_print): Update.
10329 * valprint.c (generic_val_print_enum): Don't call
10330 val_print_scalar_formatted.
10331
10332 2020-03-13 Tom Tromey <tom@tromey.com>
10333
10334 * valprint.c (generic_value_print): Call generic_value_print_ptr.
10335 * valprint.c (generic_value_print_ptr): New function.
10336
10337 2020-03-13 Tom Tromey <tom@tromey.com>
10338
10339 * valprint.c (generic_value_print): Rewrite.
10340
10341 2020-03-13 Tom Tromey <tom@tromey.com>
10342
10343 * p-valprint.c (pascal_object_print_value_fields)
10344 (pascal_object_print_value): New functions.
10345
10346 2020-03-13 Tom Tromey <tom@tromey.com>
10347
10348 * p-valprint.c (pascal_value_print_inner): Rewrite.
10349
10350 2020-03-13 Tom Tromey <tom@tromey.com>
10351
10352 * f-valprint.c (f_value_print_innner): Rewrite.
10353
10354 2020-03-13 Tom Tromey <tom@tromey.com>
10355
10356 * m2-valprint.c (m2_print_unbounded_array): New overload.
10357 (m2_print_unbounded_array): Update.
10358 (m2_print_array_contents): Take a struct value.
10359 (m2_value_print_inner): Rewrite.
10360
10361 2020-03-13 Tom Tromey <tom@tromey.com>
10362
10363 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10364 (d_value_print_inner): New function.
10365 * d-lang.h (d_value_print_inner): Declare.
10366 * d-lang.c (d_language_defn): Use d_value_print_inner.
10367
10368 2020-03-13 Tom Tromey <tom@tromey.com>
10369
10370 * go-valprint.c (go_value_print_inner): New function.
10371 * go-lang.h (go_value_print_inner): Declare.
10372 * go-lang.c (go_language_defn): Use go_value_print_inner.
10373
10374 2020-03-13 Tom Tromey <tom@tromey.com>
10375
10376 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10377 API.
10378 (rust_val_print): Rewrite.
10379 (rust_value_print_inner): New function, from rust_val_print.
10380 (rust_language_defn): Use rust_value_print_inner.
10381
10382 2020-03-13 Tom Tromey <tom@tromey.com>
10383
10384 * ada-valprint.c (ada_value_print_inner): New function.
10385 * ada-lang.h (ada_value_print_inner): Declare.
10386 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10387
10388 2020-03-13 Tom Tromey <tom@tromey.com>
10389
10390 * f-valprint.c (f_value_print_innner): New function.
10391 * f-lang.h (f_value_print_innner): Declare.
10392 * f-lang.c (f_language_defn): Use f_value_print_innner.
10393
10394 2020-03-13 Tom Tromey <tom@tromey.com>
10395
10396 * p-valprint.c (pascal_value_print_inner): New function.
10397 * p-lang.h (pascal_value_print_inner): Declare.
10398 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10399
10400 2020-03-13 Tom Tromey <tom@tromey.com>
10401
10402 * m2-valprint.c (m2_value_print_inner): New function.
10403 * m2-lang.h (m2_value_print_inner): Declare.
10404 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10405
10406 2020-03-13 Tom Tromey <tom@tromey.com>
10407
10408 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10409 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10410 * c-valprint.c (c_value_print_inner): New function.
10411 * c-lang.h (c_value_print_inner): Declare.
10412 * c-lang.c (c_language_defn, cplus_language_defn)
10413 (asm_language_defn, minimal_language_defn): Use
10414 c_value_print_inner.
10415
10416 2020-03-13 Tom Tromey <tom@tromey.com>
10417
10418 * p-valprint.c (pascal_object_print_value_fields): Now static.
10419 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10420
10421 2020-03-13 Tom Tromey <tom@tromey.com>
10422
10423 * c-valprint.c (c_val_print_array): Simplify.
10424
10425 2020-03-13 Tom Tromey <tom@tromey.com>
10426
10427 * valprint.c (value_print_array_elements): New function.
10428 * valprint.h (value_print_array_elements): Declare.
10429
10430 2020-03-13 Tom Tromey <tom@tromey.com>
10431
10432 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10433 * mips-tdep.c (mips_print_register): Use
10434 value_print_scalar_formatted.
10435
10436 2020-03-13 Tom Tromey <tom@tromey.com>
10437
10438 * valprint.h (value_print_scalar_formatted): Declare.
10439 * valprint.c (value_print_scalar_formatted): New function.
10440
10441 2020-03-13 Tom Tromey <tom@tromey.com>
10442
10443 * valprint.h (generic_value_print): Declare.
10444 * valprint.c (generic_value_print): New function.
10445
10446 2020-03-13 Tom Tromey <tom@tromey.com>
10447
10448 * valprint.c (do_val_print): Call la_value_print_inner, if
10449 available.
10450 * rust-lang.c (rust_language_defn): Update.
10451 * p-lang.c (pascal_language_defn): Update.
10452 * opencl-lang.c (opencl_language_defn): Update.
10453 * objc-lang.c (objc_language_defn): Update.
10454 * m2-lang.c (m2_language_defn): Update.
10455 * language.h (struct language_defn) <la_value_print_inner>: New
10456 member.
10457 * language.c (unknown_language_defn, auto_language_defn): Update.
10458 * go-lang.c (go_language_defn): Update.
10459 * f-lang.c (f_language_defn): Update.
10460 * d-lang.c (d_language_defn): Update.
10461 * c-lang.c (c_language_defn, cplus_language_defn)
10462 (asm_language_defn, minimal_language_defn): Update.
10463 * ada-lang.c (ada_language_defn): Update.
10464
10465 2020-03-13 Tom Tromey <tom@tromey.com>
10466
10467 * c-valprint.c (c_value_print): Use common_val_print.
10468
10469 2020-03-13 Tom Tromey <tom@tromey.com>
10470
10471 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10472
10473 2020-03-13 Tom Tromey <tom@tromey.com>
10474
10475 * f-valprint.c (f77_print_array_1, f_val_print): Use
10476 common_val_print.
10477
10478 2020-03-13 Tom Tromey <tom@tromey.com>
10479
10480 * riscv-tdep.c (riscv_print_one_register_info): Use
10481 common_val_print.
10482
10483 2020-03-13 Tom Tromey <tom@tromey.com>
10484
10485 * mi/mi-main.c (output_register): Use common_val_print.
10486
10487 2020-03-13 Tom Tromey <tom@tromey.com>
10488
10489 * infcmd.c (default_print_one_register_info): Use
10490 common_val_print.
10491
10492 2020-03-13 Tom Tromey <tom@tromey.com>
10493
10494 * valprint.h (common_val_print_checked): Declare.
10495 * valprint.c (common_val_print_checked): New function.
10496 * stack.c (print_frame_arg): Use common_val_print_checked.
10497
10498 2020-03-13 Tom Tromey <tom@tromey.com>
10499
10500 * valprint.c (do_val_print): New function, from val_print.
10501 (val_print): Use do_val_print.
10502 (common_val_print): Use do_val_print.
10503
10504 2020-03-13 Tom Tromey <tom@tromey.com>
10505
10506 * valprint.c (value_print): Use scoped_value_mark.
10507
10508 2020-03-13 Tom de Vries <tdevries@suse.de>
10509
10510 PR symtab/25646
10511 * psymtab.c (partial_symtab::partial_symtab): Don't set
10512 globals_offset and statics_offset. Push element onto
10513 current_global_psymbols and current_static_psymbols stacks.
10514 (concat): New function.
10515 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10516 element from current_global_psymbols and current_static_psymbols
10517 stacks. Concat popped elements to global_psymbols and
10518 static_symbols.
10519 (add_psymbol_to_list): Use current_global_psymbols and
10520 current_static_psymbols stacks.
10521 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10522 current_static_psymbols fields.
10523
10524 2020-03-12 Christian Biesinger <cbiesinger@google.com>
10525
10526 * corelow.c (sniff_core_bfd): Remove.
10527 (class core_target) <m_core_vec>: Remove.
10528 (core_target::core_target): Update.
10529 (core_file_fns): Remove.
10530 (deprecated_add_core_fns): Remove.
10531 (default_core_sniffer): Remove.
10532 (sniff_core_bfd): Remove.
10533 (default_check_format): Remove.
10534 (gdb_check_format): Remove.
10535 (core_target_open): Update.
10536 (core_target::get_core_register_section): Update.
10537 (get_core_registers_cb): Update.
10538 (core_target::fetch_registers): Update.
10539 * gdbcore.h (struct core_fns): Remove.
10540 (deprecated_add_core_fns): Remove.
10541 (default_core_sniffer): Remove.
10542 (default_check_format): Remove.
10543
10544 2020-03-12 Tom Tromey <tom@tromey.com>
10545
10546 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10547 CORE_ADDR.
10548 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10549
10550 2020-03-12 Tom Tromey <tom@tromey.com>
10551
10552 * remote.c (remote_target::download_tracepoint)
10553 (remote_target::enable_tracepoint)
10554 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10555 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10556 sprintf_vma.
10557
10558 2020-03-12 Tom Tromey <tom@tromey.com>
10559
10560 * symfile-mem.c: Update CORE_ADDR size assert.
10561
10562 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10563
10564 * selftest.m4: Move to gdbsupport/.
10565 * acinclude.m4: Update path to selftest.m4.
10566
10567 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10568
10569 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10570 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10571 gdbarch-selfselftests.c and selftest-arch.c.
10572 (SUBDIR_UNITTESTS_OBS): Rename to...
10573 (SELFTESTS_OBS): ... this.
10574 (COMMON_SFILES): Remove disasm-selftests.c and
10575 gdbarch-selftests.c.
10576 * configure.ac: Don't add selftest-arch.{c,o} to
10577 CONFIG_{SRCS,OBS}.
10578 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10579 preprocessor conditions.
10580
10581 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10582
10583 * configure.ac: Don't source bfd/development.sh.
10584 * selftest.m4: Modify comment.
10585 * configure: Re-generate.
10586
10587 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10588
10589 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10590 not "true" or "false".
10591 * configure: Re-generate.
10592
10593 2020-03-12 Christian Biesinger <cbiesinger@google.com>
10594
10595 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10596 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10597 renamed to arm_nbsd_supply_gregset.
10598 (fetch_register): Update to call arm_nbsd_supply_gregset.
10599 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10600 (arm_netbsd_nat_target::fetch_registers): Update.
10601 (fetch_elfcore_registers): Removed.
10602 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10603 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10604 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10605 not require NetBSD system headers.
10606 (arm_nbsd_regset): New struct.
10607 (arm_nbsd_iterate_over_regset_sections): New function.
10608 (arm_netbsd_init_abi_common): Updated to call
10609 set_gdbarch_iterate_over_regset_sections.
10610 * arm-nbsd-tdep.h: New file.
10611
10612 2020-03-11 Kevin Buettner <kevinb@redhat.com>
10613
10614 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10615 recursion.
10616
10617 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
10618
10619 * configure: Re-generate.
10620
10621 2020-03-11 Tom Tromey <tromey@adacore.com>
10622
10623 * ada-typeprint.c (print_choices): Fix comment.
10624
10625 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10626
10627 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10628 previous item in the list, when the list has no items.
10629
10630 2020-03-11 Tom de Vries <tdevries@suse.de>
10631
10632 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10633 PROP_LOCLIST handling code.
10634
10635 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10636
10637 * buildsym-legacy.c (record_line): Pass extra parameter to
10638 record_line.
10639 * buildsym.c (buildsym_compunit::record_line): Take an extra
10640 parameter, reduce duplication in the line table, and record the
10641 is_stmt flag in the line table.
10642 * buildsym.h (buildsym_compunit::record_line): Add extra
10643 parameter.
10644 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10645 non-statement lines.
10646 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10647 this to the symtab builder.
10648 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10649 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10650 through to dwarf_record_line_1.
10651 * infrun.c (process_event_stop_test): When stepping, don't stop at
10652 a non-statement instruction, and only refresh the step info when
10653 we land in the middle of a line's range. Also add an extra
10654 comment.
10655 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10656 field.
10657 * record-btrace.c (btrace_find_line_range): Only record lines
10658 marked as is-statement.
10659 * stack.c (frame_show_address): Show the frame address if we are
10660 in a non-statement sal.
10661 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10662 (maintenance_print_one_line_table): Print a header for the is_stmt
10663 column, and include is_stmt information in the output.
10664 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10665 preference to non-statements.
10666 (find_pcs_for_symtab_line): Prefer is-statement entries.
10667 (find_line_common): Likewise.
10668 * symtab.h (struct linetable_entry): Add is_stmt field.
10669 (struct symtab_and_line): Likewise.
10670 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10671 arranging the line table.
10672
10673 2020-03-07 Tom de Vries <tdevries@suse.de>
10674
10675 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10676 DIE.
10677
10678 2020-03-07 Tom Tromey <tom@tromey.com>
10679
10680 * valops.c (value_literal_complex): Remove obsolete comment.
10681 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10682 comment.
10683
10684 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10685
10686 * infrun.h: Forward-declare thread_info.
10687 (set_step_info): Add thread_info parameter, add doc.
10688 * infrun.c (set_step_info): Add thread_info parameter, move doc
10689 to header.
10690 * infrun.c (process_event_stop_test): Pass thread to
10691 set_step_info call.
10692 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10693 set_step_info.
10694 (prepare_one_step): Add thread_info parameter, pass it to
10695 set_step_frame and prepare_one_step (recursive) call.
10696 (step_1): Pass thread to prepare_one_step call.
10697 (step_command_fsm::should_stop): Pass thread to
10698 prepare_one_step.
10699 (until_next_fsm): Pass thread to set_step_frame call.
10700 (finish_command): Pass thread to set_step_info call.
10701
10702 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
10703
10704 * windows-tdep.c (windows_solib_create_inferior_hook):
10705 Check if inferior is running.
10706
10707 2020-03-06 Tom de Vries <tdevries@suse.de>
10708
10709 * NEWS: Fix "the the".
10710 * ctfread.c: Same.
10711
10712 2020-03-06 Tom de Vries <tdevries@suse.de>
10713
10714 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10715
10716 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10717
10718 * .dir-locals.el: Add a comment referencing the other copies of
10719 this file.
10720
10721 2020-03-05 John Baldwin <jhb@FreeBSD.org>
10722
10723 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10724 psargs.
10725
10726 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10727
10728 * .gitattributes: New file.
10729
10730 2020-03-04 Tom Tromey <tom@tromey.com>
10731
10732 * symmisc.c (print_symbol_bcache_statistics)
10733 (print_objfile_statistics): Update.
10734 * symfile.c (allocate_symtab): Use intern.
10735 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10736 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10737 macro_cache>: Remove.
10738 <string_cache>: New member.
10739 (struct objfile) <intern>: New methods.
10740 * elfread.c (elf_symtab_read): Use intern.
10741 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10742 (dwarf2_compute_name, dwarf2_physname)
10743 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10744 names.
10745 (guess_partial_die_structure_name): Update.
10746 (partial_die_info::fixup): Intern name.
10747 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10748 name.
10749 (dwarf2_name): Intern name. Update.
10750 * buildsym.c (buildsym_compunit::get_macro_table): Use
10751 string_cache.
10752
10753 2020-03-04 Tom Tromey <tom@tromey.com>
10754
10755 * jit.c (bfd_open_from_target_memory): Make "target" const.
10756 * corefile.c (gnutarget): Now const.
10757 * gdbcore.h (gnutarget): Now const.
10758
10759 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
10760
10761 * NEWS: Mention support for WOW64 processes.
10762 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10763 (amd64_windows_segment_register_p): Remove static.
10764 (_initialize_amd64_windows_nat): Update.
10765 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10766 * i386-windows-nat.c (context_offset): Update.
10767 (i386_mappings): Rename and remove static.
10768 (i386_windows_segment_register_p): Remove static.
10769 (_initialize_i386_windows_nat): Update.
10770 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10771 (STATUS_WX86_SINGLE_STEP): New macro.
10772 (EnumProcessModulesEx): New macro.
10773 (Wow64SuspendThread): New macro.
10774 (Wow64GetThreadContext): New macro.
10775 (Wow64SetThreadContext): New macro.
10776 (Wow64GetThreadSelectorEntry): New macro.
10777 (windows_set_context_register_offsets): Add static.
10778 (windows_set_segment_register_p): Likewise.
10779 (windows_add_thread): Adapt for WOW64 processes.
10780 (windows_fetch_one_register): Likewise.
10781 (windows_nat_target::fetch_registers): Likewise.
10782 (windows_store_one_register): Likewise.
10783 (display_selector): Likewise.
10784 (display_selectors): Likewise.
10785 (handle_exception): Likewise.
10786 (windows_continue): Likewise.
10787 (windows_nat_target::resume): Likewise.
10788 (windows_add_all_dlls): Likewise.
10789 (do_initial_windows_stuff): Likewise.
10790 (windows_nat_target::attach): Likewise.
10791 (windows_get_exec_module_filename): Likewise.
10792 (windows_nat_target::create_inferior): Likewise.
10793 (windows_xfer_siginfo): Likewise.
10794 (_initialize_loadable): Initialize Wow64SuspendThread,
10795 Wow64GetThreadContext, Wow64SetThreadContext,
10796 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10797 * windows-nat.h (windows_set_context_register_offsets):
10798 Remove declaration.
10799 (windows_set_segment_register_p): Likewise.
10800 (i386_windows_segment_register_p): Add declaration.
10801 (amd64_windows_segment_register_p): Likewise.
10802
10803 2020-03-04 Luis Machado <luis.machado@linaro.org>
10804
10805 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10806 in "info registers" for AArch64/ARM.
10807
10808 The change caused "info registers" to not print GPR's.
10809
10810 gdb/ChangeLog:
10811
10812 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10813
10814 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10815 when reg->group is empty and reggroup is not.
10816
10817 2020-03-03 Tom Tromey <tromey@adacore.com>
10818
10819 * dwarf2/frame.c (struct dwarf2_frame_cache)
10820 <checked_tailcall_bottom, entry_cfa_sp_offset,
10821 entry_cfa_sp_offset_p>: Remove members.
10822 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10823 (dwarf2_frame_prev_register): Don't call
10824 dwarf2_tailcall_sniffer_first.
10825 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10826 * frame-unwind.c (add_unwinder): New fuction.
10827 (frame_unwind_init): Use it. Add tailcall unwinder.
10828
10829 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10830 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10831
10832 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10833 value should be printed as true.
10834
10835 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
10836
10837 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10838 (windows_init_abi): Set and use windows_so_ops.
10839
10840 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10841
10842 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10843 when verifying if dealing with a convenience variable.
10844
10845 2020-03-03 Luis Machado <luis.machado@linaro.org>
10846
10847 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10848
10849 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10850
10851 * infrun.c (gdbarch_supports_displaced_stepping): New.
10852 (use_displaced_stepping): Break up conditions in smaller pieces.
10853 Use gdbarch_supports_displaced_stepping.
10854 (displaced_step_prepare_throw): Use
10855 gdbarch_supports_displaced_stepping.
10856
10857 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10858
10859 * NEWS: Mention new behaviour of the history filename.
10860 * top.c (write_history_p): Add comment.
10861 (show_write_history_p): Add header comment, give a different
10862 message when history writing is on, but the history filename is
10863 empty.
10864 (history_filename): Add comment.
10865 (history_filename_empty): New function.
10866 (show_history_filename): Add header comment, give a different
10867 message when the filename is empty.
10868 (init_history): Compare history_filename against nullptr, and only
10869 read history if the filename is not empty.
10870 (set_history_filename): Add header comment, and only make
10871 non-empty filenames absolute.
10872 (init_main): Make the filename argument to 'set history filename'
10873 optional.
10874
10875 2020-03-02 Christian Biesinger <cbiesinger@google.com>
10876
10877 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10878 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10879 (fetch_fp_register): Update.
10880 (fetch_fp_regs): Update.
10881 (store_fp_register): Update.
10882 (store_fp_regs): Update.
10883 (arm_netbsd_nat_target::read_description): New function.
10884 (fetch_elfcore_registers): Update.
10885
10886 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10887
10888 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10889 general_thread if the stop reply is missing a thread-id.
10890 (remote_target::process_stop_reply): Use the first non-exited
10891 thread if the target didn't pass a thread-id.
10892 * infrun.c (do_target_wait): Move call to
10893 switch_to_inferior_no_thread to ....
10894 (do_target_wait_1): ... here.
10895
10896 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10897
10898 * debuginfod-support.c: Include defs.h first.
10899
10900 2020-02-28 Tom de Vries <tdevries@suse.de>
10901
10902 * symfile.c (set_initial_language): Use default language for lookup.
10903
10904 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
10905
10906 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10907 reader variable, pass `this` to read_cutu_die_from_dwo.
10908
10909 2020-02-27 Aaron Merey <amerey@redhat.com>
10910
10911 * source.c (open_source_file): Check for nullptr when computing
10912 srcpath.
10913
10914 2020-02-27 Tom Tromey <tromey@adacore.com>
10915
10916 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10917 member.
10918 (dwarf2_add_field): Don't update nfields.
10919 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10920
10921 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10922
10923 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10924 abs.
10925
10926 2020-02-26 Tom Tromey <tom@tromey.com>
10927
10928 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10929 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10930 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10931 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10932 per_cu_data.
10933
10934 2020-02-26 Tom Tromey <tom@tromey.com>
10935
10936 * dwarf2/index-write.c (psym_index_map): Change type.
10937 (add_address_entry_worker, write_one_signatured_type)
10938 (recursively_count_psymbols, recursively_write_psymbols)
10939 (class debug_names, psyms_seen_size, write_gdbindex)
10940 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10941
10942 2020-02-26 Aaron Merey <amerey@redhat.com>
10943
10944 * Makefile.in: Handle optional debuginfod support.
10945 * NEWS: Update.
10946 * README: Add --with-debuginfod summary.
10947 * config.in: Regenerate.
10948 * configure: Regenerate.
10949 * configure.ac: Handle optional debuginfod support.
10950 * debuginfod-support.c: debuginfod helper functions.
10951 * debuginfod-support.h: Ditto.
10952 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10953 summary.
10954 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10955 when a dwz file cannot be found.
10956 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10957 debuginfo file cannot be found.
10958 * source.c (open_source_file): Query debuginfod servers when a
10959 source file cannot be found.
10960 * top.c (print_gdb_configuration): Include
10961 --{with,without}-debuginfod in the output.
10962
10963 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10964
10965 * thread.c (thr_try_catch_cmd): Print thread name.
10966
10967 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
10968
10969 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10970 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10971 dwarf2_fetch_die_type_sect_off): Move to...
10972 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10973 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10974 dwarf2_fetch_die_type_sect_off): ... here.
10975 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10976 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10977 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10978
10979 2020-02-26 Tom de Vries <tdevries@suse.de>
10980
10981 PR gdb/25603
10982 * symfile.c (set_initial_language): Exit-early if
10983 language_mode == language_mode_manual.
10984
10985 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10986
10987 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10988 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10989 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10990
10991 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10992
10993 * gdbtypes.c (create_array_type_with_stride): Handle negative
10994 array strides.
10995 * valarith.c (value_subscripted_rvalue): Likewise.
10996
10997 2020-02-25 Luis Machado <luis.machado@linaro.org>
10998
10999 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
11000
11001 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11002
11003 * loc.h (dwarf2_get_die_type): Move to...
11004 * read.h (dwarf2_get_die_type): ... here.
11005 * read.c (dwarf2_get_die_type): Move doc to header.
11006
11007 2020-02-25 Joel Brobecker <brobecker@adacore.com>
11008
11009 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
11010 'gnulib/Makefile.in' to the list.
11011
11012 2020-02-24 Tom Tromey <tom@tromey.com>
11013
11014 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
11015 Remove.
11016 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
11017 XOBNEWVEC.
11018
11019 2020-02-24 Tom Tromey <tom@tromey.com>
11020
11021 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
11022 New method.
11023 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
11024 (dw2_do_instantiate_symtab, dw2_get_file_names)
11025 (build_type_psymtab_dependencies, load_full_type_unit): Update.
11026
11027 2020-02-24 Tom Tromey <tom@tromey.com>
11028
11029 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
11030 make_scoped_restore.
11031 (dwarf2_psymtab::read_symtab): Don't clear
11032 reading_partial_symbols.
11033
11034 2020-02-24 Tom de Vries <tdevries@suse.de>
11035
11036 PR gdb/25592
11037 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
11038
11039 2020-02-24 Tom de Vries <tdevries@suse.de>
11040
11041 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
11042 commands layout next/prev/regs.
11043
11044 2020-02-22 Tom Tromey <tom@tromey.com>
11045
11046 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
11047 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
11048
11049 2020-02-22 Tom Tromey <tom@tromey.com>
11050
11051 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
11052
11053 2020-02-22 Tom Tromey <tom@tromey.com>
11054
11055 * tui/tui-win.c (_initialize_tui_win): Add usage text.
11056 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
11057 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
11058 * tui/tui.c (_initialize_tui): Add usage text.
11059
11060 2020-02-22 Tom Tromey <tom@tromey.com>
11061
11062 * tui/tui-win.c (tui_set_focus_command)
11063 (tui_set_win_height_command): Use error_no_arg.
11064 (_initialize_tui_win): Update help text.
11065 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
11066
11067 2020-02-22 Tom Tromey <tom@tromey.com>
11068
11069 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
11070 * tui/tui-disasm.h (struct tui_disasm_window)
11071 <display_start_addr>: Declare.
11072 * tui/tui-source.h (struct tui_source_window)
11073 <display_start_addr>: Declare.
11074 * tui/tui-winsource.h (struct tui_source_window_base)
11075 <show_source_line, display_start_addr>: New methods.
11076 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
11077 Rename and move to protected section.
11078 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
11079 (tui_source_window_base::do_erase_source_content): Update.
11080 (tui_source_window_base::show_source_line): Now a method.
11081 (tui_source_window_base::show_source_content)
11082 (tui_source_window_base::tui_source_window_base)
11083 (tui_source_window_base::rerender)
11084 (tui_source_window_base::refill)
11085 (tui_source_window_base::do_scroll_horizontal)
11086 (tui_source_window_base::set_is_exec_point_at)
11087 (tui_source_window_base::update_breakpoint_info)
11088 (tui_source_window_base::update_exec_info): Update.
11089 * tui/tui-source.c (tui_source_window::set_contents)
11090 (tui_source_window::showing_source_p)
11091 (tui_source_window::do_scroll_vertical)
11092 (tui_source_window::location_matches_p)
11093 (tui_source_window::line_is_displayed): Update.
11094 (tui_source_window::display_start_addr): New method.
11095 * tui/tui-disasm.c (tui_disasm_window::set_contents)
11096 (tui_disasm_window::do_scroll_vertical)
11097 (tui_disasm_window::location_matches_p): Update.
11098 (tui_disasm_window::display_start_addr): New method.
11099
11100 2020-02-22 Tom Tromey <tom@tromey.com>
11101
11102 * NEWS: Add entry for gdb.register_window_type.
11103 * tui/tui-layout.h (window_factory): New typedef.
11104 (tui_register_window): Declare.
11105 * tui/tui-layout.c (saved_tui_windows): New global.
11106 (tui_apply_current_layout): Use it.
11107 (tui_register_window): New function.
11108 * python/python.c (do_start_initialization): Call
11109 gdbpy_initialize_tui.
11110 (python_GdbMethods): Add "register_window_type" function.
11111 * python/python-internal.h (gdbpy_register_tui_window)
11112 (gdbpy_initialize_tui): Declare.
11113 * python/py-tui.c: New file.
11114 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
11115
11116 2020-02-22 Tom Tromey <tom@tromey.com>
11117
11118 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
11119
11120 2020-02-22 Tom Tromey <tom@tromey.com>
11121
11122 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
11123 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
11124 * tui/tui-data.c (tui_set_win_with_focus): Remove.
11125 (tui_set_win_focus_to): Move from tui-win.c.
11126
11127 2020-02-22 Tom Tromey <tom@tromey.com>
11128
11129 * tui/tui-layout.c (make_standard_window, get_locator_window): New
11130 functions.
11131 (known_window_types): New global.
11132 (tui_get_window_by_name): Reimplement.
11133 (initialize_known_windows): New function.
11134 (validate_window_name): Rewrite.
11135 (_initialize_tui_layout): Call initialize_known_windows.
11136
11137 2020-02-22 Tom Tromey <tom@tromey.com>
11138
11139 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
11140 Remove constants.
11141 * tui/tui-winsource.h (struct tui_source_window_base)
11142 <tui_source_window_base>: Remove parameter.
11143 * tui/tui-winsource.c
11144 (tui_source_window_base::tui_source_window_base): Remove
11145 parameter.
11146 (tui_source_window_base::refill): Update.
11147 * tui/tui-stack.h (struct tui_locator_window)
11148 <tui_locator_window>: Update.
11149 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
11150 Default the constructor.
11151 * tui/tui-regs.h (struct tui_data_item_window)
11152 <tui_data_item_window>: Default the constructor.
11153 (struct tui_data_window) <tui_data_window>: Likewise.
11154 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
11155 Default the constructor.
11156 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
11157 Default the constructor.
11158 <type>: Remove.
11159 (struct tui_win_info) <tui_win_info>: Default the constructor.
11160 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
11161 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
11162 Default the constructor.
11163
11164 2020-02-22 Tom Tromey <tom@tromey.com>
11165
11166 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
11167 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
11168 * tui/tui-win.c (tui_resize_all): Don't call
11169 tui_delete_invisible_windows.
11170 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
11171 done.
11172 (tui_set_layout): Update.
11173 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
11174 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
11175 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
11176
11177 2020-02-22 Tom Tromey <tom@tromey.com>
11178
11179 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
11180 correctly.
11181
11182 2020-02-22 Tom Tromey <tom@tromey.com>
11183
11184 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
11185
11186 2020-02-22 Tom Tromey <tom@tromey.com>
11187
11188 * tui/tui-winsource.h (struct tui_source_window_iterator)
11189 <inner_iterator>: New etytypedef.
11190 <tui_source_window_iterator>: Take "end" parameter.
11191 <tui_source_window_iterator>: Take iterator.
11192 <operator*, advance>: Update.
11193 <m_iter>: Change type.
11194 <m_end>: New field.
11195 (struct tui_source_windows) <begin, end>: Update.
11196 * tui/tui-layout.c (tui_windows): New global.
11197 (tui_apply_current_layout): Clear tui_windows.
11198 (tui_layout_window::apply): Update tui_windows.
11199 * tui/tui-data.h (tui_windows): Declare.
11200 (all_tui_windows): Now inline function.
11201 (class tui_window_iterator, struct all_tui_windows): Remove.
11202
11203 2020-02-22 Tom Tromey <tom@tromey.com>
11204
11205 PR tui/17850:
11206 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
11207 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
11208 "height" argument.
11209 (class tui_layout_window) <get_sizes>: Likewise.
11210 (class tui_layout_split) <tui_layout_split>: Add "vertical"
11211 argument.
11212 <get_sizes>: Add "height" argument.
11213 <m_vertical>: New field.
11214 * tui/tui-layout.c (tui_layout_split::clone): Update.
11215 (tui_layout_split::get_sizes): Add "height" argument.
11216 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
11217 (tui_new_layout_command): Parse "-horizontal".
11218 (_initialize_tui_layout): Update help string.
11219 (tui_layout_split::specification): Add "-horizontal" when needed.
11220 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
11221 argument.
11222 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
11223 New methods.
11224
11225 2020-02-22 Tom Tromey <tom@tromey.com>
11226
11227 * tui/tui-layout.h (enum tui_adjust_result): New.
11228 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
11229 (class tui_layout_window) <adjust_size>: Return
11230 tui_adjust_result. Rewrite.
11231 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
11232 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
11233
11234 2020-02-22 Tom Tromey <tom@tromey.com>
11235
11236 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
11237 parameter and return types.
11238 (class tui_layout_base) <specification>: Add "depth".
11239 (class tui_layout_window) <specification>: Add "depth".
11240 (class tui_layout_split) <specification>: Add "depth".
11241 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
11242 and return types.
11243 (tui_new_layout_command): Parse sub-layouts.
11244 (_initialize_tui_layout): Update help string.
11245 (tui_layout_window::specification): Add "depth".
11246 (add_layout_command): Update.
11247
11248 2020-02-22 Tom Tromey <tom@tromey.com>
11249
11250 * NEWS: Add "tui new-layout" item.
11251 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
11252 Add new-layout command to help text.
11253 (validate_window_name): New function.
11254 (tui_new_layout_command): New function.
11255 (_initialize_tui_layout): Register "new-layout".
11256 (tui_layout_window::specification): New method.
11257 (tui_layout_window::specification): New method.
11258 * tui/tui-layout.h (class tui_layout_base) <specification>: New
11259 method.
11260 (class tui_layout_window) <specification>: New method.
11261 (class tui_layout_split) <specification>: New method.
11262
11263 2020-02-22 Tom Tromey <tom@tromey.com>
11264
11265 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
11266 * tui/tui-win.c (window_name_completer): Update comment.
11267 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
11268 Declare method.
11269 (class tui_layout_window) <replace_window>: Likewise.
11270 (class tui_layout_split) <replace_window>: Likewise.
11271 (tui_set_layout): Don't declare.
11272 (tui_set_initial_layout): Declare function.
11273 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
11274 (asm_regs_layout): New globals.
11275 (tui_current_layout, show_layout): Remove.
11276 (tui_set_layout, tui_add_win_to_layout): Rewrite.
11277 (find_layout, tui_apply_layout): New function.
11278 (layout_completer): Remove.
11279 (tui_next_layout): Reimplement.
11280 (tui_next_layout_command): New function.
11281 (tui_set_initial_layout, tui_prev_layout_command): New functions.
11282 (tui_regs_layout): Reimplement.
11283 (tui_regs_layout_command): New function.
11284 (extract_display_start_addr): Rewrite.
11285 (next_layout, prev_layout): Remove.
11286 (tui_layout_window::replace_window): New method.
11287 (tui_layout_split::replace_window): New method.
11288 (destroy_layout): New function.
11289 (layout_list): New global.
11290 (add_layout_command): New function.
11291 (initialize_layouts): Update.
11292 (tui_layout_command): New function.
11293 (_initialize_tui_layout): Install "layout" commands.
11294 * tui/tui-data.h (enum tui_layout_type): Remove.
11295 (tui_current_layout): Don't declare.
11296
11297 2020-02-22 Tom Tromey <tom@tromey.com>
11298
11299 * tui/tui-regs.c (tui_reg_layout): Remove.
11300 (tui_reg_command): Use tui_regs_layout.
11301 * tui/tui-layout.h (tui_reg_command): Declare.
11302 * tui/tui-layout.c (tui_reg_command): New function.
11303
11304 2020-02-22 Tom Tromey <tom@tromey.com>
11305
11306 * tui/tui.c (tui_rl_delete_other_windows): Call
11307 tui_remove_some_windows.
11308 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
11309 Declare method.
11310 (class tui_layout_window) <remove_windows>: New method.
11311 (class tui_layout_split) <remove_windows>: Declare.
11312 (tui_remove_some_windows): Declare.
11313 * tui/tui-layout.c (tui_remove_some_windows): New function.
11314 (tui_layout_split::remove_windows): New method.
11315
11316 2020-02-22 Tom Tromey <tom@tromey.com>
11317
11318 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
11319 * tui/tui-layout.h (tui_next_layout): Declare.
11320 * tui/tui-layout.c (tui_next_layout): New function.
11321
11322 2020-02-22 Tom Tromey <tom@tromey.com>
11323
11324 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
11325 correct coordinates.
11326
11327 2020-02-22 Tom Tromey <tom@tromey.com>
11328
11329 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
11330 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
11331 DATA_WIN case.
11332
11333 2020-02-22 Tom Tromey <tom@tromey.com>
11334
11335 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
11336 TUI_DISASM_WIN, not tui_win_list.
11337
11338 2020-02-22 Tom Tromey <tom@tromey.com>
11339
11340 * valprint.c (generic_val_print_enum_1)
11341 (val_print_type_code_flags): Style member names.
11342 * rust-lang.c (val_print_struct, rust_print_enum)
11343 (rust_print_struct_def, rust_internal_print_type): Style member
11344 names.
11345 * p-valprint.c (pascal_object_print_value_fields): Style member
11346 names. Only call fprintf_symbol_filtered for static members.
11347 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
11348 * f-valprint.c (f_val_print): Style member names.
11349 * f-typeprint.c (f_type_print_base): Style member names.
11350 * cp-valprint.c (cp_print_value_fields): Style member names. Only
11351 call fprintf_symbol_filtered for static members.
11352 (cp_print_class_member): Style member names.
11353 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
11354 member names.
11355 * ada-valprint.c (ada_print_scalar): Style enum names.
11356 (ada_val_print_enum): Likewise.
11357 * ada-typeprint.c (print_enum_type): Style enum names.
11358
11359 2020-02-21 Tom Tromey <tom@tromey.com>
11360
11361 * psympriv.h (struct partial_symtab): Update comment.
11362
11363 2020-02-21 Tom Tromey <tromey@adacore.com>
11364
11365 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11366 type is CORE_ADDR.
11367
11368 2020-02-21 Tom de Vries <tdevries@suse.de>
11369
11370 PR gdb/25534
11371 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11372 if dependencies[i]->user != NULL.
11373
11374 2020-02-21 Ali Tamur <tamur@google.com>
11375
11376 * dwarf2/read.c (dwarf2_name): Add null check.
11377
11378 2020-02-20 Tom Tromey <tom@tromey.com>
11379
11380 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11381 ">=", in binary search.
11382 (dwarf2_find_containing_comp_unit): New overload.
11383 (run_test): New self-test.
11384 (_initialize_dwarf2_read): Register new test.
11385
11386 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
11387
11388 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11389 * riscv-tdep.h: Likewise.
11390 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11391 rv32-only CSR.
11392 * features/riscv/64bit-csr.xml: Regenerated.
11393
11394 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11395 Tom Tromey <tom@tromey.com>
11396
11397 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11398 of 'fputc_unfiltered'.
11399 (putchar_unfiltered): Call 'fputc_unfiltered'.
11400 (fputc_unfiltered): Call 'fputs_unfiltered'.
11401
11402 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11403
11404 * config.in: Regenerate.
11405 * configure: Regenerate.
11406 * configure.ac: Add --with-python-libdir option.
11407 * main.c: Use WITH_PYTHON_LIBDIR.
11408
11409 2020-02-19 Tom Tromey <tom@tromey.com>
11410
11411 * symtab.c (general_symbol_info::compute_and_set_names): Use
11412 obstack_strndup. Simplify call to symbol_set_demangled_name.
11413
11414 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
11415
11416 * dwarf2/read.c (allocate_signatured_type_table,
11417 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11418 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11419 Remove objfile parameter, update all callers.
11420
11421 2020-02-19 Doug Evans <dje@google.com>
11422
11423 PR rust/25535
11424 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11425 rust_enum_variant calculation.
11426
11427 2020-02-19 Tom Tromey <tromey@adacore.com>
11428
11429 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11430
11431 2020-02-19 Tom Tromey <tromey@adacore.com>
11432
11433 * ada-lang.c (cache_symbol): Use obstack_strdup.
11434
11435 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11436
11437 * configure: Regenerate.
11438
11439 2020-02-19 Tom Tromey <tromey@adacore.com>
11440
11441 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11442 NULL check.
11443
11444 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
11445
11446 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11447
11448 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11449
11450 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11451 if GDBSERVER is not defined.
11452 (riscv_tdesc_cache): Likewise, also store const target_desc.
11453 (STATIC_IN_GDB): Define.
11454 (riscv_create_target_description): Update declaration with
11455 STATIC_IN_GDB.
11456 (riscv_lookup_target_description): New function, only define if
11457 GDBSERVER is not defined.
11458 * arch/riscv.h (riscv_create_target_description): Declare only
11459 when GDBSERVER is defined.
11460 (riscv_lookup_target_description): New declaration when GDBSERVER
11461 is not defined.
11462 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11463 (riscv_linux_read_features): ...this, and return
11464 riscv_gdbarch_features instead of target_desc.
11465 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11466 (riscv_linux_read_description): Rename to...
11467 (riscv_linux_read_features): ...this.
11468 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11469 Update to use riscv_gdbarch_features and
11470 riscv_lookup_target_description.
11471 * riscv-tdep.c (riscv_find_default_target_description): Use
11472 riscv_lookup_target_description instead of
11473 riscv_create_target_description.
11474
11475 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11476
11477 * valprint.c (generic_val_print_enum_1): When printing a flag
11478 enum with value 0 and there is no enumerator with value 0, print
11479 just "0" instead of "(unknown: 0x0)".
11480
11481 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11482
11483 * valprint.c (generic_val_print_enum_1): Print unknown part of
11484 flag enum in hex.
11485
11486 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11487
11488 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11489 flag enums to contain duplicate enumerators.
11490 * valprint.c (generic_val_print_enum_1): Update comment.
11491
11492 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11493
11494 * dwarf2/read.c: Include "count-one-bits.h".
11495 (update_enumeration_type_from_children): If an enumerator has
11496 multiple bits set, don't treat the enumeration as a "flag enum".
11497 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11498 of flag enums have 0 or 1 bit set.
11499
11500 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11501
11502 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11503 conversion.
11504 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11505 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11506 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11507 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11508 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11509
11510 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11511
11512 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11513
11514 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11515
11516 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11517 displaced_step_closure_up.
11518 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11519 (struct displaced_step_closure_up):
11520 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11521 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11522 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11523 Likewise.
11524 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11525 * gdbarch.c, gdbarch.h: Re-generate.
11526 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11527 displaced_step_closure_up.
11528 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11529 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11530 * infrun.h (displaced_step_closure_up): New type alias.
11531 (struct displaced_step_inferior_state) <step_closure>: Change
11532 type to displaced_step_closure_up.
11533 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11534 displaced_step_closure_up.
11535 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11536
11537 2020-02-14 Tom Tromey <tom@tromey.com>
11538
11539 * minidebug.c (gnu_debug_key): New global.
11540 (find_separate_debug_file_in_section): Use it.
11541
11542 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11543
11544 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11545 std::unique_ptr.
11546 * gdbarch.c: Re-generate.
11547 * gdbarch.h: Re-generate.
11548 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11549 change.
11550 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11551 type to std::unique_ptr.
11552 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11553 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11554 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11555 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11556 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11557 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11558 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11559 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11560 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11561
11562 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11563
11564 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11565 std::unique_ptr.
11566 (displaced_step_clear): Rename to...
11567 (displaced_step_reset): ... this. Just call displaced->reset ().
11568 (displaced_step_clear_cleanup): Rename to...
11569 (displaced_step_reset_cleanup): ... this.
11570 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11571 (displaced_step_fixup): Likewise.
11572 (resume_1): Likewise.
11573 (handle_inferior_event): Restore child's memory before calling
11574 displaced_step_fixup on the parent.
11575 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11576 to std::unique_ptr.
11577 <step_closure>: Change type to std::unique_ptr.
11578
11579 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11580
11581 * arm-tdep.c: Include count-one-bits.h.
11582 (cleanup_block_store_pc): Use count_one_bits.
11583 (cleanup_block_load_pc): Use count_one_bits.
11584 (arm_copy_block_xfer): Use count_one_bits.
11585 (thumb2_copy_block_xfer): Use count_one_bits.
11586 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11587 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11588 (thumb_get_next_pcs_raw): Use count_one_bits.
11589 (arm_get_next_pcs_raw): Use count_one_bits_l.
11590 * arch/arm.c (bitcount): Remove.
11591 * arch/arm.h (bitcount): Remove.
11592
11593 2020-02-14 Tom Tromey <tromey@adacore.com>
11594
11595 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11596 Update.
11597 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11598 * dwarf2/loc.c (call_site_find_chain_1): Return
11599 unique_xmalloc_ptr.
11600 (call_site_find_chain): Likewise.
11601
11602 2020-02-14 Richard Biener <rguenther@suse.de>
11603
11604 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11605 on expression with division operators.
11606
11607 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11608
11609 * MAINTAINERS (Write After Approval): Adding myself.
11610
11611 2020-02-12 Tom Tromey <tom@tromey.com>
11612
11613 * event-loop.c (event_data, gdb_event, event_handler_func):
11614 Remove.
11615
11616 2020-02-12 Tom Tromey <tom@tromey.com>
11617
11618 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11619 (dwarf2_frame_objfile_data): Add comment.
11620 (find_comp_unit, set_comp_unit): New functions.
11621 (dwarf2_frame_find_fde): Use find_comp_unit.
11622 (dwarf2_build_frame_info): Use set_comp_unit.
11623
11624 2020-02-12 Tom Tromey <tom@tromey.com>
11625
11626 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11627 (comp_unit): Don't initialize objfile.
11628 (execute_cfa_program): Add text_offset parameter.
11629 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11630 (dwarf2_frame_cache): Update.
11631 (dwarf2_build_frame_info): Don't set "objfile" member.
11632
11633 2020-02-12 Tom Tromey <tom@tromey.com>
11634
11635 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11636 (decode_frame_entry): Likewise.
11637 (dwarf2_build_frame_info): Update.
11638
11639 2020-02-12 Tom Tromey <tom@tromey.com>
11640
11641 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11642 (decode_frame_entry_1): Use the comp_unit obstack.
11643
11644 2020-02-12 Tom Tromey <tom@tromey.com>
11645
11646 * dwarf2/frame.c (struct comp_unit): Add initializers and
11647 constructor.
11648 (dwarf2_frame_objfile_data): Store a comp_unit.
11649 (dwarf2_frame_find_fde): Update.
11650 (dwarf2_build_frame_info): Use "new".
11651
11652 2020-02-12 Tom Tromey <tom@tromey.com>
11653
11654 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11655 (dwarf2_fde_table): Typedef for std::vector.
11656 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11657 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11658 (decode_frame_entry): Update.
11659 (dwarf2_build_frame_info): Use "new".
11660
11661 2020-02-12 Christian Biesinger <cbiesinger@google.com>
11662
11663 * arm-tdep.c (arm_gdbarch_init): Update.
11664 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11665 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11666 have_neon, is_m>: Change to bool.
11667
11668 2020-02-12 Christian Biesinger <cbiesinger@google.com>
11669
11670 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11671
11672 2020-02-12 Tom Tromey <tom@tromey.com>
11673
11674 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11675
11676 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
11677
11678 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11679 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11680
11681 2020-02-11 Tom Tromey <tom@tromey.com>
11682
11683 * psymtab.h: Update comment.
11684
11685 2020-02-11 Tom Tromey <tom@tromey.com>
11686
11687 * gdb_obstack.h (struct auto_obstack): Use
11688 DISABLE_COPY_AND_ASSIGN.
11689
11690 2020-02-11 Tom Tromey <tom@tromey.com>
11691
11692 * dwarf2/frame.h (struct objfile): Don't forward declare.
11693
11694 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11695
11696 * cris-tdep.c (cris_supply_gregset): Change signature to match
11697 what struct regset expects.
11698 (cris_regset): New struct.
11699 (fetch_core_registers): Remove.
11700 (cris_iterate_over_regset_sections): New function.
11701 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11702 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11703
11704 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11705
11706 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11707 registers.
11708
11709 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11710
11711 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11712
11713 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11714
11715 * configure: Re-generate.
11716
11717 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11718
11719 * configure: Re-generate.
11720
11721 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11722
11723 * acinclude: Update warning.m4 path.
11724 * warning.m4: Move to gdbsupport.
11725
11726 2020-02-11 Tom Tromey <tromey@adacore.com>
11727
11728 * remote.c (remote_console_output): Update.
11729 * printcmd.c (printf_command): Update.
11730 * event-loop.c (gdb_wait_for_event): Update.
11731 * linux-nat.c (sigchld_handler): Update.
11732 * remote-sim.c (gdb_os_write_stdout): Update.
11733 (gdb_os_flush_stdout): Update.
11734 (gdb_os_flush_stderr): Update.
11735 (gdb_os_write_stderr): Update.
11736 * exceptions.c (print_exception): Update.
11737 * remote-fileio.c (remote_fileio_func_read): Update.
11738 (remote_fileio_func_write): Update.
11739 * tui/tui.c (tui_enable): Update.
11740 * tui/tui-interp.c (tui_interp::init): Update.
11741 * utils.c (init_page_info): Update.
11742 (putchar_unfiltered, fputc_unfiltered): Update.
11743 (gdb_flush): Update.
11744 (emit_style_escape): Update.
11745 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11746 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11747 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11748 (stderr_file::write): Update.
11749 (stderr_file::puts): Update.
11750 * ui-file.h (ui_file_isatty, ui_file_write)
11751 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11752 (ui_file_puts): Don't declare.
11753
11754 2020-02-10 Tom de Vries <tdevries@suse.de>
11755
11756 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11757 sentinel to char *.
11758
11759 2020-02-09 Tom de Vries <tdevries@suse.de>
11760
11761 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11762 filename if it matches "<artificial>".
11763
11764 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
11765
11766 * windows-tdep.c (struct enum_value_name): New struct.
11767 (create_enum): New function.
11768 (windows_get_siginfo_type): Create and use enum types.
11769
11770 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
11771
11772 * NEWS: Mention $_siginfo support for Windows.
11773 * windows-nat.c (handle_exception): Set siginfo_er.
11774 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11775 (windows_xfer_siginfo): New function.
11776 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11777 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11778 (init_windows_gdbarch_data): New function.
11779 (get_windows_gdbarch_data): New function.
11780 (windows_get_siginfo_type): New function.
11781 (windows_init_abi): Register windows_get_siginfo_type.
11782 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11783
11784 2020-02-08 Tom Tromey <tom@tromey.com>
11785
11786 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11787 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11788 <keep>: Declare method.
11789 <m_keep>: Remove member.
11790 <~cutu_reader>: Remove.
11791 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11792 (cutu_reader::cutu_reader): Update.
11793 (cutu_reader::keep): Rename from ~cutu_reader.
11794 (process_psymtab_comp_unit, build_type_psymtabs_1)
11795 (process_skeletonless_type_unit, load_partial_comp_unit)
11796 (load_full_comp_unit, dwarf2_read_addr_index)
11797 (read_signatured_type): Update.
11798
11799 2020-02-08 Tom Tromey <tom@tromey.com>
11800
11801 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11802 "want_partial_unit" parameter.
11803 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11804 Inline check for DW_TAG_partial_unit.
11805 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11806
11807 2020-02-08 Tom Tromey <tom@tromey.com>
11808
11809 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11810 read.c.
11811 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11812 read.c.
11813
11814 2020-02-08 Tom Tromey <tom@tromey.com>
11815
11816 * dwarf2/read.c (read_address): Move to comp-unit.c.
11817 (dwarf2_rnglists_process, dwarf2_ranges_process)
11818 (read_attribute_value, dwarf_decode_lines_1)
11819 (var_decode_location, decode_locdesc): Update.
11820 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11821 read.c. Remove "cu" parameter.
11822 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11823 method.
11824
11825 2020-02-08 Tom Tromey <tom@tromey.com>
11826
11827 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11828 (read_indirect_line_string): Update.
11829 * dwarf2/comp-unit.c (read_offset): Remove.
11830 (read_comp_unit_head): Update.
11831 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11832 method.
11833 (read_offset): Don't declare.
11834
11835 2020-02-08 Tom Tromey <tom@tromey.com>
11836
11837 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11838 * dwarf2/read.c (struct comp_unit_head): Move to
11839 dwarf2/comp-unit.h.
11840 (enum class rcuh_kind): Move to comp-unit.h.
11841 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11842 (read_comp_unit_head, error_check_comp_unit_head)
11843 (read_and_check_comp_unit_head): Move to comp-unit.c.
11844 (read_offset, dwarf_unit_type_name): Likewise.
11845 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11846 (cutu_reader::cutu_reader, read_call_site_scope)
11847 (find_partial_die, follow_die_offset): Update.
11848 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11849
11850 2020-02-08 Tom Tromey <tom@tromey.com>
11851
11852 * dwarf2/read.c (read_offset_1): Move to leb.c.
11853 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11854 (dwarf_decode_macro_bytes): Update.
11855 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11856 * dwarf2/leb.h (read_offset): Declare.
11857
11858 2020-02-08 Tom Tromey <tom@tromey.com>
11859
11860 * dwarf2/read.c (dwarf2_section_size): Remove.
11861 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11862 Update.
11863 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11864
11865 2020-02-08 Tom Tromey <tom@tromey.com>
11866
11867 * dwarf2/read.c (read_initial_length): Move to leb.c.
11868 * dwarf2/leb.h (read_initial_length): Declare.
11869 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11870 handle_nonstd parameter.
11871 * dwarf2/frame.c (read_initial_length): Remove.
11872 (decode_frame_entry_1): Update.
11873
11874 2020-02-08 Tom Tromey <tom@tromey.com>
11875
11876 * dwarf2/loc.c (dwarf2_find_location_expression)
11877 (dwarf_evaluate_loc_desc::get_tls_address)
11878 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11879 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11880 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11881 (dwarf2_compile_property_to_c)
11882 (dwarf2_loc_desc_get_symbol_read_needs)
11883 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11884 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11885 (loclist_describe_location, loclist_tracepoint_var_ref)
11886 (loclist_generate_c_location): Update.
11887 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11888 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11889 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11890 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11891 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11892 (dwarf2_per_cu_data::addr_size)
11893 (dwarf2_per_cu_data::ref_addr_size)
11894 (dwarf2_per_cu_data::text_offset)
11895 (dwarf2_per_cu_data::addr_type): Now methods.
11896 (per_cu_header_read_in): Make per_cu "const".
11897 (dwarf2_version): Remove.
11898 (dwarf2_per_cu_data::int_type): Now a method.
11899 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11900 (set_die_type, read_array_type, read_subrange_index_type)
11901 (read_tag_string_type, read_subrange_type): Update.
11902 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11903 offset_size, ref_addr_size, text_offset, addr_type, version,
11904 objfile, int_type, addr_sized_int_type>: Declare methods.
11905
11906 2020-02-08 Tom Tromey <tom@tromey.com>
11907
11908 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11909 Move earlier.
11910
11911 2020-02-08 Tom Tromey <tom@tromey.com>
11912
11913 * dwarf2/read.h (dwarf_line_debug): Declare.
11914 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11915 * dwarf2/read.c: Move line_header code to new files.
11916 (dwarf_line_debug): No longer static.
11917 * dwarf2/line-header.c: New file.
11918 * dwarf2/line-header.h: New file.
11919
11920 2020-02-08 Tom Tromey <tom@tromey.com>
11921
11922 * dwarf2/read.c (struct line_header) <file_full_name,
11923 file_file_name>: Return unique_xmalloc_ptr.
11924 (line_header::file_file_name): Update.
11925 (line_header::file_full_name): Update.
11926 (dw2_get_file_names_reader): Update.
11927 (macro_start_file): Update.
11928
11929 2020-02-08 Tom Tromey <tom@tromey.com>
11930
11931 * dwarf2/read.c (struct line_header) <file_full_name,
11932 file_file_name>: Declare methods.
11933 (dw2_get_file_names_reader): Update.
11934 (file_file_name): Now a method.
11935 (file_full_name): Likewise.
11936 (macro_start_file): Update.
11937
11938 2020-02-08 Tom Tromey <tom@tromey.com>
11939
11940 * dwarf2/read.c (dwarf_always_disassemble)
11941 (show_dwarf_always_disassemble): Move to loc.c.
11942 (_initialize_dwarf2_read): Move "always-disassemble" registration
11943 to loc.c.
11944 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11945 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11946 static.
11947 (show_dwarf_always_disassemble): Move from read.c.
11948 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11949
11950 2020-02-08 Tom Tromey <tom@tromey.com>
11951
11952 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11953 (create_quick_file_names_table): Return htab_up.
11954 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11955 Update.
11956 * dwarf2/read.h (struct dwarf2_per_objfile)
11957 <quick_file_names_table>: Now htab_up.
11958
11959 2020-02-08 Tom Tromey <tom@tromey.com>
11960
11961 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11962
11963 2020-02-08 Tom Tromey <tom@tromey.com>
11964
11965 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11966 Rewrite.
11967 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11968 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11969 (abbrev_table::abbrev_table): No longer inline.
11970 (ABBREV_HASH_SIZE): Remove.
11971 (abbrev_table::m_abbrevs): Now an htab_up.
11972
11973 2020-02-08 Tom Tromey <tom@tromey.com>
11974
11975 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11976 (cutu_reader): Update.
11977 (build_type_psymtabs_1): Update.
11978 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11979 (abbrev_table::alloc_abbrev): Update.
11980 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11981 (abbrev_table::read): New static method, renamed from
11982 abbrev_table_read_table.
11983 (abbrev_table::alloc_abbrev)
11984 (abbrev_table::add_abbrev): Now private.
11985 (abbrev_table::abbrev_table): Now private.
11986 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11987
11988 2020-02-08 Tom Tromey <tom@tromey.com>
11989
11990 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11991 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11992 htab_up.
11993
11994 2020-02-08 Tom Tromey <tom@tromey.com>
11995
11996 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11997 htab_up.
11998 (lookup_dwo_unit_in_dwp): Update.
11999 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
12000 on obstack.
12001
12002 2020-02-08 Tom Tromey <tom@tromey.com>
12003
12004 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
12005 obstack.
12006
12007 2020-02-08 Tom Tromey <tom@tromey.com>
12008
12009 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
12010 line_header_hash.
12011 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
12012 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
12013 Change type to htab_up.
12014
12015 2020-02-08 Tom Tromey <tom@tromey.com>
12016
12017 * dwarf2/read.c (allocate_type_unit_groups_table): Return
12018 htab_up. Don't allocate on obstack.
12019 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
12020 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
12021 Change type to htab_up.
12022
12023 2020-02-08 Tom Tromey <tom@tromey.com>
12024
12025 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
12026 Change type to htab_up.
12027 * dwarf2/read.c (create_signatured_type_table_from_index)
12028 (create_signatured_type_table_from_debug_names)
12029 (create_all_type_units, add_type_unit)
12030 (lookup_dwo_signatured_type, lookup_signatured_type)
12031 (process_skeletonless_type_unit): Update.
12032 (create_debug_type_hash_table, create_debug_types_hash_table):
12033 Change type of types_htab.
12034 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
12035 htab_up. Don't allocate on obstack.
12036 (create_cus_hash_table): Change type of cus_htab parameter.
12037 (struct dwo_file) <cus, tus>: Now htab_up.
12038 (lookup_dwo_signatured_type, lookup_dwo_cutu)
12039 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
12040 (queue_and_load_all_dwo_tus): Update.
12041 * dwarf2/index-write.c (write_gdbindex): Update.
12042 (write_debug_names): Update.
12043
12044 2020-02-08 Tom Tromey <tom@tromey.com>
12045
12046 * dwarf2/read.h (struct dwarf2_queue_item): Move from
12047 dwarf2/read.c. Remove "next" member. Add constructor ntad
12048 destructor.
12049 (struct dwarf2_per_objfile) <queue>: New member.
12050 * dwarf2/read.c (struct dwarf2_queue_item): Move to
12051 dwarf2/read.h.
12052 (dwarf2_queue, dwarf2_queue_tail): Remove.
12053 (class dwarf2_queue_guard): Add parameter to constructor. Use
12054 DISABLE_COPY_AND_ASSIGN.
12055 <m_per_objfile>: New member.
12056 <~dwarf2_queue_guard>: Rewrite.
12057 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
12058 Update.
12059 (~dwarf2_queue_item): New.
12060
12061 2020-02-08 Tom Tromey <tom@tromey.com>
12062
12063 * dwarf2/read.c (struct die_info) <has_children>: New member.
12064 (dw2_get_file_names_reader): Remove has_children.
12065 (dw2_get_file_names): Update.
12066 (read_cutu_die_from_dwo): Remove has_children.
12067 (cutu_reader::init_tu_and_read_dwo_dies)
12068 (cutu_reader::cutu_reader): Update.
12069 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
12070 Remove has_children.
12071 (build_type_psymtabs_1, process_skeletonless_type_unit)
12072 (load_partial_comp_unit, load_full_comp_unit): Update.
12073 (create_dwo_cu_reader): Remove has_children.
12074 (create_cus_hash_table, read_die_and_children): Update.
12075 (read_full_die_1,read_full_die): Remove has_children.
12076 (read_signatured_type): Update.
12077 (class cutu_reader) <has_children>: Remove.
12078
12079 2020-02-08 Tom Tromey <tom@tromey.com>
12080
12081 * dwarf2/expr.c: Rename from dwarf2expr.c.
12082 * dwarf2/expr.h: Rename from dwarf2expr.h.
12083 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
12084 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
12085 * dwarf2/frame.c: Rename from dwarf2-frame.c.
12086 * dwarf2/frame.h: Rename from dwarf2-frame.h.
12087 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
12088 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
12089 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
12090 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
12091 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
12092 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
12093 * dwarf2/loc.c: Rename from dwarf2loc.c.
12094 * dwarf2/loc.h: Rename from dwarf2loc.h.
12095 * dwarf2/read.c: Rename from dwarf2read.c.
12096 * dwarf2/read.h: Rename from dwarf2read.h.
12097 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
12098 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
12099 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
12100 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
12101 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
12102 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
12103 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
12104 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
12105 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
12106 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
12107 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
12108 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
12109 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
12110 Update.
12111 * Makefile.in (COMMON_SFILES): Update.
12112 (HFILES_NO_SRCDIR): Update.
12113
12114 2020-02-08 Tom Tromey <tom@tromey.com>
12115
12116 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
12117 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
12118
12119 2020-02-08 Tom Tromey <tom@tromey.com>
12120
12121 * dwarf2read.h (struct die_info): Don't declare.
12122
12123 2020-02-08 Tom Tromey <tom@tromey.com>
12124
12125 * dwarf2read.h (die_info_ptr): Remove typedef.
12126
12127 2020-02-08 Tom Tromey <tom@tromey.com>
12128
12129 * dwarf2read.c (read_call_site_scope)
12130 (handle_data_member_location, dwarf2_add_member_fn)
12131 (mark_common_block_symbol_computed, read_common_block)
12132 (attr_to_dynamic_prop, partial_die_info::read)
12133 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
12134 (dwarf2_symbol_mark_computed, set_die_type): Update.
12135 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
12136 method.
12137 (attr_form_is_block): Don't declare.
12138 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
12139
12140 2020-02-08 Tom Tromey <tom@tromey.com>
12141
12142 * dwarf2read.c (dwarf2_find_base_address, )
12143 (read_call_site_scope, rust_containing_type)
12144 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
12145 (handle_data_member_location, dwarf2_add_member_fn)
12146 (get_alignment, read_structure_type, process_structure_scope)
12147 (mark_common_block_symbol_computed, read_common_block)
12148 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
12149 (partial_die_info::read, read_attribute_value, new_symbol)
12150 (lookup_die_type, dwarf2_get_ref_die_offset)
12151 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
12152 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
12153 (dwarf2_symbol_mark_computed): Update.
12154 * dwarf2/attribute.h (struct attribute) <value_as_address,
12155 form_is_section_offset, form_is_constant, form_is_ref>: Declare
12156 methods.
12157 (value_as_address, attr_form_is_section_offset)
12158 (attr_form_is_constant, attr_form_is_ref): Don't declare.
12159 * dwarf2/attribute.c (attribute::value_as_address)
12160 (attribute::form_is_section_offset, attribute::form_is_constant)
12161 (attribute::form_is_ref): Now methods.
12162
12163 2020-02-08 Tom Tromey <tom@tromey.com>
12164
12165 * dwarf2read.c (struct attribute, DW_STRING)
12166 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
12167 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
12168 (attr_form_is_block, attr_form_is_section_offset)
12169 (attr_form_is_constant, attr_form_is_ref): Move.
12170 * dwarf2/attribute.h: New file.
12171 * dwarf2/attribute.c: New file, from dwarf2read.c.
12172 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
12173
12174 2020-02-08 Tom Tromey <tom@tromey.com>
12175
12176 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
12177 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
12178 Move.
12179 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
12180 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
12181 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
12182 abbrev.c.
12183 * dwarf2/abbrev.h: New file.
12184 * dwarf2/abbrev.c: New file, from dwarf2read.c.
12185 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
12186
12187 2020-02-08 Tom Tromey <tom@tromey.com>
12188
12189 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
12190 (dwarf2_section_size, dwarf2_get_section_info)
12191 (create_signatured_type_table_from_debug_names)
12192 (create_addrmap_from_aranges, read_debug_names_from_section)
12193 (get_gdb_index_contents_from_section, read_comp_unit_head)
12194 (error_check_comp_unit_head, read_abbrev_offset)
12195 (create_debug_type_hash_table, init_cu_die_reader)
12196 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
12197 (read_comp_units_from_section, create_cus_hash_table)
12198 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
12199 (create_dwp_v2_section, dwarf2_rnglists_process)
12200 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
12201 (abbrev_table_read_table, read_indirect_string_at_offset_from)
12202 (read_indirect_string_from_dwz, read_addr_index_1)
12203 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
12204 (dwarf_decode_macro_bytes, dwarf_decode_macros)
12205 (fill_in_loclist_baton): Update.
12206 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
12207 get_containing_section, get_bfd_owner, get_bfd_section,
12208 get_file_name, get_id, get_flags, empty, read>: Declare methods.
12209 (dwarf2_read_section, get_section_name, get_section_file_name)
12210 (get_containing_section, get_section_bfd_owner)
12211 (get_section_bfd_section, get_section_name, get_section_file_name)
12212 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
12213 declare.
12214 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
12215 (dwarf2_section_info::get_bfd_owner)
12216 (dwarf2_section_info::get_bfd_section)
12217 (dwarf2_section_info::get_name)
12218 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
12219 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
12220 (dwarf2_section_info::read): Now methods.
12221 * dwarf-index-write.c (class debug_names): Update.
12222
12223 2020-02-08 Tom Tromey <tom@tromey.com>
12224
12225 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
12226 Move to dwarf2/section.h.
12227 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
12228 (get_section_bfd_section, get_section_name)
12229 (get_section_file_name, get_section_id, get_section_flags)
12230 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
12231 dwarf2/section.c.
12232 * dwarf2/section.h: New file.
12233 * dwarf2/section.c: New file, from dwarf2read.c.
12234 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
12235
12236 2020-02-08 Tom Tromey <tom@tromey.com>
12237
12238 * dwarf2read.h (read_unsigned_leb128): Don't declare.
12239 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
12240 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
12241 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
12242 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
12243 * dwarf2/leb.h: New file, from dwarf2read.c.
12244 * dwarf2/leb.c: New file, from dwarf2read.c.
12245 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
12246 Remove.
12247 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
12248 (COMMON_SFILES): Add dwarf2/leb.c.
12249
12250 2020-02-08 Joel Brobecker <brobecker@adacore.com>
12251
12252 GDB 9.1 released.
12253
12254 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12255
12256 PR gdb/25190:
12257 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
12258 * gdb/remote.c (remote_console_output): Update.
12259 * gdb/ui-file.c (fputs_unfiltered): Rename to...
12260 (ui_file_puts): ...this.
12261 * gdb/ui-file.h (ui_file_puts): Add declaration.
12262 * gdb/utils.c (emit_style_escape): Update.
12263 (flush_wrap_buffer): Update.
12264 (fputs_maybe_filtered): Update.
12265 (fputs_unfiltered): Add function.
12266
12267 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12268
12269 * gdb/event-loop.c (gdb_wait_for_event): Update.
12270 * gdb/printcmd.c (printf_command): Update.
12271 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
12272 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
12273 (gdb_os_flush_stderr): Update.
12274 * gdb/remote.c (remote_console_output): Update.
12275 * gdb/ui-file.c (gdb_flush): Rename to...
12276 (ui_file_flush): ...this.
12277 (stderr_file::write): Update.
12278 (stderr_file::puts): Update.
12279 * gdb/ui-file.h (gdb_flush): Rename to...
12280 (ui_file_flush): ...this.
12281 * gdb/utils.c (gdb_flush): Add function.
12282 * gdb/utils.h (gdb_flush): Add declaration.
12283
12284 2020-02-07 Tom Tromey <tromey@adacore.com>
12285
12286 PR breakpoints/24915:
12287 * source.c (find_and_open_source): Do not check basenames_may_differ.
12288
12289 2020-02-07 Tom Tromey <tom@tromey.com>
12290
12291 * README: Update gdbserver documentation.
12292 * gdbserver: Move to top level.
12293 * configure.tgt (build_gdbserver): Remove.
12294 * configure.ac: Remove --enable-gdbserver.
12295 * configure: Rebuild.
12296 * Makefile.in (distclean): Don't mention gdbserver.
12297
12298 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
12299
12300 * source-cache.c (source_cache::ensure): Surround
12301 get_plain_source_lines with a try/catch.
12302 (source_cache::get_line_charpos): Get rid of try/catch
12303 and only check for the return value of "ensure".
12304 * tui/tui-source.c (tui_source_window::set_contents):
12305 Simplify "nlines" calculation.
12306
12307 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
12308
12309 * MAINTAINERS (Write After Approval): Add myself.
12310
12311 2020-02-05 Christian Biesinger <cbiesinger@google.com>
12312
12313 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
12314 function call.
12315
12316 2020-02-05 Christian Biesinger <cbiesinger@google.com>
12317
12318 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
12319
12320 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
12321
12322 * nat/riscv-linux-tdesc.h: New file.
12323 * nat/riscv-linux-tdesc.c: New file, taking code from...
12324 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12325 ... here.
12326 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
12327 NATDEPFILES.
12328
12329 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
12330
12331 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
12332 we don't set the fake simulator ptid to the null_ptid.
12333
12334 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
12335
12336 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
12337 * gdbthread.h (class thread_info) <resumed>: Likewise.
12338 * infrun.c (resume_1): Likewise.
12339 (proceed): Likewise.
12340 (infrun_thread_stop_requested): Likewise.
12341 (stop_all_threads): Likewise.
12342 (handle_inferior_event): Likewise.
12343 (restart_threads): Likewise.
12344 (finish_step_over): Likewise.
12345 (keep_going_stepped_thread): Likewise.
12346 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
12347 (linux_handle_extended_wait): Likewise.
12348 * record-btrace.c (get_thread_current_frame_id): Likewise.
12349 * record-full.c (record_full_wait_1): Likewise.
12350 * remote.c (remote_target::process_initial_stop_replies): Likewise.
12351 * target.c (target_resume): Likewise.
12352 * thread.c (set_running_thread): Likewise.
12353
12354 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12355
12356 * f-valprint.c (f77_print_array_1): Changed datatype of index
12357 variable to LONGEST from int to enable it to contain bound
12358 values correctly.
12359
12360 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
12361
12362 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12363 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12364 offsets according to FLEN determined.
12365 (riscv_linux_nat_target::read_description): Determine FLEN
12366 dynamically.
12367 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12368 according to FLEN determined.
12369 (riscv_linux_nat_target::store_registers): Likewise.
12370
12371 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12372
12373 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12374 when reg->group is empty and reggroup is not.
12375
12376 2020-01-31 Tom Tromey <tromey@adacore.com>
12377
12378 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12379 Call beneath target's mourn_inferior after unpushing.
12380
12381 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12382
12383 PR tui/9765
12384 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12385 have enough lines to fill the screen, still return the lowest
12386 address we found.
12387
12388 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12389
12390 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12391 '-', '<', and '>' commands.
12392
12393 2020-01-29 Pedro Alves <palves@redhat.com>
12394 Sergio Durigan Junior <sergiodj@redhat.com>
12395
12396 * infcmd.c (construct_inferior_arguments): Assert that
12397 'argc' is greater than 0.
12398
12399 2020-01-29 Luis Machado <luis.machado@linaro.org>
12400
12401 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12402 (BRK_INSN_MASK): Define to 0xd4200000.
12403 (aarch64_program_breakpoint_here_p): New function.
12404 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12405 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12406 breakpoint.c.
12407 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12408 breakpoint.h
12409 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12410 call gdbarch_program_breakpoint_here_p.
12411 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12412 default_program_breakpoint_here_p, changed return type to bool and
12413 simplified.
12414 * breakpoint.h (program_breakpoint_here): Moved prototype to
12415 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12416 return type to bool.
12417 * gdbarch.c: Regenerate.
12418 * gdbarch.h: Regenerate.
12419 * gdbarch.sh (program_breakpoint_here_p): New method.
12420 * infrun.c (handle_signal_stop): Call
12421 gdbarch_program_breakpoint_here_p.
12422
12423 2020-01-26 Tom Tromey <tom@tromey.com>
12424
12425 * ctfread.c (struct ctf_fp_info): Reindent.
12426 (_initialize_ctfread): Remove.
12427
12428 2020-01-26 Tom Tromey <tom@tromey.com>
12429
12430 * psymtab.c (partial_map_expand_apply)
12431 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12432 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12433 (psym_print_stats, psym_expand_symtabs_for_function)
12434 (psym_map_symbol_filenames, psym_map_matching_symbols)
12435 (psym_expand_symtabs_matching)
12436 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12437 (maintenance_check_psymtabs): Use new methods.
12438 * psympriv.h (struct partial_symtab) <readin_p,
12439 get_compunit_symtab>: New methods.
12440 <readin, compunit_symtab>: Remove members.
12441 (struct standard_psymtab): New.
12442 (struct legacy_psymtab): Derive from standard_psymtab.
12443 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12444 standard_psymtab.
12445 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12446
12447 2020-01-26 Tom Tromey <tom@tromey.com>
12448
12449 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12450 read_dependencies. Add assert.
12451 * psymtab.c (partial_symtab::read_dependencies): New method.
12452 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12453 method.
12454 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12455 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12456 read_dependencies.
12457 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12458 Add assert.
12459
12460 2020-01-26 Tom Tromey <tom@tromey.com>
12461
12462 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12463 Call expand_psymtab.
12464 (xcoff_read_symtab): Call expand_psymtab.
12465 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12466 legacy_expand_psymtab.
12467 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12468 method.
12469 (struct legacy_psymtab) <expand_psymtab>: Implement.
12470 <legacy_expand_psymtab>: New member.
12471 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12472 (parse_partial_symbols): Set legacy_expand_psymtab.
12473 (psymtab_to_symtab_1): Change argument order. Call
12474 expand_psymtab.
12475 (new_psymtab): Set legacy_expand_psymtab.
12476 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12477 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12478 expand_psymtab.
12479 (dwarf2_psymtab::expand_psymtab): Rename from
12480 psymtab_to_symtab_1. Call expand_psymtab.
12481 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12482 (dbx_end_psymtab): Likewise.
12483 (dbx_psymtab_to_symtab_1): Change argument order. Call
12484 expand_psymtab.
12485 (dbx_read_symtab): Call expand_psymtab.
12486 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12487 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12488 (ctf_psymtab::read_symtab): Call expand_psymtab.
12489
12490 2020-01-26 Tom Tromey <tom@tromey.com>
12491
12492 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12493 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12494 messages.
12495 * mdebugread.c (mdebug_read_symtab): Remove prints.
12496 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12497 assert.
12498 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12499
12500 2020-01-26 Tom Tromey <tom@tromey.com>
12501
12502 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12503 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12504 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12505 legacy_symtab.
12506 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12507 * psymtab.c (psymtab_to_symtab): Call method.
12508 (dump_psymtab): Update.
12509 * psympriv.h (struct partial_symtab): Add virtual destructor.
12510 <read_symtab>: New method.
12511 (struct legacy_symtab): New.
12512 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12513 (struct pst_map) <pst>: Now a legacy_psymtab.
12514 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12515 (new_psymtab): Use legacy_psymtab.
12516 * dwarf2read.h (struct dwarf2_psymtab): New.
12517 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12518 * dwarf2read.c (dwarf2_create_include_psymtab)
12519 (dwarf2_build_include_psymtabs, create_type_unit_group)
12520 (create_partial_symtab, process_psymtab_comp_unit_reader)
12521 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12522 (set_partial_user): Use dwarf2_psymtab.
12523 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12524 (psymtab_to_symtab_1, process_full_comp_unit)
12525 (process_full_type_unit, dwarf2_ranges_read)
12526 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12527 (dwarf_decode_lines): Use dwarf2_psymtab.
12528 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12529 (add_address_entry_worker, write_one_signatured_type)
12530 (recursively_count_psymbols, recursively_write_psymbols)
12531 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12532 (write_debug_names): Likewise.
12533 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12534 <pst>: Now a legacy_psymtab.
12535 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12536 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12537 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12538 * ctfread.c (struct ctf_psymtab): New.
12539 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12540 ctf_psymtab.
12541 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12542 (create_partial_symtab): Return a ctf_psymtab.
12543 (scan_partial_symbols): Update.
12544
12545 2020-01-26 Tom Tromey <tom@tromey.com>
12546
12547 * xcoffread.c (xcoff_start_psymtab): Use new.
12548 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12549 renamed from start_psymtab_common.
12550 * psympriv.h (struct partial_symtab): Add new constructor.
12551 (start_psymtab_common): Don't declare.
12552 * mdebugread.c (parse_partial_symbols): Use new.
12553 * dwarf2read.c (create_partial_symtab): Use new.
12554 * dbxread.c (start_psymtab): Use new.
12555 * ctfread.c (create_partial_symtab): Use new.
12556
12557 2020-01-26 Tom Tromey <tom@tromey.com>
12558
12559 * xcoffread.c (xcoff_end_psymtab): Use new.
12560 * psymtab.c (start_psymtab_common): Use new.
12561 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12562 Update.
12563 * psympriv.h (struct partial_symtab): Add parameters to
12564 constructor. Don't inline.
12565 (allocate_psymtab): Don't declare.
12566 * mdebugread.c (new_psymtab): Use new.
12567 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12568 * dbxread.c (dbx_end_psymtab): Use new.
12569
12570 2020-01-26 Tom Tromey <tom@tromey.com>
12571
12572 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12573 allocate_psymtab. Update documentation.
12574 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12575 allocate_psymtab. Do not use new.
12576 (allocate_psymtab): Use new. Update.
12577
12578 2020-01-26 Tom Tromey <tom@tromey.com>
12579
12580 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12581 * psymtab.c (psym_print_stats): Update.
12582 * psympriv.h (struct partial_symtab) <readin,
12583 psymtabs_addrmap_supported, anonymous>: Now bool.
12584 * mdebugread.c (psymtab_to_symtab_1): Update.
12585 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12586 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12587 (process_full_comp_unit, process_full_type_unit): Update.
12588 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12589 * ctfread.c (psymtab_to_symtab): Update.
12590
12591 2020-01-26 Tom Tromey <tom@tromey.com>
12592
12593 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12594 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12595 * psymtab.c (psymtab_storage): Delete psymtabs.
12596 (psymtab_storage::allocate_psymtab): Use new.
12597 (psymtab_storage::discard_psymtab): Use delete.
12598 * psympriv.h (struct partial_symtab): Add constructor and
12599 initializers.
12600
12601 2020-01-26 Tom Tromey <tom@tromey.com>
12602
12603 * machoread.c: Do not include psympriv.h.
12604
12605 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12606
12607 * NEWS: Mention the new option and the set/show commands.
12608
12609 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12610
12611 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12612 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12613 (validate_exec_file): New variables, enums, functions.
12614 (exec_file_locate_attach, print_section_info): Style the filenames.
12615 (_initialize_exec): Install show_exec_file_mismatch_command and
12616 set_exec_file_mismatch_command.
12617 * gdbcore.h (validate_exec_file): Declare.
12618 * infcmd.c (attach_command): Call validate_exec_file.
12619 * remote.c ( remote_target::remote_add_inferior): Likewise.
12620
12621 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12622
12623 * frame.c (find_frame_sal): Move call to get_next_frame into more
12624 inner scope.
12625 * inline-frame.c (inilne_state) <inline_state>: Update argument
12626 types.
12627 (inilne_state) <skipped_symbol>: Rename to...
12628 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12629 (skip_inline_frames): Build vector of skipped symbols and use this
12630 to reate the inline_state.
12631 (inline_skipped_symbol): Add a comment and some assertions, fetch
12632 skipped symbol from the list.
12633
12634 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12635
12636 * buildsym.c (lte_is_less_than): Delete.
12637 (buildsym_compunit::end_symtab_with_blockvector): Create local
12638 lambda function to sort line table entries, and use
12639 std::stable_sort instead of std::sort.
12640 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12641 markers when looking for a previous line.
12642
12643 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12644
12645 * dwarf2read.c (lnp_state_machine::record_line): Include
12646 end_sequence parameter in debug print out. Record the line if we
12647 are at an end_sequence marker even if it's not the start of a
12648 statement.
12649 * symmisc.c (maintenance_print_one_line_table): Print end of
12650 sequence markers with 'END' not '0'.
12651
12652 2020-01-24 Pedro Alves <palves@redhat.com>
12653
12654 PR gdb/25410
12655 * thread.c (scoped_restore_current_thread::restore): Use
12656 switch_to_inferior_no_thread.
12657 * exec.c: Include "progspace-and-thread.h".
12658 (add_target_sections, remove_target_sections):
12659 scoped_restore_current_pspace_and_thread instead of
12660 scoped_restore_current_thread.
12661 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12662 and aspace to the inferior before calling clone_program_space.
12663 Remove stale comment.
12664
12665 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12666
12667 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12668 (arm_netbsd_nat_target::fetch_registers): ...this.
12669 (arm_nbsd_nat_target::store_registers): Rename to...
12670 (arm_netbsd_nat_target::store_registers): ...this.
12671
12672 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12673
12674 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12675 register_t.
12676
12677 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12678
12679 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12680 Update comment.
12681 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12682 Likewise.
12683 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12684 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12685 the correct replacement (iterate_over_regset_sections).
12686 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12687 Update comment.
12688
12689 2020-01-24 Graham Markall <graham.markall@embecosm.com>
12690
12691 PR gdb/23718
12692 * gdb/python/python.c (execute_gdb_command): Call
12693 async_enable_stdin in catch block.
12694
12695 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12696
12697 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12698 SWITCH_THRU_ALL_UIS.
12699
12700 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12701
12702 PR tui/9765
12703 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12704 comment, add extra parameter, and update to store previous symbol
12705 when appropriate.
12706 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12707 add extra parameter.
12708 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12709 remove unneeded parameter, add try/catch around gdb_print_insn,
12710 rewrite to add items to asm_lines vector.
12711 (tui_find_backward_disassembly_start_address): New function.
12712 (tui_find_disassembly_address): Updated throughout.
12713 (tui_disasm_window::set_contents): Update for changes to
12714 tui_disassemble.
12715 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12716 number of lines to scroll.
12717
12718 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12719
12720 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12721 (SECT_OFF_DATA): Likewise.
12722 (SECT_OFF_RODATA): Likewise.
12723 (SECT_OFF_TEXT): Likewise.
12724 (SECT_OFF_BSS): Likewise.
12725 (struct objfile) <text_section_offset, data_section_offset>: New
12726 methods.
12727 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12728 objfile::text_section_offset.
12729 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12730 * coffread.c (coff_symtab_read): Likewise.
12731 (enter_linenos): Likewise.
12732 (process_coff_symbol): Likewise.
12733 * ctfread.c (get_objfile_text_range): Likewise.
12734 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12735 Use objfile::data_section_offset.
12736 * dwarf2-frame.c (execute_cfa_program): Use
12737 objfile::text_section_offset.
12738 (dwarf2_frame_find_fde): Likewise.
12739 * dwarf2read.c (create_addrmap_from_index): Likewise.
12740 (create_addrmap_from_aranges): Likewise.
12741 (dw2_find_pc_sect_compunit_symtab): Likewise.
12742 (process_psymtab_comp_unit_reader): Likewise.
12743 (add_partial_symbol): Likewise.
12744 (add_partial_subprogram): Likewise.
12745 (process_full_comp_unit): Likewise.
12746 (read_file_scope): Likewise.
12747 (read_func_scope): Likewise.
12748 (read_lexical_block_scope): Likewise.
12749 (read_call_site_scope): Likewise.
12750 (dwarf2_rnglists_process): Likewise.
12751 (dwarf2_ranges_process): Likewise.
12752 (dwarf2_ranges_read): Likewise.
12753 (dwarf_decode_lines_1): Likewise.
12754 (new_symbol): Likewise.
12755 (dwarf2_fetch_die_loc_sect_off): Likewise.
12756 (dwarf2_per_cu_text_offset): Likewise.
12757 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12758 * hppa-tdep.c (read_unwind_info): Likewise.
12759 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12760 * psympriv.h (struct partial_symtab): Likewise.
12761 * psymtab.c (find_pc_sect_psymtab): Likewise.
12762 * solib-svr4.c (enable_break): Likewise.
12763 * stap-probe.c (relocate_address): Use
12764 objfile::data_section_offset.
12765 * xcoffread.c (enter_line_range): Use
12766 objfile::text_section_offset.
12767 (read_xcoff_symtab): Likewise.
12768
12769 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
12770
12771 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12772 declaration to narrower scopes.
12773
12774 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
12775
12776 * darwin-nat.h (struct darwin_exception_msg, enum
12777 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12778 Move up.
12779 (class darwin_nat_target) <wait_1, check_new_threads,
12780 decode_exception_message, decode_message, stop_inferior,
12781 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12782 * darwin-nat.c (darwin_check_new_threads): Rename to...
12783 (darwin_nat_target::check_new_threads): ... this.
12784 (darwin_suspend_inferior_it): Remove.
12785 (darwin_decode_exception_message): Rename to...
12786 (darwin_nat_target::decode_exception_message): ... this.
12787 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12788 (darwin_decode_message): Rename to...
12789 (darwin_nat_target::decode_message): ... this.
12790 (cancel_breakpoint): Rename to...
12791 (darwin_nat_target::cancel_breakpoint): ... this.
12792 (darwin_wait): Rename to...
12793 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12794 instead of iterate_over_inferiors.
12795 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12796 (darwin_stop_inferior): Rename to...
12797 (darwin_nat_target::stop_inferior): ... this.
12798 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12799 (darwin_init_thread_list): Rename to...
12800 (darwin_nat_target::init_thread_list): ... this.
12801 (darwin_ptrace_him): Rename to...
12802 (darwin_nat_target::ptrace_him): ... this.
12803 (darwin_nat_target::create_inferior): Pass lambda function to
12804 fork_inferior.
12805 (darwin_nat_target::detach): Call stop_inferior instead of
12806 darwin_stop_inferior.
12807 * fork-inferior.h (fork_inferior): Change init_trace_fun
12808 parameter to gdb::function_view.
12809 * fork-inferior.c (fork_inferior): Likewise.
12810
12811 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
12812
12813 * i386-cygwin-tdep.c (core_process_module_section): Update.
12814 * windows-nat.c (struct lm_info_windows): Add text_offset.
12815 (windows_xfer_shared_libraries): Update.
12816 * windows-tdep.c (windows_xfer_shared_library):
12817 Add text_offset_cached argument.
12818 * windows-tdep.h (windows_xfer_shared_library): Update.
12819
12820 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12821
12822 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12823
12824 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12825
12826 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12827 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12828 replace with range-based for.
12829 (gdbsim_interrupt_inferior): Remove.
12830 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12831 with a range-based for. Inline code from
12832 gdbsim_interrupt_inferior.
12833
12834 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12835
12836 * infrun.c (proceed): Fix indentation.
12837
12838 2020-01-21 Tom Tromey <tromey@adacore.com>
12839
12840 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12841 * python/python.c (python_extension_ops): Update.
12842 (gdbpy_colorize): New function.
12843 * python/lib/gdb/__init__.py (colorize): New function.
12844 * extension.h (ext_lang_colorize): Declare.
12845 * extension.c (ext_lang_colorize): New function.
12846 * extension-priv.h (struct extension_language_ops) <colorize>: New
12847 member.
12848 * cli/cli-style.c (_initialize_cli_style): Update help text.
12849
12850 2020-01-21 Luis Machado <luis.machado@linaro.org>
12851
12852 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12853 <cond>: Change type to bool.
12854 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12855 (aarch64_displaced_step_cb): Likewise.
12856 (aarch64_displaced_step_tb): Likewise.
12857
12858 2020-01-21 Luis Machado <luis.machado@linaro.org>
12859
12860 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12861 output.
12862
12863 2020-01-21 Luis Machado <luis.machado@linaro.org>
12864
12865 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12866 <pc_adjust>: Adjust the documentation.
12867 (aarch64_displaced_step_fixup): Check if PC really moved before
12868 adjusting it.
12869
12870 2020-01-19 Tom Tromey <tom@tromey.com>
12871
12872 * disasm.c (~gdb_disassembler): New destructor.
12873 (gdb_buffered_insn_length): Call disassemble_free_target.
12874 * disasm.h (class gdb_disassembler): Declare destructor. Use
12875 DISABLE_COPY_AND_ASSIGN.
12876
12877 2020-01-19 Tom Tromey <tom@tromey.com>
12878
12879 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12880 (die_reader_func_ftype): Remove.
12881 (cutu_reader): New class.
12882 (dw2_get_file_names_reader): Remove "data" parameter.
12883 (dw2_get_file_names): Use cutu_reader.
12884 (create_debug_type_hash_table): Update.
12885 (read_cutu_die_from_dwo): Update comment.
12886 (lookup_dwo_unit): Add dwo_name parameter.
12887 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12888 die_reader_func_ftype and data parameters.
12889 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12890 Remove die_reader_func_ftype and data parameters.
12891 (~cutu_reader): New; from init_cutu_and_read_dies.
12892 (cutu_reader::cutu_reader): Rename from
12893 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12894 and data parameters.
12895 (init_cutu_and_read_dies_simple): Remove.
12896 (struct process_psymtab_comp_unit_data): Remove.
12897 (process_psymtab_comp_unit_reader): Remove data parameter; add
12898 want_partial_unit and pretend_language parameters.
12899 (process_psymtab_comp_unit): Use cutu_reader.
12900 (build_type_psymtabs_reader): Remove data parameter.
12901 (build_type_psymtabs_1): Use cutu_reader.
12902 (process_skeletonless_type_unit): Likewise.
12903 (load_partial_comp_unit_reader): Remove.
12904 (load_partial_comp_unit): Use cutu_reader.
12905 (load_full_comp_unit_reader): Remove.
12906 (load_full_comp_unit): Use cutu_reader.
12907 (struct create_dwo_cu_data): Remove.
12908 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12909 dwo_unit parameters.
12910 (create_cus_hash_table): Use cutu_reader.
12911 (struct dwarf2_read_addr_index_data): Remove.
12912 (dwarf2_read_addr_index_reader): Remove.
12913 (dwarf2_read_addr_index): Use cutu_reader.
12914 (read_signatured_type_reader): Remove.
12915 (read_signatured_type): Use cutu_reader.
12916
12917 2020-01-19 Tom Tromey <tom@tromey.com>
12918
12919 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12920 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12921 (tui_wrefresh): Declare.
12922 * tui/tui-wingeneral.c (suppress_output): New global.
12923 (tui_suppress_output, ~tui_suppress_output): New constructor and
12924 destructor.
12925 (tui_wrefresh): New function.
12926 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12927 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12928 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12929 method.
12930 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12931 tui_wrefresh.
12932 (tui_data_window::no_refresh): New method.
12933 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12934 (tui_reg_command): Use tui_suppress_output
12935 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12936 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12937 method.
12938 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12939
12940 2020-01-19 Tom Tromey <tom@tromey.com>
12941
12942 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12943 Handle case where symtab is null.
12944
12945 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12946
12947 * linux-fork.c (one_fork_p): Simplify.
12948
12949 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12950
12951 * top.c (struct qt_args): Remove.
12952 (kill_or_detach): Change return type to void, replace `void *`
12953 parameter with a proper one.
12954 (print_inferior_quit_action): Likewise.
12955 (quit_confirm): Use range-based for loop to iterate over inferiors.
12956 (quit_force): Likewise.
12957
12958 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12959
12960 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12961 `void *` parameter with proper parameters.
12962 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12963 (print_one_inferior): Change return type to void, replace `void *`
12964 parameter with proper parameters.
12965 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12966 inferiors.
12967 (get_other_inferior): Remove.
12968 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12969 inferiors.
12970
12971 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12972
12973 * mi/mi-interp.c (report_initial_inferior): Remove.
12974 (mi_interp::init): Use range-based for to iterate over inferiors.
12975
12976 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12977
12978 * python/py-inferior.c (build_inferior_list): Remove.
12979 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12980
12981 2020-01-16 Christian Biesinger <cbiesinger@google.com>
12982
12983 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12984 (btrace_stitch_trace): Likewise.
12985 * charset.c (intermediate_encoding): Likewise (vaild).
12986 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12987 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12988 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12989
12990 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
12991
12992 * windows-tdep.c (windows_get_tlb_type):
12993 Add rtl_user_process_parameters type.
12994
12995 2020-01-16 Pedro Alves <palves@redhat.com>
12996 Norbert Lange <nolange79@gmail.com>
12997
12998 PR build/24805
12999 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
13000 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
13001 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
13002 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
13003 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
13004 (ps_plog): Redeclare exported functions with default visibility.
13005
13006 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
13007
13008 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
13009 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
13010
13011 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
13012
13013 * infcmd.c (post_create_inferior): Use get_thread_regcache
13014 instead of get_current_regcache.
13015
13016 2020-01-14 Tom Tromey <tom@tromey.com>
13017
13018 PR symtab/12535:
13019 * python/python.c (gdbpy_decode_line): Treat empty string the same
13020 as no argument.
13021
13022 2020-01-14 Tom Tromey <tom@tromey.com>
13023
13024 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
13025
13026 2020-01-14 Tom Tromey <tom@tromey.com>
13027
13028 * nat/linux-btrace.c: Don't include <config.h>.
13029 * nat/linux-ptrace.c: Don't include <config.h>.
13030 * nat/x86-linux-dregs.c: Don't include <config.h>.
13031
13032 2020-01-14 Tom Tromey <tom@tromey.com>
13033
13034 * configure: Rebuild.
13035 * configure.ac: Move many checks to ../gdbsupport/common.m4.
13036
13037 2020-01-14 Tom Tromey <tom@tromey.com>
13038
13039 * nat/x86-linux-dregs.c: Include configh.h.
13040 * nat/linux-ptrace.c: Include configh.h.
13041 * nat/linux-btrace.c: Include configh.h.
13042 * defs.h: Include config.h, bfd.h.
13043 * configure.ac: Don't source common.host.
13044 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
13045 * configure: Rebuild.
13046 * acinclude.m4: Update path.
13047 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
13048 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
13049 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
13050 (CLIBS): Add LIBSUPPORT.
13051 (CDEPS): Likewise.
13052 (COMMON_SFILES): Remove gdbsupport files.
13053 (HFILES_NO_SRCDIR): Likewise.
13054 (stamp-version): Update path to create-version.sh.
13055 (ALLDEPFILES): Remove gdbsupport files.
13056
13057 2020-01-14 Tom Tromey <tom@tromey.com>
13058
13059 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
13060 USE_WIN32API when needed.
13061 * configure.ac (USE_WIN32API): Don't define.
13062 (WIN32LIBS): Use WIN32APILIBS.
13063 * configure: Rebuild.
13064
13065 2020-01-14 Tom Tromey <tom@tromey.com>
13066
13067 * configure: Rebuild.
13068 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
13069
13070 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13071
13072 * skip.c (skip_function_command): Make skip w/o arguments use the
13073 name of the inlined function if pc is inside any inlined function.
13074
13075 2020-01-14 Luis Machado <luis.machado@linaro.org>
13076
13077 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
13078 * infrun.c (resume_1): Likewise.
13079 (handle_inferior_event): Remove stale comment.
13080 * linux-nat.c (linux_nat_target::resume): Update comments.
13081 (save_stop_reason): Likewise.
13082 (linux_nat_filter_event): Likewise.
13083 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
13084
13085 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13086
13087 * elfread.c (record_minimal_symbol): Set section index to 0 for
13088 non-allocatable sections.
13089
13090
13091 2020-01-13 Ali Tamur <tamur@google.com>
13092
13093 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
13094 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
13095 to gdb::optional. Update comments.
13096 (dwo_file): Update comments.
13097 (read_attribute): Update API to take an additional out parameter,
13098 need_reprocess. This is used to mark attributes that need other
13099 attributes (e.g. str_offsets_base) for correct computation which may not
13100 have been read yet.
13101 (read_attribute_reprocess): New function declaration.
13102 (read_addr_index): Likewise.
13103 (read_dwo_str_index): Likewise.
13104 (read_stub_str_index): Likewise.
13105 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
13106 (lookup_addr_base): New function definition.
13107 (lookup_ranges_base): Likewise.
13108 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
13109 lookup_ranges_base.
13110 (init_cutu_and_read_dies): Update comments.
13111 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
13112 unit. This is used to inherit parent's str_offsets_base and addr_base.
13113 Update comments.
13114 (init_cutu_and_read_dies_simple): Reflect API changes.
13115 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
13116 (create_cus_hash_table): Change API to take parent compile unit.
13117 Reflect API changes.
13118 (open_and_init_dwo_file): Reflect API changes.
13119 (dwarf2_get_pc_bounds): Update comments.
13120 (dwarf2_record_block_ranges): Likewise.
13121 (read_full_die_1): Change implementation to reprocess attributes that
13122 need str_offsets_base and addr_base.
13123 (partial_die_info::read): Likewise.
13124 (read_attribute_reprocess): New function definition.
13125 (read_attribute_value): Change API to take an additional out parameter,
13126 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
13127 when a non-dwo compile unit has index based attributes.
13128 (read_attribute): Reflect API changes.
13129 (read_addr_index_1): Reflect API changes. Update comments.
13130 (dwarf2_read_addr_index_data): Reflect API changes.
13131 (dwarf2_read_addr_index): Likewise.
13132 (read_str_index): Change API and implementation. This becomes a helper
13133 to be used by the new string index related methods. Update error
13134 message and comments.
13135 (read_dwo_str_index): New function definition.
13136 (read_stub_str_index): Likewise.
13137 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
13138 * symfile.h (dwarf2_debug_sections): Likewise.
13139 * xcoffread.c (dwarf2_debug_sections): Likewise.
13140
13141 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13142
13143 * gdbcore.h (struct core_fns) <core_read_registers>: Change
13144 core_reg_sect type to gdb_byte *.
13145 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
13146 * cris-tdep.c (fetch_core_registers): Likewise.
13147 * corelow.c (core_target::get_core_register_section): Change
13148 type of `contents` to gdb::byte_vector.
13149
13150 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13151
13152 * tui/tui-wingeneral.c (box_win): Position the title in the center
13153 of the border.
13154
13155 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13156
13157 * corelow.c (core_target::get_core_register_section): Use
13158 std::vector instead of alloca.
13159
13160 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13161
13162 * warning.m4: Add -Wmissing-declarations to build_warnings.
13163 * configure: Re-generate.
13164
13165 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13166
13167 * python/python.c (init__gdb_module): Add declaration.
13168
13169 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13170
13171 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
13172 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
13173 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
13174 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
13175 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
13176 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
13177 * ada-exp.y (_initialize_ada_exp): Add declaration.
13178 * ada-lang.c (_initialize_ada_language): Add declaration.
13179 * ada-tasks.c (_initialize_tasks): Add declaration.
13180 * agent.c (_initialize_agent): Add declaration.
13181 * aix-thread.c (_initialize_aix_thread): Add declaration.
13182 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
13183 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
13184 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
13185 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
13186 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
13187 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
13188 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
13189 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
13190 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
13191 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
13192 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
13193 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
13194 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
13195 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
13196 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
13197 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
13198 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
13199 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
13200 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
13201 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
13202 * annotate.c (_initialize_annotate): Add declaration.
13203 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
13204 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
13205 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
13206 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
13207 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
13208 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
13209 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
13210 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
13211 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
13212 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
13213 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
13214 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
13215 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
13216 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
13217 * auto-load.c (_initialize_auto_load): Add declaration.
13218 * auxv.c (_initialize_auxv): Add declaration.
13219 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
13220 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
13221 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
13222 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
13223 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
13224 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
13225 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
13226 * breakpoint.c (_initialize_breakpoint): Add declaration.
13227 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
13228 * btrace.c (_initialize_btrace): Add declaration.
13229 * charset.c (_initialize_charset): Add declaration.
13230 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
13231 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
13232 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
13233 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
13234 * cli/cli-script.c (_initialize_cli_script): Add declaration.
13235 * cli/cli-style.c (_initialize_cli_style): Add declaration.
13236 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
13237 * coffread.c (_initialize_coffread): Add declaration.
13238 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
13239 * compile/compile.c (_initialize_compile): Add declaration.
13240 * complaints.c (_initialize_complaints): Add declaration.
13241 * completer.c (_initialize_completer): Add declaration.
13242 * copying.c (_initialize_copying): Add declaration.
13243 * corefile.c (_initialize_core): Add declaration.
13244 * corelow.c (_initialize_corelow): Add declaration.
13245 * cp-abi.c (_initialize_cp_abi): Add declaration.
13246 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
13247 * cp-support.c (_initialize_cp_support): Add declaration.
13248 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
13249 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
13250 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
13251 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
13252 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
13253 * ctfread.c (_initialize_ctfread): Add declaration.
13254 * d-lang.c (_initialize_d_language): Add declaration.
13255 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
13256 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
13257 * dbxread.c (_initialize_dbxread): Add declaration.
13258 * dcache.c (_initialize_dcache): Add declaration.
13259 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
13260 * disasm.c (_initialize_disasm): Add declaration.
13261 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
13262 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
13263 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
13264 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
13265 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
13266 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
13267 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
13268 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
13269 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
13270 * elfread.c (_initialize_elfread): Add declaration.
13271 * exec.c (_initialize_exec): Add declaration.
13272 * extension.c (_initialize_extension): Add declaration.
13273 * f-lang.c (_initialize_f_language): Add declaration.
13274 * f-valprint.c (_initialize_f_valprint): Add declaration.
13275 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
13276 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
13277 * filesystem.c (_initialize_filesystem): Add declaration.
13278 * findcmd.c (_initialize_mem_search): Add declaration.
13279 * findvar.c (_initialize_findvar): Add declaration.
13280 * fork-child.c (_initialize_fork_child): Add declaration.
13281 * frame-base.c (_initialize_frame_base): Add declaration.
13282 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
13283 * frame.c (_initialize_frame): Add declaration.
13284 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
13285 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
13286 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
13287 * gcore.c (_initialize_gcore): Add declaration.
13288 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
13289 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
13290 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
13291 * gdbarch.c (_initialize_gdbarch): Add declaration.
13292 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
13293 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
13294 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
13295 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
13296 * go-lang.c (_initialize_go_language): Add declaration.
13297 * go32-nat.c (_initialize_go32_nat): Add declaration.
13298 * guile/guile.c (_initialize_guile): Add declaration.
13299 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
13300 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
13301 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
13302 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
13303 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
13304 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
13305 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
13306 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
13307 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
13308 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
13309 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
13310 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
13311 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
13312 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
13313 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
13314 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
13315 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
13316 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
13317 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
13318 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
13319 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
13320 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
13321 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
13322 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
13323 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
13324 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
13325 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
13326 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
13327 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
13328 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
13329 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
13330 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
13331 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
13332 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
13333 * infcall.c (_initialize_infcall): Add declaration.
13334 * infcmd.c (_initialize_infcmd): Add declaration.
13335 * inflow.c (_initialize_inflow): Add declaration.
13336 * infrun.c (_initialize_infrun): Add declaration.
13337 * interps.c (_initialize_interpreter): Add declaration.
13338 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
13339 * jit.c (_initialize_jit): Add declaration.
13340 * language.c (_initialize_language): Add declaration.
13341 * linux-fork.c (_initialize_linux_fork): Add declaration.
13342 * linux-nat.c (_initialize_linux_nat): Add declaration.
13343 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
13344 * linux-thread-db.c (_initialize_thread_db): Add declaration.
13345 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
13346 * m2-lang.c (_initialize_m2_language): Add declaration.
13347 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
13348 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
13349 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
13350 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
13351 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
13352 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
13353 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
13354 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
13355 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
13356 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
13357 * machoread.c (_initialize_machoread): Add declaration.
13358 * macrocmd.c (_initialize_macrocmd): Add declaration.
13359 * macroscope.c (_initialize_macroscope): Add declaration.
13360 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13361 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13362 * maint.c (_initialize_maint_cmds): Add declaration.
13363 * mdebugread.c (_initialize_mdebugread): Add declaration.
13364 * memattr.c (_initialize_mem): Add declaration.
13365 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13366 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13367 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13368 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13369 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13370 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13371 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13372 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13373 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13374 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13375 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13376 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13377 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13378 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13379 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13380 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13381 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13382 * mipsread.c (_initialize_mipsread): Add declaration.
13383 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13384 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13385 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13386 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13387 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13388 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13389 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13390 * nto-procfs.c (_initialize_procfs): Add declaration.
13391 * objc-lang.c (_initialize_objc_language): Add declaration.
13392 * observable.c (_initialize_observer): Add declaration.
13393 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13394 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13395 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13396 * osabi.c (_initialize_gdb_osabi): Add declaration.
13397 * osdata.c (_initialize_osdata): Add declaration.
13398 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13399 * parse.c (_initialize_parse): Add declaration.
13400 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13401 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13402 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13403 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13404 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13405 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13406 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13407 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13408 * printcmd.c (_initialize_printcmd): Add declaration.
13409 * probe.c (_initialize_probe): Add declaration.
13410 * proc-api.c (_initialize_proc_api): Add declaration.
13411 * proc-events.c (_initialize_proc_events): Add declaration.
13412 * proc-service.c (_initialize_proc_service): Add declaration.
13413 * procfs.c (_initialize_procfs): Add declaration.
13414 * producer.c (_initialize_producer): Add declaration.
13415 * psymtab.c (_initialize_psymtab): Add declaration.
13416 * python/python.c (_initialize_python): Add declaration.
13417 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13418 * record-btrace.c (_initialize_record_btrace): Add declaration.
13419 * record-full.c (_initialize_record_full): Add declaration.
13420 * record.c (_initialize_record): Add declaration.
13421 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13422 * regcache.c (_initialize_regcache): Add declaration.
13423 * reggroups.c (_initialize_reggroup): Add declaration.
13424 * remote-notif.c (_initialize_notif): Add declaration.
13425 * remote-sim.c (_initialize_remote_sim): Add declaration.
13426 * remote.c (_initialize_remote): Add declaration.
13427 * reverse.c (_initialize_reverse): Add declaration.
13428 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13429 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13430 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13431 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13432 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13433 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13434 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13435 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13436 Add declaration.
13437 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13438 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13439 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13440 * rust-exp.y (_initialize_rust_exp): Add declaration.
13441 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13442 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13443 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13444 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13445 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13446 * score-tdep.c (_initialize_score_tdep): Add declaration.
13447 * ser-go32.c (_initialize_ser_dos): Add declaration.
13448 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13449 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13450 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13451 * ser-uds.c (_initialize_ser_socket): Add declaration.
13452 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13453 * serial.c (_initialize_serial): Add declaration.
13454 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13455 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13456 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13457 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13458 * skip.c (_initialize_step_skip): Add declaration.
13459 * sol-thread.c (_initialize_sol_thread): Add declaration.
13460 * solib-aix.c (_initialize_solib_aix): Add declaration.
13461 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13462 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13463 * solib-frv.c (_initialize_frv_solib): Add declaration.
13464 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13465 * solib-target.c (_initialize_solib_target): Add declaration.
13466 * solib.c (_initialize_solib): Add declaration.
13467 * source-cache.c (_initialize_source_cache): Add declaration.
13468 * source.c (_initialize_source): Add declaration.
13469 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13470 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13471 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13472 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13473 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13474 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13475 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13476 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13477 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13478 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13479 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13480 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13481 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13482 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13483 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13484 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13485 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13486 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13487 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13488 * stabsread.c (_initialize_stabsread): Add declaration.
13489 * stack.c (_initialize_stack): Add declaration.
13490 * stap-probe.c (_initialize_stap_probe): Add declaration.
13491 * std-regs.c (_initialize_frame_reg): Add declaration.
13492 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13493 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13494 * symfile.c (_initialize_symfile): Add declaration.
13495 * symmisc.c (_initialize_symmisc): Add declaration.
13496 * symtab.c (_initialize_symtab): Add declaration.
13497 * target.c (_initialize_target): Add declaration.
13498 * target-connection.c (_initialize_target_connection): Add
13499 declaration.
13500 * target-dcache.c (_initialize_target_dcache): Add declaration.
13501 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13502 * thread.c (_initialize_thread): Add declaration.
13503 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13504 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13505 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13506 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13507 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13508 * tracectf.c (_initialize_ctf): Add declaration.
13509 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13510 * tracefile.c (_initialize_tracefile): Add declaration.
13511 * tracepoint.c (_initialize_tracepoint): Add declaration.
13512 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13513 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13514 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13515 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13516 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13517 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13518 * tui/tui.c (_initialize_tui): Add declaration.
13519 * typeprint.c (_initialize_typeprint): Add declaration.
13520 * ui-style.c (_initialize_ui_style): Add declaration.
13521 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13522 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13523 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13524 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13525 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13526 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13527 * unittests/filtered_iterator-selftests.c
13528 (_initialize_filtered_iterator_selftests): Add declaration.
13529 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13530 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13531 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13532 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13533 * unittests/main-thread-selftests.c
13534 (_initialize_main_thread_selftests): Add declaration.
13535 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13536 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13537 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13538 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13539 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13540 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13541 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13542 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13543 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13544 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13545 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13546 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13547 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13548 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13549 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13550 declaration.
13551 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13552 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13553 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13554 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13555 * user-regs.c (_initialize_user_regs): Add declaration.
13556 * utils.c (_initialize_utils): Add declaration.
13557 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13558 * valops.c (_initialize_valops): Add declaration.
13559 * valprint.c (_initialize_valprint): Add declaration.
13560 * value.c (_initialize_values): Add declaration.
13561 * varobj.c (_initialize_varobj): Add declaration.
13562 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13563 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13564 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13565 * windows-nat.c (_initialize_windows_nat): Add declaration.
13566 (_initialize_check_for_gdb_ini): Add declaration.
13567 (_initialize_loadable): Add declaration.
13568 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13569 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13570 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13571 * xcoffread.c (_initialize_xcoffread): Add declaration.
13572 * xml-support.c (_initialize_xml_support): Add declaration.
13573 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13574 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13575 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13576 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13577
13578 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13579
13580 * regformats/regdat.sh: Generate declaration for init function.
13581
13582 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13583
13584 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13585 up.
13586 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13587 close_one_inferior>: New methods.
13588 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13589 pass down target to find_inferior_pid.
13590 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13591 Pass down target to find_inferior_ptid.
13592 (gdbsim_target::create_inferior): Pass down target to
13593 add_thread_silent.
13594 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13595 target down to find_inferior_ptid and switch_to_thread.
13596 (gdbsim_target::close): Update to call close_one_inferior.
13597 (struct resume_data): Remove.
13598 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13599 directly, rather than through a void pointer.
13600 (gdbsim_target::resume): Update to call resume_one_inferior.
13601
13602 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13603
13604 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13605
13606 2020-01-12 Pedro Alves <palves@redhat.com>
13607
13608 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13609 directly for the current inferior instead of
13610 discard_all_inferiors.
13611 (discard_all_inferiors): Delete.
13612
13613 2020-01-11 Tom Tromey <tom@tromey.com>
13614
13615 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13616 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13617 deprecated_safe_get_selected_frame.
13618
13619 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13620
13621 * inferior.c (print_inferior): Switch inferior before printing it.
13622
13623 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13624 Pedro Alves <palves@redhat.com>
13625
13626 * progspace-and-thread.c (switch_to_program_space_and_thread):
13627 Assert there's an inferior for PSPACE. Use
13628 switch_to_inferior_no_thread to switch the inferior too.
13629 * progspace.c (program_space::~program_space): Call
13630 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13631 (program_space::free_all_objfiles): Don't call clear_symtab_users
13632 here.
13633 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13634
13635 2020-01-10 Pedro Alves <palves@redhat.com>
13636
13637 * NEWS: Mention multi-target debugging, "info connections", and
13638 "add-inferior -no-connection".
13639
13640 2020-01-10 Pedro Alves <palves@redhat.com>
13641
13642 * infrun.c: Include "target-connection.h".
13643 (check_multi_target_resumption): New.
13644 (proceed): Call it.
13645 * target-connection.c (make_target_connection_string): Make
13646 extern.
13647 * target-connection.h (make_target_connection_string): Declare.
13648
13649 2020-01-10 Pedro Alves <palves@redhat.com>
13650
13651 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13652 * inferior.c (uiout_field_connection): New function.
13653 (print_inferior): Add new "connection-id" column.
13654 (add_inferior_command): Show connection number/string of added
13655 inferior.
13656 * process-stratum-target.h
13657 (process_stratum_target::connection_string): New virtual method.
13658 (process_stratum_target::connection_number): New field.
13659 * remote.c (remote_target::connection_string): New override.
13660 * target-connection.c: New file.
13661 * target-connection.h: New file.
13662 * target.c (decref_target): Remove process_stratum targets from
13663 the connection list.
13664 (target_stack::push): Add process_stratum targets to the
13665 connection list.
13666
13667 2020-01-10 Pedro Alves <palves@redhat.com>
13668
13669 Revert:
13670 2016-04-12 Pedro Alves <palves@redhat.com>
13671 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13672 Remove references to name.
13673 * serial.h (struct serial) <name>: Delete.
13674
13675 2020-01-10 Pedro Alves <palves@redhat.com>
13676
13677 * gdbarch-selftests.c (register_to_value_test): Remove "target
13678 already pushed" check.
13679
13680 2020-01-10 Pedro Alves <palves@redhat.com>
13681 John Baldwin <jhb@FreeBSD.org>
13682
13683 * aarch64-linux-nat.c
13684 (aarch64_linux_nat_target::thread_architecture): Adjust.
13685 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13686 (task_command_1): Likewise.
13687 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13688 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13689 (aix_thread_target::store_registers)
13690 (aix_thread_target::thread_alive): Adjust.
13691 * amd64-fbsd-tdep.c: Include "inferior.h".
13692 (amd64fbsd_get_thread_local_address): Pass down target.
13693 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13694 thread's gdbarch instead of target_gdbarch.
13695 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13696 get_last_target_status.
13697 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13698 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13699 inferiors.
13700 (update_inserted_breakpoint_locations): Skip if inferiors with no
13701 execution.
13702 (update_global_location_list): When handling moribund locations,
13703 find representative inferior for location's pspace, and use thread
13704 count of its process_stratum target.
13705 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13706 * bsd-uthread.c (bsd_uthread_target::wait): Use
13707 as_process_stratum_target and adjust thread_change_ptid and
13708 add_thread calls.
13709 (bsd_uthread_target::update_thread_list): Use
13710 as_process_stratum_target and adjust find_thread_ptid,
13711 thread_change_ptid and add_thread calls.
13712 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13713 find_thread_ptid call.
13714 * corelow.c (add_to_thread_list): Adjust add_thread call.
13715 (core_target_open): Adjust add_thread_silent and thread_count
13716 calls.
13717 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13718 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13719 * event-top.c (async_disconnect): Pop targets from all inferiors.
13720 * exec.c (add_target_sections): Push exec target on all inferiors
13721 sharing the program space.
13722 (remove_target_sections): Remove the exec target from all
13723 inferiors sharing the program space.
13724 (exec_on_vfork): New.
13725 * exec.h (exec_on_vfork): Declare.
13726 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13727 Pass it down.
13728 (fbsd_nat_target::update_thread_list): Adjust.
13729 (fbsd_nat_target::resume): Adjust.
13730 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13731 down.
13732 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13733 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13734 get_thread_arch_regcache call.
13735 * fork-child.c (gdb_startup_inferior): Pass target down to
13736 startup_inferior and set_executing.
13737 * gdbthread.h (struct process_stratum_target): Forward declare.
13738 (add_thread, add_thread_silent, add_thread_with_info)
13739 (in_thread_list): Add process_stratum_target parameter.
13740 (find_thread_ptid(inferior*, ptid_t)): New overload.
13741 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13742 parameter.
13743 (all_threads()): Delete overload.
13744 (all_threads, all_non_exited_threads): Add process_stratum_target
13745 parameter.
13746 (all_threads_safe): Use brace initialization.
13747 (thread_count): Add process_stratum_target parameter.
13748 (set_resumed, set_running, set_stop_requested, set_executing)
13749 (threads_are_executing, finish_thread_state): Add
13750 process_stratum_target parameter.
13751 (switch_to_thread): Use is_current_thread.
13752 * i386-fbsd-tdep.c: Include "inferior.h".
13753 (i386fbsd_get_thread_local_address): Pass down target.
13754 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13755 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13756 have_inferiors check.
13757 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13758 (inf_ptrace_target::attach): Adjust.
13759 * infcall.c (run_inferior_call): Adjust.
13760 * infcmd.c (run_command_1): Pass target to
13761 scoped_finish_thread_state.
13762 (proceed_thread_callback): Skip inferiors with no execution.
13763 (continue_command): Rename 'all_threads' local to avoid hiding
13764 'all_threads' function. Adjust get_last_target_status call.
13765 (prepare_one_step): Adjust set_running call.
13766 (signal_command): Use user_visible_resume_target. Compare thread
13767 pointers instead of inferior_ptid.
13768 (info_program_command): Adjust to pass down target.
13769 (attach_command): Mark target's 'thread_executing' flag.
13770 (stop_current_target_threads_ns): New, factored out from ...
13771 (interrupt_target_1): ... this. Switch inferior before making
13772 target calls.
13773 * inferior-iter.h
13774 (struct all_inferiors_iterator, struct all_inferiors_range)
13775 (struct all_inferiors_safe_range)
13776 (struct all_non_exited_inferiors_range): Filter on
13777 process_stratum_target too. Remove explicit.
13778 * inferior.c (inferior::inferior): Push dummy target on target
13779 stack.
13780 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13781 Add process_stratum_target parameter, and pass it down.
13782 (have_live_inferiors): Adjust.
13783 (switch_to_inferior_and_push_target): New.
13784 (add_inferior_command, clone_inferior_command): Handle
13785 "-no-connection" parameter. Use
13786 switch_to_inferior_and_push_target.
13787 (_initialize_inferior): Mention "-no-connection" option in
13788 the help of "add-inferior" and "clone-inferior" commands.
13789 * inferior.h: Include "process-stratum-target.h".
13790 (interrupt_target_1): Use bool.
13791 (struct inferior) <push_target, unpush_target, target_is_pushed,
13792 find_target_beneath, top_target, process_target, target_at,
13793 m_stack>: New.
13794 (discard_all_inferiors): Delete.
13795 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13796 (all_inferiors, all_non_exited_inferiors): Add
13797 process_stratum_target parameter.
13798 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13799 (target_last_proc_target): New global.
13800 (follow_fork_inferior): Push target on new inferior. Pass target
13801 to add_thread_silent. Call exec_on_vfork. Handle target's
13802 reference count.
13803 (follow_fork): Adjust get_last_target_status call. Also consider
13804 target.
13805 (follow_exec): Push target on new inferior.
13806 (struct execution_control_state) <target>: New field.
13807 (user_visible_resume_target): New.
13808 (do_target_resume): Call target_async.
13809 (resume_1): Set target's threads_executing flag. Consider resume
13810 target.
13811 (commit_resume_all_targets): New.
13812 (proceed): Also consider resume target. Skip threads of inferiors
13813 with no execution. Commit resumtion in all targets.
13814 (start_remote): Pass current inferior to wait_for_inferior.
13815 (infrun_thread_stop_requested): Consider target as well. Pass
13816 thread_info pointer to clear_inline_frame_state instead of ptid.
13817 (infrun_thread_thread_exit): Consider target as well.
13818 (random_pending_event_thread): New inferior parameter. Use it.
13819 (do_target_wait): Rename to ...
13820 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13821 down.
13822 (threads_are_resumed_pending_p, do_target_wait): New.
13823 (prepare_for_detach): Adjust calls.
13824 (wait_for_inferior): New inferior parameter. Handle it. Use
13825 do_target_wait_1 instead of do_target_wait.
13826 (fetch_inferior_event): Adjust. Switch to representative
13827 inferior. Pass target down.
13828 (set_last_target_status): Add process_stratum_target parameter.
13829 Save target in global.
13830 (get_last_target_status): Add process_stratum_target parameter and
13831 handle it.
13832 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13833 (context_switch): Check inferior_ptid == null_ptid before calling
13834 inferior_thread().
13835 (get_inferior_stop_soon): Pass down target.
13836 (wait_one): Rename to ...
13837 (poll_one_curr_target): ... this.
13838 (struct wait_one_event): New.
13839 (wait_one): New.
13840 (stop_all_threads): Adjust.
13841 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13842 event's target.
13843 (switch_back_to_stepped_thread): Also consider target.
13844 (print_stop_event): Update.
13845 (normal_stop): Update. Also consider the resume target.
13846 * infrun.h (wait_for_inferior): Remove declaration.
13847 (user_visible_resume_target): New declaration.
13848 (get_last_target_status, set_last_target_status): New
13849 process_stratum_target parameter.
13850 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13851 process_stratum_target parameter, and use it.
13852 (clear_inline_frame_state (thread_info*)): New.
13853 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13854 process_stratum_target parameter.
13855 (clear_inline_frame_state (thread_info*)): Declare.
13856 * linux-fork.c (delete_checkpoint_command): Pass target down to
13857 find_thread_ptid.
13858 (checkpoint_command): Adjust.
13859 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13860 instead of just tweaking inferior_ptid.
13861 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13862 (exit_lwp): Pass target down to find_thread_ptid.
13863 (attach_proc_task_lwp_callback): Pass target down to
13864 add_thread/set_running/set_executing.
13865 (linux_nat_target::attach): Pass target down to
13866 thread_change_ptid.
13867 (get_detach_signal): Pass target down to find_thread_ptid.
13868 Consider last target status's target.
13869 (linux_resume_one_lwp_throw, resume_lwp)
13870 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13871 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13872 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13873 (linux_nat_target::async_wait_fd): New.
13874 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13875 target down.
13876 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13877 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13878 * linux-thread-db.c (struct thread_db_info::process_target): New
13879 field.
13880 (add_thread_db_info): Save target.
13881 (get_thread_db_info): New process_stratum_target parameter. Also
13882 match target.
13883 (delete_thread_db_info): New process_stratum_target parameter.
13884 Also match target.
13885 (thread_from_lwp): Adjust to pass down target.
13886 (thread_db_notice_clone): Pass down target.
13887 (check_thread_db_callback): Pass down target.
13888 (try_thread_db_load_1): Always push the thread_db target.
13889 (try_thread_db_load, record_thread): Pass target down.
13890 (thread_db_target::detach): Pass target down. Always unpush the
13891 thread_db target.
13892 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13893 target down. Always unpush the thread_db target.
13894 (find_new_threads_callback, thread_db_find_new_threads_2)
13895 (thread_db_target::update_thread_list): Pass target down.
13896 (thread_db_target::pid_to_str): Pass current inferior down.
13897 (thread_db_target::get_thread_local_address): Pass target down.
13898 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13899 target down.
13900 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13901 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13902 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13903 (procfs_init_inferior): Rename to ...
13904 (procfs_target::procfs_init_inferior): ... this and adjust.
13905 (procfs_target::create_inferior, procfs_notice_thread)
13906 (procfs_do_thread_registers): Adjust.
13907 * ppc-fbsd-tdep.c: Include "inferior.h".
13908 (ppcfbsd_get_thread_local_address): Pass down target.
13909 * proc-service.c (ps_xfer_memory): Switch current inferior and
13910 program space as well.
13911 (get_ps_regcache): Pass target down.
13912 * process-stratum-target.c
13913 (process_stratum_target::thread_address_space)
13914 (process_stratum_target::thread_architecture): Pass target down.
13915 * process-stratum-target.h
13916 (process_stratum_target::threads_executing): New field.
13917 (as_process_stratum_target): New.
13918 * ravenscar-thread.c
13919 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13920 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13921 down.
13922 * record-btrace.c (record_btrace_target::info_record): Adjust.
13923 (record_btrace_target::record_method)
13924 (record_btrace_target::record_is_replaying)
13925 (record_btrace_target::fetch_registers)
13926 (get_thread_current_frame_id, record_btrace_target::resume)
13927 (record_btrace_target::wait, record_btrace_target::stop): Pass
13928 target down.
13929 * record-full.c (record_full_wait_1): Switch to event thread.
13930 Pass target down.
13931 * regcache.c (regcache::regcache)
13932 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13933 process_stratum_target parameter and handle it.
13934 (current_thread_target): New global.
13935 (get_thread_regcache): Add process_stratum_target parameter and
13936 handle it. Switch inferior before calling target method.
13937 (get_thread_regcache): Pass target down.
13938 (get_thread_regcache_for_ptid): Pass target down.
13939 (registers_changed_ptid): Add process_stratum_target parameter and
13940 handle it.
13941 (registers_changed_thread, registers_changed): Pass target down.
13942 (test_get_thread_arch_aspace_regcache): New.
13943 (current_regcache_test): Define a couple local test_target_ops
13944 instances and use them for testing.
13945 (readwrite_regcache): Pass process_stratum_target parameter.
13946 (cooked_read_test, cooked_write_test): Pass mock_target down.
13947 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13948 (get_thread_arch_aspace_regcache): Add process_stratum_target
13949 parameter.
13950 (regcache::target): New method.
13951 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13952 (regcache::registers_changed_ptid): Add process_stratum_target
13953 parameter.
13954 (regcache::m_target): New field.
13955 (registers_changed_ptid): Add process_stratum_target parameter.
13956 * remote.c (remote_state::supports_vCont_probed): New field.
13957 (remote_target::async_wait_fd): New method.
13958 (remote_unpush_and_throw): Add remote_target parameter.
13959 (get_current_remote_target): Adjust.
13960 (remote_target::remote_add_inferior): Push target.
13961 (remote_target::remote_add_thread)
13962 (remote_target::remote_notice_new_inferior)
13963 (get_remote_thread_info): Pass target down.
13964 (remote_target::update_thread_list): Skip threads of inferiors
13965 bound to other targets. (remote_target::close): Don't discard
13966 inferiors. (remote_target::add_current_inferior_and_thread)
13967 (remote_target::process_initial_stop_replies)
13968 (remote_target::start_remote)
13969 (remote_target::remote_serial_quit_handler): Pass down target.
13970 (remote_target::remote_unpush_target): New remote_target
13971 parameter. Unpush the target from all inferiors.
13972 (remote_target::remote_unpush_and_throw): New remote_target
13973 parameter. Pass it down.
13974 (remote_target::open_1): Check whether the current inferior has
13975 execution instead of checking whether any inferior is live. Pass
13976 target down.
13977 (remote_target::remote_detach_1): Pass down target. Use
13978 remote_unpush_target.
13979 (extended_remote_target::attach): Pass down target.
13980 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13981 (remote_target::append_resumption): Pass down target.
13982 (remote_target::append_pending_thread_resumptions)
13983 (remote_target::remote_resume_with_hc, remote_target::resume)
13984 (remote_target::commit_resume): Pass down target.
13985 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13986 (remote_target::interrupt_query)
13987 (remote_target::remove_new_fork_children)
13988 (remote_target::check_pending_events_prevent_wildcard_vcont)
13989 (remote_target::remote_parse_stop_reply)
13990 (remote_target::process_stop_reply): Pass down target.
13991 (first_remote_resumed_thread): New remote_target parameter. Pass
13992 it down.
13993 (remote_target::wait_as): Pass down target.
13994 (unpush_and_perror): New remote_target parameter. Pass it down.
13995 (remote_target::readchar, remote_target::remote_serial_write)
13996 (remote_target::getpkt_or_notif_sane_1)
13997 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13998 down target.
13999 (remote_target::mourn_inferior): Pass down target. Use
14000 remote_unpush_target.
14001 (remote_target::core_of_thread)
14002 (remote_target::remote_btrace_maybe_reopen): Pass down target.
14003 (remote_target::pid_to_exec_file)
14004 (remote_target::thread_handle_to_thread_info): Pass down target.
14005 (remote_target::async_wait_fd): New.
14006 * riscv-fbsd-tdep.c: Include "inferior.h".
14007 (riscv_fbsd_get_thread_local_address): Pass down target.
14008 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
14009 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
14010 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
14011 Adjust.
14012 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
14013 * solib-svr4.c (enable_break): Pass down target.
14014 * spu-multiarch.c (parse_spufs_run): Pass down target.
14015 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
14016 * target-delegates.c: Regenerate.
14017 * target.c (g_target_stack): Delete.
14018 (current_top_target): Return the current inferior's top target.
14019 (target_has_execution_1): Refer to the passed-in inferior's top
14020 target.
14021 (target_supports_terminal_ours): Check whether the initial
14022 inferior was already created.
14023 (decref_target): New.
14024 (target_stack::push): Incref/decref the target.
14025 (push_target, push_target, unpush_target): Adjust.
14026 (target_stack::unpush): Defref target.
14027 (target_is_pushed): Return bool. Adjust to refer to the current
14028 inferior's target stack.
14029 (dispose_inferior): Delete, and inline parts ...
14030 (target_preopen): ... here. Only dispose of the current inferior.
14031 (target_detach): Hold strong target reference while detaching.
14032 Pass target down.
14033 (target_thread_name): Add assertion.
14034 (target_resume): Pass down target.
14035 (target_ops::beneath, find_target_at): Adjust to refer to the
14036 current inferior's target stack.
14037 (get_dummy_target): New.
14038 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
14039 has a thread running.
14040 (initialize_targets): Rename to ...
14041 (_initialize_target): ... this.
14042 * target.h: Include "gdbsupport/refcounted-object.h".
14043 (struct target_ops): Inherit refcounted_object.
14044 (target_ops::shortname, target_ops::longname): Make const.
14045 (target_ops::async_wait_fd): New method.
14046 (decref_target): Declare.
14047 (struct target_ops_ref_policy): New.
14048 (target_ops_ref): New typedef.
14049 (get_dummy_target): Declare function.
14050 (target_is_pushed): Return bool.
14051 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
14052 (all_matching_threads_iterator::all_matching_threads_iterator):
14053 Handle filter target.
14054 * thread-iter.h (struct all_matching_threads_iterator, struct
14055 all_matching_threads_range, class all_non_exited_threads_range):
14056 Filter by target too. Remove explicit.
14057 * thread.c (threads_executing): Delete.
14058 (inferior_thread): Pass down current inferior.
14059 (clear_thread_inferior_resources): Pass down thread pointer
14060 instead of ptid_t.
14061 (add_thread_silent, add_thread_with_info, add_thread): Add
14062 process_stratum_target parameter. Use it for thread and inferior
14063 searches.
14064 (is_current_thread): New.
14065 (thread_info::deletable): Use it.
14066 (find_thread_ptid, thread_count, in_thread_list)
14067 (thread_change_ptid, set_resumed, set_running): New
14068 process_stratum_target parameter. Pass it down.
14069 (set_executing): New process_stratum_target parameter. Pass it
14070 down. Adjust reference to 'threads_executing'.
14071 (threads_are_executing): New process_stratum_target parameter.
14072 Adjust reference to 'threads_executing'.
14073 (set_stop_requested, finish_thread_state): New
14074 process_stratum_target parameter. Pass it down.
14075 (switch_to_thread): Also match inferior.
14076 (switch_to_thread): New process_stratum_target parameter. Pass it
14077 down.
14078 (update_threads_executing): Reimplement.
14079 * top.c (quit_force): Pop targets from all inferior.
14080 (gdb_init): Don't call initialize_targets.
14081 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
14082 Declare.
14083 (windows_add_thread, windows_delete_thread): Adjust.
14084 (get_windows_debug_event): Rename to ...
14085 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
14086 * tracefile-tfile.c (tfile_target_open): Pass down target.
14087 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
14088 Forward declare.
14089 (switch_to_thread): Add process_stratum_target parameter.
14090 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
14091 parameter. Use it.
14092 (mi_on_resume): Pass target down.
14093 * nat/fork-inferior.c (startup_inferior): Add
14094 process_stratum_target parameter. Pass it down.
14095 * nat/fork-inferior.h (startup_inferior): Add
14096 process_stratum_target parameter.
14097 * python/py-threadevent.c (py_get_event_thread): Pass target down.
14098
14099 2020-01-10 Pedro Alves <palves@redhat.com>
14100
14101 * remote.c (remote_target::start_remote): Don't set inferior_ptid
14102 directly. Instead find the first thread in the thread list and
14103 use switch_to_thread.
14104
14105 2020-01-10 Pedro Alves <palves@redhat.com>
14106
14107 * remote.c (remote_target::remote_add_inferior): Don't bind a
14108 process to the current inferior if the current inferior is already
14109 bound to a process.
14110
14111 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14112 Pedro Alves <palves@redhat.com>
14113
14114 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
14115 If no process is specified, return null_ptid instead of
14116 inferior_ptid.
14117 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
14118 TARGET_WAITKIND_SIGNALLED with no pid.
14119
14120 2020-01-10 Pedro Alves <palves@redhat.com>
14121
14122 * remote.c (first_remote_resumed_thread): New.
14123 (remote_target::wait_as): Use it as default event_ptid instead of
14124 inferior_ptid.
14125
14126 2020-01-10 Pedro Alves <palves@redhat.com>
14127
14128 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
14129
14130 2020-01-10 Pedro Alves <palves@redhat.com>
14131
14132 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
14133 not -1.
14134
14135 2020-01-10 Pedro Alves <palves@redhat.com>
14136
14137 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
14138 ptid to get_last_target_status.
14139 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
14140 ptid to get_last_target_status.
14141 * infcmd.c (continue_command): Don't pass a target_waitstatus to
14142 get_last_target_status.
14143 (info_program_command): Don't pass a target_waitstatus to
14144 get_last_target_status.
14145 * infrun.c (init_wait_for_inferior): Use
14146 nullify_last_target_wait_ptid.
14147 (get_last_target_status): Handle nullptr arguments.
14148 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
14149 (print_stop_event): Don't pass a ptid to get_last_target_status.
14150 (normal_stop): Don't pass a ptid to get_last_target_status.
14151 * infrun.h (get_last_target_status, set_last_target_status): Move
14152 comments here and update.
14153 (nullify_last_target_wait_ptid): Declare.
14154 * linux-fork.c (fork_load_infrun_state): Remove local extern
14155 declaration of nullify_last_target_wait_ptid.
14156 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
14157 to get_last_target_status.
14158
14159 2020-01-10 Pedro Alves <palves@redhat.com>
14160
14161 * gdbthread.h (scoped_restore_current_thread)
14162 <dont_restore, restore, m_dont_restore>: Declare.
14163 * thread.c (thread_alive): Add assertion. Return bool.
14164 (switch_to_thread_if_alive): New.
14165 (prune_threads): Switch inferior/thread.
14166 (print_thread_info_1): Switch thread before calling target methods.
14167 (scoped_restore_current_thread::restore): New, factored out from
14168 ...
14169 (scoped_restore_current_thread::~scoped_restore_current_thread):
14170 ... this.
14171 (scoped_restore_current_thread::scoped_restore_current_thread):
14172 Add assertion.
14173 (thread_apply_all_command, thread_select): Use
14174 switch_to_thread_if_alive.
14175 * infrun.c (proceed, restart_threads, handle_signal_stop)
14176 (switch_back_to_stepped_thread): Switch current thread before
14177 calling target methods.
14178
14179 2020-01-10 Pedro Alves <palves@redhat.com>
14180
14181 * inferior.c (switch_to_inferior_no_thread): New function,
14182 factored out from ...
14183 (inferior_command): ... here.
14184 * inferior.h (switch_to_inferior_no_thread): Declare.
14185 * mi/mi-main.c (run_one_inferior): Use
14186 switch_to_inferior_no_thread.
14187
14188 2020-01-10 Pedro Alves <palves@redhat.com>
14189
14190 * infcmd.c (kill_command): Remove dead code.
14191
14192 2020-01-10 Pedro Alves <palves@redhat.com>
14193
14194 * remote.c (remote_target::mourn_inferior): No longer check
14195 whether the target is running.
14196
14197 2020-01-10 Pedro Alves <palves@redhat.com>
14198
14199 * corelow.c (core_target::has_execution): Change parameter type to
14200 inferior pointer.
14201 * inferior.c (number_of_live_inferiors): Use
14202 inferior::has_execution instead of target_has_execution_1.
14203 * inferior.h (inferior::has_execution): New.
14204 * linux-thread-db.c (thread_db_target::update_thread_list): Use
14205 inferior::has_execution instead of target_has_execution_1.
14206 * process-stratum-target.c
14207 (process_stratum_target::has_execution): Change parameter type to
14208 inferior pointer. Check the inferior's PID instead of
14209 inferior_ptid.
14210 * process-stratum-target.h
14211 (process_stratum_target::has_execution): Change parameter type to
14212 inferior pointer.
14213 * record-full.c (record_full_core_target::has_execution): Change
14214 parameter type to inferior pointer.
14215 * target.c (target_has_execution_1): Change parameter type to
14216 inferior pointer.
14217 (target_has_execution_current): Adjust.
14218 * target.h (target_ops::has_execution): Change parameter type to
14219 inferior pointer.
14220 (target_has_execution_1): Change parameter type to inferior
14221 pointer. Change return type to bool.
14222 * tracefile.h (tracefile_target::has_execution): Change parameter
14223 type to inferior pointer.
14224
14225 2020-01-10 Pedro Alves <palves@redhat.com>
14226
14227 * exceptions.c (print_flush): Remove current_top_target() check.
14228
14229 2020-01-10 Pedro Alves <palves@redhat.com>
14230
14231 * remote.c (show_remote_exec_file): Show the current inferior's
14232 exec-file instead of the command variable's value.
14233
14234 2020-01-10 Pedro Alves <palves@redhat.com>
14235
14236 * record-full.c (record_full_resume_ptid): New global.
14237 (record_full_target::resume): Set it.
14238 (record_full_wait_1): Use record_full_resume_ptid instead of
14239 inferior_ptid.
14240
14241 2020-01-10 Pedro Alves <palves@redhat.com>
14242
14243 * gdbthread.h (scoped_restore_current_thread)
14244 <dont_restore, restore, m_dont_restore>: Declare.
14245 * thread.c (thread_alive): Add assertion. Return bool.
14246 (switch_to_thread_if_alive): New.
14247 (prune_threads): Switch inferior/thread.
14248 (print_thread_info_1): Switch thread before calling target methods.
14249 (scoped_restore_current_thread::restore): New, factored out from
14250 ...
14251 (scoped_restore_current_thread::~scoped_restore_current_thread):
14252 ... this.
14253 (scoped_restore_current_thread::scoped_restore_current_thread):
14254 Add assertion.
14255 (thread_apply_all_command, thread_select): Use
14256 switch_to_thread_if_alive.
14257
14258 2020-01-10 George Barrett <bob@bob131.so>
14259
14260 * stap-probe.c (stap_modify_semaphore): Don't check for null
14261 semaphores.
14262 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
14263 for null semaphores.
14264
14265 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14266
14267 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
14268 all source windows, and maintain horizontal scroll status while
14269 doing so.
14270
14271 2020-01-09 Tom Tromey <tom@tromey.com>
14272
14273 PR tui/18932:
14274 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
14275 update_source_window, not print_source_lines.
14276
14277 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14278
14279 * tui/tui.c (tui_enable): Register tui hooks after calling
14280 tui_display_main.
14281
14282 2020-01-09 Christian Biesinger <cbiesinger@google.com>
14283
14284 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
14285
14286 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
14287
14288 * thread.c (print_thread_info_1): Fix indentation.
14289
14290 2020-01-09 Christian Biesinger <cbiesinger@google.com>
14291
14292 * symtab.c (general_symbol_info::compute_and_set_names): Move the
14293 unique_xmalloc_ptr outside the if to always free the demangled name.
14294
14295 2020-01-08 Tom Tromey <tromey@adacore.com>
14296
14297 * xcoffread.c (enter_line_range, read_xcoff_symtab)
14298 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
14299 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
14300 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
14301 Remove.
14302 (section_offsets): New typedef.
14303 * symtab.c (fixup_section, get_msymbol_address): Update.
14304 * symmisc.c (dump_msymbols): Update.
14305 * symfile.h (relative_addr_info_to_section_offsets)
14306 (symfile_map_offsets_to_segments): Update.
14307 * symfile.c (build_section_addr_info_from_objfile)
14308 (init_objfile_sect_indices): Update.
14309 (struct place_section_arg): Change type of "offsets".
14310 (place_section): Update.
14311 (relative_addr_info_to_section_offsets): Change type of
14312 "section_offsets". Remove "num_sections" parameter.
14313 (default_symfile_offsets, syms_from_objfile_1)
14314 (set_objfile_default_section_offset): Update.
14315 (reread_symbols): No need to preserve section offsets by hand.
14316 (symfile_map_offsets_to_segments): Change type of "offsets".
14317 * stap-probe.c (relocate_address): Update.
14318 * stabsread.h (process_one_symbol): Update.
14319 * solib-target.c (struct lm_info_target) <offsets>: Change type.
14320 (solib_target_relocate_section_addresses): Update.
14321 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
14322 Update.
14323 * solib-frv.c (frv_relocate_main_executable): Update.
14324 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
14325 * solib-aix.c (solib_aix_get_section_offsets): Change return
14326 type.
14327 (solib_aix_solib_create_inferior_hook): Update.
14328 * remote.c (remote_target::get_offsets): Update.
14329 * psymtab.c (find_pc_sect_psymtab): Update.
14330 * psympriv.h (struct partial_symbol) <address, text_low,
14331 text_high>: Update.
14332 * objfiles.h (obj_section_offset): Update.
14333 (struct objfile) <section_offsets>: Change type.
14334 <num_sections>: Remove.
14335 (objfile_relocate): Update.
14336 * objfiles.c (entry_point_address_query): Update
14337 (relocate_one_symbol): Change type of "section_offsets".
14338 (objfile_relocate1, objfile_relocate1): Change type of
14339 "new_offsets".
14340 (objfile_rebase1): Update.
14341 * mipsread.c (mipscoff_symfile_read): Update.
14342 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
14343 parameter.
14344 * mdebugread.c (parse_symbol): Change type of "section_offsets".
14345 (parse_external, psymtab_to_symtab_1): Update.
14346 * machoread.c (macho_symfile_offsets): Update.
14347 * ia64-tdep.c (ia64_find_unwind_table): Update.
14348 * hppa-tdep.c (read_unwind_info): Update.
14349 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
14350 * dwarf2read.c (create_addrmap_from_index)
14351 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14352 (process_psymtab_comp_unit_reader, add_partial_symbol)
14353 (add_partial_subprogram, process_full_comp_unit)
14354 (read_file_scope, read_func_scope, read_lexical_block_scope)
14355 (read_call_site_scope, dwarf2_rnglists_process)
14356 (dwarf2_ranges_process, dwarf2_ranges_read)
14357 (dwarf_decode_lines_1, var_decode_location, new_symbol)
14358 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
14359 Update.
14360 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14361 Update.
14362 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14363 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14364 (process_one_symbol): Change type of "section_offsets".
14365 * ctfread.c (get_objfile_text_range): Update.
14366 * coffread.c (coff_symtab_read, enter_linenos)
14367 (process_coff_symbol): Update.
14368 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14369 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14370
14371 2020-01-08 Tom Tromey <tromey@adacore.com>
14372
14373 * dwarf2read.c (parse_macro_definition): Use std::string.
14374 (parse_macro_definition): Likewise.
14375
14376 2020-01-08 Tom Tromey <tromey@adacore.com>
14377
14378 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14379 (ATTR_ALLOC_CHUNK): Remove.
14380
14381 2020-01-08 Tom Tromey <tromey@adacore.com>
14382
14383 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14384
14385 2020-01-08 Tom Tromey <tromey@adacore.com>
14386
14387 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14388 (dwarf2_compute_name, open_dwo_file): Likewise.
14389 (process_enumeration_scope): Use std::vector.
14390 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14391 (partial_die_info::fixup, dwarf2_start_subfile)
14392 (guess_full_die_structure_name, dwarf2_name): Likewise.
14393 (determine_prefix): Update.
14394 (guess_full_die_structure_name): Make return type const.
14395 (partial_die_full_name): Return unique_xmalloc_ptr.
14396 (DW_FIELD_ALLOC_CHUNK): Remove.
14397
14398 2020-01-07 Tom Tromey <tromey@adacore.com>
14399
14400 PR build/24937:
14401 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14402
14403 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14404
14405 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14406
14407 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14408
14409 * stack.c (print_frame_info): Move disassemble_next_line code
14410 inside source_print block.
14411
14412 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14413
14414 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14415 gdb/signals.h, as we are now using native signal symbols.
14416
14417 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
14418
14419 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14420 overflow by an early check of content vs threshold.
14421 * tui/tui-source.c (tui_source_window::line_is_displayed):
14422 Likewise.
14423
14424 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14425
14426 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14427
14428 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14429
14430 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14431 export table if no section contains it's RVA.
14432
14433 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14434
14435 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14436
14437 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
14438
14439 * source.c (print_source_lines_base): Set last_line_listed.
14440
14441 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
14442
14443 * tui/tui-disasm.c: Remove trailing spaces.
14444
14445 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14446 Pedro Alves <palves@redhat.com>
14447
14448 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14449 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14450 (windows_gdb_signal_to_target): New function, uses the above
14451 enumeration to convert GDB internal signal codes to equivalent
14452 Windows codes.
14453 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14454 * windows-nat.c: Include "gdb_wait.h".
14455 (get_windows_debug_event): Extract the fatal exception from the
14456 exit status and convert to the equivalent Posix signal number.
14457 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14458 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14459 * gdbsupport/gdb_wait.c: New file, implements
14460 windows_status_to_termsig.
14461 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14462 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14463
14464 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14465
14466 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14467 show_layout.
14468
14469 2020-01-05 Luis Machado <luis.machado@linaro.org>
14470
14471 * aarch64-linux-nat.c
14472 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14473 and bfd_mach_aarch64.
14474
14475 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14476
14477 * ui-file.c (stdio_file::can_emit_style_escape)
14478 (tee_file::can_emit_style_escape): Ensure style is used also on
14479 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14480 to gdb_stdout.
14481 * main.c (set_gdb_data_directory): Use file style to output the
14482 warning that the given pathname is not a directory.
14483 * top.c (show_history_filename, gdb_safe_append_history)
14484 (show_gdb_datadir): Use file style.
14485
14486 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
14487
14488 * solib-target.c (struct lm_info_target):
14489 Change offsets to be a unique_xmalloc_ptr.
14490 (solib_target_relocate_section_addresses): Update.
14491
14492 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
14493
14494 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14495
14496 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14497
14498 * MAINTAINERS (Write After Approval): Add myself.
14499
14500 2020-01-02 Luis Machado <luis.machado@linaro.org>
14501
14502 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14503 Cell BE architecture.
14504 * target.h (struct target_ops) <thread_architecture>: Likewise.
14505
14506 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
14507
14508 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14509
14510 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
14511
14512 * MAINTAINERS (Write After Approval): Add myself.
14513
14514 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14515
14516 * gdbarch.sh: Update copyright year range of generated files.
14517
14518 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14519
14520 Update copyright year range in all GDB files.
14521
14522 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14523
14524 * copyright.py: Convert to Python 3.
14525
14526 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14527
14528 * copyright.py: Adapt after move of gnulib directory from gdb
14529 directory to toplevel directory.
14530
14531 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14532
14533 * copyright.py (main): Exit if run from the wrong directory.
14534
14535 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14536
14537 * top.c (print_gdb_version): Change copyright year to 2020.
14538
14539 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14540
14541 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
14542
14543 For older changes see ChangeLog-2019.
14544 \f
14545 Local Variables:
14546 mode: change-log
14547 left-margin: 8
14548 fill-column: 74
14549 version-control: never
14550 coding: utf-8
14551 End:
This page took 0.330341 seconds and 4 git commands to generate.