Change how accessibility is handled in dwarf2/read.c
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-09-29 Tom Tromey <tom@tromey.com>
2
3 * dwarf2/read.c (dwarf2_access_attribute): Rename from
4 dwarf2_default_access_attribute. Look up attribute.
5 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
6 Update.
7
8 2020-09-29 Tom Tromey <tom@tromey.com>
9
10 * dwarf2/read.c (skip_one_die): Update.
11 (read_full_die_1): Change how reprocessing is done.
12 (partial_die_info::read): Update.
13 (read_attribute_value): Remove need_reprocess parameter.
14 (read_attribute): Likewise.
15 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
16 New method.
17
18 2020-09-29 Tom Tromey <tom@tromey.com>
19
20 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
21 (dwarf2_const_value_attr, dump_die_shallow)
22 (dwarf2_fetch_constant_bytes): Update.
23 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
24 comment.
25 <set_address>: New method.
26 (DW_ADDR): Remove.
27 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
28 (attribute::as_string, attribute::as_address): Add assert.
29
30 2020-09-29 Tom Tromey <tom@tromey.com>
31
32 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
33 (read_attribute_reprocess, read_attribute_value): Update.
34 (read_attribute): Clear requires_reprocessing.
35 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
36 form_requires_reprocessing>: New methods.
37 <string_init>: Clear requires_reprocessing.
38 <set_unsigned_reprocess>: New method.
39 <name>: Shrink by one bit.
40 <requires_reprocessing>: New member.
41 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
42 method.
43
44 2020-09-29 Tom Tromey <tom@tromey.com>
45
46 * dwarf2/read.c (read_attribute_value): Update.
47 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
48 set_unsigned>: New methods.
49 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
50
51 2020-09-29 Tom Tromey <tom@tromey.com>
52
53 * dwarf2/read.c (get_alignment, read_array_order)
54 (read_attribute_value, dwarf2_const_value_attr)
55 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
56 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
57 New methods.
58 (DW_SND): Remove.
59
60 2020-09-29 Tom Tromey <tom@tromey.com>
61
62 * dwarf2/read.c (read_attribute_value, lookup_die_type)
63 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
64 Update.
65 * dwarf2/attribute.h (struct attribute) <as_signature,
66 set_signature>: New methods.
67 (DW_SIGNATURE): Remove.
68
69 2020-09-29 Tom Tromey <tom@tromey.com>
70
71 * dwarf2/read.c (read_call_site_scope)
72 (handle_data_member_location, dwarf2_add_member_fn)
73 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
74 (partial_die_info::read, read_attribute_value)
75 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
76 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
77 (dwarf2_symbol_mark_computed): Update.
78 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
79 methods.
80 (DW_BLOCK): Remove.
81 * dwarf2/attribute.c (attribute::form_is_block): Add
82 DW_FORM_data16.
83
84 2020-09-29 Tom Tromey <tom@tromey.com>
85
86 * dwarf2/read.c (read_cutu_die_from_dwo)
87 (read_attribute_reprocess, read_attribute_value, read_attribute)
88 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
89 (dwarf2_fetch_constant_bytes): Update.
90 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
91 <set_string_noncanonical, set_string_canonical>: New methods.
92 <string_is_canonical>: Update comment.
93 <canonical_string_p>: Add assert.
94 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
95 * dwarf2/attribute.c (attribute::form_is_string): New method.
96 (attribute::string): Use it.
97
98 2020-09-29 Tom Tromey <tom@tromey.com>
99
100 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
101 (dump_die_shallow): Use canonical_string_p.
102 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
103 method.
104
105 2020-09-29 Tom Tromey <tom@tromey.com>
106
107 * dwarf2/read.c (partial_die_info::read)
108 (dwarf2_const_value_attr, anonymous_struct_prefix, )
109 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
110 attribute::as_string.
111
112 2020-09-29 Tom Tromey <tom@tromey.com>
113
114 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
115 DW_ADDR.
116 (attribute::string): Don't use DW_STRING.
117 (attribute::get_ref_die_offset): Don't use DW_UNSND.
118 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
119
120 2020-09-29 Tom Tromey <tom@tromey.com>
121
122 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
123 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
124 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
125 * dwarf2/attribute.h (struct attribute): Rename methods.
126 * dwarf2/attribute.c (attribute::as_address): Rename from
127 value_as_address.
128 (attribute::as_string): Rename from value_as_string.
129
130 2020-09-29 Tom Tromey <tom@tromey.com>
131
132 * dwarf2/read.c (partial_die_info::read) <case
133 DW_AT_linkage_name>: Use value_as_string.
134 (dwarf2_string_attr): Use value_as_string.
135 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
136 method.
137 * dwarf2/attribute.c (attribute::value_as_string): New method.
138
139 2020-09-29 Pedro Alves <pedro@palves.net>
140
141 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
142 defined before using '#pragma GCC diagnostic' instead of checking
143 __clang__.
144
145 2020-09-28 Tom Tromey <tom@tromey.com>
146
147 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
148 (handle_signal_stop): Update.
149 * procfs.c (procfs_target::insert_watchpoint): Update.
150 * target.h (target_have_steppable_watchpoint): Now a function.
151
152 2020-09-28 Tom Tromey <tom@tromey.com>
153
154 * infrun.c (set_schedlock_func): Update.
155 * target.h (target_can_lock_scheduler): Now a function.
156
157 2020-09-28 Tom Tromey <tom@tromey.com>
158
159 * inferior.h (class inferior) <has_execution>: Update.
160 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
161 * valops.c (find_function_in_inferior)
162 (value_allocate_space_in_inferior): Update.
163 * top.c (kill_or_detach): Update.
164 * target.c (target_preopen, set_target_permissions): Update.
165 (target_has_execution_current): Remove.
166 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
167 Update.
168 * solib.c (update_solib_list, reload_shared_libraries): Update.
169 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
170 * solib-dsbt.c (enable_break): Update.
171 * score-tdep.c (score7_fetch_inst): Update.
172 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
173 Update.
174 * remote.c (remote_target::start_remote)
175 (remote_target::remote_check_symbols, remote_target::open_1)
176 (remote_target::remote_detach_1, remote_target::verify_memory)
177 (remote_target::xfer_partial, remote_target::read_description)
178 (remote_target::get_min_fast_tracepoint_insn_len): Update.
179 * record-full.c (record_full_open_1): Update.
180 * record-btrace.c (record_btrace_target_open): Update.
181 * objc-lang.c (lookup_objc_class, lookup_child_selector)
182 (value_nsstring): Update.
183 * linux-thread-db.c (add_thread_db_info)
184 (thread_db_find_new_threads_silently, check_thread_db_callback)
185 (try_thread_db_load_1, record_thread): Update.
186 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
187 Update.
188 * linux-fork.c (checkpoint_command): Update.
189 * infrun.c (set_non_stop, set_observer_mode)
190 (check_multi_target_resumption, for_each_just_stopped_thread)
191 (maybe_remove_breakpoints, normal_stop)
192 (class infcall_suspend_state): Update.
193 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
194 (info_program_command, attach_command): Update.
195 * infcall.c (call_function_by_hand_dummy): Update.
196 * inf-loop.c (inferior_event_handler): Update.
197 * gcore.c (gcore_command, derive_heap_segment): Update.
198 * exec.c (exec_file_command): Update.
199 * eval.c (evaluate_subexp): Update.
200 * compile/compile.c (compile_to_object): Update.
201 * cli/cli-dump.c (restore_command): Update.
202 * breakpoint.c (update_watchpoint)
203 (update_inserted_breakpoint_locations)
204 (insert_breakpoint_locations, get_bpstat_thread): Update.
205 * target.h (target_has_execution): Remove macro.
206 (target_has_execution_current): Don't declare.
207 (target_has_execution): Rename from target_has_execution_1. Add
208 argument default.
209
210 2020-09-28 Tom Tromey <tom@tromey.com>
211
212 * mi/mi-main.c (exec_reverse_continue)
213 (mi_cmd_list_target_features): Update.
214 * infrun.c (set_exec_direction_func): Update.
215 * target.c (default_execution_direction): Update.
216 * reverse.c (exec_reverse_once): Update.
217 * target.h (target_can_execute_reverse): Now a function.
218
219 2020-09-28 Tom Tromey <tom@tromey.com>
220
221 * tui/tui-regs.c (tui_get_register)
222 (tui_data_window::show_registers): Update.
223 * thread.c (scoped_restore_current_thread::restore)
224 (scoped_restore_current_thread::scoped_restore_current_thread):
225 Update.
226 * regcache-dump.c (regcache_print): Update.
227 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
228 Update.
229 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
230 * mep-tdep.c (current_me_module, current_options): Update.
231 * linux-thread-db.c (thread_db_load): Update.
232 * infcmd.c (registers_info, info_vector_command)
233 (info_float_command): Update.
234 * ia64-tdep.c (ia64_frame_prev_register)
235 (ia64_sigtramp_frame_prev_register): Update.
236 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
237 * gcore.c (derive_stack_segment): Update.
238 * frame.c (get_current_frame, has_stack_frames): Update.
239 * findvar.c (language_defn::read_var_value): Update.
240 * arm-tdep.c (arm_pc_is_thumb): Update.
241 * target.c (target_has_registers): Rename from
242 target_has_registers_1.
243 * target.h (target_has_registers): Remove macro.
244 (target_has_registers): Rename from target_has_registers_1.
245
246 2020-09-28 Tom Tromey <tom@tromey.com>
247
248 * windows-tdep.c (tlb_make_value): Update.
249 * tui/tui-regs.c (tui_data_window::show_registers): Update.
250 * thread.c (scoped_restore_current_thread::restore)
251 (scoped_restore_current_thread::scoped_restore_current_thread)
252 (thread_command): Update.
253 * stack.c (backtrace_command_1, frame_apply_level_command)
254 (frame_apply_all_command, frame_apply_command): Update.
255 * infrun.c (siginfo_make_value, restore_infcall_control_state):
256 Update.
257 * gcore.c (derive_stack_segment): Update.
258 * frame.c (get_current_frame, has_stack_frames): Update.
259 * auxv.c (info_auxv_command): Update.
260 * ada-tasks.c (ada_build_task_list): Update.
261 * target.c (target_has_stack): Rename from target_has_stack_1.
262 * target.h (target_has_stack): Remove macro.
263 (target_has_stack): Rename from target_has_stack_1.
264
265 2020-09-28 Tom Tromey <tom@tromey.com>
266
267 * target.c (target_has_memory): Rename from target_has_memory_1.
268 * tui/tui-regs.c (tui_data_window::show_registers): Update.
269 * thread.c (scoped_restore_current_thread::restore)
270 (scoped_restore_current_thread::scoped_restore_current_thread):
271 Update.
272 * frame.c (get_current_frame, has_stack_frames): Update.
273 * target.h (target_has_memory): Remove macro.
274 (target_has_memory): Rename from target_has_memory_1.
275
276 2020-09-28 Tom Tromey <tom@tromey.com>
277
278 * target.c (target_has_all_memory_1): Remove.
279 * target.h (target_has_all_memory): Remove define.
280 (target_has_all_memory_1): Don't declare.
281
282 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
283
284 * ser-base.c: Adjust comments formatting.
285
286 2020-09-27 Tom Tromey <tom@tromey.com>
287
288 PR tui/25342:
289 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
290
291 2020-09-27 Tom Tromey <tom@tromey.com>
292
293 PR tui/25342:
294 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
295
296 2020-09-27 Tom Tromey <tom@tromey.com>
297
298 * unittests/tui-selftests.c: Update.
299 * tui/tui-winsource.h (struct tui_source_window_base)
300 <extra_margin, show_line_number, refresh_pad>: New methods.
301 <m_max_length, m_pad>: New members.
302 (tui_copy_source_line): Update.
303 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
304 first_col, line_width, ndigits parameters. Add length.
305 (tui_source_window_base::show_source_line): Write to pad. Line
306 number now 0-based.
307 (tui_source_window_base::refresh_pad): New method.
308 (tui_source_window_base::show_source_content): Write to pad. Call
309 refresh_pad.
310 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
311 not refill.
312 (tui_source_window_base::update_exec_info): Call
313 show_line_number.
314 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
315 method.
316 <m_digits>: New member.
317 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
318 and m_max_length.
319 (tui_source_window::show_line_number): New method.
320 * tui/tui-io.h (tui_puts): Fix comment.
321 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
322 m_max_length.
323
324 2020-09-27 Tom Tromey <tom@tromey.com>
325
326 * tui/tui-winsource.c
327 (tui_source_window_base::set_is_exec_point_at): Don't call
328 show_source_line.
329
330 2020-09-27 Tom Tromey <tom@tromey.com>
331
332 * python/py-tui.c (class tui_py_window) <refresh_window>: New
333 method.
334 <erase>: Update.
335 <cursor_x, cursor_y>: Remove.
336 <m_inner_window>: New member.
337 (tui_py_window::rerender): Create inner window.
338 (tui_py_window::output): Write to inner window.
339
340 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
341
342 PR python/26586
343 * cli/cli-script.c (execute_control_commands): don't set
344 instream to nullptr here as this breaks the from_tty argument
345 to gdb.execute in Python.
346 (execute_user_command): set instream to nullptr here instead.
347
348 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
349
350 * infrun.h (infrun_debug_printf): Fix formatting.
351 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
352
353 2020-09-25 Saagar Jha <saagar@saagarjha.com>
354
355 * compile/compile-object-load.h (struct munmap_list): Add
356 explicitly-defined move constructor.
357
358 2020-09-24 Tom Tromey <tromey@adacore.com>
359
360 PR tui/26638:
361 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
362 method.
363 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
364 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
365 (tui_prev_win): Rewrite.
366
367 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
368
369 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
370 in WOW64 processes as SIGINT.
371 * nat/windows-nat.h: Make wow64_process a shared variable.
372 * windows-nat.c: Remove static wow64_process variable.
373
374 2020-09-23 Tom Tromey <tom@tromey.com>
375
376 PR symtab/25470:
377 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
378 offset and bit size.
379 * printcmd.c (print_scalar_formatted): Handle zero-length
380 integer.
381 (print_scalar_formatted): Use bit_size_differs_p.
382 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
383 constant.
384 (union type_specific): <int_stuff>: New member.
385 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
386 methods.
387 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
388 TYPE_SPECIFIC_FIELD.
389 (recursive_dump_type, copy_type_recursive): Update.
390 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
391 DW_AT_data_bit_offset.
392
393 2020-09-23 Tom Tromey <tom@tromey.com>
394
395 * utils.h (class gdb_argv): Add move operators.
396 <append>: New methods.
397 * compile/compile.c (build_argc_argv): Remove.
398 (compile_args_argc): Remove.
399 (compile_args_argv): Change type.
400 (set_compile_args): Simplify.
401 (append_args): Remove.
402 (filter_args): Remove argcp parameter.
403 (get_args): Return gdb_argv. Simplify.
404 (compile_to_object): Update.
405
406 2020-09-23 Tom Tromey <tom@tromey.com>
407
408 * compile/compile-object-run.c (do_module_cleanup)
409 <~do_module_cleanup> :Remove.
410 (do_module_cleanup): Update.
411 * compile/compile-object-load.h (struct munmap_list): Add move
412 assignment operator.
413 <source_file>: Now a std::string.
414 <munmap_list>: Rename. No longer a pointer.
415 * compile/compile-object-load.c (struct setup_sections_data): Add
416 constructor.
417 <setup_one_section>: Declare.
418 <munmap_list>: Move earlier.
419 <m_bfd>: New member.
420 <m_last_size, m_last_section_first, m_last_prot,
421 m_last_max_alignment>: Rename, add initializers where needed.
422 (setup_sections_data::setup_one_section): Rename from
423 setup_sections. Update.
424 (compile_object_load): Update. Don't use bfd_map_over_sections.
425
426 2020-09-23 Tom Tromey <tom@tromey.com>
427
428 * compile/compile-object-run.c (struct do_module_cleanup): Add
429 parameters to constructor. Update destructor.
430 <source_file, scope, scope_data, out_value_type, out_value_addr,
431 munmap_list_head, objfile_name_string>: Remove.
432 <module>: New member.
433 (do_module_cleanup): Update.
434 (compile_object_run): Update.
435
436 2020-09-23 Tom Tromey <tom@tromey.com>
437
438 * compile/compile.c (eval_compile_command): Update.
439 * compile/compile-object-run.h (compile_object_run): Take a
440 compile_module_up.
441 * compile/compile-object-run.c (compile_object_run): Take a
442 compile_module_up.
443 * compile/compile-object-load.h (struct compile_module): Add
444 constructor, destructor.
445 (compile_module_up): New typedef.
446 (compile_object_load): Return compile_object_up.
447 * compile/compile-object-load.c (compile_object_load): Return
448 compile_module_up.
449
450 2020-09-23 Tom Tromey <tom@tromey.com>
451
452 * compile/compile-object-run.c (struct do_module_cleanup): Add
453 constructor, destructor.
454 <objfile_name_string>: Don't use struct hack.
455 (do_module_cleanup): Use delete.
456 (compile_object_run): Use new.
457
458 2020-09-23 Tom Tromey <tom@tromey.com>
459
460 * compile/compile-cplus-types.c
461 (compile_cplus_convert_struct_or_union): Use std::vector.
462 (compile_cplus_convert_func): Likewise.
463 * compile/compile-c-types.c (convert_func): Use std::vector.
464
465 2020-09-21 Tom Tromey <tromey@adacore.com>
466
467 * sparc-tdep.c (sparc32_skip_prologue): Use
468 skip_prologue_using_sal.
469
470 2020-09-19 Tom Tromey <tom@tromey.com>
471
472 * symfile.c (add_section_size_callback): Remove.
473 (load_one_section): Rename from load_section_callback. Change
474 parameters.
475 (generic_load): Use foreach.
476
477 2020-09-19 Tom Tromey <tom@tromey.com>
478
479 * exec.c (add_to_section_table): Remove.
480 (build_section_table): Use foreach.
481
482 2020-09-19 Tom Tromey <tom@tromey.com>
483
484 * elfread.c (elf_locate_sections): Change parameters.
485 (elf_symfile_read): Use foreach.
486
487 2020-09-19 Tom Tromey <tom@tromey.com>
488
489 * cli/cli-dump.c (struct callback_data): Remove.
490 (restore_one_section): Rename from restore_section_callback.
491 Change parameters.
492 (restore_binary_file): Change parameters.
493 (restore_command): Use foreach.
494
495 2020-09-19 Tom Tromey <tom@tromey.com>
496
497 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
498 (gcore_copy_callback): Likewise.
499 (gcore_memory_sections): Use foreach.
500
501 2020-09-19 Tom Tromey <tom@tromey.com>
502
503 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
504 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
505 parameters.
506 (generic_elf_osabi_sniffer): Use foreach.
507 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
508 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
509
510 2020-09-19 Tom Tromey <tom@tromey.com>
511
512 * dwarf2/read.c (locate_dwz_sections): Change parameters.
513 (dwarf2_get_dwz_file): Use foreach.
514 (dwarf2_locate_dwo_sections): Change parameters.
515 (open_and_init_dwo_file): Use foreach.
516 (dwarf2_locate_common_dwp_sections): Change parameters.
517 (open_and_init_dwp_file): Use foreach.
518
519 2020-09-19 Tom Tromey <tom@tromey.com>
520
521 * symfile.h: (find_lowest_section): Don't declare.
522 * symfile.c (find_lowest_section): Now static. Change
523 parameters.
524 (struct place_section_arg): Remove.
525 (place_section): Change parameters.
526 (addr_info_make_relative): Use foreach.
527 (symfile_dummy_outputs): Remove.
528 (default_symfile_relocate): Use foreach.
529
530 2020-09-19 Tom Tromey <tom@tromey.com>
531
532 * objfiles.c (add_to_objfile_sections): Rename from
533 add_to_objfile_sections_full.
534 (add_to_objfile_sections): Remove.
535 (build_objfile_section_table): Use foreach.
536
537 2020-09-19 Tom Tromey <tom@tromey.com>
538
539 * stap-probe.c (get_stap_base_address_1): Remove.
540 (get_stap_base_address): Use foreach.
541
542 2020-09-19 Tom Tromey <tom@tromey.com>
543
544 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
545 parameters.
546 (gdb_bfd_close_or_warn): Use foreach.
547
548 2020-09-19 Tom Tromey <tom@tromey.com>
549
550 * corelow.c (add_to_thread_list): Change parameters.
551 (core_target_open): Use foreach.
552
553 2020-09-19 Tom Tromey <tom@tromey.com>
554
555 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
556 existing function.
557
558 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
559
560 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
561 for arrays.
562
563 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
564
565 * eval.c: Remove 'f-lang.h' include.
566 (value_f90_subarray): Moved to f-lang.c.
567 (eval_call): Renamed to...
568 (evaluate_subexp_do_call): ...this, is no longer static, header
569 comment moved into header file.
570 (evaluate_funcall): Update call to eval_call.
571 (skip_undetermined_arglist): Moved to f-lang.c.
572 (fortran_value_subarray): Likewise.
573 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
574 moved to evaluate_subexp_f.
575 (calc_f77_array_dims): Moved to f-lang.c
576 * expprint.c (print_subexp_funcall): New function.
577 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
578 moved to print_subexp_f, OP_FUNCALL uses new function.
579 (dump_subexp_body_funcall): New function.
580 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
581 moved to dump_subexp_f, OP_FUNCALL uses new function.
582 * expression.h (evaluate_subexp_do_call): Declare.
583 * f-lang.c (value_f90_subarray): Moved from eval.c.
584 (skip_undetermined_arglist): Likewise.
585 (calc_f77_array_dims): Likewise.
586 (fortran_value_subarray): Likewise.
587 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
588 (operator_length_f): Likewise.
589 (print_subexp_f): Likewise.
590 (dump_subexp_body_f): Likewise.
591 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
592 declaration of this operation to here.
593 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
594 support moved to operator_length_f.
595 * parser-defs.h (dump_subexp_body_funcall): Declare.
596 (print_subexp_funcall): Declare.
597 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
598 fortran-operator.def.
599
600 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
601
602 * eval.c (fortran_value_subarray): New function, content is taken
603 from...
604 (evaluate_subexp_standard): ...here, in two places. Now arrays
605 and strings both call the new function.
606 (calc_f77_array_dims): Add header comment, handle strings.
607
608 2020-09-18 Victor Collod <vcollod@nvidia.com>
609
610 PR gdb/26635
611 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
612 (i386_analyze_prologue): Call i386_skip_endbr.
613
614 2020-09-18 Tom Tromey <tromey@adacore.com>
615
616 * windows-nat.c (struct windows_nat_target) <wait>: Update.
617 (windows_nat_target::wait): Update.
618 * target/wait.h (enum target_wait_flag): New. Use
619 DEF_ENUM_FLAGS_TYPE.
620 * target/target.h (target_wait): Change type of options.
621 * target.h (target_options_to_string, default_target_wait):
622 Update.
623 (struct target_ops) <wait>: Change type of options.
624 * target.c (target_wait, default_target_wait, do_option): Change
625 type of "options".
626 (target_options_to_string): Likewise.
627 * target-delegates.c: Rebuild.
628 * target-debug.h (target_debug_print_target_wait_flags): Rename
629 from target_debug_print_options.
630 * sol-thread.c (class sol_thread_target) <wait>: Update.
631 (sol_thread_target::wait): Update.
632 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
633 (rs6000_nat_target::wait): Update.
634 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
635 Update.
636 (remote_target::wait_ns, remote_target::wait_as): Change type of
637 "options".
638 (remote_target::wait): Update.
639 * remote-sim.c (struct gdbsim_target) <wait>: Update.
640 (gdbsim_target::wait): Update.
641 * record-full.c (class record_full_base_target) <wait>: Update.
642 (record_full_wait_1): Change type of "options".
643 (record_full_base_target::wait): Update.
644 * record-btrace.c (class record_btrace_target) <wait>: Update.
645 (record_btrace_target::wait): Update.
646 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
647 Update.
648 (ravenscar_thread_target::wait): Update.
649 * procfs.c (class procfs_target) <wait>: Update.
650 (procfs_target::wait): Update.
651 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
652 * obsd-nat.c (obsd_nat_target::wait): Update.
653 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
654 (nto_procfs_target::wait): Update.
655 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
656 * nbsd-nat.c (nbsd_wait): Change type of "options".
657 (nbsd_nat_target::wait): Update.
658 * linux-thread-db.c (class thread_db_target) <wait>: Update.
659 (thread_db_target::wait): Update.
660 * linux-nat.h (class linux_nat_target) <wait>: Update.
661 * linux-nat.c (linux_nat_target::wait): Update.
662 (linux_nat_wait_1): Update.
663 * infrun.c (do_target_wait_1, do_target_wait): Change type of
664 "options".
665 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
666 * inf-ptrace.c (inf_ptrace_target::wait): Update.
667 * go32-nat.c (struct go32_nat_target) <wait>: Update.
668 (go32_nat_target::wait): Update.
669 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
670 * gnu-nat.c (gnu_nat_target::wait): Update.
671 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
672 * fbsd-nat.c (fbsd_nat_target::wait): Update.
673 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
674 * darwin-nat.c (darwin_nat_target::wait): Update.
675 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
676 (bsd_uthread_target::wait): Update.
677 * aix-thread.c (class aix_thread_target) <wait>: Update.
678 (aix_thread_target::wait): Update.
679
680 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
681
682 * compile/compile-object-run.c (create_copied_type_recursive): New
683 function.
684 (compile_object_run): Use new function.
685
686 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
687
688 * NEWS: Mention x86_64 Cygwin core file support.
689
690 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
691
692 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
693 (core_process_module_section): Handle NOTE_INFO_MODULE64.
694
695 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
696
697 * windows-tdep.h: Add prototypes.
698 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
699 (i386_windows_core_pid_to_str): Move and rename ...
700 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
701 (windows_core_pid_to_str): ... and here.
702 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
703
704 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
705 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
706 (amd64_windows_init_abi_common): ... and register.
707
708 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
709
710 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
711 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
712
713 2020-09-18 Pedro Alves <pedro@palves.net>
714
715 PR gdb/26631
716 * thread.c (thread_find_command): Switch inferior before calling
717 target methods.
718
719 2020-09-17 Tom Tromey <tromey@adacore.com>
720
721 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
722 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
723 (tdesc_arch_data_up): New typedef.
724 (tdesc_use_registers, tdesc_data_alloc): Update.
725 (tdesc_data_cleanup): Don't declare.
726 * target-descriptions.c (tdesc_data_alloc): Return a
727 tdesc_arch_data_up.
728 (tdesc_arch_data_deleter::operator()): Rename from
729 tdesc_data_cleanup. Change argument type.
730 (tdesc_use_registers): Change early_data to an rvalue reference.
731 (tdesc_use_registers): Don't use delete.
732 * sparc-tdep.c (sparc32_gdbarch_init): Update.
733 * s390-tdep.c (s390_gdbarch_init): Update.
734 * rx-tdep.c (rx_gdbarch_init): Update.
735 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
736 * riscv-tdep.c (riscv_gdbarch_init): Update.
737 * or1k-tdep.c (or1k_gdbarch_init): Update.
738 * nios2-tdep.c (nios2_gdbarch_init): Update.
739 * nds32-tdep.c (nds32_gdbarch_init): Update.
740 * mips-tdep.c (mips_gdbarch_init): Update.
741 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
742 * m68k-tdep.c (m68k_gdbarch_init): Update.
743 * i386-tdep.c (i386_gdbarch_init): Update.
744 * arm-tdep.c (arm_gdbarch_init): Update.
745 * arc-tdep.c (arc_tdesc_init): Update.
746 (arc_gdbarch_init): Update.
747 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
748
749 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
750
751 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
752 for WOW64 processes.
753
754 2020-09-17 Tom Tromey <tom@tromey.com>
755
756 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
757
758 2020-09-17 Tom Tromey <tom@tromey.com>
759
760 * value.c (preserve_values): Update.
761 * python/py-type.c (save_objfile_types): Update.
762 * guile/scm-type.c (save_objfile_types): Update.
763 * gdbtypes.h (create_copied_types_hash): Return htab_up.
764 * gdbtypes.c (create_copied_types_hash): Return htab_up.
765 * compile/compile-object-run.c (compile_object_run): Update.
766
767 2020-09-17 Tom Tromey <tom@tromey.com>
768
769 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
770 Remove.
771 <m_table>: Now htab_up.
772 * typeprint.c (typedef_hash_table::recursively_update)
773 (typedef_hash_table::add_template_parameters)
774 (typedef_hash_table::typedef_hash_table): Update.
775 (typedef_hash_table::~typedef_hash_table): Remove.
776 (typedef_hash_table::typedef_hash_table)
777 (typedef_hash_table::find_global_typedef)
778 (typedef_hash_table::find_typedef): Update.
779
780 2020-09-17 Tom Tromey <tom@tromey.com>
781
782 * target-descriptions.c (tdesc_use_registers): Use htab_up.
783
784 2020-09-17 Tom Tromey <tom@tromey.com>
785
786 * linespec.c (class decode_compound_collector)
787 <~decode_compound_collector>: Remove.
788 <m_unique_syms>: Now htab_up.
789 (decode_compound_collector::operator ()): Update.
790 (class symtab_collector) <~symtab_collector>: Remove.
791 <m_symtab_table>: Now htab_up.
792 (symtab_collector::operator ()): Update.
793
794 2020-09-17 Tom Tromey <tom@tromey.com>
795
796 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
797 (filename_seen_cache::clear): Update.
798 (~filename_seen_cache): Remove.
799 (filename_seen_cache::seen): Update.
800 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
801 htab_up.
802 <~filename_seen_cache>: Remove.
803 <traverse>: Update.
804
805 2020-09-17 Tom Tromey <tom@tromey.com>
806
807 * completer.c (completion_tracker::discard_completions)
808 (completion_tracker::~completion_tracker)
809 (completion_tracker::maybe_add_completion)
810 (completion_tracker::remove_completion)
811 (completion_tracker::recompute_lowest_common_denominator)
812 (completion_tracker::build_completion_result): Update.
813 * completer.h (class completion_tracker) <have_completions>:
814 Update.
815 <m_entries_hash>: Now htab_up.
816
817 2020-09-17 Tom Tromey <tom@tromey.com>
818
819 * breakpoint.c (ambiguous_names_p): Use htab_up.
820
821 2020-09-17 Tom Tromey <tom@tromey.com>
822
823 * auto-load.c (struct auto_load_pspace_info)
824 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
825 <loaded_script_files, loaded_script_texts>: Change type to
826 htab_up.
827 (~auto_load_pspace_info) Remove.
828 (init_loaded_scripts_info, maybe_add_script_file)
829 (maybe_add_script_text, auto_load_info_scripts): Update.
830
831 2020-09-17 Tom Tromey <tromey@adacore.com>
832
833 * c-exp.y (name_obstack): Now static.
834
835 2020-09-17 Chungyi Chi <demonic@csie.io>
836
837 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
838
839 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
840
841 * breakpoint.h (init_catchpoint): Change int parameter to bool.
842 (add_solib_catchpoint): Likewise.
843 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
844 to bool.
845 (add_solib_catchpoint): Change int parameter/variable to bool.
846 (catch_load_or_unload): Likewise.
847 (init_catchpoint): Likewise.
848 (create_fork_vfork_event_catchpoint): Likewise.
849 (catch_fork_command_1): Likewise.
850 (catch_exec_command_1): Likewise.
851
852 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
853
854 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
855 Change instance_flags to m_instance_flags.
856
857 2020-09-16 Tom Tromey <tromey@adacore.com>
858
859 PR gdb/26598:
860 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
861
862 2020-09-16 John Baldwin <jhb@FreeBSD.org>
863
864 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
865 PL_FLAG_EXEC.
866 (fbsd_nat_target::insert_exec_catchpoint)
867 (fbsd_nat_target::remove_exec_catchpoint): Always define.
868 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
869 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
870
871 2020-09-16 John Baldwin <jhb@FreeBSD.org>
872
873 * configure.ac: Remove check for kinfo_getvmmap().
874 * configure, config.in: Regenerate.
875 * fbsd-nat.c (fbsd_read_mapping): Remove
876 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
877 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
878 kinfo_get_vmmap() are always present.
879
880 2020-09-16 John Baldwin <jhb@FreeBSD.org>
881
882 * fbsd-nat.c: Always include support for
883 TARGET_OBJECT_SIGNAL_INFO.
884
885 2020-09-16 John Baldwin <jhb@FreeBSD.org>
886
887 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
888 sysctl and remove procfs fallback.
889
890 2020-09-16 John Baldwin <jhb@FreeBSD.org>
891
892 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
893 * fbsd-nat.h: Likewise.
894
895 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
896
897 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
898 argument.
899
900 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
901
902 * ada-lang.c (ada_language_data): Delete.
903 (ada_language): Remove references to ada_language_data.
904 * c-lang.c (c_language_data): Delete.
905 (c_language): Remove references to c_language_data.
906 (cplus_language_data): Delete.
907 (cplus_language): Remove references to cplus_language_data.
908 (asm_language_data): Delete.
909 (asm_language): Remove references to asm_language_data.
910 (minimal_language_data): Delete.
911 (minimal_language): Remove references to minimal_language_data.
912 * d-lang.c (d_language_data): Delete.
913 (d_language): Remove references to d_language_data.
914 * f-lang.c (f_language_data): Delete.
915 (f_language): Remove references to f_language_data.
916 * go-lang.c (go_language_data): Delete.
917 (go_language): Remove references to go_language_data.
918 * language.c (unknown_language_data): Delete.
919 (unknown_language): Remove references to unknown_language_data.
920 (auto_language_data): Delete.
921 (auto_language): Remove references to auto_language_data.
922 * language.h (language_data): Delete struct.
923 (language_defn): No longer inherit from language_data.
924 * m2-lang.c (m2_language_data): Delete.
925 (m2_language): Remove references to m2_language_data.
926 * objc-lang.c (objc_language_data): Delete.
927 (objc_language): Remove references to objc_language_data.
928 * opencl-lang.c (opencl_language_data): Delete.
929 (opencl_language): Remove references to opencl_language_data.
930 * p-lang.c (pascal_language_data): Delete.
931 (pascal_language): Remove references to pascal_language_data.
932 * rust-lang.c (rust_language_data): Delete.
933 (rust_language): Remove references to rust_language_data.
934
935 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
936
937 * ada-lang.c (ada_language_data): Remove la_op_print_tab
938 initializer.
939 (ada_language::opcode_print_table): New member function.
940 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
941 (c_language::opcode_print_table): New member function.
942 (cplus_language_data): Remove la_op_print_tab initializer.
943 (cplus_language::opcode_print_table): New member function.
944 (asm_language_data): Remove la_op_print_tab initializer.
945 (asm_language::opcode_print_table): New member function.
946 (minimal_language_data): Remove la_op_print_tab initializer.
947 (minimal_language::opcode_print_table): New member function.
948 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
949 (d_language::opcode_print_table): New member function.
950 * expprint.c (print_subexp_standard): Update call to
951 opcode_print_table.
952 (op_string): Likewise.
953 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
954 (f_language::opcode_print_table): New member function.
955 * go-lang.c (go_language_data): Remove la_op_print_tab
956 initializer.
957 (go_language::opcode_print_table): New member function.
958 * language.c (unknown_language_data): Remove la_op_print_tab
959 initializer.
960 (unknown_language::opcode_print_table): New member function.
961 (auto_language_data): Remove la_op_print_tab initializer.
962 (auto_language::opcode_print_table): New member function.
963 * language.h (language_data): Remove la_op_print_tab field.
964 (language_defn::opcode_print_table): Declare new member function.
965 * m2-lang.c (m2_language_data): Remove la_op_print_tab
966 initializer.
967 (m2_language::opcode_print_table): New member function.
968 * objc-lang.c (objc_language_data): Remove la_op_print_tab
969 initializer.
970 (objc_language::opcode_print_table): New member function.
971 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
972 initializer.
973 (opencl_language::opcode_print_table): New member function.
974 * p-lang.c (pascal_language_data): Remove la_op_print_tab
975 initializer.
976 (pascal_language::opcode_print_table): New member function.
977 * rust-lang.c (rust_language_data): Remove la_op_print_tab
978 initializer.
979 (rust_language::opcode_print_table): New member function.
980
981 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
982
983 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
984 (ada_language::expression_ops): New member function.
985 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
986 (c_language::expression_ops): New member function.
987 (cplus_language_data): Remove la_exp_desc initializer.
988 (cplus_language::expression_ops): New member function.
989 (asm_language_data): Remove la_exp_desc initializer.
990 (asm_language::expression_ops): New member function.
991 (minimal_language_data): Remove la_exp_desc initializer.
992 (minimal_language::expression_ops): New member function.
993 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
994 (d_language::expression_ops): New member function.
995 * eval.c (evaluate_subexp): Update call to expression_ops.
996 * expprint.c (print_subexp): Likewise.
997 (op_name): Likewise.
998 (dump_subexp_body): Likewise.
999 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
1000 (f_language::expression_ops): New member function.
1001 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
1002 (go_language::expression_ops): New member function.
1003 * language.c (language_defn::expression_ops): New function.
1004 (unknown_language_data): Remove la_exp_desc initializer.
1005 (auto_language_data): Likewise.
1006 * language.h (language_data): Remove la_exp_desc field.
1007 (language_defn::expression_ops): Declare new member function.
1008 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
1009 (m2_language::expression_ops): New member function.
1010 * objc-lang.c (objc_language_data): Remove la_exp_desc
1011 initializer.
1012 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
1013 initializer.
1014 (opencl_language::expression_ops): New member function.
1015 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
1016 * parse.c (operator_length): Update call to expression_ops.
1017 (exp_iterate): Likewise.
1018 * rust-lang.c (rust_language_data): Remove la_exp_desc
1019 initializer.
1020 (ruse_language::expression_ops): New member function.
1021
1022 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1023
1024 * ada-lang.c (ada_language_data): Remove la_varobj_ops
1025 initializer.
1026 (ada_language::varobj_ops): New member function.
1027 * c-lang.c (c_language_data): Remove la_varobj_ops
1028 initializer.
1029 (cplus_language_data): Likewise.
1030 (cplus_language::varobj_ops): New member function.
1031 (asm_language_data): Remove la_varobj_ops initializer.
1032 (minimal_language_data): Likewise.
1033 * d-lang.c (d_language_data): Likewise.
1034 * f-lang.c (f_language_data): Likewise.
1035 * go-lang.c (go_language_data): Likewise.
1036 * language.c (language_defn::varobj_ops): New function.
1037 (unknown_language_data): Remove la_varobj_ops
1038 initializer.
1039 (auto_language_data): Likewise.
1040 * language.h (language_data): Remove la_varobj_ops field.
1041 (language_defn::varobj_ops): Declare new member function.
1042 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
1043 * objc-lang.c (objc_language_data): Likewise.
1044 * opencl-lang.c (opencl_language_data): Likewise.
1045 * p-lang.c (pascal_language_data): Likewise.
1046 * rust-lang.c (rust_language_data): Likewise.
1047 * varobj.c (varobj_create): Update call to varobj_ops.
1048 * varobj.h (default_varobj_ops): Delete define.
1049
1050 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1051
1052 * ada-lang.c (ada_language_data): Remove la_macro_expansion
1053 initializer.
1054 * c-lang.c (c_language_data): Likewise.
1055 (c_language::macro_expansion): New member function.
1056 (cplus_language_data): Likewise.
1057 (cplus_language::macro_expansion): New member function.
1058 (asm_language_data): Likewise.
1059 (asm_language::macro_expansion): New member function.
1060 (minimal_language_data): Likewise.
1061 (minimal_language::macro_expansion): New member function.
1062 * d-lang.c (d_language_data): Remove la_macro_expansion
1063 initializer.
1064 * f-lang.c (f_language_data): Likewise.
1065 * go-lang.c (go_language_data): Likewise.
1066 * language.c (unknown_language_data): Likewise.
1067 (auto_language_data): Likewise.
1068 * language.h (language_data): Remove la_macro_expansion field.
1069 (language_defn::macro_expansion): New member function.
1070 * m2-lang.c (m2_language_data): Remove la_macro_expansion
1071 initializer.
1072 * objc-lang.c (objc_language_data): Likewise.
1073 (objc_language::macro_expansion): New member function.
1074 * opencl-lang.c (opencl_language_data): Likewise.
1075 (opencl_language::macro_expansion): New member function.
1076 * p-lang.c (pascal_language_data): Remove la_macro_expansion
1077 initializer.
1078 * rust-lang.c (rust_language_data): Likewise.
1079 * symtab.c (default_collect_symbol_completion_matches_break_on):
1080 Update call to macro_expansion.
1081
1082 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1083
1084 * ada-lang.c (ada_language_data): Remove la_array_ordering
1085 initializer.
1086 * c-lang.c (c_language_data): Likewise.
1087 (cplus_language_data): Likewise.
1088 (asm_language_data): Likewise.
1089 (minimal_language_data): Likewise.
1090 * d-lang.c (d_language_data): Likewise.
1091 * dwarf2/read.c (read_array_order): Update for call to
1092 array_ordering.
1093 * f-lang.c (f_language_data): Remove la_array_ordering
1094 initializer.
1095 (f_language::array_ordering): New member function.
1096 * go-lang.c (go_language_data): Remove la_array_ordering
1097 initializer.
1098 * language.c (unknown_language_data): Likewise.
1099 (auto_language_data): Likewise.
1100 * language.h (language_data): Delete la_array_ordering field.
1101 (language_defn::array_ordering): New member function.
1102 * m2-lang.c (m2_language_data): Remove la_array_ordering
1103 initializer.
1104 * objc-lang.c (objc_language_data): Likewise.
1105 * opencl-lang.c (opencl_language_data): Likewise.
1106 * p-lang.c (pascal_language_data): Likewise.
1107 * rust-lang.c (rust_language_data): Likewise.
1108
1109 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1110
1111 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
1112 initializer.
1113 * c-lang.c (c_language_data): Likewise.
1114 (cplus_language_data): Likewise.
1115 (asm_language_data): Likewise.
1116 (minimal_language_data): Likewise.
1117 * d-lang.c (d_language_data): Likewise.
1118 * f-lang.c (f_language_data): Likewise.
1119 (f_language::case_sensitivity): New member function.
1120 * go-lang.c (go_language_data): Remove la_case_sensitivity
1121 initializer.
1122 * language.c (enum case_mode): Moved here from language.h.
1123 (case_mode): Make static.
1124 (show_case_command): Update for case_sensitivity being a method.
1125 (set_case_command): Likewise.
1126 (set_range_case): Likewise.
1127 (unknown_language_data): Remove la_case_sensitivity initializer.
1128 (auto_language_data): Likewise.
1129 * language.h (case_mode): Delete, move enum declaration to
1130 language.c.
1131 (language_data): Delete la_case_sensitivity field.
1132 (language_defn::case_sensitivity): New member function.
1133 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
1134 initializer.
1135 * objc-lang.c (objc_language_data): Likewise.
1136 * opencl-lang.c (opencl_language_data): Likewise.
1137 * p-lang.c (pascal_language_data): Likewise.
1138 * rust-lang.c (rust_language_data): Likewise.
1139
1140 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1141
1142 * ada-lang.c (ada_language_data): Remove la_range_check
1143 initializer.
1144 * c-lang.c (c_language_data): Likewise.
1145 (cplus_language_data): Likewise.
1146 (asm_language_data): Likewise.
1147 (minimal_language_data): Likewise.
1148 * d-lang.c (d_language_data): Likewise.
1149 * f-lang.c (f_language_data): Likewise.
1150 (f_language::range_checking_on_by_default): New member function.
1151 * go-lang.c (go_language_data): Remove la_range_check initializer.
1152 * language.c (enum range_mode): Moved here from language.h.
1153 (range_mode): Made static.
1154 (show_range_command): Update to use
1155 range_checking_on_by_default.
1156 (set_range_command): Likewise.
1157 (set_range_case): Likewise.
1158 (unknown_language_data): Remove la_range_check initializer.
1159 (auto_language_data): Likewise.
1160 * language.h (range_mode): Delete. Enum definition moved to
1161 language.c.
1162 (language_data): Remove la_range_check field.
1163 (language_defn::range_checking_on_by_default): New member
1164 function.
1165 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
1166 (m2_language::range_checking_on_by_default): New member function.
1167 * objc-lang.c (objc_language_data): Remove la_range_check
1168 initializer.
1169 * opencl-lang.c (opencl_language_data): Likewise.
1170 * p-lang.c (pascal_language_data): Likewise.
1171 (pascal_language::range_checking_on_by_default): New member
1172 function.
1173 * rust-lang.c (rust_language_data): Remove la_range_check
1174 initializer.
1175 (rust_language::range_checking_on_by_default): New member
1176 function.
1177
1178 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1179
1180 * dwarf2/read.c (dwarf2_physname): Remove special case for
1181 language_go.
1182 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
1183 member function.
1184
1185 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1186
1187 * ada-lang.c (ada_language_data): Remove
1188 la_store_sym_names_in_linkage_form_p initializer.
1189 (ada_language::store_sym_names_in_linkage_form_p): New member
1190 function.
1191 * c-lang.c (c_language_data): Remove
1192 la_store_sym_names_in_linkage_form_p initializer.
1193 (c_language::store_sym_names_in_linkage_form_p): New member
1194 function.
1195 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
1196 initializer.
1197 (asm_language_data): Likewise.
1198 (asm_language::store_sym_names_in_linkage_form_p): New member
1199 function.
1200 (minimal_language_data): Remove
1201 la_store_sym_names_in_linkage_form_p initializer.
1202 (minimal_language::store_sym_names_in_linkage_form_p): New member
1203 function.
1204 * d-lang.c (d_language_data): Remove
1205 la_store_sym_names_in_linkage_form_p initializer.
1206 * dwarf2/read.c (dwarf2_physname): Update call to
1207 store_sym_names_in_linkage_form_p.
1208 * f-lang.c (f_language_data): Remove
1209 la_store_sym_names_in_linkage_form_p initializer.
1210 * go-lang.c (go_language_data): Remove
1211 la_store_sym_names_in_linkage_form_p initializer.
1212 * language.c (unknown_language_data): Remove
1213 la_store_sym_names_in_linkage_form_p initializer.
1214 (unknown_language::store_sym_names_in_linkage_form_p): New member
1215 function.
1216 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
1217 initializer.
1218 (auto_language::store_sym_names_in_linkage_form_p): New member
1219 function.
1220 * language.h (language_data): Remove
1221 la_store_sym_names_in_linkage_form_p member variable.
1222 (language_defn::store_sym_names_in_linkage_form_p): New member
1223 function.
1224 * m2-lang.c (m2_language_data): Remove
1225 la_store_sym_names_in_linkage_form_p initializer.
1226 * objc-lang.c (objc_language_data): Likewise.
1227 * opencl-lang.c (opencl_language_data): Likewise.
1228 * p-lang.c (pascal_language_data): Likewise.
1229 * rust-lang.c (rust_language_data): Likewise.
1230
1231 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1232
1233 * ada-lang.c (ada_language_data): Remove string_lower_bound
1234 initializer.
1235 * c-lang.c (c_language_data): Likewise.
1236 (cplus_language_data): Likewise.
1237 (asm_language_data): Likewise.
1238 (minimal_language_data): Likewise.
1239 * d-lang.c (d_language_data): Likewise.
1240 * f-lang.c (f_language_data): Likewise.
1241 * go-lang.c (go_language_data): Likewise.
1242 * language.c (unknown_language_data): Likewise.
1243 (auto_language_data): Likewise.
1244 * language.h (language_data): Remove string_lower_bound field.
1245 (language_defn::string_lower_bound): New member function.
1246 * m2-lang.c (m2_language_data): Remove string_lower_bound
1247 initializer.
1248 (m2_language::string_lower_bound): New member function.
1249 * objc-lang.c (objc_language_data): Remove string_lower_bound
1250 initializer.
1251 * opencl-lang.c (opencl_language_data): Likewise.
1252 * p-lang.c (pascal_language_data): Likewise.
1253 * rust-lang.c (rust_language_data): Likewise.
1254 * valops.c (value_cstring): Update call to string_lower_bound.
1255 (value_string): Likewise.
1256 * value.c (allocate_repeated_value): Likewise.
1257
1258 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1259
1260 * valops.c (value_repeat): Fix incorrect argument name in comment.
1261
1262 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1263
1264 * ada-lang.c (ada_language_data): Remove c_style_arrays
1265 initializer.
1266 (ada_language::c_style_arrays_p): New member fuction.
1267 * c-lang.c (c_language_data): Remove c_style_arrays
1268 initializer.
1269 (cplus_language_data): Likewise.
1270 (asm_language_data): Likewise.
1271 (minimal_language_data): Likewise.
1272 * d-lang.c (d_language_data): Likewise.
1273 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
1274 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
1275 (f_language::c_style_arrays_p): New member function.
1276 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
1277 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
1278 * language.c (unknown_language_data): Remove c_style_arrays
1279 initializer.
1280 (auto_language_data): Likewise.
1281 * language.h (language_data): Remove c_style_arrays field.
1282 (language_defn::c_style_arrays_p): New member function.
1283 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
1284 (m2_language::c_style_arrays_p): New member function.
1285 * objc-lang.c (objc_language_data): Remove c_style_arrays
1286 initializer.
1287 * opencl-lang.c (opencl_language_data): Likewise.
1288 * p-lang.c (pascal_language_data): Likewise.
1289 * rust-lang.c (rust_language_data): Likewise.
1290 * valarith.c (value_subscript): Update call to c_style_arrays_p,
1291 and update local variable to a bool.
1292 * valops.c (value_cast): Update call to c_style_arrays_p.
1293 (value_array): Likewise.
1294 * value.c (coerce_array): Likewise.
1295
1296 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1297
1298 * ada-lang.c (ada_language_data): Remove la_language initializer.
1299 * c-lang.c (c_language_data): Likewise.
1300 (cplus_language_data): Likewise.
1301 (asm_language_data): Likewise.
1302 (minimal_language_data): Likewise.
1303 * d-lang.c (d_language_data): Likewise.
1304 * f-lang.c (f_language_data): Likewise.
1305 * go-lang.c (go_language_data): Likewise.
1306 * language.c (unknown_language_data): Likewise.
1307 (auto_language_data): Likewise.
1308 * language.h (language_data): Remove la_language field.
1309 (language_defn::language_defn): Initialise la_language field.
1310 (language_defn::la_language): New member variable.
1311 * m2-lang.c (m2_language_data): Remove la_language field.
1312 * objc-lang.c (objc_language_data): Likewise.
1313 * opencl-lang.c (opencl_language_data): Likewise.
1314 * p-lang.c (pascal_language_data): Likewise.
1315 * rust-lang.c (rust_language_data): Likewise.
1316
1317 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1318
1319 * ada-lang.c (ada_extensions): Delete, moved into
1320 ada_language::filename_extensions.
1321 (ada_language_data): Remove la_filename_extensions initializer.
1322 (ada_language::filename_extensions): New member function.
1323 * c-lang.c (c_extensions): Delete, moved into
1324 c_language::filename_extensions.
1325 (c_language_data): Remove la_filename_extensions initializer.
1326 (c_language::filename_extensions): New member function.
1327 (cplus_extensions): Delete, moved into
1328 cplus_language::filename_extensions.
1329 (cplus_language_data): Remove la_filename_extensions initializer.
1330 (cplus_language::filename_extensions): New member function.
1331 (asm_extensions): Delete, moved into
1332 asm_language::filename_extensions.
1333 (asm_language_data): Remove la_filename_extensions initializer.
1334 (asm_language::filename_extensions): New member function.
1335 (minimal_language_data): Remove la_filename_extensions
1336 initializer.
1337 * d-lang.c (d_extensions): Delete, moved into
1338 d_language::filename_extensions.
1339 (d_language_data): Remove la_filename_extensions initializer.
1340 (d_language::filename_extensions): New member function.
1341 * f-lang.c (f_extensions): Delete, moved into
1342 f_language::filename_extensions.
1343 (f_language_data): Remove la_filename_extensions initializer.
1344 (f_language::filename_extensions): New member function.
1345 * go-lang.c (go_language_data): Remove la_filename_extensions
1346 initializer.
1347 * language.c (add_set_language_command): Update now that
1348 filename_extensions returns a vector.
1349 (unknown_language_data): Remove la_filename_extensions
1350 initializer.
1351 (auto_language_data): Likewise.
1352 * language.h (language_data): Remove la_filename_extensions field.
1353 (language_defn::filename_extensions): New member function.
1354 * m2-lang.c (m2_language_data): Remove la_filename_extensions
1355 initializer.
1356 * objc-lang.c (objc_extensions): Delete, moved into
1357 objc_language::filename_extensions.
1358 (objc_language_data): Remove la_filename_extensions initializer.
1359 (objc_language::filename_extensions): New member function.
1360 * opencl-lang.c (opencl_language_data): Remove
1361 la_filename_extensions initializer.
1362 * p-lang.c (pascal_extensions): Delete, moved into
1363 pascal_language::filename_extensions.
1364 (pascal_language_data): Remove la_filename_extensions initializer.
1365 (pascal_language::filename_extensions): New member function.
1366 * rust-lang.c (rust_extensions): Delete, moved into
1367 rust_language::filename_extensions.
1368 (rust_language_data): Remove la_filename_extensions initializer.
1369 (rust_language::filename_extensions): New member function.
1370 * symfile.c (add_filename_language): Add new assert.
1371
1372 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1373
1374 * ada-lang.c (ada_language_data): Remove la_name and
1375 la_natural_name initializers.
1376 (ada_language::name): New member function.
1377 (ada_language::natural_name): New member function.
1378 * c-lang.c (c_language_data): Remove la_name and
1379 la_natural_name initializers.
1380 (c_language::name): New member function.
1381 (c_language::natural_name): New member function.
1382 (cplus_language_data): Remove la_name and
1383 la_natural_name initializers.
1384 (cplus_language::name): New member function.
1385 (cplus_language::natural_name): New member function.
1386 (asm_language_data): Remove la_name and
1387 la_natural_name initializers.
1388 (asm_language::name): New member function.
1389 (asm_language::natural_name): New member function.
1390 (minimal_language_data): Remove la_name and
1391 la_natural_name initializers.
1392 (minimal_language::name): New member function.
1393 (minimal_language::natural_name): New member function.
1394 * compile/compile.c (compile_to_object): Update call to
1395 lanugage_defn::name.
1396 * d-lang.c (d_language_data): Remove la_name and
1397 la_natural_name initializers.
1398 (d_language::name): New member function.
1399 (d_language::natural_name): New member function.
1400 * expprint.c (print_subexp_standard): Update call to
1401 language_defn::name.
1402 (dump_raw_expression): Likewise
1403 (dump_prefix_expression): Likewise.
1404 * f-lang.c (f_language_data): Remove la_name and
1405 la_natural_name initializers.
1406 (f_language::name): New member function.
1407 (f_language::natural_name): New member function.
1408 * go-lang.c (go_language_data): Remove la_name and
1409 la_natural_name initializers.
1410 (go_language::name): New member function.
1411 (go_language::natural_name): New member function.
1412 * language.c (show_language_command): Update call to
1413 language_defn::name.
1414 (set_language_command): Likewise.
1415 (language_enum): Likewise.
1416 (language_str): Likewise.
1417 (add_set_language_command): Likewise, use
1418 language_defn::natural_name in the doc string.
1419 (unknown_language_data): Remove la_name and
1420 la_natural_name initializers.
1421 (unknown_language::name): New member function.
1422 (unknown_language::natural_name): New member function.
1423 (auto_language_data): Remove la_name and
1424 la_natural_name initializers.
1425 (auto_language::name): New member function.
1426 (auto_language::natural_name): New member function.
1427 (language_lookup_primitive_type_as_symbol): Update call to
1428 language_defn::name.
1429 * language.h (language_data): Remove la_name and la_natural_name
1430 member variables.
1431 (language_defn::name): New member function.
1432 (language_defn::natural_name): New member function.
1433 * m2-lang.c (m2_language_data): Remove la_name and
1434 la_natural_name initializers.
1435 (m2_language::name): New member function.
1436 (m2_language::natural_name): New member function.
1437 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
1438 language_defn::natural_name.
1439 * objc-lang.c (objc_language_data): Remove la_name and
1440 la_natural_name initializers.
1441 (objc_language::name): New member function.
1442 (objc_language::natural_name): New member function.
1443 * opencl-lang.c (opencl_language_data): Remove la_name and
1444 la_natural_name initializers.
1445 (opencl_language::name): New member function.
1446 (opencl_language::natural_name): New member function.
1447 * p-lang.c (pascal_language_data): Remove la_name and
1448 la_natural_name initializers.
1449 (pascal_language::name): New member function.
1450 (pascal_language::natural_name): New member function.
1451 * rust-lang.c (rust_language_data): Remove la_name and
1452 la_natural_name initializers.
1453 (rust_language::name): New member function.
1454 (rust_language::natural_name): New member function.
1455 * symtab.c (lookup_language_this): Update call to
1456 language_defn::name.
1457
1458 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1459
1460 * ada-lang.c (ada_language_data): Remove la_name_of_this
1461 initializer.
1462 * ax-gdb.c (gen_expr): Update call to name_of_this.
1463 * c-exp.y (classify_name): Likewise.
1464 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1465 (cplus_language_data): Likewise.
1466 (cplus_language::name_of_this): New member function.
1467 (asm_language_data): Remove la_name_of_this initializer.
1468 (minimal_language_data): Likewise.
1469 * d-lang.c (d_language_data): Likewise.
1470 (d_language::name_of_this): New member function.
1471 * expprint.c (print_subexp_standard): Update call to name_of_this.
1472 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1473 * go-lang.c (go_language_data): Likewise.
1474 * language.c (unknown_language_data): Likewise.
1475 (unknown_language::name_of_this): New member function.
1476 (auto_language_data): Remove la_name_of_this initializer.
1477 (auto_language::name_of_this): New member function.
1478 * language.h (language_data): Delete la_name_of_this member
1479 variable.
1480 (language_defn::name_of_this): New member function.
1481 * m2-lang.c (m2_language_data): Remove la_name_of_this
1482 initializer.
1483 * objc-lang.c (objc_language_data): Likewise.
1484 (objc_language::name_of_this): New member function.
1485 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1486 initializer.
1487 * p-lang.c (pascal_language_data): Likewise.
1488 (pascal_language::name_of_this): New member function.
1489 * rust-lang.c (rust_language_data): Remove la_name_of_this
1490 initializer.
1491 * symtab.c (lookup_language_this): Update call to name_of_this.
1492 (lookup_symbol_aux): Likewise.
1493 * valops.c (value_of_this): Likewise.
1494
1495 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1496
1497 * ada-lang.c (ada_language_data): Remove
1498 la_struct_too_deep_ellipsis initializer.
1499 (ada_language::struct_too_deep_ellipsis): New member function.
1500 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1501 initializer.
1502 (cplus_language_data): Likewise.
1503 (asm_language_data): Likewise.
1504 (minimal_language_data): Likewise.
1505 * cp-valprint.c (cp_print_value): Update call to
1506 struct_too_deep_ellipsis.
1507 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1508 initializer.
1509 * f-lang.c (f_language_data): Likewise.
1510 (f_language::struct_too_deep_ellipsis): New member function.
1511 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1512 initializer.
1513 * language.c (unknown_language_data): Likewise.
1514 (auto_language_data): Likewise.
1515 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1516 member variable.
1517 (language_defn::struct_too_deep_ellipsis): New member function.
1518 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1519 initializer.Q
1520 * objc-lang.c (objc_language_data): Likewise.
1521 * opencl-lang.c (opencl_language_data): Likewise.
1522 * p-lang.c (pascal_language_data): Likewise.
1523 * rust-lang.c (rust_language_data): Likewise.
1524 * valprint.c (val_print_check_max_depth): Update call to
1525 struct_too_deep_ellipsis.
1526
1527 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1528
1529 * MAINTAINERS (Write After Approval): Add myself.
1530
1531 2020-09-15 Tom Tromey <tom@tromey.com>
1532
1533 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1534 Remove.
1535
1536 2020-09-15 Tom Tromey <tom@tromey.com>
1537
1538 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1539 and TYPE_CODE_METHODPTR cases.
1540 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1541 (c_value_print_inner): Update.
1542 * valprint.c (generic_value_print_memberptr): New function, from
1543 c_value_print_memberptr.
1544 (generic_value_print): Use it. Call cplus_print_method_ptr.
1545
1546 2020-09-15 Tom Tromey <tromey@adacore.com>
1547
1548 * python/python-internal.h (PyInt_FromLong): Remove define.
1549 * python/py-value.c (convert_value_from_python): Use
1550 gdb_py_object_from_longest.
1551 * python/py-type.c (typy_get_code): Use
1552 gdb_py_object_from_longest.
1553 * python/py-symtab.c (salpy_get_line): Use
1554 gdb_py_object_from_longest.
1555 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1556 gdb_py_object_from_longest.
1557 * python/py-record.c (recpy_gap_reason_code): Use
1558 gdb_py_object_from_longest.
1559 * python/py-record-btrace.c (recpy_bt_insn_size)
1560 (recpy_bt_func_level, btpy_list_count): Use
1561 gdb_py_object_from_longest.
1562 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1563 gdb_py_object_from_longest. Fix error handling.
1564 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1565 gdb_py_object_from_longest.
1566 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1567 gdb_py_object_from_longest.
1568 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1569 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1570 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1571
1572 2020-09-15 Tom Tromey <tromey@adacore.com>
1573
1574 * python/python.c (gdbpy_parameter_value): Use
1575 gdb_py_object_from_ulongest.
1576
1577 2020-09-15 Tom Tromey <tromey@adacore.com>
1578
1579 * python/py-infevents.c (create_register_changed_event_object):
1580 Use gdb_py_object_from_longest.
1581 * python/py-exitedevent.c (create_exited_event_object): Use
1582 gdb_py_object_from_longest.
1583
1584 2020-09-15 Tom Tromey <tromey@adacore.com>
1585
1586 * python/python.c (gdbpy_parameter_value): Use
1587 gdb_py_object_from_longest.
1588 * python/py-type.c (convert_field, typy_range): Use
1589 gdb_py_object_from_longest.
1590 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1591 gdb_py_object_from_longest.
1592 * python/py-lazy-string.c (stpy_get_length): Use
1593 gdb_py_object_from_longest.
1594 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1595 gdb_py_object_from_longest.
1596 * python/py-infevents.c (create_memory_changed_event_object): Use
1597 gdb_py_object_from_longest.
1598 * python/py-inferior.c (infpy_get_num): Use
1599 gdb_py_object_from_longest.
1600 (infpy_get_pid): Likewise.
1601
1602 2020-09-15 Tom Tromey <tromey@adacore.com>
1603
1604 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1605 defines.
1606 * python/py-value.c (valpy_long): Use
1607 gdb_py_object_from_ulongest.
1608 * python/py-symtab.c (salpy_get_pc): Use
1609 gdb_py_object_from_ulongest.
1610 (salpy_get_last): Likewise.
1611 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1612 gdb_py_object_from_ulongest.
1613 * python/py-lazy-string.c (stpy_get_address): Use
1614 gdb_py_object_from_ulongest.
1615 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1616 * python/py-arch.c (archpy_disassemble): Use
1617 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1618 error handling.
1619
1620 2020-09-15 Tom Tromey <tromey@adacore.com>
1621
1622 * python/python-internal.h (gdb_py_long_from_longest): Remove
1623 defines.
1624 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1625 * python/py-type.c (convert_field, typy_get_sizeof): Use
1626 gdb_py_object_from_longest.
1627 * python/py-record-btrace.c (btpy_list_index): Use
1628 gdb_py_object_from_longest.
1629
1630 2020-09-15 Tom Tromey <tromey@adacore.com>
1631
1632 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1633 * python/py-record.c (recpy_element_number): Use
1634 gdb_py_object_from_longest.
1635 (recpy_gap_number): Likewise.
1636
1637 2020-09-15 Tom Tromey <tromey@adacore.com>
1638
1639 * top.c (ui::ui): Update.
1640 (highest_ui_num): Remove.
1641 * top.h (struct ui) <num>: Remove.
1642
1643 2020-09-15 Tom Tromey <tromey@adacore.com>
1644
1645 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1646 * ui-style.c (ansi_regex_text): Now array.
1647 * rust-exp.y (number_regex_text): Now array.
1648 * linespec.c (linespec_quote_characters): Now array.
1649 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1650 Now arrays.
1651
1652 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1653
1654 * debuginfod-support.c (debuginfod_client_deleter): New.
1655 (debuginfod_client_up): New.
1656 (debuginfod_init): Return debuginfod_client_up.
1657 (debuginfod_source_query): Adjust.
1658 (debuginfod_debuginfo_query): Adjust.
1659
1660 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1661
1662 * debuginfod-support.c (debuginfod_source_query): Use
1663 make_unique_xstrdup.
1664
1665 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1666
1667 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1668 with `type::instance_flags`.
1669
1670 2020-09-14 Michael Mullin <masmullin@gmail.com>
1671
1672 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1673 Remove baton parameter.
1674
1675 2020-09-14 Pedro Alves <pedro@palves.net>
1676
1677 * Makefile.in (SELFTESTS_SRCS): Add
1678 unittests/enum-flags-selftests.c.
1679 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1680 btrace_function_flags instead of enum btrace_function_flag.
1681 * compile/compile-c-types.c (convert_qualified): Use
1682 enum_flags::raw.
1683 * compile/compile-cplus-symbols.c (convert_one_symbol)
1684 (convert_symbol_bmsym):
1685 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1686 (compile_cplus_convert_struct_or_union_methods)
1687 (compile_cplus_instance::convert_qualified_base):
1688 * go-exp.y (parse_string_or_char): Add cast to int.
1689 * unittests/enum-flags-selftests.c: New file.
1690 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1691 type to btrace_thread_flags from btrace_thread_flag.
1692 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1693 local's type to btrace_thread_flags from btrace_thread_flag. Add
1694 cast in DEBUG call.
1695
1696 2020-09-14 Pedro Alves <pedro@palves.net>
1697
1698 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1699 * gdbtypes.c (address_space_name_to_int): Rename to ...
1700 (address_space_name_to_type_instance_flags): ... this.
1701 (address_space_int_to_name): Rename to ...
1702 (address_space_type_instance_flags_to_name): ... this.
1703 * gdbtypes.h (address_space_name_to_int): Rename to ...
1704 (address_space_name_to_type_instance_flags): ... this.
1705 (address_space_int_to_name): Rename to ...
1706 (address_space_type_instance_flags_to_name): ... this.
1707 * type-stack.c (type_stack::insert): Adjust to rename.
1708 * type-stack.h (type_stack::insert): Likewise.
1709
1710 2020-09-14 Pedro Alves <pedro@palves.net>
1711 Andrew Burgess <andrew.burgess@embecosm.com>
1712
1713 * avr-tdep.c (avr_address_class_type_flags): Return
1714 type_instance_flags.
1715 (avr_address_class_type_flags_to_name): Take a
1716 type_instance_flags.
1717 (avr_address_class_name_to_type_flags): Return bool and take a
1718 type_instance_flags.
1719 * d-lang.c (build_d_types): Use type::set_instance_flags.
1720 * ft32-tdep.c (ft32_address_class_type_flags): Return
1721 type_instance_flags.
1722 (ft32_address_class_type_flags_to_name): Take a
1723 type_instance_flags.
1724 (ft32_address_class_name_to_type_flags): Return bool and take a
1725 type_instance_flags.
1726 (ft32_gdbarch_init): Use type::set_instance_flags.
1727 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1728 * gdbarch.h, gdbarch.c: Regenerate.
1729 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1730 (address_class_name_to_type_flags): Use type_instance_flags and
1731 bool.
1732 * gdbtypes.c (address_space_name_to_int)
1733 (address_space_int_to_name, make_qualified_type): Use
1734 type_instance_flags.
1735 (make_qualified_type): Use type_instance_flags and
1736 type::set_instance_flags.
1737 (make_type_with_address_space, make_cv_type, make_vector_type)
1738 (check_typedef): Use type_instance_flags.
1739 (recursive_dump_type): Cast type_instance_flags to unsigned for
1740 printing.
1741 (copy_type_recursive): Use type::set_instance_flags.
1742 (gdbtypes_post_init): Use type::set_instance_flags.
1743 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1744 <m_instance_flags>: ... this.
1745 <instance_flags, set_instance_flags>: New methods.
1746 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1747 (SET_TYPE_INSTANCE_FLAGS): New.
1748 (address_space_name_to_int, address_space_int_to_name)
1749 (make_type_with_address_space): Pass flags using
1750 type_instance_flags instead of int.
1751 * stabsread.c (cleanup_undefined_types_noname): Use
1752 type::set_instance_flags.
1753 * s390-tdep.c (s390_address_class_type_flags): Return
1754 type_instance_flags.
1755 (s390_address_class_type_flags_to_name): Take a
1756 type_instance_flags.
1757 (s390_address_class_name_to_type_flags): Return bool and take a
1758 type_instance_flags.
1759 * type-stack.c (type_stack::follow_types): Use
1760 type_instance_flags.
1761 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1762
1763 2020-09-14 Tom Tromey <tromey@adacore.com>
1764
1765 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1766 * x86-tdep.c (x86_is_thunk_register_name)
1767 (x86_in_indirect_branch_thunk): Update.
1768 * sparc64-tdep.c (sparc64_fpu_register_names)
1769 (sparc64_cp0_register_names, sparc64_register_names)
1770 (sparc64_pseudo_register_names): Now const.
1771 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1772 cp0_registers_num>: Now const.
1773 * sparc-tdep.c (sparc_core_register_names)
1774 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1775 (sparc32_pseudo_register_names): Now const.
1776 (validate_tdesc_registers): Update.
1777 * rust-lang.c (rust_extensions): Now const.
1778 * p-lang.c (p_extensions): Now const.
1779 * objc-lang.c (objc_extensions): Now const.
1780 * nto-tdep.c (nto_thread_state_str): Now const.
1781 * moxie-tdep.c (moxie_register_names): Now const.
1782 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1783 Now const.
1784 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1785 (mips_linux_reg_names): Now const.
1786 (mips_gdbarch_init): Update.
1787 * microblaze-tdep.c (microblaze_register_names): Now const.
1788 * m68k-tdep.c (m68k_register_names): Now const.
1789 * m32r-tdep.c (m32r_register_names): Now const.
1790 * ia64-tdep.c (ia64_register_names): Now const.
1791 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1792 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1793 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1794 ymm_avx512_register_names, pkeys_register_names>: Now const.
1795 * i386-tdep.c (i386_register_names, i386_zmm_names)
1796 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1797 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1798 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1799 * f-lang.c (f_extensions): Now const.
1800 * d-lang.c (d_extensions): Now const.
1801 * csky-tdep.c (csky_register_names): Now const.
1802 * charset.c (default_charset_names, charset_enum): Now const.
1803 (_initialize_charset): Update.
1804 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1805 const.
1806 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1807 (bsd_uthread_solib_loaded): Update.
1808 (bsd_uthread_state): Now const.
1809 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1810 (amd64_ymm_avx512_names, amd64_ymmh_names)
1811 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1812 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1813 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1814 (amd64_dword_names): Now const.
1815 * agent.c (can_use_agent_enum): Now const.
1816 * ada-tasks.c (task_states, long_task_states): Now const.
1817 * ada-lang.c (known_runtime_file_name_patterns)
1818 (known_auxiliary_function_name_patterns, attribute_names)
1819 (standard_exc, ada_extensions): Now const.
1820
1821 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1822
1823 * bcache.h (struct bcache) <bcache>: Remove constructor.
1824 <m_hash_function, m_compare_function>: Remove.
1825 <~bcache>: Make virtual.
1826 <compare>: Remove static method, introduce virtual method.
1827 <default_hash>: Remove.
1828 <hash>: New virtual method.
1829 * bcache.c (bcache::expand_hash_table): Update.
1830 (bcache::insert): Update.
1831 (bcache::hash): New.
1832 (bcache::compare): Update comment and parameter names.
1833 * gdbtypes.c (types_deeply_equal): Update.
1834 * psymtab.h (struct psymbol_bcache): New struct.
1835 (class psymtab_storage) <psymtab_storage>: Make default.
1836 <psymbol_cache>: Change type to psymbol_bcache.
1837 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1838 (psymbol_hash): Change to...
1839 (psymbol_bcache::hash): ... this.
1840 (psymbol_compare): Change to...
1841 (psymbol_bcache::compare): ... this.
1842
1843 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1844
1845 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1846 checking for initial lwp.
1847
1848 2020-09-14 Tom Tromey <tromey@adacore.com>
1849
1850 * m68k-tdep.c (m68k_extract_return_value): Use
1851 pointer_result_regnum.
1852 (m68k_store_return_value): Likewise.
1853 (m68k_reg_struct_return_p): Handle vectors and arrays.
1854 (m68k_return_value): Handle arrays.
1855 (m68k_svr4_return_value): Fix single-element aggregate handling.
1856 Handle long double. Adjust for embedded ABI.
1857 (m68k_svr4_init_abi): Set pointer_result_regnum.
1858 (m68k_embedded_init_abi): New function.
1859 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1860 (m68k_osabi_sniffer): New function.
1861 (_initialize_m68k_tdep): Register osabi sniffer.
1862 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1863 member.
1864
1865 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1866
1867 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1868 with gdb::unique_xmalloc_ptr<char>.
1869
1870 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1871
1872 * xml-support.h (xml_fetch_another): Change type to be a
1873 function_view.
1874 (xml_process_xincludes): Remove baton parameter.
1875 (xml_fetch_content_from_file): Change baton parameter to
1876 dirname.
1877 * xml-support.c (struct xinclude_parsing_data)
1878 <xinclude_parsing_data>: Remove baton parameter.
1879 <fetcher_baton>: Remove.
1880 (xinclude_start_include): Adjust.
1881 (xml_process_xincludes): Adjust.
1882 (xml_fetch_content_from_file): Replace baton parameter with
1883 dirname.
1884 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1885 (xml_init_syscalls_info): Use a lambda.
1886 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1887 (file_read_description_xml): Use a lambda.
1888 (fetch_available_features_from_target): Change baton parameter
1889 to target_ops.
1890 (target_read_description_xml): Use a lambda.
1891 (target_fetch_description_xml): Use a lambda.
1892 (string_read_description_xml): Update.
1893
1894 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1895
1896 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1897 uses with type::endianity_is_not_default.
1898
1899 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1900
1901 * gdbtypes.h (struct type) <endianity_is_not_default,
1902 set_endianity_is_not_default>: New methods.
1903 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1904 type::endianity_is_not_default, change all write call sites to
1905 use type::set_endianity_is_not_default.
1906
1907 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1908
1909 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1910 uses with type::is_fixed_instance.
1911
1912 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1913
1914 * gdbtypes.h (struct type) <is_fixed_instance,
1915 set_is_fixed_instance>: New methods.
1916 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1917 write call sites to use type::set_is_fixed_instance.
1918
1919 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1920
1921 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1922 uses with type::is_gnu_ifunc.
1923
1924 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1925
1926 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1927 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1928 use type::set_is_gnu_ifunc.
1929
1930 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1931
1932 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1933 uses with type::stub_is_supported.
1934
1935 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1936
1937 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1938 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1939 use type::set_stub_is_supported.
1940
1941 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1942
1943 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1944 uses with type::is_vector.
1945
1946 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1947
1948 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1949 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1950 use type::set_is_vector.
1951
1952 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1953
1954 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1955 uses with type::has_varargs.
1956
1957 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1958
1959 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1960 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1961 use type::set_has_varargs.
1962
1963 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1964
1965 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1966 uses with type::is_prototyped.
1967
1968 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1969
1970 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1971 New methods.
1972 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1973 call sites to use type::set_is_prototyped.
1974
1975 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1976
1977 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1978 uses with type::target_is_stub.
1979
1980 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1981
1982 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1983 New methods.
1984 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1985 sites to use type::set_target_is_stub.
1986
1987 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1988
1989 * gdbtypes.h (TYPE_STUB): Remove, replace all
1990 uses with type::is_stub.
1991
1992 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1993
1994 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1995 (TYPE_STUB): Use type::is_stub, change all write call sites to
1996 use type::set_is_stub.
1997
1998 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1999
2000 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
2001 type::has_no_signedness.
2002
2003 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2004
2005 * gdbtypes.h (struct type) <has_no_signedness,
2006 set_has_no_signedness>: New methods.
2007 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
2008 call sites to use type::set_has_no_signedness.
2009
2010 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2011
2012 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
2013 type::is_unsigned.
2014
2015 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2016
2017 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
2018 methods.
2019 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
2020 sites to use type::set_is_unsigned.
2021
2022 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
2023 Adam Renquinha <arenquinha@cimeq.qc.ca>
2024
2025 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
2026 pointer and stack frame offset when unwinding.
2027
2028 2020-09-13 Pedro Alves <pedro@palves.net>
2029
2030 * NEWS: Document "-break-insert --qualified".
2031 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
2032
2033 2020-09-13 Pedro Alves <pedro@palves.net>
2034
2035 * linespec.c (classify_mtype, compare_msyms): Delete.
2036 (search_minsyms_for_name): Remove classification logic. Instead
2037 filter out trampoline symbols if we also found an external
2038 function of the same name.
2039
2040 2020-09-13 Joel Brobecker <brobecker@adacore.com>
2041
2042 * NEWS: Create a new section for the next release branch.
2043 Rename the section of the current branch, now that it has
2044 been cut.
2045
2046 2020-09-13 Joel Brobecker <brobecker@adacore.com>
2047
2048 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
2049 * version.in: Bump version to 11.0.50.DATE-git.
2050
2051 2020-09-12 Joel Brobecker <brobecker@adacore.com>
2052
2053 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
2054
2055 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
2056 Felix Willgerodt <Felix.Willgerodt@intel.com>
2057
2058 * gdbarch.sh: Added bfloat16 type.
2059 * gdbarch.c: Regenerated.
2060 * gdbarch.h: Regenerated.
2061 * gdbtypes.c (floatformats_bfloat16): New struct.
2062 (gdbtypes_post_init): Add builtin_bfloat16.
2063 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
2064 (floatformats_bfloat16): New struct.
2065 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
2066 (i386_ymm_type): Add field "v16_bfloat16"
2067 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
2068 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
2069 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
2070 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
2071 * features/i386/64bit-avx512.xml: Add bfloat16 type.
2072 * features/i386/64bit-avx512.c: Regenerated.
2073 * features/i386/64bit-sse.xml: Add bfloat16 type.
2074 * features/i386/64bit-sse.c: Regenerated.
2075
2076 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
2077
2078 * i386-tdep.c (i386_zmm_type): Fix field names.
2079 (i386_ymm_type): Fix field names.
2080
2081 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2082
2083 * breakpoint.c: Fix typo in the help message of the
2084 "set breakpoint condition-evaluation" command.
2085
2086 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2087
2088 * nbsd-nat.c: Include "nat/netbsd-nat.h".
2089 * (nbsd_nat_target::pid_to_exec_file)
2090 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
2091 (nbsd_nat_target::post_startup_inferior)
2092 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
2093 (nbsd_add_threads): Switch local code to common gdb/nat functions.
2094 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
2095 * (nbsd_thread_lister): Remove.
2096
2097 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2098
2099 * fork-inferior.c (startup_inferior): Avoid double free.
2100
2101 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2102
2103 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
2104 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
2105
2106 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2107
2108 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
2109 * netbsd-nat.c: Include <sys/ptrace.h>.
2110 * (netbsd_nat::enable_proc_events): Add.
2111
2112 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2113
2114 * netbsd-nat.h: Include "gdbsupport/function-view.h".
2115 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2116 (netbsd_nat::for_each_thread): Add.
2117 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
2118 "gdbsupport/common-debug.h".
2119 * (netbsd_nat::netbsd_thread_lister)
2120 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2121 (netbsd_nat::for_each_thread): Add.
2122
2123 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2124
2125 * netbsd-nat.h: Include <unistd.h>.
2126 * (netbsd_nat::pid_to_exec_file): Add.
2127 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
2128 * (netbsd_nat::pid_to_exec_file) Add.
2129
2130 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2131
2132 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
2133
2134 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2135
2136 * netbsd-nat.h: New file.
2137 * netbsd-nat.c: Likewise.
2138
2139 2020-09-09 Tom Tromey <tromey@adacore.com>
2140
2141 * ada-lang.c (remove_extra_symbols): Do not increment when
2142 removing an element
2143
2144 2020-09-08 Tom Tromey <tromey@adacore.com>
2145
2146 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
2147
2148 2020-09-08 Tom Tromey <tromey@adacore.com>
2149
2150 PR win32/25302:
2151 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
2152 (gdb_bfd_init_data): New function.
2153 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
2154
2155 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2156
2157 * infrun.c (fetch_inferior_event): Use
2158 `switch_to_target_no_thread` to switch the target.
2159
2160 2020-09-06 Tom Tromey <tom@tromey.com>
2161
2162 * symfile.h (dwarf2_free_objfile): Don't declare.
2163
2164 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2165
2166 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
2167 to match 16 byte real/complex type generated by Flang compiler.
2168
2169 2020-09-03 Tom de Vries <tdevries@suse.de>
2170
2171 PR breakpoint/26546
2172 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
2173 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
2174
2175 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
2176
2177 * maint.c (index_digits): New function.
2178 (struct maint_print_section_data): Remove.
2179 (print_bfd_section_info): Remove print_data parameter, add arg
2180 and index_digits.
2181 (print_objfile_section_info): Likewise.
2182 (print_bfd_section_info_maybe_relocated): Likewise (plus
2183 objfile).
2184 (maintenance_info_sections): Adjust calls.
2185
2186 2020-09-02 Tom Tromey <tromey@adacore.com>
2187
2188 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
2189 for null pointers.
2190 (ada_varobj_adjust_for_child_access): Special-case null pointers.
2191
2192 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
2193
2194 * bcache.h (struct bcache) <insert>: Change type of `added` to
2195 pointer to bool.
2196 * bcache.c (bcache::insert): Likewise.
2197 * gdbtypes.c (check_types_worklist): Adjust.
2198 * psymtab.c (add_psymbol_to_bcache): Adjust.
2199
2200 2020-08-31 Kevin Buettner <kevinb@redhat.com>
2201
2202 * corelow.c (unordered_set): Include.
2203 (class core_target): Add field 'm_core_unavailable_mappings'.
2204 (core_target::build_file_mappings): Print only one warning
2205 per inaccessible file. Add unavailable/broken mappings
2206 to m_core_unavailable_mappings.
2207 (core_target::xfer_partial): Call...
2208 (core_target::xfer_memory_via_mappings): New method.
2209
2210 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2211
2212 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
2213 type to bool.
2214
2215 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2216
2217 * dwarf2/read.c (struct field_info): Fix indentation.
2218
2219 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2220
2221 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
2222 ordering in comment.
2223 * frame.c (frame_id_eq): Fix indentation.
2224
2225 2020-08-31 Scott Linder <scott@scottlinder.com>
2226 Simon Marchi <simon.marchi@efficios.com>
2227
2228 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
2229 inline frame ids in outer frame.
2230
2231 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2232
2233 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
2234 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
2235 (outer_frame_id): Use FID_STACK_OUTER instead of
2236 FID_STACK_INVALID.
2237 (frame_id_p): Don't check for outer_frame_id.
2238
2239 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2240
2241 * frame-unwind.c (frame_unwind_got_optimized): Don't set
2242 regnum/frame in value. Call allocate_value_lazy.
2243 * frame.c (frame_unwind_register_value): Use
2244 val_print_not_saved.
2245
2246 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2247
2248 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
2249
2250 2020-08-29 Pedro Alves <pedro@palves.net>
2251
2252 * progspace.c (print_program_space): Use all_inferiors. Switch to
2253 the inferior before calling target_pid_to_str.
2254
2255 2020-08-28 Tom Tromey <tom@tromey.com>
2256
2257 * xcoffread.c (xcoff_end_psymtab): Update comment.
2258 * dbxread.c (dbx_end_psymtab): Update comment.
2259
2260 2020-08-28 Tom de Vries <tdevries@suse.de>
2261
2262 PR breakpoint/26544
2263 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
2264 event_location.
2265 (create_breakpoint): Same.
2266 (base_breakpoint_decode_location): Same.
2267 (bkpt_create_sals_from_location): Same.
2268 (bkpt_decode_location): Same.
2269 (bkpt_probe_create_sals_from_location): Same.
2270 (bkpt_probe_decode_location): Same.
2271 (tracepoint_create_sals_from_location): Same.
2272 (tracepoint_decode_location): Same.
2273 (tracepoint_probe_decode_location): Same.
2274 (strace_marker_create_sals_from_location): Same.
2275 (strace_marker_decode_location): Same.
2276 (create_sals_from_location_default): Same.
2277 (decode_location_default): Same.
2278 * breakpoint.h (struct breakpoint_ops): Same.
2279 (create_breakpoint): Same.
2280 * linespec.h (decode_line_full): Same.
2281 * linespec.c (decode_line_full): Same. Throw error if
2282 result.size () == 0.
2283
2284 2020-08-27 Pedro Alves <pedro@palves.net>
2285
2286 PR gdb/26524
2287 * breakpoint.c (until_break_fsm) <location_breakpoint,
2288 caller_breakpoint>: Delete fields.
2289 <breakpoints>: New field.
2290 <until_break_fsm>: Adjust to save a breakpoint vector instead of
2291 two individual breakpoints.
2292 (until_break_fsm::should_stop): Loop over breakpoints in the
2293 breakpoint vector.
2294 (until_break_fsm::clean_up): Adjust to clear the breakpoints
2295 vector.
2296 (until_break_command): Handle location expanding into multiple
2297 sals.
2298
2299 2020-08-27 Pedro Alves <pedro@palves.net>
2300
2301 PR gdb/26523
2302 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
2303 bp_until breakpoints user-specified locations. Update intro
2304 comment.
2305
2306 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
2307
2308 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
2309 gdb_bfd_sections): New.
2310 * maint.c (print_bfd_section_info): Change param type to
2311 maint_print_section_data.
2312 (print_objfile_section_info): Likewise.
2313 (print_bfd_section_info_maybe_relocated): Likewise.
2314 (maintenance_info_sections): Use gdb_bfd_sections.
2315
2316 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2317
2318 * MAINTAINERS: Add ARC target and maintainer.
2319
2320 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
2321
2322 * configure.tgt: ARC support for GNU/Linux.
2323 * Makefile.in (ALL_TARGET_OBJS): Likewise.
2324 * arc-linux-tdep.c: New file.
2325 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
2326 * arc-tdep.c (arc_write_pc): Use it.
2327
2328 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2329
2330 * arc-tdep.c (arc_check_for_hardware_loop): New.
2331 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
2332
2333 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2334
2335 * arc-tdep.h: Include "gdbarch.h".
2336
2337 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2338
2339 * arch/arc.h
2340 (arc_gdbarch_features): New class to stir the selection of target XML.
2341 (arc_create_target_description): Use FEATURES to choose XML target.
2342 (arc_lookup_target_description): Use arc_create_target_description
2343 to create _new_ target descriptions or return the already created
2344 ones if the FEATURES is the same.
2345 * arch/arc.c: Implementation of prototypes described above.
2346 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
2347 (arc_gdbarch_features_init): Initialize the FEATURES struct.
2348 * arc-tdep.c (*_feature_name): Make feature names consistent.
2349 (arc_register_feature): A new struct to hold information about
2350 registers of a particular target/feature.
2351 (arc_check_tdesc_feature): Check if XML provides registers in
2352 compliance with ARC_REGISTER_FEATURE structs.
2353 (arc_update_acc_reg_names): Add aliases for r58 and r59.
2354 (determine_*_reg_feature_set): Which feature name to look for.
2355 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
2356 (mach_type_to_arc_isa): Convert from a set of binutils machine types
2357 to expected ISA enums to be used in arc_gdbarch_features structs.
2358 * features/Makefile (FEATURE_XMLFILES): Add new files.
2359 * gdb/features/arc/v1-aux.c: New file.
2360 * gdb/features/arc/v1-aux.xml: Likewise.
2361 * gdb/features/arc/v1-core.c: Likewise.
2362 * gdb/features/arc/v1-core.xml: Likewise.
2363 * gdb/features/arc/v2-aux.c: Likewise.
2364 * gdb/features/arc/v2-aux.xml: Likewise.
2365 * gdb/features/arc/v2-core.c: Likewise.
2366 * gdb/features/arc/v2-core.xml: Likewise.
2367 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
2368
2369 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
2370 Andrew Burgess <andrew.burgess@embecosm.com>
2371
2372 PR m2/26372
2373 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
2374 an assert. Remove single element array indexing pattern as the
2375 MULTI_SUBSCRIPT support will handle this case too.
2376
2377 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
2378
2379 * value.h (valprint_check_validity): Move declaration from
2380 here...
2381 * valprint.h (valprint_check_validity): ... to here.
2382
2383 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
2384
2385 * debug.h: New file.
2386 * debug.c (debug_prefixed_vprintf): New function.
2387 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
2388 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
2389
2390 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
2391
2392 * infrun.h (infrun_debug_printf_1): New function declaration.
2393 (infrun_debug_printf): New macro.
2394 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
2395 throughout.
2396 (infrun_debug_printf): New function.
2397 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
2398 (handle_jit_event): Likewise.
2399
2400 2020-08-21 Mark Wielaard <mark@klomp.org>
2401
2402 * ada-lex.l: Extend register warnings diagnostics comment for g++.
2403
2404 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
2405
2406 * frame.c (enum class frame_id_status): New.
2407 (struct frame_info) <this_id::p>: Change type to frame_id_status.
2408 (fprintf_frame): Update.
2409 (compute_frame_id): Set frame id status to "computing" on entry.
2410 Set it back to "not_computed" on failure and to "computed" on
2411 success.
2412 (get_frame_id): Assert the frame id is not being computed.
2413 (create_sentinel_frame): Use frame_id_status::COMPUTED.
2414 (create_new_frame): Likewise.
2415 (frame_cleanup_after_sniffer): Update assert.
2416
2417 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2418
2419 * regcache.c (pid_ptid_regcache_map): New type.
2420 (target_ptid_regcache_map): Remove.
2421 (target_pid_ptid_regcache_map): New type.
2422 (regcaches): Change type to target_pid_ptid_regcache_map.
2423 (get_thread_arch_aspace_regcache): Update.
2424 (regcache_thread_ptid_changed): Update, handle pid-like ptid
2425 case.
2426 (regcaches_size): Update.
2427 (regcache_count): Update.
2428 (registers_changed_ptid_target_pid_test): New.
2429 (_initialize_regcache): Register new test.
2430
2431 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2432
2433 * regcache.c (regcache_count): New.
2434 (struct regcache_test_data): New.
2435 (regcache_test_data_up): New.
2436 (populate_regcaches_for_test): New.
2437 (regcaches_test): Remove.
2438 (get_thread_arch_aspace_regcache_test): New.
2439 (registers_changed_ptid_all_test): New.
2440 (registers_changed_ptid_target_test): New.
2441 (registers_changed_ptid_target_ptid_test): New.
2442 (regcache_thread_ptid_changed): Remove regcache_count lambda.
2443 (_initialize_regcache): Register new tests.
2444
2445 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2446
2447 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
2448 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
2449 gdbarch and aspace parameter. Use current inferior's aspace.
2450 Validate regcache's arch value.
2451 (regcaches_test): Update.
2452
2453 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2454
2455 * regcache.c (regcaches_test): Call registers_changed.
2456
2457 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2458
2459 * infrun.c (process_event_stop_test): Fix typo "breapoint".
2460
2461 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2462
2463 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2464 to find the end of prologue for flang compiled binaries.
2465 * arm-tdep.c (arm_skip_prologue): Likewise.
2466 * i386-tdep.c (i386_skip_prologue): Likewise.
2467 * producer.c (producer_is_llvm): New function.
2468 (producer_parsing_tests): Added new tests for clang/flang.
2469 * producer.h (producer_is_llvm): New declaration.
2470
2471 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
2472
2473 * linux-nat.c (linux_nat_debug_printf): New function.
2474 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2475
2476 2020-08-18 Aaron Merey <amerey@redhat.com>
2477
2478 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2479 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2480 (CLIBS): Add DEBUGINFOD_LIBS.
2481
2482 2020-08-17 Sergei Trofimovich <siarheit@google.com>
2483
2484 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2485 'gdbarch_num_regs'.
2486
2487 2020-08-17 Tom Tromey <tromey@adacore.com>
2488
2489 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2490 ada_get_decoded_value returns NULL.
2491
2492 2020-08-17 Tom Tromey <tromey@adacore.com>
2493
2494 * python/py-inferior.c (infpy_search_memory): Use
2495 gdb_py_object_from_ulongest.
2496 * python/py-infevents.c (create_inferior_call_event_object)
2497 (create_memory_changed_event_object): Use
2498 gdb_py_object_from_ulongest.
2499 * python/py-linetable.c (ltpy_entry_get_pc): Use
2500 gdb_py_object_from_ulongest.
2501
2502 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2503
2504 * loc.c (class symbol_needs_eval_context): Fix indentation.
2505
2506 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2507
2508 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2509 bool.
2510
2511 2020-08-17 Tom de Vries <tdevries@suse.de>
2512
2513 PR gdb/26393
2514 * gdbtypes.c (dump_dynamic_prop): New function.
2515 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2516
2517 2020-08-15 Tom de Vries <tdevries@suse.de>
2518
2519 PR backtrace/26390
2520 * stack.c (print_frame_args): Temporarily set the selected
2521 frame to FRAME while printing the frame's arguments.
2522
2523 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2524
2525 PR breakpoints/26385
2526 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2527 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2528
2529 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2530
2531 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2532 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2533 and >= to check return value instead of == -1 and != -1.
2534
2535 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2536
2537 * utils.h (class gdb_argv) <as_array_view>: New method.
2538 * utils.c (gdb_argv_as_array_view_test): New.
2539 (_initialize_utils): Register selftest.
2540 * maint.c (maintenance_selftest): Use the new method.
2541
2542 2020-08-13 Kamil Rytarowski <n54@gmx.com>
2543
2544 * target.h (supports_dumpcore, dumpcore): New
2545 function declarations.
2546 * target.c (supports_dumpcore, dumpcore): New
2547 functions.
2548 * target-delegates.c: Rebuild.
2549 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2550 and target_dumpcore ().
2551
2552 2020-08-13 Aaron Merey <amerey@redhat.com>
2553
2554 * debuginfod-support.c: Replace global variables with user_data.
2555
2556 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2557
2558 * maint.c (maintenance_selftest): Split args and pass array_view
2559 to run_tests.
2560
2561 2020-08-12 Luis Machado <luis.machado@linaro.org>
2562
2563 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2564 type's length.
2565 Use %s and pulongest to print the length.
2566
2567 2020-08-12 Pedro Alves <palves@redhat.com>
2568
2569 * NEWS: Move "Multi-target debugging support" item to the
2570 "Changes since GDB 9" section.
2571
2572 2020-08-12 Pedro Alves <palves@redhat.com>
2573
2574 PR gdb/26336
2575 * progspace.c (program_space::remove_objfile): Invalidate the
2576 frame cache.
2577
2578 2020-08-11 Tom de Vries <tdevries@suse.de>
2579
2580 * MAINTAINERS: Mark ms1 as deleted.
2581
2582 2020-08-10 Luis Machado <luis.machado@linaro.org>
2583
2584 PR gdb/26310
2585
2586 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2587 act accordingly.
2588 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2589 movz/str/stur/stp skipping behavior.
2590
2591 2020-08-10 Luis Machado <luis.machado@linaro.org>
2592
2593 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2594 struct user_sve_header instead of struct sve_context.
2595
2596 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2597
2598 * read.h (dwarf2_fetch_die_loc_sect_off,
2599 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2600 `void *` parameter with function_view.
2601 * read.c (dwarf2_fetch_die_loc_sect_off,
2602 dwarf2_fetch_die_loc_cu_off): Likewise.
2603 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2604 (per_cu_dwarf_call): Adjust.
2605 (get_frame_address_in_block_wrapper): Remove.
2606 (indirect_synthetic_pointer): Adjust.
2607 (get_ax_pc): Remove.
2608 (dwarf2_compile_expr_to_ax): Adjust.
2609
2610 2020-08-08 Tom de Vries <tdevries@suse.de>
2611
2612 PR build/26344
2613 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2614 constructor.
2615 * regcache.c (get_thread_arch_aspace_regcache): Same.
2616
2617 2020-08-07 Tom Tromey <tromey@adacore.com>
2618
2619 * ravenscar-thread.c
2620 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2621 New method.
2622 (ravenscar_thread_target::wait): Check
2623 runtime_initialized.
2624 (ravenscar_thread_target::prepare_to_store)
2625 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2626 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2627 (ravenscar_thread_target::stopped_by_watchpoint)
2628 (ravenscar_thread_target::stopped_data_address)
2629 (ravenscar_thread_target::core_of_thread): Use
2630 scoped_restore_current_thread and
2631 set_base_thread_from_ravenscar_task.
2632
2633 2020-08-07 Tom Tromey <tromey@adacore.com>
2634
2635 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2636
2637 2020-08-07 Tom Tromey <tromey@adacore.com>
2638
2639 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2640 update_inferior_ptid before update_thread_list.
2641 (temporarily_change_regcache_ptid): New class.
2642 (ravenscar_thread_target::fetch_registers)
2643 (ravenscar_thread_target::store_registers)
2644 (ravenscar_thread_target::prepare_to_store): Use base thread when
2645 forwarding operation.
2646
2647 2020-08-07 Tom Tromey <tromey@adacore.com>
2648
2649 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2650 "is_pid" case.
2651
2652 2020-08-07 Tom Tromey <tromey@adacore.com>
2653
2654 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2655 New methods.
2656 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2657 first.
2658 (ravenscar_thread_target::add_thread): Rename from
2659 ravenscar_add_thread.
2660 (ravenscar_thread_target::update_thread_list): Use a lambda.
2661 (ravenscar_thread_target::xfer_partial): New method.
2662
2663 2020-08-07 Tom Tromey <tromey@adacore.com>
2664
2665 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2666 gdb::function_view.
2667 (iterate_over_live_ada_tasks): Change type of argument.
2668 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2669 of argument.
2670
2671 2020-08-07 Tom Tromey <tromey@adacore.com>
2672
2673 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2674 Remove.
2675 (ravenscar_thread_target::extra_thread_info): Remove.
2676 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2677 defer to target beneath for non-Ravenscar threads.
2678
2679 2020-08-07 Tom Tromey <tromey@adacore.com>
2680
2681 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2682 get_base_thread_from_ravenscar_task>: Now methods.
2683 <m_cpu_map>: New member.
2684 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2685 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2686 (ravenscar_thread_target::task_is_currently_active): Update.
2687 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2688 Now a method.
2689 (ravenscar_thread_target::add_active_thread): Put initial thread
2690 into the m_cpu_map.
2691
2692 2020-08-07 Tom Tromey <tromey@adacore.com>
2693
2694 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2695 event_ptid.
2696
2697 2020-08-07 Tom Tromey <tromey@adacore.com>
2698
2699 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2700 runtime_initialized.
2701
2702 2020-08-07 Tom Tromey <tromey@adacore.com>
2703
2704 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2705 add_active_thread.
2706 (ravenscar_thread_target::add_active_thread): Now public.
2707 (ravenscar_inferior_created): Call add_active_thread after pushing
2708 the target.
2709
2710 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2711
2712 * regcache.c (ptid_regcache_map): New type.
2713 (target_ptid_regcache_map): New type.
2714 (regcaches): Change type to target_ptid_regcache_map.
2715 (get_thread_arch_aspace_regcache): Update to regcaches' new
2716 type.
2717 (regcache_thread_ptid_changed): Likewise.
2718 (registers_changed_ptid): Likewise.
2719 (regcaches_size): Likewise.
2720 (regcaches_test): Update.
2721 (regcache_thread_ptid_changed): Update.
2722 * regcache.h (regcache_up): New type.
2723 * gdbsupport/ptid.h (hash_ptid): New struct.
2724
2725 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
2726
2727 * observable.h (thread_ptid_changed): Add parameter
2728 `process_stratum_target *`.
2729 * infrun.c (infrun_thread_ptid_changed): Add parameter
2730 `process_stratum_target *` and use it.
2731 (selftests): New namespace.
2732 (infrun_thread_ptid_changed): New function.
2733 (_initialize_infrun): Register selftest.
2734 * regcache.c (regcache_thread_ptid_changed): Add parameter
2735 `process_stratum_target *` and use it.
2736 (regcache_thread_ptid_changed): New function.
2737 (_initialize_regcache): Register selftest.
2738 * thread.c (thread_change_ptid): Pass target to
2739 thread_ptid_changed observable.
2740
2741 2020-08-06 Caroline Tice <cmtice@google.com>
2742
2743 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2744 (struct dwp_sections): Update field comments. Add loclists and
2745 rnglists fields.
2746 (struct virtual_v2_dwo_sections): Rename struct to
2747 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2748 size & offset fields for loclists and rnglists.
2749 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2750 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2751 skipping dummy type units.
2752 (create_dwp_hash_table): Update the large comment above the function to
2753 discuss Version 5 DWP files as well, with references. Update all the
2754 version checks in the function to check for version 5 as well. Add new
2755 section at the end to create dwp hash table for version 5.
2756 (create_dwp_v2_section): Rename function to
2757 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2758 Add V5 to error message text.
2759 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2760 into calls to create_dwp_v2_or_v5_section.
2761 (create_dwo_unit_in_dwp_v5): New function.
2762 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2763 check for version2; add else clause to handle version 5.
2764 (open_and_init_dwo_file): Add code to check dwarf version & only call
2765 create_debug_types_hash_table (with sections.types) if version is not 5;
2766 else call create_debug_type_hash_table, with sections.info.
2767 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2768 version 5.
2769 (dwarf2_locate_v5_dwp_sections): New function.
2770 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2771 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
2772
2773 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
2774
2775 * regcache.h (class regcache): Remove friend
2776 registers_changed_ptid.
2777 <regcache_thread_ptid_changed>: Remove.
2778 <regcaches>: Remove.
2779 * regcache.c (regcache::regcaches): Rename to...
2780 (regcaches): ... this. Make static.
2781 (get_thread_arch_aspace_regcache): Update.
2782 (regcache::regcache_thread_ptid_changed): Rename to...
2783 (regcache_thread_ptid_changed): ... this. Update.
2784 (class regcache_access): Remove.
2785 (regcaches_test): Update.
2786 (_initialize_regcache): Update.
2787 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2788 <forward_list>.
2789
2790 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
2791
2792 * regcache.h (class regcache) <current_regcache>: Rename to...
2793 <regcaches>: ... this. Move doc here.
2794 * regcache.c (regcache::current_regcache) Rename to...
2795 (regcache::regcaches): ... this. Move doc to header.
2796 (get_thread_arch_aspace_regcache): Update.
2797 (regcache::regcache_thread_ptid_changed): Update.
2798 (registers_changed_ptid): Update.
2799 (class regcache_access) <current_regcache_size>: Rename to...
2800 <regcaches_size>: ... this.
2801 (current_regcache_test): Rename to...
2802 (regcaches_test): ... this.
2803 (_initialize_regcache): Update.
2804
2805 2020-08-06 Victor Collod <vcollod@nvidia.com>
2806
2807 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2808
2809 2020-08-05 Kevin Buettner <kevinb@redhat.com>
2810
2811 * corelow.c (core_target::build_file_mappings): Don't output
2812 null pathname in warning.
2813
2814 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2815
2816 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2817 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2818 gdb.dwarf2/dw2-single-line-discriminators.exp,
2819 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2820
2821 2020-08-05 Tom Tromey <tromey@adacore.com>
2822
2823 PR rust/26197:
2824 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2825 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2826 Fix off-by-one and type size errors in ordinary case.
2827
2828 2020-08-05 Tom de Vries <tdevries@suse.de>
2829
2830 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2831 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2832
2833 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
2834
2835 * frame.h (frame_id_p): Return bool.
2836 (frame_id_artificial_p): Return bool.
2837 (frame_id_eq): Return bool.
2838 (has_stack_frames): Return bool.
2839 (get_selected_frame): Fix typo in comment.
2840 (get_frame_pc_if_available): Return bool.
2841 (get_frame_address_in_block_if_available): Return bool.
2842 (get_frame_func_if_available): Return bool.
2843 (read_frame_register_unsigned): Return bool.
2844 (get_frame_register_bytes): Return bool.
2845 (safe_frame_unwind_memory): Return bool.
2846 (deprecated_frame_register_read): Return bool.
2847 (frame_unwinder_is): Return bool.
2848 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2849 bool.
2850 <this_id::p>: Likewise.
2851 <prev_p>: Likewise.
2852 (frame_stash_add): Return bool.
2853 (get_frame_id): Use bool.
2854 (frame_id_build_special) Use bool.
2855 (frame_id_build_unavailable_stack): Use bool.
2856 (frame_id_build): Use bool.
2857 (frame_id_p): Return bool, use true/false instead of 1/0.
2858 (frame_id_artificial_p): Likewise.
2859 (frame_id_eq): Likewise.
2860 (frame_id_inner): Likewise.
2861 (get_frame_func_if_available): Likewise.
2862 (read_frame_register_unsigned): Likewise.
2863 (deprecated_frame_register_read): Likewise.
2864 (get_frame_register_bytes): Likewise.
2865 (has_stack_frames): Likewise.
2866 (inside_main_func): Likewise.
2867 (inside_entry_func): Likewise.
2868 (get_frame_pc_if_available): Likewise.
2869 (get_frame_address_in_block_if_available): Likewise.
2870 (frame_unwinder_is): Likewise.
2871 (safe_frame_unwind_memory): Likewise.
2872 (frame_unwind_arch): Likewise.
2873
2874 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
2875
2876 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2877 type to cached_copy_status.
2878 (fprintf_frame): Adjust.
2879 (get_frame_func_if_available): Adjust.
2880 (frame_cleanup_after_sniffer): Adjust.
2881
2882 2020-08-04 Mark Wielaard <mark@klomp.org>
2883
2884 * MAINTAINERS (Write After Approval): Update email address.
2885
2886 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2887
2888 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2889 dynamic_prop::const_val.
2890
2891 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2892
2893 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2894 dynamic_prop::kind.
2895
2896 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2897
2898 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2899
2900 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2901
2902 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2903
2904 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
2905 Jose E. Marchesi <jose.marchesi@oracle.com>
2906
2907 * configure.tgt: Add entry for bpf-*-*.
2908 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2909 (ALLDEPFILES): Add bpf-tdep.c.
2910 * bpf-tdep.c: New file.
2911 * MAINTAINERS: Add bpf target and maintainer.
2912 * NEWS: Mention the support for the new target.
2913
2914 2020-08-04 Tom de Vries <tdevries@suse.de>
2915
2916 PR symtab/23270
2917 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2918 Error.
2919
2920 2020-08-03 John Baldwin <jhb@FreeBSD.org>
2921
2922 * syscalls/freebsd.xml: Regenerate.
2923
2924 2020-08-03 John Baldwin <jhb@FreeBSD.org>
2925
2926 * syscalls/update-freebsd.sh: Fix usage and year range.
2927
2928 2020-08-03 Tom de Vries <tdevries@suse.de>
2929
2930 PR symtab/26333
2931 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2932 DW_LNE_lo_user/DW_LNE_hi_user range.
2933
2934 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2935
2936 PR ada/26318
2937 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2938 kind.
2939
2940 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2941
2942 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2943
2944 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2945
2946 * breakpoint.c (set_breakpoint_condition): Update the condition
2947 expressions after checking that the input condition string parses
2948 successfully and does not contain junk at the end.
2949
2950 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2951
2952 * breakpoint.c (set_breakpoint_condition): Update the
2953 condition string after parsing the new condition successfully.
2954
2955 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2956
2957 * proc-api.c (_STRUCTURED_PROC): Don't define.
2958 * proc-events.c: Likewise.
2959 * proc-flags.c: Likewise.
2960 * proc-why.c: Likewise.
2961 * procfs.c: Likewise.
2962
2963 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2964 * configure, config.in: Regenerate.
2965
2966 2020-07-30 Tom de Vries <tdevries@suse.de>
2967
2968 PR build/26320
2969 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2970 m_red/m_green/m_blue in a union.
2971
2972 2020-07-29 Tom de Vries <tdevries@suse.de>
2973
2974 PR tdep/26280
2975 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2976
2977 2020-07-28 Tom Tromey <tromey@adacore.com>
2978
2979 PR symtab/26270:
2980 * symtab.h (find_pc_partial_function_sym): Declare.
2981 * cli/cli-cmds.c (disassemble_command): Use
2982 find_pc_partial_function_sym. Check asm_demangle.
2983 * blockframe.c (cache_pc_function_sym): New global.
2984 (cache_pc_function_name): Remove.
2985 (clear_pc_function_cache): Update.
2986 (find_pc_partial_function_sym): New function, from
2987 find_pc_partial_function.
2988 (find_pc_partial_function): Rewrite using
2989 find_pc_partial_function_sym.
2990
2991 2020-07-28 Tom Tromey <tromey@adacore.com>
2992
2993 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2994 help. Add usage.
2995
2996 2020-07-28 Tom Tromey <tromey@adacore.com>
2997
2998 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2999 <DW_OP_GNU_variable_value>: Cast to address type.
3000
3001 2020-07-28 Kamil Rytarowski <n54@gmx.com>
3002
3003 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
3004 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
3005 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
3006 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
3007 (nbsd_get_siginfo_type): New.
3008 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
3009 (_initialize_nbsd_tdep): New.
3010
3011 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3012
3013 PR binutils/26301
3014 * configure: Regenerated.
3015
3016 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3017
3018 PR binutils/26301
3019 * configure: Regenerated.
3020
3021 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3022
3023 * python/py-frame.c: Remove 'user-regs.h' include.
3024 (frapy_read_register): Rewrite to make use of
3025 gdbpy_parse_register_id.
3026 * python/py-registers.c (gdbpy_parse_register_id): New function,
3027 moved here from python/py-unwind.c. Updated the return type, and
3028 also accepts register descriptor objects.
3029 * python/py-unwind.c: Remove 'user-regs.h' include.
3030 (pyuw_parse_register_id): Moved to python/py-registers.c.
3031 (unwind_infopy_add_saved_register): Update to use
3032 gdbpy_parse_register_id.
3033 (pending_framepy_read_register): Likewise.
3034 * python/python-internal.h (gdbpy_parse_register_id): Declare.
3035
3036 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3037
3038 * python/py-registers.c: Add 'user-regs.h' include.
3039 (register_descriptor_iter_find): New function.
3040 (register_descriptor_iterator_object_methods): New static global
3041 methods array.
3042 (register_descriptor_iterator_object_type): Add pointer to methods
3043 array.
3044
3045 2020-07-27 John Baldwin <jhb@FreeBSD.org>
3046
3047 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
3048 for all architectures on FreeBSD 11.3 and later.
3049
3050 2020-07-27 Tom Tromey <tromey@adacore.com>
3051
3052 * gcore.h (load_corefile): Don't declare.
3053
3054 2020-07-27 Tom de Vries <tdevries@suse.de>
3055
3056 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
3057 * config.in: Regenerate.
3058 * configure: Regenerate.
3059
3060 2020-07-26 Eli Zaretskii <eliz@gnu.org>
3061
3062 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
3063 ws2tcpip.h. When checking whether socklen_t type is defined, use
3064 ws2tcpip.h if it is available and sys/socket.h isn't.
3065 * configure: Regenerate.
3066 * config.in: Regenerate.
3067
3068 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
3069
3070 PR fortran/23051
3071 PR fortran/26139
3072 * valops.c (value_ind): Pass address to
3073 readjust_indirect_value_type.
3074 * value.c (readjust_indirect_value_type): Make parameter
3075 non-const, and add extra address parameter. Resolve original type
3076 before using it.
3077 * value.h (readjust_indirect_value_type): Update function
3078 signature and comment.
3079
3080 2020-07-25 Tom de Vries <tdevries@suse.de>
3081
3082 PR symtab/26243
3083 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
3084 entries.
3085
3086 2020-07-24 Aaron Merey <amerey@redhat.com>
3087
3088 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
3089 * configure: Rebuild.
3090
3091 2020-07-23 Kevin Buettner <kevinb@redhat.com>
3092
3093 PR corefiles/26294
3094 * corelow.c (_initialize_corelow): Add period to help text
3095 for "maintenance print core-file-backed-mappings".
3096
3097 2020-07-23 Pedro Alves <pedro@palves.net>
3098
3099 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
3100 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
3101 meanwhile.
3102 * frame.c (frame_cache_generation, get_frame_cache_generation):
3103 New.
3104 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
3105 (get_prev_frame_if_no_cycle): On exception, don't touch
3106 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
3107 * frame.h (get_frame_cache_generation): Declare.
3108
3109 2020-07-23 Tom de Vries <tdevries@suse.de>
3110
3111 PR tui/26282
3112 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
3113 New default constructor.
3114
3115 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
3116
3117 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
3118 exclude non-statement entries.
3119
3120 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3121
3122 * NEWS (New commands): Mention new command
3123 "maintenance print core-file-backed-mappings".
3124
3125 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3126
3127 * corelow.c (gdbcmd.h): Include.
3128 (core_target::info_proc_mappings): New method.
3129 (get_current_core_target): New function.
3130 (maintenance_print_core_file_backed_mappings): New function.
3131 (_initialize_corelow): Add core-file-backed-mappings to
3132 "maint print" commands.
3133
3134 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3135
3136 * linux-tdep.c (dump_note_entry_p): New function.
3137 (linux_dump_mapping_p_ftype): New typedef.
3138 (linux_find_memory_regions_full): Add new parameter,
3139 should_dump_mapping_p.
3140 (linux_find_memory_regions): Adjust call to
3141 linux_find_memory_regions_full.
3142 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
3143 call to linux_find_memory_regions_full.
3144
3145 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3146
3147 * corelow.c (solist.h, unordered_map): Include.
3148 (class core_target): Add field m_core_file_mappings and
3149 method build_file_mappings.
3150 (core_target::core_target): Call build_file_mappings.
3151 (core_target::~core_target): Free memory associated with
3152 m_core_file_mappings.
3153 (core_target::build_file_mappings): New method.
3154 (core_target::xfer_partial): Use m_core_file_mappings
3155 for memory transfers.
3156 * linux-tdep.c (linux_read_core_file_mappings): New
3157 function.
3158 (linux_core_info_proc_mappings): Rewrite to use
3159 linux_read_core_file_mappings.
3160 (linux_init_abi): Register linux_read_core_file_mappings.
3161
3162 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3163
3164 * arch-utils.c (default_read_core_file_mappings): New function.
3165 * arch-utils.c (default_read_core_file_mappings): Declare.
3166 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
3167 * gdbarch.h, gdbarch.c: Regenerate.
3168
3169 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3170
3171 PR corefiles/25631
3172 * corelow.c (core_target:xfer_partial): Revise
3173 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
3174 case after first checking the stratum beneath the core
3175 target.
3176 (has_all_memory): Return true.
3177 * target.c (raw_memory_xfer_partial): Revise comment
3178 regarding use of has_all_memory.
3179
3180 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3181
3182 * exec.h (section_table_xfer_memory): Revise declaration,
3183 replacing section name parameter with an optional callback
3184 predicate.
3185 * exec.c (section_table_xfer_memory): Likewise.
3186 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
3187 of section_table_xfer_memory.
3188
3189 2020-07-22 Tom Tromey <tromey@adacore.com>
3190
3191 * mi/mi-cmd-stack.c (list_args_or_locals): Use
3192 lookup_symbol_search_name.
3193
3194 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3195
3196 * python/py-registers.c (gdbpy_register_object_data_init): Remove
3197 redundant local variable.
3198 (gdbpy_get_register_descriptor): Extract descriptor vector as a
3199 reference, not pointer, update code accordingly.
3200
3201 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3202 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3203
3204 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
3205 * jit.c (jit_breakpoint_re_set_internal): Use the
3206 `skip_jit_symbol_lookup` field.
3207
3208 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3209 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3210
3211 * jit.c (jit_read_descriptor): Define the descriptor address once,
3212 use twice.
3213 (jit_breakpoint_deleted): Move the declaration of the loop variable
3214 `iter` into the loop header.
3215 (jit_breakpoint_re_set_internal): Move the declaration of the local
3216 variable `objf_data` to the first point of definition.
3217 (jit_event_handler): Move the declaration of local variables
3218 `code_entry`, `entry_addr`, and `objf` to their first point of use.
3219 Rename `objf` to `jited`.
3220
3221 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3222
3223 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
3224 Remove.
3225 * jit.c (get_jiter_objfile_data): Update.
3226
3227 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3228 Simon Marchi <simon.marchi@polymtl.ca>
3229
3230 * jit.c (struct jit_program_space_data): Remove.
3231 (jit_program_space_key): Remove.
3232 (jiter_objfile_data::~jiter_objfile_data): Remove program space
3233 stuff.
3234 (get_jit_program_space_data): Remove.
3235 (jit_breakpoint_deleted): Iterate on all of the program space's
3236 objfiles.
3237 (jit_inferior_init): Likewise.
3238 (jit_breakpoint_re_set_internal): Likewise. Also change return
3239 type to void.
3240 (jit_breakpoint_re_set): Pass current_program_space to
3241 jit_breakpoint_re_set_internal.
3242
3243 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3244
3245 * jit.h (struct jiter_objfile_data) <cached_code_address,
3246 jit_breakpoint>: Move to here from ...
3247 * jit.c (jit_program_space_data): ... here.
3248 (jiter_objfile_data::~jiter_objfile_data): Update.
3249 (jit_breakpoint_deleted): Update.
3250 (jit_breakpoint_re_set_internal): Update.
3251
3252 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3253
3254 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
3255 checks.
3256 (jit_read_descriptor): Remove NULL check.
3257 (jit_event_handler): Add an assertion.
3258
3259 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3260
3261 * jit.h (struct jit_objfile_data): Split into...
3262 (struct jiter_objfile_data): ... this ...
3263 (struct jited_objfile_data): ... and this.
3264 * objfiles.h (struct objfile) <jit_data>: Remove.
3265 <jiter_data, jited_data>: New fields.
3266 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
3267 (jiter_objfile_data::~jiter_objfile_data): ... this.
3268 (get_jit_objfile_data): Rename to ...
3269 (get_jiter_objfile_data): ... this.
3270 (add_objfile_entry): Update.
3271 (jit_read_descriptor): Use get_jiter_objfile_data.
3272 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
3273 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
3274 (jit_inferior_exit_hook): Use objfile's jited_data field.
3275
3276 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3277
3278 * jit.h: Forward-declare `struct minimal_symbol`.
3279 (struct jit_objfile_data): Migrate to here from jit.c; also add a
3280 constructor, destructor, and an objfile* field.
3281 * jit.c (jit_objfile_data): Remove.
3282 (struct jit_objfile_data): Migrate from here to jit.h.
3283 (jit_objfile_data::~jit_objfile_data): New destructor
3284 implementation with code moved from free_objfile_data.
3285 (free_objfile_data): Delete.
3286 (get_jit_objfile_data): Update to use the jit_data field of objfile.
3287 (jit_find_objf_with_entry_addr): Ditto.
3288 (jit_inferior_exit_hook): Ditto.
3289 (_initialize_jit): Remove the call to
3290 register_objfile_data_with_cleanup.
3291 * objfiles.h (struct objfile) <jit_data>: New field.
3292
3293 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3294
3295 * jit.h: Forward-declare `struct objfile`.
3296 (jit_event_handler): Add a second parameter, the JITer objfile.
3297 * jit.c (jit_read_descriptor): Change the signature to take the
3298 JITer objfile as an argument instead of the jit_program_space_data.
3299 (jit_inferior_init): Update the call to jit_read_descriptor.
3300 (jit_event_handler): Use the new JITer objfile argument when calling
3301 jit_read_descriptor.
3302 * breakpoint.c (handle_jit_event): Update the call to
3303 jit_event_handler to pass the JITer objfile.
3304
3305 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3306
3307 * gdbarch.c: Regenerate.
3308 * gdbarch.h: Regenerate.
3309 * gdbarch.sh (handle_segmentation_fault): Remove method.
3310 * infrun.c (handle_segmentation_fault): Remove.
3311 (print_signal_received_reason): Remove call to
3312 handle_segmentation_fault.
3313
3314 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3315
3316 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3317 Rename to sparc64_linux_report_signal_info and add siggnal
3318 argument.
3319 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
3320 instead of sparc64_linux_handle_segmentation_fault.
3321
3322 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3323
3324 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
3325 i386_linux_report_signal_info instead of
3326 i386_linux_handle_segmentation_fault.
3327 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
3328 to i386_linux_report_signal_info and add siggnal argument.
3329 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
3330 of i386_linux_handle_segmentation_fault.
3331 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
3332 to i386_linux_report_signal_info and add siggnal argument.
3333
3334 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3335
3336 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
3337 hook if present.
3338
3339 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3340
3341 * gdbarch.c: Regenerate.
3342 * gdbarch.h: Regenerate.
3343 * gdbarch.sh (report_signal_info): New method.
3344 * infrun.c (print_signal_received_reason): Invoke gdbarch
3345 report_signal_info hook if present.
3346
3347 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3348
3349 * python/py-registers.c : Add 'unordered_map' include.
3350 (gdbpy_new_reggroup): Renamed to...
3351 (gdbpy_get_reggroup): ...this. Update to only create register
3352 group descriptors when needed.
3353 (gdbpy_reggroup_iter_next): Update.
3354
3355 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3356
3357 * python/py-registers.c (gdbpy_register_object_data): New static
3358 global.
3359 (gdbpy_register_object_data_init): New function.
3360 (gdbpy_new_register_descriptor): Renamed to...
3361 (gdbpy_get_register_descriptor): ...this, and update to reuse
3362 existing register descriptors where possible.
3363 (gdbpy_register_descriptor_iter_next): Update.
3364 (gdbpy_initialize_registers): Register new gdbarch data.
3365
3366 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
3367
3368 * linux-nat.c (stopped_pids): Make static.
3369
3370 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3371
3372 PR ada/26235
3373 * gdbtypes.c (ada_discrete_type_low_bound,
3374 ada_discrete_type_high_bound): Handle undefined bounds.
3375
3376 2020-07-21 Kamil Rytarowski <n54@gmx.com>
3377
3378 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
3379 declaration.
3380 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
3381 function.
3382
3383 2020-07-20 John Baldwin <jhb@FreeBSD.org>
3384
3385 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
3386 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
3387 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
3388 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
3389 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
3390 method.
3391
3392 2020-07-20 Ludovic Courtès <ludo@gnu.org>
3393
3394 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
3395 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
3396 which are deprecated in Guile 3.0.
3397 * configure.ac (try_guile_versions): Add "guile-3.0".
3398 * configure (try_guile_versions): Regenerate.
3399 * NEWS: Update entry.
3400
3401 2020-07-20 Ludovic Courtès <ludo@gnu.org>
3402 Doug Evans <dje@google.com>
3403
3404 PR gdb/21104
3405 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
3406 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
3407 USING_GUILE_BEFORE_2_2.
3408 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
3409 Change type to 'scm_t_port_type *'.
3410 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
3411 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
3412 parameter and honor it. Update callers.
3413 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
3414 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
3415 functions.
3416 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
3417 USING_GUILE_BEFORE_2_2.
3418 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
3419 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
3420 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
3421 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
3422 and 'SCM_PORT_TYPE'.
3423 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
3424 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
3425 (gdbscm_memory_port_read, gdbscm_memory_port_write)
3426 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
3427 [!USING_GUILE_BEFORE_2_2]: New functions.
3428 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
3429 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
3430 'gdbscm_memory_port_read'.
3431 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
3432 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
3433 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
3434 function.
3435 (ioscm_init_memory_port): Remove.
3436 (ioscm_init_memory_port_stream): New function
3437 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
3438 function.
3439 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3440 Return scm_from_uint (0).
3441 (gdbscm_set_memory_port_read_buffer_size_x)
3442 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3443 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3444 Return scm_from_uint (0).
3445 (gdbscm_set_memory_port_write_buffer_size_x)
3446 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3447 * configure.ac (try_guile_versions): Add "guile-2.2".
3448 * configure: Regenerate.
3449 * NEWS: Add entry.
3450
3451 2020-07-18 Tom Tromey <tom@tromey.com>
3452
3453 * linux-nat.c (linux_multi_process): Remove.
3454 (linux_nat_target::supports_multi_process): Return true.
3455
3456 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3457
3458 * arch/riscv.c (riscv_tdesc_cache): Change map type.
3459 (riscv_lookup_target_description): Return pointer out of
3460 unique_ptr.
3461 * target-descriptions.c (allocate_target_description): Add
3462 comment.
3463 (target_desc_deleter::operator()): Likewise.
3464 * target-descriptions.h (struct target_desc_deleter): Moved to
3465 gdbsupport/tdesc.h.
3466 (target_desc_up): Likewise.
3467
3468 2020-07-17 Tom Tromey <tromey@adacore.com>
3469
3470 * linux-nat.c (linux_nat_target::supports_non_stop)
3471 (linux_nat_target::always_non_stop_p): Use "true".
3472 (linux_nat_target::supports_disable_randomization): Use "true" and
3473 "false".
3474
3475 2020-07-16 Caroline Tice <cmtice@google.com>
3476
3477 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3478 (RNGLIST_HEADER_SIZE64): New constant definition.
3479 (struct dwop_section_names): Add rnglists_dwo.
3480 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3481 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3482 (struct dwo_sections): Add rnglists field.
3483 (read_attribut_reprocess): Add tag parameter.
3484 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3485 (cu_debug_rnglists_section): New function (decl & definition).
3486 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3487 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3488 die whose range is being checked; get rnglist section from
3489 cu_debug_rnglists_section, to get from either objfile or dwo file as
3490 appropriate. Add cases for DW_RLE_base_addressx,
3491 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3492 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3493 test inside if-condition and updating complaint message.
3494 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3495 dwarf2_rnglists_process.
3496 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3497 dwarf2_ranges_process.
3498 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3499 need_ranges_base and update comment appropriately. Also pass die tag
3500 to dwarf2_ranges_read.
3501 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3502 need_ranges_base and update comment appropriately. Also pass die tag
3503 to dwarf2_ranges_process.
3504 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3505 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3506 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3507 need_ranges_base and update comment appropriately. Also pass die tag
3508 to read_attribute_reprocess and dwarf2_ranges_read.
3509 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3510 and update function comment appropriately.
3511 (read_loclist_index): Call read_loclists_rnglists_header instead of
3512 read_loclist_header.
3513 (read_rnglist_index): New function.
3514 (read_attribute_reprocess): Add tag parameter. Add code for
3515 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3516 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3517
3518 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3519
3520 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3521 being resolved.
3522
3523 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3524
3525 * arch-utils.c (show_architecture): Update formatting of messages.
3526
3527 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3528
3529 * gdbtypes.h (struct type) <bounds>: Handle array and string
3530 types.
3531 * ada-lang.c (assign_aggregate): Use type::bounds on
3532 array/string type.
3533 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3534 * c-varobj.c (c_number_of_children): Likewise.
3535 (c_describe_child): Likewise.
3536 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3537 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3538 (f_type_print_base): Likewise.
3539 * f-valprint.c (f77_array_offset_tbl): Likewise.
3540 (f77_get_upperbound): Likewise.
3541 (f77_print_array_1): Likewise.
3542 * guile/scm-type.c (gdbscm_type_range): Likewise.
3543 * m2-typeprint.c (m2_array): Likewise.
3544 (m2_is_long_set_of_type): Likewise.
3545 * m2-valprint.c (get_long_set_bounds): Likewise.
3546 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3547 * python/py-type.c (typy_range): Likewise.
3548 * rust-lang.c (rust_internal_print_type): Likewise.
3549 * type-stack.c (type_stack::follow_types): Likewise.
3550 * valarith.c (value_subscripted_rvalue): Likewise.
3551 * valops.c (value_cast): Likewise.
3552
3553 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3554
3555 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3556 callers to use the equivalent accessor methods.
3557
3558 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3559
3560 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3561 (struct type) <bit_stride>: New method.
3562 (TYPE_BIT_STRIDE): Remove.
3563 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3564
3565 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3566
3567 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3568 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3569 callers to use the equivalent accessor methods instead.
3570
3571 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3572
3573 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3574 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3575 callers to use the equivalent accessor methods instead.
3576
3577 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3578
3579 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3580 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3581 to use dynamic_prop::kind.
3582
3583 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3584
3585 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3586 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3587 to get the bound property's kind and check against
3588 PROP_UNDEFINED.
3589
3590 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3591
3592 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3593 all callers to use type::range_bounds followed by
3594 dynamic_prop::{low,high}.
3595
3596 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3597
3598 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3599 const_val, set_const_val, baton, set_locexpr, set_loclist,
3600 set_addr_offset, variant_parts, set_variant_parts,
3601 original_type, set_original_type>: New methods.
3602 <kind>: Rename to...
3603 <m_kind>: ... this. Update all users to use the new methods
3604 instead.
3605 <data>: Rename to...
3606 <m_data>: ... this. Update all users to use the new methods
3607 instead.
3608
3609 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3610
3611 * gdbtypes.c (get_discrete_bounds): Return failure if
3612 the range type's bounds are not both defined and constant
3613 values.
3614 (get_array_bounds): Update comment. Remove undefined bound check.
3615
3616 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3617
3618 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3619 the type::bounds method directly.
3620
3621 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3622
3623 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3624 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3625 are used to set the range type's bounds to use set_bounds.
3626
3627 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3628
3629 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3630
3631 2020-07-10 Pedro Alves <pedro@palves.net>
3632
3633 * gdbthread.h (inferior_ref): Define.
3634 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3635 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3636 * thread.c
3637 (scoped_restore_current_thread::restore):
3638 Adjust to gdb::ref_ptr.
3639 (scoped_restore_current_thread::~scoped_restore_current_thread):
3640 Remove manual decref handling.
3641 (scoped_restore_current_thread::scoped_restore_current_thread):
3642 Adjust to use
3643 inferior_ref::new_reference/thread_info_ref::new_reference.
3644 Incref the thread before calling get_frame_id instead of after.
3645 Let TARGET_CLOSE_ERROR propagate.
3646
3647 2020-07-10 Pedro Alves <pedro@palves.net>
3648
3649 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3650 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3651 NOT_AVAILABLE_ERROR.
3652 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3653 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3654
3655 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3656 Pedro Alves <pedro@palves.net>
3657
3658 PR gdb/26199
3659 * infrun.c (threads_are_resumed_pending_p): Delete.
3660 (do_target_wait): Remove threads_are_executing and
3661 threads_are_resumed_pending_p checks from the inferior_matches
3662 lambda. Update comments.
3663
3664 2020-07-10 Pedro Alves <pedro@palves.net>
3665
3666 PR gdb/26199
3667 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3668 executing threads.
3669
3670 2020-07-10 Pedro Alves <pedro@palves.net>
3671
3672 PR gdb/26199
3673 * infrun.c (handle_no_resumed): Handle multiple targets.
3674
3675 2020-07-10 Pedro Alves <pedro@palves.net>
3676
3677 PR gdb/26199
3678 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3679 target_is_async_p.
3680
3681 2020-07-10 Pedro Alves <pedro@palves.net>
3682
3683 PR gdb/26199
3684 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3685 threads, not all threads.
3686
3687 2020-07-10 Pedro Alves <pedro@palves.net>
3688
3689 PR gdb/26199
3690 * remote.c (remote_target::open_1): Pass remote target pointer as
3691 data to create_async_event_handler.
3692 (remote_async_inferior_event_handler): Mark async event handler
3693 before returning if the remote target still has either pending
3694 events or unacknowledged notifications.
3695
3696 2020-07-10 John Baldwin <jhb@FreeBSD.org>
3697
3698 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3699 declaration.
3700 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3701 function.
3702
3703 2020-07-09 John Baldwin <jhb@FreeBSD.org>
3704
3705 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3706 inferior_ptid.
3707
3708 2020-07-09 John Baldwin <jhb@FreeBSD.org>
3709
3710 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3711 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3712 AT_FREEBSD_PS_STRINGS.
3713
3714 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
3715
3716 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3717 of debugfile path on Windows.
3718
3719 2020-07-08 John Baldwin <jhb@FreeBSD.org>
3720
3721 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3722 argument to 'data'.
3723
3724 2020-07-08 Tom Tromey <tromey@adacore.com>
3725
3726 * ada-lang.c (ada_exception_message_1): Use read_memory.
3727
3728 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3729
3730 PR python/22748
3731 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3732 special handling for inline frames.
3733 * findvar.c (value_of_register_lazy): Skip inline frames when
3734 creating lazy register values.
3735 * frame.c (frame_id_computed_p): Delete definition.
3736 * frame.h (frame_id_computed_p): Delete declaration.
3737
3738 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3739
3740 * NEWS: Mention additions to Python API.
3741 * python/py-arch.c (archpy_register_groups): New function.
3742 (arch_object_methods): Add 'register_groups' method.
3743 * python/py-registers.c (reggroup_iterator_object): New struct.
3744 (reggroup_object): New struct.
3745 (gdbpy_new_reggroup): New function.
3746 (gdbpy_reggroup_to_string): New function.
3747 (gdbpy_reggroup_name): New function.
3748 (gdbpy_reggroup_iter): New function.
3749 (gdbpy_reggroup_iter_next): New function.
3750 (gdbpy_new_reggroup_iterator): New function
3751 (gdbpy_initialize_registers): Register new types.
3752 (reggroup_iterator_object_type): Define new Python type.
3753 (gdbpy_reggroup_getset): New static global.
3754 (reggroup_object_type): Define new Python type.
3755 * python/python-internal.h
3756
3757 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3758
3759 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3760 * python/py-arch.c (archpy_registers): New function.
3761 (arch_object_methods): Add 'registers' method.
3762 * python/py-registers.c: New file.
3763 * python/python-internal.h
3764 (gdbpy_new_register_descriptor_iterator): Declare.
3765 (gdbpy_initialize_registers): Declare.
3766 * python/python.c (do_start_initialization): Call
3767 gdbpy_initialize_registers.
3768 * NEWS: Mention additions to the Python API.
3769
3770 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3771
3772 * NEWS: Mention new Python API method.
3773 * python/py-unwind.c (pending_framepy_architecture): New function.
3774 (pending_frame_object_methods): Add architecture method.
3775
3776 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3777
3778 * gdbarch.c: Regenerate.
3779 * gdbarch.h: Regenerate.
3780 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3781 (gdbarch_data): Use internal_error for the case where
3782 deprecated_set_gdbarch_data was originally needed.
3783 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3784 and use passed in obstack.
3785 (libunwind_frame_set_descr): Should no longer get back NULL from
3786 gdbarch_data.
3787 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3788 type.
3789 * user-regs.c (user_regs_init): Update parameters, and use passed
3790 in obstack.
3791 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3792 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3793
3794 2020-07-06 Tom de Vries <tdevries@suse.de>
3795
3796 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3797 End-Of-Sequence in lte_is_less_than.
3798 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3799 "gdb: Don't reorder line table entries too much when sorting".
3800
3801 2020-07-06 Tom de Vries <tdevries@suse.de>
3802
3803 PR tui/26205
3804 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3805
3806 2020-07-05 Tom de Vries <tdevries@suse.de>
3807
3808 PR build/26187
3809 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3810 std::uncaught_exceptions instead of deprecated
3811 std::uncaught_exception.
3812
3813 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3814
3815 * macroexp.h (macro_stringify): Return
3816 gdb::unique_xmalloc_ptr<char>.
3817 * macroexp.c (macro_stringify): Likewise.
3818 * macrotab.c (fixup_definition): Update.
3819
3820 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3821
3822 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3823 (lex_one_token): Update.
3824 * macroexp.c (struct macro_buffer) <release>: Return
3825 gdb::unique_xmalloc_ptr<char>.
3826 (macro_stringify): Update.
3827 (macro_expand): Update.
3828 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3829 * macroexp.h (macro_expand_next): Likewise.
3830
3831 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
3832
3833 * macroexp.h (macro_lookup_ftype): Remove.
3834 (macro_expand, macro_expand_once, macro_expand_next): Remove
3835 lookup function parameters, add scope parameter.
3836 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3837 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3838 * macroscope.h (standard_macro_lookup): Change parameter type
3839 to macro_scope.
3840 * macroscope.c (standard_macro_lookup): Likewise.
3841 * c-exp.y (lex_one_token): Update.
3842 * macrocmd.c (macro_expand_command): Likewise.
3843 (macro_expand_once_command): Likewise.
3844
3845 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3846
3847 * inf-loop.c (inferior_event_handler): Remove client_data param.
3848 * inf-loop.h (inferior_event_handler): Likewise.
3849 * infcmd.c (step_1): Adjust.
3850 * infrun.c (proceed): Adjust.
3851 (fetch_inferior_event): Remove client_data param.
3852 (infrun_async_inferior_event_handler): Adjust.
3853 * infrun.h (fetch_inferior_event): Remove `void *` param.
3854 * linux-nat.c (handle_target_event): Adjust.
3855 * record-btrace.c (record_btrace_handle_async_inferior_event):
3856 Adjust.
3857 * record-full.c (record_full_async_inferior_event_handler):
3858 Adjust.
3859 * remote.c (remote_async_inferior_event_handler): Adjust.
3860
3861 2020-07-01 Tom Tromey <tom@tromey.com>
3862
3863 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3864 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3865
3866 2020-07-01 Tom Tromey <tom@tromey.com>
3867
3868 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3869 tui_gen_win_info.
3870 (tui_win_info::make_window): Merge with
3871 tui_gen_win_info::make_window.
3872 (tui_win_info::make_visible): Move from tui_gen_win_info.
3873 * tui/tui-win.c (tui_win_info::max_width): Move from
3874 tui_gen_win_info.
3875 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3876 type.
3877 <window_factory>: Likewise.
3878 * tui/tui-layout.c (tui_win_info::resize): Move from
3879 tui_gen_win_info.
3880 (make_standard_window): Change return type.
3881 (get_locator_window, tui_get_window_by_name): Likewise.
3882 (tui_layout_window::apply): Remove a cast.
3883 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3884 (struct tui_win_info): Merge with tui_gen_win_info.
3885 (struct tui_gen_win_info): Remove.
3886
3887 2020-07-01 Tom Tromey <tom@tromey.com>
3888
3889 * tui/tui-stack.h (struct tui_locator_window): Derive from
3890 tui_win_info.
3891 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3892 <can_box>: New method.
3893
3894 2020-07-01 Tom Tromey <tom@tromey.com>
3895
3896 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3897
3898 2020-07-01 Tom Tromey <tom@tromey.com>
3899
3900 * tui/tui-regs.c (tui_data_window::display_registers_from)
3901 (tui_data_window::display_registers_from)
3902 (tui_data_window::first_data_item_displayed)
3903 (tui_data_window::delete_data_content_windows): Update.
3904 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3905 Remove.
3906 (tui_data_window::check_register_values): Update.
3907 (tui_data_item_window::rerender): Add parameters. Update.
3908 (tui_data_item_window::refresh_window): Remove.
3909 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3910 virtual.
3911 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3912 tui_gen_win_info.
3913 <refresh_window, max_height, min_height>: Remove.
3914 <rerender>: Add parameters.
3915 <x, y, visible>: New members.
3916 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3917 <m_item_width>: New member.
3918
3919 2020-07-01 Tom Tromey <tom@tromey.com>
3920
3921 * tui/tui-regs.c (tui_data_window::show_register_group)
3922 (tui_data_window::check_register_values): Update.
3923 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3924 from item_no.
3925
3926 2020-07-01 Tom Tromey <tom@tromey.com>
3927
3928 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3929 useless "if".
3930
3931 2020-07-01 Tom Tromey <tom@tromey.com>
3932
3933 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3934 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3935
3936 2020-07-01 Tom Tromey <tom@tromey.com>
3937
3938 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3939 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3940 (struct tui_line_or_address): Move from tui-data.h.
3941 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3942 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3943 (tui_cmd_window, tui_source_window_base, tui_source_window)
3944 (tui_disasm_window): Don't declare.
3945 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3946 to tui-winsource.h.
3947 (SINGLE_KEY): Move to tui-stack.c.
3948
3949 2020-07-01 Tom Tromey <tom@tromey.com>
3950
3951 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3952 std::string.
3953 * tui/tui-regs.c (class tab_expansion_file): New.
3954 (tab_expansion_file::write): New method.
3955 (tui_register_format): Change return type. Use
3956 tab_expansion_file.
3957 (tui_get_register, tui_data_window::display_registers_from)
3958 (tui_data_item_window::rerender): Update.
3959 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3960 * tui/tui-io.c (tui_expand_tabs): Remove.
3961
3962 2020-07-01 Tom Tromey <tom@tromey.com>
3963
3964 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3965
3966 2020-07-01 Fangrui Song <maskray@google.com>
3967
3968 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3969
3970 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3971
3972 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3973 forms for DW_AT_associated and DW_AT_allocated attributes,
3974 which is already checked in function attr_to_dynamic_prop.
3975
3976 2020-06-30 Tom Tromey <tromey@adacore.com>
3977
3978 * dwarf2/read.c (quirk_rust_enum): Correctly call
3979 alloc_rust_variant for default-less enum.
3980
3981 2020-06-30 Tom Tromey <tromey@adacore.com>
3982
3983 PR build/26183:
3984 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3985 gdb::to_string.
3986
3987 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
3988
3989 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3990 * gdbarch.h: Re-generate.
3991
3992 2020-06-28 Tom Tromey <tom@tromey.com>
3993
3994 * command.h (cmd_types): Remove.
3995 (cmd_type): Don't declare.
3996 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3997 typedef.
3998 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3999 * cli/cli-decode.c (cmd_type): Remove.
4000
4001 2020-06-27 Pedro Alves <palves@redhat.com>
4002
4003 * fork-child.c (prefork_hook): Adjust.
4004 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
4005 Delete.
4006 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
4007 * inferior.c (inferior::set_tty, inferior::tty): New methods.
4008 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
4009 Remove declarations.
4010 (struct inferior) <set_tty, tty>: New methods.
4011 (struct inferior) <terminal>: Rename to ...
4012 (struct inferior) <m_terminal>: ... this and make private.
4013 * main.c (captured_main_1): Adjust.
4014 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
4015 (mi_cmd_inferior_tty_show): Adjust.
4016 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
4017 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
4018
4019 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
4020
4021 * configure.ac: Add --enable-libctf: handle --disable-static
4022 properly.
4023 * acinclude.m4: sinclude ../config/enable.m4.
4024 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
4025 (LIBCTF): Substitute in.
4026 (CTF_DEPS): New, likewise.
4027 (CLIBS): libctf needs symbols from libbfd: move earlier.
4028 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
4029 flags.
4030 * ctfread.c: Surround in ENABLE_LIBCTF.
4031 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
4032 * configure: Regenerate.
4033 * config.in: Likewise.
4034
4035 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
4036
4037 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
4038
4039 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
4040
4041 * inferior.h (struct inferior) <terminal>: Change type to
4042 gdb::unique_xmalloc_ptr<char>.
4043 * inferior.c (inferior::~inferior): Don't free inf->terminal.
4044 * infcmd.c (set_inferior_io_terminal): Don't free terminal
4045 field, adjust to unique pointer.
4046 (get_inferior_io_terminal): Adjust to unique pointer.
4047
4048 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4049
4050 * riscv-tdep.c (riscv_print_registers_info): Loop over all
4051 registers, not just the known core set of registers.
4052
4053 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4054
4055 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
4056 fflags, frm, and fcsr registers.
4057 (riscv_register_reggroup_p): Remove unknown CSRs from save and
4058 restore groups.
4059 (riscv_tdesc_unknown_reg): New function.
4060 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
4061 tdesc_use_registers.
4062 * riscv-tdep.h (struct gdbarch_tdep): Add
4063 unknown_csrs_first_regnum, unknown_csrs_count,
4064 duplicate_fflags_regnum, duplicate_frm_regnum, and
4065 duplicate_fcsr_regnum fields.
4066
4067 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4068
4069 * target-descriptions.c (tdesc_use_registers): Add new parameter a
4070 callback, use the callback (when not null) to help number unknown
4071 registers.
4072 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
4073 (tdesc_use_registers): Add extra parameter to declaration.
4074
4075 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4076
4077 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
4078 in the file.
4079 (class riscv_pending_register_alias): Likewise.
4080 (riscv_register_feature::register_info): Change 'required_p' field
4081 to 'required', and change its type. Add 'check' member function.
4082 (riscv_register_feature::register_info::check): Define new member
4083 function.
4084 (riscv_xreg_feature): Change initialisation of 'required' field.
4085 (riscv_freg_feature): Likewise.
4086 (riscv_virtual_feature): Likewise.
4087 (riscv_csr_feature): Likewise.
4088 (riscv_check_tdesc_feature): Take extra parameter, the csr
4089 tdesc_feature, rewrite the function to use the new
4090 riscv_register_feature::register_info::check function.
4091 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
4092
4093 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4094
4095 * features/Makefile: Remove all references to the deleted files
4096 below.
4097 * features/riscv/32bit-csr.c: Deleted.
4098 * features/riscv/32bit-csr.xml: Deleted.
4099 * features/riscv/64bit-csr.c: Deleted.
4100 * features/riscv/64bit-csr.xml: Deleted.
4101 * features/riscv/rebuild-csr-xml.sh: Deleted.
4102
4103 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4104
4105 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
4106 whitespace error for declaration of names member variable.
4107 (struct riscv_register_feature): Add new prefer_first_name member
4108 variable, and fix whitespace error in declaration of registers.
4109 (riscv_xreg_feature): Initialize prefer_first_name field.
4110 (riscv_freg_feature): Likewise.
4111 (riscv_virtual_feature): Likewise.
4112 (riscv_csr_feature): Likewise.
4113 (riscv_register_name): Expand on comments. Remove register name
4114 modifications for CSR and virtual registers.
4115
4116 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4117
4118 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
4119 errors.
4120
4121 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4122
4123 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
4124 riscv-opc.h.
4125 (class riscv_pending_register_alias): New class.
4126 (riscv_check_tdesc_feature): Take vector of pending aliases and
4127 populate it as appropriate.
4128 (riscv_setup_register_aliases): Delete.
4129 (riscv_gdbarch_init): Create vector of pending aliases and pass it
4130 to riscv_check_tdesc_feature in all cases. Use the vector to
4131 create the register aliases.
4132
4133 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4134
4135 * sol2-tdep.c (sol2_static_transform_name): Remove.
4136 (sol2_init_abi): Don't register it.
4137 * gdbarch.sh (static_transform_name): Remove.
4138 * gdbarch.c, gdbarch.h: Regenerate.
4139
4140 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
4141 gdbarch_static_transform_name.
4142 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
4143 * stabsread.c (define_symbol) <'X'>: Remove.
4144 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
4145 handling.
4146 <'V'>: Likewise.
4147 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
4148 <'S'>: Remove call to gdbarch_static_transform_name.
4149
4150 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4151
4152 * procfs.c (procfs_pre_trace): New function.
4153 (procfs_target::create_inferior): Pass it to fork_inferior.
4154
4155 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4156
4157 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
4158 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
4159 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
4160 sol2-tdep.o, sparc-sol2-tdep.o.
4161 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
4162 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
4163 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
4164 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
4165
4166 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4167
4168 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
4169 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
4170 Call sol2_init_abi.
4171 Remove calls to set_gdbarch_skip_solib_resolver,
4172 set_gdbarch_core_pid_to_str.
4173 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
4174 (i386_sol2_static_transform_name): Remove.
4175 (i386_sol2_init_abi): Call sol2_init_abi.
4176 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4177 set_gdbarch_static_transform_name,
4178 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4179 Use sol2_sigtramp_p.
4180 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
4181 (sol2_sigtramp_p): New function.
4182 (sol2_static_transform_name): New function.
4183 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
4184 (sol2_init_abi): New function.
4185 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
4186 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
4187 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
4188 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
4189 (sparc_sol2_static_transform_name): Remove.
4190 (sparc32_sol2_init_abi): Call sol2_init_abi.
4191 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4192 set_gdbarch_static_transform_name,
4193 set_gdbarch_skip_solib_resolver,
4194 set_gdbarch_core_pid_to_str.
4195 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
4196 (sparc_sol2_static_transform_name): Remove
4197 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
4198 call sol2_sigtramp_p.
4199 (sparc64_sol2_init_abi): Call sol2_init_abi.
4200 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4201 set_gdbarch_static_transform_name,
4202 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4203
4204 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4205
4206 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
4207 * exec.c (validate_exec_file): If from_tty, set both
4208 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
4209 * symfile.c (symbol_file_add_with_addrs): if always_confirm
4210 and from_tty, unconditionally ask a confirmation.
4211
4212 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4213
4214 * target-descriptions.c (tdesc_architecture_name): Protect against
4215 NULL pointer dereference.
4216 (maint_print_xml_tdesc_cmd): New function.
4217 (_initialize_target_descriptions): Register new 'maint print
4218 xml-tdesc' command and give it the filename completer.
4219 * NEWS: Mention new 'maint print xml-tdesc' command.
4220
4221 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4222
4223 * target-descriptions.c (class tdesc_compatible_info): New class.
4224 (struct target_desc): Change type of compatible vector.
4225 (tdesc_compatible_p): Update for change in type of
4226 target_desc::compatible.
4227 (tdesc_compatible_info_list): New function.
4228 (tdesc_compatible_info_arch_name): New function.
4229 (tdesc_add_compatible): Update for change in type of
4230 target_desc::compatible.
4231 (print_c_tdesc::visit_pre): Likewise.
4232
4233 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4234
4235 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
4236 whitespace to underscore.
4237 (maint_print_c_tdesc_cmd): Use fake filename for target
4238 descriptions that came from the target.
4239 (_initialize_target_descriptions): Add filename command completion
4240 for 'maint print c-tdesc'.
4241
4242 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
4243
4244 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
4245 lines.
4246
4247 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
4248
4249 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
4250 lines.
4251 (dwarf2_find_location_expression): Likewise.
4252 (call_site_parameter_matches): Likewise.
4253 (dwarf2_compile_expr_to_ax): Likewise.
4254 (disassemble_dwarf_expression): Likewise.
4255 (loclist_describe_location): Likewise.
4256
4257 2020-06-23 Pedro Alves <palves@redhat.com>
4258
4259 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
4260 progspace-and-thread.h. Include scoped-mock-context.h instead.
4261 (register_to_value_test): Use scoped_mock_context.
4262 * regcache.c: Include "scoped-mock-context.h".
4263 (cooked_read_test): Don't error out if a target is already pushed.
4264 Use scoped_mock_context. Adjust.
4265 * scoped-mock-context.h: New file.
4266
4267 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4268
4269 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
4270 initializer.
4271 (ada_language::is_string_type_p): New member function.
4272 * c-lang.c (c_language_data): Delete la_is_string_type_p
4273 initializer.
4274 (cplus_language_data): Likewise.
4275 (asm_language_data): Likewise.
4276 (minimal_language_data): Likewise.
4277 * d-lang.c (d_language_data): Likewise.
4278 * f-lang.c (f_is_string_type_p): Delete function, implementation
4279 moved to f_language::is_string_type_p.
4280 (f_language_data): Delete la_is_string_type_p initializer.
4281 (f_language::is_string_type_p): New member function,
4282 implementation from f_is_string_type_p.
4283 * go-lang.c (go_is_string_type_p): Delete function, implementation
4284 moved to go_language::is_string_type_p.
4285 (go_language_data): Delete la_is_string_type_p initializer.
4286 (go_language::is_string_type_p): New member function,
4287 implementation from go_is_string_type_p.
4288 * language.c (language_defn::is_string_type_p): Define new member
4289 function.
4290 (default_is_string_type_p): Make static, add comment copied from
4291 header file.
4292 (unknown_language_data): Delete la_is_string_type_p initializer.
4293 (unknown_language::is_string_type_p): New member function.
4294 (auto_language_data): Delete la_is_string_type_p initializer.
4295 (auto_language::is_string_type_p): New member function.
4296 * language.h (language_data): Delete la_is_string_type_p field.
4297 (language_defn::is_string_type_p): Declare new function.
4298 (default_is_string_type_p): Delete desclaration, move comment to
4299 definition.
4300 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
4301 moved to m2_language::is_string_type_p.
4302 (m2_language_data): Delete la_is_string_type_p initializer.
4303 (m2_language::is_string_type_p): New member function,
4304 implementation from m2_is_string_type_p.
4305 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
4306 initializer.
4307 * opencl-lang.c (opencl_language_data): Likewise.
4308 * p-lang.c (pascal_is_string_type_p): Delete function,
4309 implementation moved to pascal_language::is_string_type_p.
4310 (pascal_language_data): Delete la_is_string_type_p initializer.
4311 (pascal_language::is_string_type_p): New member function,
4312 implementation from pascal_is_string_type_p.
4313 * rust-lang.c (rust_is_string_type_p): Delete function,
4314 implementation moved to rust_language::is_string_type_p.
4315 (rust_language_data): Delete la_is_string_type_p initializer.
4316 (rust_language::is_string_type_p): New member function,
4317 implementation from rust_is_string_type_p.
4318 * valprint.c (val_print_scalar_or_string_type_p): Update call to
4319 is_string_type_p.
4320
4321 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4322
4323 * ada-lang.c (ada_language_data): Delete la_print_typedef
4324 initializer.
4325 (ada_language::print_typedef): New member function.
4326 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
4327 (cplus_language_data): Likewise.
4328 (asm_language_data): Likewise.
4329 (minimal_language_data): Likewise.
4330 * d-lang.c (d_language_data): Likewise.
4331 * f-lang.c (f_language_data): Likewise.
4332 (f_language::print_typedef): New member function.
4333 * go-lang.c (go_language_data): Delete la_print_typedef
4334 initializer.
4335 * language.c (language_defn::print_typedef): Define member
4336 function.
4337 (unknown_language_data): Delete la_print_typedef initializer.
4338 (unknown_language::print_typedef): New member function.
4339 (auto_language_data): Delete la_print_typedef initializer.
4340 (auto_language::print_typedef): New member function.
4341 * language.h (language_data): Delete la_print_typedef field.
4342 (language_defn::print_typedef): Declare new member function.
4343 (LA_PRINT_TYPEDEF): Update call to print_typedef.
4344 (default_print_typedef): Delete declaration.
4345 * m2-lang.c (m2_language_data): Delete la_print_typedef
4346 initializer.
4347 (m2_language::print_typedef): New member function.
4348 * objc-lang.c (objc_language_data): Delete la_print_typedef
4349 initializer.
4350 * opencl-lang.c (opencl_language_data): Likewise.
4351 * p-lang.c (pascal_language_data): Likewise.
4352 (pascal_language::print_typedef): New member function.
4353 * rust-lang.c (rust_print_typedef): Delete function,
4354 implementation moved to rust_language::print_typedef.
4355 (rust_language): Delete la_print_typedef initializer.
4356 (rust_language::print_typedef): New member function,
4357 implementation from rust_print_typedef.
4358 * typeprint.c (default_print_typedef): Delete.
4359
4360 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4361
4362 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
4363 (ada_language::printstr): New member function.
4364 * c-lang.c (c_language_data): Delete la_printstr initializer.
4365 (cplus_language_data): Likewise.
4366 (asm_language_data): Likewise.
4367 (minimal_language_data): Likewise.
4368 * d-lang.c (d_language_data): Likewise.
4369 * f-lang.c (f_printstr): Rename to f_language::printstr.
4370 (f_language_data): Delete la_printstr initializer.
4371 (f_language::printstr): New member function, implementation from
4372 f_printstr.
4373 * go-lang.c (go_language_data): Delete la_printstr initializer.
4374 * language.c (language_defn::printstr): Define new member
4375 function.
4376 (unk_lang_printstr): Delete.
4377 (unknown_language_data): Delete la_printstr initializer.
4378 (unknown_language::printstr): New member function.
4379 (auto_language_data): Delete la_printstr initializer.
4380 (auto_language::printstr): New member function.
4381 * language.h (language_data): Delete la_printstr field.
4382 (language_defn::printstr): Declare new member function.
4383 (LA_PRINT_STRING): Update call to printstr.
4384 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
4385 (m2_language_data): Delete la_printstr initializer.
4386 (m2_language::printstr): New member function, implementation from
4387 m2_printstr.
4388 * objc-lang.c (objc_language_data): Delete la_printstr
4389 initializer.
4390 * opencl-lang.c (opencl_language_data): Likewise.
4391 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
4392 (pascal_language_data): Delete la_printstr initializer.
4393 (pascal_language::printstr): New member function, implementation
4394 from pascal_printstr.
4395 * p-lang.h (pascal_printstr): Delete declaration.
4396 * rust-lang.c (rust_printstr): Update header comment.
4397 (rust_language_data): Delete la_printstr initializer.
4398 (rust_language::printstr): New member function.
4399
4400 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4401
4402 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
4403 (ada_language::printchar): New member function.
4404 * c-lang.c (c_language_data): Delete la_printchar initializer.
4405 (cplus_language_data): Likewise.
4406 (asm_language_data): Likewise.
4407 (minimal_language_data): Likewise.
4408 * d-lang.c (d_language_data): Likewise.
4409 * f-lang.c (f_printchar): Rename to f_language::printchar.
4410 (f_language_data): Delete la_printchar initializer.
4411 (f_language::printchar): New member function, implementation from
4412 f_printchar.
4413 * go-lang.c (go_language_data): Delete la_printchar initializer.
4414 * language.c (unk_lang_printchar): Delete.
4415 (language_defn::printchar): Define new member function.
4416 (unknown_language_data): Delete la_printchar initializer.
4417 (unknown_language::printchar): New member function.
4418 (auto_language_data): Delete la_printchar initializer.
4419 (auto_language::printchar): New member function.
4420 * language.h (language_data): Delete la_printchar field.
4421 (language_defn::printchar): Declare new member function.
4422 (LA_PRINT_CHAR): Update call to printchar.
4423 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
4424 (m2_language::printchar): New member function.
4425 * objc-lang.c (objc_language_data): Delete la_printchar
4426 initializer.
4427 * opencl-lang.c (opencl_language_data): Likewise.
4428 * p-lang.c (pascal_language_data): Delete la_printchar
4429 initializer.
4430 (pascal_language::printchar): New member function.
4431 * rust-lang.c (rust_printchar): Rename to
4432 rust_language::printchar.
4433 (rust_language_data): Delete la_printchar initializer.
4434 (rust_language::printchar): New member function, implementation
4435 from rust_printchar.
4436
4437 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4438
4439 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
4440 (ada_language_data): Delete la_emitchar initializer.
4441 (ada_language::emitchar): New member function, implementation from
4442 emit_char.
4443 * c-lang.c (c_language_data): Delete la_emitchar initializer.
4444 (cplus_language_data): Likewise.
4445 (asm_language_data): Likewise.
4446 (minimal_language_data): Likewise.
4447 * d-lang.c (d_language_data): Likewise.
4448 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
4449 (f_language_data): Delete la_emitchar initializer.
4450 (f_language::emitchar): New member function, implementation from
4451 f_emit_char.
4452 * go-lang.c (go_language_data): Delete la_emitchar initializer.
4453 * language.c (unk_lang_emit_char): Delete.
4454 (language_defn::emitchar): New member function definition.
4455 (unknown_language_data): Delete la_emitchar initializer.
4456 (unknown_language::emitchar): New member function.
4457 (auto_language_data): Delete la_emitchar initializer.
4458 (auto_language::emitchar): New member function.
4459 * language.h (language_data): Delete la_emitchar field.
4460 (language_defn::emitchar): New member field declaration.
4461 (LA_EMIT_CHAR): Update call to emitchar.
4462 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
4463 (m2_language_data): Delete la_emitchar initializer.
4464 (m2_language::emitchar): New member function, implementation from
4465 m2_emit_char.
4466 * objc-lang.c (objc_language_data): Delete la_emitchar
4467 initializer.
4468 * opencl-lang.c (opencl_language_data): Likewise.
4469 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4470 (pascal_language_data): Delete la_emitchar initializer.
4471 (pascal_language::emitchar): New member function, implementation
4472 from pascal_emit_char.
4473 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4474 (rust_language_data): Delete la_emitchar initializer.
4475 (rust_language::emitchar): New member function, implementation
4476 from rust_emitchar.
4477
4478 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4479
4480 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4481 (ada_language_data): Delete la_post_parser initializer.
4482 (ada_language::post_parser): New member function.
4483 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4484 (cplus_language_data): Likewise.
4485 (asm_language_data): Likewise.
4486 (minimal_language_data): Likewise.
4487 * d-lang.c (d_language_data): Likewise.
4488 * f-lang.c (f_language_data): Likewise.
4489 * go-lang.c (go_language_data): Likewise.
4490 * language.c (unknown_language_data): Likewise.
4491 (auto_language_data): Likewise.
4492 * language.h (language_data): Delete la_post_parser field.
4493 (language_defn::post_parser): New member function.
4494 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4495 * objc-lang.c (objc_language_data): Likewise.
4496 * opencl-lang.c (opencl_language_data): Likewise.
4497 * p-lang.c (pascal_language_data): Likewise.
4498 * parse.c (parse_exp_in_context): Update call to post_parser.
4499 (null_post_parser): Delete definition.
4500 * parser-defs.h (null_post_parser): Delete declaration.
4501 * rust-lang.c (rust_language_data): Delete la_post_parser
4502 initializer.
4503
4504 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4505
4506 * ada-lang.c (parse): Rename to ada_language::parser.
4507 (ada_language_data): Delete la_parser initializer.
4508 (ada_language::parser): New member function, implementation from
4509 parse.
4510 * c-lang.c (c_language_data): Delete la_parser initializer.
4511 (cplus_language_data): Likewise.
4512 (asm_language_data): Likewise.
4513 (minimal_language_data): Likewise.
4514 * d-lang.c (d_language_data): Likewise.
4515 (d_language::parser): New member function.
4516 * f-lang.c (f_language_data): Delete la_parser initializer.
4517 (f_language::parser): New member function.
4518 * go-lang.c (go_language_data): Delete la_parser initializer.
4519 (go_language::parser): New member function.
4520 * language.c (unk_lang_parser): Delete.
4521 (language_defn::parser): Define new member function.
4522 (unknown_language_data): Delete la_parser initializer.
4523 (unknown_language::parser): New member function.
4524 (auto_language_data): Delete la_parser initializer.
4525 (auto_language::parser): New member function.
4526 * language.h (language_data): Delete la_parser field.
4527 (language_defn::parser): Declare new member function.
4528 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4529 (m2_language::parser): New member function.
4530 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4531 * opencl-lang.c (opencl_language_data): Likewise.
4532 * p-lang.c (pascal_language_data): Likewise.
4533 (pascal_language::parser): New member function.
4534 * parse.c (parse_exp_in_context): Update call to parser.
4535 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4536 (rust_language::parser): New member function.
4537
4538 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4539
4540 * top.c (print_gdb_configuration): Print --with-python-libdir
4541 configuration value.
4542
4543 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4544
4545 * NEWS: Mention change to the alias command.
4546
4547 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4548
4549 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4550 (alias_command_completer)
4551 (make_alias_options_def_group): New functions.
4552 (alias_opts, alias_option_defs): New struct and array.
4553 (alias_usage_error): Update usage.
4554 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4555 Use option framework.
4556 (_initialize_cli_cmds): Update alias command help.
4557 Update aliases command help.
4558 (show_user):
4559 Add NULL for new default_args lookup_cmd argument.
4560 (valid_command_p): Rename to validate_aliased_command.
4561 Add NULL for new default_args lookup_cmd argument. Verify that the
4562 aliased_command has no default args.
4563 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4564 (lookup_cmd_1, lookup_cmd): New argument default_args.
4565 (add_alias_cmd):
4566 Add NULL for new default_args lookup_cmd argument.
4567 (print_help_for_command): Show default args under the layout
4568 alias some_alias = some_aliased_cmd some_alias_default_arg.
4569 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4570 xfree default_args in destructor.
4571 * cli/cli-script.c (process_next_line, do_define_command):
4572 Add NULL for new default_args lookup_cmd argument.
4573 * command.h: Declare new default_args argument in lookup_cmd
4574 and lookup_cmd_1.
4575 * completer.c (complete_line_internal_1):
4576 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4577 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4578 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4579 Likewise.
4580 * infcmd.c (_initialize_infcmd): Likewise.
4581 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4582 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4583 * python/py-param.c (add_setshow_generic): Likewise.
4584 * remote.c (_initialize_remote): Likewise.
4585 * top.c (execute_command): Prepend default_args if command has some.
4586 (set_verbose):
4587 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4588 * tracepoint.c (validate_actionline, encode_actions_1):
4589 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4590
4591 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4592
4593 * jit.c (jit_read_descriptor): Use bool as the return type.
4594 (jit_breakpoint_re_set_internal): Use bool as the return type.
4595 Invert the return value logic; return true if the jit breakpoint
4596 has been successfully initialized.
4597 (jit_inferior_init): Update the call to
4598 jit_breakpoint_re_set_internal.
4599
4600 2020-06-22 Pedro Alves <palves@redhat.com>
4601
4602 PR gdb/25939
4603 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4604 Use the current inferior instead. Don't return
4605 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4606 wait again.
4607 * sol-thread.c (sol_thread_target::wait): Don't reference
4608 inferior_ptid.
4609 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4610 (sol_update_thread_list_callback): Use the current inferior's pid
4611 instead of inferior_ptid.
4612
4613 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4614
4615 * procfs.c: Cleanup many comments.
4616
4617 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4618 (AFTER_WATCHFLAG): Replace by value.
4619
4620 (MAIN_PROC_NAME_FORMAT): Inline ...
4621 (create_procinfo): ... here.
4622
4623 (procfs_debug_inferior): Remove SYS_exec handling.
4624 (syscall_is_exec): Likewise.
4625 (procfs_set_exec_trap): Likewise.
4626
4627 (syscall_is_lwp_exit): Inline in callers.
4628 (syscall_is_exit): Likewise.
4629 (syscall_is_exec): Likewise.
4630 (syscall_is_lwp_create): Likewise.
4631
4632 (invalidate_cache): Remove #if 0 code.
4633
4634 (make_signal_thread_runnable): Remove.
4635 (procfs_target::resume): Remove #if 0 code.
4636
4637 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4638
4639 PR gdb/25939
4640 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4641 call ...
4642 (procfs_target::create_inferior): ... here.
4643
4644 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4645
4646 * exec.c (validate_exec_file): Ensure the build-id is up to
4647 date by calling reopen_exec_file (that checks file timestamp
4648 to decide to re-read the file).
4649
4650 2020-06-18 Pedro Alves <palves@redhat.com>
4651
4652 PR gdb/25412
4653 * gdbthread.h (delete_thread, delete_thread_silent)
4654 (find_thread_ptid): Update comments.
4655 * thread.c (current_thread_): New global.
4656 (is_current_thread): Move higher, and reimplement.
4657 (inferior_thread): Reimplement.
4658 (set_thread_exited): Use bool. Add assertions.
4659 (add_thread_silent): Simplify thread-reuse handling by always
4660 calling delete_thread.
4661 (delete_thread): Remove intro comment.
4662 (find_thread_ptid): Skip exited threads.
4663 (switch_to_thread_no_regs): Write to current_thread_.
4664 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4665 INFERIOR_PTID. Clear current_thread_.
4666
4667 2020-06-18 Pedro Alves <palves@redhat.com>
4668
4669 * aix-thread.c (pd_update): Use switch_to_thread.
4670
4671 2020-06-18 Pedro Alves <palves@redhat.com>
4672
4673 * ravenscar-thread.c (ravenscar_thread_target): Update.
4674 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4675 (ravenscar_thread_target::add_active_thread): ... this. Don't
4676 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4677 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4678
4679 2020-06-18 Pedro Alves <palves@redhat.com>
4680
4681 * nat/windows-nat.c (current_windows_thread): Remove.
4682 * nat/windows-nat.h (current_windows_thread): Remove.
4683 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4684 Adjust.
4685 (display_selectors): Adjust to fetch the current
4686 windows_thread_info based on inferior_ptid.
4687 (fake_create_process): No longer write to current_windows_thread.
4688 (windows_nat_target::get_windows_debug_event):
4689 Don't set inferior_ptid or current_windows_thread.
4690 (windows_nat_target::wait): Adjust to not rely on
4691 current_windows_thread.
4692 (do_initial_windows_stuff): Now a method of windows_nat_target.
4693 Switch to the last_ptid thread.
4694 (windows_nat_target::attach): Adjust.
4695 (windows_nat_target::detach): Use switch_to_no_thread instead of
4696 writing to inferior_ptid directly.
4697 (windows_nat_target::create_inferior): Adjust.
4698
4699 2020-06-18 Pedro Alves <palves@redhat.com>
4700
4701 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4702
4703 2020-06-18 Pedro Alves <palves@redhat.com>
4704
4705 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4706 after creating it, instead of writing to inferior_ptid. Don't
4707 write to inferior_ptid.
4708
4709 2020-06-18 Pedro Alves <palves@redhat.com>
4710
4711 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4712
4713 2020-06-18 Pedro Alves <palves@redhat.com>
4714
4715 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4716 it, instead of writing to inferior_ptid.
4717
4718 2020-06-18 Pedro Alves <palves@redhat.com>
4719
4720 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4721 to inferior_ptid.
4722
4723 2020-06-18 Pedro Alves <palves@redhat.com>
4724
4725 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4726 instead of writing to inferior_ptid directly.
4727
4728 2020-06-18 Pedro Alves <palves@redhat.com>
4729
4730 * corelow.c (core_target::close): Use switch_to_no_thread instead
4731 of writing to inferior_ptid directly.
4732 (add_to_thread_list, core_target_open): Use switch_to_thread
4733 instead of writing to inferior_ptid directly.
4734
4735 2020-06-18 Pedro Alves <palves@redhat.com>
4736
4737 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4738 inferior_ptid.
4739 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4740 inferior_ptid.
4741 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4742 inferior_ptid directly.
4743 (darwin_nat_target::init_thread_list): Switch to thread, instead
4744 of writing to inferior_ptid.
4745 (darwin_nat_target::attach): Don't write to inferior_ptid.
4746 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4747
4748 2020-06-18 Pedro Alves <palves@redhat.com>
4749
4750 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4751 thread.
4752 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4753 Instead use switch_to_thread.
4754 (gnu_nat_target::detach): Use switch_to_no_thread
4755 instead of writing to inferior_ptid directly. Used passed-in
4756 inferior instead of looking up the inferior by pid.
4757
4758 2020-06-18 Pedro Alves <palves@redhat.com>
4759
4760 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4761 inferior_ptid.
4762
4763 2020-06-18 Pedro Alves <palves@redhat.com>
4764
4765 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4766 inferior_ptid.
4767 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4768 thread.
4769 (nto_procfs_target::detach): Avoid referencing
4770 inferior_ptid. Use switch_to_no_thread instead of writing to
4771 inferior_ptid directly.
4772 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4773 instead of writing to inferior_ptid directly.
4774 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4775 to thread.
4776
4777 2020-06-18 Pedro Alves <palves@redhat.com>
4778
4779 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4780 after creating it, instead of writing to inferior_ptid.
4781 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4782 to inferior_ptid directly.
4783 (gdbsim_target::wait): Don't write to inferior_ptid.
4784
4785 2020-06-18 Pedro Alves <palves@redhat.com>
4786
4787 * remote.c (remote_target::remote_notice_new_inferior): Use
4788 switch_to_thread instead of writing to inferior_ptid directly.
4789 (remote_target::add_current_inferior_and_thread): Use
4790 switch_to_no_thread instead of writing to inferior_ptid directly.
4791 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4792 and switch_to_thread instead of using set_current_inferior or
4793 writing to inferior_ptid directly.
4794
4795 2020-06-18 Pedro Alves <palves@redhat.com>
4796
4797 * tracectf.c (ctf_target_open): Switch to added thread instead of
4798 writing to inferior_ptid directly.
4799 (ctf_target::close): Use switch_to_no_thread instead of writing to
4800 inferior_ptid directly.
4801
4802 2020-06-18 Pedro Alves <palves@redhat.com>
4803
4804 * tracefile-tfile.c (tfile_target_open): Don't write to
4805 inferior_ptid directly, instead switch to added thread.
4806 (tfile_target::close): Use switch_to_no_thread instead of writing
4807 to inferior_ptid directly.
4808
4809 2020-06-18 Pedro Alves <palves@redhat.com>
4810
4811 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4812 (procfs_target::detach): Use switch_to_no_thread
4813 instead of writing to inferior_ptid directly.
4814 (do_attach): Change return type to void. Switch to the added
4815 thread.
4816 (procfs_target::create_inferior): Switch to the added thread.
4817 (procfs_do_thread_registers): Don't write to inferior_ptid.
4818
4819 2020-06-18 Pedro Alves <palves@redhat.com>
4820
4821 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4822 of writing to inferior_ptid.
4823 (scoped_restore_exited_inferior): Delete.
4824 (handle_vfork_child_exec_or_exit): Simplify using
4825 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4826 instead of writing to inferior_ptid.
4827 (THREAD_STOPPED_BY): Delete.
4828 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4829 (thread_stopped_by_hw_breakpoint): Delete.
4830 (save_waitstatus): Use
4831 scoped_restore_current_thread+switch_to_thread, and call
4832 target_stopped_by_watchpoint instead of
4833 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4834 instead of thread_stopped_by_sw_breakpoint, and
4835 target_stopped_by_hw_breakpoint instead of
4836 thread_stopped_by_hw_breakpoint.
4837 (handle_inferior_event)
4838 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4839 inferior_ptid directly, nor
4840 set_current_inferior/set_current_program_space. Use
4841 switch_to_thread / switch_to_inferior_no_thread instead.
4842
4843 2020-06-18 Pedro Alves <palves@redhat.com>
4844
4845 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4846 instead of writing to inferior_ptid.
4847
4848 2020-06-18 Pedro Alves <palves@redhat.com>
4849
4850 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4851 added thread.
4852 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4853 to the added thread.
4854 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4855 instead of writing to inferior_ptid.
4856
4857 2020-06-18 Pedro Alves <palves@redhat.com>
4858
4859 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4860 (register_to_value_test): Mock a program_space too. Heap-allocate
4861 the address space. Don't write to inferior_ptid. Use
4862 switch_to_thread instead.
4863
4864 2020-06-18 Pedro Alves <palves@redhat.com>
4865
4866 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4867 Delete.
4868 (find_signalled_thread()): New, factored out from
4869 linux_make_corefile_notes and adjusted to handle exited threads.
4870 (linux_make_corefile_notes): Adjust to use the new
4871 find_signalled_thread.
4872
4873 2020-06-18 Pedro Alves <palves@redhat.com>
4874
4875 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4876 of saving/restoring inferior_ptid.
4877
4878 2020-06-17 Tom Tromey <tom@tromey.com>
4879
4880 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4881 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4882 declare.
4883 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4884
4885 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
4886
4887 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4888 of partial symtabs.
4889
4890 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4891
4892 * regformats/reg-arm.dat: Remove.
4893 * regformats/reg-bfin.dat: Remove.
4894 * regformats/reg-cris.dat: Remove.
4895 * regformats/reg-crisv32.dat: Remove.
4896 * regformats/reg-m32r.dat: Remove.
4897 * regformats/reg-tilegx.dat: Remove.
4898 * regformats/reg-tilegx32.dat: Remove.
4899
4900 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4901
4902 * features/Makefile (WHICH): Remove arm files.
4903 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4904 * regformats/arm/arm-with-neon.dat: Remove.
4905 * regformats/arm/arm-with-vfpv2.dat: Remove.
4906 * regformats/arm/arm-with-vfpv3.dat: Remove.
4907
4908 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4909
4910 * features/Makefile (XMLTOC): Remove rx.xml.
4911
4912 2020-06-17 Pedro Alves <palves@redhat.com>
4913
4914 * gdbthread.h (thread_control_state) <trap_expected> Update
4915 comments.
4916
4917 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4918
4919 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4920 ada_language::lookup_symbol_nonlocal.
4921 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4922 (ada_language::lookup_symbol_nonlocal): New member function,
4923 implementation from ada_lookup_symbol_nonlocal.
4924 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4925 initializer.
4926 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4927 initializer.
4928 (cplus_language::lookup_symbol_nonlocal): New member function.
4929 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4930 (minimal_language_data) Likewise.
4931 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4932 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4933 initializer.
4934 (d_language::lookup_symbol_nonlocal): New member function.
4935 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4936 initializer.
4937 (f_language::lookup_symbol_nonlocal): New member function.
4938 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4939 initializer.
4940 * language.c (unknown_language_data): Likewise.
4941 (auto_language_data): Likewise.
4942 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4943 field.
4944 (language_defn::lookup_symbol_nonlocal): New member function.
4945 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4946 initializer.
4947 * objc-lang.c (objc_language_data): Likewise.
4948 * opencl-lang.c (opencl_language_data): Likewise.
4949 * p-lang.c (pascal_language_data): Likewise.
4950 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4951 rust_language::lookup_symbol_nonlocal.
4952 (rust_language_data): Delete la_lookup_symbol_nonlocal
4953 initializer.
4954 (rust_language::lookup_symbol_nonlocal): New member function,
4955 implementation from rust_lookup_symbol_nonlocal.
4956 * symtab.c (lookup_symbol_aux): Update call to
4957 lookup_symbol_nonlocal.
4958 (basic_lookup_symbol_nonlocal): Rename to...
4959 (language_defn::lookup_symbol_nonlocal): ...this, and update
4960 header comment. Remove language_defn parameter, and replace with
4961 uses of `this'.
4962 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4963
4964 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4965
4966 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4967 initializer.
4968 (ada_language::value_print_inner): New member function.
4969 * c-lang.c (c_language_data): Delete la_value_print_inner
4970 initializer.
4971 (cplus_language_data): Likewise.
4972 (asm_language_data): Likewise.
4973 (minimal_language_data): Likewise.
4974 * d-lang.c (d_language_data): Likewise.
4975 (d_language::value_print_inner): New member function.
4976 * f-lang.c (f_language_data): Delete la_value_print_inner
4977 initializer.
4978 (f_language::value_print_inner): New member function.
4979 * f-lang.h (f_value_print_innner): Rename to...
4980 (f_value_print_inner): ...this (note spelling of 'inner').
4981 * f-valprint.c (f_value_print_innner): Rename to...
4982 (f_value_print_inner): ...this (note spelling of 'inner').
4983 * go-lang.c (go_language_data): Delete la_value_print_inner
4984 initializer.
4985 (go_language::value_print_inner): New member function.
4986 * language.c (language_defn::value_print_inner): Define new member
4987 function.
4988 (unk_lang_value_print_inner): Delete.
4989 (unknown_language_data): Delete la_value_print_inner initializer.
4990 (unknown_language::value_print_inner): New member function.
4991 (auto_language_data): Delete la_value_print_inner initializer.
4992 (auto_language::value_print_inner): New member function.
4993 * language.h (language_data): Delete la_value_print_inner field.
4994 (language_defn::value_print_inner): Delcare new member function.
4995 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4996 initializer.
4997 (m2_language::value_print_inner): New member function.
4998 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4999 initializer.
5000 * opencl-lang.c (opencl_language_data): Likewise.
5001 * p-lang.c (pascal_language_data): Likewise.
5002 (pascal_language::value_print_inner): New member function.
5003 * rust-lang.c (rust_language_data): Delete la_value_print_inner
5004 initializer.
5005 (rust_language::value_print_inner): New member function.
5006 * valprint.c (do_val_print): Update call to value_print_inner.
5007
5008 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5009
5010 * ada-lang.c (ada_language_data): Delete la_value_print
5011 initializer.
5012 (ada_language::value_print): New member function.
5013 * c-lang.c (c_language_data): Delete la_value_print initializer.
5014 (cplus_language_data): Likewise.
5015 (asm_language_data): Likewise.
5016 (minimal_language_data): Likewise.
5017 * d-lang.c (d_language_data): Likewise.
5018 * f-lang.c (f_language_data): Likewise.
5019 * go-lang.c (go_language_data): Likewise.
5020 * language.c (unk_lang_value_print): Delete.
5021 (language_defn::value_print): Define new member function.
5022 (unknown_language_data): Delete la_value_print initializer.
5023 (unknown_language::value_print): New member function.
5024 (auto_language_data): Delete la_value_print initializer.
5025 (auto_language::value_print): New member function.
5026 * language.h (language_data): Delete la_value_print field.
5027 (language_defn::value_print): Declare new member function.
5028 (LA_VALUE_PRINT): Update call to value_print.
5029 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
5030 * objc-lang.c (objc_language_data): Likewise.
5031 * opencl-lang.c (opencl_language_data): Likewise.
5032 * p-lang.c (pascal_language_data): Likewise.
5033 (pascal_language::value_print): New member function.
5034 * rust-lang.c (rust_language_data): Delete la_value_print
5035 initializer.
5036
5037 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5038
5039 * ada-lang.c (ada_watch_location_expression): Rename to
5040 ada_language::watch_location_expression.
5041 (ada_language_data): Delete la_watch_location_expression
5042 initializer.
5043 (ada_language::watch_location_expression): New member function,
5044 implementation from ada_watch_location_expression.
5045 * breakpoint.c (watch_command_1): Update call to
5046 watch_location_expression.
5047 * c-lang.c (c_watch_location_expression): Rename to
5048 language_defn::watch_location_expression.
5049 (c_language_data): Delete la_watch_location_expression
5050 initializer.
5051 (cplus_language_data): Likewise.
5052 (asm_language_data): Likewise.
5053 (minimal_language_data): Likewise.
5054 * c-lang.h (c_watch_location_expression): Delete declaration.
5055 * d-lang.c (d_language_data): Delete la_watch_location_expression
5056 initializer.
5057 * f-lang.c (f_language_data): Likewise.
5058 * go-lang.c (go_language_data): Likewise.
5059 * language.c (language_defn::watch_location_expression): Member
5060 function implementation from c_watch_location_expression.
5061 (unknown_language_data): Delete la_watch_location_expression
5062 initializer.
5063 (auto_language_data): Likewise.
5064 * language.h (language_data): Delete la_watch_location_expression
5065 field.
5066 (language_defn::watch_location_expression): Declare new member
5067 function.
5068 * m2-lang.c (m2_language_data): Delete
5069 la_watch_location_expression initializer.
5070 * objc-lang.c (objc_language_data): Likewise.
5071 * opencl-lang.c (opencl_language_data): Likewise.
5072 * p-lang.c (pascal_language_data): Likewise.
5073 * rust-lang.c (rust_watch_location_expression): Rename to
5074 rust_language::watch_location_expression.
5075 (rust_language_data): Delete la_watch_location_expression
5076 initializer.
5077 (rust_language::watch_location_expression): New member function,
5078 implementation from rust_watch_location_expression.
5079
5080 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5081
5082 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
5083 ada_language::collect_symbol_completion_matches.
5084 (ada_language_data): Delete la_collect_symbol_completion_matches
5085 initializer.
5086 (ada_language::collect_symbol_completion_matches): New member
5087 function, implementation from
5088 ada_collect_symbol_completion_matches.
5089 * c-lang.c (c_language_data): Delete
5090 la_collect_symbol_completion_matches initializer.
5091 (cplus_language_data): Likewise.
5092 (asm_language_data): Likewise.
5093 (minimal_language_data): Likewise.
5094 * d-lang.c (d_language_data): Likewise.
5095 * f-lang.c (f_collect_symbol_completion_matches): Rename to
5096 f_language::collect_symbol_completion_matches.
5097 (f_language_data): Delete la_collect_symbol_completion_matches
5098 initializer.
5099 (f_language::collect_symbol_completion_matches) New member
5100 function, implementation from f_collect_symbol_completion_matches.
5101 * go-lang.c (go_language_data): Delete
5102 la_collect_symbol_completion_matches initializer.
5103 * language.c (unknown_language_data): Likewise.
5104 (auto_language_data): Likewise.
5105 * language.h (language_data): Delete
5106 la_collect_symbol_completion_matches field.
5107 (language_defn::collect_symbol_completion_matches): New member
5108 function.
5109 * m2-lang.c (m2_language_data): Delete
5110 la_collect_symbol_completion_matches initializer.
5111 * objc-lang.c (objc_language_data): Likewise.
5112 * opencl-lang.c (opencl_language_data): Likewise.
5113 * p-lang.c (pascal_language_data): Likewise.
5114 * rust-lang.c (rust_language_data): Likewise.
5115 * symtab.c (default_collect_symbol_completion_matches): Delete.
5116 (collect_symbol_completion_matches): Update call to
5117 collect_symbol_completion_matches.
5118 (collect_symbol_completion_matches_type): Likewise.
5119 * symtab.h (default_collect_symbol_completion_matches): Delete
5120 declaration.
5121
5122 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5123
5124 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
5125 (ada_language_data): Delete la_word_break_characters initializer.
5126 (ada_language::word_break_characters): New member function.
5127 * c-lang.c (c_language_data): Delete la_word_break_characters
5128 initializer.
5129 (cplus_language_data): Likewise.
5130 (asm_language_data): Likewise.
5131 (minimal_language_data): Likewise.
5132 * completer.c: Update global comment.
5133 (advance_to_expression_complete_word_point): Update call to
5134 word_break_characters.
5135 (complete_files_symbols): Likewise.
5136 (complete_line_internal_1): Likewise.
5137 (default_completer_handle_brkchars): Likewise.
5138 (skip_quoted_chars): Likewise.
5139 * d-lang.c (d_language_data): Delete la_word_break_characters
5140 initializer.
5141 * f-lang.c (f_word_break_characters): Delete.
5142 (f_language_data): Delete la_word_break_characters initializer.
5143 (f_language::word_break_characters): New member function.
5144 * go-lang.c (go_language_data): Delete la_word_break_characters
5145 initializer.
5146 * language.c (unknown_language_data): Likewise.
5147 (auto_language_data): Likewise.
5148 * language.h (default_word_break_characters): Move declaration to
5149 earlier in the file.
5150 (language_data): Delete la_word_break_characters field.
5151 (language_defn::word_break_characters): New member function.
5152 * m2-lang.c (m2_language_data): Delete la_word_break_characters
5153 initializer.
5154 * objc-lang.c (objc_language_data): Likewise.
5155 * opencl-lang.c (opencl_language_data): Likewise.
5156 * p-lang.c (pascal_language_data): Likewise.
5157 * rust-lang.c (rust_language_data): Likewise.
5158
5159 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5160
5161 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
5162 (ada_language_data): Delete la_get_symbol_name_matcher
5163 initializer.
5164 (language_defn::get_symbol_name_matcher_inner): New member
5165 function.
5166 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
5167 initializer.
5168 (cplus_language_data): Likewise.
5169 (cplus_language::get_symbol_name_matcher_inner): New member
5170 function.
5171 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
5172 (minimal_language_data): Likewise.
5173 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
5174 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
5175 initializer.
5176 * dictionary.c (iter_match_first_hashed): Update call to
5177 get_symbol_name_matcher.
5178 (iter_match_next_hashed): Likewise.
5179 (iter_match_next_linear): Likewise.
5180 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
5181 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
5182 initializer.
5183 (f_language::get_symbol_name_matcher_inner): New member function.
5184 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
5185 initializer.
5186 * language.c (default_symbol_name_matcher): Update header comment,
5187 make static.
5188 (language_defn::get_symbol_name_matcher): New definition.
5189 (language_defn::get_symbol_name_matcher_inner): Likewise.
5190 (get_symbol_name_matcher): Delete.
5191 (unknown_language_data): Delete la_get_symbol_name_matcher
5192 initializer.
5193 (auto_language_data): Likewise.
5194 * language.h (language_data): Delete la_get_symbol_name_matcher
5195 field.
5196 (language_defn::get_symbol_name_matcher): New member function.
5197 (language_defn::get_symbol_name_matcher_inner): Likewise.
5198 (default_symbol_name_matcher): Delete declaration.
5199 * linespec.c (find_methods): Update call to
5200 get_symbol_name_matcher.
5201 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
5202 initializer.
5203 * minsyms.c (lookup_minimal_symbol): Update call to
5204 get_symbol_name_matcher.
5205 (iterate_over_minimal_symbols): Likewise.
5206 * objc-lang.c (objc_language_data): Delete
5207 la_get_symbol_name_matcher initializer.
5208 * opencl-lang.c (opencl_language_data): Likewise.
5209 * p-lang.c (pascal_language_data): Likewise.
5210 * psymtab.c (psymbol_name_matches): Update call to
5211 get_symbol_name_matcher.
5212 * rust-lang.c (rust_language_data): Delete
5213 la_get_symbol_name_matcher initializer.
5214 * symtab.c (symbol_matches_search_name): Update call to
5215 get_symbol_name_matcher.
5216 (compare_symbol_name): Likewise.
5217
5218 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5219
5220 * ada-lang.c (ada_language_data): Delete la_compute_program
5221 initializer.
5222 * c-lang.c (c_language_data): Likewise.
5223 (c_language::compute_program): New member function.
5224 (cplus_language_data): Delete la_compute_program initializer.
5225 (cplus_language::compute_program): New member function.
5226 (asm_language_data): Delete la_compute_program initializer.
5227 (minimal_language_data): Likewise.
5228 * c-lang.h (c_compute_program): Update comment.
5229 (cplus_compute_program): Likewise.
5230 * compile/compile-c-support.c (c_compute_program): Likewise.
5231 (cplus_compute_program): Likewise.
5232 * compile/compile.c (compile_to_object): Update call to
5233 la_compute_program.
5234 * d-lang.c (d_language_data): Delete la_compute_program
5235 initializer.
5236 * f-lang.c (f_language_data): Likewise.
5237 * go-lang.c (go_language_data): Likewise.
5238 * language.c (unknown_language_data): Likewise.
5239 (auto_language_data): Likewise.
5240 * language.h (language_data): Delete la_compute_program field.
5241 (language_defn::compute_program): New member function.
5242 * m2-lang.c (m2_language_data): Delete la_compute_program
5243 initializer.
5244 * objc-lang.c (objc_language_data): Likewise.
5245 * opencl-lang.c (opencl_language_data): Likewise.
5246 * p-lang.c (pascal_language_data): Likewise.
5247 * rust-lang.c (rust_language_data): Likewise.
5248
5249 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5250
5251 * ada-lang.c (ada_language_data) Delete
5252 la_class_name_from_physname initializer.
5253 * c-lang.c (c_language_data): Likewise.
5254 (cplus_language_data): Likewise.
5255 (cplus_language::class_name_from_physname): New member function.
5256 (asm_language_data): Delete la_class_name_from_physname
5257 initializer.
5258 (minimal_language_data): Likewise.
5259 * d-lang.c (d_language_data): Likewise.
5260 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
5261 method on language_defn class.
5262 (guess_full_die_structure_name): Likewise.
5263 * f-lang.c (f_language_data): Delete la_class_name_from_physname
5264 initializer.
5265 * go-lang.c (go_language_data): Likewise.
5266 * language.c (language_class_name_from_physname): Delete.
5267 (unk_lang_class_name): Delete.
5268 (unknown_language_data): Delete la_class_name_from_physname
5269 initializer.
5270 (auto_language_data): Likewise.
5271 * language.h (language_data): Delete la_class_name_from_physname
5272 field.
5273 (language_defn::class_name_from_physname): New function.
5274 (language_class_name_from_physname): Delete declaration.
5275 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
5276 initializer.
5277 * objc-lang.c (objc_language_data): Likewise.
5278 * opencl-lang.c (opencl_language_data): Likewise.
5279 * p-lang.c (pascal_language_data): Likewise.
5280 * rust-lang.c (rust_language_data): Likewise.
5281
5282 2020-06-16 Tom Tromey <tom@tromey.com>
5283
5284 * tui/tui-data.h (STATUS_NAME): New macro.
5285 * tui/tui-layout.c (tui_remove_some_windows)
5286 (initialize_known_windows, tui_register_window)
5287 (tui_layout_split::remove_windows, initialize_layouts)
5288 (tui_new_layout_command): Don't use hard-coded window names.
5289
5290 2020-06-16 Tom Tromey <tom@tromey.com>
5291
5292 PR tui/25348:
5293 * tui/tui.c (tui_ensure_readline_initialized): Rename from
5294 tui_initialize_readline. Only run once. Call rl_initialize.
5295 * tui/tui.h (tui_ensure_readline_initialized): Rename from
5296 tui_initialize_readline.
5297 * tui/tui-io.c (tui_setup_io): Call
5298 tui_ensure_readline_initialized.
5299 * tui/tui-interp.c (tui_interp::init): Update.
5300
5301 2020-06-16 Tom Tromey <tom@tromey.com>
5302
5303 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
5304 Also preserve the status window.
5305
5306 2020-06-16 Tom Tromey <tom@tromey.com>
5307
5308 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
5309 where m_window==nullptr.
5310
5311 2020-06-15 Tom Tromey <tromey@adacore.com>
5312
5313 * windows-nat.c (windows_nat::handle_output_debug_string):
5314 Update.
5315 (windows_nat::handle_ms_vc_exception): Update.
5316 * target.h (target_read_string): Change API.
5317 * target.c (target_read_string): Change API.
5318 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
5319 Update.
5320 * solib-frv.c (frv_current_sos): Update.
5321 * solib-dsbt.c (dsbt_current_sos): Update.
5322 * solib-darwin.c (darwin_current_sos): Update.
5323 * linux-thread-db.c (inferior_has_bug): Update.
5324 * expprint.c (print_subexp_standard): Update.
5325 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
5326 (ada_exception_message_1): Update.
5327
5328 2020-06-15 Tom Tromey <tromey@adacore.com>
5329
5330 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
5331
5332 2020-06-15 Tom Tromey <tromey@adacore.com>
5333
5334 * valprint.c (read_string): Update comment.
5335 * target.c (MIN): Remove.
5336 (target_read_string): Rewrite.
5337
5338 2020-06-15 Tom Tromey <tromey@adacore.com>
5339
5340 * corefile.c (read_memory_string): Remove.
5341 * ada-valprint.c (ada_value_print_ptr): Update.
5342 * ada-lang.h (ada_tag_name): Change return type.
5343 * ada-lang.c (type_from_tag): Update.
5344 (ada_tag_name_from_tsd): Change return type. Use
5345 target_read_string.
5346 (ada_tag_name): Likewise.
5347 * gdbcore.h (read_memory_string): Don't declare.
5348
5349 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
5350
5351 * symtab.c (rbreak_command): Ignore Windows drive colon.
5352
5353 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
5354
5355 * NEWS: Mention removed GDBserver host support.
5356
5357 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
5358
5359 * features/riscv/rebuild-csr-xml.sh: Updated.
5360
5361 2020-06-11 Tom Tromey <tom@tromey.com>
5362
5363 PR gdb/18318:
5364 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
5365
5366 2020-06-09 Jonny Grant <jg@jguk.org>
5367 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
5368
5369 * main.c (captured_main_1): Don't print new line after help.
5370 (print_gdb_help): add mailing list and IRC channel information
5371 to --help. Add new lines between items in the footer. Remove
5372 quotes around bug url.
5373
5374 2020-06-11 Keith Seitz <keiths@redhat.com>
5375
5376 PR gdb/21356
5377 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
5378 Resolve typedefs for type length calculations.
5379
5380 2020-06-10 Tom de Vries <tdevries@suse.de>
5381
5382 PR ada/24713
5383 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
5384 (write_psymbols): Enable .gdb_index for ada.
5385 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
5386 ada.
5387
5388 2020-06-10 Tom de Vries <tdevries@suse.de>
5389
5390 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
5391 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
5392 namei" instead of "const char *name" argument.
5393 (dw2_map_matching_symbols): Use "offset_type namei" variant of
5394 dw2_symtab_iter_init.
5395
5396 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5397
5398 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
5399 to use type::field and field::type instead.
5400
5401 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5402
5403 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
5404 to use field::type instead.
5405
5406 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5407
5408 * gdbtypes.h (struct field) <type, set_type>: New methods.
5409 Rename `type` field to...
5410 <m_type>: ... this. Change references throughout to use type or
5411 set_type methods.
5412 (FIELD_TYPE): Use field::type. Change call sites that modify
5413 the field's type to use field::set_type instead.
5414
5415 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5416
5417 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
5418 to use type::index_type instead.
5419
5420 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5421
5422 * gdbtypes.h (struct type) <index_type, set_index_type>: New
5423 methods.
5424 (TYPE_INDEX_TYPE): Use type::index_type.
5425 * gdbtypes.c (create_array_type_with_stride): Likewise.
5426
5427 2020-06-07 Tom Tromey <tom@tromey.com>
5428
5429 * valprint.c (generic_val_print_float): Remove "embedded_offset"
5430 parameter.
5431 (generic_value_print): Update.
5432
5433 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5434
5435 Revert commit 982a38f60b0.
5436 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
5437
5438 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5439
5440 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
5441 avoid use after free.
5442
5443 2020-06-05 Tom de Vries <tdevries@suse.de>
5444
5445 * NEWS: Fix typos.
5446
5447 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
5448
5449 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
5450 the per_bfd object.
5451 (dwarf2_read_debug_names): Likewise.
5452 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
5453 object when re-using a per_bfd object with an index.
5454
5455 2020-06-03 Tom de Vries <tdevries@suse.de>
5456
5457 PR symtab/26046
5458 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
5459 children for C++.
5460 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
5461 DW_TAG_subprogram.
5462
5463 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5464
5465 * ada-lang.c (ada_language_data): Delete skip_trampoline
5466 initializer.
5467 * c-lang.c (c_language_data): Likewise.
5468 (cplus_language_data): Likewise.
5469 (cplus_language::skip_trampoline): New member function.
5470 (asm_language_data): Delete skip_trampoline initializer.
5471 (minimal_language_data): Likewise.
5472 * d-lang.c (d_language_data): Likewise.
5473 * f-lang.c (f_language_data): Likewise.
5474 * go-lang.c (go_language_data): Likewise.
5475 * language.c (unk_lang_trampoline): Delete function.
5476 (skip_language_trampoline): Update.
5477 (unknown_language_data): Delete skip_trampoline initializer.
5478 (auto_language_data): Likewise.
5479 * language.h (language_data): Delete skip_trampoline field.
5480 (language_defn::skip_trampoline): New function.
5481 * m2-lang.c (m2_language_data): Delete skip_trampoline
5482 initializer.
5483 * objc-lang.c (objc_skip_trampoline): Delete function, move
5484 implementation to objc_language::skip_trampoline.
5485 (objc_language_data): Delete skip_trampoline initializer.
5486 (objc_language::skip_trampoline): New member function with
5487 implementation from objc_skip_trampoline.
5488 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5489 initializer.
5490 * p-lang.c (pascal_language_data): Likewise.
5491 * rust-lang.c (rust_language_data): Likewise.
5492
5493 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5494
5495 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5496 (ada_language::demangle): New member function.
5497 * c-lang.c (c_language_data): Delete la_demangle initializer.
5498 (cplus_language_data): Delete la_demangle initializer.
5499 (cplus_language::demangle): New member function.
5500 (asm_language_data): Delete la_demangle initializer.
5501 (minimal_language_data): Delete la_demangle initializer.
5502 * d-lang.c (d_language_data): Delete la_demangle initializer.
5503 (d_language::demangle): New member function.
5504 * f-lang.c (f_language_data): Delete la_demangle initializer.
5505 (f_language::demangle): New member function.
5506 * go-lang.c (go_language_data): Delete la_demangle initializer.
5507 (go_language::demangle): New member function.
5508 * language.c (language_demangle): Update.
5509 (unk_lang_demangle): Delete.
5510 (unknown_language_data): Delete la_demangle initializer.
5511 (unknown_language::demangle): New member function.
5512 (auto_language_data): Delete la_demangle initializer.
5513 (auto_language::demangle): New member function.
5514 * language.h (language_data): Delete la_demangle field.
5515 (language_defn::demangle): New function.
5516 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5517 * objc-lang.c (objc_language_data): Delete la_demangle
5518 initializer.
5519 (objc_language::demangle): New member function.
5520 * opencl-lang.c (opencl_language_data): Delete la_demangle
5521 initializer.
5522 * p-lang.c (pascal_language_data): Likewise.
5523 * rust-lang.c (rust_language_data): Likewise.
5524 (rust_language::demangle): New member function.
5525
5526 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5527
5528 * ada-lang.c (ada_language_data): Delete la_print_type
5529 initializer.
5530 (ada_language::print_type): New member function.
5531 * c-lang.c (c_language_data): Delete la_print_type initializer.
5532 (c_language::print_type): New member function.
5533 (cplus_language_data): Delete la_print_type initializer.
5534 (cplus_language::print_type): New member function.
5535 (asm_language_data): Delete la_print_type initializer.
5536 (asm_language::print_type): New member function.
5537 (minimal_language_data): Delete la_print_type initializer.
5538 (minimal_language::print_type): New member function.
5539 * d-lang.c (d_language_data): Delete la_print_type initializer.
5540 (d_language::print_type): New member function.
5541 * f-lang.c (f_language_data): Delete la_print_type initializer.
5542 (f_language::print_type): New member function.
5543 * go-lang.c (go_language_data): Delete la_print_type initializer.
5544 (go_language::print_type): New member function.
5545 * language.c (unk_lang_print_type): Delete.
5546 (unknown_language_data): Delete la_print_type initializer.
5547 (unknown_language::print_type): New member function.
5548 (auto_language_data): Delete la_print_type initializer.
5549 (auto_language::print_type): New member function.
5550 * language.h (language_data): Delete la_print_type field.
5551 (language_defn::print_type): New function.
5552 (LA_PRINT_TYPE): Update.
5553 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5554 (m2_language::print_type): New member function.
5555 * objc-lang.c (objc_language_data): Delete la_print_type
5556 initializer.
5557 (objc_language::print_type): New member function.
5558 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5559 to opencl_language::print_type.
5560 (opencl_language_data): Delete la_print_type initializer.
5561 (opencl_language::print_type): New member function, implementation
5562 from opencl_print_type.
5563 * p-lang.c (pascal_language_data): Delete la_print_type
5564 initializer.
5565 (pascal_language::print_type): New member function.
5566 * rust-lang.c (rust_print_type): Delete, implementation moved to
5567 rust_language::print_type.
5568 (rust_language_data): Delete la_print_type initializer.
5569 (rust_language::print_type): New member function, implementation
5570 from rust_print_type.
5571
5572 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5573
5574 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5575 implementation moves to...
5576 (ada_language::sniff_from_mangled_name): ...here. Update return
5577 type.
5578 (ada_language_data): Delete la_sniff_from_mangled_name
5579 initializer.
5580 * c-lang.c (c_language_data): Likewise.
5581 (cplus_language_data): Likewise.
5582 (cplus_language::sniff_from_mangled_name): New member function,
5583 implementation taken from gdb_sniff_from_mangled_name.
5584 (asm_language_data): Delete la_sniff_from_mangled_name
5585 initializer.
5586 (minimal_language_data): Likewise.
5587 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5588 implementation moves to cplus_language::sniff_from_mangled_name.
5589 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5590 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5591 moves to...
5592 (d_language::sniff_from_mangled_name): ...here.
5593 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5594 * f-lang.c (f_language_data): Likewise.
5595 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5596 moves to...
5597 (go_language::sniff_from_mangled_name): ...here.
5598 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5599 * language.c (language_sniff_from_mangled_name): Delete.
5600 (unknown_language_data): Delete la_sniff_from_mangled_name
5601 initializer.
5602 (auto_language_data): Likewise.
5603 * language.h (language_data): Delete la_sniff_from_mangled_name
5604 field.
5605 (language_defn::sniff_from_mangled_name): New function.
5606 (language_sniff_from_mangled_name): Delete declaration.
5607 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5608 field.
5609 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5610 implementation moves to...
5611 (objc_language::sniff_from_mangled_name): ...here.
5612 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5613 * opencl-lang.c (opencl_language_data): Likewise.
5614 * p-lang.c (pascal_language_data): Likewise.
5615 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5616 implementation moves to...
5617 (rust_language::sniff_from_mangled_name): ...here.
5618 (rust_language_data): Delete la_sniff_from_mangled_name
5619 initializer.
5620 * symtab.c (symbol_find_demangled_name): Call
5621 sniff_from_mangled_name member function.
5622
5623 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5624
5625 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5626 initializer.
5627 * c-lang.c (c_language_data): Likewise.
5628 (cplus_language_data): Likewise.
5629 (cplus_language::search_name_hash): New member function.
5630 (asm_language_data): Delete la_search_name_hash initializer.
5631 (minimal_language_data): Likewise.
5632 * d-lang.c (d_language_data): Likewise.
5633 * dictionary.c (default_search_name_hash): Rename to...
5634 (language_defn::search_name_hash): ...this.
5635 * f-lang.c (f_language_data): Likewise.
5636 (f_language::search_name_hash): New member function.
5637 * go-lang.c (go_language_data): Delete la_search_name_hash
5638 initializer.
5639 * language.c (unknown_language_data): Likewise.
5640 (auto_language_data): Likewise.
5641 * language.h (struct language_data): Delete la_search_name_hash
5642 field.
5643 (language_defn::search_name_hash): Declare new member function.
5644 (default_search_name_hash): Delete declaration.
5645 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5646 initializer.
5647 * objc-lang.c (objc_language_data): Likewise.
5648 * opencl-lang.c (opencl_language_data): Likewise.
5649 * p-lang.c (pascal_language_data): Likewise.
5650 * rust-lang.c (rust_language_data): Likewise.
5651 * symtab.c (search_name_hash): Update call.
5652
5653 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5654
5655 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5656 initializer.
5657 * c-lang.c (class compile_instance): Declare.
5658 (c_language_data): Delete la_get_compile_instance initializer.
5659 (c_language::get_compile_instance): New member function.
5660 (cplus_language_data): Delete la_get_compile_instance initializer.
5661 (cplus_language::get_compile_instance): New member function.
5662 (asm_language_data): Delete la_get_compile_instance initializer.
5663 (minimal_language_data): Likewise.
5664 * c-lang.h (c_get_compile_context): Update comment.
5665 (cplus_get_compile_context): Update comment.
5666 * compile/compile.c (compile_to_object): Update calls, don't rely
5667 on function pointer being NULL.
5668 * d-lang.c (d_language_data): Delete la_get_compile_instance
5669 initializer.
5670 * f-lang.c (f_language_data): Likewise.
5671 * go-lang.c (go_language_data): Likewise.
5672 * language.c (unknown_language_data): Likewise.
5673 (auto_language_data): Likewise.
5674 * language.h (language_data): Delete la_get_compile_instance field.
5675 (language_defn::get_compile_instance): New member function.
5676 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5677 initializer.
5678 * objc-lang.c (objc_language_data): Likewise.
5679 * opencl-lang.c (opencl_language_data): Likewise.
5680 * p-lang.c (pascal_language_data): Likewise.
5681 * rust-lang.c (rust_language_data): Likewise.
5682
5683 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5684
5685 * ada-lang.c (ada_add_all_symbols): Update comment.
5686 (ada_iterate_over_symbols): Delete, move implementation to...
5687 (ada_language::iterate_over_symbols): ...here, a new member
5688 function, rewrite to use range based for loop.
5689 (ada_language_data): Delete la_iterate_over_symbols initializer.
5690 * c-lang.c (c_language_data): Likewise.
5691 (cplus_language_data): Likewise.
5692 (asm_language_data): Likewise.
5693 (minimal_language_data): Likewise.
5694 * d-lang.c (d_language_data): Likewise.
5695 * f-lang.c (f_language_data): Likewise.
5696 * go-lang.c (go_language_data): Likewise.
5697 * language.c (unknown_language_data): Likewise.
5698 (auto_language_data): Likewise.
5699 * language.h (language_data): Delete la_iterate_over_symbols field.
5700 (language_defn::iterate_over_symbols): New member function.
5701 (LA_ITERATE_OVER_SYMBOLS): Update.
5702 * linespec.c (iterate_over_all_matching_symtabs): Update.
5703 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5704 initializer.
5705 * objc-lang.c (objc_language_data): Likewise.
5706 * opencl-lang.c (opencl_language_data): Likewise.
5707 * p-lang.c (pascal_language_data): Likewise.
5708 * rust-lang.c (rust_language_data): Likewise.
5709
5710 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5711
5712 * ada-lang.c (ada_language_data): Delete
5713 la_lookup_transparent_type initializer.
5714 * c-lang.c (c_language_data): Likewise.
5715 (cplus_language_data): Likewise.
5716 (cplus_language::lookup_transparent_type): New member function.
5717 (asm_language_data): Delete la_lookup_transparent_type
5718 initializer.
5719 (minimal_language_data): Likewise.
5720 * d-lang.c (d_language_data): Likewise.
5721 * f-lang.c (f_language_data): Likewise.
5722 * go-lang.c (go_language_data): Likewise.
5723 * language.c (unknown_language_data): Likewise.
5724 (auto_language_data): Likewise.
5725 * language.h (struct language_data): Delete
5726 la_lookup_transparent_type field.
5727 (language_defn::lookup_transparent_type): New member function.
5728 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5729 initializer.
5730 * objc-lang.c (objc_language_data): Likewise.
5731 * opencl-lang.c (opencl_language_data): Likewise.
5732 * p-lang.c (pascal_language_data): Likewise.
5733 * rust-lang.c (rust_language_data): Likewise.
5734 * symtab.c (symbol_matches_domain): Update call.
5735
5736 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5737
5738 * ada-lang.c (ada_language_arch_info): Delete function, move
5739 implementation to...
5740 (ada_language::language_arch_info): ...here, a new member
5741 function.
5742 (ada_language_data): Delete la_language_arch_info.
5743 * c-lang.c (c_language_data): Likewise.
5744 (c_language::language_arch_info): New member function.
5745 (cplus_language_arch_info): Delete function, move
5746 implementation to...
5747 (cplus_language::language_arch_info): ...here, a new member
5748 function.
5749 (cplus_language_data): Delete la_language_arch_info.
5750 (asm_language_data): Likewise.
5751 (asm_language::language_arch_info): New member function.
5752 (minimal_language_data): Delete la_language_arch_info.
5753 (minimal_language::language_arch_info): New member function.
5754 * d-lang.c (d_language_arch_info): Delete function, move
5755 implementation to...
5756 (d_language::language_arch_info): ...here, a new member
5757 function.
5758 (d_language_data): Delete la_language_arch_info.
5759 * f-lang.c (f_language_arch_info): Delete function, move
5760 implementation to...
5761 (f_language::language_arch_info): ...here, a new member
5762 function.
5763 (f_language_data): Delete la_language_arch_info.
5764 * go-lang.c (go_language_arch_info): Delete function, move
5765 implementation to...
5766 (go_language::language_arch_info): ...here, a new member
5767 function.
5768 (go_language_data): Delete la_language_arch_info.
5769 * language.c (unknown_language_data): Likewise.
5770 (unknown_language::language_arch_info): New member function.
5771 (auto_language_data): Delete la_language_arch_info.
5772 (auto_language::language_arch_info): New member function.
5773 (language_gdbarch_post_init): Update call to
5774 la_language_arch_info.
5775 * language.h (language_data): Delete la_language_arch_info
5776 function pointer.
5777 (language_defn::language_arch_info): New function.
5778 * m2-lang.c (m2_language_arch_info): Delete function, move
5779 implementation to...
5780 (m2_language::language_arch_info): ...here, a new member
5781 function.
5782 (m2_language_data): Delete la_language_arch_info.
5783 * objc-lang.c (objc_language_arch_info): Delete function, move
5784 implementation to...
5785 (objc_language::language_arch_info): ...here, a new member
5786 function.
5787 (objc_language_data): Delete la_language_arch_info.
5788 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5789 implementation to...
5790 (opencl_language::language_arch_info): ...here, a new member
5791 function.
5792 (opencl_language_data): Delete la_language_arch_info.
5793 * p-lang.c (pascal_language_arch_info): Delete function, move
5794 implementation to...
5795 (pascal_language::language_arch_info): ...here, a new member
5796 function.
5797 (pascal_language_data): Delete la_language_arch_info.
5798 * rust-lang.c (rust_language_arch_info): Delete function, move
5799 implementation to...
5800 (rust_language::language_arch_info): ...here, a new member
5801 function.
5802 (rust_language_data): Delete la_language_arch_info.
5803
5804 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5805
5806 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5807 initializer.
5808 * c-lang.c (c_language_data): Likewise.
5809 (cplus_language_data): Likewise.
5810 (cplus_language::pass_by_reference_info): New method.
5811 (asm_language_data): Delete la_pass_by_reference initializer.
5812 (minimal_language_data): Likewise.
5813 * cp-abi.c (cp_pass_by_reference): Remove use of
5814 default_pass_by_reference.
5815 * d-lang.c (d_language_data): Likewise.
5816 * f-lang.c (f_language_data): Likewise.
5817 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5818 default_pass_by_reference.
5819 * go-lang.c (go_language_data): Likewise.
5820 * language.c (language_pass_by_reference): Update.
5821 (default_pass_by_reference): Delete.
5822 (unknown_language_data): Delete la_pass_by_reference
5823 initializer.
5824 (auto_language_data): Likewise.
5825 * language.h (struct language_data): Delete la_pass_by_reference
5826 field.
5827 (language_defn::pass_by_reference_info): New member function.
5828 (default_pass_by_reference): Delete declaration.
5829 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5830 initializer.
5831 * objc-lang.c (objc_language_data): Likewise.
5832 * opencl-lang.c (opencl_language_data): Likewise.
5833 * p-lang.c (pascal_language_data): Likewise.
5834 * rust-lang.c (rust_language_data): Likewise.
5835
5836 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5837
5838 * ada-lang.c (ada_read_var_value): Delete function, move
5839 implementation to...
5840 (ada_language::read_var_value): ...here.
5841 (ada_language_data): Delete la_read_var_value initializer.
5842 * c-lang.c (c_language_data): Likewise.
5843 (cplus_language_data): Likewise.
5844 (minimal_language_data): Likewise.
5845 * d-lang.c (d_language_data): Likewise.
5846 * f-lang.c (f_language_data): Likewise.
5847 * findvar.c (default_read_var_value): Rename to...
5848 (language_defn::read_var_value): ...this.
5849 * findvar.c (read_var_value): Update header comment, and change to
5850 call member function instead of function pointer.
5851 * go-lang.c (go_language_data): Likewise.
5852 * language.c (unknown_language_data): Delete la_read_var_value
5853 initializer.
5854 (auto_language_data): Likewise.
5855 * language.h (struct language_data): Delete la_read_var_value
5856 field.
5857 (language_defn::read_var_value): New member function.
5858 (default_read_var_value): Delete declaration.
5859 * m2-lang.c (m2_language_data): Delete la_read_var_value
5860 initializer.
5861 * objc-lang.c (objc_language_data): Likewise.
5862 * opencl-lang.c (opencl_language_data): Likewise.
5863 * p-lang.c (pascal_language_data): Likewise.
5864 * rust-lang.c (rust_language_data): Likewise.
5865 * value.h (default_read_var_value): Delete declaration.
5866
5867 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5868
5869 * ada-lang.c (ada_print_array_index): Delete function, move
5870 implementation to...
5871 (ada_language::print_array_index): ...here.
5872 (ada_language_data): Delete la_print_array_index initializer.
5873 * c-lang.c (c_language_data): Likewise.
5874 (cplus_language_data): Likewise.
5875 (minimal_language_data): Likewise.
5876 * d-lang.c (d_language_data): Likewise.
5877 * f-lang.c (f_language_data): Likewise.
5878 * go-lang.c (go_language_data): Likewise.
5879 * language.c (default_print_array_index): Delete function, move
5880 implementation to...
5881 (language_defn::print_array_index): ...here.
5882 (unknown_language_data): Delete la_print_array_index initializer.
5883 (auto_language_data): Likewise.
5884 * language.h (struct language_data): Delete la_print_array_index
5885 field.
5886 (language_defn::print_array_index): New member function.
5887 (LA_PRINT_ARRAY_INDEX): Update.
5888 (default_print_array_index): Delete declaration.
5889 * m2-lang.c (m2_language_data): Delete la_print_array_index
5890 initializer.
5891 * objc-lang.c (objc_language_data): Likewise.
5892 * opencl-lang.c (opencl_language_data): Likewise.
5893 * p-lang.c (pascal_language_data): Likewise.
5894 * rust-lang.c (rust_language_data): Likewise.
5895
5896 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5897
5898 * gdb/ada-lang.c (ada_language_defn): Convert to...
5899 (ada_language_data): ...this.
5900 (class ada_language): New class.
5901 (ada_language_defn): New static global.
5902 * gdb/c-lang.c (c_language_defn): Convert to...
5903 (c_language_data): ...this.
5904 (class c_language): New class.
5905 (c_language_defn): New static global.
5906 (cplus_language_defn): Convert to...
5907 (cplus_language_data): ...this.
5908 (class cplus_language): New class.
5909 (cplus_language_defn): New static global.
5910 (asm_language_defn): Convert to...
5911 (asm_language_data): ...this.
5912 (class asm_language): New class.
5913 (asm_language_defn): New static global.
5914 (minimal_language_defn): Convert to...
5915 (minimal_language_data): ...this.
5916 (class minimal_language): New class.
5917 (minimal_language_defn): New static global.
5918 * gdb/d-lang.c (d_language_defn): Convert to...
5919 (d_language_data): ...this.
5920 (class d_language): New class.
5921 (d_language_defn): New static global.
5922 * gdb/f-lang.c (f_language_defn): Convert to...
5923 (f_language_data): ...this.
5924 (class f_language): New class.
5925 (f_language_defn): New static global.
5926 * gdb/go-lang.c (go_language_defn): Convert to...
5927 (go_language_data): ...this.
5928 (class go_language): New class.
5929 (go_language_defn): New static global.
5930 * gdb/language.c (unknown_language_defn): Remove declaration.
5931 (current_language): Initialize to nullptr, real initialization is
5932 moved to _initialize_language.
5933 (languages): Delete global.
5934 (language_defn::languages): Define.
5935 (set_language_command): Use language_defn::languages.
5936 (set_language): Likewise.
5937 (range_error): Likewise.
5938 (language_enum): Likewise.
5939 (language_def): Likewise.
5940 (add_set_language_command): Use language_def::languages for the
5941 language list, and language_def to lookup language pointers.
5942 (skip_language_trampoline): Use language_defn::languages.
5943 (unknown_language_defn): Convert to...
5944 (unknown_language_data): ...this.
5945 (class unknown_language): New class.
5946 (unknown_language_defn): New static global.
5947 (auto_language_defn): Convert to...
5948 (auto_language_data): ...this.
5949 (class auto_language): New class.
5950 (auto_language_defn): New static global.
5951 (language_gdbarch_post_init): Use language_defn::languages.
5952 (_initialize_language): Initialize current_language.
5953 * gdb/language.h (struct language_defn): Rename to...
5954 (struct language_data): ...this.
5955 (struct language_defn): New.
5956 (auto_language_defn): Delete.
5957 (unknown_language_defn): Delete.
5958 (minimal_language_defn): Delete.
5959 (ada_language_defn): Delete.
5960 (asm_language_defn): Delete.
5961 (c_language_defn): Delete.
5962 (cplus_language_defn): Delete.
5963 (d_language_defn): Delete.
5964 (f_language_defn): Delete.
5965 (go_language_defn): Delete.
5966 (m2_language_defn): Delete.
5967 (objc_language_defn): Delete.
5968 (opencl_language_defn): Delete.
5969 (pascal_language_defn): Delete.
5970 (rust_language_defn): Delete.
5971 * gdb/m2-lang.c (m2_language_defn): Convert to...
5972 (m2_language_data): ...this.
5973 (class m2_language): New class.
5974 (m2_language_defn): New static global.
5975 * gdb/objc-lang.c (objc_language_defn): Convert to...
5976 (objc_language_data): ...this.
5977 (class objc_language): New class.
5978 (objc_language_defn): New static global.
5979 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5980 (opencl_language_data): ...this.
5981 (class opencl_language): New class.
5982 (opencl_language_defn): New static global.
5983 * gdb/p-lang.c (pascal_language_defn): Convert to...
5984 (pascal_language_data): ...this.
5985 (class pascal_language): New class.
5986 (pascal_language_defn): New static global.
5987 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5988 language pointer, update comment format.
5989 * gdb/rust-lang.c (rust_language_defn): Convert to...
5990 (rust_language_data): ...this.
5991 (class rust_language): New class.
5992 (rust_language_defn): New static global.
5993
5994 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5995
5996 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5997 member variable.
5998 <m_stmt_at_address>: New member variable.
5999 (lnp_state_machine::record_line): Don't record some lines, update
6000 tracking of is_stmt at the same address.
6001 (lnp_state_machine::lnp_state_machine): Initialise new member
6002 variables.
6003
6004 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6005
6006 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
6007 "-include gnu-nat-mig.h".
6008 * gnu-nat-mig.h: New file.
6009 * gnu-nat.c: Include "gnu-nat-mig.h".
6010 (exc_server, msg_reply_server, notify_server,
6011 process_reply_server): Remove declarations.
6012
6013 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6014
6015 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
6016 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
6017 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
6018 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
6019 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
6020 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
6021 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
6022 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
6023 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
6024 to gnu_nat_target class.
6025 * gnu-nat.c: Likewise.
6026 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
6027 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
6028 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
6029 object.
6030 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
6031 instead of `gnu_target'.
6032
6033 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6034
6035 * i386-gnu-tdep.c: Include "gdbcore.h"
6036 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
6037 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
6038 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
6039 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
6040 i386_gnu_sigcontext_addr): New functions
6041 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
6042 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
6043 tdep.
6044
6045 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6046
6047 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
6048 before fork_inferior call. Avoid calling it if target_is_pushed returns
6049 true.
6050
6051 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6052
6053 * gnu-nat.h (gnu_target): New variable declaration.
6054 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
6055 gnu_target.
6056 * gnu-nat.c (gnu_target): New variable.
6057 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
6058 add_thread_silent, and add_thread calls.
6059 (gnu_nat_target::create_inferior): Pass gnu_target to
6060 add_thread_silent, thread_change_ptid call.
6061 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
6062 call.
6063
6064 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6065
6066 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
6067 (gnu_nat_target::find_memory_regions): Remove unused
6068 `old_address' variable.
6069
6070 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6071
6072 * gnu-nat.c: Include "gdbarch.h".
6073
6074 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6075
6076 * reply_mig_hack.awk (Error return): Cast function through
6077 void *, to bypass compiler function call check.
6078
6079 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6080
6081 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
6082 $(srcdir)/reply_mig_hack.awk.
6083
6084 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6085
6086 * gnu-nat.h (gnu_debug_flag): Set type to bool.
6087
6088 2020-05-30 Jonny Grant <jg@jguk.org>
6089
6090 * configure.ac (ACX_BUGURL): change bug URL to https.
6091
6092 2020-05-30 Pedro Alves <palves@redhat.com>
6093
6094 * cp-support.c (replace_typedefs_template): New.
6095 (replace_typedefs_qualified_name): Handle
6096 DEMANGLE_COMPONENT_TEMPLATE.
6097
6098 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
6099
6100 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
6101 dwarf2/index-cache.h, dwarf2/index-write.c,
6102 dwarf2/index-write.h, dwarf2/line-header.c,
6103 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
6104 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
6105 variables and fields from `dwarf2_per_objfile` to just
6106 `per_objfile` throughout.
6107
6108 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
6109
6110 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6111 <push_dwarf_reg_entry_value>: Add comment.
6112
6113 2020-05-28 Kevin Buettner <kevinb@redhat.com>
6114 Keith Seitz <keiths@redhat.com>
6115
6116 * python/python.c (do_start_initialization): Call PyEval_SaveThread
6117 instead of PyEval_ReleaseLock.
6118 (class gdbpy_gil): Move to earlier in file.
6119 (finalize_python): Set gdb_python_initialized.
6120 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
6121 when not initialized.
6122
6123 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
6124
6125 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6126 <push_dwarf_reg_entry_value>: Remove assert. Override
6127 per_objfile with caller_per_objfile.
6128
6129 2020-05-28 Tom de Vries <tdevries@suse.de>
6130
6131 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
6132 PR gold/15646 workaround to symbol kind "type".
6133
6134 2020-05-27 Tom Tromey <tromey@adacore.com>
6135
6136 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
6137
6138 2020-05-27 Tom Tromey <tromey@adacore.com>
6139
6140 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
6141 Use htab_find_with_hash.
6142 <add_abbrev>: Remove "abbrev_number" parameter.
6143 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
6144 "abbrev_number" parameter. Use htab_find_slot_with_hash.
6145 (hash_abbrev): Add comment.
6146 (abbrev_table::lookup_abbrev): Move to header file.
6147 (abbrev_table::read): Update.
6148
6149 2020-05-27 Tom Tromey <tromey@adacore.com>
6150
6151 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
6152 method.
6153 <canonical_name>: New member.
6154 <raw_name>: Rename from "name".
6155 (partial_die_info): Initialize canonical_name.
6156 (scan_partial_symbols): Check raw_name.
6157 (partial_die_parent_scope, partial_die_full_name)
6158 (add_partial_symbol, add_partial_subprogram)
6159 (add_partial_enumeration, load_partial_dies): Use "name" method.
6160 (partial_die_info::name): New method.
6161 (partial_die_info::read, guess_partial_die_structure_name)
6162 (partial_die_info::fixup): Update.
6163
6164 2020-05-27 Tom Tromey <tromey@adacore.com>
6165
6166 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
6167 <get_ref_die_offset>: Inline.
6168 <get_ref_die_offset_complaint>: New method.
6169 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
6170 (attribute::get_ref_die_offset_complaint): Rename from
6171 get_ref_die_offset. Just issue complaint.
6172
6173 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
6174
6175 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
6176
6177 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
6178
6179 * exec.c (exec_file_attach): Use errno value of first openp failure.
6180
6181 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
6182
6183 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
6184 Don't close thread handle.
6185
6186 2020-05-27 Tom Tromey <tom@tromey.com>
6187 Simon Marchi <simon.marchi@efficios.com>
6188
6189 * objfiles.h (struct objfile) <partial_symtabs>: Now a
6190 shared_ptr.
6191 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
6192 member.
6193 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
6194 dwarf2_per_bfd_objfile_data_key>: New globals.
6195 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
6196 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
6197 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
6198 shared.
6199 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
6200 short-circuit when sharing.
6201 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
6202 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
6203
6204 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6205
6206 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
6207 to...
6208 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
6209 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
6210
6211 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6212
6213 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
6214 build_name_components, find_name_components_bounds>:
6215 Add per_objfile parameter.
6216 (struct mapped_index) <symbol_name_at>: Likewise.
6217 (struct mapped_debug_names): Remove constructor.
6218 <dwarf2_per_objfile>: Remove field.
6219 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
6220 (mapped_index_base::find_name_components_bounds,
6221 mapped_index_base::build_name_components,
6222 dw2_expand_symtabs_matching_symbol): Likewise.
6223 (class mock_mapped_index) <symbol_name_at>: Likewise.
6224 (check_match): Likewise.
6225 (check_find_bounds_finds): Likewise.
6226 (test_mapped_index_find_name_component_bounds): Update.
6227 (CHECK_MATCH): Update.
6228 (dw2_expand_symtabs_matching): Update.
6229 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
6230 per_objfile parameter.
6231 <find_vec_in_debug_names>: Likewise.
6232 <m_per_objfile>: New field.
6233 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
6234 parameter.
6235 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
6236 (dw2_debug_names_iterator::next): Update.
6237 (dw2_debug_names_lookup_symbol): Update.
6238 (dw2_debug_names_expand_symtabs_for_function): Update.
6239 (dw2_debug_names_map_matching_symbols): Update.
6240 (dw2_debug_names_expand_symtabs_matching): Update.
6241 (dwarf2_read_debug_names): Update.
6242
6243 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6244
6245 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
6246 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
6247 move to dwarf2_per_objfile.
6248 <read_in_chain>: Remove.
6249 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
6250 remove_all_cus, age_comp_units>: New methods.
6251 <m_dwarf2_cus>: New member.
6252 (struct dwarf2_per_cu_data) <cu>: Remove.
6253 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
6254 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
6255 moved to methods of dwarf2_per_objfile.
6256 (dwarf2_clear_marks): Remove.
6257 (dwarf2_queue_item::~dwarf2_queue_item): Update.
6258 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
6259 (dwarf2_per_bfd::free_cached_comp_units): Remove.
6260 (dwarf2_per_objfile::remove_all_cus): New.
6261 (class free_cached_comp_units) <~free_cached_comp_units>:
6262 Update.
6263 (load_cu): Update.
6264 (dw2_do_instantiate_symtab): Adjust.
6265 (fill_in_sig_entry_from_dwo_entry): Adjust.
6266 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6267 (cutu_reader::cutu_reader): Likewise.
6268 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
6269 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
6270 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
6271 and dwarf2_per_objfile::age_comp_units.
6272 (load_partial_comp_unit): Update.
6273 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
6274 (process_queue): Likewise.
6275 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
6276 backlink.
6277 (dwarf2_read_addr_index): Likewise.
6278 (follow_die_offset): Likewise.
6279 (dwarf2_fetch_die_loc_sect_off): Likewise.
6280 (dwarf2_fetch_constant_bytes): Likewise.
6281 (dwarf2_fetch_die_type_sect_off): Likewise.
6282 (follow_die_sig_1): Likewise.
6283 (load_full_type_unit): Likewise.
6284 (read_signatured_type): Likewise.
6285 (dwarf2_cu::dwarf2_cu): Don't set cu field.
6286 (dwarf2_cu::~dwarf2_cu): Remove.
6287 (dwarf2_per_objfile::get_cu): New.
6288 (dwarf2_per_objfile::set_cu): New.
6289 (age_cached_comp_units): Rename to...
6290 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
6291 to std::unordered_map.
6292 (free_one_cached_comp_unit): Rename to...
6293 (dwarf2_per_objfile::remove_cu): ... this. Adjust
6294 to std::unordered_map.
6295 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
6296 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
6297 a dwarf2_per_objfile in data.
6298 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
6299 (dwarf2_clear_marks): Remove.
6300
6301 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6302
6303 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
6304 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
6305 (init_tu_and_read_dwo_dies): Likewise.
6306 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
6307 (cutu_reader::cutu_reader): Likewise.
6308 (load_partial_comp_unit): Likewise.
6309 (process_psymtab_comp_unit): Update.
6310 (build_type_psymtabs_1): Update.
6311 (process_skeletonless_type_unit): Update.
6312 (load_full_comp_unit): Update.
6313 (find_partial_die): Update.
6314 (dwarf2_read_addr_index): Update.
6315 (read_signatured_type): Update.
6316
6317 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6318
6319 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
6320 m_header_read_in>: New fields.
6321 <get_header>: New method.
6322 * dwarf2/read.c (per_cu_header_read_in): Remove.
6323 (dwarf2_per_cu_data::get_header): New.
6324 (dwarf2_per_cu_data::addr_size): Update.
6325 (dwarf2_per_cu_data::offset_size): Update.
6326 (dwarf2_per_cu_data::ref_addr_size): Update.
6327
6328 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6329
6330 * dwarf2/read.c (load_cu): Return dwarf2_cu.
6331 (dw2_do_instantiate_symtab): Update.
6332 (queue_and_load_all_dwo_tus): Change parameter from
6333 dwarf2_per_cu_data to dwarf2_cu.
6334 (dwarf2_fetch_die_loc_sect_off): Update.
6335 (dwarf2_fetch_constant_bytes): Update.
6336 (dwarf2_fetch_die_type_sect_off): Update.
6337
6338 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6339
6340 * dwarf2/read.c (process_full_comp_unit,
6341 process_full_type_unit): Remove per_cu, per_objfile paramters.
6342 Add dwarf2_cu parameter.
6343 (process_queue): Update.
6344
6345 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6346
6347 * dwarf2/read.c (create_cu_from_index_list): Replace
6348 dwarf2_per_objfile parameter with dwarf2_per_bfd.
6349 (create_cus_from_index_list): Likewise.
6350 (create_cus_from_index): Likewise.
6351 (create_signatured_type_table_from_index): Likewise.
6352 (create_cus_from_debug_names_list): Likewise.
6353 (create_cus_from_debug_names): Likewise.
6354 (dwarf2_read_gdb_index): Update.
6355 (dwarf2_read_debug_names): Update.
6356
6357 2020-05-27 Tom Tromey <tom@tromey.com>
6358 Simon Marchi <simon.marchi@efficios.com>
6359
6360 * dwarf2/read.h (struct dwarf2_per_objfile)
6361 <get_type_for_signatured_type, set_type_for_signatured_type>:
6362 New methods.
6363 <m_type_map>: New member.
6364 (struct signatured_type) <type>: Remove.
6365 * dwarf2/read.c
6366 (dwarf2_per_objfile::get_type_for_signatured_type,
6367 dwarf2_per_objfile::set_type_for_signatured_type): New.
6368 (get_signatured_type): Use new methods.
6369
6370 2020-05-27 Tom Tromey <tom@tromey.com>
6371 Simon Marchi <simon.marchi@efficios.com>
6372
6373 * dwarf2/read.h (struct type_unit_group_unshareable): New.
6374 (struct dwarf2_per_objfile) <type_units>: New member.
6375 <get_type_unit_group_unshareable>: New method.
6376 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
6377 num_symtabs, symtabs>: Remove; move to
6378 type_unit_group_unshareable.
6379 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
6380 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
6381 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
6382
6383 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6384
6385 * dwarf2/read.h (struct dwarf2_per_cu_data):
6386 <dwarf2_per_objfile>: Remove.
6387 * dwarf2/read.c (create_cu_from_index_list): Don't assign
6388 dwarf2_per_objfile.
6389 (create_signatured_type_table_from_index): Likewise.
6390 (create_signatured_type_table_from_debug_names): Likewise.
6391 (create_debug_type_hash_table): Likewise.
6392 (fill_in_sig_entry_from_dwo_entry): Likewise.
6393 (create_type_unit_group): Likewise.
6394 (read_comp_units_from_section): Likewise.
6395 (create_cus_hash_table): Likewise.
6396
6397 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6398
6399 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
6400 dwarf2_per_cu_data::dwarf2_per_objfile.
6401 (compute_compunit_symtab_includes): Likewise.
6402 (dwarf2_cu::start_symtab): Likewise.
6403
6404 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6405
6406 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
6407 parameter.
6408 * dwarf2/read.c (get_die_type_at_offset): Likewise.
6409 (read_namespace_alias): Update.
6410 (lookup_die_type): Update.
6411 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
6412 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
6413 Update.
6414 (disassemble_dwarf_expression): Update.
6415
6416 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6417
6418 * dwarf2/read.h (struct dwarf2_queue_item): Add
6419 dwarf2_per_objfile parameter, assign new parameter.
6420 <per_objfile>: New field.
6421 * dwarf2/read.c (free_one_cached_comp_unit): Add
6422 dwarf2_per_objfile parameter.
6423 (queue_comp_unit): Likewise.
6424 (dw2_do_instantiate_symtab): Update.
6425 (process_psymtab_comp_unit): Update.
6426 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
6427 (process_imported_unit_die): Update.
6428 (queue_and_load_dwo_tu): Update.
6429 (follow_die_offset): Update.
6430 (follow_die_sig_1): Update.
6431
6432 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6433
6434 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
6435 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
6436 (read_call_site_scope): Assign per_objfile.
6437 (dwarf2_per_cu_data::objfile): Remove.
6438 * gdbtypes.h (struct call_site) <per_objfile>: New member.
6439 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
6440 dwarf2_per_objfile parameter.
6441 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
6442 dwarf2_per_objfile parameter.
6443 (dwarf_expr_reg_to_entry_parameter): Add output
6444 dwarf2_per_objfile parameter.
6445 (locexpr_get_frame_base): Update.
6446 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
6447 <push_dwarf_reg_entry_value>: Update.
6448 <call_site_to_target_addr>: Update.
6449 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
6450 parameter.
6451 (value_of_dwarf_reg_entry): Update.
6452 (rw_pieced_value): Update.
6453 (indirect_synthetic_pointer): Update.
6454 (dwarf2_evaluate_property): Update.
6455 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
6456 parameter.
6457 (locexpr_read_variable): Update.
6458 (locexpr_get_symbol_read_needs): Update.
6459 (loclist_read_variable): Update.
6460
6461 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6462
6463 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6464 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6465 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6466 parameter.
6467 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6468 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6469 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6470 parameter.
6471 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6472 sect_variable_value): Add dwarf2_per_objfile parameter.
6473 (class dwarf_evaluate_loc_desc) <dwarf_call,
6474 dwarf_variable_value>: Update.
6475 (fetch_const_value_from_synthetic_pointer): Add
6476 dwarf2_per_objfile parameter.
6477 (fetch_const_value_from_synthetic_pointer): Update.
6478 (coerced_pieced_ref): Update.
6479 (class symbol_needs_eval_context) <dwarf_call,
6480 dwarf_variable_value>: Update.
6481 (dwarf2_compile_expr_to_ax): Update.
6482
6483 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6484
6485 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6486 parameter.
6487 (dwarf2_evaluate_loc_desc_full): Update.
6488
6489 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6490
6491 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6492 parameter.
6493 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6494 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6495 dwarf2_per_objfile parameter.
6496 (decode_debug_loc_dwo_addresses): Likewise.
6497 (dwarf2_find_location_expression): Update.
6498 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6499 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6500 parameter.
6501 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6502 parameter.
6503 (locexpr_describe_location_1): Likewise.
6504 (locexpr_describe_location): Update.
6505
6506 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6507
6508 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6509 Remove.
6510 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6511 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6512 (dwarf2_compile_property_to_c): Update.
6513 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6514 use text offset from objfile.
6515 (locexpr_tracepoint_var_ref): Update.
6516 (locexpr_generate_c_location): Update.
6517 (loclist_describe_location): Update.
6518 (loclist_tracepoint_var_ref): Update.
6519 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6520 dwarf2_per_objfile parameter.
6521 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6522 use text offset from objfile.
6523 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6524
6525 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6526
6527 * dwarf2/expr.h (struct dwarf_expr_context)
6528 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6529 <offset>: Remove.
6530 <per_objfile>: New member.
6531 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6532 dwarf2_per_objfile parameter. Don't set offset, set
6533 per_objfile.
6534 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6535 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6536 a dwarf2_per_objfile object instead of an offset.
6537 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6538 constructor.
6539 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6540 to dwarf2_expr_executor constructor. Don't set offset.
6541 (dwarf2_fetch_cfa_info): Update.
6542 (struct dwarf2_frame_cache) <text_offset>: Remove.
6543 <per_objfile>: New field.
6544 (dwarf2_frame_cache): Update.
6545 (dwarf2_frame_prev_register): Update.
6546 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6547 <dwarf_evaluate_loc_desc>: Add constructor.
6548 (dwarf2_evaluate_loc_desc_full): Update.
6549 (dwarf2_locexpr_baton_eval): Update.
6550 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6551 Add constructor.
6552 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6553
6554 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6555
6556 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6557 addr_sized_int_type>: Move to dwarf2_cu.
6558 <int_type>: Move to dwarf2_per_objfile.
6559 (struct dwarf2_per_objfile) <int_type>: Move here.
6560 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6561 addr_sized_int_type>: Move here.
6562 (read_func_scope): Update.
6563 (read_array_type): Update.
6564 (read_tag_string_type): Update.
6565 (attr_to_dynamic_prop): Update.
6566 (dwarf2_per_cu_data::int_type): Rename to...
6567 (dwarf2_per_objfile::int_type): ... this.
6568 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6569 (dwarf2_cu::addr_sized_int_type): ... this.
6570 (read_subrange_type): Update.
6571 (dwarf2_per_cu_data::addr_type): Rename to...
6572 (dwarf2_cu::addr_type): ... this.
6573 (set_die_type): Update.
6574
6575 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6576
6577 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6578 data through per_cu->cu.
6579
6580 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6581
6582 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6583 dwarf2_per_cu_data parameter fo dwarf2_cu.
6584 (lookup_dwo_type_unit): Likewise.
6585 (read_cutu_die_from_dwo): Likewise.
6586 (lookup_dwo_unit): Likewise.
6587 (open_and_init_dwo_file): Likewise.
6588 (lookup_dwo_cutu): Likewise.
6589 (lookup_dwo_comp_unit): Likewise.
6590 (lookup_dwo_type_unit): Likewise.
6591 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6592 (cutu_reader::cutu_reader): Update.
6593
6594 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6595
6596 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6597 parameter.
6598 (process_full_type_unit): Likewise.
6599 (process_queue): Update.
6600
6601 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6602
6603 * dwarf2/read.c (recursively_compute_inclusions): Add
6604 dwarf2_per_objfile parameter.
6605 (compute_compunit_symtab_includes): Likewise.
6606 (process_cu_includes): Update.
6607
6608 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6609
6610 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6611 parameter.
6612 (create_type_unit_group): Update.
6613 (process_psymtab_comp_unit_reader): Update.
6614 (build_type_psymtabs_reader): Update.
6615
6616 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6617
6618 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6619 object through m_this_cu->cu.
6620
6621 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6622
6623 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6624 the info parameter.
6625 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6626
6627 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6628
6629 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6630 per_objfile parameter.
6631 (load_full_type_unit): Add per_objfile parameter.
6632 (read_signatured_type): Likewise.
6633 (load_full_comp_unit): Likewise.
6634 (load_cu): Likewise.
6635 (dw2_do_instantiate_symtab): Likewise.
6636 (dw2_get_file_names): Likewise.
6637 (dw2_map_symtabs_matching_filename): Update.
6638 (dw_expand_symtabs_matching_file_matcher): Update.
6639 (dw2_map_symbol_filenames): Update.
6640 (process_psymtab_comp_unit): Add per_objfile parameter.
6641 (build_type_psymtabs_1): Update.
6642 (process_skeletonless_type_unit): Update.
6643 (dwarf2_build_psymtabs_hard): Update.
6644 (load_partial_comp_unit): Add per_objfile parameter.
6645 (scan_partial_symbols): Update.
6646 (load_full_comp_unit): Add per_objfile parameter.
6647 (process_imported_unit_die): Update.
6648 (create_cus_hash_table): Update.
6649 (find_partial_die): Update.
6650 (dwarf2_read_addr_index): Update.
6651 (follow_die_offset): Update.
6652 (dwarf2_fetch_die_loc_sect_off): Update.
6653 (dwarf2_fetch_constant_bytes): Update.
6654 (dwarf2_fetch_die_type_sect_off): Update.
6655 (follow_die_sig_1): Update.
6656 (load_full_type_unit): Add per_objfile parameter.
6657 (read_signatured_type): Likewise.
6658
6659 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6660
6661 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6662 of objfile_name.
6663
6664 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6665
6666 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6667 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6668 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6669 field.
6670 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6671 (create_cus_from_index): Update.
6672 (dwarf2_read_gdb_index): Update.
6673 (create_cus_from_debug_names): Update.
6674 (dwarf2_read_debug_names): Update.
6675 (get_abbrev_section_for_cu): Update.
6676 (create_all_comp_units): Update.
6677 (read_attribute_value): Update.
6678 (get_debug_line_section): Update.
6679 * dwarf2/index-cache.c (index_cache::store): Update.
6680 * dwarf2/index-write.c (save_gdb_index_command): Update.
6681 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6682
6683 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6684
6685 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6686 member.
6687 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6688 dwarf2_per_cu_data::per_bfd.
6689 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6690 (create_type_unit_group): Likewise.
6691 (queue_comp_unit): Remove reference to
6692 per_cu->dwarf2_per_objfile.
6693 (maybe_queue_comp_unit): Likewise.
6694 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6695 (create_cus_hash_table): Assign new field.
6696
6697 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6698
6699 * dwarf2/read.c: Replace
6700 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6701 dwarf2_cu->per_objfile throughout.
6702
6703 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6704
6705 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6706 parameter, don't use per_cu->dwarf2_per_objfile.
6707 (dw2_instantiate_symtab): Likewise.
6708 (dw2_find_last_source_symtab): Update.
6709 (dw2_map_expand_apply): Update.
6710 (dw2_lookup_symbol): Update.
6711 (dw2_expand_symtabs_for_function): Update.
6712 (dw2_expand_all_symtabs): Update.
6713 (dw2_expand_symtabs_with_fullname): Update.
6714 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6715 don't use per_cu->dwarf2_per_objfile.
6716 (dw2_expand_marked_cus): Update.
6717 (dw2_find_pc_sect_compunit_symtab): Update.
6718 (dw2_debug_names_lookup_symbol): Update.
6719 (dw2_debug_names_expand_symtabs_for_function): Update.
6720 (dw2_debug_names_map_matching_symbols): Update.
6721 (dwarf2_psymtab::expand_psymtab): Update.
6722
6723 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6724
6725 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6726 <per_objfile>: New member.
6727 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6728 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6729 call to dwarf2_cu.
6730 (cutu_reader::cutu_reader): Update.
6731 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6732
6733 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6734
6735 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6736 struct dwarf2_per_objfile.
6737 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6738 dwarf2_per_bfd.
6739 * dwarf2/read.c (set_die_type): Update.
6740 (get_die_type_at_offset): Update.
6741
6742 2020-05-27 Tom Tromey <tom@tromey.com>
6743 Simon Marchi <simon.marchi@efficios.com>
6744
6745 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6746 method.
6747 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6748 get_symtab, set_symtab>: New methods.
6749 <m_symtabs>: New field.
6750 (struct dwarf2_psymtab): Derive from partial_symtab.
6751 <readin_p, get_compunit_symtab>: Declare methods.
6752 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6753 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6754 New methods.
6755 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6756 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6757 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6758 (dw2_symtab_iter_next, dw2_print_stats)
6759 (dw2_expand_symtabs_with_fullname)
6760 (dw2_expand_symtabs_matching_one)
6761 (dw_expand_symtabs_matching_file_matcher)
6762 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6763 (dw2_debug_names_iterator::next)
6764 (dw2_debug_names_map_matching_symbols)
6765 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6766 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6767 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6768 New methods.
6769 (get_compunit_symtab, process_full_comp_unit)
6770 (process_full_type_unit): Update.
6771 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6772
6773 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6774
6775 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6776 then introduce a new dwarf2_per_objfile type.
6777 <read_line_string>: Move to the new dwarf2_per_objfile type.
6778 <objfile>: Likewise.
6779 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6780 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6781 dwarf2_per_objfile->per_bfd.
6782 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6783 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6784 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6785 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6786 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6787 (dwarf2_per_objfile::locate_sections): Rename to...
6788 (dwarf2_per_bfd::locate_sections): ... this.
6789 (dwarf2_per_objfile::get_cutu): Rename to...
6790 (dwarf2_per_bfd::get_cutu): ... this.
6791 (dwarf2_per_objfile::get_cu): Rename to...
6792 (dwarf2_per_bfd::get_cu): ... this.
6793 (dwarf2_per_objfile::get_tu): Rename to...
6794 (dwarf2_per_bfd::get_tu): ... this.
6795 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6796 (dwarf2_per_bfd::allocate_per_cu): ... this.
6797 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6798 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6799 (get_gdb_index_contents_ftype): Change parameter from
6800 dwarf2_per_objfile to dwarf2_per_bfd.
6801 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6802 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6803
6804 2020-05-27 Tom Tromey <tom@tromey.com>
6805 Simon Marchi <simon.marchi@efficios.com>
6806
6807 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6808 (allocate_piece_closure): Set "per_objfile" member.
6809 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6810 (locexpr_describe_location, loclist_describe_location): Use new
6811 member.
6812 * dwarf2/read.c (read_call_site_scope)
6813 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6814 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6815 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6816 handle_data_member_location): Set per_objfile member.
6817 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6818 member.
6819 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6820
6821 2020-05-27 Tom Tromey <tom@tromey.com>
6822
6823 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6824 allocate_signatured_type>: Declare new methods.
6825 <m_num_psymtabs>: New member.
6826 (struct dwarf2_per_cu_data) <index>: New member.
6827 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6828 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6829 (create_cu_from_index_list): Use allocate_per_cu.
6830 (create_signatured_type_table_from_index)
6831 (create_signatured_type_table_from_debug_names)
6832 (create_debug_type_hash_table, add_type_unit)
6833 (read_comp_units_from_section): Use allocate_signatured_type.
6834
6835 2020-05-27 Tom Tromey <tom@tromey.com>
6836
6837 * psymtab.c (partial_map_expand_apply)
6838 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6839 (psym_lookup_global_symbol_language)
6840 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6841 (psym_print_stats, psym_expand_symtabs_for_function)
6842 (psym_map_symbol_filenames, psym_map_matching_symbols)
6843 (psym_expand_symtabs_matching)
6844 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6845 (maintenance_check_psymtabs): Update.
6846 * psympriv.h (struct partial_symtab) <readin_p,
6847 get_compunit_symtab>: Add objfile parameter.
6848 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6849 Likewise.
6850 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6851 get_compunit_symtab>: Likewise.
6852 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6853
6854 2020-05-27 Tom Tromey <tom@tromey.com>
6855
6856 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6857 member.
6858 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6859 (create_cu_from_index_list)
6860 (create_signatured_type_table_from_index)
6861 (create_signatured_type_table_from_debug_names)
6862 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6863 (dwarf2_create_include_psymtab)
6864 (create_debug_type_hash_table, add_type_unit)
6865 (create_type_unit_group, read_comp_units_from_section)
6866 (dwarf2_compute_name, create_cus_hash_table)
6867 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6868 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6869 obstack.
6870 (dw2_get_real_path): Likewise. Change argument to
6871 dwarf2_per_objfile.
6872
6873 2020-05-27 Luis Machado <luis.machado@linaro.org>
6874
6875 PR tdep/26000
6876 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6877 for ldrd (immediate).
6878
6879 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6880
6881 * command.h: Add comment giving the name of class_tui.
6882 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6883 create the fake command for the help for class_tui.
6884
6885 2020-05-26 Tom Tromey <tromey@adacore.com>
6886
6887 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6888 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6889 (val_atr): New function.
6890 (value_val_atr): Use it.
6891 * ada-valprint.c (print_optional_low_bound): Change low bound
6892 handling for enums.
6893 (val_print_packed_array_elements): Don't call discrete_position.
6894 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6895 discrete_position for enum types.
6896 * language.c (default_print_array_index): Change type.
6897 * language.h (struct language_defn) <la_print_array_index>: Add
6898 index_type parameter, change type of index_value.
6899 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6900 (default_print_array_index): Update.
6901 * valprint.c (maybe_print_array_index): Don't call
6902 value_from_longest. Update.
6903 (value_print_array_elements): Don't call discrete_position.
6904
6905 2020-05-26 Tom Tromey <tromey@adacore.com>
6906
6907 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6908 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6909
6910 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6911
6912 PR gdb/13519
6913 * avr-tdep.c (avr_integer_to_address): Return data or code
6914 address accordingly to the second 'type' argument of the
6915 function.
6916
6917 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6918
6919 * infcmd.c, inferior.h: (construct_inferior_arguments):
6920 Moved function from here to gdbsupport/common-inferior.{h,cc}
6921
6922 2020-05-23 Tom Tromey <tom@tromey.com>
6923
6924 Revert commit eca1f90c:
6925 * NEWS: Remove entry for completion styling.
6926 * completer.c (_rl_completion_prefix_display_length): Move
6927 declaration later.
6928 (gdb_fnprint): Revert.
6929 (gdb_display_match_list_1): Likewise.
6930 * cli/cli-style.c (completion_prefix_style)
6931 (completion_difference_style, completion_suffix_style): Remove.
6932 (_initialize_cli_style): Revert.
6933 * cli/cli-style.h (completion_prefix_style)
6934 (completion_difference_style, completion_suffix_style): Don't
6935 declare.
6936
6937 2020-05-24 Pedro Alves <palves@redhat.com>
6938
6939 * symtab.c (completion_list_add_name): Return boolean indication
6940 of whether the symbol matched.
6941 (completion_list_add_symbol): Don't try to remove C++ aliases if
6942 the symbol didn't match in the first place.
6943 * symtab.h (completion_list_add_name): Return bool.
6944
6945 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6946
6947 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6948 type::field.
6949
6950 2020-05-23 Joel Brobecker <brobecker@adacore.com>
6951
6952 GDB 9.2 released.
6953
6954 2020-05-23 Tom Tromey <tom@tromey.com>
6955
6956 * NEWS: Add entry for completion styling.
6957 * completer.c (_rl_completion_prefix_display_length): Move
6958 declaration earlier.
6959 (gdb_fnprint): Use completion_style.
6960 (gdb_display_match_list_1): Likewise.
6961 * cli/cli-style.c (completion_prefix_style)
6962 (completion_difference_style, completion_suffix_style): New
6963 globals.
6964 (_initialize_cli_style): Register new globals.
6965 * cli/cli-style.h (completion_prefix_style)
6966 (completion_difference_style, completion_suffix_style): Declare.
6967
6968 2020-05-23 Pedro Alves <palves@redhat.com>
6969
6970 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6971 (parse_escape): Use ISDIGIT instead of isdigit.
6972 (puts_debug): Use gdb_isprint instead of isprint.
6973 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6974 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6975 ISSPACE instead of isspace.
6976 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6977 instead of isspace.
6978 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6979 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6980 instead of isxdigit and ISDIGIT instead of isdigit.
6981
6982 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6983
6984 * gdbtypes.h (struct type) <field>: New method.
6985 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6986 or type::field.
6987
6988 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6989
6990 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6991 (TYPE_FIELDS): Use type::fields. Change all call sites that
6992 modify the propery to use type::set_fields instead.
6993
6994 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6995
6996 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6997 type::num_fields instead.
6998
6999 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7000
7001 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
7002 methods.
7003 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
7004 that modify the number of fields to use type::set_num_fields
7005 instead.
7006
7007 2020-05-22 Tom Tromey <tromey@adacore.com>
7008
7009 * compile/compile-object-load.h (munmap_list_free): Don't
7010 declare.
7011
7012 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7013
7014 * annotate.c (annotate_source_line): Update return type, add call
7015 to update current symtab and line.
7016 * annotate.h (annotate_source_line): Update return type, and
7017 extend header comment.
7018 * source.c (info_line_command): Check annotation_level before
7019 calling annotate_source_line.
7020 * stack.c (print_frame_info): If calling annotate_source_line
7021 returns true, then don't print any other source line information.
7022
7023 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
7024
7025 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
7026
7027 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
7028
7029 * coffread.c (patch_type): Remove NULL check before xfree.
7030 * corefile.c (set_gnutarget): Likewise.
7031 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
7032 * exec.c (build_section_table): Likewise.
7033 * remote.c (remote_target::pass_signals): Likewise.
7034 * utils.c (n_spaces): Likewise.
7035 * cli/cli-script.c (document_command): Likewise.
7036 * i386-windows-tdep.c (core_process_module_section): Likewise.
7037 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
7038
7039 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
7040
7041 * symfile.c (reread_symbols): Clear objfile's section_offsets
7042 vector and section indices, re-compute them by calling
7043 sym_offsets.
7044
7045 2020-05-20 Tom Tromey <tromey@adacore.com>
7046
7047 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
7048 (desc_one_bound, desc_index_type): Compute field name.
7049
7050 2020-05-20 Tom de Vries <tdevries@suse.de>
7051
7052 PR symtab/25833
7053 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
7054
7055 2020-05-20 Alan Modra <amodra@gmail.com>
7056
7057 PR 25993
7058 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
7059 bfd_set_filename.
7060 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
7061 passed to bfd_set_filename.
7062 * symfile-mem.c (add_vsyscall_page): Likewise for string
7063 passed to symbol_file_add_from_memory.
7064 (symbol_file_add_from_memory): Make name param a const char* and
7065 don't strdup.
7066
7067 2020-05-20 Alan Modra <amodra@gmail.com>
7068
7069 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
7070 rather than accessing bfd->filename directly.
7071 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
7072 and use bfd_section_name.
7073 * dwarf2/frame.c (decode_frame_entry): Likewise.
7074 * exec.c (exec_set_section_address): Likewise.
7075 * solib-aix.c (solib_aix_bfd_open): Likewise.
7076 * stap-probe.c (get_stap_base_address): Likewise.
7077 * symfile.c (reread_symbols): Likewise.
7078
7079 2020-05-19 Tom Tromey <tromey@adacore.com>
7080
7081 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
7082
7083 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7084
7085 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
7086
7087 2020-05-19 Pedro Alves <palves@redhat.com>
7088
7089 * NEWS (set exec-file-mismatch): Adjust entry.
7090 * exec.c: Include "build-id.h".
7091 (validate_exec_file): Try to match build IDs instead of filenames.
7092 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
7093 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
7094 and pass down 'warn_if_slow'.
7095 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
7096 gdb_bfd_open_closure to pass it down.
7097 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
7098
7099 2020-05-19 Pedro Alves <palves@redhat.com>
7100
7101 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
7102 * target.c (target_fileio_open_1): Rename to target_fileio_open
7103 and make extern. Use bool.
7104 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
7105 (target_fileio_read_alloc_1): Adjust.
7106 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
7107 (target_fileio_open_warn_if_slow): Delete declaration.
7108
7109 2020-05-19 Pedro Alves <palves@redhat.com>
7110
7111 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
7112 Adjust all callers.
7113
7114 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
7115
7116 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
7117 whether disp is negative.
7118
7119 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7120
7121 * symfile.h (struct symfile_segment_data)
7122 <~symfile_segment_data>: Remove.
7123 <segment_info>: Change to std::vector.
7124 * symfile.c (default_symfile_segments): Update.
7125 * elfread.c (elf_symfile_segments): Update.
7126
7127 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7128
7129 * symfile.h (struct symfile_segment_data) <struct segment>: New.
7130 <segments>: New.
7131 <segment_bases, segment_sizes>: Remove.
7132 * symfile.c (default_symfile_segments): Update.
7133 * elfread.c (elf_symfile_segments): Update.
7134 * remote.c (remote_target::get_offsets): Update.
7135 * solib-target.c (solib_target_relocate_section_addresses):
7136 Update.
7137
7138 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7139
7140 * symfile.h (struct symfile_segment_data): Initialize fields.
7141 <~symfile_segment_data>: Add.
7142 (symfile_segment_data_up): New.
7143 (struct sym_fns) <sym_segments>: Return a
7144 symfile_segment_data_up.
7145 (default_symfile_segments): Return a symfile_segment_data_up.
7146 (free_symfile_segment_data): Remove.
7147 (get_symfile_segment_data): Return a symfile_segment_data_up.
7148 * symfile.c (default_symfile_segments): Likewise.
7149 (get_symfile_segment_data): Likewise.
7150 (free_symfile_segment_data): Remove.
7151 (symfile_find_segment_sections): Update.
7152 * elfread.c (elf_symfile_segments): Return a
7153 symfile_segment_data_up.
7154 * remote.c (remote_target::get_offsets): Update.
7155 * solib-target.c (solib_target_relocate_section_addresses):
7156 Update.
7157 * symfile-debug.c (debug_sym_segments): Return a
7158 symfile_segment_data_up.
7159
7160 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7161
7162 PR build/25981
7163 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
7164 Hardcode register numbers.
7165
7166 PR build/25981
7167 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
7168 procfs_find_LDT_entry): Remove.
7169 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
7170 procfs_find_LDT_entry): Remove.
7171 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
7172 Remove.
7173
7174 2020-05-17 Pedro Alves <palves@redhat.com>
7175 Andrew Burgess <andrew.burgess@embecosm.com>
7176 Keno Fischer <keno@juliacomputing.com>
7177
7178 PR gdb/25741
7179 * breakpoint.c (build_target_condition_list): Update comments.
7180 (build_target_command_list): Update comments and skip matching
7181 locations.
7182 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
7183 a separate function. Simplify "set breakpoint auto-hw off"
7184 handling.
7185 (insert_breakpoints): Update comment.
7186 (tracepoint_locations_match): New parameter. For breakpoints,
7187 compare location types too, if the caller wants to.
7188 (handle_automatic_hardware_breakpoints): New functions.
7189 (bp_location_is_less_than): Also sort by location type and
7190 hardware breakpoint length.
7191 (update_global_location_list): Handle "set breakpoint auto-hw on"
7192 here.
7193 (update_breakpoint_locations): Ask breakpoint_locations_match to
7194 ignore location types.
7195
7196 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
7197
7198 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
7199 type::name instead.
7200
7201 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
7202
7203 * gdbtypes.h (struct type) <name, set_name>: New methods.
7204 (TYPE_CODE): Use type::name. Change all call sites used to set
7205 the name to use type::set_name instead.
7206
7207 2020-05-16 Tom Tromey <tom@tromey.com>
7208
7209 * top.c (quit_force): Update.
7210 * infrun.c (handle_no_resumed): Update.
7211 * top.h (all_uis): New function.
7212 (ALL_UIS): Remove.
7213
7214 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
7215
7216 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
7217
7218 2020-05-16 Pedro Alves <palves@redhat.com>
7219
7220 * ia64-linux-nat.c
7221 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
7222 Declare method.
7223 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
7224
7225 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
7226
7227 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
7228 (sparc64_adi_info): Likewise.
7229
7230 2020-05-15 Tom Tromey <tom@tromey.com>
7231
7232 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
7233 block_objfile.
7234 (lookup_objfile_from_block): Remove.
7235 (lookup_symbol_in_block, lookup_symbol_in_static_block)
7236 (lookup_global_symbol): Use block_objfile.
7237 * symtab.h (lookup_objfile_from_block): Don't declare.
7238 * printcmd.c (clear_dangling_display_expressions): Use
7239 block_objfile.
7240 * parse.c (operator_check_standard): Use block_objfile.
7241
7242 2020-05-15 Tom Tromey <tom@tromey.com>
7243
7244 * language.c (language_alloc_type_symbol): Set
7245 SYMBOL_SECTION.
7246 * symtab.c (initialize_objfile_symbol): Remove.
7247 (allocate_symbol): Remove.
7248 (allocate_template_symbol): Remove.
7249 * dwarf2/read.c (fixup_go_packaging): Use "new".
7250 (new_symbol): Use "new".
7251 (read_variable): Don't call initialize_objfile_symbol. Use
7252 "new".
7253 (read_func_scope): Use "new".
7254 * xcoffread.c (process_xcoff_symbol): Don't call
7255 initialize_objfile_symbol.
7256 (SYMBOL_DUP): Remove.
7257 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
7258 "new".
7259 * symtab.h (allocate_symbol, initialize_objfile_symbol)
7260 (allocate_template_symbol): Don't declare.
7261 (struct symbol): Add copy constructor. Change defaults.
7262 * jit.c (finalize_symtab): Use "new".
7263 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
7264 Use "new".
7265 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7266 (common_block_end): Use "new".
7267 * mdebugread.c (parse_symbol): Use "new".
7268 (new_symbol): Likewise.
7269
7270 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7271
7272 * NEWS: Mention changes to help and apropos.
7273
7274 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7275
7276 * command.h (enum command_class): Improve comments, document
7277 that class_alias is for user-defined aliases, give the class
7278 name for each class, remove unused class_xdb.
7279 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
7280 * breakpoint.c (_initialize_breakpoint): Replace class_alias
7281 by a precise class.
7282 * infcmd.c (_initialize_infcmd): Likewise.
7283 * reverse.c (_initialize_reverse): Likewise.
7284 * stack.c (_initialize_stack): Likewise.
7285 * symfile.c (_initialize_symfile): Likewise.
7286 * tracepoint.c (_initialize_tracepoint): Likewise.
7287
7288 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7289
7290 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
7291 when their aliased command is traversed.
7292 (help_cmd): Add fput_command_names_styled call to
7293 output command name and aliases when command has an alias.
7294
7295 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7296
7297 * cli/cli-decode.h (help_cmd_list): Remove declaration.
7298 * cli/cli-decode.c (help_cmd_list): Declare as static,
7299 remove prefix argument, use bool for recurse arg, rework to show the aliases of
7300 a command together with the command.
7301 (fput_command_name_styled, fput_command_names_styled): New functions.
7302 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
7303 fput_command_name_styled.
7304 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
7305 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
7306
7307 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7308
7309 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
7310 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
7311 * command.h (cmd_show_list): Likewise.
7312 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
7313 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
7314
7315 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7316
7317 * unittests/command-def-selftests.c (traverse_command_structure):
7318 Verify all commands of a list have the same prefix command and
7319 that only the top cmdlist commands have a null prefix.
7320
7321 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7322
7323 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
7324 as prefix, not one of its aliases.
7325 (set_cmd_prefix): Remove.
7326 (do_add_cmd): Centralize the setting of the prefix of a command, when
7327 command is defined after its full chain of prefix commands.
7328 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
7329 (add_setshow_cmd_full): Likewise.
7330 (update_prefix_field_of_prefixed_commands): New function.
7331 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
7332 update_prefix_field_of_prefixed_commands.
7333 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
7334 addresses of remote_set_cmdlist and remote_show_cmdlist given
7335 as argument, not the address of an argument.
7336 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
7337 * gdb/remote.c (_initialize_remote): Likewise.
7338
7339 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7340
7341 * cli/cli-cmds.c (alias_command): Check for an existing alias
7342 using lookup_cmd_composition, as valid_command_p is too strict
7343 and forbids aliases that are the prefix of an existing alias
7344 or command.
7345 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
7346 command is properly recognised as a valid command.
7347
7348 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7349
7350 * unittests/help-doc-selftests.c: Rename to
7351 unittests/command-def-selftests.c
7352 * unittests/command-def-selftests.c (help_doc_tests): Update some
7353 comments.
7354 (command_structure_tests, traverse_command_structure): New namespace
7355 and function.
7356 (command_structure_invariants_tests): New function.
7357 (_initialize_command_def_selftests) Renamed from
7358 _initialize_help_doc_selftests, register command_structure_invariants
7359 selftest.
7360
7361 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7362
7363 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
7364 an alias of 'show'.
7365
7366 2020-05-15 Joel Brobecker <brobecker@adacore.com>
7367
7368 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
7369 ada_is_fixed_point_type. Update all callers.
7370 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
7371 all callers.
7372 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
7373 Update all callers.
7374 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
7375 print_fixed_point_type. Update all callers.
7376 * ada-valprint.c (ada_value_print_num): Replace call to
7377 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
7378
7379 2020-05-14 Kevin Buettner <kevinb@redhat.com>
7380
7381 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
7382 processors.
7383 (cpu_supports_bts): Add CV_AMD case.
7384
7385 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
7386 Simon Marchi <simon.marchi@efficios.com>
7387
7388 * infrun.c (stop_all_threads): Collect multiple wait events at
7389 each pass.
7390
7391 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
7392
7393 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
7394 type::code instead.
7395
7396 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
7397
7398 * gdbtypes.h (struct type) <code, set_code>: New methods.
7399 (TYPE_CODE): Use type::code. Change all call sites used to set
7400 the code to use type::set_code instead.
7401
7402 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7403 Tom de Vries <tdevries@suse.de>
7404 Pedro Alves <palves@redhat.com>
7405
7406 PR threads/25478
7407 * infrun.c (stop_all_threads): Do NOT ignore
7408 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
7409 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
7410 received.
7411 (handle_no_resumed): Remove code handling a live inferior with no
7412 threads.
7413 * remote.c (has_single_non_exited_thread): New.
7414 (remote_target::update_thread_list): Do not delete a thread if is
7415 the last thread of the process.
7416 * thread.c (thread_select): Call delete_exited_threads instead of
7417 prune_threads.
7418
7419 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7420
7421 * infrun.c (stop_all_threads): Enable/disable thread events of all
7422 targets. Move a debug message denoting the end of the function
7423 into the SCOPED_EXIT block.
7424
7425 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7426
7427 * process-stratum-target.h: Include <set>.
7428 (all_non_exited_process_targets, switch_to_target_no_thread): New
7429 function declarations.
7430 * process-stratum-target.c (all_non_exited_process_targets)
7431 (switch_to_target_no_thread): New function implementations.
7432
7433 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7434
7435 * infrun.c (handle_inferior_event): Extract out a piece of code
7436 into...
7437 (mark_non_executing_threads): ...this new function.
7438
7439 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7440
7441 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
7442 use.
7443
7444 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7445
7446 * regcache.c (regcache_read_pc_protected): New function
7447 implementation that returns 0 if the PC cannot read via
7448 'regcache_read_pc'.
7449 * infrun.c (proceed): Call 'regcache_read_pc_protected'
7450 instead of 'regcache_read_pc'.
7451 (keep_going_pass_signal): Ditto.
7452
7453 2020-05-13 Tom Tromey <tromey@adacore.com>
7454
7455 * ada-lang.c (align_value): Remove.
7456 (ada_template_to_fixed_record_type_1): Use align_up.
7457
7458 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7459
7460 * async-event.c: Update the copyright year.
7461 * async-event.h: Update the copyright year.
7462
7463 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
7464
7465 * objfiles.h (is_addr_in_objfile,
7466 shared_objfile_contains_address_p): Return bool.
7467 * objfile.c (is_addr_in_objfile,
7468 shared_objfile_contains_address_p): Return bool.
7469
7470 2020-05-11 Tom Tromey <tromey@adacore.com>
7471
7472 * cli/cli-cmds.c (info_command): Restore.
7473 (_initialize_cli_cmds): Use add_prefix_command for "info".
7474 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7475
7476 2020-05-11 Tom Tromey <tromey@adacore.com>
7477
7478 * ada-lang.c (ada_value_primitive_field): Now public.
7479 * ada-lang.h (ada_value_primitive_field): Declare.
7480 * ada-valprint.c (print_field_values): Use
7481 ada_value_primitive_field for wrapper fields.
7482
7483 2020-05-11 Tom de Vries <tdevries@suse.de>
7484
7485 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7486 MODULE_DOMAIN.
7487
7488 2020-05-11 Tom de Vries <tdevries@suse.de>
7489
7490 PR symtab/25941
7491 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7492 with length 0, if not gdb-produced.
7493 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7494
7495 2020-05-09 Tom de Vries <tdevries@suse.de>
7496
7497 PR gdb/25955
7498 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7499 calculation.
7500
7501 2020-05-09 Tom Tromey <tom@tromey.com>
7502
7503 * top.c (server_command): Now bool.
7504 * top.h (server_command): Now bool.
7505
7506 2020-05-08 Tom Tromey <tromey@adacore.com>
7507
7508 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7509 already being processed.
7510
7511 2020-05-08 Tom Tromey <tom@tromey.com>
7512
7513 * printcmd.c (struct display) <next>: Remove.
7514 <display>: New constructor.
7515 <exp_string>: Now a std::string.
7516 <enabled_p>: Now a bool.
7517 (display_number): Move definition earlier.
7518 (displays): Rename from display_chain. Now a std::vector.
7519 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7520 (display_command): Update.
7521 (do_one_display, disable_display)
7522 (enable_disable_display_command, do_enable_disable_display):
7523 Update.
7524 (free_display): Remove.
7525 (clear_displays): Rewrite.
7526 (delete_display): Update.
7527 (map_display_numbers): Use function_view. Remove "data"
7528 parameter. Update.
7529 (do_delete_display): Remove.
7530 (undisplay_command): Update.
7531 (do_one_display, do_displays, disable_display)
7532 (info_display_command): Update.
7533 (do_enable_disable_display): Remove.
7534 (enable_disable_display_command)
7535 (clear_dangling_display_expressions): Update.
7536
7537 2020-05-08 Tom Tromey <tom@tromey.com>
7538
7539 * symtab.c (set_symbol_cache_size)
7540 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7541 (maintenance_print_symbol_cache_statistics): Update.
7542 * symmisc.c (print_symbol_bcache_statistics)
7543 (print_objfile_statistics, maintenance_print_objfiles)
7544 (maintenance_info_symtabs, maintenance_check_symtabs)
7545 (maintenance_expand_symtabs, maintenance_info_line_tables):
7546 Update.
7547 * symfile-debug.c (set_debug_symfile): Update.
7548 * source.c (forget_cached_source_info): Update.
7549 * python/python.c (gdbpy_progspaces): Update.
7550 * psymtab.c (maintenance_info_psymtabs): Update.
7551 * probe.c (parse_probes): Update.
7552 * linespec.c (iterate_over_all_matching_symtabs)
7553 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7554 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7555 * exec.c (exec_target::close): Update.
7556 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7557 * breakpoint.c (print_one_breakpoint_location)
7558 (create_longjmp_master_breakpoint)
7559 (create_std_terminate_master_breakpoint): Update.
7560 * progspace.c (program_spaces): Now a std::vector.
7561 (maybe_new_address_space): Update.
7562 (add_program_space): Remove.
7563 (program_space::program_space): Update.
7564 (remove_program_space): Update.
7565 (number_of_program_spaces): Remove.
7566 (print_program_space, update_address_spaces): Update.
7567 * progspace.h (program_spaces): Change type.
7568 (ALL_PSPACES): Remove.
7569 (number_of_program_spaces): Don't declare.
7570 (struct program_space) <next>: Remove.
7571
7572 2020-05-08 Tom Tromey <tom@tromey.com>
7573
7574 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7575 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7576 (enable_break): Update.
7577 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7578 (frv_fdpic_find_canonical_descriptor): Update.
7579 (frv_fetch_objfile_link_map): Update.
7580 * progspace.c (program_space::free_all_objfiles): Update.
7581 (program_space::solibs): New method.
7582 * progspace.h (struct program_space) <solibs>: New method.
7583 * solist.h (master_so_list): Don't declare.
7584 (ALL_SO_LIBS): Remove.
7585 * solib.h (so_list_head): Remove.
7586 (update_solib_list): Update comment.
7587 * solib.c (master_so_list): Remove.
7588 (solib_used, update_solib_list, solib_add)
7589 (info_sharedlibrary_command, clear_solib)
7590 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7591
7592 2020-05-08 Tom Tromey <tom@tromey.com>
7593
7594 * extension.c (extension_languages): Now a std::array.
7595 (ALL_EXTENSION_LANGUAGES): Remove.
7596 (get_ext_lang_defn, get_ext_lang_of_file)
7597 (eval_ext_lang_from_control_command): Update.
7598 (finish_ext_lang_initialization)
7599 (auto_load_ext_lang_scripts_for_objfile)
7600 (ext_lang_type_printers::ext_lang_type_printers)
7601 (apply_ext_lang_type_printers)
7602 (ext_lang_type_printers::~ext_lang_type_printers)
7603 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7604 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7605 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7606 (get_matching_xmethod_workers, ext_lang_colorize)
7607 (ext_lang_before_prompt): Update.
7608 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7609
7610 2020-05-08 Tom Tromey <tom@tromey.com>
7611
7612 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7613 overload.
7614 <swap_string, m_string>: Remove.
7615 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7616 Update.
7617 * stabsread.c (define_symbol, read_type): Update.
7618 * linespec.c (find_linespec_symbols): Update.
7619 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7620 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7621 * dbxread.c (read_dbx_symtab): Update.
7622 * cp-support.h (cp_canonicalize_string_full)
7623 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7624 Return unique_xmalloc_ptr.
7625 * cp-support.c (inspect_type): Update.
7626 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7627 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7628 Likewise.
7629 * c-typeprint.c (print_name_maybe_canonical): Update.
7630 * break-catch-throw.c (check_status_exception_catchpoint):
7631 Update.
7632
7633 2020-05-08 Tom de Vries <tdevries@suse.de>
7634
7635 * infrun.c (follow_fork): Copy current_line and current_symtab to
7636 child thread.
7637
7638 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7639
7640 * async-event.c (struct async_signal_handler, struct
7641 async_event_handler): Reformat, remove typedef.
7642
7643 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7644
7645 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7646 access thistype->main_type->dyn_prop_list directly.
7647
7648 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7649
7650 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7651 (remove_dyn_prop): Remove. Update all users to use
7652 type::remove_dyn_prop.
7653 * gdbtypes.c (remove_dyn_prop): Rename to...
7654 (type::remove_dyn_prop): ... this.
7655
7656 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7657
7658 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7659 (add_dyn_prop): Remove. Update all users to use
7660 type::add_dyn_prop.
7661 * gdbtypes.c (add_dyn_prop): Rename to...
7662 (type::add_dyn_prop): ... this.
7663
7664 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7665
7666 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7667 (get_dyn_prop): Remove. Update all users to use
7668 type::dyn_prop.
7669 * gdbtypes.c (get_dyn_prop): Rename to...
7670 (type::dyn_prop): ... this.
7671
7672 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
7673
7674 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7675
7676 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
7677
7678 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7679 instruction, skip it if it's there.
7680
7681 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
7682
7683 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7684
7685 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
7686
7687 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7688 * gdbtypes.c (recursive_dump_type): Remove use of
7689 TYPE_INCOMPLETE.
7690
7691 2020-05-03 Tom Tromey <tom@tromey.com>
7692
7693 * breakpoint.c (catch_command, tcatch_command): Remove.
7694 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7695 add_show_prefix_cmd.
7696 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7697 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7698 Remove.
7699 (add_internal_problem_command): Use add_basic_prefix_cmd,
7700 add_show_prefix_cmd.
7701 * mips-tdep.c (set_mipsfpu_command): Remove.
7702 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7703 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7704 (_initialize_index_cache): Use add_basic_prefix_cmd.
7705 * memattr.c (dummy_cmd): Remove.
7706 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7707 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7708 (_initialize_tui_win): Use add_basic_prefix_cmd,
7709 add_show_prefix_cmd.
7710 * cli/cli-logging.c (set_logging_command): Remove.
7711 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7712 add_show_prefix_cmd.
7713 (show_logging_command): Remove.
7714 * target.c (target_command): Remove.
7715 (add_target): Use add_basic_prefix_cmd.
7716
7717 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
7718
7719 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7720
7721 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7722
7723 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7724 info_command.
7725
7726 2020-04-30 Kamil Rytarowski <n54@gmx.com>
7727
7728 * nbsd-nat.c (nbsd_enable_proc_events)
7729 (nbsd_nat_target::post_startup_inferior): Add.
7730 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7731 (nbsd_nat_target::update_thread_list): Rewrite.
7732 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7733 "PTRACE_LWP_CREATE".
7734 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7735
7736 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7737
7738 * stack.c (_initialize_stack): Remove duplicated creation
7739 of "frame" command and "f" alias.
7740
7741 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
7742
7743 PR gdb/18706
7744 * gdbtypes.c (check_typedef): Calculate size of array of
7745 stubbed type.
7746
7747 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
7748
7749 PR gdb/15559
7750 * i386-tdep.c (i386_push_dummy_call): Call
7751 i386_thiscall_push_dummy_call.
7752 (i386_thiscall_push_dummy_call): New function.
7753 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7754 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7755 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7756
7757 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7758
7759 * gdbarch.sh (do_read): Add shellcheck disable directive for
7760 warning SC2162.
7761
7762 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7763
7764 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7765 "referenced but not assigned" warning.
7766
7767 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7768
7769 * gdbarch.sh: Remove code that sets fallbackdefault.
7770
7771 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7772
7773 * gdbarch.sh: Use shell operators && and || instead of
7774 -a and -o.
7775
7776 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7777
7778 * gdbarch.sh: Use $(...) instead of `...`.
7779
7780 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7781
7782 * gdbarch.sh: Use double quotes around variables.
7783
7784 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7785
7786 * gdbarch.sh: Use %s with printf, instead of variables in the
7787 format string.
7788
7789 2020-04-29 Tom Tromey <tromey@adacore.com>
7790
7791 PR ada/25875:
7792 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7793 type fields here.
7794 (read_enumeration_type): Call
7795 update_enumeration_type_from_children later. Update comments.
7796 (process_enumeration_scope): Don't create type fields.
7797
7798 2020-04-29 Kamil Rytarowski <n54@gmx.com>
7799
7800 * nbsd-tdep.c: Include "xml-syscall.h".
7801 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7802
7803 2020-04-29 Kamil Rytarowski <n54@gmx.com>
7804
7805 * nbsd-nat.c: Include "sys/wait.h".
7806 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7807 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7808 (nbsd_nat_target::remove_exec_catchpoint)
7809 (nbsd_nat_target::set_syscall_catchpoint): Add.
7810 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7811 (nbsd_nat_target::insert_exec_catchpoint)
7812 (nbsd_nat_target::remove_exec_catchpoint)
7813 (nbsd_nat_target::set_syscall_catchpoint): Add.
7814 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7815 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7816 `nbsd_get_syscall_number'.
7817
7818 2020-04-29 Tom Tromey <tom@tromey.com>
7819
7820 * stack.c (print_block_frame_labels): Remove.
7821
7822 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
7823
7824 PR gdb/17320
7825 * ada-valprint.c (val_print_packed_array_elements): Move array
7826 end bracket to new line.
7827 (ada_val_print_string): Remove extra spaces before first array
7828 element.
7829 * c-valprint.c (c_value_print_array): Likewise.
7830 * m2-valprint.c (m2_print_array_contents): Likewise.
7831 (m2_value_print_inner): Likewise.
7832 * p-valprint.c (pascal_value_print_inner): Likewise.
7833 * valprint.c (generic_val_print_array): Likewise.
7834 (value_print_array_elements): Move first array element and array
7835 end bracket to new line.
7836
7837 2020-04-29 Tom de Vries <tdevries@suse.de>
7838
7839 PR symtab/25889
7840 * linespec.c (find_method): Fix ix calculation.
7841
7842 2020-04-28 Kamil Rytarowski <n54@gmx.com>
7843
7844 * syscalls/update-netbsd.sh: New file.
7845 * syscalls/netbsd.xml: Regenerate.
7846 * data-directory/Makefile.in: Register `netbsd.xml' in
7847 `SYSCALLS_FILES'.
7848
7849 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
7850
7851 * syscalls/update-freebsd.sh: Add double quotes.
7852
7853 2020-04-28 Tom Tromey <tom@tromey.com>
7854
7855 * NEWS: Update.
7856 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7857 (cmdpy_init): Allow class_tui.
7858
7859 2020-04-28 Mark Williams <mark@myosotissp.com>
7860
7861 PR gdb/24480
7862 * dwarf2read.c: Add missing assingments to list_in_scope when
7863 start_symtab was already called.
7864
7865 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
7866
7867 PR gdb/25881
7868 * dwarf2/read.c (offset_map_type): Use
7869 gdb:hash_enum<sect_offset> as hash function.
7870
7871 2020-04-28 Tom de Vries <tdevries@suse.de>
7872
7873 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7874 with DW_AT_signature.
7875
7876 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
7877
7878 * configure.ac: Remove check for fs_base/gs_base in
7879 user_regs_struct.
7880 * configure: Re-generate.
7881 * config.in: Re-generate.
7882 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7883 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7884 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7885
7886 2020-04-27 Luis Machado <luis.machado@linaro.org>
7887
7888 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7889 problematic inline frame unwinding situation.
7890 * frame.c (frame_id_computed_p): New function.
7891 * frame.h (frame_id_computed_p): New prototype.
7892
7893 2020-04-26 Tom Tromey <tom@tromey.com>
7894
7895 * command.h (enum command_class) <class_pseudo>: Remove.
7896
7897 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7898
7899 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7900 and whitespace.
7901
7902 2020-04-25 Kamil Rytarowski <n54@gmx.com>
7903
7904 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7905 `PT_GET_PROCESS_STATE' block.
7906
7907 2020-04-24 Tom Tromey <tom@tromey.com>
7908
7909 * symtab.h (symbol_get_demangled_name): Don't declare.
7910 * symtab.c (symbol_get_demangled_name): Remove.
7911 (general_symbol_info::natural_name)
7912 (general_symbol_info::demangled_name): Update.
7913
7914 2020-04-24 Tom Tromey <tom@tromey.com>
7915
7916 PR rust/25025:
7917 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7918
7919 2020-04-24 Tom Tromey <tom@tromey.com>
7920
7921 PR symtab/12707:
7922 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7923 exists.
7924 (new_symbol): Likewise.
7925 * compile/compile-object-load.c (get_out_value_type): Use
7926 symbol_matches_search_name.
7927
7928 2020-04-24 Tom Tromey <tom@tromey.com>
7929
7930 * dwarf2/read.c (add_partial_symbol): Do not call
7931 compute_and_set_names.
7932
7933 2020-04-24 Tom Tromey <tom@tromey.com>
7934
7935 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7936 overload.
7937
7938 2020-04-24 Tom Tromey <tom@tromey.com>
7939
7940 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7941 (add_psymbol_to_list): New overload. Make old overload call new
7942 one.
7943 * psympriv.h (add_psymbol_to_list): New overload.
7944
7945 2020-04-24 Tom Tromey <tom@tromey.com>
7946
7947 * dwarf2/read.c (partial_die_info::read) <case
7948 DW_AT_linkage_name>: Use value_as_string.
7949 (dwarf2_string_attr): Use value_as_string.
7950 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7951 method.
7952 * dwarf2/attribute.c (attribute::value_as_string): New method.
7953
7954 2020-04-24 Tom Tromey <tom@tromey.com>
7955
7956 * symtab.c (general_symbol_info::natural_name)
7957 (general_symbol_info::demangled_name): Check for language_rust.
7958
7959 2020-04-24 Tom Tromey <tom@tromey.com>
7960
7961 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7962 (dwarf2_physname): ... from here.
7963 (partial_die_info::read): Add Rust "{" hack.
7964
7965 2020-04-24 Tom Tromey <tom@tromey.com>
7966
7967 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7968 method.
7969 (symbol_set_demangled_name): Don't declare.
7970 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7971 symbol_set_demangled_name.
7972 (general_symbol_info::set_language)
7973 (general_symbol_info::compute_and_set_names): Update.
7974 * minsyms.c (minimal_symbol_reader::install): Update.
7975 * dwarf2/read.c (new_symbol): Update.
7976
7977 2020-04-24 Tom Tromey <tromey@adacore.com>
7978
7979 PR python/23662:
7980 * python/py-type.c (convert_field): Handle
7981 FIELD_LOC_KIND_DWARF_BLOCK.
7982 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7983 (typy_get_dynamic): Nw function.
7984 (type_object_getset): Add "dynamic".
7985 * NEWS: Add entry.
7986
7987 2020-04-24 Tom Tromey <tromey@adacore.com>
7988
7989 * ada-typeprint.c (print_choices, print_variant_part)
7990 (print_record_field_types_dynamic): New functions.
7991 (print_record_field_types): Use print_record_field_types_dynamic.
7992
7993 2020-04-24 Tom Tromey <tromey@adacore.com>
7994
7995 * dwarf2/read.c (handle_data_member_location): New overload.
7996 (dwarf2_add_field): Use it.
7997 (decode_locdesc): Add "computed" parameter. Update comment.
7998 * gdbtypes.c (is_dynamic_type_internal): Also look for
7999 FIELD_LOC_KIND_DWARF_BLOCK.
8000 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
8001 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
8002 virtual base classes.
8003 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
8004 FIELD_LOC_KIND_DWARF_BLOCK.
8005
8006 2020-04-24 Tom Tromey <tromey@adacore.com>
8007
8008 * dwarf2/read.c (read_structure_type): Handle dynamic length.
8009 * gdbtypes.c (is_dynamic_type_internal): Check
8010 TYPE_HAS_DYNAMIC_LENGTH.
8011 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
8012 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
8013 New macros.
8014 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
8015 constant.
8016
8017 2020-04-24 Tom Tromey <tromey@adacore.com>
8018
8019 * dwarf2/read.c (struct variant_field): Rewrite.
8020 (struct variant_part_builder): New.
8021 (struct nextfield): Remove "variant" field. Add "offset".
8022 (struct field_info): Add "current_variant_part" and
8023 "variant_parts".
8024 (alloc_discriminant_info): Remove.
8025 (alloc_rust_variant): New function.
8026 (quirk_rust_enum): Update.
8027 (dwarf2_add_field): Set "offset" member. Don't handle
8028 DW_TAG_variant_part.
8029 (offset_map_type): New typedef.
8030 (convert_variant_range, create_one_variant)
8031 (create_one_variant_part, create_variant_parts)
8032 (add_variant_property): New functions.
8033 (dwarf2_attach_fields_to_type): Call add_variant_property.
8034 (read_structure_type): Don't handle DW_TAG_variant_part.
8035 (handle_variant_part, handle_variant): New functions.
8036 (handle_struct_member_die): Use them.
8037 (process_structure_scope): Don't handle variant parts.
8038 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
8039 (struct discriminant_info): Remove.
8040 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
8041 (struct main_type) <flag_discriminated_union>: Remove.
8042 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
8043 (rust_enum_variant): Return int. Remove "contents". Rewrite.
8044 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
8045 Update.
8046 * valops.c (value_union_variant): Remove.
8047 * value.h (value_union_variant): Don't declare.
8048
8049 2020-04-24 Tom Tromey <tromey@adacore.com>
8050
8051 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
8052 (ada_value_primitive_packed_val): Update.
8053 * ada-valprint.c (ada_value_print_1): Update.
8054 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
8055 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
8056 just an address. Use evaluate_for_locexpr_baton.
8057 (dwarf2_evaluate_property): Update.
8058 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
8059 array_view.
8060 * findvar.c (default_read_var_value): Update.
8061 * gdbtypes.c (compute_variant_fields_inner)
8062 (resolve_dynamic_type_internal): Update.
8063 (resolve_dynamic_type): Change type of valaddr parameter.
8064 * gdbtypes.h (resolve_dynamic_type): Update.
8065 * valarith.c (value_subscripted_rvalue): Update.
8066 * value.c (value_from_contents_and_address): Update.
8067
8068 2020-04-24 Tom Tromey <tromey@adacore.com>
8069
8070 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
8071 "push_initial_value" parameter.
8072 (dwarf2_evaluate_property): Likewise.
8073 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
8074
8075 2020-04-24 Tom Tromey <tromey@adacore.com>
8076
8077 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
8078 (variant::matches, compute_variant_fields_recurse)
8079 (compute_variant_fields_inner, compute_variant_fields): New
8080 functions.
8081 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
8082 Use resolved_type after type is made.
8083 (operator==): Add new cases.
8084 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
8085 (struct discriminant_range, struct variant, struct variant_part):
8086 New.
8087 (union dynamic_prop_data) <variant_parts, original_type>: New
8088 members.
8089 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
8090 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
8091 constants.
8092 * value.c (unpack_bits_as_long): Now public.
8093 * value.h (unpack_bits_as_long): Declare.
8094
8095 2020-04-24 Tom Tromey <tromey@adacore.com>
8096
8097 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
8098 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
8099
8100 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
8101
8102 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
8103
8104 2020-04-24 Kamil Rytarowski <n54@gmx.com>
8105
8106 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
8107 (remove_fork_catchpoint, post_startup_inferior)
8108 (post_attach): Move...
8109 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
8110 (remove_fork_catchpoint, post_startup_inferior)
8111 (post_attach): ...here.
8112 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
8113 (remove_fork_catchpoint, post_startup_inferior)
8114 (post_attach): Move...
8115 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
8116 (remove_fork_catchpoint, post_startup_inferior)
8117 (post_attach): ...here.
8118
8119 2020-04-24 Tom Tromey <tromey@adacore.com>
8120
8121 * nat/windows-nat.h (struct windows_thread_info)
8122 <pc_adjusted>: New member.
8123 * windows-nat.c (windows_fetch_one_register): Check
8124 pc_adjusted.
8125 (windows_nat_target::get_windows_debug_event)
8126 (windows_nat_target::wait): Set pc_adjusted.
8127
8128 2020-04-24 Tom de Vries <tdevries@suse.de>
8129
8130 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
8131 Run gdb-add-index inside temp dir.
8132
8133 2020-04-23 Tom Tromey <tromey@adacore.com>
8134
8135 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
8136 in loop.
8137
8138 2020-04-23 Luis Machado <luis.machado@linaro.org>
8139
8140 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8141 get_frame_register instead of gdbarch_unwind_pc.
8142
8143 2020-04-23 Tom de Vries <tdevries@suse.de>
8144
8145 * symtab.c (lookup_global_symbol): Prefer def over decl.
8146
8147 2020-04-23 Tom de Vries <tdevries@suse.de>
8148
8149 PR symtab/25807
8150 * block.c (best_symbol, better_symbol): Promote to external.
8151 * block.h (best_symbol, better_symbol): Declare.
8152 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
8153 decl.
8154
8155 2020-04-23 Tom Tromey <tromey@adacore.com>
8156
8157 PR ada/25837:
8158 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
8159 "const char *", not a "const std::string &".
8160 <name_and_matcher::operator==>: Update.
8161 * unittests/lookup_name_info-selftests.c: Change type of
8162 "result".
8163
8164 2020-04-23 Tom Tromey <tom@tromey.com>
8165
8166 * inferior.h (iterate_over_inferiors): Don't declare.
8167 * inferior.c (iterate_over_inferiors): Remove.
8168 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
8169 Remove.
8170 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
8171 use iterate_over_inferiors.
8172 (darwin_resume_inferior_it)
8173 (struct resume_inferior_threads_param)
8174 (darwin_resume_inferior_threads_it): Remove.
8175 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
8176
8177 2020-04-23 Tom de Vries <tdevries@suse.de>
8178
8179 * blockframe.c (find_pc_partial_function): Use
8180 find_pc_sect_compunit_symtab rather than
8181 objfile->sf->qf->find_pc_sect_compunit_symtab.
8182
8183 2020-04-22 Tom de Vries <tdevries@suse.de>
8184
8185 PR symtab/25764
8186 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
8187 in psymtabs.
8188
8189 2020-04-22 Tom de Vries <tdevries@suse.de>
8190
8191 PR symtab/25801
8192 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
8193 symtabs.
8194
8195 2020-04-22 Tom de Vries <tdevries@suse.de>
8196
8197 PR symtab/25700
8198 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
8199 CU if already created.
8200
8201 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8202
8203 * infrun.c (displaced_step_fixup): Switch to the event_thread
8204 before calling displaced_step_restore, not after.
8205
8206 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8207
8208 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
8209 its inferior is not recorded by us.
8210 (record_btrace_target_open): Replace call to
8211 all_non_exited_threads () with call to current_inferior
8212 ()->non_exited_threads ().
8213 (record_btrace_target::stop_recording): Likewise.
8214 (record_btrace_target::close): Likewise.
8215 (record_btrace_target::wait): Likewise.
8216 (record_btrace_target::record_stop_replaying): Likewise.
8217
8218 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8219
8220 * btrace.c (btrace_enable): Throw an error on double enables and
8221 when enabling recording fails.
8222 (btrace_disable): Throw an error if the thread is not recorded.
8223
8224 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8225
8226 * record-btrace.c (record_btrace_target::fetch_registers): Forward
8227 request if we do not have a thread_info.
8228
8229 2020-04-21 Tom de Vries <tdevries@suse.de>
8230
8231 PR gdb/25471
8232 * thread.c
8233 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
8234 exception in get_frame_id.
8235
8236 2020-04-20 Tom Tromey <tromey@adacore.com>
8237
8238 * python/python.c (struct gdbpy_event): Mark move constructor as
8239 noexcept.
8240 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
8241 constructor as noexcept.
8242 * completer.h (struct completion_result): Mark move constructor as
8243 noexcept.
8244 * completer.c (completion_result::completion_result): Use
8245 initialization style. Don't call reset_match_list.
8246
8247 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
8248
8249 * MAINTAINERS (Write After Approval): Add myself.
8250
8251 2020-04-18 Tom Tromey <tom@tromey.com>
8252
8253 * windows-tdep.c (init_w32_command_list)
8254 (w32_prefix_command_valid): Restore.
8255 (_initialize_windows_tdep): Call init_w32_command_list.
8256
8257 2020-04-18 Tom Tromey <tom@tromey.com>
8258
8259 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
8260 * value.c (value_fn_field): Update.
8261 * valops.c (find_function_in_inferior)
8262 (value_allocate_space_in_inferior): Update.
8263 * tui/tui-winsource.c (tui_update_source_windows_with_line):
8264 Update.
8265 * tui/tui-source.c (tui_source_window::set_contents): Update.
8266 * symtab.c (lookup_global_or_static_symbol)
8267 (find_function_start_sal_1, skip_prologue_sal)
8268 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
8269 * symmisc.c (dump_msymbols, dump_symtab_1)
8270 (maintenance_print_one_line_table): Update.
8271 * symfile.c (init_entry_point_info, section_is_mapped)
8272 (list_overlays_command, simple_read_overlay_table)
8273 (simple_overlay_update_1): Update.
8274 * stap-probe.c (handle_stap_probe): Update.
8275 * stabsread.c (dbx_init_float_type, define_symbol)
8276 (read_one_struct_field, read_enum_type, read_range_type): Update.
8277 * source.c (info_line_command): Update.
8278 * python/python.c (gdbpy_source_objfile_script)
8279 (gdbpy_execute_objfile_script): Update.
8280 * python/py-type.c (save_objfile_types): Update.
8281 * python/py-objfile.c (py_free_objfile): Update.
8282 * python/py-inferior.c (python_new_objfile): Update.
8283 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
8284 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
8285 (maintenance_check_psymtabs): Update.
8286 * printcmd.c (info_address_command): Update.
8287 * objfiles.h (struct objfile) <arch>: New method, from
8288 get_objfile_arch.
8289 (get_objfile_arch): Don't declare.
8290 * objfiles.c (get_objfile_arch): Remove.
8291 (filter_overlapping_sections): Update.
8292 * minsyms.c (msymbol_is_function): Update.
8293 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
8294 (output_nondebug_symbol): Update.
8295 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
8296 (mdebug_expand_psymtab): Update.
8297 * machoread.c (macho_add_oso_symfile): Update.
8298 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
8299 Update.
8300 * linux-fork.c (checkpoint_command): Update.
8301 * linespec.c (convert_linespec_to_sals): Update.
8302 * jit.c (finalize_symtab): Update.
8303 * infrun.c (insert_exception_resume_from_probe): Update.
8304 * ia64-tdep.c (ia64_find_unwind_table): Update.
8305 * hppa-tdep.c (internalize_unwinds): Update.
8306 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
8307 Update.
8308 * gcore.c (call_target_sbrk): Update.
8309 * elfread.c (record_minimal_symbol, elf_symtab_read)
8310 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
8311 (elf_gnu_ifunc_resolve_by_got): Update.
8312 * dwarf2/read.c (create_addrmap_from_index)
8313 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
8314 (read_debug_names_from_section)
8315 (process_psymtab_comp_unit_reader, add_partial_symbol)
8316 (add_partial_subprogram, process_full_comp_unit)
8317 (read_file_scope, read_func_scope, read_lexical_block_scope)
8318 (read_call_site_scope, dwarf2_ranges_read)
8319 (dwarf2_record_block_ranges, dwarf2_add_field)
8320 (mark_common_block_symbol_computed, read_tag_pointer_type)
8321 (read_tag_string_type, dwarf2_init_float_type)
8322 (dwarf2_init_complex_target_type, read_base_type)
8323 (partial_die_info::read, partial_die_info::read)
8324 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
8325 (dwarf2_fetch_die_loc_sect_off): Update.
8326 * dwarf2/loc.c (dwarf2_find_location_expression)
8327 (class dwarf_evaluate_loc_desc, rw_pieced_value)
8328 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
8329 (dwarf2_loc_desc_get_symbol_read_needs)
8330 (locexpr_describe_location_piece, locexpr_describe_location_1)
8331 (loclist_describe_location): Update.
8332 * dwarf2/index-write.c (write_debug_names): Update.
8333 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
8334 * dtrace-probe.c (dtrace_process_dof): Update.
8335 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
8336 (process_one_symbol): Update.
8337 * ctfread.c (ctf_init_float_type, read_base_type): Update.
8338 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
8339 (coff_read_enum_type): Update.
8340 * cli/cli-cmds.c (edit_command, list_command): Update.
8341 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
8342 * breakpoint.c (create_overlay_event_breakpoint)
8343 (create_longjmp_master_breakpoint)
8344 (create_std_terminate_master_breakpoint)
8345 (create_exception_master_breakpoint, get_sal_arch): Update.
8346 * block.c (block_gdbarch): Update.
8347 * annotate.c (annotate_source_line): Update.
8348
8349 2020-04-17 Tom Tromey <tromey@adacore.com>
8350
8351 * auto-load.c (show_auto_load_cmd): Remove.
8352 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
8353 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
8354 (maintenance_print_arc_command): Remove.
8355 * tui/tui-win.c (tui_command): Remove.
8356 (tui_get_cmd_list): Use add_basic_prefix_cmd.
8357 * tui/tui-layout.c (tui_layout_command): Remove.
8358 (_initialize_tui_layout): Use add_basic_prefix_cmd.
8359 * python/python.c (user_set_python, user_show_python): Remove.
8360 (_initialize_python): Use add_basic_prefix_cmd,
8361 add_show_prefix_cmd.
8362 * guile/guile.c (set_guile_command, show_guile_command): Remove.
8363 (install_gdb_commands): Use add_basic_prefix_cmd,
8364 add_show_prefix_cmd.
8365 (info_guile_command): Remove.
8366 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
8367 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
8368 add_show_prefix_cmd.
8369 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
8370 Remove do_set and do_show parameters.
8371 * cli/cli-style.c (set_style, show_style): Remove.
8372 (_initialize_cli_style): Use add_basic_prefix_cmd,
8373 add_show_prefix_cmd.
8374 (cli_style_option::add_setshow_commands): Remove do_set and
8375 do_show parameters.
8376 (cli_style_option::add_setshow_commands): Use
8377 add_basic_prefix_cmd, add_show_prefix_cmd.
8378 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
8379 (set_style_name): Remove.
8380 * cli/cli-dump.c (dump_command, append_command): Remove.
8381 (srec_dump_command, ihex_dump_command, verilog_dump_command)
8382 (tekhex_dump_command, binary_dump_command)
8383 (binary_append_command): Remove.
8384 (_initialize_cli_dump): Use add_basic_prefix_cmd.
8385 * windows-tdep.c (w32_prefix_command_valid): Remove global.
8386 (init_w32_command_list): Remove; move into ...
8387 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
8388 * valprint.c (set_print, show_print, set_print_raw)
8389 (show_print_raw): Remove.
8390 (_initialize_valprint): Use add_basic_prefix_cmd,
8391 add_show_prefix_cmd.
8392 * typeprint.c (set_print_type, show_print_type): Remove.
8393 (_initialize_typeprint): Use add_basic_prefix_cmd,
8394 add_show_prefix_cmd.
8395 * record.c (set_record_command, show_record_command): Remove.
8396 (_initialize_record): Use add_basic_prefix_cmd,
8397 add_show_prefix_cmd.
8398 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
8399 add_show_prefix_cmd.
8400 (info_command, show_command, set_debug, show_debug): Remove.
8401 * top.h (set_history, show_history): Don't declare.
8402 * top.c (set_history, show_history): Remove.
8403 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
8404 (unset_tdesc_cmd): Remove.
8405 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
8406 add_show_prefix_cmd.
8407 * symtab.c (info_module_command): Remove.
8408 (_initialize_symtab): Use add_basic_prefix_cmd.
8409 * symfile.c (overlay_command): Remove.
8410 (_initialize_symfile): Use add_basic_prefix_cmd.
8411 * sparc64-tdep.c (info_adi_command): Remove.
8412 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
8413 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
8414 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
8415 add_show_prefix_cmd.
8416 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
8417 (_initialize_serial): Use add_basic_prefix_cmd,
8418 add_show_prefix_cmd.
8419 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
8420 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
8421 add_show_prefix_cmd.
8422 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
8423 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
8424 add_show_prefix_cmd.
8425 * riscv-tdep.c (show_riscv_command, set_riscv_command)
8426 (show_debug_riscv_command, set_debug_riscv_command): Remove.
8427 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
8428 add_show_prefix_cmd.
8429 * remote.c (remote_command, set_remote_cmd): Remove.
8430 (_initialize_remote): Use add_basic_prefix_cmd.
8431 * record-full.c (set_record_full_command)
8432 (show_record_full_command): Remove.
8433 (_initialize_record_full): Use add_basic_prefix_cmd,
8434 add_show_prefix_cmd.
8435 * record-btrace.c (cmd_set_record_btrace)
8436 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
8437 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
8438 (cmd_show_record_btrace_pt): Remove.
8439 (_initialize_record_btrace): Use add_basic_prefix_cmd,
8440 add_show_prefix_cmd.
8441 * ravenscar-thread.c (set_ravenscar_command)
8442 (show_ravenscar_command): Remove.
8443 (_initialize_ravenscar): Use add_basic_prefix_cmd,
8444 add_show_prefix_cmd.
8445 * mips-tdep.c (show_mips_command, set_mips_command)
8446 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
8447 add_show_prefix_cmd.
8448 * maint.c (maintenance_command, maintenance_info_command)
8449 (maintenance_check_command, maintenance_print_command)
8450 (maintenance_set_cmd, maintenance_show_cmd): Remove.
8451 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
8452 add_show_prefix_cmd.
8453 (show_per_command_cmd): Remove.
8454 * maint-test-settings.c (maintenance_set_test_settings_cmd):
8455 Remove.
8456 (maintenance_show_test_settings_cmd): Remove.
8457 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
8458 add_show_prefix_cmd.
8459 * maint-test-options.c (maintenance_test_options_command):
8460 Remove.
8461 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
8462 * macrocmd.c (macro_command): Remove
8463 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8464 * language.c (set_check, show_check): Remove.
8465 (_initialize_language): Use add_basic_prefix_cmd,
8466 add_show_prefix_cmd.
8467 * infcmd.c (unset_command): Remove.
8468 (_initialize_infcmd): Use add_basic_prefix_cmd.
8469 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8470 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8471 add_show_prefix_cmd.
8472 * go32-nat.c (go32_info_dos_command): Remove.
8473 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8474 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8475 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8476 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8477 (_initialize_frame): Use add_basic_prefix_cmd,
8478 add_show_prefix_cmd.
8479 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8480 (_initialize_dcache): Use add_basic_prefix_cmd,
8481 add_show_prefix_cmd.
8482 * cp-support.c (maint_cplus_command): Remove.
8483 (_initialize_cp_support): Use add_basic_prefix_cmd.
8484 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8485 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8486 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8487 add_basic_prefix_cmd, add_show_prefix_cmd.
8488 * breakpoint.c (save_command): Remove.
8489 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8490 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8491 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8492 add_show_prefix_cmd.
8493 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8494 (set_ada_command, show_ada_command): Remove.
8495 (_initialize_ada_language): Use add_basic_prefix_cmd,
8496 add_show_prefix_cmd.
8497 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8498
8499 2020-04-16 Kamil Rytarowski <n54@gmx.com>
8500
8501 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8502 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8503
8504 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8505
8506 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8507 warning messages.
8508
8509 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8510
8511 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8512 import table is not at beginning of .idata section.
8513
8514 2020-04-16 Pedro Alves <palves@redhat.com>
8515
8516 * inferior.c (delete_inferior): Use delete operator directly
8517 instead of delete_program_space.
8518 * progspace.c (add_program_space): New, factored out from
8519 program_space::program_space.
8520 (remove_program_space): New, factored out from
8521 delete_program_space.
8522 (program_space::program_space): Remove intro comment. Rewrite.
8523 (program_space::~program_space): Remove intro comment. Call
8524 remove_program_space.
8525 (delete_program_space): Delete.
8526 * progspace.h (program_space::program_space): Make explicit. Move
8527 intro comment here, adjusted.
8528 (program_space::~program_space): Move intro comment here,
8529 adjusted.
8530 (delete_program_space): Remove.
8531
8532 2020-04-16 Tom Tromey <tromey@adacore.com>
8533
8534 * windows-nat.c (windows_nat::handle_access_violation): New
8535 function.
8536 * nat/windows-nat.h (handle_access_violation): Declare.
8537 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8538 windows-nat.c. Call handle_access_violation.
8539
8540 2020-04-16 Tom de Vries <tdevries@suse.de>
8541
8542 PR symtab/25791
8543 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8544 CUs without psymtab.
8545
8546 2020-04-16 Kevin Buettner <kevinb@redhat.com>
8547
8548 * python/python.c (do_start_initialization): Don't call
8549 PyEval_InitThreads for Python 3.9 and beyond.
8550
8551 2020-04-15 Kamil Rytarowski <n54@gmx.com>
8552
8553 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8554 thread functions.
8555 (obsd_nat_target::wait): Likewise.
8556
8557 2020-04-15 Tom Tromey <tromey@adacore.com>
8558
8559 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8560 (DEBUG_EXCEPT): Use debug_printf.
8561
8562 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8563
8564 * completer.c (class completion_tracker::completion_hash_entry)
8565 <hash_name>: New member function.
8566 (completion_tracker::discard_completions): New callback to hash a
8567 completion_hash_entry, pass this to htab_create_alloc.
8568
8569 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8570
8571 * windows-nat.c (windows_make_so): Warn rather than stopping with
8572 an error if realpath() fails.
8573
8574 2020-04-14 Kamil Rytarowski <n54@gmx.com>
8575
8576 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8577 (nbsd_nat_target::info_proc): Add do_status.
8578
8579 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8580 Tom de Vries <tdevries@suse.de>
8581
8582 PR symtab/25718
8583 * psympriv.h (struct partial_symtab::read_symtab)
8584 (struct partial_symtab::expand_psymtab)
8585 (struct partial_symtab::read_dependencies): Update comments.
8586 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8587 read_symtab for includer.
8588 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8589 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8590 (struct dwarf2_include_psymtab::m_readin): Remove.
8591 (struct dwarf2_include_psymtab::includer): New member function.
8592 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8593
8594 2020-04-14 Tom de Vries <tdevries@suse.de>
8595
8596 PR symtab/25720
8597 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8598 with NULL symbol_matcher and lookup_name.
8599 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8600 and lookup_name.
8601 * dwarf2/read.c (dw2_expand_symtabs_matching)
8602 (dw2_debug_names_expand_symtabs_matching): Same.
8603 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8604 Make lookup_name a pointer. Update comment.
8605 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8606 lookup_name being a pointer.
8607 * symfile.c (expand_symtabs_matching): Same.
8608 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8609 * linespec.c (iterate_over_all_matching_symtabs): Same.
8610
8611 2020-04-13 Tom Tromey <tom@tromey.com>
8612
8613 * run-on-main-thread.c: Update include.
8614 * unittests/main-thread-selftests.c: Update include.
8615 * tui/tui-win.c: Update include.
8616 * tui/tui-io.c: Update include.
8617 * tui/tui-interp.c: Update include.
8618 * tui/tui-hooks.c: Update include.
8619 * top.h: Update include.
8620 * top.c: Update include.
8621 * ser-base.c: Update include.
8622 * remote.c: Update include.
8623 * remote-notif.c: Update include.
8624 * remote-fileio.c: Update include.
8625 * record-full.c: Update include.
8626 * record-btrace.c: Update include.
8627 * python/python.c: Update include.
8628 * posix-hdep.c: Update include.
8629 * mingw-hdep.c: Update include.
8630 * mi/mi-main.c: Update include.
8631 * mi/mi-interp.c: Update include.
8632 * main.c: Update include.
8633 * linux-nat.c: Update include.
8634 * interps.c: Update include.
8635 * infrun.c: Update include.
8636 * inf-loop.c: Update include.
8637 * event-top.c: Update include.
8638 * event-loop.c: Move to ../gdbsupport/.
8639 * event-loop.h: Move to ../gdbsupport/.
8640 * async-event.h: Update include.
8641 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8642
8643 2020-04-13 Tom Tromey <tom@tromey.com>
8644
8645 * tui/tui-win.c: Include async-event.h.
8646 * remote.c: Include async-event.h.
8647 * remote-notif.c: Include async-event.h.
8648 * record-full.c: Include async-event.h.
8649 * record-btrace.c: Include async-event.h.
8650 * infrun.c: Include async-event.h.
8651 * event-top.c: Include async-event.h.
8652 * event-loop.h: Move some declarations to async-event.h.
8653 * event-loop.c: Don't include ser-event.h or top.h. Move some
8654 code to async-event.c.
8655 * async-event.h: New file.
8656 * async-event.c: New file.
8657 * Makefile.in (COMMON_SFILES): Add async-event.c.
8658 (HFILES_NO_SRCDIR): Add async-event.h.
8659
8660 2020-04-13 Tom Tromey <tom@tromey.com>
8661
8662 * utils.c (flush_streams): New function.
8663 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8664
8665 2020-04-13 Tom Tromey <tom@tromey.com>
8666
8667 * event-loop.c (handle_file_event): Use warning, not
8668 printf_unfiltered.
8669
8670 2020-04-13 Tom Tromey <tom@tromey.com>
8671
8672 * event-loop.c: Include <chrono>.
8673
8674 2020-04-13 Tom Tromey <tom@tromey.com>
8675
8676 * gdb_select.h: Move to ../gdbsupport/.
8677 * event-loop.c: Update include path.
8678 * top.c: Update include path.
8679 * ser-base.c: Update include path.
8680 * ui-file.c: Update include path.
8681 * ser-tcp.c: Update include path.
8682 * guile/scm-ports.c: Update include path.
8683 * posix-hdep.c: Update include path.
8684 * ser-unix.c: Update include path.
8685 * gdb_usleep.c: Update include path.
8686 * mingw-hdep.c: Update include path.
8687 * inflow.c: Update include path.
8688 * infrun.c: Update include path.
8689 * event-top.c: Update include path.
8690
8691 2020-04-13 Tom Tromey <tom@tromey.com>
8692
8693 * configure: Rebuild.
8694 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8695
8696 2020-04-13 Tom Tromey <tom@tromey.com>
8697
8698 * event-loop.h (start_event_loop): Don't declare.
8699 * event-loop.c (start_event_loop): Move...
8700 * main.c (start_event_loop): ...here. Now static.
8701
8702 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8703
8704 * MAINTAINERS: Update my email address.
8705
8706 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8707
8708 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8709 IP_ALL.
8710
8711 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8712
8713 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
8714 (nbsd_nat_target::info_proc): Add do_cmdline.
8715
8716 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8717
8718 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
8719 (nbsd_nat_target::info_proc): Add do_cwd.
8720
8721 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8722
8723 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8724
8725 2020-04-11 Kamil Rytarowski <n54@gmx.com>
8726
8727 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8728 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8729 (nbsd_nat_target::info_proc): New functions.
8730 * nbsd-nat.c (kinfo_get_vmmap): New function.
8731 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8732 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8733 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8734 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8735 functions.
8736 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8737 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8738 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8739 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8740 (KINFO_VME_FLAG_GROWS_DOWN): New.
8741
8742 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8743
8744 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8745 bit shift.
8746
8747 2020-04-10 Tom Tromey <tromey@adacore.com>
8748
8749 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8750
8751 2020-04-10 Tom Tromey <tromey@adacore.com>
8752
8753 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8754 separate debug files.
8755
8756 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
8757
8758 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8759 Move to...
8760 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8761 ... here.
8762 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8763 Check for STATUS_WX86_BREAKPOINT.
8764 (windows_nat_target::wait): Same.
8765
8766 2020-04-10 Tom de Vries <tdevries@suse.de>
8767
8768 PR cli/25808
8769 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8770
8771 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8772
8773 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8774 (Write After Approval): Remove Tom de Vries.
8775
8776 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8777
8778 revert partially:
8779 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8780
8781 * buildsym.c (record_line): Fix undefined behavior and preserve
8782 lines at eof.
8783
8784 2020-04-09 Kamil Rytarowski <n54@gmx.com>
8785
8786 * auxv.h (svr4_auxv_parse): New.
8787 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8788 and generic_auxv_parse.
8789 (svr4_auxv_parse): Add.
8790 * obsd-tdep.c: Include "auxv.h".
8791 (obsd_auxv_parse): Remove.
8792 (obsd_init_abi): Remove comment.
8793 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8794 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8795 * nbsd-tdep.c: Include "auxv.h".
8796 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8797
8798 2020-04-08 Tom Tromey <tromey@adacore.com>
8799
8800 * nat/windows-nat.h (last_wait_event): Don't declare.
8801 (wait_for_debug_event): Update comment.
8802 * nat/windows-nat.c (last_wait_event): Now static.
8803
8804 2020-04-08 Tom Tromey <tromey@adacore.com>
8805
8806 * windows-nat.c (wait_for_debug_event): Move to
8807 nat/windows-nat.c.
8808 * nat/windows-nat.h (wait_for_debug_event): Declare.
8809 * nat/windows-nat.c (wait_for_debug_event): Move from
8810 windows-nat.c. No longer static.
8811
8812 2020-04-08 Tom Tromey <tromey@adacore.com>
8813
8814 * windows-nat.c (get_windows_debug_event): Use
8815 fetch_pending_stop.
8816 * nat/windows-nat.h (fetch_pending_stop): Declare.
8817 * nat/windows-nat.c (fetch_pending_stop): New function.
8818
8819 2020-04-08 Tom Tromey <tromey@adacore.com>
8820
8821 * windows-nat.c (windows_continue): Use matching_pending_stop and
8822 continue_last_debug_event.
8823 * nat/windows-nat.h (matching_pending_stop)
8824 (continue_last_debug_event): Declare.
8825 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8826 (matching_pending_stop, continue_last_debug_event): New
8827 functions.
8828
8829 2020-04-08 Tom Tromey <tromey@adacore.com>
8830
8831 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8832 (handle_exception_result): Move to nat/windows-nat.h.
8833 (DEBUG_EXCEPTION_SIMPLE): Remove.
8834 (windows_nat::handle_ms_vc_exception): New function.
8835 (handle_exception): Move to nat/windows-nat.c.
8836 (get_windows_debug_event): Update.
8837 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8838 nat/windows-nat.c.
8839 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8840 (handle_exception_result): Move from windows-nat.c.
8841 (handle_exception): Declare.
8842 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8843 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8844 windows-nat.c.
8845
8846 2020-04-08 Tom Tromey <tromey@adacore.com>
8847
8848 * windows-nat.c (exception_count, event_count): Remove.
8849 (handle_exception, get_windows_debug_event)
8850 (do_initial_windows_stuff): Update.
8851
8852 2020-04-08 Tom Tromey <tromey@adacore.com>
8853
8854 * windows-nat.c (windows_nat::handle_load_dll)
8855 (windows_nat::handle_unload_dll): Rename. No longer static.
8856 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8857 Declare.
8858
8859 2020-04-08 Tom Tromey <tromey@adacore.com>
8860
8861 * complaints.h (stop_whining): Declare at top-level.
8862 (complaint): Don't declare stop_whining.
8863
8864 2020-04-08 Tom Tromey <tromey@adacore.com>
8865
8866 * windows-nat.c (windows_nat::handle_output_debug_string):
8867 Rename. No longer static.
8868 * nat/windows-nat.h (handle_output_debug_string): Declare.
8869
8870 2020-04-08 Tom Tromey <tromey@adacore.com>
8871
8872 * windows-nat.c (current_process_handle, current_process_id)
8873 (main_thread_id, last_sig, current_event, last_wait_event)
8874 (current_windows_thread, desired_stop_thread_id, pending_stops)
8875 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8876 (display_selectors, fake_create_process)
8877 (get_windows_debug_event): Update.
8878 * nat/windows-nat.h (current_process_handle, current_process_id)
8879 (main_thread_id, last_sig, current_event, last_wait_event)
8880 (current_windows_thread, desired_stop_thread_id, pending_stops)
8881 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8882 * nat/windows-nat.c (current_process_handle, current_process_id)
8883 (main_thread_id, last_sig, current_event, last_wait_event)
8884 (current_windows_thread, desired_stop_thread_id, pending_stops)
8885 (siginfo_er): New globals. Move from windows-nat.c.
8886
8887 2020-04-08 Tom Tromey <tromey@adacore.com>
8888
8889 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8890 (handle_load_dll): Update.
8891 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8892
8893 2020-04-08 Tom Tromey <tromey@adacore.com>
8894
8895 * windows-nat.c (enum thread_disposition_type): Move to
8896 nat/windows-nat.h.
8897 (windows_nat::thread_rec): Rename from thread_rec. No longer
8898 static.
8899 (windows_add_thread, windows_nat_target::fetch_registers)
8900 (windows_nat_target::store_registers, handle_exception)
8901 (windows_nat_target::resume, get_windows_debug_event)
8902 (windows_nat_target::get_tib_address)
8903 (windows_nat_target::thread_name)
8904 (windows_nat_target::thread_alive): Update.
8905 * nat/windows-nat.h (enum thread_disposition_type): Move from
8906 windows-nat.c.
8907 (thread_rec): Declare.
8908
8909 2020-04-08 Tom Tromey <tromey@adacore.com>
8910
8911 * windows-nat.c: Add "using namespace".
8912 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8913 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8914
8915 2020-04-08 Tom Tromey <tromey@adacore.com>
8916
8917 * nat/windows-nat.h (struct windows_thread_info): Declare
8918 destructor.
8919 * nat/windows-nat.c (~windows_thread_info): New.
8920
8921 2020-04-08 Tom Tromey <tromey@adacore.com>
8922
8923 PR gdb/22992
8924 * windows-nat.c (current_event): Update comment.
8925 (last_wait_event, desired_stop_thread_id): New globals.
8926 (struct pending_stop): New.
8927 (pending_stops): New global.
8928 (windows_nat_target) <stopped_by_sw_breakpoint>
8929 <supports_stopped_by_sw_breakpoint>: New methods.
8930 (windows_fetch_one_register): Add assertions. Adjust PC.
8931 (windows_continue): Handle pending stops. Suspend other threads
8932 when stepping. Use last_wait_event
8933 (wait_for_debug_event): New function.
8934 (get_windows_debug_event): Use wait_for_debug_event. Handle
8935 pending stops. Queue spurious stops.
8936 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8937 (windows_nat_target::kill): Use wait_for_debug_event.
8938 * nat/windows-nat.h (struct windows_thread_info)
8939 <stopped_at_software_breakpoint>: New field.
8940 * nat/windows-nat.c (windows_thread_info::resume): Clear
8941 stopped_at_software_breakpoint.
8942
8943 2020-04-08 Tom Tromey <tromey@adacore.com>
8944
8945 * windows-nat.c (enum thread_disposition_type): New.
8946 (thread_rec): Replace "get_context" parameter with "disposition";
8947 change type.
8948 (windows_add_thread, windows_nat_target::fetch_registers)
8949 (windows_nat_target::store_registers, handle_exception)
8950 (windows_nat_target::resume, get_windows_debug_event)
8951 (windows_nat_target::get_tib_address)
8952 (windows_nat_target::thread_name)
8953 (windows_nat_target::thread_alive): Update.
8954
8955 2020-04-08 Tom Tromey <tromey@adacore.com>
8956
8957 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8958 (windows_continue): Use windows_continue::resume.
8959 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8960 resume>: Declare new methods.
8961 * nat/windows-nat.c: New file.
8962 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8963
8964 2020-04-08 Tom Tromey <tromey@adacore.com>
8965
8966 * windows-nat.c (windows_add_thread, windows_delete_thread)
8967 (windows_nat_target::fetch_registers)
8968 (windows_nat_target::store_registers, fake_create_process)
8969 (windows_nat_target::resume, windows_nat_target::resume)
8970 (get_windows_debug_event, windows_nat_target::wait)
8971 (windows_nat_target::pid_to_str)
8972 (windows_nat_target::get_tib_address)
8973 (windows_nat_target::get_ada_task_ptid)
8974 (windows_nat_target::thread_name)
8975 (windows_nat_target::thread_alive): Use lwp, not tid.
8976
8977 2020-04-08 Tom Tromey <tromey@adacore.com>
8978
8979 * windows-nat.c (handle_exception)
8980 (windows_nat_target::thread_name): Update.
8981 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8982 <name>: Now unique_xmalloc_ptr.
8983
8984 2020-04-08 Tom Tromey <tromey@adacore.com>
8985
8986 * windows-nat.c (thread_rec)
8987 (windows_nat_target::fetch_registers): Update.
8988 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8989 Update comment.
8990 <debug_registers_changed, reload_context>: Now bool.
8991
8992 2020-04-08 Tom Tromey <tromey@adacore.com>
8993
8994 * windows-nat.c (windows_add_thread): Use new.
8995 (windows_init_thread_list, windows_delete_thread): Use delete.
8996 (get_windows_debug_event): Update.
8997 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8998 destructor, and initializers.
8999
9000 2020-04-08 Tom Tromey <tromey@adacore.com>
9001
9002 * windows-nat.c (struct windows_thread_info): Remove.
9003 * nat/windows-nat.h: New file.
9004
9005 2020-04-08 Tom Tromey <tromey@adacore.com>
9006
9007 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
9008 (thread_rec, windows_add_thread, windows_delete_thread)
9009 (windows_continue): Update.
9010
9011 2020-04-08 Tom Tromey <tromey@adacore.com>
9012
9013 * windows-nat.c (struct windows_thread_info): Remove typedef.
9014 (thread_head): Remove.
9015 (thread_list): New global.
9016 (thread_rec, windows_add_thread, windows_init_thread_list)
9017 (windows_delete_thread, windows_continue): Update.
9018
9019 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9020
9021 * windows-tdep.h (windows_init_abi): Add comment.
9022 (cygwin_init_abi): New declaration.
9023 * windows-tdep.c: Split signal enumeration in two, one for
9024 Windows and one for Cygwin.
9025 (windows_gdb_signal_to_target): Only deal with signal of the
9026 Windows OS ABI.
9027 (cygwin_gdb_signal_to_target): New function.
9028 (windows_init_abi): Rename to windows_init_abi_common, don't set
9029 gdb_signal_to_target gdbarch method. Add new new function with
9030 this name.
9031 (cygwin_init_abi): New function.
9032 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
9033 comment. Don't call windows_init_abi.
9034 (amd64_windows_init_abi): Add comment, call windows_init_abi.
9035 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
9036 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
9037 i386_windows_init_abi_common, don't call windows_init_abi. Add
9038 a new function of this name.
9039 (i386_cygwin_init_abi): New function.
9040 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
9041 OS ABI Cygwin.
9042
9043 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9044
9045 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
9046 parameter.c.
9047 (dwarf2_read_gdb_index): Update.
9048
9049 2020-04-07 Kamil Rytarowski <n54@gmx.com>
9050
9051 * nbsd-tdep.c: Include "objfiles.h".
9052 (nbsd_skip_solib_resolver): New.
9053 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
9054
9055 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9056
9057 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
9058 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
9059 with DW_LLE_base_addressx are being emitted in DWARFv5.
9060 Add the newly added kind DW_LOC_OFFSET_PAIR also.
9061 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
9062 unsigned integer.
9063
9064 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9065
9066 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
9067 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
9068 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
9069 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
9070 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
9071 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
9072 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
9073
9074
9075 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9076
9077 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
9078 (read_loclist_index): New function definition.
9079 (lookup_loclist_base): New function definition.
9080 (read_loclist_header): New function definition.
9081 (dwarf2_cu): Add loclist_base and loclist_header field.
9082 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
9083 (read_full_die_1): Read the value of DW_AT_loclists_base.
9084 (read_attribute_reprocess): Handle DW_FORM_loclistx.
9085 (read_attribute_value): Handle DW_FORM_loclistx.
9086 (skip_one_die): Handle DW_FORM_loclistx.
9087 (loclist_header): New structure declaration.
9088 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
9089
9090 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9091
9092 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
9093 constructor. Remove `addr` parameter from other constructor and
9094 add `per_cu` parameter.
9095 * dwarf2/read.c (create_partial_symtab): Update.
9096
9097 2020-04-07 Tom de Vries <tdevries@suse.de>
9098
9099 PR symtab/25796
9100 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
9101 (partial_die_info::fixup): Inherit has_const_value.
9102
9103 2020-04-07 Tom de Vries <tdevries@suse.de>
9104
9105 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
9106 symbols without address.
9107
9108 2020-04-06 Kamil Rytarowski <n54@gmx.com>
9109
9110 * nbsd-nat.h (struct thread_info): Add forward declaration.
9111 (nbsd_nat_target::thread_alive): Add.
9112 (nbsd_nat_target::thread_name): Likewise.
9113 (nbsd_nat_target::update_thread_list): Likewise.
9114 (update_thread_list::post_attach): Likewise.
9115 (post_attach::pid_to_str): Likewise.
9116 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
9117 (nbsd_thread_lister): Add.
9118 (nbsd_nat_target::thread_alive): Likewise.
9119 (nbsd_nat_target::thread_name): Likewise.
9120 (nbsd_add_threads): Likewise.
9121 (update_thread_list::post_attach): Likewise.
9122 (nbsd_nat_target::update_thread_list): Likewise.
9123 (post_attach::pid_to_str): Likewise.
9124
9125 2020-04-06 Tom Tromey <tromey@adacore.com>
9126
9127 * ada-valprint.c (print_variant_part): Extract the variant field.
9128 (print_field_values): Use the field as the outer value when
9129 recursing.
9130
9131 2020-04-06 Tom Tromey <tromey@adacore.com>
9132
9133 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
9134 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
9135 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
9136 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
9137 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
9138
9139 2020-04-06 Tom Tromey <tromey@adacore.com>
9140
9141 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
9142 TYPE_CODE_ERROR.
9143
9144 2020-04-06 Kamil Rytarowski <n54@gmx.com>
9145
9146 * nbsd-tdep.c: Include "gdbarch.h".
9147 Define enum with NetBSD signal numbers.
9148 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
9149 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
9150 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
9151 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
9152 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
9153 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
9154 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
9155 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9156 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
9157 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9158 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9159 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
9160
9161 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
9162
9163 PR gdb/25325
9164 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
9165
9166 2020-04-03 Tom Tromey <tromey@adacore.com>
9167
9168 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
9169 Read constant block.
9170
9171 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9172
9173 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
9174 (gdb_bfd_get_full_section_contents): New declaration.
9175 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
9176 * windows-tdep.c (is_linked_with_cygwin_dll): Use
9177 gdb_bfd_get_full_section_contents.
9178
9179 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9180
9181 * exec.c (build_section_table): Replace internal_error with
9182 gdb_assert.
9183 (section_table_xfer_memory_partial): Likewise.
9184 * mdebugread.c (parse_partial_symbols): Likewise.
9185 * psymtab.c (lookup_partial_symbol): Likewise.
9186 * utils.c (wrap_here): Likewise.
9187
9188 2020-04-02 Tom Tromey <tromey@adacore.com>
9189
9190 * f-lang.c (build_fortran_types): Use arch_type to initialize
9191 builtin_complex_s32 in the TYPE_CODE_ERROR case.
9192
9193 2020-04-02 Tom Tromey <tromey@adacore.com>
9194
9195 * dwarf2/read.c (partial_die_info::read): Do not create a vector
9196 of attributes.
9197
9198 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
9199 Bernd Edlinger <bernd.edlinger@hotmail.de>
9200 Tom Tromey <tromey@adacore.com>
9201
9202 * buildsym.c (buildsym_compunit::record_line): Remove
9203 deduplication code.
9204
9205 2020-04-02 Tom de Vries <tdevries@suse.de>
9206
9207 PR ada/24671
9208 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
9209
9210 2020-04-02 Tom de Vries <tdevries@suse.de>
9211
9212 * dwarf2/read.c (dwarf2_gdb_index_functions,
9213 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
9214 NULL.
9215 * psymtab.c (psym_lookup_global_symbol_language): New function.
9216 (psym_functions): Init psym_lookup_global_symbol_language with
9217 psym_lookup_global_symbol_language.
9218 * symfile-debug.c (debug_sym_quick_functions): Init
9219 lookup_global_symbol_language with NULL.
9220 * symfile.c (set_initial_language): Remove fixme comment.
9221 * symfile.h (struct quick_symbol_functions): Add
9222 lookup_global_symbol_language.
9223 * symtab.c (find_quick_global_symbol_language): New function.
9224 (find_main_name): Use find_quick_global_symbol_language.
9225
9226 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9227
9228 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
9229
9230 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9231
9232 * buildsym.c (record_line): Fix undefined behavior and preserve
9233 lines at eof.
9234
9235 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9236
9237 * buildsym.c (record_line): Fix the resizing condition.
9238
9239 2020-04-01 Tom Tromey <tom@tromey.com>
9240
9241 * value.h (value_literal_complex): Add comment.
9242 * valops.c (value_literal_complex): Refer to value.h.
9243
9244 2020-04-01 Tom Tromey <tom@tromey.com>
9245
9246 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
9247 (scalar_type): New rule, from typebase.
9248 (typebase): Use scalar_type. Recognize complex types.
9249 (field_name): Handle FLOAT_KEYWORD.
9250 (ident_tokens): Add _Complex and __complex__.
9251
9252 2020-04-01 Tom Tromey <tom@tromey.com>
9253
9254 PR exp/25299:
9255 * valarith.c (promotion_type, complex_binop): New functions.
9256 (scalar_binop): Handle complex numbers. Use promotion_type.
9257 (value_pos, value_neg, value_complement): Handle complex numbers.
9258
9259 2020-04-01 Tom Tromey <tom@tromey.com>
9260
9261 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
9262 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
9263 (parse_number): Handle complex numbers.
9264
9265 2020-04-01 Tom Tromey <tom@tromey.com>
9266
9267 * c-valprint.c (c_decorations): Change complex suffix to "i".
9268
9269 2020-04-01 Tom Tromey <tom@tromey.com>
9270
9271 * valprint.c (generic_value_print_complex): Use accessors.
9272 * value.h (value_real_part, value_imaginary_part): Declare.
9273 * valops.c (value_real_part, value_imaginary_part): New
9274 functions.
9275 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
9276
9277 2020-04-01 Tom Tromey <tom@tromey.com>
9278
9279 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
9280 (read_range_type): Update.
9281 * mdebugread.c (basic_type): Update.
9282 * go-lang.c (build_go_types): Use init_complex_type.
9283 * gdbtypes.h (struct main_type) <complex_type>: New member.
9284 (init_complex_type): Update.
9285 (arch_complex_type): Don't declare.
9286 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
9287 Make name if none given. Use alloc_type_copy. Look for cached
9288 complex type.
9289 (arch_complex_type): Remove.
9290 (gdbtypes_post_init): Use init_complex_type.
9291 * f-lang.c (build_fortran_types): Use init_complex_type.
9292 * dwarf2/read.c (read_base_type): Update.
9293 * d-lang.c (build_d_types): Use init_complex_type.
9294 * ctfread.c (read_base_type): Update.
9295
9296 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9297
9298 * infrun.c (stop_all_threads): Update assertion, plus when
9299 stopping threads, take into account that we might be trying
9300 to stop an all-stop target.
9301 (stop_waiting): Call 'stop_all_threads' if there exists a
9302 non-stop target.
9303
9304 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9305
9306 * target.h (exists_non_stop_target): New function declaration.
9307 * target.c (exists_non_stop_target): New function.
9308
9309 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
9310
9311 PR gdb/24789
9312 * eval.c (is_integral_or_integral_reference): New function.
9313 (evaluate_subexp_standard): Allow integer references in
9314 pointer arithmetic.
9315
9316 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9317
9318 * remote.c (remote_target::remote_parse_stop_reply): Remove the
9319 check for no ptid in the stop reply when the target is non-stop.
9320
9321 2020-04-01 Tom Tromey <tromey@adacore.com>
9322
9323 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
9324 "name" parameter to rvalue reference. Initialize m_name_holder.
9325 <lookup_name_info>: New overloads.
9326 <name>: Return gdb::string_view.
9327 <c_str>: New method.
9328 <make_ignore_params>: Update.
9329 <search_name_hash>: Update.
9330 <language_lookup_name>: Return const char *.
9331 <m_name>: Change type.
9332 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
9333 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
9334 (lookup_name_info::match_any): Update.
9335 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
9336 Update.
9337 * minsyms.c (linkage_name_str): Update.
9338 * language.c (default_symbol_name_matcher): Update.
9339 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
9340 Update.
9341 * ada-lang.c (ada_fold_name): Change parameter to string_view.
9342 (ada_lookup_name_info::ada_lookup_name_info): Update.
9343 (literal_symbol_name_matcher): Update.
9344
9345 2020-04-01 Tom Tromey <tromey@adacore.com>
9346
9347 * psymtab.c (psymtab_search_name): Remove function.
9348 (psym_lookup_symbol): Create search name and lookup name here.
9349 (lookup_partial_symbol): Remove "name" parameter; add
9350 lookup_name.
9351 (psym_expand_symtabs_for_function): Update.
9352
9353 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
9354
9355 PR tui/25597:
9356 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
9357
9358 2020-03-31 Tom Tromey <tromey@adacore.com>
9359
9360 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
9361 memcpy.
9362
9363 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
9364
9365 * features/riscv/32bit-csr.xml: Regenerated.
9366 * features/riscv/64bit-csr.xml: Regenerated.
9367
9368 2020-03-30 Tom Tromey <tromey@adacore.com>
9369
9370 * ada-valprint.c (print_variant_part): Update.
9371 * ada-lang.h (ada_which_variant_applies): Update.
9372 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
9373 outer_valaddr parameters; replace with "outer" value parameter.
9374 (to_fixed_variant_branch_type): Update.
9375
9376 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9377
9378 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
9379 <list>. Remove inclusion of observable.h.
9380 (PPC_DEBUG_CURRENT_VERSION): Move up define.
9381 (struct arch_lwp_info): New struct.
9382 (class ppc_linux_dreg_interface): New class.
9383 (struct ppc_linux_process_info): New struct.
9384 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
9385 <low_new_clone, low_forget_process, low_prepare_to_resume>
9386 <copy_thread_dreg_state, mark_thread_stale>
9387 <mark_debug_registers_changed, register_hw_breakpoint>
9388 <clear_hw_breakpoint, register_wp, clear_wp>
9389 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
9390 <num_memory_accesses, get_trigger_type>
9391 <create_watchpoint_request, hwdebug_point_cmp>
9392 <init_arch_lwp_info, get_arch_lwp_info>
9393 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
9394 methods.
9395 <struct ptid_hash>: New inner struct.
9396 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
9397 members.
9398 (saved_dabr_value, hwdebug_info, max_slots_number)
9399 (struct hw_break_tuple, struct thread_points, ppc_threads)
9400 (have_ptrace_hwdebug_interface)
9401 (hwdebug_find_thread_points_by_tid)
9402 (hwdebug_insert_point, hwdebug_remove_point): Remove.
9403 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
9404 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
9405 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
9406 use m_dreg_interface.
9407 (hwdebug_point_cmp): Change to...
9408 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
9409 reference arguments instead of pointers.
9410 (ppc_linux_nat_target::ranged_break_num_registers): Use
9411 m_dreg_interface.
9412 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
9413 m_dreg_interface. Call register_hw_breakpoint.
9414 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
9415 m_dreg_interface. Call clear_hw_breakpoint.
9416 (get_trigger_type): Change to...
9417 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
9418 comment.
9419 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
9420 use m_dreg_interface. Call register_hw_breakpoint.
9421 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
9422 use m_dreg_interface. Call clear_hw_breakpoint.
9423 (can_use_watchpoint_cond_accel): Change to...
9424 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
9425 method. Update comment, use m_dreg_interface and
9426 m_process_info.
9427 (calculate_dvc): Change to...
9428 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
9429 m_dreg_interface.
9430 (num_memory_accesses): Change to...
9431 (ppc_linux_nat_target::num_memory_accesses): ...this method.
9432 (check_condition): Change to...
9433 (ppc_linux_nat_target::check_condition): ...this method.
9434 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
9435 comment, use m_dreg_interface.
9436 (create_watchpoint_request): Change to...
9437 (ppc_linux_nat_target::create_watchpoint_request): ...this
9438 method. Use m_dreg_interface.
9439 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
9440 m_dreg_interface. Call register_hw_breakpoint or register_wp.
9441 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
9442 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
9443 (ppc_linux_nat_target::low_forget_process)
9444 (ppc_linux_nat_target::low_new_fork)
9445 (ppc_linux_nat_target::low_new_clone)
9446 (ppc_linux_nat_target::low_delete_thread)
9447 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
9448 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
9449 only call mark_thread_stale.
9450 (ppc_linux_thread_exit): Remove.
9451 (ppc_linux_nat_target::stopped_data_address): Change to...
9452 (ppc_linux_nat_target::low_stopped_data_address): This. Add
9453 comment, use m_dreg_interface and m_thread_hw_breakpoints.
9454 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
9455 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
9456 comment. Call low_stopped_data_address.
9457 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
9458 m_dreg_interface.
9459 (ppc_linux_nat_target::masked_watch_num_registers): Use
9460 m_dreg_interface.
9461 (ppc_linux_nat_target::copy_thread_dreg_state)
9462 (ppc_linux_nat_target::mark_thread_stale)
9463 (ppc_linux_nat_target::mark_debug_registers_changed)
9464 (ppc_linux_nat_target::register_hw_breakpoint)
9465 (ppc_linux_nat_target::clear_hw_breakpoint)
9466 (ppc_linux_nat_target::register_wp)
9467 (ppc_linux_nat_target::clear_wp)
9468 (ppc_linux_nat_target::init_arch_lwp_info)
9469 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9470 (_initialize_ppc_linux_nat): Remove observer callback.
9471
9472 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9473
9474 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9475 (ppc_linux_nat_target::auxv_parse)
9476 (ppc_linux_nat_target::read_description)
9477 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9478 Move up.
9479
9480 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9481
9482 * linux-nat.h (low_new_clone): New method.
9483 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9484
9485 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9486
9487 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9488 (dbx_expand_psymtab): ... this.
9489 (start_psymtab): Update.
9490 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9491 (mdebug_expand_psymtab): ... this.
9492 (parse_partial_symbols): Update.
9493 (new_psymtab): Update.
9494 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9495 (xcoff_expand_psymtab): ... this.
9496 (xcoff_start_psymtab): Update.
9497
9498 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9499
9500 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9501 <expand_dependencies>: ... this.
9502 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9503 (partial_symtab::expand_dependencies): ... this.
9504 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9505 Update.
9506 (dwarf2_psymtab::expand_psymtab): Update.
9507 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9508 * mdebugread.c (psymtab_to_symtab_1): Update.
9509 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9510
9511 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9512
9513 * psympriv.h (discard_psymtab): Remove.
9514 * dbxread.c (dbx_end_psymtab): Update.
9515 * xcoffread.c (xcoff_end_psymtab): Update.
9516
9517 2020-03-28 Tom Tromey <tom@tromey.com>
9518
9519 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9520 comment.
9521
9522 2020-03-28 Tom Tromey <tom@tromey.com>
9523
9524 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9525
9526 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
9527
9528 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9529
9530 2020-03-26 John Baldwin <jhb@FreeBSD.org>
9531
9532 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9533
9534 2020-03-26 Tom Tromey <tom@tromey.com>
9535
9536 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9537 (mark_common_block_symbol_computed, read_tag_string_type)
9538 (attr_to_dynamic_prop, read_subrange_type): Update.
9539 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9540 to be methods on struct attribute.
9541 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9542 (read_call_site_scope, partial_die_info::read)
9543 (partial_die_info::read, lookup_die_type, follow_die_ref):
9544 Update.
9545 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9546 from dwarf2_get_ref_die_offset.
9547 (attribute::constant_value): New method, from
9548 dwarf2_get_attr_constant_value.
9549 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9550 Declare method.
9551 <constant_value>: New method.
9552
9553 2020-03-26 Tom Tromey <tom@tromey.com>
9554
9555 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9556 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9557 (dwarf_type_encoding_name): Move to stringify.c.
9558 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9559 * dwarf2/stringify.c: New file.
9560 * dwarf2/stringify.h: New file.
9561
9562 2020-03-26 Tom Tromey <tom@tromey.com>
9563
9564 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9565 Rewrite.
9566
9567 2020-03-26 Tom Tromey <tom@tromey.com>
9568
9569 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9570 methods.
9571 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9572 (lookup_ranges_base): Likewise.
9573 (read_cutu_die_from_dwo, read_full_die_1): Update.
9574
9575 2020-03-26 Tom Tromey <tom@tromey.com>
9576
9577 * dwarf2/read.c (read_import_statement, read_file_scope)
9578 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9579 (read_lexical_block_scope, read_call_site_scope)
9580 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9581 (handle_struct_member_die, process_structure_scope)
9582 (update_enumeration_type_from_children)
9583 (process_enumeration_scope, read_array_type, read_common_block)
9584 (read_namespace, read_module, read_subroutine_type): Update.
9585 (sibling_die): Remove.
9586
9587 2020-03-26 Tom Tromey <tom@tromey.com>
9588
9589 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9590 (build_type_psymtabs_reader, read_structure_type)
9591 (read_enumeration_type, read_full_die_1): Update.
9592 (dwarf2_attr_no_follow): Move to die.h.
9593 * dwarf2/die.h (struct die_info) <attr>: New method.
9594
9595 2020-03-26 Tom Tromey <tom@tromey.com>
9596
9597 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9598 <base_address>: Now an optional.
9599 (dwarf2_find_base_address, dwarf2_rnglists_process)
9600 (dwarf2_ranges_process, fill_in_loclist_baton)
9601 (dwarf2_symbol_mark_computed): Update.
9602
9603 2020-03-26 Tom Tromey <tom@tromey.com>
9604
9605 * dwarf2/read.c (struct die_info): Move to die.h.
9606 * dwarf2/die.h: New file.
9607
9608 2020-03-26 Tom Tromey <tom@tromey.com>
9609
9610 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9611 * dwarf2/read.c
9612 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9613 Move to line-header.c.
9614 (read_checked_initial_length_and_offset, read_formatted_entries):
9615 Likewise.
9616 (dwarf_decode_line_header): Split into two.
9617 * dwarf2/line-header.c
9618 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9619 Move from read.c.
9620 (read_checked_initial_length_and_offset, read_formatted_entries):
9621 Likewise.
9622 (dwarf_decode_line_header): New function, split from read.c.
9623
9624 2020-03-26 Tom Tromey <tom@tromey.com>
9625
9626 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9627 Declare method.
9628 * dwarf2/read.c (read_attribute_value): Update.
9629 (dwarf2_per_objfile::read_line_string): Rename from
9630 read_indirect_line_string.
9631 (read_formatted_entries): Update.
9632
9633 2020-03-26 Tom Tromey <tom@tromey.com>
9634
9635 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9636 variable.
9637
9638 2020-03-26 Tom Tromey <tom@tromey.com>
9639
9640 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9641 const.
9642 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9643 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9644 parameter const.
9645
9646 2020-03-26 Tom Tromey <tom@tromey.com>
9647
9648 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9649 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9650 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9651 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9652
9653 2020-03-26 Tom Tromey <tom@tromey.com>
9654
9655 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9656 file_names_size, file_full_name, file_file_name>: Use const.
9657 <file_name_at, file_names>: Add const overload.
9658 * dwarf2/line-header.c (line_header::file_file_name)
9659 (line_header::file_full_name): Update.
9660
9661 2020-03-26 Tom Tromey <tom@tromey.com>
9662
9663 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9664 (macro_start_file, consume_improper_spaces)
9665 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9666 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9667 (dwarf_decode_macros): Move to macro.c.
9668 * dwarf2/macro.c: New file.
9669 * dwarf2/macro.h: New file.
9670 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9671
9672 2020-03-26 Tom Tromey <tom@tromey.com>
9673
9674 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9675 method.
9676 * dwarf2/section.c: New method. From
9677 read_indirect_string_at_offset_from.
9678 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9679 (read_indirect_string_at_offset_from): Move to section.c.
9680 (read_indirect_string_at_offset): Rewrite.
9681 (read_indirect_line_string_at_offset): Remove.
9682 (read_indirect_string, read_indirect_line_string)
9683 (dwarf_decode_macro_bytes): Update.
9684
9685 2020-03-26 Tom Tromey <tom@tromey.com>
9686
9687 * dwarf2/section.h (struct dwarf2_section_info)
9688 <overload_complaint>: Declare.
9689 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9690 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9691 Rename from dwarf2_section_buffer_overflow_complaint.
9692 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9693 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9694
9695 2020-03-26 Tom Tromey <tom@tromey.com>
9696
9697 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9698 Declare.
9699 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9700 Move from read.c.
9701 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9702 to section.c.
9703
9704 2020-03-26 Tom Tromey <tom@tromey.com>
9705
9706 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9707
9708 2020-03-26 Tom Tromey <tom@tromey.com>
9709
9710 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9711 "builder".
9712 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9713 parameter.
9714 (dwarf_decode_macros): Update.
9715
9716 2020-03-26 Tom Tromey <tom@tromey.com>
9717
9718 * dwarf2/read.c (read_attribute_value): Update.
9719 (read_indirect_string_from_dwz): Move to dwz.c; change into
9720 method.
9721 (dwarf_decode_macro_bytes): Update.
9722 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9723 * dwarf2/dwz.c: New file.
9724 * Makefile.in (COMMON_SFILES): Add dwz.c.
9725
9726 2020-03-26 Tom Tromey <tom@tromey.com>
9727
9728 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9729 * dwarf2/read.c: Add include.
9730 * dwarf2/index-write.c: Add include.
9731 * dwarf2/index-cache.c: Add include.
9732 * dwarf2/dwz.h: New file.
9733
9734 2020-03-25 Tom Tromey <tom@tromey.com>
9735
9736 * compile/compile-object-load.c (get_out_value_type): Mention
9737 correct symbol name in error message.
9738
9739 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
9740
9741 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9742
9743 2020-03-25 Tom de Vries <tdevries@suse.de>
9744
9745 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9746 * symmisc.c (dump_symtab_1): Print user and includes fields.
9747 (maintenance_info_symtabs): Same.
9748
9749 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9750
9751 PR gdb/25534
9752 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9753 (riscv_regcache_cooked_write): New function.
9754 (riscv_push_dummy_call): Use new function.
9755 (riscv_return_value): Likewise.
9756
9757 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9758
9759 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9760 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9761 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9762 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9763 * infrun.c (follow_fork): Likewise.
9764 (follow_fork_inferior): Likewise.
9765 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9766 * linux-nat.h (class linux_nat_target): Likewise.
9767 * remote.c (class remote_target) <follow_fork>: Likewise.
9768 (remote_target::follow_fork): Likewise.
9769 * target-delegates.c: Re-generate.
9770 * target.c (default_follow_fork): Likewise.
9771 (target_follow_fork): Likewise.
9772 * target.h (struct target_ops) <follow_fork>: Likewise.
9773 (target_follow_fork): Likewise.
9774
9775 2020-03-24 Tom de Vries <tdevries@suse.de>
9776
9777 * psymtab.c (maintenance_info_psymtabs): Print user field.
9778
9779 2020-03-20 Tom Tromey <tromey@adacore.com>
9780
9781 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9782 const.
9783 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9784 const.
9785
9786 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
9787
9788 * ptrace.m4: Don't check for ptrace declaration.
9789 * config.in: Re-generate.
9790 * configure: Re-generate.
9791 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9792 not defined.
9793
9794 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9795
9796 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9797 `PTRACE_TYPE_RET'.
9798 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9799 * sparc-nat.c (gdb_ptrace): Likewise.
9800 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9801
9802 2020-03-20 Tom Tromey <tromey@adacore.com>
9803
9804 * c-exp.y (lex_one_token): Fix assert.
9805
9806 2020-03-20 Tom Tromey <tromey@adacore.com>
9807
9808 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9809 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9810 strncpy call.
9811
9812 2020-03-20 Tom Tromey <tromey@adacore.com>
9813
9814 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9815
9816 2020-03-20 Tom Tromey <tromey@adacore.com>
9817
9818 * ada-valprint.c (print_variant_part): Remove parameters; switch
9819 to value-based API.
9820 (print_field_values): Likewise.
9821 (ada_val_print_struct_union): Likewise.
9822 (ada_value_print_1): Update.
9823
9824 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9825
9826 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9827 nbsd_nat_target instead of inf_ptrace_target.
9828 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9829 nbsd_nat_target.
9830
9831 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9832
9833 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9834 it to the ptrace call.
9835 * (store_registers): Likewise.
9836
9837 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9838
9839 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9840 it to the ptrace call.
9841 * (store_registers): Likewise.
9842
9843 2020-03-19 Luis Machado <luis.machado@linaro.org>
9844
9845 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9846 valid, fetch vg value from ptrace.
9847
9848 2020-03-19 Kamil Rytarowski <n54@gmx.com>
9849 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9850 * inf-ptrace.c: Likewise.
9851 * (gdb_ptrace): Add.
9852 * (inf_ptrace_target::resume): Update.
9853 * (inf_ptrace_target::xfer_partial): Likewise.
9854 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9855 * (inf_ptrace_peek_poke): Update.
9856
9857 2020-03-19 Kamil Rytarowski <n54@gmx.com>
9858
9859 * x86-bsd-nat.c (gdb_ptrace): New.
9860 * (x86bsd_dr_set): Add new argument `ptid'.
9861 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9862 x86bsd_dr_set_addr): Update.
9863
9864 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9865
9866 * remote.c (remote_target::process_stop_reply): Handle events for
9867 all threads differently.
9868
9869 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9870
9871 * completer.c (completion_tracker::remove_completion): Define new
9872 function.
9873 * completer.h (completion_tracker::remove_completion): Declare new
9874 function.
9875 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9876 when adding a C++ function symbol.
9877
9878 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9879
9880 * completer.c (completion_tracker::completion_hash_entry): Define
9881 new class.
9882 (advance_to_filename_complete_word_point): Call
9883 recompute_lowest_common_denominator.
9884 (completion_tracker::completion_tracker): Call discard_completions
9885 to setup the hash table.
9886 (completion_tracker::discard_completions): Allow for being called
9887 from the constructor, pass new equal function, and element deleter
9888 when constructing the hash table. Initialise new class member
9889 variables.
9890 (completion_tracker::maybe_add_completion): Remove use of
9891 m_entries_vec, and store more information into m_entries_hash.
9892 (completion_tracker::recompute_lcd_visitor): New function, most
9893 content taken from...
9894 (completion_tracker::recompute_lowest_common_denominator):
9895 ...here, this now just visits each item in the hash calling the
9896 above visitor.
9897 (completion_tracker::build_completion_result): Remove use of
9898 m_entries_vec, call recompute_lowest_common_denominator.
9899 * completer.h (completion_tracker::have_completions): Remove use
9900 of m_entries_vec.
9901 (completion_tracker::completion_hash_entry): Declare new class.
9902 (completion_tracker::recompute_lowest_common_denominator): Change
9903 function signature.
9904 (completion_tracker::recompute_lcd_visitor): Declare new function.
9905 (completion_tracker::m_entries_vec): Delete.
9906 (completion_tracker::m_entries_hash): Initialize to NULL.
9907 (completion_tracker::m_lowest_common_denominator_valid): New
9908 member variable.
9909 (completion_tracker::m_lowest_common_denominator_max_length): New
9910 member variable.
9911
9912 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9913
9914 * regformats/regdef.h: Put reg in gdb namespace.
9915
9916 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9917
9918 * i386-bsd-nat.c (gdb_ptrace): New.
9919 * (i386bsd_fetch_inferior_registers,
9920 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9921 * (i386bsd_fetch_inferior_registers,
9922 i386bsd_store_inferior_registers) Use gdb_ptrace.
9923
9924 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9925
9926 * amd64-bsd-nat.c (gdb_ptrace): New.
9927 * (amd64bsd_fetch_inferior_registers,
9928 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9929 * (amd64bsd_fetch_inferior_registers,
9930 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9931
9932 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9933
9934 * user-regs.c (user_reg::read): Rename to...
9935 (user_reg::xread): ...this.
9936 * (append_user_reg): Rename argument `read' to `xread'.
9937 * (user_reg_add_builtin): Likewise.
9938 * (user_reg_add): Likewise.
9939 * (value_of_user_reg): Likewise.
9940
9941 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9942
9943 * sparc-nat.c (gdb_ptrace): New.
9944 * sparc-nat.c (sparc_fetch_inferior_registers)
9945 (sparc_store_inferior_registers) Remove obsolete comment.
9946 * sparc-nat.c (sparc_fetch_inferior_registers)
9947 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9948 * sparc-nat.c (sparc_fetch_inferior_registers)
9949 (sparc_store_inferior_registers) Use gdb_ptrace.
9950
9951 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9952
9953 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9954 it to the ptrace call.
9955 * sh-nbsd-nat.c (store_registers): Likewise.
9956
9957 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9958
9959 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9960 nbsd_nat_target instead of inf_ptrace_target.
9961 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9962 nbsd_nat_target.
9963
9964 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9965
9966 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9967
9968 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9969
9970 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9971 <sys/sysctl.h>.
9972 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9973
9974 2020-03-17 Tom de Vries <tdevries@suse.de>
9975
9976 PR gdb/23710
9977 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9978 fields.
9979 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9980 fields.
9981 (process_imported_unit_die): Skip import of c++ CUs.
9982
9983 2020-03-16 Tom Tromey <tom@tromey.com>
9984
9985 * p-valprint.c (pascal_object_print_value): Initialize
9986 base_value.
9987
9988 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9989 Shahab Vahedi <shahab@synopsys.com>
9990
9991 * Makefile.in: Add arch/arc.o
9992 * configure.tgt: Likewise.
9993 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9994 (_initialize_arc_tdep): Don't initialize old target descriptions.
9995 (arc_read_description): New function to cache target descriptions.
9996 * arc-tdep.h (arc_read_description): Add proto type.
9997 * arch/arc.c: New file.
9998 * arch/arc.h: Likewise.
9999 * features/Makefile: Replace old target descriptions with new.
10000 * features/arc-arcompact.c: Remove.
10001 * features/arc-arcompact.xml: Likewise.
10002 * features/arc-v2.c: Likewise
10003 * features/arc-v2.xml: Likewise
10004 * features/arc/aux-arcompact.xml: New file.
10005 * features/arc/aux-v2.xml: Likewise.
10006 * features/arc/core-arcompact.xml: Likewise.
10007 * features/arc/core-v2.xml: Likewise.
10008 * features/arc/aux-arcompact.c: Generate.
10009 * features/arc/aux-v2.c: Likewise.
10010 * features/arc/core-arcompact.c: Likewise.
10011 * features/arc/core-v2.c: Likewise.
10012 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
10013
10014 2020-03-16 Tom Tromey <tromey@adacore.com>
10015
10016 PR gdb/25663:
10017 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
10018 putting value into bcache.
10019
10020 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10021
10022 PR gdb/21500
10023 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
10024 to...
10025 (amd64_windows_init_abi_common): ... this. Don't set size of
10026 long type.
10027 (amd64_windows_init_abi): New function.
10028 (amd64_cygwin_init_abi): New function.
10029 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
10030 the Cygwin OS ABI.
10031 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
10032 comment.
10033
10034 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10035
10036 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
10037 * windows-tdep.c (CYGWIN_DLL_NAME): New.
10038 (pe_import_directory_entry): New struct type.
10039 (is_linked_with_cygwin_dll): New function.
10040 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
10041 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
10042 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
10043
10044 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10045
10046 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
10047 i386_cygwin_core_osabi_sniffer.
10048
10049 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10050
10051 * i386-cygwin-tdep.c: Rename to...
10052 * i386-windows-tdep.c: ... this.
10053 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
10054 i386-windows-tdep.c.
10055 * configure.tgt: Likewise.
10056
10057 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10058
10059 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
10060 * osabi.c (gdb_osabi_names): Add "Windows".
10061 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
10062 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
10063 (i386_cygwin_core_osabi_sniffer): New function, extracted from
10064 i386_cygwin_osabi_sniffer.
10065 (_initialize_i386_cygwin_tdep): Register OS ABI
10066 GDB_OSABI_WINDOWS for i386.
10067 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
10068 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
10069 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
10070 for x86-64.
10071 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
10072 when the target matches '*-*-mingw*'.
10073
10074 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10075
10076 * defs.h (enum gdb_osabi): Move to...
10077 * osabi.h (enum gdb_osabi): ... here.
10078 * gdbarch.sh: Include osabi.h in gdbarch.h.
10079 * gdbarch.h: Re-generate.
10080
10081 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10082
10083 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
10084 function.
10085 (_initialize_amd64_windows_tdep): Register osabi sniffer.
10086
10087 2020-03-14 Tom Tromey <tom@tromey.com>
10088
10089 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
10090 for C++.
10091 (c_type_print_modifier): Likewise. Add "language" parameter.
10092 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
10093 (c_type_print_base_1): Update.
10094 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
10095 constants.
10096 * type-stack.c (type_stack::insert): Handle tp_atomic and
10097 tp_restrict.
10098 (type_stack::follow_type_instance_flags): Likewise.
10099 (type_stack::follow_types): Likewise. Merge type-following code.
10100 * c-exp.y (RESTRICT, ATOMIC): New tokens.
10101 (space_identifier, cv_with_space_id)
10102 (const_or_volatile_or_space_identifier_noopt)
10103 (const_or_volatile_or_space_identifier): Remove.
10104 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
10105 rules.
10106 (ptr_operator, typebase): Update.
10107 (enum token_flag) <FLAG_C>: New constant.
10108 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
10109 "_Atomic".
10110 (lex_one_token): Handle FLAG_C.
10111
10112 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10113
10114 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
10115 it to the ptrace call.
10116 * m68k-bsd-nat.c (store_registers): Likewise.
10117
10118 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10119
10120 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
10121 gdb_byte *.
10122 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
10123 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
10124 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
10125
10126 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10127
10128 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
10129 nbsd_nat_target instead of inf_ptrace_target.
10130 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10131 nbsd_nat_target.
10132
10133 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10134
10135 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
10136 register_t.
10137
10138 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10139
10140 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
10141 it to the ptrace call.
10142 * alpha-bsd-nat.c (store_registers): Likewise.
10143
10144 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10145
10146 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
10147 includes.
10148 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
10149 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
10150 fill_fpregset): Likewise.
10151
10152 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10153
10154 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
10155 nbsd_nat_target instead of inf_ptrace_target.
10156 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10157 nbsd_nat_target.
10158
10159 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10160
10161 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
10162 register_t.
10163
10164 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10165
10166 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
10167 it to the ptrace call.
10168 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
10169 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
10170 * arm-nbsd-nat.c (store_register): Likewise.
10171 * arm-nbsd-nat.c (store_regs): Likewise.
10172 * arm-nbsd-nat.c (store_fp_register): Likewise.
10173 * arm-nbsd-nat.c (store_fp_regs): Likewise.
10174
10175 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10176
10177 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
10178 nbsd_nat_target instead of inf_ptrace_target.
10179 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10180 nbsd_nat_target.
10181
10182 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10183
10184 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
10185 it to the ptrace call.
10186 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
10187
10188 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10189
10190 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
10191 it to the ptrace call.
10192 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
10193
10194 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10195
10196 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
10197 gdb_byte *.
10198 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
10199
10200 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10201
10202 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
10203 instead of inf_ptrace_target.
10204 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10205 nbsd_nat_target.
10206
10207 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10208
10209 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10210 register_t.
10211
10212 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10213
10214 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10215 register_t.
10216
10217 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10218
10219 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
10220 register_t.
10221
10222 2020-03-13 Tom Tromey <tom@tromey.com>
10223
10224 * value.h (val_print): Don't declare.
10225 * valprint.h (val_print_array_elements)
10226 (val_print_scalar_formatted, generic_val_print): Don't declare.
10227 * valprint.c (generic_val_print_array): Take a struct value.
10228 (generic_val_print_ptr, generic_val_print_memberptr)
10229 (generic_val_print_bool, generic_val_print_int)
10230 (generic_val_print_char, generic_val_print_complex)
10231 (generic_val_print): Remove.
10232 (generic_value_print): Update.
10233 (do_val_print): Remove unused parameters. Don't call
10234 la_val_print.
10235 (val_print): Remove.
10236 (common_val_print): Update. Don't call value_check_printable.
10237 (val_print_scalar_formatted, val_print_array_elements): Remove.
10238 * rust-lang.c (rust_val_print): Remove.
10239 (rust_language_defn): Update.
10240 * p-valprint.c (pascal_val_print): Remove.
10241 (pascal_value_print_inner): Update.
10242 (pascal_object_print_val_fields, pascal_object_print_val):
10243 Remove.
10244 (pascal_object_print_static_field): Update.
10245 * p-lang.h (pascal_val_print): Don't declare.
10246 * p-lang.c (pascal_language_defn): Update.
10247 * opencl-lang.c (opencl_language_defn): Update.
10248 * objc-lang.c (objc_language_defn): Update.
10249 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
10250 * m2-lang.h (m2_val_print): Don't declare.
10251 * m2-lang.c (m2_language_defn): Update.
10252 * language.h (struct language_defn) <la_val_print>: Remove.
10253 * language.c (unk_lang_value_print_inner): Rename. Change
10254 argument types.
10255 (unknown_language_defn, auto_language_defn): Update.
10256 * go-valprint.c (go_val_print): Remove.
10257 * go-lang.h (go_val_print): Don't declare.
10258 * go-lang.c (go_language_defn): Update.
10259 * f-valprint.c (f_val_print): Remove.
10260 * f-lang.h (f_value_print): Don't declare.
10261 * f-lang.c (f_language_defn): Update.
10262 * d-valprint.c (d_val_print): Remove.
10263 * d-lang.h (d_value_print): Don't declare.
10264 * d-lang.c (d_language_defn): Update.
10265 * cp-valprint.c (cp_print_value_fields)
10266 (cp_print_value_fields_rtti, cp_print_value): Remove.
10267 (cp_print_static_field): Update.
10268 * c-valprint.c (c_val_print_array, c_val_print_ptr)
10269 (c_val_print_struct, c_val_print_union, c_val_print_int)
10270 (c_val_print_memberptr, c_val_print): Remove.
10271 * c-lang.h (c_val_print_array, cp_print_value_fields)
10272 (cp_print_value_fields_rtti): Don't declare.
10273 * c-lang.c (c_language_defn, cplus_language_defn)
10274 (asm_language_defn, minimal_language_defn): Update.
10275 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
10276 (ada_val_print_enum): Take a struct value.
10277 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
10278 (ada_val_print): Remove.
10279 (ada_value_print_1): Update.
10280 (printable_val_type): Remove.
10281 * ada-lang.h (ada_val_print): Don't declare.
10282 * ada-lang.c (ada_language_defn): Update.
10283
10284 2020-03-13 Tom Tromey <tom@tromey.com>
10285
10286 * valprint.c (do_val_print): Update.
10287 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
10288 a struct value.
10289 (value_to_value_object_no_release): Declare.
10290 * python/py-value.c (value_to_value_object_no_release): New
10291 function.
10292 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
10293 struct value.
10294 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
10295 function.
10296 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
10297 a struct value.
10298 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
10299 Declare.
10300 (gdbscm_apply_val_pretty_printer): Take a struct value.
10301 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
10302 value.
10303 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
10304 value.
10305 * extension-priv.h (struct extension_language_ops)
10306 <apply_val_pretty_printer>: Take a struct value.
10307 * cp-valprint.c (cp_print_value): Create a struct value.
10308 (cp_print_value): Update.
10309
10310 2020-03-13 Tom Tromey <tom@tromey.com>
10311
10312 * ada-valprint.c (print_field_values): Call common_val_print.
10313
10314 2020-03-13 Tom Tromey <tom@tromey.com>
10315
10316 * ada-valprint.c (val_print_packed_array_elements): Remove
10317 bitoffset and val parameters. Call common_val_print.
10318 (ada_val_print_string): Remove offset, address, and original_value
10319 parameters.
10320 (ada_val_print_array): Update.
10321 (ada_value_print_array): New function.
10322 (ada_value_print_1): Call it.
10323
10324 2020-03-13 Tom Tromey <tom@tromey.com>
10325
10326 * ada-valprint.c (ada_value_print): Use common_val_print.
10327
10328 2020-03-13 Tom Tromey <tom@tromey.com>
10329
10330 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
10331
10332 2020-03-13 Tom Tromey <tom@tromey.com>
10333
10334 * ada-valprint.c (ada_value_print_num): New function.
10335 (ada_value_print_1): Use it.
10336
10337 2020-03-13 Tom Tromey <tom@tromey.com>
10338
10339 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
10340
10341 2020-03-13 Tom Tromey <tom@tromey.com>
10342
10343 * ada-valprint.c (ada_value_print_ptr): New function.
10344 (ada_value_print_1): Use it.
10345
10346 2020-03-13 Tom Tromey <tom@tromey.com>
10347
10348 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
10349 call common_val_print.
10350 (ada_val_print_1): Update.
10351 (ada_value_print_1): New function.
10352 (ada_value_print_inner): Rewrite.
10353
10354 2020-03-13 Tom Tromey <tom@tromey.com>
10355
10356 * cp-valprint.c (cp_print_value_fields): Update.
10357 (cp_print_value): New function.
10358
10359 2020-03-13 Tom Tromey <tom@tromey.com>
10360
10361 * m2-valprint.c (m2_value_print_inner): Use
10362 cp_print_value_fields.
10363 * cp-valprint.c (cp_print_value_fields): New function.
10364 * c-valprint.c (c_value_print_struct): New function.
10365 (c_value_print_inner): Use c_value_print_struct.
10366 * c-lang.h (cp_print_value_fields): Declare.
10367
10368 2020-03-13 Tom Tromey <tom@tromey.com>
10369
10370 * c-valprint.c (c_value_print_array): New function.
10371 (c_value_print_inner): Use it.
10372
10373 2020-03-13 Tom Tromey <tom@tromey.com>
10374
10375 * c-valprint.c (c_value_print_memberptr): New function.
10376 (c_value_print_inner): Use it.
10377
10378 2020-03-13 Tom Tromey <tom@tromey.com>
10379
10380 * c-valprint.c (c_value_print_int): New function.
10381 (c_value_print_inner): Use it.
10382
10383 2020-03-13 Tom Tromey <tom@tromey.com>
10384
10385 * c-valprint.c (c_value_print_ptr): New function.
10386 (c_value_print_inner): Use it.
10387
10388 2020-03-13 Tom Tromey <tom@tromey.com>
10389
10390 * c-valprint.c (c_value_print_inner): Rewrite.
10391
10392 2020-03-13 Tom Tromey <tom@tromey.com>
10393
10394 * valprint.c (generic_value_print_complex): New function.
10395 (generic_value_print): Use it.
10396
10397 2020-03-13 Tom Tromey <tom@tromey.com>
10398
10399 * valprint.c (generic_val_print_float): Don't call
10400 val_print_scalar_formatted.
10401 (generic_val_print, generic_value_print): Update.
10402
10403 2020-03-13 Tom Tromey <tom@tromey.com>
10404
10405 * valprint.c (generic_value_print_char): New function
10406 (generic_value_print): Use it.
10407
10408 2020-03-13 Tom Tromey <tom@tromey.com>
10409
10410 * valprint.c (generic_value_print_int): New function.
10411 (generic_value_print): Use it.
10412
10413 2020-03-13 Tom Tromey <tom@tromey.com>
10414
10415 * valprint.c (generic_value_print_bool): New function.
10416 (generic_value_print): Use it.
10417
10418 2020-03-13 Tom Tromey <tom@tromey.com>
10419
10420 * valprint.c (generic_val_print_func): Simplify.
10421 (generic_val_print, generic_value_print): Update.
10422
10423 2020-03-13 Tom Tromey <tom@tromey.com>
10424
10425 * valprint.c (generic_val_print_flags): Remove.
10426 (generic_val_print, generic_value_print): Update.
10427 (val_print_type_code_flags): Add original_value parameter.
10428
10429 2020-03-13 Tom Tromey <tom@tromey.com>
10430
10431 * valprint.c (generic_val_print): Update.
10432 (generic_value_print): Update.
10433 * valprint.c (generic_val_print_enum): Don't call
10434 val_print_scalar_formatted.
10435
10436 2020-03-13 Tom Tromey <tom@tromey.com>
10437
10438 * valprint.c (generic_value_print): Call generic_value_print_ptr.
10439 * valprint.c (generic_value_print_ptr): New function.
10440
10441 2020-03-13 Tom Tromey <tom@tromey.com>
10442
10443 * valprint.c (generic_value_print): Rewrite.
10444
10445 2020-03-13 Tom Tromey <tom@tromey.com>
10446
10447 * p-valprint.c (pascal_object_print_value_fields)
10448 (pascal_object_print_value): New functions.
10449
10450 2020-03-13 Tom Tromey <tom@tromey.com>
10451
10452 * p-valprint.c (pascal_value_print_inner): Rewrite.
10453
10454 2020-03-13 Tom Tromey <tom@tromey.com>
10455
10456 * f-valprint.c (f_value_print_innner): Rewrite.
10457
10458 2020-03-13 Tom Tromey <tom@tromey.com>
10459
10460 * m2-valprint.c (m2_print_unbounded_array): New overload.
10461 (m2_print_unbounded_array): Update.
10462 (m2_print_array_contents): Take a struct value.
10463 (m2_value_print_inner): Rewrite.
10464
10465 2020-03-13 Tom Tromey <tom@tromey.com>
10466
10467 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10468 (d_value_print_inner): New function.
10469 * d-lang.h (d_value_print_inner): Declare.
10470 * d-lang.c (d_language_defn): Use d_value_print_inner.
10471
10472 2020-03-13 Tom Tromey <tom@tromey.com>
10473
10474 * go-valprint.c (go_value_print_inner): New function.
10475 * go-lang.h (go_value_print_inner): Declare.
10476 * go-lang.c (go_language_defn): Use go_value_print_inner.
10477
10478 2020-03-13 Tom Tromey <tom@tromey.com>
10479
10480 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10481 API.
10482 (rust_val_print): Rewrite.
10483 (rust_value_print_inner): New function, from rust_val_print.
10484 (rust_language_defn): Use rust_value_print_inner.
10485
10486 2020-03-13 Tom Tromey <tom@tromey.com>
10487
10488 * ada-valprint.c (ada_value_print_inner): New function.
10489 * ada-lang.h (ada_value_print_inner): Declare.
10490 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10491
10492 2020-03-13 Tom Tromey <tom@tromey.com>
10493
10494 * f-valprint.c (f_value_print_innner): New function.
10495 * f-lang.h (f_value_print_innner): Declare.
10496 * f-lang.c (f_language_defn): Use f_value_print_innner.
10497
10498 2020-03-13 Tom Tromey <tom@tromey.com>
10499
10500 * p-valprint.c (pascal_value_print_inner): New function.
10501 * p-lang.h (pascal_value_print_inner): Declare.
10502 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10503
10504 2020-03-13 Tom Tromey <tom@tromey.com>
10505
10506 * m2-valprint.c (m2_value_print_inner): New function.
10507 * m2-lang.h (m2_value_print_inner): Declare.
10508 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10509
10510 2020-03-13 Tom Tromey <tom@tromey.com>
10511
10512 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10513 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10514 * c-valprint.c (c_value_print_inner): New function.
10515 * c-lang.h (c_value_print_inner): Declare.
10516 * c-lang.c (c_language_defn, cplus_language_defn)
10517 (asm_language_defn, minimal_language_defn): Use
10518 c_value_print_inner.
10519
10520 2020-03-13 Tom Tromey <tom@tromey.com>
10521
10522 * p-valprint.c (pascal_object_print_value_fields): Now static.
10523 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10524
10525 2020-03-13 Tom Tromey <tom@tromey.com>
10526
10527 * c-valprint.c (c_val_print_array): Simplify.
10528
10529 2020-03-13 Tom Tromey <tom@tromey.com>
10530
10531 * valprint.c (value_print_array_elements): New function.
10532 * valprint.h (value_print_array_elements): Declare.
10533
10534 2020-03-13 Tom Tromey <tom@tromey.com>
10535
10536 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10537 * mips-tdep.c (mips_print_register): Use
10538 value_print_scalar_formatted.
10539
10540 2020-03-13 Tom Tromey <tom@tromey.com>
10541
10542 * valprint.h (value_print_scalar_formatted): Declare.
10543 * valprint.c (value_print_scalar_formatted): New function.
10544
10545 2020-03-13 Tom Tromey <tom@tromey.com>
10546
10547 * valprint.h (generic_value_print): Declare.
10548 * valprint.c (generic_value_print): New function.
10549
10550 2020-03-13 Tom Tromey <tom@tromey.com>
10551
10552 * valprint.c (do_val_print): Call la_value_print_inner, if
10553 available.
10554 * rust-lang.c (rust_language_defn): Update.
10555 * p-lang.c (pascal_language_defn): Update.
10556 * opencl-lang.c (opencl_language_defn): Update.
10557 * objc-lang.c (objc_language_defn): Update.
10558 * m2-lang.c (m2_language_defn): Update.
10559 * language.h (struct language_defn) <la_value_print_inner>: New
10560 member.
10561 * language.c (unknown_language_defn, auto_language_defn): Update.
10562 * go-lang.c (go_language_defn): Update.
10563 * f-lang.c (f_language_defn): Update.
10564 * d-lang.c (d_language_defn): Update.
10565 * c-lang.c (c_language_defn, cplus_language_defn)
10566 (asm_language_defn, minimal_language_defn): Update.
10567 * ada-lang.c (ada_language_defn): Update.
10568
10569 2020-03-13 Tom Tromey <tom@tromey.com>
10570
10571 * c-valprint.c (c_value_print): Use common_val_print.
10572
10573 2020-03-13 Tom Tromey <tom@tromey.com>
10574
10575 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10576
10577 2020-03-13 Tom Tromey <tom@tromey.com>
10578
10579 * f-valprint.c (f77_print_array_1, f_val_print): Use
10580 common_val_print.
10581
10582 2020-03-13 Tom Tromey <tom@tromey.com>
10583
10584 * riscv-tdep.c (riscv_print_one_register_info): Use
10585 common_val_print.
10586
10587 2020-03-13 Tom Tromey <tom@tromey.com>
10588
10589 * mi/mi-main.c (output_register): Use common_val_print.
10590
10591 2020-03-13 Tom Tromey <tom@tromey.com>
10592
10593 * infcmd.c (default_print_one_register_info): Use
10594 common_val_print.
10595
10596 2020-03-13 Tom Tromey <tom@tromey.com>
10597
10598 * valprint.h (common_val_print_checked): Declare.
10599 * valprint.c (common_val_print_checked): New function.
10600 * stack.c (print_frame_arg): Use common_val_print_checked.
10601
10602 2020-03-13 Tom Tromey <tom@tromey.com>
10603
10604 * valprint.c (do_val_print): New function, from val_print.
10605 (val_print): Use do_val_print.
10606 (common_val_print): Use do_val_print.
10607
10608 2020-03-13 Tom Tromey <tom@tromey.com>
10609
10610 * valprint.c (value_print): Use scoped_value_mark.
10611
10612 2020-03-13 Tom de Vries <tdevries@suse.de>
10613
10614 PR symtab/25646
10615 * psymtab.c (partial_symtab::partial_symtab): Don't set
10616 globals_offset and statics_offset. Push element onto
10617 current_global_psymbols and current_static_psymbols stacks.
10618 (concat): New function.
10619 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10620 element from current_global_psymbols and current_static_psymbols
10621 stacks. Concat popped elements to global_psymbols and
10622 static_symbols.
10623 (add_psymbol_to_list): Use current_global_psymbols and
10624 current_static_psymbols stacks.
10625 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10626 current_static_psymbols fields.
10627
10628 2020-03-12 Christian Biesinger <cbiesinger@google.com>
10629
10630 * corelow.c (sniff_core_bfd): Remove.
10631 (class core_target) <m_core_vec>: Remove.
10632 (core_target::core_target): Update.
10633 (core_file_fns): Remove.
10634 (deprecated_add_core_fns): Remove.
10635 (default_core_sniffer): Remove.
10636 (sniff_core_bfd): Remove.
10637 (default_check_format): Remove.
10638 (gdb_check_format): Remove.
10639 (core_target_open): Update.
10640 (core_target::get_core_register_section): Update.
10641 (get_core_registers_cb): Update.
10642 (core_target::fetch_registers): Update.
10643 * gdbcore.h (struct core_fns): Remove.
10644 (deprecated_add_core_fns): Remove.
10645 (default_core_sniffer): Remove.
10646 (default_check_format): Remove.
10647
10648 2020-03-12 Tom Tromey <tom@tromey.com>
10649
10650 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10651 CORE_ADDR.
10652 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10653
10654 2020-03-12 Tom Tromey <tom@tromey.com>
10655
10656 * remote.c (remote_target::download_tracepoint)
10657 (remote_target::enable_tracepoint)
10658 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10659 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10660 sprintf_vma.
10661
10662 2020-03-12 Tom Tromey <tom@tromey.com>
10663
10664 * symfile-mem.c: Update CORE_ADDR size assert.
10665
10666 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10667
10668 * selftest.m4: Move to gdbsupport/.
10669 * acinclude.m4: Update path to selftest.m4.
10670
10671 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10672
10673 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10674 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10675 gdbarch-selfselftests.c and selftest-arch.c.
10676 (SUBDIR_UNITTESTS_OBS): Rename to...
10677 (SELFTESTS_OBS): ... this.
10678 (COMMON_SFILES): Remove disasm-selftests.c and
10679 gdbarch-selftests.c.
10680 * configure.ac: Don't add selftest-arch.{c,o} to
10681 CONFIG_{SRCS,OBS}.
10682 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10683 preprocessor conditions.
10684
10685 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10686
10687 * configure.ac: Don't source bfd/development.sh.
10688 * selftest.m4: Modify comment.
10689 * configure: Re-generate.
10690
10691 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10692
10693 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10694 not "true" or "false".
10695 * configure: Re-generate.
10696
10697 2020-03-12 Christian Biesinger <cbiesinger@google.com>
10698
10699 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10700 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10701 renamed to arm_nbsd_supply_gregset.
10702 (fetch_register): Update to call arm_nbsd_supply_gregset.
10703 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10704 (arm_netbsd_nat_target::fetch_registers): Update.
10705 (fetch_elfcore_registers): Removed.
10706 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10707 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10708 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10709 not require NetBSD system headers.
10710 (arm_nbsd_regset): New struct.
10711 (arm_nbsd_iterate_over_regset_sections): New function.
10712 (arm_netbsd_init_abi_common): Updated to call
10713 set_gdbarch_iterate_over_regset_sections.
10714 * arm-nbsd-tdep.h: New file.
10715
10716 2020-03-11 Kevin Buettner <kevinb@redhat.com>
10717
10718 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10719 recursion.
10720
10721 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
10722
10723 * configure: Re-generate.
10724
10725 2020-03-11 Tom Tromey <tromey@adacore.com>
10726
10727 * ada-typeprint.c (print_choices): Fix comment.
10728
10729 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10730
10731 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10732 previous item in the list, when the list has no items.
10733
10734 2020-03-11 Tom de Vries <tdevries@suse.de>
10735
10736 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10737 PROP_LOCLIST handling code.
10738
10739 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10740
10741 * buildsym-legacy.c (record_line): Pass extra parameter to
10742 record_line.
10743 * buildsym.c (buildsym_compunit::record_line): Take an extra
10744 parameter, reduce duplication in the line table, and record the
10745 is_stmt flag in the line table.
10746 * buildsym.h (buildsym_compunit::record_line): Add extra
10747 parameter.
10748 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10749 non-statement lines.
10750 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10751 this to the symtab builder.
10752 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10753 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10754 through to dwarf_record_line_1.
10755 * infrun.c (process_event_stop_test): When stepping, don't stop at
10756 a non-statement instruction, and only refresh the step info when
10757 we land in the middle of a line's range. Also add an extra
10758 comment.
10759 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10760 field.
10761 * record-btrace.c (btrace_find_line_range): Only record lines
10762 marked as is-statement.
10763 * stack.c (frame_show_address): Show the frame address if we are
10764 in a non-statement sal.
10765 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10766 (maintenance_print_one_line_table): Print a header for the is_stmt
10767 column, and include is_stmt information in the output.
10768 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10769 preference to non-statements.
10770 (find_pcs_for_symtab_line): Prefer is-statement entries.
10771 (find_line_common): Likewise.
10772 * symtab.h (struct linetable_entry): Add is_stmt field.
10773 (struct symtab_and_line): Likewise.
10774 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10775 arranging the line table.
10776
10777 2020-03-07 Tom de Vries <tdevries@suse.de>
10778
10779 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10780 DIE.
10781
10782 2020-03-07 Tom Tromey <tom@tromey.com>
10783
10784 * valops.c (value_literal_complex): Remove obsolete comment.
10785 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10786 comment.
10787
10788 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10789
10790 * infrun.h: Forward-declare thread_info.
10791 (set_step_info): Add thread_info parameter, add doc.
10792 * infrun.c (set_step_info): Add thread_info parameter, move doc
10793 to header.
10794 * infrun.c (process_event_stop_test): Pass thread to
10795 set_step_info call.
10796 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10797 set_step_info.
10798 (prepare_one_step): Add thread_info parameter, pass it to
10799 set_step_frame and prepare_one_step (recursive) call.
10800 (step_1): Pass thread to prepare_one_step call.
10801 (step_command_fsm::should_stop): Pass thread to
10802 prepare_one_step.
10803 (until_next_fsm): Pass thread to set_step_frame call.
10804 (finish_command): Pass thread to set_step_info call.
10805
10806 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
10807
10808 * windows-tdep.c (windows_solib_create_inferior_hook):
10809 Check if inferior is running.
10810
10811 2020-03-06 Tom de Vries <tdevries@suse.de>
10812
10813 * NEWS: Fix "the the".
10814 * ctfread.c: Same.
10815
10816 2020-03-06 Tom de Vries <tdevries@suse.de>
10817
10818 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10819
10820 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10821
10822 * .dir-locals.el: Add a comment referencing the other copies of
10823 this file.
10824
10825 2020-03-05 John Baldwin <jhb@FreeBSD.org>
10826
10827 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10828 psargs.
10829
10830 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10831
10832 * .gitattributes: New file.
10833
10834 2020-03-04 Tom Tromey <tom@tromey.com>
10835
10836 * symmisc.c (print_symbol_bcache_statistics)
10837 (print_objfile_statistics): Update.
10838 * symfile.c (allocate_symtab): Use intern.
10839 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10840 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10841 macro_cache>: Remove.
10842 <string_cache>: New member.
10843 (struct objfile) <intern>: New methods.
10844 * elfread.c (elf_symtab_read): Use intern.
10845 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10846 (dwarf2_compute_name, dwarf2_physname)
10847 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10848 names.
10849 (guess_partial_die_structure_name): Update.
10850 (partial_die_info::fixup): Intern name.
10851 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10852 name.
10853 (dwarf2_name): Intern name. Update.
10854 * buildsym.c (buildsym_compunit::get_macro_table): Use
10855 string_cache.
10856
10857 2020-03-04 Tom Tromey <tom@tromey.com>
10858
10859 * jit.c (bfd_open_from_target_memory): Make "target" const.
10860 * corefile.c (gnutarget): Now const.
10861 * gdbcore.h (gnutarget): Now const.
10862
10863 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
10864
10865 * NEWS: Mention support for WOW64 processes.
10866 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10867 (amd64_windows_segment_register_p): Remove static.
10868 (_initialize_amd64_windows_nat): Update.
10869 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10870 * i386-windows-nat.c (context_offset): Update.
10871 (i386_mappings): Rename and remove static.
10872 (i386_windows_segment_register_p): Remove static.
10873 (_initialize_i386_windows_nat): Update.
10874 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10875 (STATUS_WX86_SINGLE_STEP): New macro.
10876 (EnumProcessModulesEx): New macro.
10877 (Wow64SuspendThread): New macro.
10878 (Wow64GetThreadContext): New macro.
10879 (Wow64SetThreadContext): New macro.
10880 (Wow64GetThreadSelectorEntry): New macro.
10881 (windows_set_context_register_offsets): Add static.
10882 (windows_set_segment_register_p): Likewise.
10883 (windows_add_thread): Adapt for WOW64 processes.
10884 (windows_fetch_one_register): Likewise.
10885 (windows_nat_target::fetch_registers): Likewise.
10886 (windows_store_one_register): Likewise.
10887 (display_selector): Likewise.
10888 (display_selectors): Likewise.
10889 (handle_exception): Likewise.
10890 (windows_continue): Likewise.
10891 (windows_nat_target::resume): Likewise.
10892 (windows_add_all_dlls): Likewise.
10893 (do_initial_windows_stuff): Likewise.
10894 (windows_nat_target::attach): Likewise.
10895 (windows_get_exec_module_filename): Likewise.
10896 (windows_nat_target::create_inferior): Likewise.
10897 (windows_xfer_siginfo): Likewise.
10898 (_initialize_loadable): Initialize Wow64SuspendThread,
10899 Wow64GetThreadContext, Wow64SetThreadContext,
10900 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10901 * windows-nat.h (windows_set_context_register_offsets):
10902 Remove declaration.
10903 (windows_set_segment_register_p): Likewise.
10904 (i386_windows_segment_register_p): Add declaration.
10905 (amd64_windows_segment_register_p): Likewise.
10906
10907 2020-03-04 Luis Machado <luis.machado@linaro.org>
10908
10909 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10910 in "info registers" for AArch64/ARM.
10911
10912 The change caused "info registers" to not print GPR's.
10913
10914 gdb/ChangeLog:
10915
10916 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10917
10918 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10919 when reg->group is empty and reggroup is not.
10920
10921 2020-03-03 Tom Tromey <tromey@adacore.com>
10922
10923 * dwarf2/frame.c (struct dwarf2_frame_cache)
10924 <checked_tailcall_bottom, entry_cfa_sp_offset,
10925 entry_cfa_sp_offset_p>: Remove members.
10926 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10927 (dwarf2_frame_prev_register): Don't call
10928 dwarf2_tailcall_sniffer_first.
10929 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10930 * frame-unwind.c (add_unwinder): New fuction.
10931 (frame_unwind_init): Use it. Add tailcall unwinder.
10932
10933 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10934 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10935
10936 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10937 value should be printed as true.
10938
10939 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
10940
10941 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10942 (windows_init_abi): Set and use windows_so_ops.
10943
10944 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10945
10946 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10947 when verifying if dealing with a convenience variable.
10948
10949 2020-03-03 Luis Machado <luis.machado@linaro.org>
10950
10951 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10952
10953 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10954
10955 * infrun.c (gdbarch_supports_displaced_stepping): New.
10956 (use_displaced_stepping): Break up conditions in smaller pieces.
10957 Use gdbarch_supports_displaced_stepping.
10958 (displaced_step_prepare_throw): Use
10959 gdbarch_supports_displaced_stepping.
10960
10961 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10962
10963 * NEWS: Mention new behaviour of the history filename.
10964 * top.c (write_history_p): Add comment.
10965 (show_write_history_p): Add header comment, give a different
10966 message when history writing is on, but the history filename is
10967 empty.
10968 (history_filename): Add comment.
10969 (history_filename_empty): New function.
10970 (show_history_filename): Add header comment, give a different
10971 message when the filename is empty.
10972 (init_history): Compare history_filename against nullptr, and only
10973 read history if the filename is not empty.
10974 (set_history_filename): Add header comment, and only make
10975 non-empty filenames absolute.
10976 (init_main): Make the filename argument to 'set history filename'
10977 optional.
10978
10979 2020-03-02 Christian Biesinger <cbiesinger@google.com>
10980
10981 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10982 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10983 (fetch_fp_register): Update.
10984 (fetch_fp_regs): Update.
10985 (store_fp_register): Update.
10986 (store_fp_regs): Update.
10987 (arm_netbsd_nat_target::read_description): New function.
10988 (fetch_elfcore_registers): Update.
10989
10990 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10991
10992 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10993 general_thread if the stop reply is missing a thread-id.
10994 (remote_target::process_stop_reply): Use the first non-exited
10995 thread if the target didn't pass a thread-id.
10996 * infrun.c (do_target_wait): Move call to
10997 switch_to_inferior_no_thread to ....
10998 (do_target_wait_1): ... here.
10999
11000 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
11001
11002 * debuginfod-support.c: Include defs.h first.
11003
11004 2020-02-28 Tom de Vries <tdevries@suse.de>
11005
11006 * symfile.c (set_initial_language): Use default language for lookup.
11007
11008 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
11009
11010 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
11011 reader variable, pass `this` to read_cutu_die_from_dwo.
11012
11013 2020-02-27 Aaron Merey <amerey@redhat.com>
11014
11015 * source.c (open_source_file): Check for nullptr when computing
11016 srcpath.
11017
11018 2020-02-27 Tom Tromey <tromey@adacore.com>
11019
11020 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
11021 member.
11022 (dwarf2_add_field): Don't update nfields.
11023 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
11024
11025 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11026
11027 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
11028 abs.
11029
11030 2020-02-26 Tom Tromey <tom@tromey.com>
11031
11032 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
11033 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
11034 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
11035 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
11036 per_cu_data.
11037
11038 2020-02-26 Tom Tromey <tom@tromey.com>
11039
11040 * dwarf2/index-write.c (psym_index_map): Change type.
11041 (add_address_entry_worker, write_one_signatured_type)
11042 (recursively_count_psymbols, recursively_write_psymbols)
11043 (class debug_names, psyms_seen_size, write_gdbindex)
11044 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
11045
11046 2020-02-26 Aaron Merey <amerey@redhat.com>
11047
11048 * Makefile.in: Handle optional debuginfod support.
11049 * NEWS: Update.
11050 * README: Add --with-debuginfod summary.
11051 * config.in: Regenerate.
11052 * configure: Regenerate.
11053 * configure.ac: Handle optional debuginfod support.
11054 * debuginfod-support.c: debuginfod helper functions.
11055 * debuginfod-support.h: Ditto.
11056 * doc/gdb.texinfo: Add --with-debuginfod to configure options
11057 summary.
11058 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
11059 when a dwz file cannot be found.
11060 * elfread.c (elf_symfile_read): Query debuginfod servers when a
11061 debuginfo file cannot be found.
11062 * source.c (open_source_file): Query debuginfod servers when a
11063 source file cannot be found.
11064 * top.c (print_gdb_configuration): Include
11065 --{with,without}-debuginfod in the output.
11066
11067 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
11068
11069 * thread.c (thr_try_catch_cmd): Print thread name.
11070
11071 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
11072
11073 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
11074 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11075 dwarf2_fetch_die_type_sect_off): Move to...
11076 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
11077 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11078 dwarf2_fetch_die_type_sect_off): ... here.
11079 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
11080 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11081 dwarf2_fetch_die_type_sect_off): Move doc to header file.
11082
11083 2020-02-26 Tom de Vries <tdevries@suse.de>
11084
11085 PR gdb/25603
11086 * symfile.c (set_initial_language): Exit-early if
11087 language_mode == language_mode_manual.
11088
11089 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11090
11091 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
11092 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
11093 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
11094
11095 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
11096
11097 * gdbtypes.c (create_array_type_with_stride): Handle negative
11098 array strides.
11099 * valarith.c (value_subscripted_rvalue): Likewise.
11100
11101 2020-02-25 Luis Machado <luis.machado@linaro.org>
11102
11103 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
11104
11105 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11106
11107 * loc.h (dwarf2_get_die_type): Move to...
11108 * read.h (dwarf2_get_die_type): ... here.
11109 * read.c (dwarf2_get_die_type): Move doc to header.
11110
11111 2020-02-25 Joel Brobecker <brobecker@adacore.com>
11112
11113 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
11114 'gnulib/Makefile.in' to the list.
11115
11116 2020-02-24 Tom Tromey <tom@tromey.com>
11117
11118 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
11119 Remove.
11120 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
11121 XOBNEWVEC.
11122
11123 2020-02-24 Tom Tromey <tom@tromey.com>
11124
11125 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
11126 New method.
11127 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
11128 (dw2_do_instantiate_symtab, dw2_get_file_names)
11129 (build_type_psymtab_dependencies, load_full_type_unit): Update.
11130
11131 2020-02-24 Tom Tromey <tom@tromey.com>
11132
11133 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
11134 make_scoped_restore.
11135 (dwarf2_psymtab::read_symtab): Don't clear
11136 reading_partial_symbols.
11137
11138 2020-02-24 Tom de Vries <tdevries@suse.de>
11139
11140 PR gdb/25592
11141 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
11142
11143 2020-02-24 Tom de Vries <tdevries@suse.de>
11144
11145 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
11146 commands layout next/prev/regs.
11147
11148 2020-02-22 Tom Tromey <tom@tromey.com>
11149
11150 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
11151 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
11152
11153 2020-02-22 Tom Tromey <tom@tromey.com>
11154
11155 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
11156
11157 2020-02-22 Tom Tromey <tom@tromey.com>
11158
11159 * tui/tui-win.c (_initialize_tui_win): Add usage text.
11160 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
11161 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
11162 * tui/tui.c (_initialize_tui): Add usage text.
11163
11164 2020-02-22 Tom Tromey <tom@tromey.com>
11165
11166 * tui/tui-win.c (tui_set_focus_command)
11167 (tui_set_win_height_command): Use error_no_arg.
11168 (_initialize_tui_win): Update help text.
11169 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
11170
11171 2020-02-22 Tom Tromey <tom@tromey.com>
11172
11173 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
11174 * tui/tui-disasm.h (struct tui_disasm_window)
11175 <display_start_addr>: Declare.
11176 * tui/tui-source.h (struct tui_source_window)
11177 <display_start_addr>: Declare.
11178 * tui/tui-winsource.h (struct tui_source_window_base)
11179 <show_source_line, display_start_addr>: New methods.
11180 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
11181 Rename and move to protected section.
11182 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
11183 (tui_source_window_base::do_erase_source_content): Update.
11184 (tui_source_window_base::show_source_line): Now a method.
11185 (tui_source_window_base::show_source_content)
11186 (tui_source_window_base::tui_source_window_base)
11187 (tui_source_window_base::rerender)
11188 (tui_source_window_base::refill)
11189 (tui_source_window_base::do_scroll_horizontal)
11190 (tui_source_window_base::set_is_exec_point_at)
11191 (tui_source_window_base::update_breakpoint_info)
11192 (tui_source_window_base::update_exec_info): Update.
11193 * tui/tui-source.c (tui_source_window::set_contents)
11194 (tui_source_window::showing_source_p)
11195 (tui_source_window::do_scroll_vertical)
11196 (tui_source_window::location_matches_p)
11197 (tui_source_window::line_is_displayed): Update.
11198 (tui_source_window::display_start_addr): New method.
11199 * tui/tui-disasm.c (tui_disasm_window::set_contents)
11200 (tui_disasm_window::do_scroll_vertical)
11201 (tui_disasm_window::location_matches_p): Update.
11202 (tui_disasm_window::display_start_addr): New method.
11203
11204 2020-02-22 Tom Tromey <tom@tromey.com>
11205
11206 * NEWS: Add entry for gdb.register_window_type.
11207 * tui/tui-layout.h (window_factory): New typedef.
11208 (tui_register_window): Declare.
11209 * tui/tui-layout.c (saved_tui_windows): New global.
11210 (tui_apply_current_layout): Use it.
11211 (tui_register_window): New function.
11212 * python/python.c (do_start_initialization): Call
11213 gdbpy_initialize_tui.
11214 (python_GdbMethods): Add "register_window_type" function.
11215 * python/python-internal.h (gdbpy_register_tui_window)
11216 (gdbpy_initialize_tui): Declare.
11217 * python/py-tui.c: New file.
11218 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
11219
11220 2020-02-22 Tom Tromey <tom@tromey.com>
11221
11222 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
11223
11224 2020-02-22 Tom Tromey <tom@tromey.com>
11225
11226 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
11227 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
11228 * tui/tui-data.c (tui_set_win_with_focus): Remove.
11229 (tui_set_win_focus_to): Move from tui-win.c.
11230
11231 2020-02-22 Tom Tromey <tom@tromey.com>
11232
11233 * tui/tui-layout.c (make_standard_window, get_locator_window): New
11234 functions.
11235 (known_window_types): New global.
11236 (tui_get_window_by_name): Reimplement.
11237 (initialize_known_windows): New function.
11238 (validate_window_name): Rewrite.
11239 (_initialize_tui_layout): Call initialize_known_windows.
11240
11241 2020-02-22 Tom Tromey <tom@tromey.com>
11242
11243 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
11244 Remove constants.
11245 * tui/tui-winsource.h (struct tui_source_window_base)
11246 <tui_source_window_base>: Remove parameter.
11247 * tui/tui-winsource.c
11248 (tui_source_window_base::tui_source_window_base): Remove
11249 parameter.
11250 (tui_source_window_base::refill): Update.
11251 * tui/tui-stack.h (struct tui_locator_window)
11252 <tui_locator_window>: Update.
11253 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
11254 Default the constructor.
11255 * tui/tui-regs.h (struct tui_data_item_window)
11256 <tui_data_item_window>: Default the constructor.
11257 (struct tui_data_window) <tui_data_window>: Likewise.
11258 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
11259 Default the constructor.
11260 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
11261 Default the constructor.
11262 <type>: Remove.
11263 (struct tui_win_info) <tui_win_info>: Default the constructor.
11264 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
11265 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
11266 Default the constructor.
11267
11268 2020-02-22 Tom Tromey <tom@tromey.com>
11269
11270 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
11271 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
11272 * tui/tui-win.c (tui_resize_all): Don't call
11273 tui_delete_invisible_windows.
11274 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
11275 done.
11276 (tui_set_layout): Update.
11277 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
11278 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
11279 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
11280
11281 2020-02-22 Tom Tromey <tom@tromey.com>
11282
11283 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
11284 correctly.
11285
11286 2020-02-22 Tom Tromey <tom@tromey.com>
11287
11288 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
11289
11290 2020-02-22 Tom Tromey <tom@tromey.com>
11291
11292 * tui/tui-winsource.h (struct tui_source_window_iterator)
11293 <inner_iterator>: New etytypedef.
11294 <tui_source_window_iterator>: Take "end" parameter.
11295 <tui_source_window_iterator>: Take iterator.
11296 <operator*, advance>: Update.
11297 <m_iter>: Change type.
11298 <m_end>: New field.
11299 (struct tui_source_windows) <begin, end>: Update.
11300 * tui/tui-layout.c (tui_windows): New global.
11301 (tui_apply_current_layout): Clear tui_windows.
11302 (tui_layout_window::apply): Update tui_windows.
11303 * tui/tui-data.h (tui_windows): Declare.
11304 (all_tui_windows): Now inline function.
11305 (class tui_window_iterator, struct all_tui_windows): Remove.
11306
11307 2020-02-22 Tom Tromey <tom@tromey.com>
11308
11309 PR tui/17850:
11310 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
11311 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
11312 "height" argument.
11313 (class tui_layout_window) <get_sizes>: Likewise.
11314 (class tui_layout_split) <tui_layout_split>: Add "vertical"
11315 argument.
11316 <get_sizes>: Add "height" argument.
11317 <m_vertical>: New field.
11318 * tui/tui-layout.c (tui_layout_split::clone): Update.
11319 (tui_layout_split::get_sizes): Add "height" argument.
11320 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
11321 (tui_new_layout_command): Parse "-horizontal".
11322 (_initialize_tui_layout): Update help string.
11323 (tui_layout_split::specification): Add "-horizontal" when needed.
11324 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
11325 argument.
11326 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
11327 New methods.
11328
11329 2020-02-22 Tom Tromey <tom@tromey.com>
11330
11331 * tui/tui-layout.h (enum tui_adjust_result): New.
11332 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
11333 (class tui_layout_window) <adjust_size>: Return
11334 tui_adjust_result. Rewrite.
11335 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
11336 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
11337
11338 2020-02-22 Tom Tromey <tom@tromey.com>
11339
11340 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
11341 parameter and return types.
11342 (class tui_layout_base) <specification>: Add "depth".
11343 (class tui_layout_window) <specification>: Add "depth".
11344 (class tui_layout_split) <specification>: Add "depth".
11345 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
11346 and return types.
11347 (tui_new_layout_command): Parse sub-layouts.
11348 (_initialize_tui_layout): Update help string.
11349 (tui_layout_window::specification): Add "depth".
11350 (add_layout_command): Update.
11351
11352 2020-02-22 Tom Tromey <tom@tromey.com>
11353
11354 * NEWS: Add "tui new-layout" item.
11355 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
11356 Add new-layout command to help text.
11357 (validate_window_name): New function.
11358 (tui_new_layout_command): New function.
11359 (_initialize_tui_layout): Register "new-layout".
11360 (tui_layout_window::specification): New method.
11361 (tui_layout_window::specification): New method.
11362 * tui/tui-layout.h (class tui_layout_base) <specification>: New
11363 method.
11364 (class tui_layout_window) <specification>: New method.
11365 (class tui_layout_split) <specification>: New method.
11366
11367 2020-02-22 Tom Tromey <tom@tromey.com>
11368
11369 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
11370 * tui/tui-win.c (window_name_completer): Update comment.
11371 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
11372 Declare method.
11373 (class tui_layout_window) <replace_window>: Likewise.
11374 (class tui_layout_split) <replace_window>: Likewise.
11375 (tui_set_layout): Don't declare.
11376 (tui_set_initial_layout): Declare function.
11377 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
11378 (asm_regs_layout): New globals.
11379 (tui_current_layout, show_layout): Remove.
11380 (tui_set_layout, tui_add_win_to_layout): Rewrite.
11381 (find_layout, tui_apply_layout): New function.
11382 (layout_completer): Remove.
11383 (tui_next_layout): Reimplement.
11384 (tui_next_layout_command): New function.
11385 (tui_set_initial_layout, tui_prev_layout_command): New functions.
11386 (tui_regs_layout): Reimplement.
11387 (tui_regs_layout_command): New function.
11388 (extract_display_start_addr): Rewrite.
11389 (next_layout, prev_layout): Remove.
11390 (tui_layout_window::replace_window): New method.
11391 (tui_layout_split::replace_window): New method.
11392 (destroy_layout): New function.
11393 (layout_list): New global.
11394 (add_layout_command): New function.
11395 (initialize_layouts): Update.
11396 (tui_layout_command): New function.
11397 (_initialize_tui_layout): Install "layout" commands.
11398 * tui/tui-data.h (enum tui_layout_type): Remove.
11399 (tui_current_layout): Don't declare.
11400
11401 2020-02-22 Tom Tromey <tom@tromey.com>
11402
11403 * tui/tui-regs.c (tui_reg_layout): Remove.
11404 (tui_reg_command): Use tui_regs_layout.
11405 * tui/tui-layout.h (tui_reg_command): Declare.
11406 * tui/tui-layout.c (tui_reg_command): New function.
11407
11408 2020-02-22 Tom Tromey <tom@tromey.com>
11409
11410 * tui/tui.c (tui_rl_delete_other_windows): Call
11411 tui_remove_some_windows.
11412 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
11413 Declare method.
11414 (class tui_layout_window) <remove_windows>: New method.
11415 (class tui_layout_split) <remove_windows>: Declare.
11416 (tui_remove_some_windows): Declare.
11417 * tui/tui-layout.c (tui_remove_some_windows): New function.
11418 (tui_layout_split::remove_windows): New method.
11419
11420 2020-02-22 Tom Tromey <tom@tromey.com>
11421
11422 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
11423 * tui/tui-layout.h (tui_next_layout): Declare.
11424 * tui/tui-layout.c (tui_next_layout): New function.
11425
11426 2020-02-22 Tom Tromey <tom@tromey.com>
11427
11428 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
11429 correct coordinates.
11430
11431 2020-02-22 Tom Tromey <tom@tromey.com>
11432
11433 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
11434 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
11435 DATA_WIN case.
11436
11437 2020-02-22 Tom Tromey <tom@tromey.com>
11438
11439 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
11440 TUI_DISASM_WIN, not tui_win_list.
11441
11442 2020-02-22 Tom Tromey <tom@tromey.com>
11443
11444 * valprint.c (generic_val_print_enum_1)
11445 (val_print_type_code_flags): Style member names.
11446 * rust-lang.c (val_print_struct, rust_print_enum)
11447 (rust_print_struct_def, rust_internal_print_type): Style member
11448 names.
11449 * p-valprint.c (pascal_object_print_value_fields): Style member
11450 names. Only call fprintf_symbol_filtered for static members.
11451 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
11452 * f-valprint.c (f_val_print): Style member names.
11453 * f-typeprint.c (f_type_print_base): Style member names.
11454 * cp-valprint.c (cp_print_value_fields): Style member names. Only
11455 call fprintf_symbol_filtered for static members.
11456 (cp_print_class_member): Style member names.
11457 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
11458 member names.
11459 * ada-valprint.c (ada_print_scalar): Style enum names.
11460 (ada_val_print_enum): Likewise.
11461 * ada-typeprint.c (print_enum_type): Style enum names.
11462
11463 2020-02-21 Tom Tromey <tom@tromey.com>
11464
11465 * psympriv.h (struct partial_symtab): Update comment.
11466
11467 2020-02-21 Tom Tromey <tromey@adacore.com>
11468
11469 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11470 type is CORE_ADDR.
11471
11472 2020-02-21 Tom de Vries <tdevries@suse.de>
11473
11474 PR gdb/25534
11475 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11476 if dependencies[i]->user != NULL.
11477
11478 2020-02-21 Ali Tamur <tamur@google.com>
11479
11480 * dwarf2/read.c (dwarf2_name): Add null check.
11481
11482 2020-02-20 Tom Tromey <tom@tromey.com>
11483
11484 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11485 ">=", in binary search.
11486 (dwarf2_find_containing_comp_unit): New overload.
11487 (run_test): New self-test.
11488 (_initialize_dwarf2_read): Register new test.
11489
11490 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
11491
11492 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11493 * riscv-tdep.h: Likewise.
11494 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11495 rv32-only CSR.
11496 * features/riscv/64bit-csr.xml: Regenerated.
11497
11498 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11499 Tom Tromey <tom@tromey.com>
11500
11501 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11502 of 'fputc_unfiltered'.
11503 (putchar_unfiltered): Call 'fputc_unfiltered'.
11504 (fputc_unfiltered): Call 'fputs_unfiltered'.
11505
11506 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11507
11508 * config.in: Regenerate.
11509 * configure: Regenerate.
11510 * configure.ac: Add --with-python-libdir option.
11511 * main.c: Use WITH_PYTHON_LIBDIR.
11512
11513 2020-02-19 Tom Tromey <tom@tromey.com>
11514
11515 * symtab.c (general_symbol_info::compute_and_set_names): Use
11516 obstack_strndup. Simplify call to symbol_set_demangled_name.
11517
11518 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
11519
11520 * dwarf2/read.c (allocate_signatured_type_table,
11521 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11522 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11523 Remove objfile parameter, update all callers.
11524
11525 2020-02-19 Doug Evans <dje@google.com>
11526
11527 PR rust/25535
11528 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11529 rust_enum_variant calculation.
11530
11531 2020-02-19 Tom Tromey <tromey@adacore.com>
11532
11533 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11534
11535 2020-02-19 Tom Tromey <tromey@adacore.com>
11536
11537 * ada-lang.c (cache_symbol): Use obstack_strdup.
11538
11539 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11540
11541 * configure: Regenerate.
11542
11543 2020-02-19 Tom Tromey <tromey@adacore.com>
11544
11545 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11546 NULL check.
11547
11548 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
11549
11550 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11551
11552 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11553
11554 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11555 if GDBSERVER is not defined.
11556 (riscv_tdesc_cache): Likewise, also store const target_desc.
11557 (STATIC_IN_GDB): Define.
11558 (riscv_create_target_description): Update declaration with
11559 STATIC_IN_GDB.
11560 (riscv_lookup_target_description): New function, only define if
11561 GDBSERVER is not defined.
11562 * arch/riscv.h (riscv_create_target_description): Declare only
11563 when GDBSERVER is defined.
11564 (riscv_lookup_target_description): New declaration when GDBSERVER
11565 is not defined.
11566 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11567 (riscv_linux_read_features): ...this, and return
11568 riscv_gdbarch_features instead of target_desc.
11569 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11570 (riscv_linux_read_description): Rename to...
11571 (riscv_linux_read_features): ...this.
11572 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11573 Update to use riscv_gdbarch_features and
11574 riscv_lookup_target_description.
11575 * riscv-tdep.c (riscv_find_default_target_description): Use
11576 riscv_lookup_target_description instead of
11577 riscv_create_target_description.
11578
11579 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11580
11581 * valprint.c (generic_val_print_enum_1): When printing a flag
11582 enum with value 0 and there is no enumerator with value 0, print
11583 just "0" instead of "(unknown: 0x0)".
11584
11585 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11586
11587 * valprint.c (generic_val_print_enum_1): Print unknown part of
11588 flag enum in hex.
11589
11590 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11591
11592 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11593 flag enums to contain duplicate enumerators.
11594 * valprint.c (generic_val_print_enum_1): Update comment.
11595
11596 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11597
11598 * dwarf2/read.c: Include "count-one-bits.h".
11599 (update_enumeration_type_from_children): If an enumerator has
11600 multiple bits set, don't treat the enumeration as a "flag enum".
11601 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11602 of flag enums have 0 or 1 bit set.
11603
11604 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11605
11606 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11607 conversion.
11608 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11609 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11610 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11611 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11612 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11613
11614 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11615
11616 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11617
11618 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11619
11620 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11621 displaced_step_closure_up.
11622 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11623 (struct displaced_step_closure_up):
11624 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11625 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11626 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11627 Likewise.
11628 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11629 * gdbarch.c, gdbarch.h: Re-generate.
11630 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11631 displaced_step_closure_up.
11632 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11633 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11634 * infrun.h (displaced_step_closure_up): New type alias.
11635 (struct displaced_step_inferior_state) <step_closure>: Change
11636 type to displaced_step_closure_up.
11637 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11638 displaced_step_closure_up.
11639 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11640
11641 2020-02-14 Tom Tromey <tom@tromey.com>
11642
11643 * minidebug.c (gnu_debug_key): New global.
11644 (find_separate_debug_file_in_section): Use it.
11645
11646 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11647
11648 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11649 std::unique_ptr.
11650 * gdbarch.c: Re-generate.
11651 * gdbarch.h: Re-generate.
11652 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11653 change.
11654 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11655 type to std::unique_ptr.
11656 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11657 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11658 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11659 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11660 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11661 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11662 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11663 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11664 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11665
11666 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11667
11668 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11669 std::unique_ptr.
11670 (displaced_step_clear): Rename to...
11671 (displaced_step_reset): ... this. Just call displaced->reset ().
11672 (displaced_step_clear_cleanup): Rename to...
11673 (displaced_step_reset_cleanup): ... this.
11674 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11675 (displaced_step_fixup): Likewise.
11676 (resume_1): Likewise.
11677 (handle_inferior_event): Restore child's memory before calling
11678 displaced_step_fixup on the parent.
11679 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11680 to std::unique_ptr.
11681 <step_closure>: Change type to std::unique_ptr.
11682
11683 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11684
11685 * arm-tdep.c: Include count-one-bits.h.
11686 (cleanup_block_store_pc): Use count_one_bits.
11687 (cleanup_block_load_pc): Use count_one_bits.
11688 (arm_copy_block_xfer): Use count_one_bits.
11689 (thumb2_copy_block_xfer): Use count_one_bits.
11690 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11691 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11692 (thumb_get_next_pcs_raw): Use count_one_bits.
11693 (arm_get_next_pcs_raw): Use count_one_bits_l.
11694 * arch/arm.c (bitcount): Remove.
11695 * arch/arm.h (bitcount): Remove.
11696
11697 2020-02-14 Tom Tromey <tromey@adacore.com>
11698
11699 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11700 Update.
11701 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11702 * dwarf2/loc.c (call_site_find_chain_1): Return
11703 unique_xmalloc_ptr.
11704 (call_site_find_chain): Likewise.
11705
11706 2020-02-14 Richard Biener <rguenther@suse.de>
11707
11708 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11709 on expression with division operators.
11710
11711 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11712
11713 * MAINTAINERS (Write After Approval): Adding myself.
11714
11715 2020-02-12 Tom Tromey <tom@tromey.com>
11716
11717 * event-loop.c (event_data, gdb_event, event_handler_func):
11718 Remove.
11719
11720 2020-02-12 Tom Tromey <tom@tromey.com>
11721
11722 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11723 (dwarf2_frame_objfile_data): Add comment.
11724 (find_comp_unit, set_comp_unit): New functions.
11725 (dwarf2_frame_find_fde): Use find_comp_unit.
11726 (dwarf2_build_frame_info): Use set_comp_unit.
11727
11728 2020-02-12 Tom Tromey <tom@tromey.com>
11729
11730 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11731 (comp_unit): Don't initialize objfile.
11732 (execute_cfa_program): Add text_offset parameter.
11733 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11734 (dwarf2_frame_cache): Update.
11735 (dwarf2_build_frame_info): Don't set "objfile" member.
11736
11737 2020-02-12 Tom Tromey <tom@tromey.com>
11738
11739 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11740 (decode_frame_entry): Likewise.
11741 (dwarf2_build_frame_info): Update.
11742
11743 2020-02-12 Tom Tromey <tom@tromey.com>
11744
11745 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11746 (decode_frame_entry_1): Use the comp_unit obstack.
11747
11748 2020-02-12 Tom Tromey <tom@tromey.com>
11749
11750 * dwarf2/frame.c (struct comp_unit): Add initializers and
11751 constructor.
11752 (dwarf2_frame_objfile_data): Store a comp_unit.
11753 (dwarf2_frame_find_fde): Update.
11754 (dwarf2_build_frame_info): Use "new".
11755
11756 2020-02-12 Tom Tromey <tom@tromey.com>
11757
11758 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11759 (dwarf2_fde_table): Typedef for std::vector.
11760 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11761 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11762 (decode_frame_entry): Update.
11763 (dwarf2_build_frame_info): Use "new".
11764
11765 2020-02-12 Christian Biesinger <cbiesinger@google.com>
11766
11767 * arm-tdep.c (arm_gdbarch_init): Update.
11768 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11769 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11770 have_neon, is_m>: Change to bool.
11771
11772 2020-02-12 Christian Biesinger <cbiesinger@google.com>
11773
11774 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11775
11776 2020-02-12 Tom Tromey <tom@tromey.com>
11777
11778 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11779
11780 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
11781
11782 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11783 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11784
11785 2020-02-11 Tom Tromey <tom@tromey.com>
11786
11787 * psymtab.h: Update comment.
11788
11789 2020-02-11 Tom Tromey <tom@tromey.com>
11790
11791 * gdb_obstack.h (struct auto_obstack): Use
11792 DISABLE_COPY_AND_ASSIGN.
11793
11794 2020-02-11 Tom Tromey <tom@tromey.com>
11795
11796 * dwarf2/frame.h (struct objfile): Don't forward declare.
11797
11798 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11799
11800 * cris-tdep.c (cris_supply_gregset): Change signature to match
11801 what struct regset expects.
11802 (cris_regset): New struct.
11803 (fetch_core_registers): Remove.
11804 (cris_iterate_over_regset_sections): New function.
11805 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11806 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11807
11808 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11809
11810 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11811 registers.
11812
11813 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11814
11815 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11816
11817 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11818
11819 * configure: Re-generate.
11820
11821 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11822
11823 * configure: Re-generate.
11824
11825 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11826
11827 * acinclude: Update warning.m4 path.
11828 * warning.m4: Move to gdbsupport.
11829
11830 2020-02-11 Tom Tromey <tromey@adacore.com>
11831
11832 * remote.c (remote_console_output): Update.
11833 * printcmd.c (printf_command): Update.
11834 * event-loop.c (gdb_wait_for_event): Update.
11835 * linux-nat.c (sigchld_handler): Update.
11836 * remote-sim.c (gdb_os_write_stdout): Update.
11837 (gdb_os_flush_stdout): Update.
11838 (gdb_os_flush_stderr): Update.
11839 (gdb_os_write_stderr): Update.
11840 * exceptions.c (print_exception): Update.
11841 * remote-fileio.c (remote_fileio_func_read): Update.
11842 (remote_fileio_func_write): Update.
11843 * tui/tui.c (tui_enable): Update.
11844 * tui/tui-interp.c (tui_interp::init): Update.
11845 * utils.c (init_page_info): Update.
11846 (putchar_unfiltered, fputc_unfiltered): Update.
11847 (gdb_flush): Update.
11848 (emit_style_escape): Update.
11849 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11850 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11851 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11852 (stderr_file::write): Update.
11853 (stderr_file::puts): Update.
11854 * ui-file.h (ui_file_isatty, ui_file_write)
11855 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11856 (ui_file_puts): Don't declare.
11857
11858 2020-02-10 Tom de Vries <tdevries@suse.de>
11859
11860 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11861 sentinel to char *.
11862
11863 2020-02-09 Tom de Vries <tdevries@suse.de>
11864
11865 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11866 filename if it matches "<artificial>".
11867
11868 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
11869
11870 * windows-tdep.c (struct enum_value_name): New struct.
11871 (create_enum): New function.
11872 (windows_get_siginfo_type): Create and use enum types.
11873
11874 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
11875
11876 * NEWS: Mention $_siginfo support for Windows.
11877 * windows-nat.c (handle_exception): Set siginfo_er.
11878 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11879 (windows_xfer_siginfo): New function.
11880 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11881 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11882 (init_windows_gdbarch_data): New function.
11883 (get_windows_gdbarch_data): New function.
11884 (windows_get_siginfo_type): New function.
11885 (windows_init_abi): Register windows_get_siginfo_type.
11886 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11887
11888 2020-02-08 Tom Tromey <tom@tromey.com>
11889
11890 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11891 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11892 <keep>: Declare method.
11893 <m_keep>: Remove member.
11894 <~cutu_reader>: Remove.
11895 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11896 (cutu_reader::cutu_reader): Update.
11897 (cutu_reader::keep): Rename from ~cutu_reader.
11898 (process_psymtab_comp_unit, build_type_psymtabs_1)
11899 (process_skeletonless_type_unit, load_partial_comp_unit)
11900 (load_full_comp_unit, dwarf2_read_addr_index)
11901 (read_signatured_type): Update.
11902
11903 2020-02-08 Tom Tromey <tom@tromey.com>
11904
11905 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11906 "want_partial_unit" parameter.
11907 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11908 Inline check for DW_TAG_partial_unit.
11909 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11910
11911 2020-02-08 Tom Tromey <tom@tromey.com>
11912
11913 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11914 read.c.
11915 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11916 read.c.
11917
11918 2020-02-08 Tom Tromey <tom@tromey.com>
11919
11920 * dwarf2/read.c (read_address): Move to comp-unit.c.
11921 (dwarf2_rnglists_process, dwarf2_ranges_process)
11922 (read_attribute_value, dwarf_decode_lines_1)
11923 (var_decode_location, decode_locdesc): Update.
11924 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11925 read.c. Remove "cu" parameter.
11926 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11927 method.
11928
11929 2020-02-08 Tom Tromey <tom@tromey.com>
11930
11931 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11932 (read_indirect_line_string): Update.
11933 * dwarf2/comp-unit.c (read_offset): Remove.
11934 (read_comp_unit_head): Update.
11935 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11936 method.
11937 (read_offset): Don't declare.
11938
11939 2020-02-08 Tom Tromey <tom@tromey.com>
11940
11941 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11942 * dwarf2/read.c (struct comp_unit_head): Move to
11943 dwarf2/comp-unit.h.
11944 (enum class rcuh_kind): Move to comp-unit.h.
11945 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11946 (read_comp_unit_head, error_check_comp_unit_head)
11947 (read_and_check_comp_unit_head): Move to comp-unit.c.
11948 (read_offset, dwarf_unit_type_name): Likewise.
11949 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11950 (cutu_reader::cutu_reader, read_call_site_scope)
11951 (find_partial_die, follow_die_offset): Update.
11952 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11953
11954 2020-02-08 Tom Tromey <tom@tromey.com>
11955
11956 * dwarf2/read.c (read_offset_1): Move to leb.c.
11957 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11958 (dwarf_decode_macro_bytes): Update.
11959 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11960 * dwarf2/leb.h (read_offset): Declare.
11961
11962 2020-02-08 Tom Tromey <tom@tromey.com>
11963
11964 * dwarf2/read.c (dwarf2_section_size): Remove.
11965 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11966 Update.
11967 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11968
11969 2020-02-08 Tom Tromey <tom@tromey.com>
11970
11971 * dwarf2/read.c (read_initial_length): Move to leb.c.
11972 * dwarf2/leb.h (read_initial_length): Declare.
11973 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11974 handle_nonstd parameter.
11975 * dwarf2/frame.c (read_initial_length): Remove.
11976 (decode_frame_entry_1): Update.
11977
11978 2020-02-08 Tom Tromey <tom@tromey.com>
11979
11980 * dwarf2/loc.c (dwarf2_find_location_expression)
11981 (dwarf_evaluate_loc_desc::get_tls_address)
11982 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11983 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11984 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11985 (dwarf2_compile_property_to_c)
11986 (dwarf2_loc_desc_get_symbol_read_needs)
11987 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11988 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11989 (loclist_describe_location, loclist_tracepoint_var_ref)
11990 (loclist_generate_c_location): Update.
11991 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11992 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11993 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11994 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11995 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11996 (dwarf2_per_cu_data::addr_size)
11997 (dwarf2_per_cu_data::ref_addr_size)
11998 (dwarf2_per_cu_data::text_offset)
11999 (dwarf2_per_cu_data::addr_type): Now methods.
12000 (per_cu_header_read_in): Make per_cu "const".
12001 (dwarf2_version): Remove.
12002 (dwarf2_per_cu_data::int_type): Now a method.
12003 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
12004 (set_die_type, read_array_type, read_subrange_index_type)
12005 (read_tag_string_type, read_subrange_type): Update.
12006 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
12007 offset_size, ref_addr_size, text_offset, addr_type, version,
12008 objfile, int_type, addr_sized_int_type>: Declare methods.
12009
12010 2020-02-08 Tom Tromey <tom@tromey.com>
12011
12012 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
12013 Move earlier.
12014
12015 2020-02-08 Tom Tromey <tom@tromey.com>
12016
12017 * dwarf2/read.h (dwarf_line_debug): Declare.
12018 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
12019 * dwarf2/read.c: Move line_header code to new files.
12020 (dwarf_line_debug): No longer static.
12021 * dwarf2/line-header.c: New file.
12022 * dwarf2/line-header.h: New file.
12023
12024 2020-02-08 Tom Tromey <tom@tromey.com>
12025
12026 * dwarf2/read.c (struct line_header) <file_full_name,
12027 file_file_name>: Return unique_xmalloc_ptr.
12028 (line_header::file_file_name): Update.
12029 (line_header::file_full_name): Update.
12030 (dw2_get_file_names_reader): Update.
12031 (macro_start_file): Update.
12032
12033 2020-02-08 Tom Tromey <tom@tromey.com>
12034
12035 * dwarf2/read.c (struct line_header) <file_full_name,
12036 file_file_name>: Declare methods.
12037 (dw2_get_file_names_reader): Update.
12038 (file_file_name): Now a method.
12039 (file_full_name): Likewise.
12040 (macro_start_file): Update.
12041
12042 2020-02-08 Tom Tromey <tom@tromey.com>
12043
12044 * dwarf2/read.c (dwarf_always_disassemble)
12045 (show_dwarf_always_disassemble): Move to loc.c.
12046 (_initialize_dwarf2_read): Move "always-disassemble" registration
12047 to loc.c.
12048 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
12049 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
12050 static.
12051 (show_dwarf_always_disassemble): Move from read.c.
12052 (_initialize_dwarf2loc): Move always-disassemble from read.c.
12053
12054 2020-02-08 Tom Tromey <tom@tromey.com>
12055
12056 * dwarf2/read.c (~dwarf2_per_objfile): Update.
12057 (create_quick_file_names_table): Return htab_up.
12058 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
12059 Update.
12060 * dwarf2/read.h (struct dwarf2_per_objfile)
12061 <quick_file_names_table>: Now htab_up.
12062
12063 2020-02-08 Tom Tromey <tom@tromey.com>
12064
12065 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
12066
12067 2020-02-08 Tom Tromey <tom@tromey.com>
12068
12069 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
12070 Rewrite.
12071 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
12072 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
12073 (abbrev_table::abbrev_table): No longer inline.
12074 (ABBREV_HASH_SIZE): Remove.
12075 (abbrev_table::m_abbrevs): Now an htab_up.
12076
12077 2020-02-08 Tom Tromey <tom@tromey.com>
12078
12079 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
12080 (cutu_reader): Update.
12081 (build_type_psymtabs_1): Update.
12082 * dwarf2/abbrev.c (abbrev_table::read): Rename.
12083 (abbrev_table::alloc_abbrev): Update.
12084 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
12085 (abbrev_table::read): New static method, renamed from
12086 abbrev_table_read_table.
12087 (abbrev_table::alloc_abbrev)
12088 (abbrev_table::add_abbrev): Now private.
12089 (abbrev_table::abbrev_table): Now private.
12090 (abbrev_table::m_abbrev_obstack): Now private. Rename.
12091
12092 2020-02-08 Tom Tromey <tom@tromey.com>
12093
12094 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
12095 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
12096 htab_up.
12097
12098 2020-02-08 Tom Tromey <tom@tromey.com>
12099
12100 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
12101 htab_up.
12102 (lookup_dwo_unit_in_dwp): Update.
12103 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
12104 on obstack.
12105
12106 2020-02-08 Tom Tromey <tom@tromey.com>
12107
12108 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
12109 obstack.
12110
12111 2020-02-08 Tom Tromey <tom@tromey.com>
12112
12113 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
12114 line_header_hash.
12115 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
12116 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
12117 Change type to htab_up.
12118
12119 2020-02-08 Tom Tromey <tom@tromey.com>
12120
12121 * dwarf2/read.c (allocate_type_unit_groups_table): Return
12122 htab_up. Don't allocate on obstack.
12123 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
12124 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
12125 Change type to htab_up.
12126
12127 2020-02-08 Tom Tromey <tom@tromey.com>
12128
12129 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
12130 Change type to htab_up.
12131 * dwarf2/read.c (create_signatured_type_table_from_index)
12132 (create_signatured_type_table_from_debug_names)
12133 (create_all_type_units, add_type_unit)
12134 (lookup_dwo_signatured_type, lookup_signatured_type)
12135 (process_skeletonless_type_unit): Update.
12136 (create_debug_type_hash_table, create_debug_types_hash_table):
12137 Change type of types_htab.
12138 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
12139 htab_up. Don't allocate on obstack.
12140 (create_cus_hash_table): Change type of cus_htab parameter.
12141 (struct dwo_file) <cus, tus>: Now htab_up.
12142 (lookup_dwo_signatured_type, lookup_dwo_cutu)
12143 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
12144 (queue_and_load_all_dwo_tus): Update.
12145 * dwarf2/index-write.c (write_gdbindex): Update.
12146 (write_debug_names): Update.
12147
12148 2020-02-08 Tom Tromey <tom@tromey.com>
12149
12150 * dwarf2/read.h (struct dwarf2_queue_item): Move from
12151 dwarf2/read.c. Remove "next" member. Add constructor ntad
12152 destructor.
12153 (struct dwarf2_per_objfile) <queue>: New member.
12154 * dwarf2/read.c (struct dwarf2_queue_item): Move to
12155 dwarf2/read.h.
12156 (dwarf2_queue, dwarf2_queue_tail): Remove.
12157 (class dwarf2_queue_guard): Add parameter to constructor. Use
12158 DISABLE_COPY_AND_ASSIGN.
12159 <m_per_objfile>: New member.
12160 <~dwarf2_queue_guard>: Rewrite.
12161 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
12162 Update.
12163 (~dwarf2_queue_item): New.
12164
12165 2020-02-08 Tom Tromey <tom@tromey.com>
12166
12167 * dwarf2/read.c (struct die_info) <has_children>: New member.
12168 (dw2_get_file_names_reader): Remove has_children.
12169 (dw2_get_file_names): Update.
12170 (read_cutu_die_from_dwo): Remove has_children.
12171 (cutu_reader::init_tu_and_read_dwo_dies)
12172 (cutu_reader::cutu_reader): Update.
12173 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
12174 Remove has_children.
12175 (build_type_psymtabs_1, process_skeletonless_type_unit)
12176 (load_partial_comp_unit, load_full_comp_unit): Update.
12177 (create_dwo_cu_reader): Remove has_children.
12178 (create_cus_hash_table, read_die_and_children): Update.
12179 (read_full_die_1,read_full_die): Remove has_children.
12180 (read_signatured_type): Update.
12181 (class cutu_reader) <has_children>: Remove.
12182
12183 2020-02-08 Tom Tromey <tom@tromey.com>
12184
12185 * dwarf2/expr.c: Rename from dwarf2expr.c.
12186 * dwarf2/expr.h: Rename from dwarf2expr.h.
12187 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
12188 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
12189 * dwarf2/frame.c: Rename from dwarf2-frame.c.
12190 * dwarf2/frame.h: Rename from dwarf2-frame.h.
12191 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
12192 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
12193 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
12194 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
12195 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
12196 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
12197 * dwarf2/loc.c: Rename from dwarf2loc.c.
12198 * dwarf2/loc.h: Rename from dwarf2loc.h.
12199 * dwarf2/read.c: Rename from dwarf2read.c.
12200 * dwarf2/read.h: Rename from dwarf2read.h.
12201 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
12202 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
12203 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
12204 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
12205 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
12206 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
12207 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
12208 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
12209 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
12210 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
12211 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
12212 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
12213 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
12214 Update.
12215 * Makefile.in (COMMON_SFILES): Update.
12216 (HFILES_NO_SRCDIR): Update.
12217
12218 2020-02-08 Tom Tromey <tom@tromey.com>
12219
12220 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
12221 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
12222
12223 2020-02-08 Tom Tromey <tom@tromey.com>
12224
12225 * dwarf2read.h (struct die_info): Don't declare.
12226
12227 2020-02-08 Tom Tromey <tom@tromey.com>
12228
12229 * dwarf2read.h (die_info_ptr): Remove typedef.
12230
12231 2020-02-08 Tom Tromey <tom@tromey.com>
12232
12233 * dwarf2read.c (read_call_site_scope)
12234 (handle_data_member_location, dwarf2_add_member_fn)
12235 (mark_common_block_symbol_computed, read_common_block)
12236 (attr_to_dynamic_prop, partial_die_info::read)
12237 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
12238 (dwarf2_symbol_mark_computed, set_die_type): Update.
12239 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
12240 method.
12241 (attr_form_is_block): Don't declare.
12242 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
12243
12244 2020-02-08 Tom Tromey <tom@tromey.com>
12245
12246 * dwarf2read.c (dwarf2_find_base_address, )
12247 (read_call_site_scope, rust_containing_type)
12248 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
12249 (handle_data_member_location, dwarf2_add_member_fn)
12250 (get_alignment, read_structure_type, process_structure_scope)
12251 (mark_common_block_symbol_computed, read_common_block)
12252 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
12253 (partial_die_info::read, read_attribute_value, new_symbol)
12254 (lookup_die_type, dwarf2_get_ref_die_offset)
12255 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
12256 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
12257 (dwarf2_symbol_mark_computed): Update.
12258 * dwarf2/attribute.h (struct attribute) <value_as_address,
12259 form_is_section_offset, form_is_constant, form_is_ref>: Declare
12260 methods.
12261 (value_as_address, attr_form_is_section_offset)
12262 (attr_form_is_constant, attr_form_is_ref): Don't declare.
12263 * dwarf2/attribute.c (attribute::value_as_address)
12264 (attribute::form_is_section_offset, attribute::form_is_constant)
12265 (attribute::form_is_ref): Now methods.
12266
12267 2020-02-08 Tom Tromey <tom@tromey.com>
12268
12269 * dwarf2read.c (struct attribute, DW_STRING)
12270 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
12271 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
12272 (attr_form_is_block, attr_form_is_section_offset)
12273 (attr_form_is_constant, attr_form_is_ref): Move.
12274 * dwarf2/attribute.h: New file.
12275 * dwarf2/attribute.c: New file, from dwarf2read.c.
12276 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
12277
12278 2020-02-08 Tom Tromey <tom@tromey.com>
12279
12280 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
12281 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
12282 Move.
12283 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
12284 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
12285 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
12286 abbrev.c.
12287 * dwarf2/abbrev.h: New file.
12288 * dwarf2/abbrev.c: New file, from dwarf2read.c.
12289 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
12290
12291 2020-02-08 Tom Tromey <tom@tromey.com>
12292
12293 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
12294 (dwarf2_section_size, dwarf2_get_section_info)
12295 (create_signatured_type_table_from_debug_names)
12296 (create_addrmap_from_aranges, read_debug_names_from_section)
12297 (get_gdb_index_contents_from_section, read_comp_unit_head)
12298 (error_check_comp_unit_head, read_abbrev_offset)
12299 (create_debug_type_hash_table, init_cu_die_reader)
12300 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
12301 (read_comp_units_from_section, create_cus_hash_table)
12302 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
12303 (create_dwp_v2_section, dwarf2_rnglists_process)
12304 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
12305 (abbrev_table_read_table, read_indirect_string_at_offset_from)
12306 (read_indirect_string_from_dwz, read_addr_index_1)
12307 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
12308 (dwarf_decode_macro_bytes, dwarf_decode_macros)
12309 (fill_in_loclist_baton): Update.
12310 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
12311 get_containing_section, get_bfd_owner, get_bfd_section,
12312 get_file_name, get_id, get_flags, empty, read>: Declare methods.
12313 (dwarf2_read_section, get_section_name, get_section_file_name)
12314 (get_containing_section, get_section_bfd_owner)
12315 (get_section_bfd_section, get_section_name, get_section_file_name)
12316 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
12317 declare.
12318 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
12319 (dwarf2_section_info::get_bfd_owner)
12320 (dwarf2_section_info::get_bfd_section)
12321 (dwarf2_section_info::get_name)
12322 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
12323 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
12324 (dwarf2_section_info::read): Now methods.
12325 * dwarf-index-write.c (class debug_names): Update.
12326
12327 2020-02-08 Tom Tromey <tom@tromey.com>
12328
12329 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
12330 Move to dwarf2/section.h.
12331 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
12332 (get_section_bfd_section, get_section_name)
12333 (get_section_file_name, get_section_id, get_section_flags)
12334 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
12335 dwarf2/section.c.
12336 * dwarf2/section.h: New file.
12337 * dwarf2/section.c: New file, from dwarf2read.c.
12338 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
12339
12340 2020-02-08 Tom Tromey <tom@tromey.com>
12341
12342 * dwarf2read.h (read_unsigned_leb128): Don't declare.
12343 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
12344 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
12345 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
12346 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
12347 * dwarf2/leb.h: New file, from dwarf2read.c.
12348 * dwarf2/leb.c: New file, from dwarf2read.c.
12349 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
12350 Remove.
12351 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
12352 (COMMON_SFILES): Add dwarf2/leb.c.
12353
12354 2020-02-08 Joel Brobecker <brobecker@adacore.com>
12355
12356 GDB 9.1 released.
12357
12358 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12359
12360 PR gdb/25190:
12361 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
12362 * gdb/remote.c (remote_console_output): Update.
12363 * gdb/ui-file.c (fputs_unfiltered): Rename to...
12364 (ui_file_puts): ...this.
12365 * gdb/ui-file.h (ui_file_puts): Add declaration.
12366 * gdb/utils.c (emit_style_escape): Update.
12367 (flush_wrap_buffer): Update.
12368 (fputs_maybe_filtered): Update.
12369 (fputs_unfiltered): Add function.
12370
12371 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12372
12373 * gdb/event-loop.c (gdb_wait_for_event): Update.
12374 * gdb/printcmd.c (printf_command): Update.
12375 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
12376 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
12377 (gdb_os_flush_stderr): Update.
12378 * gdb/remote.c (remote_console_output): Update.
12379 * gdb/ui-file.c (gdb_flush): Rename to...
12380 (ui_file_flush): ...this.
12381 (stderr_file::write): Update.
12382 (stderr_file::puts): Update.
12383 * gdb/ui-file.h (gdb_flush): Rename to...
12384 (ui_file_flush): ...this.
12385 * gdb/utils.c (gdb_flush): Add function.
12386 * gdb/utils.h (gdb_flush): Add declaration.
12387
12388 2020-02-07 Tom Tromey <tromey@adacore.com>
12389
12390 PR breakpoints/24915:
12391 * source.c (find_and_open_source): Do not check basenames_may_differ.
12392
12393 2020-02-07 Tom Tromey <tom@tromey.com>
12394
12395 * README: Update gdbserver documentation.
12396 * gdbserver: Move to top level.
12397 * configure.tgt (build_gdbserver): Remove.
12398 * configure.ac: Remove --enable-gdbserver.
12399 * configure: Rebuild.
12400 * Makefile.in (distclean): Don't mention gdbserver.
12401
12402 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
12403
12404 * source-cache.c (source_cache::ensure): Surround
12405 get_plain_source_lines with a try/catch.
12406 (source_cache::get_line_charpos): Get rid of try/catch
12407 and only check for the return value of "ensure".
12408 * tui/tui-source.c (tui_source_window::set_contents):
12409 Simplify "nlines" calculation.
12410
12411 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
12412
12413 * MAINTAINERS (Write After Approval): Add myself.
12414
12415 2020-02-05 Christian Biesinger <cbiesinger@google.com>
12416
12417 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
12418 function call.
12419
12420 2020-02-05 Christian Biesinger <cbiesinger@google.com>
12421
12422 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
12423
12424 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
12425
12426 * nat/riscv-linux-tdesc.h: New file.
12427 * nat/riscv-linux-tdesc.c: New file, taking code from...
12428 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12429 ... here.
12430 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
12431 NATDEPFILES.
12432
12433 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
12434
12435 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
12436 we don't set the fake simulator ptid to the null_ptid.
12437
12438 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
12439
12440 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
12441 * gdbthread.h (class thread_info) <resumed>: Likewise.
12442 * infrun.c (resume_1): Likewise.
12443 (proceed): Likewise.
12444 (infrun_thread_stop_requested): Likewise.
12445 (stop_all_threads): Likewise.
12446 (handle_inferior_event): Likewise.
12447 (restart_threads): Likewise.
12448 (finish_step_over): Likewise.
12449 (keep_going_stepped_thread): Likewise.
12450 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
12451 (linux_handle_extended_wait): Likewise.
12452 * record-btrace.c (get_thread_current_frame_id): Likewise.
12453 * record-full.c (record_full_wait_1): Likewise.
12454 * remote.c (remote_target::process_initial_stop_replies): Likewise.
12455 * target.c (target_resume): Likewise.
12456 * thread.c (set_running_thread): Likewise.
12457
12458 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12459
12460 * f-valprint.c (f77_print_array_1): Changed datatype of index
12461 variable to LONGEST from int to enable it to contain bound
12462 values correctly.
12463
12464 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
12465
12466 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12467 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12468 offsets according to FLEN determined.
12469 (riscv_linux_nat_target::read_description): Determine FLEN
12470 dynamically.
12471 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12472 according to FLEN determined.
12473 (riscv_linux_nat_target::store_registers): Likewise.
12474
12475 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12476
12477 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12478 when reg->group is empty and reggroup is not.
12479
12480 2020-01-31 Tom Tromey <tromey@adacore.com>
12481
12482 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12483 Call beneath target's mourn_inferior after unpushing.
12484
12485 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12486
12487 PR tui/9765
12488 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12489 have enough lines to fill the screen, still return the lowest
12490 address we found.
12491
12492 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12493
12494 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12495 '-', '<', and '>' commands.
12496
12497 2020-01-29 Pedro Alves <palves@redhat.com>
12498 Sergio Durigan Junior <sergiodj@redhat.com>
12499
12500 * infcmd.c (construct_inferior_arguments): Assert that
12501 'argc' is greater than 0.
12502
12503 2020-01-29 Luis Machado <luis.machado@linaro.org>
12504
12505 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12506 (BRK_INSN_MASK): Define to 0xd4200000.
12507 (aarch64_program_breakpoint_here_p): New function.
12508 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12509 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12510 breakpoint.c.
12511 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12512 breakpoint.h
12513 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12514 call gdbarch_program_breakpoint_here_p.
12515 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12516 default_program_breakpoint_here_p, changed return type to bool and
12517 simplified.
12518 * breakpoint.h (program_breakpoint_here): Moved prototype to
12519 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12520 return type to bool.
12521 * gdbarch.c: Regenerate.
12522 * gdbarch.h: Regenerate.
12523 * gdbarch.sh (program_breakpoint_here_p): New method.
12524 * infrun.c (handle_signal_stop): Call
12525 gdbarch_program_breakpoint_here_p.
12526
12527 2020-01-26 Tom Tromey <tom@tromey.com>
12528
12529 * ctfread.c (struct ctf_fp_info): Reindent.
12530 (_initialize_ctfread): Remove.
12531
12532 2020-01-26 Tom Tromey <tom@tromey.com>
12533
12534 * psymtab.c (partial_map_expand_apply)
12535 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12536 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12537 (psym_print_stats, psym_expand_symtabs_for_function)
12538 (psym_map_symbol_filenames, psym_map_matching_symbols)
12539 (psym_expand_symtabs_matching)
12540 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12541 (maintenance_check_psymtabs): Use new methods.
12542 * psympriv.h (struct partial_symtab) <readin_p,
12543 get_compunit_symtab>: New methods.
12544 <readin, compunit_symtab>: Remove members.
12545 (struct standard_psymtab): New.
12546 (struct legacy_psymtab): Derive from standard_psymtab.
12547 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12548 standard_psymtab.
12549 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12550
12551 2020-01-26 Tom Tromey <tom@tromey.com>
12552
12553 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12554 read_dependencies. Add assert.
12555 * psymtab.c (partial_symtab::read_dependencies): New method.
12556 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12557 method.
12558 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12559 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12560 read_dependencies.
12561 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12562 Add assert.
12563
12564 2020-01-26 Tom Tromey <tom@tromey.com>
12565
12566 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12567 Call expand_psymtab.
12568 (xcoff_read_symtab): Call expand_psymtab.
12569 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12570 legacy_expand_psymtab.
12571 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12572 method.
12573 (struct legacy_psymtab) <expand_psymtab>: Implement.
12574 <legacy_expand_psymtab>: New member.
12575 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12576 (parse_partial_symbols): Set legacy_expand_psymtab.
12577 (psymtab_to_symtab_1): Change argument order. Call
12578 expand_psymtab.
12579 (new_psymtab): Set legacy_expand_psymtab.
12580 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12581 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12582 expand_psymtab.
12583 (dwarf2_psymtab::expand_psymtab): Rename from
12584 psymtab_to_symtab_1. Call expand_psymtab.
12585 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12586 (dbx_end_psymtab): Likewise.
12587 (dbx_psymtab_to_symtab_1): Change argument order. Call
12588 expand_psymtab.
12589 (dbx_read_symtab): Call expand_psymtab.
12590 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12591 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12592 (ctf_psymtab::read_symtab): Call expand_psymtab.
12593
12594 2020-01-26 Tom Tromey <tom@tromey.com>
12595
12596 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12597 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12598 messages.
12599 * mdebugread.c (mdebug_read_symtab): Remove prints.
12600 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12601 assert.
12602 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12603
12604 2020-01-26 Tom Tromey <tom@tromey.com>
12605
12606 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12607 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12608 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12609 legacy_symtab.
12610 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12611 * psymtab.c (psymtab_to_symtab): Call method.
12612 (dump_psymtab): Update.
12613 * psympriv.h (struct partial_symtab): Add virtual destructor.
12614 <read_symtab>: New method.
12615 (struct legacy_symtab): New.
12616 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12617 (struct pst_map) <pst>: Now a legacy_psymtab.
12618 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12619 (new_psymtab): Use legacy_psymtab.
12620 * dwarf2read.h (struct dwarf2_psymtab): New.
12621 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12622 * dwarf2read.c (dwarf2_create_include_psymtab)
12623 (dwarf2_build_include_psymtabs, create_type_unit_group)
12624 (create_partial_symtab, process_psymtab_comp_unit_reader)
12625 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12626 (set_partial_user): Use dwarf2_psymtab.
12627 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12628 (psymtab_to_symtab_1, process_full_comp_unit)
12629 (process_full_type_unit, dwarf2_ranges_read)
12630 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12631 (dwarf_decode_lines): Use dwarf2_psymtab.
12632 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12633 (add_address_entry_worker, write_one_signatured_type)
12634 (recursively_count_psymbols, recursively_write_psymbols)
12635 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12636 (write_debug_names): Likewise.
12637 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12638 <pst>: Now a legacy_psymtab.
12639 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12640 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12641 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12642 * ctfread.c (struct ctf_psymtab): New.
12643 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12644 ctf_psymtab.
12645 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12646 (create_partial_symtab): Return a ctf_psymtab.
12647 (scan_partial_symbols): Update.
12648
12649 2020-01-26 Tom Tromey <tom@tromey.com>
12650
12651 * xcoffread.c (xcoff_start_psymtab): Use new.
12652 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12653 renamed from start_psymtab_common.
12654 * psympriv.h (struct partial_symtab): Add new constructor.
12655 (start_psymtab_common): Don't declare.
12656 * mdebugread.c (parse_partial_symbols): Use new.
12657 * dwarf2read.c (create_partial_symtab): Use new.
12658 * dbxread.c (start_psymtab): Use new.
12659 * ctfread.c (create_partial_symtab): Use new.
12660
12661 2020-01-26 Tom Tromey <tom@tromey.com>
12662
12663 * xcoffread.c (xcoff_end_psymtab): Use new.
12664 * psymtab.c (start_psymtab_common): Use new.
12665 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12666 Update.
12667 * psympriv.h (struct partial_symtab): Add parameters to
12668 constructor. Don't inline.
12669 (allocate_psymtab): Don't declare.
12670 * mdebugread.c (new_psymtab): Use new.
12671 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12672 * dbxread.c (dbx_end_psymtab): Use new.
12673
12674 2020-01-26 Tom Tromey <tom@tromey.com>
12675
12676 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12677 allocate_psymtab. Update documentation.
12678 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12679 allocate_psymtab. Do not use new.
12680 (allocate_psymtab): Use new. Update.
12681
12682 2020-01-26 Tom Tromey <tom@tromey.com>
12683
12684 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12685 * psymtab.c (psym_print_stats): Update.
12686 * psympriv.h (struct partial_symtab) <readin,
12687 psymtabs_addrmap_supported, anonymous>: Now bool.
12688 * mdebugread.c (psymtab_to_symtab_1): Update.
12689 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12690 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12691 (process_full_comp_unit, process_full_type_unit): Update.
12692 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12693 * ctfread.c (psymtab_to_symtab): Update.
12694
12695 2020-01-26 Tom Tromey <tom@tromey.com>
12696
12697 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12698 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12699 * psymtab.c (psymtab_storage): Delete psymtabs.
12700 (psymtab_storage::allocate_psymtab): Use new.
12701 (psymtab_storage::discard_psymtab): Use delete.
12702 * psympriv.h (struct partial_symtab): Add constructor and
12703 initializers.
12704
12705 2020-01-26 Tom Tromey <tom@tromey.com>
12706
12707 * machoread.c: Do not include psympriv.h.
12708
12709 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12710
12711 * NEWS: Mention the new option and the set/show commands.
12712
12713 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12714
12715 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12716 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12717 (validate_exec_file): New variables, enums, functions.
12718 (exec_file_locate_attach, print_section_info): Style the filenames.
12719 (_initialize_exec): Install show_exec_file_mismatch_command and
12720 set_exec_file_mismatch_command.
12721 * gdbcore.h (validate_exec_file): Declare.
12722 * infcmd.c (attach_command): Call validate_exec_file.
12723 * remote.c ( remote_target::remote_add_inferior): Likewise.
12724
12725 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12726
12727 * frame.c (find_frame_sal): Move call to get_next_frame into more
12728 inner scope.
12729 * inline-frame.c (inilne_state) <inline_state>: Update argument
12730 types.
12731 (inilne_state) <skipped_symbol>: Rename to...
12732 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12733 (skip_inline_frames): Build vector of skipped symbols and use this
12734 to reate the inline_state.
12735 (inline_skipped_symbol): Add a comment and some assertions, fetch
12736 skipped symbol from the list.
12737
12738 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12739
12740 * buildsym.c (lte_is_less_than): Delete.
12741 (buildsym_compunit::end_symtab_with_blockvector): Create local
12742 lambda function to sort line table entries, and use
12743 std::stable_sort instead of std::sort.
12744 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12745 markers when looking for a previous line.
12746
12747 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12748
12749 * dwarf2read.c (lnp_state_machine::record_line): Include
12750 end_sequence parameter in debug print out. Record the line if we
12751 are at an end_sequence marker even if it's not the start of a
12752 statement.
12753 * symmisc.c (maintenance_print_one_line_table): Print end of
12754 sequence markers with 'END' not '0'.
12755
12756 2020-01-24 Pedro Alves <palves@redhat.com>
12757
12758 PR gdb/25410
12759 * thread.c (scoped_restore_current_thread::restore): Use
12760 switch_to_inferior_no_thread.
12761 * exec.c: Include "progspace-and-thread.h".
12762 (add_target_sections, remove_target_sections):
12763 scoped_restore_current_pspace_and_thread instead of
12764 scoped_restore_current_thread.
12765 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12766 and aspace to the inferior before calling clone_program_space.
12767 Remove stale comment.
12768
12769 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12770
12771 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12772 (arm_netbsd_nat_target::fetch_registers): ...this.
12773 (arm_nbsd_nat_target::store_registers): Rename to...
12774 (arm_netbsd_nat_target::store_registers): ...this.
12775
12776 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12777
12778 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12779 register_t.
12780
12781 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12782
12783 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12784 Update comment.
12785 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12786 Likewise.
12787 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12788 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12789 the correct replacement (iterate_over_regset_sections).
12790 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12791 Update comment.
12792
12793 2020-01-24 Graham Markall <graham.markall@embecosm.com>
12794
12795 PR gdb/23718
12796 * gdb/python/python.c (execute_gdb_command): Call
12797 async_enable_stdin in catch block.
12798
12799 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12800
12801 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12802 SWITCH_THRU_ALL_UIS.
12803
12804 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12805
12806 PR tui/9765
12807 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12808 comment, add extra parameter, and update to store previous symbol
12809 when appropriate.
12810 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12811 add extra parameter.
12812 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12813 remove unneeded parameter, add try/catch around gdb_print_insn,
12814 rewrite to add items to asm_lines vector.
12815 (tui_find_backward_disassembly_start_address): New function.
12816 (tui_find_disassembly_address): Updated throughout.
12817 (tui_disasm_window::set_contents): Update for changes to
12818 tui_disassemble.
12819 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12820 number of lines to scroll.
12821
12822 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12823
12824 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12825 (SECT_OFF_DATA): Likewise.
12826 (SECT_OFF_RODATA): Likewise.
12827 (SECT_OFF_TEXT): Likewise.
12828 (SECT_OFF_BSS): Likewise.
12829 (struct objfile) <text_section_offset, data_section_offset>: New
12830 methods.
12831 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12832 objfile::text_section_offset.
12833 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12834 * coffread.c (coff_symtab_read): Likewise.
12835 (enter_linenos): Likewise.
12836 (process_coff_symbol): Likewise.
12837 * ctfread.c (get_objfile_text_range): Likewise.
12838 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12839 Use objfile::data_section_offset.
12840 * dwarf2-frame.c (execute_cfa_program): Use
12841 objfile::text_section_offset.
12842 (dwarf2_frame_find_fde): Likewise.
12843 * dwarf2read.c (create_addrmap_from_index): Likewise.
12844 (create_addrmap_from_aranges): Likewise.
12845 (dw2_find_pc_sect_compunit_symtab): Likewise.
12846 (process_psymtab_comp_unit_reader): Likewise.
12847 (add_partial_symbol): Likewise.
12848 (add_partial_subprogram): Likewise.
12849 (process_full_comp_unit): Likewise.
12850 (read_file_scope): Likewise.
12851 (read_func_scope): Likewise.
12852 (read_lexical_block_scope): Likewise.
12853 (read_call_site_scope): Likewise.
12854 (dwarf2_rnglists_process): Likewise.
12855 (dwarf2_ranges_process): Likewise.
12856 (dwarf2_ranges_read): Likewise.
12857 (dwarf_decode_lines_1): Likewise.
12858 (new_symbol): Likewise.
12859 (dwarf2_fetch_die_loc_sect_off): Likewise.
12860 (dwarf2_per_cu_text_offset): Likewise.
12861 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12862 * hppa-tdep.c (read_unwind_info): Likewise.
12863 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12864 * psympriv.h (struct partial_symtab): Likewise.
12865 * psymtab.c (find_pc_sect_psymtab): Likewise.
12866 * solib-svr4.c (enable_break): Likewise.
12867 * stap-probe.c (relocate_address): Use
12868 objfile::data_section_offset.
12869 * xcoffread.c (enter_line_range): Use
12870 objfile::text_section_offset.
12871 (read_xcoff_symtab): Likewise.
12872
12873 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
12874
12875 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12876 declaration to narrower scopes.
12877
12878 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
12879
12880 * darwin-nat.h (struct darwin_exception_msg, enum
12881 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12882 Move up.
12883 (class darwin_nat_target) <wait_1, check_new_threads,
12884 decode_exception_message, decode_message, stop_inferior,
12885 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12886 * darwin-nat.c (darwin_check_new_threads): Rename to...
12887 (darwin_nat_target::check_new_threads): ... this.
12888 (darwin_suspend_inferior_it): Remove.
12889 (darwin_decode_exception_message): Rename to...
12890 (darwin_nat_target::decode_exception_message): ... this.
12891 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12892 (darwin_decode_message): Rename to...
12893 (darwin_nat_target::decode_message): ... this.
12894 (cancel_breakpoint): Rename to...
12895 (darwin_nat_target::cancel_breakpoint): ... this.
12896 (darwin_wait): Rename to...
12897 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12898 instead of iterate_over_inferiors.
12899 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12900 (darwin_stop_inferior): Rename to...
12901 (darwin_nat_target::stop_inferior): ... this.
12902 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12903 (darwin_init_thread_list): Rename to...
12904 (darwin_nat_target::init_thread_list): ... this.
12905 (darwin_ptrace_him): Rename to...
12906 (darwin_nat_target::ptrace_him): ... this.
12907 (darwin_nat_target::create_inferior): Pass lambda function to
12908 fork_inferior.
12909 (darwin_nat_target::detach): Call stop_inferior instead of
12910 darwin_stop_inferior.
12911 * fork-inferior.h (fork_inferior): Change init_trace_fun
12912 parameter to gdb::function_view.
12913 * fork-inferior.c (fork_inferior): Likewise.
12914
12915 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
12916
12917 * i386-cygwin-tdep.c (core_process_module_section): Update.
12918 * windows-nat.c (struct lm_info_windows): Add text_offset.
12919 (windows_xfer_shared_libraries): Update.
12920 * windows-tdep.c (windows_xfer_shared_library):
12921 Add text_offset_cached argument.
12922 * windows-tdep.h (windows_xfer_shared_library): Update.
12923
12924 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12925
12926 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12927
12928 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12929
12930 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12931 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12932 replace with range-based for.
12933 (gdbsim_interrupt_inferior): Remove.
12934 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12935 with a range-based for. Inline code from
12936 gdbsim_interrupt_inferior.
12937
12938 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12939
12940 * infrun.c (proceed): Fix indentation.
12941
12942 2020-01-21 Tom Tromey <tromey@adacore.com>
12943
12944 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12945 * python/python.c (python_extension_ops): Update.
12946 (gdbpy_colorize): New function.
12947 * python/lib/gdb/__init__.py (colorize): New function.
12948 * extension.h (ext_lang_colorize): Declare.
12949 * extension.c (ext_lang_colorize): New function.
12950 * extension-priv.h (struct extension_language_ops) <colorize>: New
12951 member.
12952 * cli/cli-style.c (_initialize_cli_style): Update help text.
12953
12954 2020-01-21 Luis Machado <luis.machado@linaro.org>
12955
12956 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12957 <cond>: Change type to bool.
12958 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12959 (aarch64_displaced_step_cb): Likewise.
12960 (aarch64_displaced_step_tb): Likewise.
12961
12962 2020-01-21 Luis Machado <luis.machado@linaro.org>
12963
12964 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12965 output.
12966
12967 2020-01-21 Luis Machado <luis.machado@linaro.org>
12968
12969 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12970 <pc_adjust>: Adjust the documentation.
12971 (aarch64_displaced_step_fixup): Check if PC really moved before
12972 adjusting it.
12973
12974 2020-01-19 Tom Tromey <tom@tromey.com>
12975
12976 * disasm.c (~gdb_disassembler): New destructor.
12977 (gdb_buffered_insn_length): Call disassemble_free_target.
12978 * disasm.h (class gdb_disassembler): Declare destructor. Use
12979 DISABLE_COPY_AND_ASSIGN.
12980
12981 2020-01-19 Tom Tromey <tom@tromey.com>
12982
12983 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12984 (die_reader_func_ftype): Remove.
12985 (cutu_reader): New class.
12986 (dw2_get_file_names_reader): Remove "data" parameter.
12987 (dw2_get_file_names): Use cutu_reader.
12988 (create_debug_type_hash_table): Update.
12989 (read_cutu_die_from_dwo): Update comment.
12990 (lookup_dwo_unit): Add dwo_name parameter.
12991 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12992 die_reader_func_ftype and data parameters.
12993 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12994 Remove die_reader_func_ftype and data parameters.
12995 (~cutu_reader): New; from init_cutu_and_read_dies.
12996 (cutu_reader::cutu_reader): Rename from
12997 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12998 and data parameters.
12999 (init_cutu_and_read_dies_simple): Remove.
13000 (struct process_psymtab_comp_unit_data): Remove.
13001 (process_psymtab_comp_unit_reader): Remove data parameter; add
13002 want_partial_unit and pretend_language parameters.
13003 (process_psymtab_comp_unit): Use cutu_reader.
13004 (build_type_psymtabs_reader): Remove data parameter.
13005 (build_type_psymtabs_1): Use cutu_reader.
13006 (process_skeletonless_type_unit): Likewise.
13007 (load_partial_comp_unit_reader): Remove.
13008 (load_partial_comp_unit): Use cutu_reader.
13009 (load_full_comp_unit_reader): Remove.
13010 (load_full_comp_unit): Use cutu_reader.
13011 (struct create_dwo_cu_data): Remove.
13012 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
13013 dwo_unit parameters.
13014 (create_cus_hash_table): Use cutu_reader.
13015 (struct dwarf2_read_addr_index_data): Remove.
13016 (dwarf2_read_addr_index_reader): Remove.
13017 (dwarf2_read_addr_index): Use cutu_reader.
13018 (read_signatured_type_reader): Remove.
13019 (read_signatured_type): Use cutu_reader.
13020
13021 2020-01-19 Tom Tromey <tom@tromey.com>
13022
13023 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
13024 * tui/tui-wingeneral.h (class tui_suppress_output): New.
13025 (tui_wrefresh): Declare.
13026 * tui/tui-wingeneral.c (suppress_output): New global.
13027 (tui_suppress_output, ~tui_suppress_output): New constructor and
13028 destructor.
13029 (tui_wrefresh): New function.
13030 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
13031 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
13032 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
13033 method.
13034 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
13035 tui_wrefresh.
13036 (tui_data_window::no_refresh): New method.
13037 (tui_data_item_window::refresh_window): Call tui_wrefresh.
13038 (tui_reg_command): Use tui_suppress_output
13039 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
13040 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
13041 method.
13042 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
13043
13044 2020-01-19 Tom Tromey <tom@tromey.com>
13045
13046 * tui/tui-winsource.c (tui_update_source_windows_with_line):
13047 Handle case where symtab is null.
13048
13049 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
13050
13051 * linux-fork.c (one_fork_p): Simplify.
13052
13053 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13054
13055 * top.c (struct qt_args): Remove.
13056 (kill_or_detach): Change return type to void, replace `void *`
13057 parameter with a proper one.
13058 (print_inferior_quit_action): Likewise.
13059 (quit_confirm): Use range-based for loop to iterate over inferiors.
13060 (quit_force): Likewise.
13061
13062 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13063
13064 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
13065 `void *` parameter with proper parameters.
13066 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
13067 (print_one_inferior): Change return type to void, replace `void *`
13068 parameter with proper parameters.
13069 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
13070 inferiors.
13071 (get_other_inferior): Remove.
13072 (mi_cmd_remove_inferior): Use range-based loop to iterate over
13073 inferiors.
13074
13075 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13076
13077 * mi/mi-interp.c (report_initial_inferior): Remove.
13078 (mi_interp::init): Use range-based for to iterate over inferiors.
13079
13080 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13081
13082 * python/py-inferior.c (build_inferior_list): Remove.
13083 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
13084
13085 2020-01-16 Christian Biesinger <cbiesinger@google.com>
13086
13087 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
13088 (btrace_stitch_trace): Likewise.
13089 * charset.c (intermediate_encoding): Likewise (vaild).
13090 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
13091 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
13092 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
13093
13094 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
13095
13096 * windows-tdep.c (windows_get_tlb_type):
13097 Add rtl_user_process_parameters type.
13098
13099 2020-01-16 Pedro Alves <palves@redhat.com>
13100 Norbert Lange <nolange79@gmail.com>
13101
13102 PR build/24805
13103 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
13104 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
13105 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
13106 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
13107 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
13108 (ps_plog): Redeclare exported functions with default visibility.
13109
13110 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
13111
13112 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
13113 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
13114
13115 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
13116
13117 * infcmd.c (post_create_inferior): Use get_thread_regcache
13118 instead of get_current_regcache.
13119
13120 2020-01-14 Tom Tromey <tom@tromey.com>
13121
13122 PR symtab/12535:
13123 * python/python.c (gdbpy_decode_line): Treat empty string the same
13124 as no argument.
13125
13126 2020-01-14 Tom Tromey <tom@tromey.com>
13127
13128 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
13129
13130 2020-01-14 Tom Tromey <tom@tromey.com>
13131
13132 * nat/linux-btrace.c: Don't include <config.h>.
13133 * nat/linux-ptrace.c: Don't include <config.h>.
13134 * nat/x86-linux-dregs.c: Don't include <config.h>.
13135
13136 2020-01-14 Tom Tromey <tom@tromey.com>
13137
13138 * configure: Rebuild.
13139 * configure.ac: Move many checks to ../gdbsupport/common.m4.
13140
13141 2020-01-14 Tom Tromey <tom@tromey.com>
13142
13143 * nat/x86-linux-dregs.c: Include configh.h.
13144 * nat/linux-ptrace.c: Include configh.h.
13145 * nat/linux-btrace.c: Include configh.h.
13146 * defs.h: Include config.h, bfd.h.
13147 * configure.ac: Don't source common.host.
13148 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
13149 * configure: Rebuild.
13150 * acinclude.m4: Update path.
13151 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
13152 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
13153 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
13154 (CLIBS): Add LIBSUPPORT.
13155 (CDEPS): Likewise.
13156 (COMMON_SFILES): Remove gdbsupport files.
13157 (HFILES_NO_SRCDIR): Likewise.
13158 (stamp-version): Update path to create-version.sh.
13159 (ALLDEPFILES): Remove gdbsupport files.
13160
13161 2020-01-14 Tom Tromey <tom@tromey.com>
13162
13163 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
13164 USE_WIN32API when needed.
13165 * configure.ac (USE_WIN32API): Don't define.
13166 (WIN32LIBS): Use WIN32APILIBS.
13167 * configure: Rebuild.
13168
13169 2020-01-14 Tom Tromey <tom@tromey.com>
13170
13171 * configure: Rebuild.
13172 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
13173
13174 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13175
13176 * skip.c (skip_function_command): Make skip w/o arguments use the
13177 name of the inlined function if pc is inside any inlined function.
13178
13179 2020-01-14 Luis Machado <luis.machado@linaro.org>
13180
13181 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
13182 * infrun.c (resume_1): Likewise.
13183 (handle_inferior_event): Remove stale comment.
13184 * linux-nat.c (linux_nat_target::resume): Update comments.
13185 (save_stop_reason): Likewise.
13186 (linux_nat_filter_event): Likewise.
13187 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
13188
13189 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13190
13191 * elfread.c (record_minimal_symbol): Set section index to 0 for
13192 non-allocatable sections.
13193
13194
13195 2020-01-13 Ali Tamur <tamur@google.com>
13196
13197 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
13198 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
13199 to gdb::optional. Update comments.
13200 (dwo_file): Update comments.
13201 (read_attribute): Update API to take an additional out parameter,
13202 need_reprocess. This is used to mark attributes that need other
13203 attributes (e.g. str_offsets_base) for correct computation which may not
13204 have been read yet.
13205 (read_attribute_reprocess): New function declaration.
13206 (read_addr_index): Likewise.
13207 (read_dwo_str_index): Likewise.
13208 (read_stub_str_index): Likewise.
13209 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
13210 (lookup_addr_base): New function definition.
13211 (lookup_ranges_base): Likewise.
13212 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
13213 lookup_ranges_base.
13214 (init_cutu_and_read_dies): Update comments.
13215 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
13216 unit. This is used to inherit parent's str_offsets_base and addr_base.
13217 Update comments.
13218 (init_cutu_and_read_dies_simple): Reflect API changes.
13219 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
13220 (create_cus_hash_table): Change API to take parent compile unit.
13221 Reflect API changes.
13222 (open_and_init_dwo_file): Reflect API changes.
13223 (dwarf2_get_pc_bounds): Update comments.
13224 (dwarf2_record_block_ranges): Likewise.
13225 (read_full_die_1): Change implementation to reprocess attributes that
13226 need str_offsets_base and addr_base.
13227 (partial_die_info::read): Likewise.
13228 (read_attribute_reprocess): New function definition.
13229 (read_attribute_value): Change API to take an additional out parameter,
13230 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
13231 when a non-dwo compile unit has index based attributes.
13232 (read_attribute): Reflect API changes.
13233 (read_addr_index_1): Reflect API changes. Update comments.
13234 (dwarf2_read_addr_index_data): Reflect API changes.
13235 (dwarf2_read_addr_index): Likewise.
13236 (read_str_index): Change API and implementation. This becomes a helper
13237 to be used by the new string index related methods. Update error
13238 message and comments.
13239 (read_dwo_str_index): New function definition.
13240 (read_stub_str_index): Likewise.
13241 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
13242 * symfile.h (dwarf2_debug_sections): Likewise.
13243 * xcoffread.c (dwarf2_debug_sections): Likewise.
13244
13245 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13246
13247 * gdbcore.h (struct core_fns) <core_read_registers>: Change
13248 core_reg_sect type to gdb_byte *.
13249 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
13250 * cris-tdep.c (fetch_core_registers): Likewise.
13251 * corelow.c (core_target::get_core_register_section): Change
13252 type of `contents` to gdb::byte_vector.
13253
13254 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13255
13256 * tui/tui-wingeneral.c (box_win): Position the title in the center
13257 of the border.
13258
13259 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13260
13261 * corelow.c (core_target::get_core_register_section): Use
13262 std::vector instead of alloca.
13263
13264 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13265
13266 * warning.m4: Add -Wmissing-declarations to build_warnings.
13267 * configure: Re-generate.
13268
13269 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13270
13271 * python/python.c (init__gdb_module): Add declaration.
13272
13273 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13274
13275 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
13276 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
13277 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
13278 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
13279 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
13280 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
13281 * ada-exp.y (_initialize_ada_exp): Add declaration.
13282 * ada-lang.c (_initialize_ada_language): Add declaration.
13283 * ada-tasks.c (_initialize_tasks): Add declaration.
13284 * agent.c (_initialize_agent): Add declaration.
13285 * aix-thread.c (_initialize_aix_thread): Add declaration.
13286 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
13287 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
13288 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
13289 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
13290 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
13291 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
13292 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
13293 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
13294 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
13295 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
13296 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
13297 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
13298 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
13299 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
13300 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
13301 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
13302 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
13303 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
13304 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
13305 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
13306 * annotate.c (_initialize_annotate): Add declaration.
13307 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
13308 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
13309 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
13310 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
13311 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
13312 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
13313 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
13314 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
13315 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
13316 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
13317 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
13318 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
13319 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
13320 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
13321 * auto-load.c (_initialize_auto_load): Add declaration.
13322 * auxv.c (_initialize_auxv): Add declaration.
13323 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
13324 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
13325 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
13326 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
13327 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
13328 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
13329 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
13330 * breakpoint.c (_initialize_breakpoint): Add declaration.
13331 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
13332 * btrace.c (_initialize_btrace): Add declaration.
13333 * charset.c (_initialize_charset): Add declaration.
13334 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
13335 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
13336 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
13337 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
13338 * cli/cli-script.c (_initialize_cli_script): Add declaration.
13339 * cli/cli-style.c (_initialize_cli_style): Add declaration.
13340 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
13341 * coffread.c (_initialize_coffread): Add declaration.
13342 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
13343 * compile/compile.c (_initialize_compile): Add declaration.
13344 * complaints.c (_initialize_complaints): Add declaration.
13345 * completer.c (_initialize_completer): Add declaration.
13346 * copying.c (_initialize_copying): Add declaration.
13347 * corefile.c (_initialize_core): Add declaration.
13348 * corelow.c (_initialize_corelow): Add declaration.
13349 * cp-abi.c (_initialize_cp_abi): Add declaration.
13350 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
13351 * cp-support.c (_initialize_cp_support): Add declaration.
13352 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
13353 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
13354 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
13355 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
13356 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
13357 * ctfread.c (_initialize_ctfread): Add declaration.
13358 * d-lang.c (_initialize_d_language): Add declaration.
13359 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
13360 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
13361 * dbxread.c (_initialize_dbxread): Add declaration.
13362 * dcache.c (_initialize_dcache): Add declaration.
13363 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
13364 * disasm.c (_initialize_disasm): Add declaration.
13365 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
13366 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
13367 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
13368 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
13369 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
13370 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
13371 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
13372 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
13373 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
13374 * elfread.c (_initialize_elfread): Add declaration.
13375 * exec.c (_initialize_exec): Add declaration.
13376 * extension.c (_initialize_extension): Add declaration.
13377 * f-lang.c (_initialize_f_language): Add declaration.
13378 * f-valprint.c (_initialize_f_valprint): Add declaration.
13379 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
13380 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
13381 * filesystem.c (_initialize_filesystem): Add declaration.
13382 * findcmd.c (_initialize_mem_search): Add declaration.
13383 * findvar.c (_initialize_findvar): Add declaration.
13384 * fork-child.c (_initialize_fork_child): Add declaration.
13385 * frame-base.c (_initialize_frame_base): Add declaration.
13386 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
13387 * frame.c (_initialize_frame): Add declaration.
13388 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
13389 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
13390 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
13391 * gcore.c (_initialize_gcore): Add declaration.
13392 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
13393 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
13394 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
13395 * gdbarch.c (_initialize_gdbarch): Add declaration.
13396 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
13397 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
13398 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
13399 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
13400 * go-lang.c (_initialize_go_language): Add declaration.
13401 * go32-nat.c (_initialize_go32_nat): Add declaration.
13402 * guile/guile.c (_initialize_guile): Add declaration.
13403 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
13404 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
13405 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
13406 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
13407 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
13408 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
13409 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
13410 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
13411 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
13412 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
13413 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
13414 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
13415 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
13416 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
13417 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
13418 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
13419 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
13420 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
13421 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
13422 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
13423 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
13424 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
13425 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
13426 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
13427 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
13428 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
13429 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
13430 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
13431 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
13432 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
13433 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
13434 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
13435 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
13436 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
13437 * infcall.c (_initialize_infcall): Add declaration.
13438 * infcmd.c (_initialize_infcmd): Add declaration.
13439 * inflow.c (_initialize_inflow): Add declaration.
13440 * infrun.c (_initialize_infrun): Add declaration.
13441 * interps.c (_initialize_interpreter): Add declaration.
13442 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
13443 * jit.c (_initialize_jit): Add declaration.
13444 * language.c (_initialize_language): Add declaration.
13445 * linux-fork.c (_initialize_linux_fork): Add declaration.
13446 * linux-nat.c (_initialize_linux_nat): Add declaration.
13447 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
13448 * linux-thread-db.c (_initialize_thread_db): Add declaration.
13449 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
13450 * m2-lang.c (_initialize_m2_language): Add declaration.
13451 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
13452 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
13453 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
13454 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
13455 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
13456 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
13457 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
13458 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
13459 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
13460 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
13461 * machoread.c (_initialize_machoread): Add declaration.
13462 * macrocmd.c (_initialize_macrocmd): Add declaration.
13463 * macroscope.c (_initialize_macroscope): Add declaration.
13464 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13465 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13466 * maint.c (_initialize_maint_cmds): Add declaration.
13467 * mdebugread.c (_initialize_mdebugread): Add declaration.
13468 * memattr.c (_initialize_mem): Add declaration.
13469 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13470 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13471 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13472 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13473 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13474 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13475 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13476 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13477 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13478 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13479 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13480 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13481 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13482 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13483 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13484 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13485 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13486 * mipsread.c (_initialize_mipsread): Add declaration.
13487 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13488 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13489 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13490 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13491 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13492 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13493 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13494 * nto-procfs.c (_initialize_procfs): Add declaration.
13495 * objc-lang.c (_initialize_objc_language): Add declaration.
13496 * observable.c (_initialize_observer): Add declaration.
13497 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13498 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13499 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13500 * osabi.c (_initialize_gdb_osabi): Add declaration.
13501 * osdata.c (_initialize_osdata): Add declaration.
13502 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13503 * parse.c (_initialize_parse): Add declaration.
13504 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13505 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13506 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13507 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13508 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13509 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13510 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13511 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13512 * printcmd.c (_initialize_printcmd): Add declaration.
13513 * probe.c (_initialize_probe): Add declaration.
13514 * proc-api.c (_initialize_proc_api): Add declaration.
13515 * proc-events.c (_initialize_proc_events): Add declaration.
13516 * proc-service.c (_initialize_proc_service): Add declaration.
13517 * procfs.c (_initialize_procfs): Add declaration.
13518 * producer.c (_initialize_producer): Add declaration.
13519 * psymtab.c (_initialize_psymtab): Add declaration.
13520 * python/python.c (_initialize_python): Add declaration.
13521 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13522 * record-btrace.c (_initialize_record_btrace): Add declaration.
13523 * record-full.c (_initialize_record_full): Add declaration.
13524 * record.c (_initialize_record): Add declaration.
13525 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13526 * regcache.c (_initialize_regcache): Add declaration.
13527 * reggroups.c (_initialize_reggroup): Add declaration.
13528 * remote-notif.c (_initialize_notif): Add declaration.
13529 * remote-sim.c (_initialize_remote_sim): Add declaration.
13530 * remote.c (_initialize_remote): Add declaration.
13531 * reverse.c (_initialize_reverse): Add declaration.
13532 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13533 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13534 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13535 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13536 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13537 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13538 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13539 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13540 Add declaration.
13541 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13542 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13543 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13544 * rust-exp.y (_initialize_rust_exp): Add declaration.
13545 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13546 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13547 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13548 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13549 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13550 * score-tdep.c (_initialize_score_tdep): Add declaration.
13551 * ser-go32.c (_initialize_ser_dos): Add declaration.
13552 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13553 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13554 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13555 * ser-uds.c (_initialize_ser_socket): Add declaration.
13556 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13557 * serial.c (_initialize_serial): Add declaration.
13558 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13559 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13560 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13561 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13562 * skip.c (_initialize_step_skip): Add declaration.
13563 * sol-thread.c (_initialize_sol_thread): Add declaration.
13564 * solib-aix.c (_initialize_solib_aix): Add declaration.
13565 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13566 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13567 * solib-frv.c (_initialize_frv_solib): Add declaration.
13568 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13569 * solib-target.c (_initialize_solib_target): Add declaration.
13570 * solib.c (_initialize_solib): Add declaration.
13571 * source-cache.c (_initialize_source_cache): Add declaration.
13572 * source.c (_initialize_source): Add declaration.
13573 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13574 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13575 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13576 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13577 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13578 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13579 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13580 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13581 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13582 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13583 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13584 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13585 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13586 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13587 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13588 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13589 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13590 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13591 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13592 * stabsread.c (_initialize_stabsread): Add declaration.
13593 * stack.c (_initialize_stack): Add declaration.
13594 * stap-probe.c (_initialize_stap_probe): Add declaration.
13595 * std-regs.c (_initialize_frame_reg): Add declaration.
13596 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13597 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13598 * symfile.c (_initialize_symfile): Add declaration.
13599 * symmisc.c (_initialize_symmisc): Add declaration.
13600 * symtab.c (_initialize_symtab): Add declaration.
13601 * target.c (_initialize_target): Add declaration.
13602 * target-connection.c (_initialize_target_connection): Add
13603 declaration.
13604 * target-dcache.c (_initialize_target_dcache): Add declaration.
13605 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13606 * thread.c (_initialize_thread): Add declaration.
13607 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13608 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13609 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13610 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13611 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13612 * tracectf.c (_initialize_ctf): Add declaration.
13613 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13614 * tracefile.c (_initialize_tracefile): Add declaration.
13615 * tracepoint.c (_initialize_tracepoint): Add declaration.
13616 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13617 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13618 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13619 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13620 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13621 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13622 * tui/tui.c (_initialize_tui): Add declaration.
13623 * typeprint.c (_initialize_typeprint): Add declaration.
13624 * ui-style.c (_initialize_ui_style): Add declaration.
13625 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13626 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13627 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13628 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13629 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13630 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13631 * unittests/filtered_iterator-selftests.c
13632 (_initialize_filtered_iterator_selftests): Add declaration.
13633 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13634 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13635 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13636 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13637 * unittests/main-thread-selftests.c
13638 (_initialize_main_thread_selftests): Add declaration.
13639 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13640 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13641 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13642 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13643 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13644 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13645 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13646 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13647 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13648 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13649 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13650 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13651 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13652 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13653 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13654 declaration.
13655 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13656 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13657 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13658 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13659 * user-regs.c (_initialize_user_regs): Add declaration.
13660 * utils.c (_initialize_utils): Add declaration.
13661 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13662 * valops.c (_initialize_valops): Add declaration.
13663 * valprint.c (_initialize_valprint): Add declaration.
13664 * value.c (_initialize_values): Add declaration.
13665 * varobj.c (_initialize_varobj): Add declaration.
13666 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13667 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13668 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13669 * windows-nat.c (_initialize_windows_nat): Add declaration.
13670 (_initialize_check_for_gdb_ini): Add declaration.
13671 (_initialize_loadable): Add declaration.
13672 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13673 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13674 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13675 * xcoffread.c (_initialize_xcoffread): Add declaration.
13676 * xml-support.c (_initialize_xml_support): Add declaration.
13677 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13678 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13679 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13680 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13681
13682 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13683
13684 * regformats/regdat.sh: Generate declaration for init function.
13685
13686 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13687
13688 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13689 up.
13690 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13691 close_one_inferior>: New methods.
13692 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13693 pass down target to find_inferior_pid.
13694 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13695 Pass down target to find_inferior_ptid.
13696 (gdbsim_target::create_inferior): Pass down target to
13697 add_thread_silent.
13698 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13699 target down to find_inferior_ptid and switch_to_thread.
13700 (gdbsim_target::close): Update to call close_one_inferior.
13701 (struct resume_data): Remove.
13702 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13703 directly, rather than through a void pointer.
13704 (gdbsim_target::resume): Update to call resume_one_inferior.
13705
13706 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13707
13708 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13709
13710 2020-01-12 Pedro Alves <palves@redhat.com>
13711
13712 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13713 directly for the current inferior instead of
13714 discard_all_inferiors.
13715 (discard_all_inferiors): Delete.
13716
13717 2020-01-11 Tom Tromey <tom@tromey.com>
13718
13719 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13720 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13721 deprecated_safe_get_selected_frame.
13722
13723 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13724
13725 * inferior.c (print_inferior): Switch inferior before printing it.
13726
13727 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13728 Pedro Alves <palves@redhat.com>
13729
13730 * progspace-and-thread.c (switch_to_program_space_and_thread):
13731 Assert there's an inferior for PSPACE. Use
13732 switch_to_inferior_no_thread to switch the inferior too.
13733 * progspace.c (program_space::~program_space): Call
13734 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13735 (program_space::free_all_objfiles): Don't call clear_symtab_users
13736 here.
13737 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13738
13739 2020-01-10 Pedro Alves <palves@redhat.com>
13740
13741 * NEWS: Mention multi-target debugging, "info connections", and
13742 "add-inferior -no-connection".
13743
13744 2020-01-10 Pedro Alves <palves@redhat.com>
13745
13746 * infrun.c: Include "target-connection.h".
13747 (check_multi_target_resumption): New.
13748 (proceed): Call it.
13749 * target-connection.c (make_target_connection_string): Make
13750 extern.
13751 * target-connection.h (make_target_connection_string): Declare.
13752
13753 2020-01-10 Pedro Alves <palves@redhat.com>
13754
13755 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13756 * inferior.c (uiout_field_connection): New function.
13757 (print_inferior): Add new "connection-id" column.
13758 (add_inferior_command): Show connection number/string of added
13759 inferior.
13760 * process-stratum-target.h
13761 (process_stratum_target::connection_string): New virtual method.
13762 (process_stratum_target::connection_number): New field.
13763 * remote.c (remote_target::connection_string): New override.
13764 * target-connection.c: New file.
13765 * target-connection.h: New file.
13766 * target.c (decref_target): Remove process_stratum targets from
13767 the connection list.
13768 (target_stack::push): Add process_stratum targets to the
13769 connection list.
13770
13771 2020-01-10 Pedro Alves <palves@redhat.com>
13772
13773 Revert:
13774 2016-04-12 Pedro Alves <palves@redhat.com>
13775 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13776 Remove references to name.
13777 * serial.h (struct serial) <name>: Delete.
13778
13779 2020-01-10 Pedro Alves <palves@redhat.com>
13780
13781 * gdbarch-selftests.c (register_to_value_test): Remove "target
13782 already pushed" check.
13783
13784 2020-01-10 Pedro Alves <palves@redhat.com>
13785 John Baldwin <jhb@FreeBSD.org>
13786
13787 * aarch64-linux-nat.c
13788 (aarch64_linux_nat_target::thread_architecture): Adjust.
13789 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13790 (task_command_1): Likewise.
13791 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13792 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13793 (aix_thread_target::store_registers)
13794 (aix_thread_target::thread_alive): Adjust.
13795 * amd64-fbsd-tdep.c: Include "inferior.h".
13796 (amd64fbsd_get_thread_local_address): Pass down target.
13797 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13798 thread's gdbarch instead of target_gdbarch.
13799 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13800 get_last_target_status.
13801 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13802 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13803 inferiors.
13804 (update_inserted_breakpoint_locations): Skip if inferiors with no
13805 execution.
13806 (update_global_location_list): When handling moribund locations,
13807 find representative inferior for location's pspace, and use thread
13808 count of its process_stratum target.
13809 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13810 * bsd-uthread.c (bsd_uthread_target::wait): Use
13811 as_process_stratum_target and adjust thread_change_ptid and
13812 add_thread calls.
13813 (bsd_uthread_target::update_thread_list): Use
13814 as_process_stratum_target and adjust find_thread_ptid,
13815 thread_change_ptid and add_thread calls.
13816 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13817 find_thread_ptid call.
13818 * corelow.c (add_to_thread_list): Adjust add_thread call.
13819 (core_target_open): Adjust add_thread_silent and thread_count
13820 calls.
13821 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13822 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13823 * event-top.c (async_disconnect): Pop targets from all inferiors.
13824 * exec.c (add_target_sections): Push exec target on all inferiors
13825 sharing the program space.
13826 (remove_target_sections): Remove the exec target from all
13827 inferiors sharing the program space.
13828 (exec_on_vfork): New.
13829 * exec.h (exec_on_vfork): Declare.
13830 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13831 Pass it down.
13832 (fbsd_nat_target::update_thread_list): Adjust.
13833 (fbsd_nat_target::resume): Adjust.
13834 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13835 down.
13836 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13837 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13838 get_thread_arch_regcache call.
13839 * fork-child.c (gdb_startup_inferior): Pass target down to
13840 startup_inferior and set_executing.
13841 * gdbthread.h (struct process_stratum_target): Forward declare.
13842 (add_thread, add_thread_silent, add_thread_with_info)
13843 (in_thread_list): Add process_stratum_target parameter.
13844 (find_thread_ptid(inferior*, ptid_t)): New overload.
13845 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13846 parameter.
13847 (all_threads()): Delete overload.
13848 (all_threads, all_non_exited_threads): Add process_stratum_target
13849 parameter.
13850 (all_threads_safe): Use brace initialization.
13851 (thread_count): Add process_stratum_target parameter.
13852 (set_resumed, set_running, set_stop_requested, set_executing)
13853 (threads_are_executing, finish_thread_state): Add
13854 process_stratum_target parameter.
13855 (switch_to_thread): Use is_current_thread.
13856 * i386-fbsd-tdep.c: Include "inferior.h".
13857 (i386fbsd_get_thread_local_address): Pass down target.
13858 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13859 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13860 have_inferiors check.
13861 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13862 (inf_ptrace_target::attach): Adjust.
13863 * infcall.c (run_inferior_call): Adjust.
13864 * infcmd.c (run_command_1): Pass target to
13865 scoped_finish_thread_state.
13866 (proceed_thread_callback): Skip inferiors with no execution.
13867 (continue_command): Rename 'all_threads' local to avoid hiding
13868 'all_threads' function. Adjust get_last_target_status call.
13869 (prepare_one_step): Adjust set_running call.
13870 (signal_command): Use user_visible_resume_target. Compare thread
13871 pointers instead of inferior_ptid.
13872 (info_program_command): Adjust to pass down target.
13873 (attach_command): Mark target's 'thread_executing' flag.
13874 (stop_current_target_threads_ns): New, factored out from ...
13875 (interrupt_target_1): ... this. Switch inferior before making
13876 target calls.
13877 * inferior-iter.h
13878 (struct all_inferiors_iterator, struct all_inferiors_range)
13879 (struct all_inferiors_safe_range)
13880 (struct all_non_exited_inferiors_range): Filter on
13881 process_stratum_target too. Remove explicit.
13882 * inferior.c (inferior::inferior): Push dummy target on target
13883 stack.
13884 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13885 Add process_stratum_target parameter, and pass it down.
13886 (have_live_inferiors): Adjust.
13887 (switch_to_inferior_and_push_target): New.
13888 (add_inferior_command, clone_inferior_command): Handle
13889 "-no-connection" parameter. Use
13890 switch_to_inferior_and_push_target.
13891 (_initialize_inferior): Mention "-no-connection" option in
13892 the help of "add-inferior" and "clone-inferior" commands.
13893 * inferior.h: Include "process-stratum-target.h".
13894 (interrupt_target_1): Use bool.
13895 (struct inferior) <push_target, unpush_target, target_is_pushed,
13896 find_target_beneath, top_target, process_target, target_at,
13897 m_stack>: New.
13898 (discard_all_inferiors): Delete.
13899 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13900 (all_inferiors, all_non_exited_inferiors): Add
13901 process_stratum_target parameter.
13902 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13903 (target_last_proc_target): New global.
13904 (follow_fork_inferior): Push target on new inferior. Pass target
13905 to add_thread_silent. Call exec_on_vfork. Handle target's
13906 reference count.
13907 (follow_fork): Adjust get_last_target_status call. Also consider
13908 target.
13909 (follow_exec): Push target on new inferior.
13910 (struct execution_control_state) <target>: New field.
13911 (user_visible_resume_target): New.
13912 (do_target_resume): Call target_async.
13913 (resume_1): Set target's threads_executing flag. Consider resume
13914 target.
13915 (commit_resume_all_targets): New.
13916 (proceed): Also consider resume target. Skip threads of inferiors
13917 with no execution. Commit resumtion in all targets.
13918 (start_remote): Pass current inferior to wait_for_inferior.
13919 (infrun_thread_stop_requested): Consider target as well. Pass
13920 thread_info pointer to clear_inline_frame_state instead of ptid.
13921 (infrun_thread_thread_exit): Consider target as well.
13922 (random_pending_event_thread): New inferior parameter. Use it.
13923 (do_target_wait): Rename to ...
13924 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13925 down.
13926 (threads_are_resumed_pending_p, do_target_wait): New.
13927 (prepare_for_detach): Adjust calls.
13928 (wait_for_inferior): New inferior parameter. Handle it. Use
13929 do_target_wait_1 instead of do_target_wait.
13930 (fetch_inferior_event): Adjust. Switch to representative
13931 inferior. Pass target down.
13932 (set_last_target_status): Add process_stratum_target parameter.
13933 Save target in global.
13934 (get_last_target_status): Add process_stratum_target parameter and
13935 handle it.
13936 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13937 (context_switch): Check inferior_ptid == null_ptid before calling
13938 inferior_thread().
13939 (get_inferior_stop_soon): Pass down target.
13940 (wait_one): Rename to ...
13941 (poll_one_curr_target): ... this.
13942 (struct wait_one_event): New.
13943 (wait_one): New.
13944 (stop_all_threads): Adjust.
13945 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13946 event's target.
13947 (switch_back_to_stepped_thread): Also consider target.
13948 (print_stop_event): Update.
13949 (normal_stop): Update. Also consider the resume target.
13950 * infrun.h (wait_for_inferior): Remove declaration.
13951 (user_visible_resume_target): New declaration.
13952 (get_last_target_status, set_last_target_status): New
13953 process_stratum_target parameter.
13954 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13955 process_stratum_target parameter, and use it.
13956 (clear_inline_frame_state (thread_info*)): New.
13957 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13958 process_stratum_target parameter.
13959 (clear_inline_frame_state (thread_info*)): Declare.
13960 * linux-fork.c (delete_checkpoint_command): Pass target down to
13961 find_thread_ptid.
13962 (checkpoint_command): Adjust.
13963 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13964 instead of just tweaking inferior_ptid.
13965 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13966 (exit_lwp): Pass target down to find_thread_ptid.
13967 (attach_proc_task_lwp_callback): Pass target down to
13968 add_thread/set_running/set_executing.
13969 (linux_nat_target::attach): Pass target down to
13970 thread_change_ptid.
13971 (get_detach_signal): Pass target down to find_thread_ptid.
13972 Consider last target status's target.
13973 (linux_resume_one_lwp_throw, resume_lwp)
13974 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13975 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13976 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13977 (linux_nat_target::async_wait_fd): New.
13978 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13979 target down.
13980 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13981 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13982 * linux-thread-db.c (struct thread_db_info::process_target): New
13983 field.
13984 (add_thread_db_info): Save target.
13985 (get_thread_db_info): New process_stratum_target parameter. Also
13986 match target.
13987 (delete_thread_db_info): New process_stratum_target parameter.
13988 Also match target.
13989 (thread_from_lwp): Adjust to pass down target.
13990 (thread_db_notice_clone): Pass down target.
13991 (check_thread_db_callback): Pass down target.
13992 (try_thread_db_load_1): Always push the thread_db target.
13993 (try_thread_db_load, record_thread): Pass target down.
13994 (thread_db_target::detach): Pass target down. Always unpush the
13995 thread_db target.
13996 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13997 target down. Always unpush the thread_db target.
13998 (find_new_threads_callback, thread_db_find_new_threads_2)
13999 (thread_db_target::update_thread_list): Pass target down.
14000 (thread_db_target::pid_to_str): Pass current inferior down.
14001 (thread_db_target::get_thread_local_address): Pass target down.
14002 (thread_db_target::resume, maintenance_check_libthread_db): Pass
14003 target down.
14004 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
14005 * procfs.c (procfs_target::procfs_init_inferior): Declare.
14006 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
14007 (procfs_init_inferior): Rename to ...
14008 (procfs_target::procfs_init_inferior): ... this and adjust.
14009 (procfs_target::create_inferior, procfs_notice_thread)
14010 (procfs_do_thread_registers): Adjust.
14011 * ppc-fbsd-tdep.c: Include "inferior.h".
14012 (ppcfbsd_get_thread_local_address): Pass down target.
14013 * proc-service.c (ps_xfer_memory): Switch current inferior and
14014 program space as well.
14015 (get_ps_regcache): Pass target down.
14016 * process-stratum-target.c
14017 (process_stratum_target::thread_address_space)
14018 (process_stratum_target::thread_architecture): Pass target down.
14019 * process-stratum-target.h
14020 (process_stratum_target::threads_executing): New field.
14021 (as_process_stratum_target): New.
14022 * ravenscar-thread.c
14023 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
14024 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
14025 down.
14026 * record-btrace.c (record_btrace_target::info_record): Adjust.
14027 (record_btrace_target::record_method)
14028 (record_btrace_target::record_is_replaying)
14029 (record_btrace_target::fetch_registers)
14030 (get_thread_current_frame_id, record_btrace_target::resume)
14031 (record_btrace_target::wait, record_btrace_target::stop): Pass
14032 target down.
14033 * record-full.c (record_full_wait_1): Switch to event thread.
14034 Pass target down.
14035 * regcache.c (regcache::regcache)
14036 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
14037 process_stratum_target parameter and handle it.
14038 (current_thread_target): New global.
14039 (get_thread_regcache): Add process_stratum_target parameter and
14040 handle it. Switch inferior before calling target method.
14041 (get_thread_regcache): Pass target down.
14042 (get_thread_regcache_for_ptid): Pass target down.
14043 (registers_changed_ptid): Add process_stratum_target parameter and
14044 handle it.
14045 (registers_changed_thread, registers_changed): Pass target down.
14046 (test_get_thread_arch_aspace_regcache): New.
14047 (current_regcache_test): Define a couple local test_target_ops
14048 instances and use them for testing.
14049 (readwrite_regcache): Pass process_stratum_target parameter.
14050 (cooked_read_test, cooked_write_test): Pass mock_target down.
14051 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
14052 (get_thread_arch_aspace_regcache): Add process_stratum_target
14053 parameter.
14054 (regcache::target): New method.
14055 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
14056 (regcache::registers_changed_ptid): Add process_stratum_target
14057 parameter.
14058 (regcache::m_target): New field.
14059 (registers_changed_ptid): Add process_stratum_target parameter.
14060 * remote.c (remote_state::supports_vCont_probed): New field.
14061 (remote_target::async_wait_fd): New method.
14062 (remote_unpush_and_throw): Add remote_target parameter.
14063 (get_current_remote_target): Adjust.
14064 (remote_target::remote_add_inferior): Push target.
14065 (remote_target::remote_add_thread)
14066 (remote_target::remote_notice_new_inferior)
14067 (get_remote_thread_info): Pass target down.
14068 (remote_target::update_thread_list): Skip threads of inferiors
14069 bound to other targets. (remote_target::close): Don't discard
14070 inferiors. (remote_target::add_current_inferior_and_thread)
14071 (remote_target::process_initial_stop_replies)
14072 (remote_target::start_remote)
14073 (remote_target::remote_serial_quit_handler): Pass down target.
14074 (remote_target::remote_unpush_target): New remote_target
14075 parameter. Unpush the target from all inferiors.
14076 (remote_target::remote_unpush_and_throw): New remote_target
14077 parameter. Pass it down.
14078 (remote_target::open_1): Check whether the current inferior has
14079 execution instead of checking whether any inferior is live. Pass
14080 target down.
14081 (remote_target::remote_detach_1): Pass down target. Use
14082 remote_unpush_target.
14083 (extended_remote_target::attach): Pass down target.
14084 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
14085 (remote_target::append_resumption): Pass down target.
14086 (remote_target::append_pending_thread_resumptions)
14087 (remote_target::remote_resume_with_hc, remote_target::resume)
14088 (remote_target::commit_resume): Pass down target.
14089 (remote_target::remote_stop_ns): Check supports_vCont_probed.
14090 (remote_target::interrupt_query)
14091 (remote_target::remove_new_fork_children)
14092 (remote_target::check_pending_events_prevent_wildcard_vcont)
14093 (remote_target::remote_parse_stop_reply)
14094 (remote_target::process_stop_reply): Pass down target.
14095 (first_remote_resumed_thread): New remote_target parameter. Pass
14096 it down.
14097 (remote_target::wait_as): Pass down target.
14098 (unpush_and_perror): New remote_target parameter. Pass it down.
14099 (remote_target::readchar, remote_target::remote_serial_write)
14100 (remote_target::getpkt_or_notif_sane_1)
14101 (remote_target::kill_new_fork_children, remote_target::kill): Pass
14102 down target.
14103 (remote_target::mourn_inferior): Pass down target. Use
14104 remote_unpush_target.
14105 (remote_target::core_of_thread)
14106 (remote_target::remote_btrace_maybe_reopen): Pass down target.
14107 (remote_target::pid_to_exec_file)
14108 (remote_target::thread_handle_to_thread_info): Pass down target.
14109 (remote_target::async_wait_fd): New.
14110 * riscv-fbsd-tdep.c: Include "inferior.h".
14111 (riscv_fbsd_get_thread_local_address): Pass down target.
14112 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
14113 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
14114 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
14115 Adjust.
14116 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
14117 * solib-svr4.c (enable_break): Pass down target.
14118 * spu-multiarch.c (parse_spufs_run): Pass down target.
14119 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
14120 * target-delegates.c: Regenerate.
14121 * target.c (g_target_stack): Delete.
14122 (current_top_target): Return the current inferior's top target.
14123 (target_has_execution_1): Refer to the passed-in inferior's top
14124 target.
14125 (target_supports_terminal_ours): Check whether the initial
14126 inferior was already created.
14127 (decref_target): New.
14128 (target_stack::push): Incref/decref the target.
14129 (push_target, push_target, unpush_target): Adjust.
14130 (target_stack::unpush): Defref target.
14131 (target_is_pushed): Return bool. Adjust to refer to the current
14132 inferior's target stack.
14133 (dispose_inferior): Delete, and inline parts ...
14134 (target_preopen): ... here. Only dispose of the current inferior.
14135 (target_detach): Hold strong target reference while detaching.
14136 Pass target down.
14137 (target_thread_name): Add assertion.
14138 (target_resume): Pass down target.
14139 (target_ops::beneath, find_target_at): Adjust to refer to the
14140 current inferior's target stack.
14141 (get_dummy_target): New.
14142 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
14143 has a thread running.
14144 (initialize_targets): Rename to ...
14145 (_initialize_target): ... this.
14146 * target.h: Include "gdbsupport/refcounted-object.h".
14147 (struct target_ops): Inherit refcounted_object.
14148 (target_ops::shortname, target_ops::longname): Make const.
14149 (target_ops::async_wait_fd): New method.
14150 (decref_target): Declare.
14151 (struct target_ops_ref_policy): New.
14152 (target_ops_ref): New typedef.
14153 (get_dummy_target): Declare function.
14154 (target_is_pushed): Return bool.
14155 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
14156 (all_matching_threads_iterator::all_matching_threads_iterator):
14157 Handle filter target.
14158 * thread-iter.h (struct all_matching_threads_iterator, struct
14159 all_matching_threads_range, class all_non_exited_threads_range):
14160 Filter by target too. Remove explicit.
14161 * thread.c (threads_executing): Delete.
14162 (inferior_thread): Pass down current inferior.
14163 (clear_thread_inferior_resources): Pass down thread pointer
14164 instead of ptid_t.
14165 (add_thread_silent, add_thread_with_info, add_thread): Add
14166 process_stratum_target parameter. Use it for thread and inferior
14167 searches.
14168 (is_current_thread): New.
14169 (thread_info::deletable): Use it.
14170 (find_thread_ptid, thread_count, in_thread_list)
14171 (thread_change_ptid, set_resumed, set_running): New
14172 process_stratum_target parameter. Pass it down.
14173 (set_executing): New process_stratum_target parameter. Pass it
14174 down. Adjust reference to 'threads_executing'.
14175 (threads_are_executing): New process_stratum_target parameter.
14176 Adjust reference to 'threads_executing'.
14177 (set_stop_requested, finish_thread_state): New
14178 process_stratum_target parameter. Pass it down.
14179 (switch_to_thread): Also match inferior.
14180 (switch_to_thread): New process_stratum_target parameter. Pass it
14181 down.
14182 (update_threads_executing): Reimplement.
14183 * top.c (quit_force): Pop targets from all inferior.
14184 (gdb_init): Don't call initialize_targets.
14185 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
14186 Declare.
14187 (windows_add_thread, windows_delete_thread): Adjust.
14188 (get_windows_debug_event): Rename to ...
14189 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
14190 * tracefile-tfile.c (tfile_target_open): Pass down target.
14191 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
14192 Forward declare.
14193 (switch_to_thread): Add process_stratum_target parameter.
14194 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
14195 parameter. Use it.
14196 (mi_on_resume): Pass target down.
14197 * nat/fork-inferior.c (startup_inferior): Add
14198 process_stratum_target parameter. Pass it down.
14199 * nat/fork-inferior.h (startup_inferior): Add
14200 process_stratum_target parameter.
14201 * python/py-threadevent.c (py_get_event_thread): Pass target down.
14202
14203 2020-01-10 Pedro Alves <palves@redhat.com>
14204
14205 * remote.c (remote_target::start_remote): Don't set inferior_ptid
14206 directly. Instead find the first thread in the thread list and
14207 use switch_to_thread.
14208
14209 2020-01-10 Pedro Alves <palves@redhat.com>
14210
14211 * remote.c (remote_target::remote_add_inferior): Don't bind a
14212 process to the current inferior if the current inferior is already
14213 bound to a process.
14214
14215 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14216 Pedro Alves <palves@redhat.com>
14217
14218 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
14219 If no process is specified, return null_ptid instead of
14220 inferior_ptid.
14221 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
14222 TARGET_WAITKIND_SIGNALLED with no pid.
14223
14224 2020-01-10 Pedro Alves <palves@redhat.com>
14225
14226 * remote.c (first_remote_resumed_thread): New.
14227 (remote_target::wait_as): Use it as default event_ptid instead of
14228 inferior_ptid.
14229
14230 2020-01-10 Pedro Alves <palves@redhat.com>
14231
14232 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
14233
14234 2020-01-10 Pedro Alves <palves@redhat.com>
14235
14236 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
14237 not -1.
14238
14239 2020-01-10 Pedro Alves <palves@redhat.com>
14240
14241 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
14242 ptid to get_last_target_status.
14243 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
14244 ptid to get_last_target_status.
14245 * infcmd.c (continue_command): Don't pass a target_waitstatus to
14246 get_last_target_status.
14247 (info_program_command): Don't pass a target_waitstatus to
14248 get_last_target_status.
14249 * infrun.c (init_wait_for_inferior): Use
14250 nullify_last_target_wait_ptid.
14251 (get_last_target_status): Handle nullptr arguments.
14252 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
14253 (print_stop_event): Don't pass a ptid to get_last_target_status.
14254 (normal_stop): Don't pass a ptid to get_last_target_status.
14255 * infrun.h (get_last_target_status, set_last_target_status): Move
14256 comments here and update.
14257 (nullify_last_target_wait_ptid): Declare.
14258 * linux-fork.c (fork_load_infrun_state): Remove local extern
14259 declaration of nullify_last_target_wait_ptid.
14260 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
14261 to get_last_target_status.
14262
14263 2020-01-10 Pedro Alves <palves@redhat.com>
14264
14265 * gdbthread.h (scoped_restore_current_thread)
14266 <dont_restore, restore, m_dont_restore>: Declare.
14267 * thread.c (thread_alive): Add assertion. Return bool.
14268 (switch_to_thread_if_alive): New.
14269 (prune_threads): Switch inferior/thread.
14270 (print_thread_info_1): Switch thread before calling target methods.
14271 (scoped_restore_current_thread::restore): New, factored out from
14272 ...
14273 (scoped_restore_current_thread::~scoped_restore_current_thread):
14274 ... this.
14275 (scoped_restore_current_thread::scoped_restore_current_thread):
14276 Add assertion.
14277 (thread_apply_all_command, thread_select): Use
14278 switch_to_thread_if_alive.
14279 * infrun.c (proceed, restart_threads, handle_signal_stop)
14280 (switch_back_to_stepped_thread): Switch current thread before
14281 calling target methods.
14282
14283 2020-01-10 Pedro Alves <palves@redhat.com>
14284
14285 * inferior.c (switch_to_inferior_no_thread): New function,
14286 factored out from ...
14287 (inferior_command): ... here.
14288 * inferior.h (switch_to_inferior_no_thread): Declare.
14289 * mi/mi-main.c (run_one_inferior): Use
14290 switch_to_inferior_no_thread.
14291
14292 2020-01-10 Pedro Alves <palves@redhat.com>
14293
14294 * infcmd.c (kill_command): Remove dead code.
14295
14296 2020-01-10 Pedro Alves <palves@redhat.com>
14297
14298 * remote.c (remote_target::mourn_inferior): No longer check
14299 whether the target is running.
14300
14301 2020-01-10 Pedro Alves <palves@redhat.com>
14302
14303 * corelow.c (core_target::has_execution): Change parameter type to
14304 inferior pointer.
14305 * inferior.c (number_of_live_inferiors): Use
14306 inferior::has_execution instead of target_has_execution_1.
14307 * inferior.h (inferior::has_execution): New.
14308 * linux-thread-db.c (thread_db_target::update_thread_list): Use
14309 inferior::has_execution instead of target_has_execution_1.
14310 * process-stratum-target.c
14311 (process_stratum_target::has_execution): Change parameter type to
14312 inferior pointer. Check the inferior's PID instead of
14313 inferior_ptid.
14314 * process-stratum-target.h
14315 (process_stratum_target::has_execution): Change parameter type to
14316 inferior pointer.
14317 * record-full.c (record_full_core_target::has_execution): Change
14318 parameter type to inferior pointer.
14319 * target.c (target_has_execution_1): Change parameter type to
14320 inferior pointer.
14321 (target_has_execution_current): Adjust.
14322 * target.h (target_ops::has_execution): Change parameter type to
14323 inferior pointer.
14324 (target_has_execution_1): Change parameter type to inferior
14325 pointer. Change return type to bool.
14326 * tracefile.h (tracefile_target::has_execution): Change parameter
14327 type to inferior pointer.
14328
14329 2020-01-10 Pedro Alves <palves@redhat.com>
14330
14331 * exceptions.c (print_flush): Remove current_top_target() check.
14332
14333 2020-01-10 Pedro Alves <palves@redhat.com>
14334
14335 * remote.c (show_remote_exec_file): Show the current inferior's
14336 exec-file instead of the command variable's value.
14337
14338 2020-01-10 Pedro Alves <palves@redhat.com>
14339
14340 * record-full.c (record_full_resume_ptid): New global.
14341 (record_full_target::resume): Set it.
14342 (record_full_wait_1): Use record_full_resume_ptid instead of
14343 inferior_ptid.
14344
14345 2020-01-10 Pedro Alves <palves@redhat.com>
14346
14347 * gdbthread.h (scoped_restore_current_thread)
14348 <dont_restore, restore, m_dont_restore>: Declare.
14349 * thread.c (thread_alive): Add assertion. Return bool.
14350 (switch_to_thread_if_alive): New.
14351 (prune_threads): Switch inferior/thread.
14352 (print_thread_info_1): Switch thread before calling target methods.
14353 (scoped_restore_current_thread::restore): New, factored out from
14354 ...
14355 (scoped_restore_current_thread::~scoped_restore_current_thread):
14356 ... this.
14357 (scoped_restore_current_thread::scoped_restore_current_thread):
14358 Add assertion.
14359 (thread_apply_all_command, thread_select): Use
14360 switch_to_thread_if_alive.
14361
14362 2020-01-10 George Barrett <bob@bob131.so>
14363
14364 * stap-probe.c (stap_modify_semaphore): Don't check for null
14365 semaphores.
14366 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
14367 for null semaphores.
14368
14369 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14370
14371 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
14372 all source windows, and maintain horizontal scroll status while
14373 doing so.
14374
14375 2020-01-09 Tom Tromey <tom@tromey.com>
14376
14377 PR tui/18932:
14378 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
14379 update_source_window, not print_source_lines.
14380
14381 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14382
14383 * tui/tui.c (tui_enable): Register tui hooks after calling
14384 tui_display_main.
14385
14386 2020-01-09 Christian Biesinger <cbiesinger@google.com>
14387
14388 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
14389
14390 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
14391
14392 * thread.c (print_thread_info_1): Fix indentation.
14393
14394 2020-01-09 Christian Biesinger <cbiesinger@google.com>
14395
14396 * symtab.c (general_symbol_info::compute_and_set_names): Move the
14397 unique_xmalloc_ptr outside the if to always free the demangled name.
14398
14399 2020-01-08 Tom Tromey <tromey@adacore.com>
14400
14401 * xcoffread.c (enter_line_range, read_xcoff_symtab)
14402 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
14403 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
14404 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
14405 Remove.
14406 (section_offsets): New typedef.
14407 * symtab.c (fixup_section, get_msymbol_address): Update.
14408 * symmisc.c (dump_msymbols): Update.
14409 * symfile.h (relative_addr_info_to_section_offsets)
14410 (symfile_map_offsets_to_segments): Update.
14411 * symfile.c (build_section_addr_info_from_objfile)
14412 (init_objfile_sect_indices): Update.
14413 (struct place_section_arg): Change type of "offsets".
14414 (place_section): Update.
14415 (relative_addr_info_to_section_offsets): Change type of
14416 "section_offsets". Remove "num_sections" parameter.
14417 (default_symfile_offsets, syms_from_objfile_1)
14418 (set_objfile_default_section_offset): Update.
14419 (reread_symbols): No need to preserve section offsets by hand.
14420 (symfile_map_offsets_to_segments): Change type of "offsets".
14421 * stap-probe.c (relocate_address): Update.
14422 * stabsread.h (process_one_symbol): Update.
14423 * solib-target.c (struct lm_info_target) <offsets>: Change type.
14424 (solib_target_relocate_section_addresses): Update.
14425 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
14426 Update.
14427 * solib-frv.c (frv_relocate_main_executable): Update.
14428 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
14429 * solib-aix.c (solib_aix_get_section_offsets): Change return
14430 type.
14431 (solib_aix_solib_create_inferior_hook): Update.
14432 * remote.c (remote_target::get_offsets): Update.
14433 * psymtab.c (find_pc_sect_psymtab): Update.
14434 * psympriv.h (struct partial_symbol) <address, text_low,
14435 text_high>: Update.
14436 * objfiles.h (obj_section_offset): Update.
14437 (struct objfile) <section_offsets>: Change type.
14438 <num_sections>: Remove.
14439 (objfile_relocate): Update.
14440 * objfiles.c (entry_point_address_query): Update
14441 (relocate_one_symbol): Change type of "section_offsets".
14442 (objfile_relocate1, objfile_relocate1): Change type of
14443 "new_offsets".
14444 (objfile_rebase1): Update.
14445 * mipsread.c (mipscoff_symfile_read): Update.
14446 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
14447 parameter.
14448 * mdebugread.c (parse_symbol): Change type of "section_offsets".
14449 (parse_external, psymtab_to_symtab_1): Update.
14450 * machoread.c (macho_symfile_offsets): Update.
14451 * ia64-tdep.c (ia64_find_unwind_table): Update.
14452 * hppa-tdep.c (read_unwind_info): Update.
14453 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
14454 * dwarf2read.c (create_addrmap_from_index)
14455 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14456 (process_psymtab_comp_unit_reader, add_partial_symbol)
14457 (add_partial_subprogram, process_full_comp_unit)
14458 (read_file_scope, read_func_scope, read_lexical_block_scope)
14459 (read_call_site_scope, dwarf2_rnglists_process)
14460 (dwarf2_ranges_process, dwarf2_ranges_read)
14461 (dwarf_decode_lines_1, var_decode_location, new_symbol)
14462 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
14463 Update.
14464 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14465 Update.
14466 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14467 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14468 (process_one_symbol): Change type of "section_offsets".
14469 * ctfread.c (get_objfile_text_range): Update.
14470 * coffread.c (coff_symtab_read, enter_linenos)
14471 (process_coff_symbol): Update.
14472 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14473 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14474
14475 2020-01-08 Tom Tromey <tromey@adacore.com>
14476
14477 * dwarf2read.c (parse_macro_definition): Use std::string.
14478 (parse_macro_definition): Likewise.
14479
14480 2020-01-08 Tom Tromey <tromey@adacore.com>
14481
14482 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14483 (ATTR_ALLOC_CHUNK): Remove.
14484
14485 2020-01-08 Tom Tromey <tromey@adacore.com>
14486
14487 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14488
14489 2020-01-08 Tom Tromey <tromey@adacore.com>
14490
14491 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14492 (dwarf2_compute_name, open_dwo_file): Likewise.
14493 (process_enumeration_scope): Use std::vector.
14494 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14495 (partial_die_info::fixup, dwarf2_start_subfile)
14496 (guess_full_die_structure_name, dwarf2_name): Likewise.
14497 (determine_prefix): Update.
14498 (guess_full_die_structure_name): Make return type const.
14499 (partial_die_full_name): Return unique_xmalloc_ptr.
14500 (DW_FIELD_ALLOC_CHUNK): Remove.
14501
14502 2020-01-07 Tom Tromey <tromey@adacore.com>
14503
14504 PR build/24937:
14505 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14506
14507 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14508
14509 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14510
14511 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14512
14513 * stack.c (print_frame_info): Move disassemble_next_line code
14514 inside source_print block.
14515
14516 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14517
14518 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14519 gdb/signals.h, as we are now using native signal symbols.
14520
14521 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
14522
14523 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14524 overflow by an early check of content vs threshold.
14525 * tui/tui-source.c (tui_source_window::line_is_displayed):
14526 Likewise.
14527
14528 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14529
14530 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14531
14532 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14533
14534 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14535 export table if no section contains it's RVA.
14536
14537 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14538
14539 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14540
14541 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
14542
14543 * source.c (print_source_lines_base): Set last_line_listed.
14544
14545 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
14546
14547 * tui/tui-disasm.c: Remove trailing spaces.
14548
14549 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14550 Pedro Alves <palves@redhat.com>
14551
14552 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14553 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14554 (windows_gdb_signal_to_target): New function, uses the above
14555 enumeration to convert GDB internal signal codes to equivalent
14556 Windows codes.
14557 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14558 * windows-nat.c: Include "gdb_wait.h".
14559 (get_windows_debug_event): Extract the fatal exception from the
14560 exit status and convert to the equivalent Posix signal number.
14561 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14562 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14563 * gdbsupport/gdb_wait.c: New file, implements
14564 windows_status_to_termsig.
14565 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14566 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14567
14568 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14569
14570 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14571 show_layout.
14572
14573 2020-01-05 Luis Machado <luis.machado@linaro.org>
14574
14575 * aarch64-linux-nat.c
14576 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14577 and bfd_mach_aarch64.
14578
14579 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14580
14581 * ui-file.c (stdio_file::can_emit_style_escape)
14582 (tee_file::can_emit_style_escape): Ensure style is used also on
14583 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14584 to gdb_stdout.
14585 * main.c (set_gdb_data_directory): Use file style to output the
14586 warning that the given pathname is not a directory.
14587 * top.c (show_history_filename, gdb_safe_append_history)
14588 (show_gdb_datadir): Use file style.
14589
14590 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
14591
14592 * solib-target.c (struct lm_info_target):
14593 Change offsets to be a unique_xmalloc_ptr.
14594 (solib_target_relocate_section_addresses): Update.
14595
14596 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
14597
14598 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14599
14600 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14601
14602 * MAINTAINERS (Write After Approval): Add myself.
14603
14604 2020-01-02 Luis Machado <luis.machado@linaro.org>
14605
14606 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14607 Cell BE architecture.
14608 * target.h (struct target_ops) <thread_architecture>: Likewise.
14609
14610 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
14611
14612 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14613
14614 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
14615
14616 * MAINTAINERS (Write After Approval): Add myself.
14617
14618 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14619
14620 * gdbarch.sh: Update copyright year range of generated files.
14621
14622 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14623
14624 Update copyright year range in all GDB files.
14625
14626 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14627
14628 * copyright.py: Convert to Python 3.
14629
14630 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14631
14632 * copyright.py: Adapt after move of gnulib directory from gdb
14633 directory to toplevel directory.
14634
14635 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14636
14637 * copyright.py (main): Exit if run from the wrong directory.
14638
14639 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14640
14641 * top.c (print_gdb_version): Change copyright year to 2020.
14642
14643 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14644
14645 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
14646
14647 For older changes see ChangeLog-2019.
14648 \f
14649 Local Variables:
14650 mode: change-log
14651 left-margin: 8
14652 fill-column: 74
14653 version-control: never
14654 coding: utf-8
14655 End:
This page took 0.363545 seconds and 4 git commands to generate.